const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/LoginView-CRMjBBAt.js","assets/ThemeToggle-BwEr7zqG.js","assets/ThemeToggle-TlFQ-tzG.css","assets/LoginView-CLYg7eFn.css","assets/RegisterView-fepIe43l.js","assets/RegisterView-B62gaQGk.css","assets/ChatView-Cn2buOgM.js","assets/IconMovie-Do5w9adN.js","assets/ChatView-D1k-o63R.css","assets/ShortDramaView-NKkZzpXF.js","assets/ShortDramaView-hCNvQ81a.css"])))=>i.map(i=>d[i]); (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();/** * @vue/shared v3.5.39 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function eo(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const de={},ln=[],yt=()=>{},il=()=>!1,Bs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),js=e=>e.startsWith("onUpdate:"),Se=Object.assign,to=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Ca=Object.prototype.hasOwnProperty,le=(e,t)=>Ca.call(e,t),W=Array.isArray,cn=e=>Yn(e)==="[object Map]",_n=e=>Yn(e)==="[object Set]",Lo=e=>Yn(e)==="[object Date]",Q=e=>typeof e=="function",pe=e=>typeof e=="string",et=e=>typeof e=="symbol",ce=e=>e!==null&&typeof e=="object",ll=e=>(ce(e)||Q(e))&&Q(e.then)&&Q(e.catch),cl=Object.prototype.toString,Yn=e=>cl.call(e),Oa=e=>Yn(e).slice(8,-1),al=e=>Yn(e)==="[object Object]",Hs=e=>pe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Dn=eo(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Vs=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},Ta=/-\w/g,Be=Vs(e=>e.replace(Ta,t=>t.slice(1).toUpperCase())),xa=/\B([A-Z])/g,jt=Vs(e=>e.replace(xa,"-$1").toLowerCase()),qs=Vs(e=>e.charAt(0).toUpperCase()+e.slice(1)),ar=Vs(e=>e?`on${qs(e)}`:""),mt=(e,t)=>!Object.is(e,t),ps=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},$s=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Pa=e=>{const t=pe(e)?Number(e):NaN;return isNaN(t)?e:t};let Mo;const Ks=()=>Mo||(Mo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function no(e){if(W(e)){const t={};for(let n=0;n{if(n){const s=n.split(Ia);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Ws(e){let t="";if(pe(e))t=e;else if(W(e))for(let n=0;nbn(n,t))}const dl=e=>!!(e&&e.__v_isRef===!0),xn=e=>pe(e)?e:e==null?"":W(e)||ce(e)&&(e.toString===cl||!Q(e.toString))?dl(e)?xn(e.value):JSON.stringify(e,hl,2):String(e),hl=(e,t)=>dl(t)?hl(e,t.value):cn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],o)=>(n[ur(s,o)+" =>"]=r,n),{})}:_n(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>ur(n))}:et(t)?ur(t):ce(t)&&!W(t)&&!al(t)?String(t):t,ur=(e,t="")=>{var n;return et(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** * @vue/reactivity v3.5.39 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let ve;class pl{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&ve&&(ve.active?(this.parent=ve,this.index=(ve.scopes||(ve.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0&&--this._on===0){if(ve===this)ve=this.prevScope;else{let t=ve;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n0)return;if(Mn){let t=Mn;for(Mn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Ln;){let t=Ln;for(Ln=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function El(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function wl(e){let t,n=e.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),io(s),Ba(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=n}function xr(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Sl(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Sl(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===qn)||(e.globalVersion=qn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!xr(e))))return;e.flags|=2;const t=e.dep,n=he,s=nt;he=e,nt=!0;try{El(e);const r=e.fn(e._value);(t.version===0||mt(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{he=n,nt=s,wl(e),e.flags&=-3}}function io(e,t=!1){const{dep:n,prevSub:s,nextSub:r}=e;if(s&&(s.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)io(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Ba(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let nt=!0;const Rl=[];function _t(){Rl.push(nt),nt=!1}function bt(){const e=Rl.pop();nt=e===void 0?!0:e}function Fo(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=he;he=void 0;try{t()}finally{he=n}}}let qn=0;class ja{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class lo{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!he||!nt||he===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==he)n=this.activeLink=new ja(he,this),he.deps?(n.prevDep=he.depsTail,he.depsTail.nextDep=n,he.depsTail=n):he.deps=he.depsTail=n,vl(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=he.depsTail,n.nextDep=void 0,he.depsTail.nextDep=n,he.depsTail=n,he.deps===n&&(he.deps=s)}return n}trigger(t){this.version++,qn++,this.notify(t)}notify(t){ro();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{oo()}}}function vl(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)vl(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Rs=new WeakMap,Jt=Symbol(""),Pr=Symbol(""),$n=Symbol("");function Pe(e,t,n){if(nt&&he){let s=Rs.get(e);s||Rs.set(e,s=new Map);let r=s.get(n);r||(s.set(n,r=new lo),r.map=s,r.key=n),r.track()}}function vt(e,t,n,s,r,o){const i=Rs.get(e);if(!i){qn++;return}const l=c=>{c&&c.trigger()};if(ro(),t==="clear")i.forEach(l);else{const c=W(e),u=c&&Hs(n);if(c&&n==="length"){const a=Number(s);i.forEach((f,d)=>{(d==="length"||d===$n||!et(d)&&d>=a)&&l(f)})}else switch((n!==void 0||i.has(void 0))&&l(i.get(n)),u&&l(i.get($n)),t){case"add":c?u&&l(i.get("length")):(l(i.get(Jt)),cn(e)&&l(i.get(Pr)));break;case"delete":c||(l(i.get(Jt)),cn(e)&&l(i.get(Pr)));break;case"set":cn(e)&&l(i.get(Jt));break}}oo()}function Ha(e,t){const n=Rs.get(e);return n&&n.get(t)}function tn(e){const t=ne(e);return t===e?t:(Pe(t,"iterate",$n),ze(e)?t:t.map(st))}function Gs(e){return Pe(e=ne(e),"iterate",$n),e}function ht(e,t){return Tt(e)?fn(Ct(e)?st(t):t):st(t)}const Va={__proto__:null,[Symbol.iterator](){return dr(this,Symbol.iterator,e=>ht(this,e))},concat(...e){return tn(this).concat(...e.map(t=>W(t)?tn(t):t))},entries(){return dr(this,"entries",e=>(e[1]=ht(this,e[1]),e))},every(e,t){return Et(this,"every",e,t,void 0,arguments)},filter(e,t){return Et(this,"filter",e,t,n=>n.map(s=>ht(this,s)),arguments)},find(e,t){return Et(this,"find",e,t,n=>ht(this,n),arguments)},findIndex(e,t){return Et(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Et(this,"findLast",e,t,n=>ht(this,n),arguments)},findLastIndex(e,t){return Et(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Et(this,"forEach",e,t,void 0,arguments)},includes(...e){return hr(this,"includes",e)},indexOf(...e){return hr(this,"indexOf",e)},join(e){return tn(this).join(e)},lastIndexOf(...e){return hr(this,"lastIndexOf",e)},map(e,t){return Et(this,"map",e,t,void 0,arguments)},pop(){return Rn(this,"pop")},push(...e){return Rn(this,"push",e)},reduce(e,...t){return ko(this,"reduce",e,t)},reduceRight(e,...t){return ko(this,"reduceRight",e,t)},shift(){return Rn(this,"shift")},some(e,t){return Et(this,"some",e,t,void 0,arguments)},splice(...e){return Rn(this,"splice",e)},toReversed(){return tn(this).toReversed()},toSorted(e){return tn(this).toSorted(e)},toSpliced(...e){return tn(this).toSpliced(...e)},unshift(...e){return Rn(this,"unshift",e)},values(){return dr(this,"values",e=>ht(this,e))}};function dr(e,t,n){const s=Gs(e),r=s[t]();return s!==e&&!ze(e)&&(r._next=r.next,r.next=()=>{const o=r._next();return o.done||(o.value=n(o.value)),o}),r}const qa=Array.prototype;function Et(e,t,n,s,r,o){const i=Gs(e),l=i!==e&&!ze(e),c=i[t];if(c!==qa[t]){const f=c.apply(e,o);return l?st(f):f}let u=n;i!==e&&(l?u=function(f,d){return n.call(this,ht(e,f),d,e)}:n.length>2&&(u=function(f,d){return n.call(this,f,d,e)}));const a=c.call(i,u,s);return l&&r?r(a):a}function ko(e,t,n,s){const r=Gs(e),o=r!==e&&!ze(e);let i=n,l=!1;r!==e&&(o?(l=s.length===0,i=function(u,a,f){return l&&(l=!1,u=ht(e,u)),n.call(this,u,ht(e,a),f,e)}):n.length>3&&(i=function(u,a,f){return n.call(this,u,a,f,e)}));const c=r[t](i,...s);return l?ht(e,c):c}function hr(e,t,n){const s=ne(e);Pe(s,"iterate",$n);const r=s[t](...n);return(r===-1||r===!1)&&zs(n[0])?(n[0]=ne(n[0]),s[t](...n)):r}function Rn(e,t,n=[]){_t(),ro();const s=ne(e)[t].apply(e,n);return oo(),bt(),s}const $a=eo("__proto__,__v_isRef,__isVue"),Al=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(et));function Ka(e){et(e)||(e=String(e));const t=ne(this);return Pe(t,"has",e),t.hasOwnProperty(e)}class Cl{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const r=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return o;if(n==="__v_raw")return s===(r?o?tu:Pl:o?xl:Tl).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const i=W(t);if(!r){let c;if(i&&(c=Va[n]))return c;if(n==="hasOwnProperty")return Ka}const l=Reflect.get(t,n,_e(t)?t:s);if((et(n)?Al.has(n):$a(n))||(r||Pe(t,"get",n),o))return l;if(_e(l)){const c=i&&Hs(n)?l:l.value;return r&&ce(c)?Ir(c):c}return ce(l)?r?Ir(l):Zn(l):l}}class Ol extends Cl{constructor(t=!1){super(!1,t)}set(t,n,s,r){let o=t[n];const i=W(t)&&Hs(n);if(!this._isShallow){const u=Tt(o);if(!ze(s)&&!Tt(s)&&(o=ne(o),s=ne(s)),!i&&_e(o)&&!_e(s))return u||(o.value=s),!0}const l=i?Number(n)e,ls=e=>Reflect.getPrototypeOf(e);function Xa(e,t,n){return function(...s){const r=this.__v_raw,o=ne(r),i=cn(o),l=e==="entries"||e===Symbol.iterator&&i,c=e==="keys"&&i,u=r[e](...s),a=n?Nr:t?fn:st;return!t&&Pe(o,"iterate",c?Pr:Jt),Se(Object.create(u),{next(){const{value:f,done:d}=u.next();return d?{value:f,done:d}:{value:l?[a(f[0]),a(f[1])]:a(f),done:d}}})}}function cs(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Qa(e,t){const n={get(r){const o=this.__v_raw,i=ne(o),l=ne(r);e||(mt(r,l)&&Pe(i,"get",r),Pe(i,"get",l));const{has:c}=ls(i),u=t?Nr:e?fn:st;if(c.call(i,r))return u(o.get(r));if(c.call(i,l))return u(o.get(l));o!==i&&o.get(r)},get size(){const r=this.__v_raw;return!e&&Pe(ne(r),"iterate",Jt),r.size},has(r){const o=this.__v_raw,i=ne(o),l=ne(r);return e||(mt(r,l)&&Pe(i,"has",r),Pe(i,"has",l)),r===l?o.has(r):o.has(r)||o.has(l)},forEach(r,o){const i=this,l=i.__v_raw,c=ne(l),u=t?Nr:e?fn:st;return!e&&Pe(c,"iterate",Jt),l.forEach((a,f)=>r.call(o,u(a),u(f),i))}};return Se(n,e?{add:cs("add"),set:cs("set"),delete:cs("delete"),clear:cs("clear")}:{add(r){const o=ne(this),i=ls(o),l=ne(r),c=!t&&!ze(r)&&!Tt(r)?l:r;return i.has.call(o,c)||mt(r,c)&&i.has.call(o,r)||mt(l,c)&&i.has.call(o,l)||(o.add(c),vt(o,"add",c,c)),this},set(r,o){!t&&!ze(o)&&!Tt(o)&&(o=ne(o));const i=ne(this),{has:l,get:c}=ls(i);let u=l.call(i,r);u||(r=ne(r),u=l.call(i,r));const a=c.call(i,r);return i.set(r,o),u?mt(o,a)&&vt(i,"set",r,o):vt(i,"add",r,o),this},delete(r){const o=ne(this),{has:i,get:l}=ls(o);let c=i.call(o,r);c||(r=ne(r),c=i.call(o,r)),l&&l.call(o,r);const u=o.delete(r);return c&&vt(o,"delete",r,void 0),u},clear(){const r=ne(this),o=r.size!==0,i=r.clear();return o&&vt(r,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=Xa(r,e,t)}),n}function co(e,t){const n=Qa(e,t);return(s,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(le(n,r)&&r in s?n:s,r,o)}const Ya={get:co(!1,!1)},Za={get:co(!1,!0)},eu={get:co(!0,!1)};const Tl=new WeakMap,xl=new WeakMap,Pl=new WeakMap,tu=new WeakMap;function nu(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Zn(e){return Tt(e)?e:ao(e,!1,Ga,Ya,Tl)}function Nl(e){return ao(e,!1,Ja,Za,xl)}function Ir(e){return ao(e,!0,za,eu,Pl)}function ao(e,t,n,s,r){if(!ce(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const o=r.get(e);if(o)return o;const i=nu(Oa(e));if(i===0)return e;const l=new Proxy(e,i===2?s:n);return r.set(e,l),l}function Ct(e){return Tt(e)?Ct(e.__v_raw):!!(e&&e.__v_isReactive)}function Tt(e){return!!(e&&e.__v_isReadonly)}function ze(e){return!!(e&&e.__v_isShallow)}function zs(e){return e?!!e.__v_raw:!1}function ne(e){const t=e&&e.__v_raw;return t?ne(t):e}function uo(e){return!le(e,"__v_skip")&&Object.isExtensible(e)&&ul(e,"__v_skip",!0),e}const st=e=>ce(e)?Zn(e):e,fn=e=>ce(e)?Ir(e):e;function _e(e){return e?e.__v_isRef===!0:!1}function xe(e){return Il(e,!1)}function su(e){return Il(e,!0)}function Il(e,t){return _e(e)?e:new ru(e,t)}class ru{constructor(t,n){this.dep=new lo,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:ne(t),this._value=n?t:st(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||ze(t)||Tt(t);t=s?t:ne(t),mt(t,n)&&(this._rawValue=t,this._value=s?t:st(t),this.dep.trigger())}}function He(e){return _e(e)?e.value:e}const ou={get:(e,t,n)=>t==="__v_raw"?e:He(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return _e(r)&&!_e(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function Dl(e){return Ct(e)?e:new Proxy(e,ou)}function iu(e){const t=W(e)?new Array(e.length):{};for(const n in e)t[n]=cu(e,n);return t}class lu{constructor(t,n,s){this._object=t,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0,this._key=et(n)?n:String(n),this._raw=ne(t);let r=!0,o=t;if(!W(t)||et(this._key)||!Hs(this._key))do r=!zs(o)||ze(o);while(r&&(o=o.__v_raw));this._shallow=r}get value(){let t=this._object[this._key];return this._shallow&&(t=He(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&_e(this._raw[this._key])){const n=this._object[this._key];if(_e(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return Ha(this._raw,this._key)}}function cu(e,t,n){return new lu(e,t,n)}class au{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new lo(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=qn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&he!==this)return bl(this,!0),!0}get value(){const t=this.dep.track();return Sl(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function uu(e,t,n=!1){let s,r;return Q(e)?s=e:(s=e.get,r=e.set),new au(s,r,n)}const as={},vs=new WeakMap;let $t;function fu(e,t=!1,n=$t){if(n){let s=vs.get(n);s||vs.set(n,s=[]),s.push(e)}}function du(e,t,n=de){const{immediate:s,deep:r,once:o,scheduler:i,augmentJob:l,call:c}=n,u=x=>r?x:ze(x)||r===!1||r===0?At(x,1):At(x);let a,f,d,m,R=!1,E=!1;if(_e(e)?(f=()=>e.value,R=ze(e)):Ct(e)?(f=()=>u(e),R=!0):W(e)?(E=!0,R=e.some(x=>Ct(x)||ze(x)),f=()=>e.map(x=>{if(_e(x))return x.value;if(Ct(x))return u(x);if(Q(x))return c?c(x,2):x()})):Q(e)?t?f=c?()=>c(e,2):e:f=()=>{if(d){_t();try{d()}finally{bt()}}const x=$t;$t=a;try{return c?c(e,3,[m]):e(m)}finally{$t=x}}:f=yt,t&&r){const x=f,j=r===!0?1/0:r;f=()=>At(x(),j)}const C=gl(),_=()=>{a.stop(),C&&C.active&&to(C.effects,a)};if(o&&t){const x=t;t=(...j)=>{const q=x(...j);return _(),q}}let w=E?new Array(e.length).fill(as):as;const O=x=>{if(!(!(a.flags&1)||!a.dirty&&!x))if(t){const j=a.run();if(x||r||R||(E?j.some((q,B)=>mt(q,w[B])):mt(j,w))){d&&d();const q=$t;$t=a;try{const B=[j,w===as?void 0:E&&w[0]===as?[]:w,m];w=j,c?c(t,3,B):t(...B)}finally{$t=q}}}else a.run()};return l&&l(O),a=new yl(f),a.scheduler=i?()=>i(O,!1):O,m=x=>fu(x,!1,a),d=a.onStop=()=>{const x=vs.get(a);if(x){if(c)c(x,4);else for(const j of x)j();vs.delete(a)}},t?s?O(!0):w=a.run():i?i(O.bind(null,!0),!0):a.run(),_.pause=a.pause.bind(a),_.resume=a.resume.bind(a),_.stop=_,_}function At(e,t=1/0,n){if(t<=0||!ce(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,_e(e))At(e.value,t,n);else if(W(e))for(let s=0;s{At(s,t,n)});else if(al(e)){for(const s in e)At(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&At(e[s],t,n)}return e}/** * @vue/runtime-core v3.5.39 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function es(e,t,n,s){try{return s?e(...s):e()}catch(r){Js(r,t,n)}}function tt(e,t,n,s){if(Q(e)){const r=es(e,t,n,s);return r&&ll(r)&&r.catch(o=>{Js(o,t,n)}),r}if(W(e)){const r=[];for(let o=0;o>>1,r=Fe[s],o=Kn(r);o=Kn(n)?Fe.push(e):Fe.splice(pu(t),0,e),e.flags|=1,Ml()}}function Ml(){As||(As=Ll.then(kl))}function mu(e){W(e)?an.push(...e):Mt&&e.id===-1?Mt.splice(rn+1,0,e):e.flags&1||(an.push(e),e.flags|=1),Ml()}function Uo(e,t,n=dt+1){for(;nKn(n)-Kn(s));if(an.length=0,Mt){Mt.push(...t);return}for(Mt=t,rn=0;rne.id==null?e.flags&2?-1:1/0:e.id;function kl(e){try{for(dt=0;dt{s._d&&xs(-1);const o=Cs(t);let i;try{i=e(...r)}finally{Cs(o),s._d&&xs(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function Zm(e,t){if(We===null)return e;const n=nr(We),s=e.dirs||(e.dirs=[]);for(let r=0;r1)return n&&Q(t)?t.call(s&&s.proxy):t}}function gu(){return!!(tr()||Xt)}const yu=Symbol.for("v-scx"),_u=()=>Ze(yu);function Fn(e,t,n){return jl(e,t,n)}function jl(e,t,n=de){const{immediate:s,deep:r,flush:o,once:i}=n,l=Se({},n),c=t&&s||!t&&o!=="post";let u;if(zn){if(o==="sync"){const m=_u();u=m.__watcherHandles||(m.__watcherHandles=[])}else if(!c){const m=()=>{};return m.stop=yt,m.resume=yt,m.pause=yt,m}}const a=Ne;l.call=(m,R,E)=>tt(m,a,R,E);let f=!1;o==="post"?l.scheduler=m=>{Le(m,a&&a.suspense)}:o!=="sync"&&(f=!0,l.scheduler=(m,R)=>{R?m():fo(m)}),l.augmentJob=m=>{t&&(m.flags|=4),f&&(m.flags|=2,a&&(m.id=a.uid,m.i=a))};const d=du(e,t,l);return zn&&(u?u.push(d):c&&d()),d}function bu(e,t,n){const s=this.proxy,r=pe(e)?e.includes(".")?Hl(s,e):()=>s[e]:e.bind(s,s);let o;Q(t)?o=t:(o=t.handler,n=t);const i=ts(this),l=jl(r,o.bind(s),n);return i(),l}function Hl(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;re.__isTeleport,Kt=e=>e&&(e.disabled||e.disabled===""),Eu=e=>e&&(e.defer||e.defer===""),Bo=e=>typeof SVGElement<"u"&&e instanceof SVGElement,jo=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Dr=(e,t)=>{const n=e&&e.to;return pe(n)?t?t(n):null:n},wu={name:"Teleport",__isTeleport:!0,process(e,t,n,s,r,o,i,l,c,u){const{mc:a,pc:f,pbc:d,o:{insert:m,querySelector:R,createText:E,createComment:C,parentNode:_}}=u,w=Kt(t.props);let{dynamicChildren:O}=t;const x=(B,H,P)=>{B.shapeFlag&16&&a(B.children,H,P,r,o,i,l,c)},j=(B=t)=>{const H=Kt(B.props),P=B.target=Dr(B.props,R),V=Lr(P,B,E,m);P&&(i!=="svg"&&Bo(P)?i="svg":i!=="mathml"&&jo(P)&&(i="mathml"),r&&r.isCE&&(r.ce._teleportTargets||(r.ce._teleportTargets=new Set)).add(P),H||(x(B,P,V),Pn(B,!1)))},q=B=>{const H=()=>{if(It.get(B)===H){if(It.delete(B),Kt(B.props)){const P=_(B.el)||n;x(B,P,B.anchor),Pn(B,!0)}j(B)}};It.set(B,H),Le(H,o)};if(e==null){const B=t.el=E(""),H=t.anchor=E("");if(m(B,n,s),m(H,n,s),Eu(t.props)||o&&o.pendingBranch){q(t);return}w&&(x(t,n,H),Pn(t,!0)),j()}else{t.el=e.el;const B=t.anchor=e.anchor,H=It.get(e);if(H){H.flags|=8,It.delete(e),q(t);return}t.targetStart=e.targetStart;const P=t.target=e.target,V=t.targetAnchor=e.targetAnchor,z=Kt(e.props),L=z?n:P,Z=z?B:V;if(i==="svg"||Bo(P)?i="svg":(i==="mathml"||jo(P))&&(i="mathml"),O?(d(e.dynamicChildren,O,L,r,o,i,l),go(e,t,!0)):c||f(e,t,L,Z,r,o,i,l,!1),w)z?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):us(t,n,B,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const te=Dr(t.props,R);te&&(t.target=te,us(t,te,null,u,0))}else z&&us(t,P,V,u,1);Pn(t,w)}},remove(e,t,n,{um:s,o:{remove:r}},o){const{shapeFlag:i,children:l,anchor:c,targetStart:u,targetAnchor:a,target:f,props:d}=e,m=Kt(d),R=o||!m,E=It.get(e);if(E&&(E.flags|=8,It.delete(e)),f&&(r(u),r(a)),o&&r(c),!E&&(m||f)&&i&16)for(let C=0;C{e.isMounted=!0}),ec(()=>{e.isUnmounting=!0}),e}const Qe=[Function,Array],Kl={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Qe,onEnter:Qe,onAfterEnter:Qe,onEnterCancelled:Qe,onBeforeLeave:Qe,onLeave:Qe,onAfterLeave:Qe,onLeaveCancelled:Qe,onBeforeAppear:Qe,onAppear:Qe,onAfterAppear:Qe,onAppearCancelled:Qe},Wl=e=>{const t=e.subTree;return t.component?Wl(t.component):t},vu={name:"BaseTransition",props:Kl,setup(e,{slots:t}){const n=tr(),s=$l();return()=>{const r=t.default&&ho(t.default(),!0),o=r&&r.length?Gl(r):n.subTree?vc():void 0;if(!o)return;const i=ne(e),{mode:l}=i;if(s.isLeaving)return pr(o);const c=Ho(o);if(!c)return pr(o);let u=Wn(c,i,s,n,f=>u=f);c.type!==ke&&Yt(c,u);let a=n.subTree&&Ho(n.subTree);if(a&&a.type!==ke&&!Wt(a,c)&&Wl(n).type!==ke){let f=Wn(a,i,s,n);if(Yt(a,f),l==="out-in"&&c.type!==ke)return s.isLeaving=!0,f.afterLeave=()=>{s.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,a=void 0},pr(o);l==="in-out"&&c.type!==ke?f.delayLeave=(d,m,R)=>{const E=zl(s,a);E[String(a.key)]=a,d[Ye]=()=>{m(),d[Ye]=void 0,delete u.delayedLeave,a=void 0},u.delayedLeave=()=>{R(),delete u.delayedLeave,a=void 0}}:a=void 0}else a&&(a=void 0);return o}}};function Gl(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==ke){t=n;break}}return t}const Au=vu;function zl(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function Wn(e,t,n,s,r){const{appear:o,mode:i,persisted:l=!1,onBeforeEnter:c,onEnter:u,onAfterEnter:a,onEnterCancelled:f,onBeforeLeave:d,onLeave:m,onAfterLeave:R,onLeaveCancelled:E,onBeforeAppear:C,onAppear:_,onAfterAppear:w,onAppearCancelled:O}=t,x=String(e.key),j=zl(n,e),q=(P,V)=>{P&&tt(P,s,9,V)},B=(P,V)=>{const z=V[1];q(P,V),W(P)?P.every(L=>L.length<=1)&&z():P.length<=1&&z()},H={mode:i,persisted:l,beforeEnter(P){let V=c;if(!n.isMounted)if(o)V=C||c;else return;P[Ye]&&P[Ye](!0);const z=j[x];z&&Wt(e,z)&&z.el[Ye]&&z.el[Ye](),q(V,[P])},enter(P){if(j[x]===e)return;let V=u,z=a,L=f;if(!n.isMounted)if(o)V=_||u,z=w||a,L=O||f;else return;let Z=!1;P[vn]=Ee=>{Z||(Z=!0,Ee?q(L,[P]):q(z,[P]),H.delayedLeave&&H.delayedLeave(),P[vn]=void 0)};const te=P[vn].bind(null,!1);V?B(V,[P,te]):te()},leave(P,V){const z=String(e.key);if(P[vn]&&P[vn](!0),n.isUnmounting)return V();q(d,[P]);let L=!1;P[Ye]=te=>{L||(L=!0,V(),te?q(E,[P]):q(R,[P]),P[Ye]=void 0,j[z]===e&&delete j[z])};const Z=P[Ye].bind(null,!1);j[z]=e,m?B(m,[P,Z]):Z()},clone(P){const V=Wn(P,t,n,s,r);return r&&r(V),V}};return H}function pr(e){if(Qs(e))return e=Bt(e),e.children=null,e}function Ho(e){if(!Qs(e))return ql(e.type)&&e.children?Gl(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&Q(n.default))return n.default()}}function Yt(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Yt(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ho(e,t=!1,n){let s=[],r=0;for(let o=0;o1)for(let o=0;okn(E,t&&(W(t)?t[C]:t),n,s,r));return}if(Un(s)&&!r){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&kn(e,t,n,s.component.subTree);return}const o=s.shapeFlag&4?nr(s.component):s.el,i=r?null:o,{i:l,r:c}=e,u=t&&t.r,a=l.refs===de?l.refs={}:l.refs,f=l.setupState,d=ne(f),m=f===de?il:E=>Vo(a,E)?!1:le(d,E),R=(E,C)=>!(C&&Vo(a,C));if(u!=null&&u!==c){if(qo(t),pe(u))a[u]=null,m(u)&&(f[u]=null);else if(_e(u)){const E=t;R(u,E.k)&&(u.value=null),E.k&&(a[E.k]=null)}}if(Q(c)){_t();try{es(c,l,12,[i,a])}finally{bt()}}else{const E=pe(c),C=_e(c);if(E||C){const _=()=>{if(e.f){const w=E?m(c)?f[c]:a[c]:R()||!e.k?c.value:a[e.k];if(r)W(w)&&to(w,o);else if(W(w))w.includes(o)||w.push(o);else if(E)a[c]=[o],m(c)&&(f[c]=a[c]);else{const O=[o];R(c,e.k)&&(c.value=O),e.k&&(a[e.k]=O)}}else E?(a[c]=i,m(c)&&(f[c]=i)):C&&(R(c,e.k)&&(c.value=i),e.k&&(a[e.k]=i))};if(i){const w=()=>{_(),Os.delete(e)};w.id=-1,Os.set(e,w),Le(w,n)}else qo(e),_()}}}function qo(e){const t=Os.get(e);t&&(t.flags|=8,Os.delete(e))}Ks().requestIdleCallback;Ks().cancelIdleCallback;const Un=e=>!!e.type.__asyncLoader,Qs=e=>e.type.__isKeepAlive;function Cu(e,t){Ql(e,"a",t)}function Ou(e,t){Ql(e,"da",t)}function Ql(e,t,n=Ne){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Ys(t,s,n),n){let r=n.parent;for(;r&&r.parent;)Qs(r.parent.vnode)&&Tu(s,t,n,r),r=r.parent}}function Tu(e,t,n,s){const r=Ys(t,e,s,!0);tc(()=>{to(s[t],r)},n)}function Ys(e,t,n=Ne,s=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{_t();const l=ts(n),c=tt(t,n,e,i);return l(),bt(),c});return s?r.unshift(o):r.push(o),o}}const xt=e=>(t,n=Ne)=>{(!zn||e==="sp")&&Ys(e,(...s)=>t(...s),n)},xu=xt("bm"),Yl=xt("m"),Pu=xt("bu"),Zl=xt("u"),ec=xt("bum"),tc=xt("um"),Nu=xt("sp"),Iu=xt("rtg"),Du=xt("rtc");function Lu(e,t=Ne){Ys("ec",e,t)}const nc="components";function Mu(e,t){return rc(nc,e,!0,t)||e}const sc=Symbol.for("v-ndc");function eg(e){return pe(e)?rc(nc,e,!1)||e:e||sc}function rc(e,t,n=!0,s=!1){const r=We||Ne;if(r){const o=r.type;{const l=wf(o,!1);if(l&&(l===t||l===Be(t)||l===qs(Be(t))))return o}const i=$o(r[e]||o[e],t)||$o(r.appContext[e],t);return!i&&s?o:i}}function $o(e,t){return e&&(e[t]||e[Be(t)]||e[qs(Be(t))])}function Fu(e,t,n,s){let r;const o=n,i=W(e);if(i||pe(e)){const l=i&&Ct(e);let c=!1,u=!1;l&&(c=!ze(e),u=Tt(e),e=Gs(e)),r=new Array(e.length);for(let a=0,f=e.length;at(l,c,void 0,o));else{const l=Object.keys(e);r=new Array(l.length);for(let c=0,u=l.length;ce?Ac(e)?nr(e):Mr(e.parent):null,Bn=Se(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Mr(e.parent),$root:e=>Mr(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>ic(e),$forceUpdate:e=>e.f||(e.f=()=>{fo(e.update)}),$nextTick:e=>e.n||(e.n=Xs.bind(e.proxy)),$watch:e=>bu.bind(e)}),mr=(e,t)=>e!==de&&!e.__isScriptSetup&&le(e,t),ku={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:o,accessCache:i,type:l,appContext:c}=e;if(t[0]!=="$"){const d=i[t];if(d!==void 0)switch(d){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return o[t]}else{if(mr(s,t))return i[t]=1,s[t];if(r!==de&&le(r,t))return i[t]=2,r[t];if(le(o,t))return i[t]=3,o[t];if(n!==de&&le(n,t))return i[t]=4,n[t];Fr&&(i[t]=0)}}const u=Bn[t];let a,f;if(u)return t==="$attrs"&&Pe(e.attrs,"get",""),u(e);if((a=l.__cssModules)&&(a=a[t]))return a;if(n!==de&&le(n,t))return i[t]=4,n[t];if(f=c.config.globalProperties,le(f,t))return f[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:o}=e;return mr(r,t)?(r[t]=n,!0):s!==de&&le(s,t)?(s[t]=n,!0):le(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,props:o,type:i}},l){let c;return!!(n[l]||e!==de&&l[0]!=="$"&&le(e,l)||mr(t,l)||le(o,l)||le(s,l)||le(Bn,l)||le(r.config.globalProperties,l)||(c=i.__cssModules)&&c[l])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:le(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Ko(e){return W(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Fr=!0;function Uu(e){const t=ic(e),n=e.proxy,s=e.ctx;Fr=!1,t.beforeCreate&&Wo(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:i,watch:l,provide:c,inject:u,created:a,beforeMount:f,mounted:d,beforeUpdate:m,updated:R,activated:E,deactivated:C,beforeDestroy:_,beforeUnmount:w,destroyed:O,unmounted:x,render:j,renderTracked:q,renderTriggered:B,errorCaptured:H,serverPrefetch:P,expose:V,inheritAttrs:z,components:L,directives:Z,filters:te}=t;if(u&&Bu(u,s,null),i)for(const X in i){const oe=i[X];Q(oe)&&(s[X]=oe.bind(n))}if(r){const X=r.call(n,n);ce(X)&&(e.data=Zn(X))}if(Fr=!0,o)for(const X in o){const oe=o[X],Je=Q(oe)?oe.bind(n,n):Q(oe.get)?oe.get.bind(n,n):yt,Ae=!Q(oe)&&Q(oe.set)?oe.set.bind(n):yt,ae=Ue({get:Je,set:Ae});Object.defineProperty(s,X,{enumerable:!0,configurable:!0,get:()=>ae.value,set:ge=>ae.value=ge})}if(l)for(const X in l)oc(l[X],s,n,X);if(c){const X=Q(c)?c.call(n):c;Reflect.ownKeys(X).forEach(oe=>{ms(oe,X[oe])})}a&&Wo(a,e,"c");function se(X,oe){W(oe)?oe.forEach(Je=>X(Je.bind(n))):oe&&X(oe.bind(n))}if(se(xu,f),se(Yl,d),se(Pu,m),se(Zl,R),se(Cu,E),se(Ou,C),se(Lu,H),se(Du,q),se(Iu,B),se(ec,w),se(tc,x),se(Nu,P),W(V))if(V.length){const X=e.exposed||(e.exposed={});V.forEach(oe=>{Object.defineProperty(X,oe,{get:()=>n[oe],set:Je=>n[oe]=Je,enumerable:!0})})}else e.exposed||(e.exposed={});j&&e.render===yt&&(e.render=j),z!=null&&(e.inheritAttrs=z),L&&(e.components=L),Z&&(e.directives=Z),P&&Xl(e)}function Bu(e,t,n=yt){W(e)&&(e=kr(e));for(const s in e){const r=e[s];let o;ce(r)?"default"in r?o=Ze(r.from||s,r.default,!0):o=Ze(r.from||s):o=Ze(r),_e(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[s]=o}}function Wo(e,t,n){tt(W(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function oc(e,t,n,s){let r=s.includes(".")?Hl(n,s):()=>n[s];if(pe(e)){const o=t[e];Q(o)&&Fn(r,o)}else if(Q(e))Fn(r,e.bind(n));else if(ce(e))if(W(e))e.forEach(o=>oc(o,t,n,s));else{const o=Q(e.handler)?e.handler.bind(n):t[e.handler];Q(o)&&Fn(r,o,e)}}function ic(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,l=o.get(t);let c;return l?c=l:!r.length&&!n&&!s?c=t:(c={},r.length&&r.forEach(u=>Ts(c,u,i,!0)),Ts(c,t,i)),ce(t)&&o.set(t,c),c}function Ts(e,t,n,s=!1){const{mixins:r,extends:o}=t;o&&Ts(e,o,n,!0),r&&r.forEach(i=>Ts(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const l=ju[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const ju={data:Go,props:zo,emits:zo,methods:Nn,computed:Nn,beforeCreate:De,created:De,beforeMount:De,mounted:De,beforeUpdate:De,updated:De,beforeDestroy:De,beforeUnmount:De,destroyed:De,unmounted:De,activated:De,deactivated:De,errorCaptured:De,serverPrefetch:De,components:Nn,directives:Nn,watch:Vu,provide:Go,inject:Hu};function Go(e,t){return t?e?function(){return Se(Q(e)?e.call(this,this):e,Q(t)?t.call(this,this):t)}:t:e}function Hu(e,t){return Nn(kr(e),kr(t))}function kr(e){if(W(e)){const t={};for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Be(t)}Modifiers`]||e[`${jt(t)}Modifiers`];function Wu(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||de;let r=n;const o=t.startsWith("update:"),i=o&&Ku(s,t.slice(7));i&&(i.trim&&(r=n.map(a=>pe(a)?a.trim():a)),i.number&&(r=n.map($s)));let l,c=s[l=ar(t)]||s[l=ar(Be(t))];!c&&o&&(c=s[l=ar(jt(t))]),c&&tt(c,e,6,r);const u=s[l+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,tt(u,e,6,r)}}const Gu=new WeakMap;function cc(e,t,n=!1){const s=n?Gu:t.emitsCache,r=s.get(e);if(r!==void 0)return r;const o=e.emits;let i={},l=!1;if(!Q(e)){const c=u=>{const a=cc(u,t,!0);a&&(l=!0,Se(i,a))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!o&&!l?(ce(e)&&s.set(e,null),null):(W(o)?o.forEach(c=>i[c]=null):Se(i,o),ce(e)&&s.set(e,i),i)}function Zs(e,t){return!e||!Bs(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),le(e,t[0].toLowerCase()+t.slice(1))||le(e,jt(t))||le(e,t))}function Jo(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[o],slots:i,attrs:l,emit:c,render:u,renderCache:a,props:f,data:d,setupState:m,ctx:R,inheritAttrs:E}=e,C=Cs(e);let _,w;try{if(n.shapeFlag&4){const x=r||s,j=x;_=pt(u.call(j,x,a,f,m,d,R)),w=l}else{const x=t;_=pt(x.length>1?x(f,{attrs:l,slots:i,emit:c}):x(f,null)),w=t.props?l:zu(l)}}catch(x){jn.length=0,Js(x,e,1),_=be(ke)}let O=_;if(w&&E!==!1){const x=Object.keys(w),{shapeFlag:j}=O;x.length&&j&7&&(o&&x.some(js)&&(w=Ju(w,o)),O=Bt(O,w,!1,!0))}return n.dirs&&(O=Bt(O,null,!1,!0),O.dirs=O.dirs?O.dirs.concat(n.dirs):n.dirs),n.transition&&Yt(O,n.transition),_=O,Cs(C),_}const zu=e=>{let t;for(const n in e)(n==="class"||n==="style"||Bs(n))&&((t||(t={}))[n]=e[n]);return t},Ju=(e,t)=>{const n={};for(const s in e)(!js(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Xu(e,t,n){const{props:s,children:r,component:o}=e,{props:i,children:l,patchFlag:c}=t,u=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?Xo(s,i,u):!!i;if(c&8){const a=t.dynamicProps;for(let f=0;fObject.create(uc),dc=e=>Object.getPrototypeOf(e)===uc;function Yu(e,t,n,s=!1){const r={},o=fc();e.propsDefaults=Object.create(null),hc(e,t,r,o);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=s?r:Nl(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function Zu(e,t,n,s){const{props:r,attrs:o,vnode:{patchFlag:i}}=e,l=ne(r),[c]=e.propsOptions;let u=!1;if((s||i>0)&&!(i&16)){if(i&8){const a=e.vnode.dynamicProps;for(let f=0;f{c=!0;const[d,m]=pc(f,t,!0);Se(i,d),m&&l.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}if(!o&&!c)return ce(e)&&s.set(e,ln),ln;if(W(o))for(let a=0;ae==="_"||e==="_ctx"||e==="$stable",mo=e=>W(e)?e.map(pt):[pt(e)],tf=(e,t,n)=>{if(t._n)return t;const s=Bl((...r)=>mo(t(...r)),n);return s._c=!1,s},mc=(e,t,n)=>{const s=e._ctx;for(const r in e){if(po(r))continue;const o=e[r];if(Q(o))t[r]=tf(r,o,s);else if(o!=null){const i=mo(o);t[r]=()=>i}}},gc=(e,t)=>{const n=mo(t);e.slots.default=()=>n},yc=(e,t,n)=>{for(const s in t)(n||!po(s))&&(e[s]=t[s])},nf=(e,t,n)=>{const s=e.slots=fc();if(e.vnode.shapeFlag&32){const r=t._;r?(yc(s,t,n),n&&ul(s,"_",r,!0)):mc(t,s)}else t&&gc(e,t)},sf=(e,t,n)=>{const{vnode:s,slots:r}=e;let o=!0,i=de;if(s.shapeFlag&32){const l=t._;l?n&&l===1?o=!1:yc(r,t,n):(o=!t.$stable,mc(t,r)),i=t}else t&&(gc(e,t),i={default:1});if(o)for(const l in r)!po(l)&&i[l]==null&&delete r[l]},Le=af;function rf(e){return of(e)}function of(e,t){const n=Ks();n.__VUE__=!0;const{insert:s,remove:r,patchProp:o,createElement:i,createText:l,createComment:c,setText:u,setElementText:a,parentNode:f,nextSibling:d,setScopeId:m=yt,insertStaticContent:R}=e,E=(h,p,y,v=null,b=null,S=null,D=void 0,N=null,I=!!p.dynamicChildren)=>{if(h===p)return;h&&!Wt(h,p)&&(v=A(h),ge(h,b,S,!0),h=null),p.patchFlag===-2&&(I=!1,p.dynamicChildren=null);const{type:T,ref:$,shapeFlag:U}=p;switch(T){case er:C(h,p,y,v);break;case ke:_(h,p,y,v);break;case gs:h==null&&w(p,y,v,D);break;case Ke:L(h,p,y,v,b,S,D,N,I);break;default:U&1?j(h,p,y,v,b,S,D,N,I):U&6?Z(h,p,y,v,b,S,D,N,I):(U&64||U&128)&&T.process(h,p,y,v,b,S,D,N,I,K)}$!=null&&b?kn($,h&&h.ref,S,p||h,!p):$==null&&h&&h.ref!=null&&kn(h.ref,null,S,h,!0)},C=(h,p,y,v)=>{if(h==null)s(p.el=l(p.children),y,v);else{const b=p.el=h.el;p.children!==h.children&&u(b,p.children)}},_=(h,p,y,v)=>{h==null?s(p.el=c(p.children||""),y,v):p.el=h.el},w=(h,p,y,v)=>{[h.el,h.anchor]=R(h.children,p,y,v,h.el,h.anchor)},O=({el:h,anchor:p},y,v)=>{let b;for(;h&&h!==p;)b=d(h),s(h,y,v),h=b;s(p,y,v)},x=({el:h,anchor:p})=>{let y;for(;h&&h!==p;)y=d(h),r(h),h=y;r(p)},j=(h,p,y,v,b,S,D,N,I)=>{if(p.type==="svg"?D="svg":p.type==="math"&&(D="mathml"),h==null)q(p,y,v,b,S,D,N,I);else{const T=h.el&&h.el._isVueCE?h.el:null;try{T&&T._beginPatch(),P(h,p,b,S,D,N,I)}finally{T&&T._endPatch()}}},q=(h,p,y,v,b,S,D,N)=>{let I,T;const{props:$,shapeFlag:U,transition:G,dirs:J}=h;if(I=h.el=i(h.type,S,$&&$.is,$),U&8?a(I,h.children):U&16&&H(h.children,I,null,v,b,gr(h,S),D,N),J&&Ht(h,null,v,"created"),B(I,h,h.scopeId,D,v),$){for(const fe in $)fe!=="value"&&!Dn(fe)&&o(I,fe,null,$[fe],S,v);"value"in $&&o(I,"value",null,$.value,S),(T=$.onVnodeBeforeMount)&&ut(T,v,h)}J&&Ht(h,null,v,"beforeMount");const re=lf(b,G);re&&G.beforeEnter(I),s(I,p,y),((T=$&&$.onVnodeMounted)||re||J)&&Le(()=>{try{T&&ut(T,v,h),re&&G.enter(I),J&&Ht(h,null,v,"mounted")}finally{}},b)},B=(h,p,y,v,b)=>{if(y&&m(h,y),v)for(let S=0;S{for(let T=I;T{const N=p.el=h.el;let{patchFlag:I,dynamicChildren:T,dirs:$}=p;I|=h.patchFlag&16;const U=h.props||de,G=p.props||de;let J;if(y&&Vt(y,!1),(J=G.onVnodeBeforeUpdate)&&ut(J,y,p,h),$&&Ht(p,h,y,"beforeUpdate"),y&&Vt(y,!0),T&&(!h.dynamicChildren||h.dynamicChildren.length!==T.length)&&(I=0,D=!1,T=null),(U.innerHTML&&G.innerHTML==null||U.textContent&&G.textContent==null)&&a(N,""),T?V(h.dynamicChildren,T,N,y,v,gr(p,b),S):D||oe(h,p,N,null,y,v,gr(p,b),S,!1),I>0){if(I&16)z(N,U,G,y,b);else if(I&2&&U.class!==G.class&&o(N,"class",null,G.class,b),I&4&&o(N,"style",U.style,G.style,b),I&8){const re=p.dynamicProps;for(let fe=0;fe{J&&ut(J,y,p,h),$&&Ht(p,h,y,"updated")},v)},V=(h,p,y,v,b,S,D)=>{for(let N=0;N{if(p!==y){if(p!==de)for(const S in p)!Dn(S)&&!(S in y)&&o(h,S,p[S],null,b,v);for(const S in y){if(Dn(S))continue;const D=y[S],N=p[S];D!==N&&S!=="value"&&o(h,S,N,D,b,v)}"value"in y&&o(h,"value",p.value,y.value,b)}},L=(h,p,y,v,b,S,D,N,I)=>{const T=p.el=h?h.el:l(""),$=p.anchor=h?h.anchor:l("");let{patchFlag:U,dynamicChildren:G,slotScopeIds:J}=p;J&&(N=N?N.concat(J):J),h==null?(s(T,y,v),s($,y,v),H(p.children||[],y,$,b,S,D,N,I)):U>0&&U&64&&G&&h.dynamicChildren&&h.dynamicChildren.length===G.length?(V(h.dynamicChildren,G,y,b,S,D,N),(p.key!=null||b&&p===b.subTree)&&go(h,p,!0)):oe(h,p,y,$,b,S,D,N,I)},Z=(h,p,y,v,b,S,D,N,I)=>{p.slotScopeIds=N,h==null?p.shapeFlag&512?b.ctx.activate(p,y,v,D,I):te(p,y,v,b,S,D,I):Ee(h,p,I)},te=(h,p,y,v,b,S,D)=>{const N=h.component=gf(h,v,b);if(Qs(h)&&(N.ctx.renderer=K),yf(N,!1,D),N.asyncDep){if(b&&b.registerDep(N,se,D),!h.el){const I=N.subTree=be(ke);_(null,I,p,y),h.placeholder=I.el}}else se(N,h,p,y,b,S,D)},Ee=(h,p,y)=>{const v=p.component=h.component;if(Xu(h,p,y))if(v.asyncDep&&!v.asyncResolved){X(v,p,y);return}else v.next=p,v.update();else p.el=h.el,v.vnode=p},se=(h,p,y,v,b,S,D)=>{const N=()=>{if(h.isMounted){let{next:U,bu:G,u:J,parent:re,vnode:fe}=h;{const ct=_c(h);if(ct){U&&(U.el=fe.el,X(h,U,D)),ct.asyncDep.then(()=>{Le(()=>{h.isUnmounted||T()},b)});return}}let ue=U,we;Vt(h,!1),U?(U.el=fe.el,X(h,U,D)):U=fe,G&&ps(G),(we=U.props&&U.props.onVnodeBeforeUpdate)&&ut(we,re,U,fe),Vt(h,!0);const Ce=Jo(h),lt=h.subTree;h.subTree=Ce,E(lt,Ce,f(lt.el),A(lt),h,b,S),U.el=Ce.el,ue===null&&Qu(h,Ce.el),J&&Le(J,b),(we=U.props&&U.props.onVnodeUpdated)&&Le(()=>ut(we,re,U,fe),b)}else{let U;const{el:G,props:J}=p,{bm:re,m:fe,parent:ue,root:we,type:Ce}=h,lt=Un(p);Vt(h,!1),re&&ps(re),!lt&&(U=J&&J.onVnodeBeforeMount)&&ut(U,ue,p),Vt(h,!0);{we.ce&&we.ce._hasShadowRoot()&&we.ce._injectChildStyle(Ce,h.parent?h.parent.type:void 0);const ct=h.subTree=Jo(h);E(null,ct,y,v,h,b,S),p.el=ct.el}if(fe&&Le(fe,b),!lt&&(U=J&&J.onVnodeMounted)){const ct=p;Le(()=>ut(U,ue,ct),b)}(p.shapeFlag&256||ue&&Un(ue.vnode)&&ue.vnode.shapeFlag&256)&&h.a&&Le(h.a,b),h.isMounted=!0,p=y=v=null}};h.scope.on();const I=h.effect=new yl(N);h.scope.off();const T=h.update=I.run.bind(I),$=h.job=I.runIfDirty.bind(I);$.i=h,$.id=h.uid,I.scheduler=()=>fo($),Vt(h,!0),T()},X=(h,p,y)=>{p.component=h;const v=h.vnode.props;h.vnode=p,h.next=null,Zu(h,p.props,v,y),sf(h,p.children,y),_t(),Uo(h),bt()},oe=(h,p,y,v,b,S,D,N,I=!1)=>{const T=h&&h.children,$=h?h.shapeFlag:0,U=p.children,{patchFlag:G,shapeFlag:J}=p;if(G>0){if(G&128){Ae(T,U,y,v,b,S,D,N,I);return}else if(G&256){Je(T,U,y,v,b,S,D,N,I);return}}J&8?($&16&&Y(T,b,S),U!==T&&a(y,U)):$&16?J&16?Ae(T,U,y,v,b,S,D,N,I):Y(T,b,S,!0):($&8&&a(y,""),J&16&&H(U,y,v,b,S,D,N,I))},Je=(h,p,y,v,b,S,D,N,I)=>{h=h||ln,p=p||ln;const T=h.length,$=p.length,U=Math.min(T,$);let G;for(G=0;G$?Y(h,b,S,!0,!1,U):H(p,y,v,b,S,D,N,I,U)},Ae=(h,p,y,v,b,S,D,N,I)=>{let T=0;const $=p.length;let U=h.length-1,G=$-1;for(;T<=U&&T<=G;){const J=h[T],re=p[T]=I?Rt(p[T]):pt(p[T]);if(Wt(J,re))E(J,re,y,null,b,S,D,N,I);else break;T++}for(;T<=U&&T<=G;){const J=h[U],re=p[G]=I?Rt(p[G]):pt(p[G]);if(Wt(J,re))E(J,re,y,null,b,S,D,N,I);else break;U--,G--}if(T>U){if(T<=G){const J=G+1,re=J<$?p[J].el:v;for(;T<=G;)E(null,p[T]=I?Rt(p[T]):pt(p[T]),y,re,b,S,D,N,I),T++}}else if(T>G)for(;T<=U;)ge(h[T],b,S,!0),T++;else{const J=T,re=T,fe=new Map;for(T=re;T<=G;T++){const $e=p[T]=I?Rt(p[T]):pt(p[T]);$e.key!=null&&fe.set($e.key,T)}let ue,we=0;const Ce=G-re+1;let lt=!1,ct=0;const Sn=new Array(Ce);for(T=0;T=Ce){ge($e,b,S,!0);continue}let at;if($e.key!=null)at=fe.get($e.key);else for(ue=re;ue<=G;ue++)if(Sn[ue-re]===0&&Wt($e,p[ue])){at=ue;break}at===void 0?ge($e,b,S,!0):(Sn[at-re]=T+1,at>=ct?ct=at:lt=!0,E($e,p[at],y,null,b,S,D,N,I),we++)}const No=lt?cf(Sn):ln;for(ue=No.length-1,T=Ce-1;T>=0;T--){const $e=re+T,at=p[$e],Io=p[$e+1],Do=$e+1<$?Io.el||bc(Io):v;Sn[T]===0?E(null,at,y,Do,b,S,D,N,I):lt&&(ue<0||T!==No[ue]?ae(at,y,Do,2):ue--)}}},ae=(h,p,y,v,b=null)=>{const{el:S,type:D,transition:N,children:I,shapeFlag:T}=h;if(T&6){ae(h.component.subTree,p,y,v);return}if(T&128){h.suspense.move(p,y,v);return}if(T&64){D.move(h,p,y,K);return}if(D===Ke){s(S,p,y);for(let U=0;UN.enter(S),b));else{const{leave:U,delayLeave:G,afterLeave:J}=N,re=()=>{h.ctx.isUnmounted?r(S):s(S,p,y)},fe=()=>{const ue=S._isLeaving||!!S[Ye];S._isLeaving&&S[Ye](!0),N.persisted&&!ue?re():U(S,()=>{re(),J&&J()})};G?G(S,re,fe):fe()}else s(S,p,y)},ge=(h,p,y,v=!1,b=!1)=>{const{type:S,props:D,ref:N,children:I,dynamicChildren:T,shapeFlag:$,patchFlag:U,dirs:G,cacheIndex:J,memo:re}=h;if(U===-2&&(b=!1),N!=null&&(_t(),kn(N,null,y,h,!0),bt()),J!=null&&(p.renderCache[J]=void 0),$&256){p.ctx.deactivate(h);return}const fe=$&1&&G,ue=!Un(h);let we;if(ue&&(we=D&&D.onVnodeBeforeUnmount)&&ut(we,p,h),$&6)it(h.component,y,v);else{if($&128){h.suspense.unmount(y,v);return}fe&&Ht(h,null,p,"beforeUnmount"),$&64?h.type.remove(h,p,y,K,v):T&&!T.hasOnce&&(S!==Ke||U>0&&U&64)?Y(T,p,y,!1,!0):(S===Ke&&U&384||!b&&$&16)&&Y(I,p,y),v&&qe(h)}const Ce=re!=null&&J==null;(ue&&(we=D&&D.onVnodeUnmounted)||fe||Ce)&&Le(()=>{we&&ut(we,p,h),fe&&Ht(h,null,p,"unmounted"),Ce&&(h.el=null)},y)},qe=h=>{const{type:p,el:y,anchor:v,transition:b}=h;if(p===Ke){Xe(y,v);return}if(p===gs){x(h);return}const S=()=>{r(y),b&&!b.persisted&&b.afterLeave&&b.afterLeave()};if(h.shapeFlag&1&&b&&!b.persisted){const{leave:D,delayLeave:N}=b,I=()=>D(y,S);N?N(h.el,S,I):I()}else S()},Xe=(h,p)=>{let y;for(;h!==p;)y=d(h),r(h),h=y;r(p)},it=(h,p,y)=>{const{bum:v,scope:b,job:S,subTree:D,um:N,m:I,a:T}=h;Yo(I),Yo(T),v&&ps(v),b.stop(),S&&(S.flags|=8,ge(D,h,p,y)),N&&Le(N,p),Le(()=>{h.isUnmounted=!0},p)},Y=(h,p,y,v=!1,b=!1,S=0)=>{for(let D=S;D{if(h.shapeFlag&6)return A(h.component.subTree);if(h.shapeFlag&128)return h.suspense.next();const p=d(h.anchor||h.el),y=p&&p[Vl];return y?d(y):p};let k=!1;const F=(h,p,y)=>{let v;h==null?p._vnode&&(ge(p._vnode,null,null,!0),v=p._vnode.component):E(p._vnode||null,h,p,null,null,null,y),p._vnode=h,k||(k=!0,Uo(v),Fl(),k=!1)},K={p:E,um:ge,m:ae,r:qe,mt:te,mc:H,pc:oe,pbc:V,n:A,o:e};return{render:F,hydrate:void 0,createApp:$u(F)}}function gr({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Vt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function lf(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function go(e,t,n=!1){const s=e.children,r=t.children;if(W(s)&&W(r))for(let o=0;o>1,e[n[l]]0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}function _c(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:_c(t)}function Yo(e){if(e)for(let t=0;te.__isSuspense;function af(e,t){t&&t.pendingBranch?W(e)?t.effects.push(...e):t.effects.push(e):mu(e)}const Ke=Symbol.for("v-fgt"),er=Symbol.for("v-txt"),ke=Symbol.for("v-cmt"),gs=Symbol.for("v-stc"),jn=[];let Ge=null;function Ft(e=!1){jn.push(Ge=e?null:[])}function uf(){jn.pop(),Ge=jn[jn.length-1]||null}let Gn=1;function xs(e,t=!1){Gn+=e,e<0&&Ge&&t&&(Ge.hasOnce=!0)}function wc(e){return e.dynamicChildren=Gn>0?Ge||ln:null,uf(),Gn>0&&Ge&&Ge.push(e),e}function ys(e,t,n,s,r,o){return wc(je(e,t,n,s,r,o,!0))}function _s(e,t,n,s,r){return wc(be(e,t,n,s,r,!0))}function Ps(e){return e?e.__v_isVNode===!0:!1}function Wt(e,t){return e.type===t.type&&e.key===t.key}const Sc=({key:e})=>e??null,bs=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?pe(e)||_e(e)||Q(e)?{i:We,r:e,k:t,f:!!n}:e:null);function je(e,t=null,n=null,s=0,r=null,o=e===Ke?0:1,i=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Sc(t),ref:t&&bs(t),scopeId:Ul,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:We};return l?(Ns(c,n),o&128&&e.normalize(c)):n&&(c.shapeFlag|=pe(n)?8:16),Gn>0&&!i&&Ge&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&Ge.push(c),c}const be=ff;function ff(e,t=null,n=null,s=0,r=null,o=!1){if((!e||e===sc)&&(e=ke),Ps(e)){const l=Bt(e,t,!0);return n&&Ns(l,n),Gn>0&&!o&&Ge&&(l.shapeFlag&6?Ge[Ge.indexOf(e)]=l:Ge.push(l)),l.patchFlag=-2,l}if(Sf(e)&&(e=e.__vccOpts),t){t=df(t);let{class:l,style:c}=t;l&&!pe(l)&&(t.class=Ws(l)),ce(c)&&(zs(c)&&!W(c)&&(c=Se({},c)),t.style=no(c))}const i=pe(e)?1:Ec(e)?128:ql(e)?64:ce(e)?4:Q(e)?2:0;return je(e,t,n,s,r,i,o,!0)}function df(e){return e?zs(e)||dc(e)?Se({},e):e:null}function Bt(e,t,n=!1,s=!1){const{props:r,ref:o,patchFlag:i,children:l,transition:c}=e,u=t?hf(r||{},t):r,a={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Sc(u),ref:t&&t.ref?n&&o?W(o)?o.concat(bs(t)):[o,bs(t)]:bs(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ke?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Bt(e.ssContent),ssFallback:e.ssFallback&&Bt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&s&&Yt(a,c.clone(a)),a}function Rc(e=" ",t=0){return be(er,null,e,t)}function tg(e,t){const n=be(gs,null,e);return n.staticCount=t,n}function vc(e="",t=!1){return t?(Ft(),_s(ke,null,e)):be(ke,null,e)}function pt(e){return e==null||typeof e=="boolean"?be(ke):W(e)?be(Ke,null,e.slice()):Ps(e)?Rt(e):be(er,null,String(e))}function Rt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Bt(e)}function Ns(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(W(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),Ns(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!dc(t)?t._ctx=We:r===3&&We&&(We.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(Q(t)){if(s&65){Ns(e,{default:t});return}t={default:t,_ctx:We},n=32}else t=String(t),s&64?(n=16,t=[Rc(t)]):n=8;e.children=t,e.shapeFlag|=n}function hf(...e){const t={};for(let n=0;nNe||We;let Is,Br;{const e=Ks(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),o=>{r.length>1?r.forEach(i=>i(o)):r[0](o)}};Is=t("__VUE_INSTANCE_SETTERS__",n=>Ne=n),Br=t("__VUE_SSR_SETTERS__",n=>zn=n)}const ts=e=>{const t=Ne;return Is(e),e.scope.on(),()=>{e.scope.off(),Is(t)}},Zo=()=>{Ne&&Ne.scope.off(),Is(null)};function Ac(e){return e.vnode.shapeFlag&4}let zn=!1;function yf(e,t=!1,n=!1){t&&Br(t);const{props:s,children:r}=e.vnode,o=Ac(e);Yu(e,s,o,t),nf(e,r,n||t);const i=o?_f(e,t):void 0;return t&&Br(!1),i}function _f(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ku);const{setup:s}=n;if(s){_t();const r=e.setupContext=s.length>1?Ef(e):null,o=ts(e),i=es(s,e,0,[e.props,r]),l=ll(i);if(bt(),o(),(l||e.sp)&&!Un(e)&&Xl(e),l){if(i.then(Zo,Zo),t)return i.then(c=>{ei(e,c)}).catch(c=>{Js(c,e,0)});e.asyncDep=i}else ei(e,i)}else Cc(e)}function ei(e,t,n){Q(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ce(t)&&(e.setupState=Dl(t)),Cc(e)}function Cc(e,t,n){const s=e.type;e.render||(e.render=s.render||yt);{const r=ts(e);_t();try{Uu(e)}finally{bt(),r()}}}const bf={get(e,t){return Pe(e,"get",""),e[t]}};function Ef(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,bf),slots:e.slots,emit:e.emit,expose:t}}function nr(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Dl(uo(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Bn)return Bn[n](e)},has(t,n){return n in t||n in Bn}})):e.proxy}function wf(e,t=!0){return Q(e)?e.displayName||e.name:e.name||t&&e.__name}function Sf(e){return Q(e)&&"__vccOpts"in e}const Ue=(e,t)=>uu(e,t,zn);function un(e,t,n){try{xs(-1);const s=arguments.length;return s===2?ce(t)&&!W(t)?Ps(t)?be(e,null,[t]):be(e,t):be(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Ps(n)&&(n=[n]),be(e,t,n))}finally{xs(1)}}const Rf="3.5.39";/** * @vue/runtime-dom v3.5.39 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let jr;const ti=typeof window<"u"&&window.trustedTypes;if(ti)try{jr=ti.createPolicy("vue",{createHTML:e=>e})}catch{}const Oc=jr?e=>jr.createHTML(e):e=>e,vf="http://www.w3.org/2000/svg",Af="http://www.w3.org/1998/Math/MathML",St=typeof document<"u"?document:null,ni=St&&St.createElement("template"),Cf={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?St.createElementNS(vf,e):t==="mathml"?St.createElementNS(Af,e):n?St.createElement(e,{is:n}):St.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>St.createTextNode(e),createComment:e=>St.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>St.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,o){const i=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===o||!(r=r.nextSibling)););else{ni.innerHTML=Oc(s==="svg"?`${e}`:s==="mathml"?`${e}`:e);const l=ni.content;if(s==="svg"||s==="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]}},Pt="transition",An="animation",dn=Symbol("_vtc"),Tc={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},xc=Se({},Kl,Tc),Of=e=>(e.displayName="Transition",e.props=xc,e),ng=Of((e,{slots:t})=>un(Au,Pc(e),t)),qt=(e,t=[])=>{W(e)?e.forEach(n=>n(...t)):e&&e(...t)},si=e=>e?W(e)?e.some(t=>t.length>1):e.length>1:!1;function Pc(e){const t={};for(const L in e)L in Tc||(t[L]=e[L]);if(e.css===!1)return t;const{name:n="v",type:s,duration:r,enterFromClass:o=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=o,appearActiveClass:u=i,appearToClass:a=l,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,R=Tf(r),E=R&&R[0],C=R&&R[1],{onBeforeEnter:_,onEnter:w,onEnterCancelled:O,onLeave:x,onLeaveCancelled:j,onBeforeAppear:q=_,onAppear:B=w,onAppearCancelled:H=O}=t,P=(L,Z,te,Ee)=>{L._enterCancelled=Ee,Dt(L,Z?a:l),Dt(L,Z?u:i),te&&te()},V=(L,Z)=>{L._isLeaving=!1,Dt(L,f),Dt(L,m),Dt(L,d),Z&&Z()},z=L=>(Z,te)=>{const Ee=L?B:w,se=()=>P(Z,L,te);qt(Ee,[Z,se]),ri(()=>{Dt(Z,L?c:o),ft(Z,L?a:l),si(Ee)||oi(Z,s,E,se)})};return Se(t,{onBeforeEnter(L){qt(_,[L]),ft(L,o),ft(L,i)},onBeforeAppear(L){qt(q,[L]),ft(L,c),ft(L,u)},onEnter:z(!1),onAppear:z(!0),onLeave(L,Z){L._isLeaving=!0;const te=()=>V(L,Z);ft(L,f),L._enterCancelled?(ft(L,d),Hr(L)):(Hr(L),ft(L,d)),ri(()=>{L._isLeaving&&(Dt(L,f),ft(L,m),si(x)||oi(L,s,C,te))}),qt(x,[L,te])},onEnterCancelled(L){P(L,!1,void 0,!0),qt(O,[L])},onAppearCancelled(L){P(L,!0,void 0,!0),qt(H,[L])},onLeaveCancelled(L){V(L),qt(j,[L])}})}function Tf(e){if(e==null)return null;if(ce(e))return[yr(e.enter),yr(e.leave)];{const t=yr(e);return[t,t]}}function yr(e){return Pa(e)}function ft(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[dn]||(e[dn]=new Set)).add(t)}function Dt(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[dn];n&&(n.delete(t),n.size||(e[dn]=void 0))}function ri(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let xf=0;function oi(e,t,n,s){const r=e._endId=++xf,o=()=>{r===e._endId&&s()};if(n!=null)return setTimeout(o,n);const{type:i,timeout:l,propCount:c}=Nc(e,t);if(!i)return s();const u=i+"end";let a=0;const f=()=>{e.removeEventListener(u,d),o()},d=m=>{m.target===e&&++a>=c&&f()};setTimeout(()=>{a(n[R]||"").split(", "),r=s(`${Pt}Delay`),o=s(`${Pt}Duration`),i=ii(r,o),l=s(`${An}Delay`),c=s(`${An}Duration`),u=ii(l,c);let a=null,f=0,d=0;t===Pt?i>0&&(a=Pt,f=i,d=o.length):t===An?u>0&&(a=An,f=u,d=c.length):(f=Math.max(i,u),a=f>0?i>u?Pt:An:null,d=a?a===Pt?o.length:c.length:0);const m=a===Pt&&/\b(?:transform|all)(?:,|$)/.test(s(`${Pt}Property`).toString());return{type:a,timeout:f,propCount:d,hasTransform:m}}function ii(e,t){for(;e.lengthli(n)+li(e[s])))}function li(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Hr(e){return(e?e.ownerDocument:document).body.offsetHeight}function Pf(e,t,n){const s=e[dn];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Ds=Symbol("_vod"),yo=Symbol("_vsh"),sg={name:"show",beforeMount(e,{value:t},{transition:n}){e[Ds]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Cn(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),Cn(e,!0),s.enter(e)):s.leave(e,()=>{Cn(e,!1)}):Cn(e,t))},beforeUnmount(e,{value:t}){Cn(e,t)}};function Cn(e,t){e.style.display=t?e[Ds]:"none",e[yo]=!t}const Nf=Symbol(""),If=/(?:^|;)\s*display\s*:/;function Df(e,t,n){const s=e.style,r=pe(n);let o=!1;if(n&&!r){if(t)if(pe(t))for(const i of t.split(";")){const l=i.slice(0,i.indexOf(":")).trim();n[l]==null&&In(s,l,"")}else for(const i in t)n[i]==null&&In(s,i,"");for(const i in n){i==="display"&&(o=!0);const l=n[i];l!=null?Mf(e,i,!pe(t)&&t?t[i]:void 0,l)||In(s,i,l):In(s,i,"")}}else if(r){if(t!==n){const i=s[Nf];i&&(n+=";"+i),s.cssText=n,o=If.test(n)}}else t&&e.removeAttribute("style");Ds in e&&(e[Ds]=o?s.display:"",e[yo]&&(s.display="none"))}const ci=/\s*!important$/;function In(e,t,n){if(W(n))n.forEach(s=>In(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Lf(e,t);ci.test(n)?e.setProperty(jt(s),n.replace(ci,""),"important"):e[s]=n}}const ai=["Webkit","Moz","ms"],_r={};function Lf(e,t){const n=_r[t];if(n)return n;let s=Be(t);if(s!=="filter"&&s in e)return _r[t]=s;s=qs(s);for(let r=0;rbr||(Hf.then(()=>br=0),br=Date.now());function qf(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;const r=n.value;if(W(r)){const o=s.stopImmediatePropagation;s.stopImmediatePropagation=()=>{o.call(s),s._stopped=!0};const i=r.slice(),l=[s];for(let c=0;ce.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,$f=(e,t,n,s,r,o)=>{const i=r==="svg";t==="class"?Pf(e,s,i):t==="style"?Df(e,n,s):Bs(t)?js(t)||kf(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Kf(e,t,s,i))?(di(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&fi(e,t,s,i,o,t!=="value")):e._isVueCE&&(Wf(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!pe(s)))?di(e,Be(t),s,o,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),fi(e,t,s,i))};function Kf(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&pi(t)&&Q(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return pi(t)&&pe(n)?!1:t in e}function Wf(e,t){const n=e._def.props;if(!n)return!1;const s=Be(t);return Array.isArray(n)?n.some(r=>Be(r)===s):Object.keys(n).some(r=>Be(r)===s)}const Ic=new WeakMap,Dc=new WeakMap,Ls=Symbol("_moveCb"),mi=Symbol("_enterCb"),Gf=e=>(delete e.props.mode,e),zf=Gf({name:"TransitionGroup",props:Se({},xc,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=tr(),s=$l();let r,o;return Zl(()=>{if(!r.length)return;const i=e.moveClass||`${e.name||"v"}-move`;if(!Zf(r[0].el,n.vnode.el,i)){r=[];return}r.forEach(Xf),r.forEach(Qf);const l=r.filter(Yf);Hr(n.vnode.el),l.forEach(c=>{const u=c.el,a=u.style;ft(u,i),a.transform=a.webkitTransform=a.transitionDuration="";const f=u[Ls]=d=>{d&&d.target!==u||(!d||d.propertyName.endsWith("transform"))&&(u.removeEventListener("transitionend",f),u[Ls]=null,Dt(u,i))};u.addEventListener("transitionend",f)}),r=[]}),()=>{const i=ne(e),l=Pc(i);let c=i.tag||Ke;if(r=[],o)for(let u=0;u{l.split(/\s+/).forEach(c=>c&&s.classList.remove(c))}),n.split(/\s+/).forEach(l=>l&&s.classList.add(l)),s.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(s);const{hasTransform:i}=Nc(s);return o.removeChild(s),i}const hn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return W(t)?n=>ps(t,n):t};function ed(e){e.target.composing=!0}function gi(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ot=Symbol("_assign");function yi(e,t,n){return t&&(e=e.trim()),n&&(e=$s(e)),e}const rg={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e[Ot]=hn(r);const o=s||r.props&&r.props.type==="number";Ut(e,t?"change":"input",i=>{i.target.composing||e[Ot](yi(e.value,n,o))}),(n||o)&&Ut(e,"change",()=>{e.value=yi(e.value,n,o)}),t||(Ut(e,"compositionstart",ed),Ut(e,"compositionend",gi),Ut(e,"change",gi))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:r,number:o}},i){if(e[Ot]=hn(i),e.composing)return;const l=(o||e.type==="number")&&!/^0\d/.test(e.value)?$s(e.value):e.value,c=t??"";if(l===c)return;const u=e.getRootNode();(u instanceof Document||u instanceof ShadowRoot)&&u.activeElement===e&&e.type!=="range"&&(s&&t===n||r&&e.value.trim()===c)||(e.value=c)}},og={deep:!0,created(e,t,n){e[Ot]=hn(n),Ut(e,"change",()=>{const s=e._modelValue,r=Jn(e),o=e.checked,i=e[Ot];if(W(s)){const l=so(s,r),c=l!==-1;if(o&&!c)i(s.concat(r));else if(!o&&c){const u=[...s];u.splice(l,1),i(u)}}else if(_n(s)){const l=new Set(s);o?l.add(r):l.delete(r),i(l)}else i(Mc(e,o))})},mounted:_i,beforeUpdate(e,t,n){e[Ot]=hn(n),_i(e,t,n)}};function _i(e,{value:t,oldValue:n},s){e._modelValue=t;let r;if(W(t))r=so(t,s.props.value)>-1;else if(_n(t))r=t.has(s.props.value);else{if(t===n)return;r=bn(t,Mc(e,!0))}e.checked!==r&&(e.checked=r)}const ig={deep:!0,created(e,{value:t,modifiers:{number:n}},s){const r=_n(t);Ut(e,"change",()=>{const o=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>n?$s(Jn(i)):Jn(i));e[Ot](e.multiple?r?new Set(o):o:o[0]),e._assigning=!0,Xs(()=>{e._assigning=!1})}),e[Ot]=hn(s)},mounted(e,{value:t}){bi(e,t)},beforeUpdate(e,t,n){e[Ot]=hn(n)},updated(e,{value:t}){e._assigning||bi(e,t)}};function bi(e,t){const n=e.multiple,s=W(t);if(!(n&&!s&&!_n(t))){for(let r=0,o=e.options.length;rString(u)===String(l)):i.selected=so(t,l)>-1}else i.selected=t.has(l);else if(bn(Jn(i),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Jn(e){return"_value"in e?e._value:e.value}function Mc(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const td=["ctrl","shift","alt","meta"],nd={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>td.some(n=>e[`${n}Key`]&&!t.includes(n))},lg=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=((r,...o)=>{for(let i=0;i{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=(r=>{if(!("key"in r))return;const o=jt(r.key);if(t.some(i=>i===o||sd[i]===o))return e(r)}))},rd=Se({patchProp:$f},Cf);let Ei;function od(){return Ei||(Ei=rf(rd))}const id=((...e)=>{const t=od().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=cd(s);if(!r)return;const o=t._component;!Q(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const i=n(r,!1,ld(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t});function ld(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function cd(e){return pe(e)?document.querySelector(e):e}/*! * pinia v2.3.1 * (c) 2025 Eduardo San Martin Morote * @license MIT */let Fc;const sr=e=>Fc=e,kc=Symbol();function Vr(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Hn;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Hn||(Hn={}));function ad(){const e=ml(!0),t=e.run(()=>xe({}));let n=[],s=[];const r=uo({install(o){sr(r),r._a=o,o.provide(kc,r),o.config.globalProperties.$pinia=r,s.forEach(i=>n.push(i)),s=[]},use(o){return this._a?n.push(o):s.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return r}const Uc=()=>{};function wi(e,t,n,s=Uc){e.push(t);const r=()=>{const o=e.indexOf(t);o>-1&&(e.splice(o,1),s())};return!n&&gl()&&Ua(r),r}function nn(e,...t){e.slice().forEach(n=>{n(...t)})}const ud=e=>e(),Si=Symbol(),Er=Symbol();function qr(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,s)=>e.set(s,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const s=t[n],r=e[n];Vr(r)&&Vr(s)&&e.hasOwnProperty(n)&&!_e(s)&&!Ct(s)?e[n]=qr(r,s):e[n]=s}return e}const fd=Symbol();function dd(e){return!Vr(e)||!e.hasOwnProperty(fd)}const{assign:Lt}=Object;function hd(e){return!!(_e(e)&&e.effect)}function pd(e,t,n,s){const{state:r,actions:o,getters:i}=t,l=n.state.value[e];let c;function u(){l||(n.state.value[e]=r?r():{});const a=iu(n.state.value[e]);return Lt(a,o,Object.keys(i||{}).reduce((f,d)=>(f[d]=uo(Ue(()=>{sr(n);const m=n._s.get(e);return i[d].call(m,m)})),f),{}))}return c=Bc(e,u,t,n,s,!0),c}function Bc(e,t,n={},s,r,o){let i;const l=Lt({actions:{}},n),c={deep:!0};let u,a,f=[],d=[],m;const R=s.state.value[e];!o&&!R&&(s.state.value[e]={});let E;function C(H){let P;u=a=!1,typeof H=="function"?(H(s.state.value[e]),P={type:Hn.patchFunction,storeId:e,events:m}):(qr(s.state.value[e],H),P={type:Hn.patchObject,payload:H,storeId:e,events:m});const V=E=Symbol();Xs().then(()=>{E===V&&(u=!0)}),a=!0,nn(f,P,s.state.value[e])}const _=o?function(){const{state:P}=n,V=P?P():{};this.$patch(z=>{Lt(z,V)})}:Uc;function w(){i.stop(),f=[],d=[],s._s.delete(e)}const O=(H,P="")=>{if(Si in H)return H[Er]=P,H;const V=function(){sr(s);const z=Array.from(arguments),L=[],Z=[];function te(X){L.push(X)}function Ee(X){Z.push(X)}nn(d,{args:z,name:V[Er],store:j,after:te,onError:Ee});let se;try{se=H.apply(this&&this.$id===e?this:j,z)}catch(X){throw nn(Z,X),X}return se instanceof Promise?se.then(X=>(nn(L,X),X)).catch(X=>(nn(Z,X),Promise.reject(X))):(nn(L,se),se)};return V[Si]=!0,V[Er]=P,V},x={_p:s,$id:e,$onAction:wi.bind(null,d),$patch:C,$reset:_,$subscribe(H,P={}){const V=wi(f,H,P.detached,()=>z()),z=i.run(()=>Fn(()=>s.state.value[e],L=>{(P.flush==="sync"?a:u)&&H({storeId:e,type:Hn.direct,events:m},L)},Lt({},c,P)));return V},$dispose:w},j=Zn(x);s._s.set(e,j);const B=(s._a&&s._a.runWithContext||ud)(()=>s._e.run(()=>(i=ml()).run(()=>t({action:O}))));for(const H in B){const P=B[H];if(_e(P)&&!hd(P)||Ct(P))o||(R&&dd(P)&&(_e(P)?P.value=R[H]:qr(P,R[H])),s.state.value[e][H]=P);else if(typeof P=="function"){const V=O(P,H);B[H]=V,l.actions[H]=P}}return Lt(j,B),Lt(ne(j),B),Object.defineProperty(j,"$state",{get:()=>s.state.value[e],set:H=>{C(P=>{Lt(P,H)})}}),s._p.forEach(H=>{Lt(j,i.run(()=>H({store:j,app:s._a,pinia:s,options:l})))}),R&&o&&n.hydrate&&n.hydrate(j.$state,R),u=!0,a=!0,j}/*! #__NO_SIDE_EFFECTS__ */function _o(e,t,n){let s,r;const o=typeof t=="function";typeof e=="string"?(s=e,r=o?n:t):(r=e,s=e.id);function i(l,c){const u=gu();return l=l||(u?Ze(kc,null):null),l&&sr(l),l=Fc,l._s.has(s)||(o?Bc(s,t,r,l):pd(s,r,l)),l._s.get(s)}return i.$id=s,i}/** * @license @tabler/icons-vue v3.45.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. */var Ri={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};/** * @license @tabler/icons-vue v3.45.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. */const ns=(e,t,n,s)=>({color:r="currentColor",size:o=24,stroke:i=2,title:l,class:c,...u},{attrs:a,slots:f})=>{let d=[...s.map(m=>un(...m)),...f.default?[f.default()]:[]];return l&&(d=[un("title",l),...d]),un("svg",{...Ri[e],width:o,height:o,...a,class:["tabler-icon",`tabler-icon-${t}`],...e==="filled"?{fill:r}:{"stroke-width":i??Ri[e]["stroke-width"],stroke:r},...u},d)};/** * @license @tabler/icons-vue v3.45.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. */var md=ns("outline","alert-triangle","AlertTriangle",[["path",{d:"M12 9v4",key:"svg-0"}],["path",{d:"M10.363 3.591l-8.106 13.534a1.914 1.914 0 0 0 1.636 2.871h16.214a1.914 1.914 0 0 0 1.636 -2.87l-8.106 -13.536a1.914 1.914 0 0 0 -3.274 0",key:"svg-1"}],["path",{d:"M12 16h.01",key:"svg-2"}]]);/** * @license @tabler/icons-vue v3.45.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. */var gd=ns("outline","check","Check",[["path",{d:"M5 12l5 5l10 -10",key:"svg-0"}]]);/** * @license @tabler/icons-vue v3.45.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. */var yd=ns("outline","chevron-down","ChevronDown",[["path",{d:"M6 9l6 6l6 -6",key:"svg-0"}]]);/** * @license @tabler/icons-vue v3.45.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. */var _d=ns("outline","copy","Copy",[["path",{d:"M7 9.667a2.667 2.667 0 0 1 2.667 -2.667h8.666a2.667 2.667 0 0 1 2.667 2.667v8.666a2.667 2.667 0 0 1 -2.667 2.667h-8.666a2.667 2.667 0 0 1 -2.667 -2.667l0 -8.666",key:"svg-0"}],["path",{d:"M4.012 16.737a2.005 2.005 0 0 1 -1.012 -1.737v-10c0 -1.1 .9 -2 2 -2h10c.75 0 1.158 .385 1.5 1",key:"svg-1"}]]);/** * @license @tabler/icons-vue v3.45.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. */var bd=ns("outline","x","X",[["path",{d:"M18 6l-12 12",key:"svg-0"}],["path",{d:"M6 6l12 12",key:"svg-1"}]]);function $r(e){if(typeof e=="string")return e.trim();if(e==null)return"";try{return JSON.stringify(e)}catch{return String(e)}}function Ed(e){var t,n,s,r;return typeof e=="string"?e.trim():$r(((n=(t=e==null?void 0:e.response)==null?void 0:t.data)==null?void 0:n.message)||((r=(s=e==null?void 0:e.response)==null?void 0:s.data)==null?void 0:r.error)||(e==null?void 0:e.detail)||(e==null?void 0:e.message)||e)||"请求未能完成"}function wd(e){const t=e.search(/[\[{]/);if(t<0)return{data:null,prefix:"",formatted:""};const n=e.slice(t).trim();try{const s=JSON.parse(n),r=e.slice(0,t).trim().replace(/[::;;]+$/,""),o=JSON.stringify(s,null,2);return{data:s,prefix:r,formatted:r?`${r} ${o}`:o}}catch{return{data:null,prefix:"",formatted:""}}}function Kr(e){var n;if(Array.isArray(e)){for(const s of e){const r=Kr(s);if(r)return r}return null}if(!e||typeof e!="object")return null;const t=e.extra_info;if((t==null?void 0:t.input_name)==="device"){const s=Array.isArray((n=t.input_config)==null?void 0:n[0])?t.input_config[0]:[];return{received:$r(t.received_value),options:s.map($r).filter(Boolean)}}for(const s of Object.values(e)){const r=Kr(s);if(r)return r}return null}function Sd(e,t){const n=Kr(t);if(n!=null&&n.received){const s=n.options.length?`,当前可用选项为 ${n.options.join("、")}`:"";return`工作流请求使用设备 ${n.received}${s}。请修改 ComfyUI 的 device 节点配置后重试。`}return/value_not_in_list|Prompt outputs failed validation/i.test(e)?"工作流参数没有通过 ComfyUI 校验,请检查对应节点、模型和设备配置后重试。":/拒绝任务|execution error|执行失败/i.test(e)?"ComfyUI 拒绝了本次生成任务,请检查工作流和节点配置后重试。":"图片生成服务暂时无法完成任务,请检查 ComfyUI 配置后重试。"}function Rd(e,t){return/ComfyUI|Prompt outputs failed|value_not_in_list/i.test(e)?"图片生成失败":t===401?"登录状态已失效":t===403?"没有操作权限":/network|Failed to fetch|ERR_NETWORK|连接失败/i.test(e)?"连接失败":/timeout|超时/i.test(e)?"请求超时":"请求失败"}function vd(e,t,n){if(/ComfyUI|Prompt outputs failed|value_not_in_list/i.test(e))return Sd(e,n);if(t===401)return"登录信息已过期,请重新登录。";if(t===403)return"当前账户没有执行此操作的权限。";if(/network|Failed to fetch|ERR_NETWORK|连接失败/i.test(e))return"暂时无法连接服务,请检查网络或服务状态后重试。";if(/timeout|超时/i.test(e))return"服务响应时间过长,请稍后重试。";const s=e.split(/[\[{]/,1)[0].trim().replace(/[::;;]+$/,"");return s&&s.length<=120?s:e.length<=120?e:"服务返回了异常信息,请稍后重试或查看技术详情。"}function Ad(e,t={}){var i;const n=Ed(e),s=(e==null?void 0:e.status)||((i=e==null?void 0:e.response)==null?void 0:i.status)||null,r=wd(n),o=n.length>140||!!r.formatted||/value_not_in_list|Prompt outputs failed|stack|traceback/i.test(n);return{title:t.title||Rd(n,s),message:t.message||vd(n,s,r.data),detail:t.detail??(o?r.formatted||n:""),status:s}}let Cd=1;const Od=_o("notification",()=>{const e=xe([]),t=new Map;function n(o){const i=t.get(o);i&&clearTimeout(i),t.delete(o),e.value=e.value.filter(l=>l.id!==o)}function s(o){const i=Cd++,l={id:i,type:o.type||"error",title:o.title||"请求失败",message:o.message||"请求未能完成,请稍后重试。",detail:o.detail||""};return e.value=[...e.value.slice(-2),l],o.duration>0&&t.set(i,setTimeout(()=>n(i),o.duration)),i}function r(o,i={}){return s({type:"error",...Ad(o,i),duration:i.duration??0})}return{notifications:e,show:s,error:r,dismiss:n}}),Td=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},xd={class:"notification-region","aria-label":"系统通知","aria-live":"assertive"},Pd={class:"notification-icon","aria-hidden":"true"},Nd={class:"notification-content"},Id={class:"notification-heading"},Dd=["onClick"],Ld={key:0,class:"notification-detail"},Md={class:"detail-body"},Fd=["onClick"],kd={__name:"NotificationCenter",setup(e){const t=Od(),n=xe(null);let s=null;async function r(o){try{await navigator.clipboard.writeText(o.detail),n.value=o.id,s&&clearTimeout(s),s=setTimeout(()=>{n.value=null},1800)}catch{n.value=null}}return(o,i)=>(Ft(),_s(Ru,{to:"body"},[je("section",xd,[be(Jf,{name:"notification"},{default:Bl(()=>[(Ft(!0),ys(Ke,null,Fu(He(t).notifications,l=>(Ft(),ys("article",{key:l.id,class:Ws(["notification-card",`notification-${l.type}`]),role:"alert"},[je("div",Pd,[be(He(md),{size:20,"stroke-width":1.8})]),je("div",Nd,[je("div",Id,[je("strong",null,xn(l.title),1),je("button",{class:"notification-close",type:"button","aria-label":"关闭提示",onClick:c=>He(t).dismiss(l.id)},[be(He(bd),{size:17,"stroke-width":1.8})],8,Dd)]),je("p",null,xn(l.message),1),l.detail?(Ft(),ys("details",Ld,[je("summary",null,[i[0]||(i[0]=je("span",null,"查看技术详情",-1)),be(He(yd),{class:"detail-chevron",size:16,"stroke-width":1.8})]),je("div",Md,[je("pre",null,xn(l.detail),1),je("button",{class:"copy-detail",type:"button",onClick:c=>r(l)},[n.value===l.id?(Ft(),_s(He(gd),{key:0,size:15,"stroke-width":1.8})):(Ft(),_s(He(_d),{key:1,size:15,"stroke-width":1.8})),Rc(" "+xn(n.value===l.id?"已复制":"复制详情"),1)],8,Fd)])])):vc("",!0)])],2))),128))]),_:1})])]))}},Ud=Td(kd,[["__scopeId","data-v-a7c717ce"]]),Bd={__name:"App",setup(e){return(t,n)=>{const s=Mu("router-view");return Ft(),ys(Ke,null,[be(s),be(Ud)],64)}}},jd="modulepreload",Hd=function(e){return"/"+e},vi={},fs=function(t,n,s){let r=Promise.resolve();if(n&&n.length>0){let i=function(u){return Promise.all(u.map(a=>Promise.resolve(a).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),c=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));r=i(n.map(u=>{if(u=Hd(u),u in vi)return;vi[u]=!0;const a=u.endsWith(".css"),f=a?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${f}`))return;const d=document.createElement("link");if(d.rel=a?"stylesheet":jd,a||(d.as="script"),d.crossOrigin="",d.href=u,c&&d.setAttribute("nonce",c),document.head.appendChild(d),a)return new Promise((m,R)=>{d.addEventListener("load",m),d.addEventListener("error",()=>R(new Error(`Unable to preload CSS for ${u}`)))})}))}function o(i){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=i,window.dispatchEvent(l),!l.defaultPrevented)throw i}return r.then(i=>{for(const l of i||[])l.status==="rejected"&&o(l.reason);return t().catch(o)})};/*! * vue-router v4.6.4 * (c) 2025 Eduardo San Martin Morote * @license MIT */const on=typeof document<"u";function jc(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Vd(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&jc(e.default)}const ie=Object.assign;function wr(e,t){const n={};for(const s in t){const r=t[s];n[s]=rt(r)?r.map(e):e(r)}return n}const Vn=()=>{},rt=Array.isArray;function Ai(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}const Hc=/#/g,qd=/&/g,$d=/\//g,Kd=/=/g,Wd=/\?/g,Vc=/\+/g,Gd=/%5B/g,zd=/%5D/g,qc=/%5E/g,Jd=/%60/g,$c=/%7B/g,Xd=/%7C/g,Kc=/%7D/g,Qd=/%20/g;function bo(e){return e==null?"":encodeURI(""+e).replace(Xd,"|").replace(Gd,"[").replace(zd,"]")}function Yd(e){return bo(e).replace($c,"{").replace(Kc,"}").replace(qc,"^")}function Wr(e){return bo(e).replace(Vc,"%2B").replace(Qd,"+").replace(Hc,"%23").replace(qd,"%26").replace(Jd,"`").replace($c,"{").replace(Kc,"}").replace(qc,"^")}function Zd(e){return Wr(e).replace(Kd,"%3D")}function eh(e){return bo(e).replace(Hc,"%23").replace(Wd,"%3F")}function th(e){return eh(e).replace($d,"%2F")}function Xn(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const nh=/\/$/,sh=e=>e.replace(nh,"");function Sr(e,t,n="/"){let s,r={},o="",i="";const l=t.indexOf("#");let c=t.indexOf("?");return c=l>=0&&c>l?-1:c,c>=0&&(s=t.slice(0,c),o=t.slice(c,l>0?l:t.length),r=e(o.slice(1))),l>=0&&(s=s||t.slice(0,l),i=t.slice(l,t.length)),s=lh(s??t,n),{fullPath:s+o+i,path:s,query:r,hash:Xn(i)}}function rh(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Ci(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function oh(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&pn(t.matched[s],n.matched[r])&&Wc(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function pn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Wc(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!ih(e[n],t[n]))return!1;return!0}function ih(e,t){return rt(e)?Oi(e,t):rt(t)?Oi(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function Oi(e,t){return rt(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function lh(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),r=s[s.length-1];(r===".."||r===".")&&s.push("");let o=n.length-1,i,l;for(i=0;i1&&o--;else break;return n.slice(0,o).join("/")+"/"+s.slice(i).join("/")}const Nt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let Gr=(function(e){return e.pop="pop",e.push="push",e})({}),Rr=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function ch(e){if(!e)if(on){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),sh(e)}const ah=/^[^#]+#/;function uh(e,t){return e.replace(ah,"#")+t}function fh(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const rr=()=>({left:window.scrollX,top:window.scrollY});function dh(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=fh(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Ti(e,t){return(history.state?history.state.position-t:-1)+e}const zr=new Map;function hh(e,t){zr.set(e,t)}function ph(e){const t=zr.get(e);return zr.delete(e),t}function mh(e){return typeof e=="string"||e&&typeof e=="object"}function Gc(e){return typeof e=="string"||typeof e=="symbol"}let ye=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const zc=Symbol("");ye.MATCHER_NOT_FOUND+"",ye.NAVIGATION_GUARD_REDIRECT+"",ye.NAVIGATION_ABORTED+"",ye.NAVIGATION_CANCELLED+"",ye.NAVIGATION_DUPLICATED+"";function mn(e,t){return ie(new Error,{type:e,[zc]:!0},t)}function wt(e,t){return e instanceof Error&&zc in e&&(t==null||!!(e.type&t))}const gh=["params","query","hash"];function yh(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of gh)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function _h(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;sr&&Wr(r)):[s&&Wr(s)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+n,r!=null&&(t+="="+r))})}return t}function bh(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=rt(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const Eh=Symbol(""),Pi=Symbol(""),or=Symbol(""),Eo=Symbol(""),Jr=Symbol("");function On(){let e=[];function t(s){return e.push(s),()=>{const r=e.indexOf(s);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function kt(e,t,n,s,r,o=i=>i()){const i=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((l,c)=>{const u=d=>{d===!1?c(mn(ye.NAVIGATION_ABORTED,{from:n,to:t})):d instanceof Error?c(d):mh(d)?c(mn(ye.NAVIGATION_GUARD_REDIRECT,{from:t,to:d})):(i&&s.enterCallbacks[r]===i&&typeof d=="function"&&i.push(d),l())},a=o(()=>e.call(s&&s.instances[r],t,n,u));let f=Promise.resolve(a);e.length<3&&(f=f.then(u)),f.catch(d=>c(d))})}function vr(e,t,n,s,r=o=>o()){const o=[];for(const i of e)for(const l in i.components){let c=i.components[l];if(!(t!=="beforeRouteEnter"&&!i.instances[l]))if(jc(c)){const u=(c.__vccOpts||c)[t];u&&o.push(kt(u,n,s,i,l,r))}else{let u=c();o.push(()=>u.then(a=>{if(!a)throw new Error(`Couldn't resolve component "${l}" at "${i.path}"`);const f=Vd(a)?a.default:a;i.mods[l]=a,i.components[l]=f;const d=(f.__vccOpts||f)[t];return d&&kt(d,n,s,i,l,r)()}))}}return o}function wh(e,t){const n=[],s=[],r=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;ipn(u,l))?s.push(l):n.push(l));const c=e.matched[i];c&&(t.matched.find(u=>pn(u,c))||r.push(c))}return[n,s,r]}/*! * vue-router v4.6.4 * (c) 2025 Eduardo San Martin Morote * @license MIT */let Sh=()=>location.protocol+"//"+location.host;function Jc(e,t){const{pathname:n,search:s,hash:r}=t,o=e.indexOf("#");if(o>-1){let i=r.includes(e.slice(o))?e.slice(o).length:1,l=r.slice(i);return l[0]!=="/"&&(l="/"+l),Ci(l,"")}return Ci(n,e)+s+r}function Rh(e,t,n,s){let r=[],o=[],i=null;const l=({state:d})=>{const m=Jc(e,location),R=n.value,E=t.value;let C=0;if(d){if(n.value=m,t.value=d,i&&i===R){i=null;return}C=E?d.position-E.position:0}else s(m);r.forEach(_=>{_(n.value,R,{delta:C,type:Gr.pop,direction:C?C>0?Rr.forward:Rr.back:Rr.unknown})})};function c(){i=n.value}function u(d){r.push(d);const m=()=>{const R=r.indexOf(d);R>-1&&r.splice(R,1)};return o.push(m),m}function a(){if(document.visibilityState==="hidden"){const{history:d}=window;if(!d.state)return;d.replaceState(ie({},d.state,{scroll:rr()}),"")}}function f(){for(const d of o)d();o=[],window.removeEventListener("popstate",l),window.removeEventListener("pagehide",a),document.removeEventListener("visibilitychange",a)}return window.addEventListener("popstate",l),window.addEventListener("pagehide",a),document.addEventListener("visibilitychange",a),{pauseListeners:c,listen:u,destroy:f}}function Ni(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?rr():null}}function vh(e){const{history:t,location:n}=window,s={value:Jc(e,n)},r={value:t.state};r.value||o(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(c,u,a){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+c:Sh()+e+c;try{t[a?"replaceState":"pushState"](u,"",d),r.value=u}catch(m){console.error(m),n[a?"replace":"assign"](d)}}function i(c,u){o(c,ie({},t.state,Ni(r.value.back,c,r.value.forward,!0),u,{position:r.value.position}),!0),s.value=c}function l(c,u){const a=ie({},r.value,t.state,{forward:c,scroll:rr()});o(a.current,a,!0),o(c,ie({},Ni(s.value,c,null),{position:a.position+1},u),!1),s.value=c}return{location:s,state:r,push:l,replace:i}}function Ah(e){e=ch(e);const t=vh(e),n=Rh(e,t.state,t.location,t.replace);function s(o,i=!0){i||n.pauseListeners(),history.go(o)}const r=ie({location:"",base:e,go:s,createHref:uh.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}let Gt=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var Re=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(Re||{});const Ch={type:Gt.Static,value:""},Oh=/[a-zA-Z0-9_]/;function Th(e){if(!e)return[[]];if(e==="/")return[[Ch]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(m){throw new Error(`ERR (${n})/"${u}": ${m}`)}let n=Re.Static,s=n;const r=[];let o;function i(){o&&r.push(o),o=[]}let l=0,c,u="",a="";function f(){u&&(n===Re.Static?o.push({type:Gt.Static,value:u}):n===Re.Param||n===Re.ParamRegExp||n===Re.ParamRegExpEnd?(o.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),o.push({type:Gt.Param,value:u,regexp:a,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),u="")}function d(){u+=c}for(;lt.length?t.length===1&&t[0]===Me.Static+Me.Segment?1:-1:0}function Xc(e,t){let n=0;const s=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const Dh={strict:!1,end:!0,sensitive:!1};function Lh(e,t,n){const s=Nh(Th(e.path),n),r=ie(s,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function Mh(e,t){const n=[],s=new Map;t=Ai(Dh,t);function r(f){return s.get(f)}function o(f,d,m){const R=!m,E=Mi(f);E.aliasOf=m&&m.record;const C=Ai(t,f),_=[E];if("alias"in f){const x=typeof f.alias=="string"?[f.alias]:f.alias;for(const j of x)_.push(Mi(ie({},E,{components:m?m.record.components:E.components,path:j,aliasOf:m?m.record:E})))}let w,O;for(const x of _){const{path:j}=x;if(d&&j[0]!=="/"){const q=d.record.path,B=q[q.length-1]==="/"?"":"/";x.path=d.record.path+(j&&B+j)}if(w=Lh(x,d,C),m?m.alias.push(w):(O=O||w,O!==w&&O.alias.push(w),R&&f.name&&!Fi(w)&&i(f.name)),Qc(w)&&c(w),E.children){const q=E.children;for(let B=0;B{i(O)}:Vn}function i(f){if(Gc(f)){const d=s.get(f);d&&(s.delete(f),n.splice(n.indexOf(d),1),d.children.forEach(i),d.alias.forEach(i))}else{const d=n.indexOf(f);d>-1&&(n.splice(d,1),f.record.name&&s.delete(f.record.name),f.children.forEach(i),f.alias.forEach(i))}}function l(){return n}function c(f){const d=Uh(f,n);n.splice(d,0,f),f.record.name&&!Fi(f)&&s.set(f.record.name,f)}function u(f,d){let m,R={},E,C;if("name"in f&&f.name){if(m=s.get(f.name),!m)throw mn(ye.MATCHER_NOT_FOUND,{location:f});C=m.record.name,R=ie(Li(d.params,m.keys.filter(O=>!O.optional).concat(m.parent?m.parent.keys.filter(O=>O.optional):[]).map(O=>O.name)),f.params&&Li(f.params,m.keys.map(O=>O.name))),E=m.stringify(R)}else if(f.path!=null)E=f.path,m=n.find(O=>O.re.test(E)),m&&(R=m.parse(E),C=m.record.name);else{if(m=d.name?s.get(d.name):n.find(O=>O.re.test(d.path)),!m)throw mn(ye.MATCHER_NOT_FOUND,{location:f,currentLocation:d});C=m.record.name,R=ie({},d.params,f.params),E=m.stringify(R)}const _=[];let w=m;for(;w;)_.unshift(w.record),w=w.parent;return{name:C,path:E,params:R,matched:_,meta:kh(_)}}e.forEach(f=>o(f));function a(){n.length=0,s.clear()}return{addRoute:o,resolve:u,removeRoute:i,clearRoutes:a,getRoutes:l,getRecordMatcher:r}}function Li(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function Mi(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Fh(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Fh(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function Fi(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function kh(e){return e.reduce((t,n)=>ie(t,n.meta),{})}function Uh(e,t){let n=0,s=t.length;for(;n!==s;){const o=n+s>>1;Xc(e,t[o])<0?s=o:n=o+1}const r=Bh(e);return r&&(s=t.lastIndexOf(r,s-1)),s}function Bh(e){let t=e;for(;t=t.parent;)if(Qc(t)&&Xc(e,t)===0)return t}function Qc({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function ki(e){const t=Ze(or),n=Ze(Eo),s=Ue(()=>{const c=He(e.to);return t.resolve(c)}),r=Ue(()=>{const{matched:c}=s.value,{length:u}=c,a=c[u-1],f=n.matched;if(!a||!f.length)return-1;const d=f.findIndex(pn.bind(null,a));if(d>-1)return d;const m=Ui(c[u-2]);return u>1&&Ui(a)===m&&f[f.length-1].path!==m?f.findIndex(pn.bind(null,c[u-2])):d}),o=Ue(()=>r.value>-1&&$h(n.params,s.value.params)),i=Ue(()=>r.value>-1&&r.value===n.matched.length-1&&Wc(n.params,s.value.params));function l(c={}){if(qh(c)){const u=t[He(e.replace)?"replace":"push"](He(e.to)).catch(Vn);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:s,href:Ue(()=>s.value.href),isActive:o,isExactActive:i,navigate:l}}function jh(e){return e.length===1?e[0]:e}const Hh=Jl({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:ki,setup(e,{slots:t}){const n=Zn(ki(e)),{options:s}=Ze(or),r=Ue(()=>({[Bi(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[Bi(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&jh(t.default(n));return e.custom?o:un("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}}),Vh=Hh;function qh(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function $h(e,t){for(const n in t){const s=t[n],r=e[n];if(typeof s=="string"){if(s!==r)return!1}else if(!rt(r)||r.length!==s.length||s.some((o,i)=>o.valueOf()!==r[i].valueOf()))return!1}return!0}function Ui(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Bi=(e,t,n)=>e??t??n,Kh=Jl({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=Ze(Jr),r=Ue(()=>e.route||s.value),o=Ze(Pi,0),i=Ue(()=>{let u=He(o);const{matched:a}=r.value;let f;for(;(f=a[u])&&!f.components;)u++;return u}),l=Ue(()=>r.value.matched[i.value]);ms(Pi,Ue(()=>i.value+1)),ms(Eh,l),ms(Jr,r);const c=xe();return Fn(()=>[c.value,l.value,e.name],([u,a,f],[d,m,R])=>{a&&(a.instances[f]=u,m&&m!==a&&u&&u===d&&(a.leaveGuards.size||(a.leaveGuards=m.leaveGuards),a.updateGuards.size||(a.updateGuards=m.updateGuards))),u&&a&&(!m||!pn(a,m)||!d)&&(a.enterCallbacks[f]||[]).forEach(E=>E(u))},{flush:"post"}),()=>{const u=r.value,a=e.name,f=l.value,d=f&&f.components[a];if(!d)return ji(n.default,{Component:d,route:u});const m=f.props[a],R=m?m===!0?u.params:typeof m=="function"?m(u):m:null,C=un(d,ie({},R,t,{onVnodeUnmounted:_=>{_.component.isUnmounted&&(f.instances[a]=null)},ref:c}));return ji(n.default,{Component:C,route:u})||C}}});function ji(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Wh=Kh;function Gh(e){const t=Mh(e.routes,e),n=e.parseQuery||_h,s=e.stringifyQuery||xi,r=e.history,o=On(),i=On(),l=On(),c=su(Nt);let u=Nt;on&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const a=wr.bind(null,A=>""+A),f=wr.bind(null,th),d=wr.bind(null,Xn);function m(A,k){let F,K;return Gc(A)?(F=t.getRecordMatcher(A),K=k):K=A,t.addRoute(K,F)}function R(A){const k=t.getRecordMatcher(A);k&&t.removeRoute(k)}function E(){return t.getRoutes().map(A=>A.record)}function C(A){return!!t.getRecordMatcher(A)}function _(A,k){if(k=ie({},k||c.value),typeof A=="string"){const y=Sr(n,A,k.path),v=t.resolve({path:y.path},k),b=r.createHref(y.fullPath);return ie(y,v,{params:d(v.params),hash:Xn(y.hash),redirectedFrom:void 0,href:b})}let F;if(A.path!=null)F=ie({},A,{path:Sr(n,A.path,k.path).path});else{const y=ie({},A.params);for(const v in y)y[v]==null&&delete y[v];F=ie({},A,{params:f(y)}),k.params=f(k.params)}const K=t.resolve(F,k),ee=A.hash||"";K.params=a(d(K.params));const h=rh(s,ie({},A,{hash:Yd(ee),path:K.path})),p=r.createHref(h);return ie({fullPath:h,hash:ee,query:s===xi?bh(A.query):A.query||{}},K,{redirectedFrom:void 0,href:p})}function w(A){return typeof A=="string"?Sr(n,A,c.value.path):ie({},A)}function O(A,k){if(u!==A)return mn(ye.NAVIGATION_CANCELLED,{from:k,to:A})}function x(A){return B(A)}function j(A){return x(ie(w(A),{replace:!0}))}function q(A,k){const F=A.matched[A.matched.length-1];if(F&&F.redirect){const{redirect:K}=F;let ee=typeof K=="function"?K(A,k):K;return typeof ee=="string"&&(ee=ee.includes("?")||ee.includes("#")?ee=w(ee):{path:ee},ee.params={}),ie({query:A.query,hash:A.hash,params:ee.path!=null?{}:A.params},ee)}}function B(A,k){const F=u=_(A),K=c.value,ee=A.state,h=A.force,p=A.replace===!0,y=q(F,K);if(y)return B(ie(w(y),{state:typeof y=="object"?ie({},ee,y.state):ee,force:h,replace:p}),k||F);const v=F;v.redirectedFrom=k;let b;return!h&&oh(s,K,F)&&(b=mn(ye.NAVIGATION_DUPLICATED,{to:v,from:K}),ae(K,K,!0,!1)),(b?Promise.resolve(b):V(v,K)).catch(S=>wt(S)?wt(S,ye.NAVIGATION_GUARD_REDIRECT)?S:Ae(S):oe(S,v,K)).then(S=>{if(S){if(wt(S,ye.NAVIGATION_GUARD_REDIRECT))return B(ie({replace:p},w(S.to),{state:typeof S.to=="object"?ie({},ee,S.to.state):ee,force:h}),k||v)}else S=L(v,K,!0,p,ee);return z(v,K,S),S})}function H(A,k){const F=O(A,k);return F?Promise.reject(F):Promise.resolve()}function P(A){const k=Xe.values().next().value;return k&&typeof k.runWithContext=="function"?k.runWithContext(A):A()}function V(A,k){let F;const[K,ee,h]=wh(A,k);F=vr(K.reverse(),"beforeRouteLeave",A,k);for(const y of K)y.leaveGuards.forEach(v=>{F.push(kt(v,A,k))});const p=H.bind(null,A,k);return F.push(p),Y(F).then(()=>{F=[];for(const y of o.list())F.push(kt(y,A,k));return F.push(p),Y(F)}).then(()=>{F=vr(ee,"beforeRouteUpdate",A,k);for(const y of ee)y.updateGuards.forEach(v=>{F.push(kt(v,A,k))});return F.push(p),Y(F)}).then(()=>{F=[];for(const y of h)if(y.beforeEnter)if(rt(y.beforeEnter))for(const v of y.beforeEnter)F.push(kt(v,A,k));else F.push(kt(y.beforeEnter,A,k));return F.push(p),Y(F)}).then(()=>(A.matched.forEach(y=>y.enterCallbacks={}),F=vr(h,"beforeRouteEnter",A,k,P),F.push(p),Y(F))).then(()=>{F=[];for(const y of i.list())F.push(kt(y,A,k));return F.push(p),Y(F)}).catch(y=>wt(y,ye.NAVIGATION_CANCELLED)?y:Promise.reject(y))}function z(A,k,F){l.list().forEach(K=>P(()=>K(A,k,F)))}function L(A,k,F,K,ee){const h=O(A,k);if(h)return h;const p=k===Nt,y=on?history.state:{};F&&(K||p?r.replace(A.fullPath,ie({scroll:p&&y&&y.scroll},ee)):r.push(A.fullPath,ee)),c.value=A,ae(A,k,F,p),Ae()}let Z;function te(){Z||(Z=r.listen((A,k,F)=>{if(!it.listening)return;const K=_(A),ee=q(K,it.currentRoute.value);if(ee){B(ie(ee,{replace:!0,force:!0}),K).catch(Vn);return}u=K;const h=c.value;on&&hh(Ti(h.fullPath,F.delta),rr()),V(K,h).catch(p=>wt(p,ye.NAVIGATION_ABORTED|ye.NAVIGATION_CANCELLED)?p:wt(p,ye.NAVIGATION_GUARD_REDIRECT)?(B(ie(w(p.to),{force:!0}),K).then(y=>{wt(y,ye.NAVIGATION_ABORTED|ye.NAVIGATION_DUPLICATED)&&!F.delta&&F.type===Gr.pop&&r.go(-1,!1)}).catch(Vn),Promise.reject()):(F.delta&&r.go(-F.delta,!1),oe(p,K,h))).then(p=>{p=p||L(K,h,!1),p&&(F.delta&&!wt(p,ye.NAVIGATION_CANCELLED)?r.go(-F.delta,!1):F.type===Gr.pop&&wt(p,ye.NAVIGATION_ABORTED|ye.NAVIGATION_DUPLICATED)&&r.go(-1,!1)),z(K,h,p)}).catch(Vn)}))}let Ee=On(),se=On(),X;function oe(A,k,F){Ae(A);const K=se.list();return K.length?K.forEach(ee=>ee(A,k,F)):console.error(A),Promise.reject(A)}function Je(){return X&&c.value!==Nt?Promise.resolve():new Promise((A,k)=>{Ee.add([A,k])})}function Ae(A){return X||(X=!A,te(),Ee.list().forEach(([k,F])=>A?F(A):k()),Ee.reset()),A}function ae(A,k,F,K){const{scrollBehavior:ee}=e;if(!on||!ee)return Promise.resolve();const h=!F&&ph(Ti(A.fullPath,0))||(K||!F)&&history.state&&history.state.scroll||null;return Xs().then(()=>ee(A,k,h)).then(p=>p&&dh(p)).catch(p=>oe(p,A,k))}const ge=A=>r.go(A);let qe;const Xe=new Set,it={currentRoute:c,listening:!0,addRoute:m,removeRoute:R,clearRoutes:t.clearRoutes,hasRoute:C,getRoutes:E,resolve:_,options:e,push:x,replace:j,go:ge,back:()=>ge(-1),forward:()=>ge(1),beforeEach:o.add,beforeResolve:i.add,afterEach:l.add,onError:se.add,isReady:Je,install(A){A.component("RouterLink",Vh),A.component("RouterView",Wh),A.config.globalProperties.$router=it,Object.defineProperty(A.config.globalProperties,"$route",{enumerable:!0,get:()=>He(c)}),on&&!qe&&c.value===Nt&&(qe=!0,x(r.location).catch(K=>{}));const k={};for(const K in Nt)Object.defineProperty(k,K,{get:()=>c.value[K],enumerable:!0});A.provide(or,it),A.provide(Eo,Nl(k)),A.provide(Jr,c);const F=A.unmount;Xe.add(A),A.unmount=function(){Xe.delete(A),Xe.size<1&&(u=Nt,Z&&Z(),Z=null,c.value=Nt,qe=!1,X=!1),F()}}};function Y(A){return A.reduce((k,F)=>k.then(()=>P(F)),Promise.resolve())}return it}function ag(){return Ze(or)}function ug(e){return Ze(Eo)}function Yc(e,t){return function(){return e.apply(t,arguments)}}const{toString:zh}=Object.prototype,{getPrototypeOf:gn}=Object,{iterator:ss,toStringTag:Zc}=Symbol,Ms=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Qn=(e,t)=>{let n=e;const s=[];for(;n!=null&&n!==Object.prototype;){if(s.indexOf(n)!==-1)return!1;if(s.push(n),Ms(n,t))return!0;n=gn(n)}return!1},Jh=(e,t)=>e!=null&&Qn(e,t)?e[t]:void 0,wo=(e=>t=>{const n=zh.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ot=e=>(e=e.toLowerCase(),t=>wo(t)===e),ir=e=>t=>typeof t===e,{isArray:Zt}=Array,yn=ir("undefined");function En(e){return e!==null&&!yn(e)&&e.constructor!==null&&!yn(e.constructor)&&Ve(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ea=ot("ArrayBuffer");function Xh(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ea(e.buffer),t}const Qh=ir("string"),Ve=ir("function"),ta=ir("number"),wn=e=>e!==null&&typeof e=="object",Yh=e=>e===!0||e===!1,Es=e=>{if(!wn(e))return!1;const t=gn(e);return(t===null||t===Object.prototype||gn(t)===null)&&!Qn(e,Zc)&&!Qn(e,ss)},Zh=e=>{if(!wn(e)||En(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},ep=ot("Date"),tp=ot("File"),np=e=>!!(e&&typeof e.uri<"u"),sp=e=>e&&typeof e.getParts<"u",rp=ot("Blob"),op=ot("FileList"),ip=e=>wn(e)&&Ve(e.pipe);function lp(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const Hi=lp(),Vi=typeof Hi.FormData<"u"?Hi.FormData:void 0,cp=e=>{if(!e)return!1;if(Vi&&e instanceof Vi)return!0;const t=gn(e);if(!t||t===Object.prototype||!Ve(e.append))return!1;const n=wo(e);return n==="formdata"||n==="object"&&Ve(e.toString)&&e.toString()==="[object FormData]"},ap=ot("URLSearchParams"),[up,fp,dp,hp]=["ReadableStream","Request","Response","Headers"].map(ot),pp=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function rs(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,r;if(typeof e!="object"&&(e=[e]),Zt(e))for(s=0,r=e.length;s0;)if(r=n[s],t===r.toLowerCase())return r;return null}const zt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,sa=e=>!yn(e)&&e!==zt;function Xr(...e){const{caseless:t,skipUndefined:n}=sa(this)&&this||{},s={},r=(o,i)=>{if(i==="__proto__"||i==="constructor"||i==="prototype")return;const l=t&&typeof i=="string"&&na(s,i)||i,c=Ms(s,l)?s[l]:void 0;Es(c)&&Es(o)?s[l]=Xr(c,o):Es(o)?s[l]=Xr({},o):Zt(o)?s[l]=o.slice():(!n||!yn(o))&&(s[l]=o)};for(let o=0,i=e.length;o(rs(t,(r,o)=>{n&&Ve(r)?Object.defineProperty(e,o,{__proto__:null,value:Yc(r,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,o,{__proto__:null,value:r,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:s}),e),gp=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),yp=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},_p=(e,t,n,s)=>{let r,o,i;const l={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),o=r.length;o-- >0;)i=r[o],(!s||s(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=n!==!1&&gn(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},bp=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},Ep=e=>{if(!e)return null;if(Zt(e))return e;let t=e.length;if(!ta(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},wp=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&gn(Uint8Array)),Sp=(e,t)=>{const s=(e&&e[ss]).call(e);let r;for(;(r=s.next())&&!r.done;){const o=r.value;t.call(e,o[0],o[1])}},Rp=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},vp=ot("HTMLFormElement"),Ap=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,r){return s.toUpperCase()+r}),{propertyIsEnumerable:Cp}=Object.prototype,Op=ot("RegExp"),ra=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};rs(n,(r,o)=>{let i;(i=t(r,o,e))!==!1&&(s[o]=i||r)}),Object.defineProperties(e,s)},Tp=e=>{ra(e,(t,n)=>{if(Ve(e)&&["arguments","caller","callee"].includes(n))return!1;const s=e[n];if(Ve(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},xp=(e,t)=>{const n={},s=r=>{r.forEach(o=>{n[o]=!0})};return Zt(e)?s(e):s(String(e).split(t)),n},Pp=()=>{},Np=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Ip(e){return!!(e&&Ve(e.append)&&e[Zc]==="FormData"&&e[ss])}const Dp=e=>{const t=new WeakSet,n=s=>{if(wn(s)){if(t.has(s))return;if(En(s))return s;if(!("toJSON"in s)){t.add(s);const r=Zt(s)?[]:{};return rs(s,(o,i)=>{const l=n(o);!yn(l)&&(r[i]=l)}),t.delete(s),r}}return s};return n(e)},Lp=ot("AsyncFunction"),Mp=e=>e&&(wn(e)||Ve(e))&&Ve(e.then)&&Ve(e.catch),oa=((e,t)=>e?setImmediate:t?((n,s)=>(zt.addEventListener("message",({source:r,data:o})=>{r===zt&&o===n&&s.length&&s.shift()()},!1),r=>{s.push(r),zt.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ve(zt.postMessage)),Fp=typeof queueMicrotask<"u"?queueMicrotask.bind(zt):typeof process<"u"&&process.nextTick||oa,ia=e=>e!=null&&Ve(e[ss]),kp=e=>e!=null&&Qn(e,ss)&&ia(e),g={isArray:Zt,isArrayBuffer:ea,isBuffer:En,isFormData:cp,isArrayBufferView:Xh,isString:Qh,isNumber:ta,isBoolean:Yh,isObject:wn,isPlainObject:Es,isEmptyObject:Zh,isReadableStream:up,isRequest:fp,isResponse:dp,isHeaders:hp,isUndefined:yn,isDate:ep,isFile:tp,isReactNativeBlob:np,isReactNative:sp,isBlob:rp,isRegExp:Op,isFunction:Ve,isStream:ip,isURLSearchParams:ap,isTypedArray:wp,isFileList:op,forEach:rs,merge:Xr,extend:mp,trim:pp,stripBOM:gp,inherits:yp,toFlatObject:_p,kindOf:wo,kindOfTest:ot,endsWith:bp,toArray:Ep,forEachEntry:Sp,matchAll:Rp,isHTMLForm:vp,hasOwnProperty:Ms,hasOwnProp:Ms,hasOwnInPrototypeChain:Qn,getSafeProp:Jh,reduceDescriptors:ra,freezeMethods:Tp,toObjectSet:xp,toCamelCase:Ap,noop:Pp,toFiniteNumber:Np,findKey:na,global:zt,isContextDefined:sa,isSpecCompliantForm:Ip,toJSONObject:Dp,isAsyncFn:Lp,isThenable:Mp,setImmediate:oa,asap:Fp,isIterable:ia,isSafeIterable:kp},Up=g.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Bp=e=>{const t={};let n,s,r;return e&&e.split(` `).forEach(function(i){r=i.indexOf(":"),n=i.substring(0,r).trim().toLowerCase(),s=i.substring(r+1).trim(),!(!n||t[n]&&Up[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t};function jp(e){let t=0,n=e.length;for(;tt;){const s=e.charCodeAt(n-1);if(s!==9&&s!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}const Hp=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),Vp=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function So(e,t){return g.isArray(e)?e.map(n=>So(n,t)):jp(String(e).replace(t,""))}const qp=e=>So(e,Hp),$p=e=>So(e,Vp);function la(e){const t=Object.create(null);return g.forEach(e.toJSON(),(n,s)=>{t[s]=$p(n)}),t}const qi=Symbol("internals");function Tn(e){return e&&String(e).trim().toLowerCase()}function ws(e){return e===!1||e==null?e:g.isArray(e)?e.map(ws):qp(String(e))}function Kp(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}const Wp=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ar(e,t,n,s,r){if(g.isFunction(s))return s.call(this,t,n);if(r&&(t=n),!!g.isString(t)){if(g.isString(s))return t.indexOf(s)!==-1;if(g.isRegExp(s))return s.test(t)}}function Gp(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function zp(e,t){const n=g.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{__proto__:null,value:function(r,o,i){return this[s].call(this,t,r,o,i)},configurable:!0})})}let Ie=class{constructor(t){t&&this.set(t)}set(t,n,s){const r=this;function o(l,c,u){const a=Tn(c);if(!a)return;const f=g.findKey(r,a);(!f||r[f]===void 0||u===!0||u===void 0&&r[f]!==!1)&&(r[f||c]=ws(l))}const i=(l,c)=>g.forEach(l,(u,a)=>o(u,a,c));if(g.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(g.isString(t)&&(t=t.trim())&&!Wp(t))i(Bp(t),n);else if(g.isObject(t)&&g.isSafeIterable(t)){let l=Object.create(null),c,u;for(const a of t){if(!g.isArray(a))throw new TypeError("Object iterator must return a key-value pair");u=a[0],g.hasOwnProp(l,u)?(c=l[u],l[u]=g.isArray(c)?[...c,a[1]]:[c,a[1]]):l[u]=a[1]}i(l,n)}else t!=null&&o(n,t,s);return this}get(t,n){if(t=Tn(t),t){const s=g.findKey(this,t);if(s){const r=this[s];if(!n)return r;if(n===!0)return Kp(r);if(g.isFunction(n))return n.call(this,r,s);if(g.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Tn(t),t){const s=g.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||Ar(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let r=!1;function o(i){if(i=Tn(i),i){const l=g.findKey(s,i);l&&(!n||Ar(s,s[l],l,n))&&(delete s[l],r=!0)}}return g.isArray(t)?t.forEach(o):o(t),r}clear(t){const n=Object.keys(this);let s=n.length,r=!1;for(;s--;){const o=n[s];(!t||Ar(this,this[o],o,t,!0))&&(delete this[o],r=!0)}return r}normalize(t){const n=this,s={};return g.forEach(this,(r,o)=>{const i=g.findKey(s,o);if(i){n[i]=ws(r),delete n[o];return}const l=t?Gp(o):String(o).trim();l!==o&&delete n[o],n[l]=ws(r),s[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return g.forEach(this,(s,r)=>{s!=null&&s!==!1&&(n[r]=t&&g.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const s=new this(t);return n.forEach(r=>s.set(r)),s}static accessor(t){const s=(this[qi]=this[qi]={accessors:{}}).accessors,r=this.prototype;function o(i){const l=Tn(i);s[l]||(zp(r,i),s[l]=!0)}return g.isArray(t)?t.forEach(o):o(t),this}};Ie.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);g.reduceDescriptors(Ie.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}});g.freezeMethods(Ie);const Jp="[REDACTED ****]";function Xp(e){if(g.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(g.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function Qp(e,t){const n=new Set(t.map(o=>String(o).toLowerCase())),s=[],r=o=>{if(o===null||typeof o!="object"||g.isBuffer(o))return o;if(s.indexOf(o)!==-1)return;o instanceof Ie&&(o=o.toJSON()),s.push(o);let i;if(g.isArray(o))i=[],o.forEach((l,c)=>{const u=r(l);g.isUndefined(u)||(i[c]=u)});else{if(!g.isPlainObject(o)&&Xp(o))return s.pop(),o;i=Object.create(null);for(const[l,c]of Object.entries(o)){const u=n.has(l.toLowerCase())?Jp:r(c);g.isUndefined(u)||(i[l]=u)}}return s.pop(),i};return r(e)}let M=class ca extends Error{static from(t,n,s,r,o,i){const l=new ca(t.message,n||t.code,s,r,o);return Object.defineProperty(l,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),l.name=t.name,t.status!=null&&l.status==null&&(l.status=t.status),i&&Object.assign(l,i),l}constructor(t,n,s,r,o){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),s&&(this.config=s),r&&(this.request=r),o&&(this.response=o,this.status=o.status)}toJSON(){const t=this.config,n=t&&g.hasOwnProp(t,"redact")?t.redact:void 0,s=g.isArray(n)&&n.length>0?Qp(t,n):g.toJSONObject(t);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:s,code:this.code,status:this.status}}};M.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";M.ERR_BAD_OPTION="ERR_BAD_OPTION";M.ECONNABORTED="ECONNABORTED";M.ETIMEDOUT="ETIMEDOUT";M.ECONNREFUSED="ECONNREFUSED";M.ERR_NETWORK="ERR_NETWORK";M.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";M.ERR_DEPRECATED="ERR_DEPRECATED";M.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";M.ERR_BAD_REQUEST="ERR_BAD_REQUEST";M.ERR_CANCELED="ERR_CANCELED";M.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";M.ERR_INVALID_URL="ERR_INVALID_URL";M.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const Yp=null,aa=100;function Qr(e){return g.isPlainObject(e)||g.isArray(e)}function ua(e){return g.endsWith(e,"[]")?e.slice(0,-2):e}function Cr(e,t,n){return e?e.concat(t).map(function(r,o){return r=ua(r),!n&&o?"["+r+"]":r}).join(n?".":""):t}function Zp(e){return g.isArray(e)&&!e.some(Qr)}const em=g.toFlatObject(g,{},null,function(t){return/^is[A-Z]/.test(t)});function lr(e,t,n){if(!g.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=g.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(w,O){return!g.isUndefined(O[w])});const s=n.metaTokens,r=n.visitor||R,o=n.dots,i=n.indexes,l=n.Blob||typeof Blob<"u"&&Blob,c=n.maxDepth===void 0?aa:n.maxDepth,u=l&&g.isSpecCompliantForm(t),a=[];if(!g.isFunction(r))throw new TypeError("visitor must be a function");function f(_){if(_===null)return"";if(g.isDate(_))return _.toISOString();if(g.isBoolean(_))return _.toString();if(!u&&g.isBlob(_))throw new M("Blob is not supported. Use a Buffer instead.");if(g.isArrayBuffer(_)||g.isTypedArray(_)){if(u&&typeof l=="function")return new l([_]);if(typeof Buffer<"u")return Buffer.from(_);throw new M("Blob is not supported. Use a Buffer instead.",M.ERR_NOT_SUPPORT)}return _}function d(_){if(_>c)throw new M("Object is too deeply nested ("+_+" levels). Max depth: "+c,M.ERR_FORM_DATA_DEPTH_EXCEEDED)}function m(_,w){if(c===1/0)return JSON.stringify(_);const O=[];return JSON.stringify(_,function(j,q){if(!g.isObject(q))return q;for(;O.length&&O[O.length-1]!==this;)O.pop();return O.push(q),d(w+O.length-1),q})}function R(_,w,O){let x=_;if(g.isReactNative(t)&&g.isReactNativeBlob(_))return t.append(Cr(O,w,o),f(_)),!1;if(_&&!O&&typeof _=="object"){if(g.endsWith(w,"{}"))w=s?w:w.slice(0,-2),_=m(_,1);else if(g.isArray(_)&&Zp(_)||(g.isFileList(_)||g.endsWith(w,"[]"))&&(x=g.toArray(_)))return w=ua(w),x.forEach(function(q,B){!(g.isUndefined(q)||q===null)&&t.append(i===!0?Cr([w],B,o):i===null?w:w+"[]",f(q))}),!1}return Qr(_)?!0:(t.append(Cr(O,w,o),f(_)),!1)}const E=Object.assign(em,{defaultVisitor:R,convertValue:f,isVisitable:Qr});function C(_,w,O=0){if(!g.isUndefined(_)){if(d(O),a.indexOf(_)!==-1)throw new Error("Circular reference detected in "+w.join("."));a.push(_),g.forEach(_,function(j,q){(!(g.isUndefined(j)||j===null)&&r.call(t,j,g.isString(q)?q.trim():q,w,E))===!0&&C(j,w?w.concat(q):[q],O+1)}),a.pop()}}if(!g.isObject(e))throw new TypeError("data must be an object");return C(e),t}function $i(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(s){return t[s]})}function Ro(e,t){this._pairs=[],e&&lr(e,this,t)}const fa=Ro.prototype;fa.append=function(t,n){this._pairs.push([t,n])};fa.toString=function(t){const n=t?s=>t.call(this,s,$i):$i;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function tm(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function da(e,t,n){if(!t)return e;e=e||"";const s=g.isFunction(n)?{serialize:n}:n,r=g.getSafeProp(s,"encode")||tm,o=g.getSafeProp(s,"serialize");let i;if(o?i=o(t,s):i=g.isURLSearchParams(t)?t.toString():new Ro(t,s).toString(r),i){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Ki{constructor(){this.handlers=[]}use(t,n,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){g.forEach(this.handlers,function(s){s!==null&&t(s)})}}const vo={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},nm=typeof URLSearchParams<"u"?URLSearchParams:Ro,sm=typeof FormData<"u"?FormData:null,rm=typeof Blob<"u"?Blob:null,om={isBrowser:!0,classes:{URLSearchParams:nm,FormData:sm,Blob:rm},protocols:["http","https","file","blob","url","data"]},Ao=typeof window<"u"&&typeof document<"u",Yr=typeof navigator=="object"&&navigator||void 0,im=Ao&&(!Yr||["ReactNative","NativeScript","NS"].indexOf(Yr.product)<0),lm=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",cm=Ao&&window.location.href||"http://localhost",am=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ao,hasStandardBrowserEnv:im,hasStandardBrowserWebWorkerEnv:lm,navigator:Yr,origin:cm},Symbol.toStringTag,{value:"Module"})),Oe={...am,...om};function um(e,t){return lr(e,new Oe.classes.URLSearchParams,{visitor:function(n,s,r,o){return Oe.isNode&&g.isBuffer(n)?(this.append(s,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}const Wi=aa;function ha(e){if(e>Wi)throw new M("FormData field is too deeply nested ("+e+" levels). Max depth: "+Wi,M.ERR_FORM_DATA_DEPTH_EXCEEDED)}function fm(e){const t=[],n=/\w+|\[(\w*)]/g;let s;for(;(s=n.exec(e))!==null;)ha(t.length),t.push(s[0]==="[]"?"":s[1]||s[0]);return t}function dm(e){const t={},n=Object.keys(e);let s;const r=n.length;let o;for(s=0;s=n.length;return i=!i&&g.isArray(r)?r.length:i,c?(g.hasOwnProp(r,i)?r[i]=g.isArray(r[i])?r[i].concat(s):[r[i],s]:r[i]=s,!l):((!g.hasOwnProp(r,i)||!g.isObject(r[i]))&&(r[i]=[]),t(n,s,r[i],o)&&g.isArray(r[i])&&(r[i]=dm(r[i])),!l)}if(g.isFormData(e)&&g.isFunction(e.entries)){const n={};return g.forEachEntry(e,(s,r)=>{t(fm(s),r,n,0)}),n}return null}const sn=(e,t)=>e!=null&&g.hasOwnProp(e,t)?e[t]:void 0;function hm(e,t,n){if(g.isString(e))try{return(t||JSON.parse)(e),g.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(e)}const os={transitional:vo,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const s=n.getContentType()||"",r=s.indexOf("application/json")>-1,o=g.isObject(t);if(o&&g.isHTMLForm(t)&&(t=new FormData(t)),g.isFormData(t))return r?JSON.stringify(pa(t)):t;if(g.isArrayBuffer(t)||g.isBuffer(t)||g.isStream(t)||g.isFile(t)||g.isBlob(t)||g.isReadableStream(t))return t;if(g.isArrayBufferView(t))return t.buffer;if(g.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(o){const c=sn(this,"formSerializer");if(s.indexOf("application/x-www-form-urlencoded")>-1)return um(t,c).toString();if((l=g.isFileList(t))||s.indexOf("multipart/form-data")>-1){const u=sn(this,"env"),a=u&&u.FormData;return lr(l?{"files[]":t}:t,a&&new a,c)}}return o||r?(n.setContentType("application/json",!1),hm(t)):t}],transformResponse:[function(t){const n=sn(this,"transitional")||os.transitional,s=n&&n.forcedJSONParsing,r=sn(this,"responseType"),o=r==="json";if(g.isResponse(t)||g.isReadableStream(t))return t;if(t&&g.isString(t)&&(s&&!r||o)){const l=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t,sn(this,"parseReviver"))}catch(c){if(l)throw c.name==="SyntaxError"?M.from(c,M.ERR_BAD_RESPONSE,this,null,sn(this,"response")):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Oe.classes.FormData,Blob:Oe.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};g.forEach(["delete","get","head","post","put","patch","query"],e=>{os.headers[e]={}});function Or(e,t){const n=this||os,s=t||n,r=Ie.from(s.headers);let o=s.data;return g.forEach(e,function(l){o=l.call(n,o,r.normalize(),t?t.status:void 0)}),r.normalize(),o}function ma(e){return!!(e&&e.__CANCEL__)}let is=class extends M{constructor(t,n,s){super(t??"canceled",M.ERR_CANCELED,n,s),this.name="CanceledError",this.__CANCEL__=!0}};function ga(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new M("Request failed with status code "+n.status,n.status>=400&&n.status<500?M.ERR_BAD_REQUEST:M.ERR_BAD_RESPONSE,n.config,n.request,n))}function pm(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function mm(e,t){e=e||10;const n=new Array(e),s=new Array(e);let r=0,o=0,i;return t=t!==void 0?t:1e3,function(c){const u=Date.now(),a=s[o];i||(i=u),n[r]=c,s[r]=u;let f=o,d=0;for(;f!==r;)d+=n[f++],f=f%e;if(r=(r+1)%e,r===o&&(o=(o+1)%e),u-i{n=a,r=null,o&&(clearTimeout(o),o=null),e(...u)};return[(...u)=>{const a=Date.now(),f=a-n;f>=s?i(u,a):(r=u,o||(o=setTimeout(()=>{o=null,i(r)},s-f)))},()=>r&&i(r)]}const Fs=(e,t,n=3)=>{let s=0;const r=mm(50,250);return gm(o=>{if(!o||typeof o.loaded!="number")return;const i=o.loaded,l=o.lengthComputable?o.total:void 0,c=l!=null?Math.min(i,l):i,u=Math.max(0,c-s),a=r(u);s=Math.max(s,c);const f={loaded:c,total:l,progress:l?c/l:void 0,bytes:u,rate:a||void 0,estimated:a&&l?(l-c)/a:void 0,event:o,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(f)},n)},Gi=(e,t)=>{const n=e!=null;return[s=>t[0]({lengthComputable:n,total:e,loaded:s}),t[1]]},zi=e=>(...t)=>g.asap(()=>e(...t)),ym=Oe.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Oe.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Oe.origin),Oe.navigator&&/(msie|trident)/i.test(Oe.navigator.userAgent)):()=>!0,_m=Oe.hasStandardBrowserEnv?{write(e,t,n,s,r,o,i){if(typeof document>"u")return;const l=[`${e}=${encodeURIComponent(t)}`];g.isNumber(n)&&l.push(`expires=${new Date(n).toUTCString()}`),g.isString(s)&&l.push(`path=${s}`),g.isString(r)&&l.push(`domain=${r}`),o===!0&&l.push("secure"),g.isString(i)&&l.push(`SameSite=${i}`),document.cookie=l.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;ne instanceof Ie?{...e}:e;function en(e,t){e=e||{},t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function s(a,f,d,m){return g.isPlainObject(a)&&g.isPlainObject(f)?g.merge.call({caseless:m},a,f):g.isPlainObject(f)?g.merge({},f):g.isArray(f)?f.slice():f}function r(a,f,d,m){if(g.isUndefined(f)){if(!g.isUndefined(a))return s(void 0,a,d,m)}else return s(a,f,d,m)}function o(a,f){if(!g.isUndefined(f))return s(void 0,f)}function i(a,f){if(g.isUndefined(f)){if(!g.isUndefined(a))return s(void 0,a)}else return s(void 0,f)}function l(a){const f=g.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!g.isUndefined(f))if(g.isPlainObject(f)){if(g.hasOwnProp(f,a))return f[a]}else return;const d=g.hasOwnProp(e,"transitional")?e.transitional:void 0;if(g.isPlainObject(d)&&g.hasOwnProp(d,a))return d[a]}function c(a,f,d){if(g.hasOwnProp(t,d))return s(a,f);if(g.hasOwnProp(e,d))return s(void 0,a)}const u={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,allowedSocketPaths:i,responseEncoding:i,validateStatus:c,headers:(a,f,d)=>r(Xi(a),Xi(f),d,!0)};return g.forEach(Object.keys({...e,...t}),function(f){if(f==="__proto__"||f==="constructor"||f==="prototype")return;const d=g.hasOwnProp(u,f)?u[f]:r,m=g.hasOwnProp(e,f)?e[f]:void 0,R=g.hasOwnProp(t,f)?t[f]:void 0,E=d(m,R,f);g.isUndefined(E)&&d!==c||(n[f]=E)}),g.hasOwnProp(t,"validateStatus")&&g.isUndefined(t.validateStatus)&&l("validateStatusUndefinedResolves")===!1&&(g.hasOwnProp(e,"validateStatus")?n.validateStatus=s(void 0,e.validateStatus):delete n.validateStatus),n}const Am=["content-type","content-length"];function Cm(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t||{}).forEach(([s,r])=>{Am.includes(s.toLowerCase())&&e.set(s,r)})}const Om=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16)));function _a(e){const t=en({},e),n=d=>g.hasOwnProp(t,d)?t[d]:void 0,s=n("data");let r=n("withXSRFToken");const o=n("xsrfHeaderName"),i=n("xsrfCookieName");let l=n("headers");const c=n("auth"),u=n("baseURL"),a=n("allowAbsoluteUrls"),f=n("url");if(t.headers=l=Ie.from(l),t.url=da(ya(u,f,a,t),n("params"),n("paramsSerializer")),c){const d=g.getSafeProp(c,"username")||"",m=g.getSafeProp(c,"password")||"";try{l.set("Authorization","Basic "+btoa(d+":"+(m?Om(m):"")))}catch(R){throw M.from(R,M.ERR_BAD_OPTION_VALUE,e)}}if(g.isFormData(s)&&(Oe.hasStandardBrowserEnv||Oe.hasStandardBrowserWebWorkerEnv||g.isReactNative(s)?l.setContentType(void 0):g.isFunction(s.getHeaders)&&Cm(l,s.getHeaders(),n("formDataHeaderPolicy"))),Oe.hasStandardBrowserEnv&&(g.isFunction(r)&&(r=r(t)),r===!0||r==null&&ym(t.url))){const m=o&&i&&_m.read(i);m&&l.set(o,m)}return t}const Tm=typeof XMLHttpRequest<"u",xm=Tm&&function(e){return new Promise(function(n,s){const r=_a(e);let o=r.data;const i=Ie.from(r.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:u}=r,a,f,d,m,R;function E(){m&&m(),R&&R(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let C=new XMLHttpRequest;C.open(r.method.toUpperCase(),r.url,!0),C.timeout=r.timeout;function _(){if(!C)return;const O=Ie.from("getAllResponseHeaders"in C&&C.getAllResponseHeaders()),j={data:!l||l==="text"||l==="json"?C.responseText:C.response,status:C.status,statusText:C.statusText,headers:O,config:e,request:C};ga(function(B){n(B),E()},function(B){s(B),E()},j),C=null}"onloadend"in C?C.onloadend=_:C.onreadystatechange=function(){!C||C.readyState!==4||C.status===0&&!(C.responseURL&&C.responseURL.startsWith("file:"))||setTimeout(_)},C.onabort=function(){C&&(s(new M("Request aborted",M.ECONNABORTED,e,C)),E(),C=null)},C.onerror=function(x){const j=x&&x.message?x.message:"Network Error",q=new M(j,M.ERR_NETWORK,e,C);q.event=x||null,s(q),E(),C=null},C.ontimeout=function(){let x=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const j=r.transitional||vo;r.timeoutErrorMessage&&(x=r.timeoutErrorMessage),s(new M(x,j.clarifyTimeoutError?M.ETIMEDOUT:M.ECONNABORTED,e,C)),E(),C=null},o===void 0&&i.setContentType(null),"setRequestHeader"in C&&g.forEach(la(i),function(x,j){C.setRequestHeader(j,x)}),g.isUndefined(r.withCredentials)||(C.withCredentials=!!r.withCredentials),l&&l!=="json"&&(C.responseType=r.responseType),u&&([d,R]=Fs(u,!0),C.addEventListener("progress",d)),c&&C.upload&&([f,m]=Fs(c),C.upload.addEventListener("progress",f),C.upload.addEventListener("loadend",m)),(r.cancelToken||r.signal)&&(a=O=>{C&&(s(!O||O.type?new is(null,e,C):O),C.abort(),E(),C=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const w=pm(r.url);if(w&&!Oe.protocols.includes(w)){s(new M("Unsupported protocol "+w+":",M.ERR_BAD_REQUEST,e)),E();return}C.send(o||null)})},Pm=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let s=!1;const r=function(c){if(!s){s=!0,i();const u=c instanceof Error?c:this.reason;n.abort(u instanceof M?u:new is(u instanceof Error?u.message:u))}};let o=t&&setTimeout(()=>{o=null,r(new M(`timeout of ${t}ms exceeded`,M.ETIMEDOUT))},t);const i=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(r):c.removeEventListener("abort",r)}),e=null)};e.forEach(c=>c.addEventListener("abort",r,{once:!0}));const{signal:l}=n;return l.unsubscribe=()=>g.asap(i),l},Nm=function*(e,t){let n=e.byteLength;if(n{const r=Im(e,t);let o=0,i,l=c=>{i||(i=!0,s&&s(c))};return new ReadableStream({async pull(c){try{const{done:u,value:a}=await r.next();if(u){l(),c.close();return}let f=a.byteLength;if(n){let d=o+=f;n(d)}c.enqueue(new Uint8Array(a))}catch(u){throw l(u),u}},cancel(c){return l(c),r.return()}},{highWaterMark:2})},ks=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,Lm=(e,t,n)=>t+2m>=2&&s.charCodeAt(m-2)===37&&s.charCodeAt(m-1)===51&&(s.charCodeAt(m)===68||s.charCodeAt(m)===100);u>=0&&(s.charCodeAt(u)===61?(c++,u--):a(u)&&(c++,u-=3)),c===1&&u>=0&&(s.charCodeAt(u)===61||a(u))&&c++;const d=Math.floor(i/4)*3-(c||0);return d>0?d:0}let o=0;for(let i=0,l=s.length;i=55296&&c<=56319&&i+1=56320&&u<=57343?(o+=4,i++):o+=3}else o+=3}return o}const Co="1.18.1",Yi=64*1024,{isFunction:ds}=g,Fm=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),Zi=e=>{if(!g.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},el=(e,...t)=>{try{return!!e(...t)}catch{return!1}},km=e=>{const t=e.indexOf("://");let n=e;return t!==-1&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},Um=e=>{const t=g.global!==void 0&&g.global!==null?g.global:globalThis,{ReadableStream:n,TextEncoder:s}=t;e=g.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:r,Request:o,Response:i}=e,l=r?ds(r):typeof fetch=="function",c=ds(o),u=ds(i);if(!l)return!1;const a=l&&ds(n),f=l&&(typeof s=="function"?(_=>w=>_.encode(w))(new s):async _=>new Uint8Array(await new o(_).arrayBuffer())),d=c&&a&&el(()=>{let _=!1;const w=new o(Oe.origin,{body:new n,method:"POST",get duplex(){return _=!0,"half"}}),O=w.headers.has("Content-Type");return w.body!=null&&w.body.cancel(),_&&!O}),m=u&&a&&el(()=>g.isReadableStream(new i("").body)),R={stream:m&&(_=>_.body)};l&&["text","arrayBuffer","blob","formData","stream"].forEach(_=>{!R[_]&&(R[_]=(w,O)=>{let x=w&&w[_];if(x)return x.call(w);throw new M(`Response type '${_}' is not supported`,M.ERR_NOT_SUPPORT,O)})});const E=async _=>{if(_==null)return 0;if(g.isBlob(_))return _.size;if(g.isSpecCompliantForm(_))return(await new o(Oe.origin,{method:"POST",body:_}).arrayBuffer()).byteLength;if(g.isArrayBufferView(_)||g.isArrayBuffer(_))return _.byteLength;if(g.isURLSearchParams(_)&&(_=_+""),g.isString(_))return(await f(_)).byteLength},C=async(_,w)=>{const O=g.toFiniteNumber(_.getContentLength());return O??E(w)};return async _=>{let{url:w,method:O,data:x,signal:j,cancelToken:q,timeout:B,onDownloadProgress:H,onUploadProgress:P,responseType:V,headers:z,withCredentials:L="same-origin",fetchOptions:Z,maxContentLength:te,maxBodyLength:Ee}=_a(_);const se=g.isNumber(te)&&te>-1,X=g.isNumber(Ee)&&Ee>-1,oe=Y=>g.hasOwnProp(_,Y)?_[Y]:void 0;let Je=r||fetch;V=V?(V+"").toLowerCase():"text";let Ae=Pm([j,q&&q.toAbortSignal()],B),ae=null;const ge=Ae&&Ae.unsubscribe&&(()=>{Ae.unsubscribe()});let qe,Xe=null;const it=()=>new M("Request body larger than maxBodyLength limit",M.ERR_BAD_REQUEST,_,ae);try{let Y;const A=oe("auth");if(A){const b=g.getSafeProp(A,"username")||"",S=g.getSafeProp(A,"password")||"";Y={username:b,password:S}}if(km(w)){const b=new URL(w,Oe.origin);if(!Y&&(b.username||b.password)){const S=Zi(b.username),D=Zi(b.password);Y={username:S,password:D}}(b.username||b.password)&&(b.username="",b.password="",w=b.href)}if(Y&&(z.delete("authorization"),z.set("Authorization","Basic "+btoa(Fm((Y.username||"")+":"+(Y.password||""))))),se&&typeof w=="string"&&w.startsWith("data:")&&Mm(w)>te)throw new M("maxContentLength size of "+te+" exceeded",M.ERR_BAD_RESPONSE,_,ae);if(X&&O!=="get"&&O!=="head"){const b=await E(x);if(typeof b=="number"&&isFinite(b)&&(qe=b,b>Ee))throw it()}const k=X&&(g.isReadableStream(x)||g.isStream(x)),F=(b,S,D)=>Qi(b,Yi,N=>{if(X&&N>Ee)throw Xe=it();S&&S(N)},D);if(d&&O!=="get"&&O!=="head"&&(P||k)){if(qe=qe??await C(z,x),qe!==0||k){let b=new o(w,{method:"POST",body:x,duplex:"half"}),S;if(g.isFormData(x)&&(S=b.headers.get("content-type"))&&z.setContentType(S),b.body){const[D,N]=P&&Gi(qe,Fs(zi(P)))||[];x=F(b.body,D,N)}}}else if(k&&!c&&a&&O!=="get"&&O!=="head")x=F(x);else if(k&&c&&!d&&O!=="get"&&O!=="head")throw new M("Stream request bodies are not supported by the current fetch implementation",M.ERR_NOT_SUPPORT,_,ae);g.isString(L)||(L=L?"include":"omit");const K=c&&"credentials"in o.prototype;if(g.isFormData(x)){const b=z.getContentType();b&&/^multipart\/form-data/i.test(b)&&!/boundary=/i.test(b)&&z.delete("content-type")}z.set("User-Agent","axios/"+Co,!1);const ee={...Z,signal:Ae,method:O.toUpperCase(),headers:la(z.normalize()),body:x,duplex:"half",credentials:K?L:void 0};ae=c&&new o(w,ee);let h=await(c?Je(ae,Z):Je(w,ee));const p=Ie.from(h.headers);if(se){const b=g.toFiniteNumber(p.getContentLength());if(b!=null&&b>te)throw new M("maxContentLength size of "+te+" exceeded",M.ERR_BAD_RESPONSE,_,ae)}const y=m&&(V==="stream"||V==="response");if(m&&h.body&&(H||se||y&&ge)){const b={};["status","statusText","headers"].forEach($=>{b[$]=h[$]});const S=g.toFiniteNumber(p.getContentLength()),[D,N]=H&&Gi(S,Fs(zi(H),!0))||[];let I=0;const T=$=>{if(se&&(I=$,I>te))throw new M("maxContentLength size of "+te+" exceeded",M.ERR_BAD_RESPONSE,_,ae);D&&D($)};h=new i(Qi(h.body,Yi,T,()=>{N&&N(),ge&&ge()}),b)}V=V||"text";let v=await R[g.findKey(R,V)||"text"](h,_);if(se&&!m&&!y){let b;if(v!=null&&(typeof v.byteLength=="number"?b=v.byteLength:typeof v.size=="number"?b=v.size:typeof v=="string"&&(b=typeof s=="function"?new s().encode(v).byteLength:v.length)),typeof b=="number"&&b>te)throw new M("maxContentLength size of "+te+" exceeded",M.ERR_BAD_RESPONSE,_,ae)}return!y&&ge&&ge(),await new Promise((b,S)=>{ga(b,S,{data:v,headers:Ie.from(h.headers),status:h.status,statusText:h.statusText,config:_,request:ae})})}catch(Y){if(ge&&ge(),Ae&&Ae.aborted&&Ae.reason instanceof M){const A=Ae.reason;throw A.config=_,ae&&(A.request=ae),Y!==A&&Object.defineProperty(A,"cause",{__proto__:null,value:Y,writable:!0,enumerable:!1,configurable:!0}),A}if(Xe)throw ae&&!Xe.request&&(Xe.request=ae),Xe;if(Y instanceof M)throw ae&&!Y.request&&(Y.request=ae),Y;if(Y&&Y.name==="TypeError"&&/Load failed|fetch/i.test(Y.message)){const A=new M("Network Error",M.ERR_NETWORK,_,ae,Y&&Y.response);throw Object.defineProperty(A,"cause",{__proto__:null,value:Y.cause||Y,writable:!0,enumerable:!1,configurable:!0}),A}throw M.from(Y,Y&&Y.code,_,ae,Y&&Y.response)}}},Bm=new Map,ba=e=>{let t=e&&e.env||{};const{fetch:n,Request:s,Response:r}=t,o=[s,r,n];let i=o.length,l=i,c,u,a=Bm;for(;l--;)c=o[l],u=a.get(c),u===void 0&&a.set(c,u=l?new Map:Um(t)),a=u;return u};ba();const Oo={http:Yp,xhr:xm,fetch:{get:ba}};g.forEach(Oo,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const tl=e=>`- ${e}`,jm=e=>g.isFunction(e)||e===null||e===!1;function Hm(e,t){e=g.isArray(e)?e:[e];const{length:n}=e;let s,r;const o={};for(let i=0;i`adapter ${c} `+(u===!1?"is not supported by the environment":"is not available in the build"));let l=n?i.length>1?`since : `+i.map(tl).join(` `):" "+tl(i[0]):"as no adapter specified";throw new M("There is no suitable adapter to dispatch the request "+l,M.ERR_NOT_SUPPORT)}return r}const Ea={getAdapter:Hm,adapters:Oo};function Tr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new is(null,e)}function nl(e){return Tr(e),e.headers=Ie.from(e.headers),e.data=Or.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ea.getAdapter(e.adapter||os.adapter,e)(e).then(function(s){Tr(e),e.response=s;try{s.data=Or.call(e,e.transformResponse,s)}finally{delete e.response}return s.headers=Ie.from(s.headers),s},function(s){if(!ma(s)&&(Tr(e),s&&s.response)){e.response=s.response;try{s.response.data=Or.call(e,e.transformResponse,s.response)}finally{delete e.response}s.response.headers=Ie.from(s.response.headers)}return Promise.reject(s)})}const cr={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{cr[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const sl={};cr.transitional=function(t,n,s){function r(o,i){return"[Axios v"+Co+"] Transitional option '"+o+"'"+i+(s?". "+s:"")}return(o,i,l)=>{if(t===!1)throw new M(r(i," has been removed"+(n?" in "+n:"")),M.ERR_DEPRECATED);return n&&!sl[i]&&(sl[i]=!0,console.warn(r(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,l):!0}};cr.spelling=function(t){return(n,s)=>(console.warn(`${s} is likely a misspelling of ${t}`),!0)};function Vm(e,t,n){if(typeof e!="object"||e===null)throw new M("options must be an object",M.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let r=s.length;for(;r-- >0;){const o=s[r],i=Object.prototype.hasOwnProperty.call(t,o)?t[o]:void 0;if(i){const l=e[o],c=l===void 0||i(l,o,e);if(c!==!0)throw new M("option "+o+" must be "+c,M.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new M("Unknown option "+o,M.ERR_BAD_OPTION)}}const Ss={assertOptions:Vm,validators:cr},Te=Ss.validators;let Qt=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Ki,response:new Ki}}async request(t,n){try{return await this._request(t,n)}catch(s){if(s instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const o=(()=>{if(!r.stack)return"";const i=r.stack.indexOf(` `);return i===-1?"":r.stack.slice(i+1)})();try{if(!s.stack)s.stack=o;else if(o){const i=o.indexOf(` `),l=i===-1?-1:o.indexOf(` `,i+1),c=l===-1?"":o.slice(l+1);String(s.stack).endsWith(c)||(s.stack+=` `+o)}}catch{}}throw s}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=en(this.defaults,n);const{transitional:s,paramsSerializer:r,headers:o}=n;s!==void 0&&Ss.assertOptions(s,{silentJSONParsing:Te.transitional(Te.boolean),forcedJSONParsing:Te.transitional(Te.boolean),clarifyTimeoutError:Te.transitional(Te.boolean),legacyInterceptorReqResOrdering:Te.transitional(Te.boolean),advertiseZstdAcceptEncoding:Te.transitional(Te.boolean),validateStatusUndefinedResolves:Te.transitional(Te.boolean)},!1),r!=null&&(g.isFunction(r)?n.paramsSerializer={serialize:r}:Ss.assertOptions(r,{encode:Te.function,serialize:Te.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Ss.assertOptions(n,{baseUrl:Te.spelling("baseURL"),withXsrfToken:Te.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&g.merge(o.common,o[n.method]);o&&g.forEach(["delete","get","head","post","put","patch","query","common"],R=>{delete o[R]}),n.headers=Ie.concat(i,o);const l=[];let c=!0;this.interceptors.request.forEach(function(E){if(typeof E.runWhen=="function"&&E.runWhen(n)===!1)return;c=c&&E.synchronous;const C=n.transitional||vo;C&&C.legacyInterceptorReqResOrdering?l.unshift(E.fulfilled,E.rejected):l.push(E.fulfilled,E.rejected)});const u=[];this.interceptors.response.forEach(function(E){u.push(E.fulfilled,E.rejected)});let a,f=0,d;if(!c){const R=[nl.bind(this),void 0];for(R.unshift(...l),R.push(...u),d=R.length,a=Promise.resolve(n);f{if(!s._listeners)return;let o=s._listeners.length;for(;o-- >0;)s._listeners[o](r);s._listeners=null}),this.promise.then=r=>{let o;const i=new Promise(l=>{s.subscribe(l),o=l}).then(r);return i.cancel=function(){s.unsubscribe(o)},i},t(function(o,i,l){s.reason||(s.reason=new is(o,i,l),n(s.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)}toAbortSignal(){const t=new AbortController,n=s=>{t.abort(s)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new wa(function(r){t=r}),cancel:t}}};function $m(e){return function(n){return e.apply(null,n)}}function Km(e){return g.isObject(e)&&e.isAxiosError===!0}const Zr={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Zr).forEach(([e,t])=>{Zr[t]=e});function Sa(e){const t=new Qt(e),n=Yc(Qt.prototype.request,t);return g.extend(n,Qt.prototype,t,{allOwnKeys:!0}),g.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return Sa(en(e,r))},n}const me=Sa(os);me.Axios=Qt;me.CanceledError=is;me.CancelToken=qm;me.isCancel=ma;me.VERSION=Co;me.toFormData=lr;me.AxiosError=M;me.Cancel=me.CanceledError;me.all=function(t){return Promise.all(t)};me.spread=$m;me.isAxiosError=Km;me.mergeConfig=en;me.AxiosHeaders=Ie;me.formToJSON=e=>pa(g.isHTMLForm(e)?new FormData(e):e);me.getAdapter=Ea.getAdapter;me.HttpStatusCode=Zr;me.default=me;const{Axios:pg,AxiosError:mg,CanceledError:gg,isCancel:yg,CancelToken:_g,VERSION:bg,all:Eg,Cancel:wg,isAxiosError:Sg,spread:Rg,toFormData:vg,AxiosHeaders:Ag,HttpStatusCode:Cg,formToJSON:Og,getAdapter:Tg,mergeConfig:xg,create:Pg}=me,Ra="guest_key";function va(){const e=localStorage.getItem(Ra)||"";return/^[a-f0-9]{64}$/.test(e)?e:""}function Wm(){const e=va();if(e)return e;const t=new Uint8Array(32);crypto.getRandomValues(t);const n=Array.from(t,s=>s.toString(16).padStart(2,"0")).join("");return localStorage.setItem(Ra,n),n}const gt=me.create({baseURL:"/api",timeout:6e4});let hs=null;async function Gm(){const e=va();if(!e)throw new Error("游客身份已失效");return hs||(hs=me.post("/api/auth/guest",{guest_key:e}).then(t=>{var s;const n=(s=t.data)==null?void 0:s.data;if(!(n!=null&&n.token))throw new Error("游客身份续期失败");return localStorage.setItem("token",n.token),localStorage.setItem("auth_type","guest"),n.token}).finally(()=>{hs=null})),hs}gt.interceptors.request.use(e=>{const t=localStorage.getItem("token");return t&&(e.headers.Authorization=`Bearer ${t}`),e});gt.interceptors.response.use(e=>e,async e=>{var s,r,o,i,l,c,u,a;if(me.isCancel(e))return Promise.reject(e);const t=((r=(s=e.response)==null?void 0:s.data)==null?void 0:r.message)||e.message||"请求失败";if(((o=e.response)==null?void 0:o.status)===401){const f=e.config||{},d=localStorage.getItem("auth_type"),m=String(f.url||"");if(["/auth/login","/auth/register","/auth/guest"].some(E=>m.includes(E))){const E=new Error(t);return E.code=e.code,E.status=401,E.detail=((l=(i=e.response)==null?void 0:i.data)==null?void 0:l.detail)||"",Promise.reject(E)}if(d==="guest"&&!f._guestRetry){f._guestRetry=!0;try{const E=await Gm();return f.headers=f.headers||{},f.headers.Authorization=`Bearer ${E}`,gt(f)}catch{}}localStorage.removeItem("token"),localStorage.removeItem("auth_type"),d==="account"&&!window.location.pathname.includes("/login")&&(window.location.href="/login")}const n=new Error(t);return n.code=e.code,n.status=((c=e.response)==null?void 0:c.status)||null,n.detail=((a=(u=e.response)==null?void 0:u.data)==null?void 0:a.detail)||"",Promise.reject(n)});const zm=_o("auth",()=>{const e=xe(localStorage.getItem("token")||""),t=xe(null),n=xe(!1),s=Ue(()=>!!e.value&&!!t.value),r=Ue(()=>{var f;return!!((f=t.value)!=null&&f.is_guest)});function o(f,d){e.value=f.token,t.value=f.user,localStorage.setItem("token",e.value),localStorage.setItem("auth_type",d)}async function i(){const f=await gt.post("/auth/guest",{guest_key:Wm()});return o(f.data.data,"guest"),f.data}async function l(){var f;try{if(e.value){const d=await gt.get("/auth/me");t.value=d.data.data,localStorage.setItem("auth_type",(f=t.value)!=null&&f.is_guest?"guest":"account")}t.value||await i()}catch{a(),await i()}finally{n.value=!0}}async function c(f,d){const m=await gt.post("/auth/login",{account:f,password:d});return o(m.data.data,"account"),m.data}async function u(f,d,m,R){const E=await gt.post("/auth/register",{username:f,email:d,password:m,invitation_code:R});return o(E.data.data,"account"),E.data}function a(){e.value="",t.value=null,localStorage.removeItem("token"),localStorage.removeItem("auth_type")}return{token:e,user:t,initialized:n,isLoggedIn:s,isGuest:r,init:l,enterGuestMode:i,login:c,register:u,logout:a}}),Jm=_o("settings",()=>{const e=xe({markdown:!0,image:!0,video:!0,voice:!0,document:!0,emoji:!0,upload_image:!0,upload_video:!0,upload_file:!0,paste_image:!0,short_drama:!0}),t=xe("AI Chat"),n=xe(!0),s=xe(!0),r=xe({name:"AI 客服",greeting:"您好,请问有什么可以帮您?"}),o=xe([]),i=xe([]),l=xe(!1);async function c(){const d=(await gt.get("/settings/public")).data.data;e.value=d.features,t.value=d.site_name,n.value=d.allow_register,s.value=d.registration_requires_invite!==!1,r.value=d.voice_persona||r.value,l.value=!0}async function u(){const f=await gt.get("/models");o.value=f.data.data}async function a(){const f=await gt.get("/agents");i.value=f.data.data||[]}return{features:e,siteName:t,allowRegister:n,registrationRequiresInvite:s,voicePersona:r,models:o,agents:i,loaded:l,loadPublic:c,loadModels:u,loadAgents:a}}),Xm=[{path:"/login",name:"Login",component:()=>fs(()=>import("./LoginView-CRMjBBAt.js"),__vite__mapDeps([0,1,2,3])),meta:{guest:!0}},{path:"/register",name:"Register",component:()=>fs(()=>import("./RegisterView-fepIe43l.js"),__vite__mapDeps([4,1,2,5])),meta:{guest:!0}},{path:"/",name:"Chat",component:()=>fs(()=>import("./ChatView-Cn2buOgM.js"),__vite__mapDeps([6,7,1,2,8])),meta:{requiresAuth:!0}},{path:"/short-drama",name:"ShortDrama",component:()=>fs(()=>import("./ShortDramaView-NKkZzpXF.js"),__vite__mapDeps([9,1,2,7,10])),meta:{requiresAuth:!0,requiresAccount:!0,shortDrama:!0}}],Aa=Gh({history:Ah(),routes:Xm});Aa.beforeEach(async(e,t,n)=>{const s=zm(),r=Jm();if(s.initialized||await s.init(),e.meta.requiresAuth&&!s.isLoggedIn){n({name:"Login",query:{redirect:e.fullPath}});return}if(e.meta.requiresAccount&&s.isGuest){n({name:"Login",query:{redirect:e.fullPath}});return}if(e.meta.shortDrama){try{r.loaded||await r.loadPublic()}catch{n({name:"Chat"});return}if(!r.features.short_drama){n({name:"Chat"});return}}if(e.meta.guest&&s.isLoggedIn&&!s.isGuest){n({name:"Chat"});return}n()});const To="ai-chat-theme",rl="light";function Qm(){try{return localStorage.getItem(To)==="dark"?"dark":rl}catch{return rl}}const Us=xe(Qm());let ol;function xo(e,t=!1){const n=e==="dark"?"dark":"light",s=document.documentElement;t&&(s.classList.add("theme-transitioning"),window.clearTimeout(ol),ol=window.setTimeout(()=>s.classList.remove("theme-transitioning"),260)),s.dataset.theme=n,s.style.colorScheme=n,Us.value=n}function Ym(){xo(Us.value)}function Ng(){const e=Ue(()=>Us.value==="dark");function t(n){const s=n==="dark"?"dark":"light";xo(s,!0);try{localStorage.setItem(To,s)}catch{}}return{theme:Us,isDark:e,setTheme:t}}typeof window<"u"&&window.addEventListener("storage",e=>{e.key===To&&xo(e.newValue)});Ym();const Po=id(Bd);Po.use(ad());Po.use(Aa);Po.mount("#app");export{Ue as A,ec as B,_s as C,cg as D,gd as E,Ke as F,_d as G,Zn as H,bd as I,uo as J,eg as K,og as L,no as M,sg as N,Xs as O,Ru as P,ig as Q,tg as R,Ng as S,ng as T,Td as _,Jm as a,be as b,ys as c,je as d,He as e,Rc as f,Zm as g,vc as h,Bl as i,Mu as j,ag as k,ug as l,Ft as m,_o as n,Yl as o,gt as p,ns as q,xe as r,Od as s,xn as t,zm as u,rg as v,lg as w,Fn as x,Fu as y,Ws as z};