drupal-caravane/web/themes/custom/caravane/assets/dist/main.js

23 lines
85 KiB
JavaScript
Raw Normal View History

/**
* @vue/shared v3.4.31
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
2024-07-16 17:01:09 +02:00
**//*! #__NO_SIDE_EFFECTS__ */function Wn(e,t){const n=new Set(e.split(","));return r=>n.has(r)}const z={},Ze=[],ae=()=>{},Uo=()=>!1,Jt=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),zn=e=>e.startsWith("onUpdate:"),Y=Object.assign,kn=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Do=Object.prototype.hasOwnProperty,D=(e,t)=>Do.call(e,t),L=Array.isArray,dt=e=>Gt(e)==="[object Map]",Bo=e=>Gt(e)==="[object Set]",M=e=>typeof e=="function",Z=e=>typeof e=="string",nt=e=>typeof e=="symbol",J=e=>e!==null&&typeof e=="object",bs=e=>(J(e)||M(e))&&M(e.then)&&M(e.catch),Ho=Object.prototype.toString,Gt=e=>Ho.call(e),$o=e=>Gt(e).slice(8,-1),Vo=e=>Gt(e)==="[object Object]",Jn=e=>Z(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ht=Wn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Xt=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},qo=/-(\w)/g,et=Xt(e=>e.replace(qo,(t,n)=>n?n.toUpperCase():"")),Ko=/\B([A-Z])/g,rt=Xt(e=>e.replace(Ko,"-$1").toLowerCase()),ys=Xt(e=>e.charAt(0).toUpperCase()+e.slice(1)),dn=Xt(e=>e?`on${ys(e)}`:""),Ge=(e,t)=>!Object.is(e,t),hn=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},_s=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Wo=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Or;const ws=()=>Or||(Or=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Gn(e){if(L(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=Z(r)?Go(r):Gn(r);if(s)for(const o in s)t[o]=s[o]}return t}else if(Z(e)||J(e))return e}const zo=/;(?![^(]*\))/g,ko=/:([^]+)/,Jo=/\/\*[^]*?\*\//g;function Go(e){const t={};return e.replace(Jo,"").split(zo).forEach(n=>{if(n){const r=n.split(ko);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Xn(e){let t="";if(Z(e))t=e;else if(L(e))for(let n=0;n<e.length;n++){const r=Xn(e[n]);r&&(t+=r+" ")}else if(J(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Xo="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Yo=Wn(Xo);function Es(e){return!!e||e===""}/**
* @vue/reactivity v3.4.31
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
2024-07-16 17:01:09 +02:00
**/let pe;class Zo{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=pe,!t&&pe&&(this.index=(pe.scopes||(pe.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=pe;try{return pe=this,t()}finally{pe=n}}}on(){pe=this}off(){pe=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0,this._active=!1}}}function Qo(e,t=pe){t&&t.active&&t.effects.push(e)}function ei(){return pe}let We;class Yn{constructor(t,n,r,s){this.fn=t,this.trigger=n,this.scheduler=r,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,Qo(this,s)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,je();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(ti(n.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),Ue()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Ie,n=We;try{return Ie=!0,We=this,this._runnings++,Tr(this),this.fn()}finally{Cr(this),this._runnings--,We=n,Ie=t}}stop(){this.active&&(Tr(this),Cr(this),this.onStop&&this.onStop(),this.active=!1)}}function ti(e){return e.value}function Tr(e){e._trackId++,e._depsLength=0}function Cr(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)xs(e.deps[t],e);e.deps.length=e._depsLength}}function xs(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let Ie=!0,Tn=0;const Ss=[];function je(){Ss.push(Ie),Ie=!1}function Ue(){const e=Ss.pop();Ie=e===void 0?!0:e}function Zn(){Tn++}function Qn(){for(Tn--;!Tn&&Cn.length;)Cn.shift()()}function Rs(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const r=e.deps[e._depsLength];r!==t?(r&&xs(r,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Cn=[];function Os(e,t,n){Zn();for(const r of e.keys()){let s;r._dirtyLevel<t&&(s??(s=e.get(r)===r._trackId))&&(r._shouldSchedule||(r._shouldSchedule=r._dirtyLevel===0),r._dirtyLevel=t),r._shouldSchedule&&(s??(s=e.get(r)===r._trackId))&&(r.trigger(),(!r._runnings||r.allowRecurse)&&r._dirtyLevel!==2&&(r._shouldSchedule=!1,r.scheduler&&Cn.push(r.scheduler)))}Qn()}const Ts=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},An=new WeakMap,ze=Symbol(""),Pn=Symbol("");function le(e,t,n){if(Ie&&We){let r=An.get(e);r||An.set(e,r=new Map);let s=r.get(n);s||r.set(n,s=Ts(()=>r.delete(n))),Rs(We,s)}}function Ae(e,t,n,r,s,o){const i=An.get(e);if(!i)return;let l=[];if(t==="clear")l=[...i.values()];else if(n==="length"&&L(e)){const c=Number(r);i.forEach((a,u)=>{(u==="length"||!nt(u)&&u>=c)&&l.push(a)})}else switch(n!==void 0&&l.push(i.get(n)),t){case"add":L(e)?Jn(n)&&l.push(i.get("length")):(l.push(i.get(ze)),dt(e)&&l.push(i.get(Pn)));break;case"delete":L(e)||(l.push(i.get(ze)),dt(e)&&l.push(i.get(Pn)));break;case"set":dt(e)&&l.push(i.get(ze));break}Zn();for(const c of l)c&&Os(c,4);Qn()}const ni=Wn("__proto__,__v_isRef,__isVue"),Cs=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(nt)),Ar=ri();function ri(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=$(this);for(let o=0,i=this.length;o<i;o++)le(r,"get",o+"");const s=r[t](...n);return s===-1||s===!1?r[t](...n.map($)):s}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){je(),Zn();const r=$(this)[t].apply(this,n);return Qn(),Ue(),r}}),e}function si(e){nt(e)||(e=String(e));const t=$(this);return le(t,"has",e),t.hasOwnProperty(e)}class As{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){const s=this._isReadonly,o=this._isShallow;if(n==="__v_
* @vue/runtime-core v3.4.31
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
2024-07-16 17:01:09 +02:00
**/function Me(e,t,n,r){try{return r?e(...r):e()}catch(s){Zt(s,t,n)}}function ge(e,t,n,r){if(M(e)){const s=Me(e,t,n,r);return s&&bs(s)&&s.catch(o=>{Zt(o,t,n)}),s}if(L(e)){const s=[];for(let o=0;o<e.length;o++)s.push(ge(e[o],t,n,r));return s}}function Zt(e,t,n,r=!0){const s=t?t.vnode:null;if(t){let o=t.parent;const i=t.proxy,l=`https://vuejs.org/error-reference/#runtime-${n}`;for(;o;){const a=o.ec;if(a){for(let u=0;u<a.length;u++)if(a[u](e,i,l)===!1)return}o=o.parent}const c=t.appContext.config.errorHandler;if(c){je(),Me(c,null,10,[e,i,l]),Ue();return}}Ti(e,n,s,r)}function Ti(e,t,n,r=!0){console.error(e)}let yt=!1,Nn=!1;const ee=[];let Se=0;const Qe=[];let ve=null,qe=0;const Us=Promise.resolve();let ir=null;function Ci(e){const t=ir||Us;return e?t.then(this?e.bind(this):e):t}function Ai(e){let t=Se+1,n=ee.length;for(;t<n;){const r=t+n>>>1,s=ee[r],o=_t(s);o<e||o===e&&s.pre?t=r+1:n=r}return t}function lr(e){(!ee.length||!ee.includes(e,yt&&e.allowRecurse?Se+1:Se))&&(e.id==null?ee.push(e):ee.splice(Ai(e.id),0,e),Ds())}function Ds(){!yt&&!Nn&&(Nn=!0,ir=Us.then(Hs))}function Pi(e){const t=ee.indexOf(e);t>Se&&ee.splice(t,1)}function Fi(e){L(e)?Qe.push(...e):(!ve||!ve.includes(e,e.allowRecurse?qe+1:qe))&&Qe.push(e),Ds()}function Lr(e,t,n=yt?Se+1:0){for(;n<ee.length;n++){const r=ee[n];if(r&&r.pre){if(e&&r.id!==e.uid)continue;ee.splice(n,1),n--,r()}}}function Bs(e){if(Qe.length){const t=[...new Set(Qe)].sort((n,r)=>_t(n)-_t(r));if(Qe.length=0,ve){ve.push(...t);return}for(ve=t,qe=0;qe<ve.length;qe++){const n=ve[qe];n.active!==!1&&n()}ve=null,qe=0}}const _t=e=>e.id==null?1/0:e.id,Ni=(e,t)=>{const n=_t(e)-_t(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Hs(e){Nn=!1,yt=!0,ee.sort(Ni);try{for(Se=0;Se<ee.length;Se++){const t=ee[Se];t&&t.active!==!1&&Me(t,null,14)}}finally{Se=0,ee.length=0,Bs(),yt=!1,ir=null,(ee.length||Qe.length)&&Hs()}}function vi(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||z;let s=n;const o=t.startsWith("update:"),i=o&&t.slice(7);if(i&&i in r){const u=`${i==="modelValue"?"model":i}Modifiers`,{number:p,trim:x}=r[u]||z;x&&(s=n.map(T=>Z(T)?T.trim():T)),p&&(s=n.map(Wo))}let l,c=r[l=dn(t)]||r[l=dn(et(t))];!c&&o&&(c=r[l=dn(rt(t))]),c&&ge(c,e,6,s);const a=r[l+"Once"];if(a){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,ge(a,e,6,s)}}function $s(e,t,n=!1){const r=t.emitsCache,s=r.get(e);if(s!==void 0)return s;const o=e.emits;let i={},l=!1;if(!M(e)){const c=a=>{const u=$s(a,t,!0);u&&(l=!0,Y(i,u))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!o&&!l?(J(e)&&r.set(e,null),null):(L(o)?o.forEach(c=>i[c]=null):Y(i,o),J(e)&&r.set(e,i),i)}function Qt(e,t){return!e||!Jt(t)?!1:(t=t.slice(2).replace(/Once$/,""),D(e,t[0].toLowerCase()+t.slice(1))||D(e,rt(t))||D(e,t))}let Re=null,Vs=null;function qt(e){const t=Re;return Re=e,Vs=e&&e.type.__scopeId||null,t}function Li(e,t=Re,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&Kr(-1);const o=qt(t);let i;try{i=e(...s)}finally{qt(o),r._d&&Kr(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function mn(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[o],slots:i,attrs:l,emit:c,render:a,renderCache:u,props:p,data:x,setupState:T,ctx:S,inheritAttrs:O}=e,H=qt(e);let U,V;try{if(n.shapeFlag&4){const W=s||r,se=W;U=xe(a.call(se,W,u,p,T,x,S)),V=l}else{const W=t;U=xe(W.length>1?W(p,{attrs:l,slots:i,emit:c}):W(p,null)),V=t.props?l:Ii(l)}}catch(W){bt.length=0,Zt(W,e,1),U=ke(wt)}let F=U;if(V&&O!==!1){const W=Object.keys(V),{shapeFlag:se}=F;W.length&&se&7&&(o&&W.some(zn)&&(V=Mi(V,o)),F=tt(F,V,!1,!0))}return n.dirs&&(F=tt(F,null,!1,!0),F.dirs=F.dirs?F.dirs.concat(n.dirs):n.dirs),n.transition&&(F.transition=n.transition),U=F,qt(H),U}const Ii=e=>{let t;for(const n in e)(n==="class"||n==="style"||Jt(n))&&((t||(t={}))[n]=e[n]);return t},Mi=(e,t)=>{const n={};for(const r in e)(!zn(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function ji(e,t,n){const{props:r,children:s,component:o}=e,{props:i,children:l,patchFlag:c}=t,a=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&10
* @vue/runtime-dom v3.4.31
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
2024-07-16 17:01:09 +02:00
**/const Hl="http://www.w3.org/2000/svg",$l="http://www.w3.org/1998/Math/MathML",Te=typeof document<"u"?document:null,Jr=Te&&Te.createElement("template"),Vl={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t==="svg"?Te.createElementNS(Hl,e):t==="mathml"?Te.createElementNS($l,e):n?Te.createElement(e,{is:n}):Te.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>Te.createTextNode(e),createComment:e=>Te.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Te.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,o){const i=n?n.previousSibling:t.lastChild;if(s&&(s===o||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===o||!(s=s.nextSibling)););else{Jr.innerHTML=r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e;const l=Jr.content;if(r==="svg"||r==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},ql=Symbol("_vtc");function Kl(e,t,n){const r=e[ql];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Gr=Symbol("_vod"),Wl=Symbol("_vsh"),zl=Symbol(""),kl=/(^|;)\s*display\s*:/;function Jl(e,t,n){const r=e.style,s=Z(n);let o=!1;if(n&&!s){if(t)if(Z(t))for(const i of t.split(";")){const l=i.slice(0,i.indexOf(":")).trim();n[l]==null&&Bt(r,l,"")}else for(const i in t)n[i]==null&&Bt(r,i,"");for(const i in n)i==="display"&&(o=!0),Bt(r,i,n[i])}else if(s){if(t!==n){const i=r[zl];i&&(n+=";"+i),r.cssText=n,o=kl.test(n)}}else t&&e.removeAttribute("style");Gr in e&&(e[Gr]=o?r.display:"",e[Wl]&&(r.display="none"))}const Xr=/\s*!important$/;function Bt(e,t,n){if(L(n))n.forEach(r=>Bt(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Gl(e,t);Xr.test(n)?e.setProperty(rt(r),n.replace(Xr,""),"important"):e[r]=n}}const Yr=["Webkit","Moz","ms"],wn={};function Gl(e,t){const n=wn[t];if(n)return n;let r=et(t);if(r!=="filter"&&r in e)return wn[t]=r;r=ys(r);for(let s=0;s<Yr.length;s++){const o=Yr[s]+r;if(o in e)return wn[t]=o}return t}const Zr="http://www.w3.org/1999/xlink";function Qr(e,t,n,r,s,o=Yo(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Zr,t.slice(6,t.length)):e.setAttributeNS(Zr,t,n):n==null||o&&!Es(n)?e.removeAttribute(t):e.setAttribute(t,o?"":nt(n)?String(n):n)}function Xl(e,t,n,r,s,o,i){if(t==="innerHTML"||t==="textContent"){r&&i(r,s,o),e[t]=n??"";return}const l=e.tagName;if(t==="value"&&l!=="PROGRESS"&&!l.includes("-")){const a=l==="OPTION"?e.getAttribute("value")||"":e.value,u=n==null?"":String(n);(a!==u||!("_value"in e))&&(e.value=u),n==null&&e.removeAttribute(t),e._value=n;return}let c=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=Es(n):n==null&&a==="string"?(n="",c=!0):a==="number"&&(n=0,c=!0)}try{e[t]=n}catch{}c&&e.removeAttribute(t)}function Yl(e,t,n,r){e.addEventListener(t,n,r)}function Zl(e,t,n,r){e.removeEventListener(t,n,r)}const es=Symbol("_vei");function Ql(e,t,n,r,s=null){const o=e[es]||(e[es]={}),i=o[t];if(r&&i)i.value=r;else{const[l,c]=ec(t);if(r){const a=o[t]=rc(r,s);Yl(e,l,a,c)}else i&&(Zl(e,l,i,c),o[t]=void 0)}}const ts=/(?:Once|Passive|Capture)$/;function ec(e){let t;if(ts.test(e)){t={};let r;for(;r=e.match(ts);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):rt(e.slice(2)),t]}let En=0;const tc=Promise.resolve(),nc=()=>En||(tc.then(()=>En=0),En=Date.now());function rc(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;ge(sc(r,n.value),t,5,[r])};return n.value=e,n.attached=nc(),n}function sc(e,t){if(L(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const ns=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===
`).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&bf[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},fs=Symbol("internals");function ut(e){return e&&String(e).trim().toLowerCase()}function $t(e){return e===!1||e==null?e:h.isArray(e)?e.map($t):String(e)}function _f(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const wf=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Sn(e,t,n,r,s){if(h.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!h.isString(t)){if(h.isString(r))return t.indexOf(r)!==-1;if(h.isRegExp(r))return r.test(t)}}function Ef(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function xf(e,t){const n=h.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,o,i){return this[r].call(this,t,s,o,i)},configurable:!0})})}class ie{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(l,c,a){const u=ut(c);if(!u)throw new Error("header name must be a non-empty string");const p=h.findKey(s,u);(!p||s[p]===void 0||a===!0||a===void 0&&s[p]!==!1)&&(s[p||c]=$t(l))}const i=(l,c)=>h.forEach(l,(a,u)=>o(a,u,c));if(h.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(h.isString(t)&&(t=t.trim())&&!wf(t))i(yf(t),n);else if(h.isHeaders(t))for(const[l,c]of t.entries())o(c,l,r);else t!=null&&o(n,t,r);return this}get(t,n){if(t=ut(t),t){const r=h.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return _f(s);if(h.isFunction(n))return n.call(this,s,r);if(h.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ut(t),t){const r=h.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Sn(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=ut(i),i){const l=h.findKey(r,i);l&&(!n||Sn(r,r[l],l,n))&&(delete r[l],s=!0)}}return h.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||Sn(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return h.forEach(this,(s,o)=>{const i=h.findKey(r,o);if(i){n[i]=$t(s),delete n[o];return}const l=t?Ef(o):String(o).trim();l!==o&&delete n[o],n[l]=$t(s),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return h.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&h.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[fs]=this[fs]={accessors:{}}).accessors,s=this.prototype;function o(i){const l=ut(i);r[l]||(xf(s,i),r[l]=!0)}return h.isArray(t)?t.forEach(o):o(t),this}}ie.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);h.reduceDescriptors(ie.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});h.freezeMethods(ie);function Rn(e,t){const n=this||Ot,r=t||n,s=ie.from(r.headers);let o=r.data;return h.forEach(e,function(l){o=l.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function Co(e){return!!(e&&e.__CANCEL__)}function ot(e,t,n){v.call(this,e??"canceled",v.ERR_CANCELED,t,n),this.name="CanceledError"}h.inherits(ot,v,{__CANCEL__:!0});function Ao(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new v("Request failed with status code "+n.status,[v.ERR_BAD_REQUEST,v.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Sf(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Rf(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(c){const a=Date.now(),u=r[o];i||(i=a),n[s]=c,r[s]=a;let p=o,x=0;for(;p!==s;)x+=n[p++],p=p%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),a-i<t)return;const T=u&&a-u;return T?Math.round(x*1e3/T):void 0}}function Of(e,t){let n=0;const r=1e3/t;let s=null;return function(){const i=this===!0,l=Date.now();if(i||l-n>r)return s&&(clearTimeout(s),s=null),n=l,e.apply(null,arguments);s||(s=setTimeout(()=>(s=null,n=Date.now(),e.apply(null,arguments)),r-(l-n)))}}const zt=(e,t,n=3)=>{let r=0;const s=Rf(50,250);return Of(o=>{const i=o.loaded,l=o.lengthComputable?o.total:void 0,c=i-r,a=s(c),u=i<=l;r=i;const p={loaded:i,total:l,progress:l?i/l:void 0,bytes:c,rate:a||void 0,estimated:a&&l&&u?(l-i)/a:void 0,event:o,lengthComputable:l!=null};p[t?"download":"upload"]=!0,e(p)},n)},Tf=be.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function s(o){let i=o;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=s(window.location.href),function(i){const l=h.isString(i)?s(i):i;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}(),Cf=be.hasStandardBrowserEnv?{write(e,t,n,r,s,o){const i=[e+"="+encodeURIComponent(t)];h.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),h.isString(r)&&i.push("path="+r),h.isString(s)&&i.push("domain="+s),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Af(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Pf(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Po(e,t){return e&&!Af(t)?Pf(e,t):t}const us=e=>e instanceof ie?{...e}:e;function Xe(e,t){t=t||{};const n={};function r(a,u,p){return h.isPlainObject(a)&&h.isPlainObject(u)?h.merge.call({caseless:p},a,u):h.isPlainObject(u)?h.merge({},u):h.isArray(u)?u.slice():u}function s(a,u,p){if(h.isUndefined(u)){if(!h.isUndefined(a))return r(void 0,a,p)}else return r(a,u,p)}function o(a,u){if(!h.isUndefined(u))return r(void 0,u)}function i(a,u){if(h.isUndefined(u)){if(!h.isUndefined(a))return r(void 0,a)}else return r(void 0,u)}function l(a,u,p){if(p in t)return r(a,u);if(p in e)return r(void 0,a)}const c={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,w
`+o.map(ps).join(`
`):" "+ps(o[0]):"as no adapter specified";throw new v("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:Vn};function On(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ot(null,e)}function ms(e){return On(e),e.headers=ie.from(e.headers),e.data=Rn.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),vo.getAdapter(e.adapter||Ot.adapter)(e).then(function(r){return On(e),r.data=Rn.call(e,e.transformResponse,r),r.headers=ie.from(r.headers),r},function(r){return Co(r)||(On(e),r&&r.response&&(r.response.data=Rn.call(e,e.transformResponse,r.response),r.response.headers=ie.from(r.response.headers))),Promise.reject(r)})}const Lo="1.7.2",mr={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{mr[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const gs={};mr.transitional=function(t,n,r){function s(o,i){return"[Axios v"+Lo+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,l)=>{if(t===!1)throw new v(s(i," has been removed"+(n?" in "+n:"")),v.ERR_DEPRECATED);return n&&!gs[i]&&(gs[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,l):!0}};function Hf(e,t,n){if(typeof e!="object")throw new v("options must be an object",v.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],i=t[o];if(i){const l=e[o],c=l===void 0||i(l,o,e);if(c!==!0)throw new v("option "+o+" must be "+c,v.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new v("Unknown option "+o,v.ERR_BAD_OPTION)}}const qn={assertOptions:Hf,validators:mr},Ne=qn.validators;class Je{constructor(t){this.defaults=t,this.interceptors={request:new cs,response:new cs}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s;Error.captureStackTrace?Error.captureStackTrace(s={}):s=new Error;const o=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Xe(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&qn.assertOptions(r,{silentJSONParsing:Ne.transitional(Ne.boolean),forcedJSONParsing:Ne.transitional(Ne.boolean),clarifyTimeoutError:Ne.transitional(Ne.boolean)},!1),s!=null&&(h.isFunction(s)?n.paramsSerializer={serialize:s}:qn.assertOptions(s,{encode:Ne.function,serialize:Ne.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&h.merge(o.common,o[n.method]);o&&h.forEach(["delete","get","head","post","put","patch","common"],S=>{delete o[S]}),n.headers=ie.concat(i,o);const l=[];let c=!0;this.interceptors.request.forEach(function(O){typeof O.runWhen=="function"&&O.runWhen(n)===!1||(c=c&&O.synchronous,l.unshift(O.fulfilled,O.rejected))});const a=[];this.interceptors.response.forEach(function(O){a.push(O.fulfilled,O.rejected)});let u,p=0,x;if(!c){const S=[ms.bind(this),void 0];for(S.unshift.apply(S,l),S.push.apply(S,a),x=S.length,u=Promise.resolve(n);p<x;)u=u.then(S[p++],S[p++]);return u}x=l.length;let T=n;for(p=0;p<x;){const S=l[p++],O=l[p++];try{T=S(T)}catch(H){O.call(this,H);break}}try{u=ms.call(this,T)}catch(S){return Promise.reject(S)}for(p=0,x=a.length;p<x;)u=u.then(a[p++],a[p++]);return u}getUri(t){t=Xe(this.defaults,t);const n=Po(t.baseURL,t.url);return Ro(n,t.params,t.paramsSerializer)}}h.forEach(["delete","get","head","options"],function(t){Je.prototype[t]=function(n,r){return this.request(Xe(r||{},{method:t,url:n,data:(r||{}).data}))}});h.forEach(["post","put","patch"],function(t){function n(r){return function(o,i,l){return this.request(Xe(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}Je.prototype[t]=n(),Je.prototype[t+"Form"]=n(!0)});class gr{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(s=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(l=>{r.subscribe(l),o=l}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,l){r.reason||(r.reason=new ot(o,i,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new gr(function(s){t=s}),cancel:t}}}function $f(e){return function(n){return e.apply(null,n)}}function Vf(e){return h.isObject(e)&&e.isAxiosError===!0}const Kn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Kn).forEach(([e,t])=>{Kn[t]=e});function Io(e){const t=new Je(e),n=ao(Je.prototype.request,t);return h.extend(n,Je.