(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 i of r)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&s(l)}).observe(document,{childList:!0,subtree:!0});function n(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function s(r){if(r.ep)return;r.ep=!0;const i=n(r);fetch(r.href,i)}})();/** * @vue/shared v3.5.43 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function Bs(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const se={},Nt=[],st=()=>{},ri=()=>!1,Wn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),qn=e=>e.startsWith("onUpdate:"),ve=Object.assign,Us=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Tl=Object.prototype.hasOwnProperty,Q=(e,t)=>Tl.call(e,t),j=Array.isArray,St=e=>wn(e)==="[object Map]",Vn=e=>wn(e)==="[object Set]",cr=e=>wn(e)==="[object Date]",U=e=>typeof e=="function",oe=e=>typeof e=="string",je=e=>typeof e=="symbol",X=e=>e!==null&&typeof e=="object",ii=e=>(X(e)||U(e))&&U(e.then)&&U(e.catch),li=Object.prototype.toString,wn=e=>li.call(e),Pl=e=>wn(e).slice(8,-1),oi=e=>wn(e)==="[object Object]",$s=e=>oe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,rn=Bs(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Jn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Il=/-\w/g,Oe=Jn(e=>e.replace(Il,t=>t.slice(1).toUpperCase())),Nl=/\B([A-Z])/g,Vt=Jn(e=>e.replace(Nl,"-$1").toLowerCase()),zn=Jn(e=>e.charAt(0).toUpperCase()+e.slice(1)),cs=Jn(e=>e?`on${zn(e)}`:""),et=(e,t)=>!Object.is(e,t),Nn=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},Ks=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let ar;const Yn=()=>ar||(ar=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function En(e){if(j(e)){const t={};for(let n=0;nn.startsWith("/*")?"":n).split(Ml).forEach(n=>{if(n){const s=n.split(Dl);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function ke(e){let t="";if(oe(e))t=e;else if(j(e))for(let n=0;n!!(e&&e.__v_isRef===!0),V=e=>oe(e)?e:e==null?"":j(e)||X(e)&&(e.toString===li||!U(e.toString))?ai(e)?V(e.value):JSON.stringify(e,fi,2):String(e),fi=(e,t)=>ai(t)?fi(e,t.value):St(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],i)=>(n[as(s,i)+" =>"]=r,n),{})}:Vn(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>as(n))}:je(t)?as(t):X(t)&&!j(t)&&!oi(t)?String(t):t,as=(e,t="")=>{var n;return je(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** * @vue/reactivity v3.5.43 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let pe;class Bl{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&&pe&&(pe.active?(this.parent=pe,this.index=(pe.scopes||(pe.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){const s=this.scopes.slice();for(t=0,n=s.length;t0&&--this._on===0){if(pe===this)pe=this.prevScope;else{let t=pe;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(on){let t=on;for(on=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 gi(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function mi(e){let t,n=e.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),qs(s),$l(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=n}function As(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(vi(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function vi(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===hn)||(e.globalVersion=hn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!As(e))))return;e.flags|=2;const t=e.dep,n=re,s=He;re=e,He=!0;try{gi(e);const r=e.fn(e._value);(t.version===0||et(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{re=n,He=s,mi(e),e.flags&=-3}}function qs(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 i=n.computed.deps;i;i=i.nextDep)qs(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function $l(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let He=!0;const _i=[];function gt(){_i.push(He),He=!1}function mt(){const e=_i.pop();He=e===void 0?!0:e}function hr(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=re;re=void 0;try{t()}finally{re=n}}}let hn=0;class Kl{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 Js{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(!re||!He||re===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==re)n=this.activeLink=new Kl(re,this),re.deps?(n.prevDep=re.depsTail,re.depsTail.nextDep=n,re.depsTail=n):re.deps=re.depsTail=n,yi(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=re.depsTail,n.nextDep=void 0,re.depsTail.nextDep=n,re.depsTail=n,re.deps===n&&(re.deps=s)}return n}trigger(t){this.version++,hn++,this.notify(t)}notify(t){Gs();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Ws()}}}function yi(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)yi(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Cs=new WeakMap,Dt=Symbol(""),Rs=Symbol(""),pn=Symbol("");function ye(e,t,n){if(He&&re){let s=Cs.get(e);s||Cs.set(e,s=new Map);let r=s.get(n);r||(s.set(n,r=new Js),r.map=s,r.key=n),r.track()}}function dt(e,t,n,s,r,i){const l=Cs.get(e);if(!l){hn++;return}const o=u=>{u&&u.trigger()};if(Gs(),t==="clear")l.forEach(o);else{const u=j(e),d=u&&$s(n);if(u&&n==="length"){const a=Number(s);l.forEach((f,p)=>{(p==="length"||p===pn||!je(p)&&p>=a)&&o(f)})}else switch((n!==void 0||l.has(void 0))&&o(l.get(n)),d&&o(l.get(pn)),t){case"add":u?d&&o(l.get("length")):(o(l.get(Dt)),St(e)&&o(l.get(Rs)));break;case"delete":u||(o(l.get(Dt)),St(e)&&o(l.get(Rs)));break;case"set":St(e)&&o(l.get(Dt));break}}Ws()}function jt(e){const t=Y(e);return t===e||(ye(t,"iterate",pn),Le(e))?t:it(e)?At(e)?t.map(n=>Ct(Ve(n))):t.map(Ct):t.map(Ve)}function Xn(e){return ye(e=Y(e),"iterate",pn),e}function Xe(e,t){return it(e)?Ct(At(e)?Ve(t):t):Ve(t)}const Gl={__proto__:null,[Symbol.iterator](){return ds(this,Symbol.iterator,e=>Xe(this,e))},concat(...e){return jt(this).concat(...e.map(t=>j(t)?jt(t):t))},entries(){return ds(this,"entries",e=>(e[1]=Xe(this,e[1]),e))},every(e,t){return ut(this,"every",e,t,void 0,arguments)},filter(e,t){return ut(this,"filter",e,t,n=>n.map(s=>Xe(this,s)),arguments)},find(e,t){return ut(this,"find",e,t,n=>Xe(this,n),arguments)},findIndex(e,t){return ut(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return ut(this,"findLast",e,t,n=>Xe(this,n),arguments)},findLastIndex(e,t){return ut(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return ut(this,"forEach",e,t,void 0,arguments)},includes(...e){return hs(this,"includes",e)},indexOf(...e){return hs(this,"indexOf",e)},join(e){return jt(this).join(e)},lastIndexOf(...e){return hs(this,"lastIndexOf",e)},map(e,t){return ut(this,"map",e,t,void 0,arguments)},pop(){return Zt(this,"pop")},push(...e){return Zt(this,"push",e)},reduce(e,...t){return pr(this,"reduce",e,t)},reduceRight(e,...t){return pr(this,"reduceRight",e,t)},shift(){return Zt(this,"shift")},some(e,t){return ut(this,"some",e,t,void 0,arguments)},splice(...e){return Zt(this,"splice",e)},toReversed(){return jt(this).toReversed()},toSorted(e){return jt(this).toSorted(e)},toSpliced(...e){return jt(this).toSpliced(...e)},unshift(...e){return Zt(this,"unshift",e)},values(){return ds(this,"values",e=>Xe(this,e))}};function ds(e,t,n){const s=Xn(e),r=s[t]();return s!==e&&!Le(e)&&(r._next=r.next,r.next=()=>{const i=r._next();return i.done||(i.value=n(i.value)),i}),r}const Wl=Array.prototype;function ut(e,t,n,s,r,i){const l=Xn(e),o=l!==e&&!Le(e),u=l[t];if(u!==Wl[t]){const f=u.apply(e,i);return o?Ve(f):f}let d=n;l!==e&&(o?d=function(f,p){return n.call(this,Xe(e,f),p,e)}:n.length>2&&(d=function(f,p){return n.call(this,f,p,e)}));const a=u.call(l,d,s);return o&&r?r(a):a}function pr(e,t,n,s){const r=Xn(e),i=r!==e&&!Le(e);let l=n,o=!1;r!==e&&(i?(o=s.length===0,l=function(d,a,f){return o&&(o=!1,d=Xe(e,d)),n.call(this,d,Xe(e,a),f,e)}):n.length>3&&(l=function(d,a,f){return n.call(this,d,a,f,e)}));const u=r[t](l,...s);return o?Xe(e,u):u}function hs(e,t,n){const s=Y(e);ye(s,"iterate",pn);const r=s[t](...n);return(r===-1||r===!1)&&Qs(n[0])?(n[0]=Y(n[0]),s[t](...n)):r}function Zt(e,t,n=[]){gt(),Gs();const s=Y(e)[t].apply(e,n);return Ws(),mt(),s}const ql=Bs("__proto__,__v_isRef,__isVue"),bi=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(je));function Jl(e){je(e)||(e=String(e));const t=Y(this);return ye(t,"has",e),t.hasOwnProperty(e)}class wi{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,i=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return i;if(n==="__v_raw")return s===(r?i?ro:Ai:i?Si:xi).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const l=j(t);if(!r){let u;if(l&&(u=Gl[n]))return u;if(n==="hasOwnProperty")return Jl}const o=Reflect.get(t,n,xe(t)?t:s);if((je(n)?bi.has(n):ql(n))||(r||ye(t,"get",n),i))return o;if(xe(o)){const u=l&&$s(n)?o:o.value;return r&&X(u)?Ts(u):u}return X(o)?r?Ts(o):Zn(o):o}}class Ei extends wi{constructor(t=!1){super(!1,t)}set(t,n,s,r){let i=t[n];const l=j(t)&&$s(n);if(!this._isShallow){const d=it(i);if(!Le(s)&&!it(s)&&(i=Y(i),s=Y(s)),!l&&xe(i)&&!xe(s))return d||(i.value=s),!0}const o=l?Number(n)e,Cn=e=>Reflect.getPrototypeOf(e);function Zl(e,t,n){return function(...s){const r=this.__v_raw,i=Y(r),l=St(i),o=e==="entries"||e===Symbol.iterator&&l,u=e==="keys"&&l,d=r[e](...s),a=n?Os:t?Ct:Ve;return!t&&ye(i,"iterate",u?Rs:Dt),ve(Object.create(d),{next(){const{value:f,done:p}=d.next();return p?{value:f,done:p}:{value:o?[a(f[0]),a(f[1])]:a(f),done:p}}})}}function Rn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function eo(e,t){const n={get(r){const i=this.__v_raw,l=Y(i),o=Y(r);e||(et(r,o)&&ye(l,"get",r),ye(l,"get",o));const{has:u}=Cn(l),d=t?Os:e?Ct:Ve;if(u.call(l,r))return d(i.get(r));if(u.call(l,o))return d(i.get(o));i!==l&&i.get(r)},get size(){const r=this.__v_raw;return!e&&ye(Y(r),"iterate",Dt),r.size},has(r){const i=this.__v_raw,l=Y(i),o=Y(r);return e||(et(r,o)&&ye(l,"has",r),ye(l,"has",o)),r===o?i.has(r):i.has(r)||i.has(o)},forEach(r,i){const l=this,o=l.__v_raw,u=Y(o),d=t?Os:e?Ct:Ve;return!e&&ye(u,"iterate",Dt),o.forEach((a,f)=>r.call(i,d(a),d(f),l))}};return ve(n,e?{add:Rn("add"),set:Rn("set"),delete:Rn("delete"),clear:Rn("clear")}:{add(r){const i=Y(this),l=Cn(i),o=Y(r),u=!t&&!Le(r)&&!it(r)?o:r;return l.has.call(i,u)||et(r,u)&&l.has.call(i,r)||et(o,u)&&l.has.call(i,o)||(i.add(u),dt(i,"add",u,u)),this},set(r,i){!t&&!Le(i)&&!it(i)&&(i=Y(i));const l=Y(this),{has:o,get:u}=Cn(l);let d=o.call(l,r);d||(r=Y(r),d=o.call(l,r));const a=u.call(l,r);return l.set(r,i),d?et(i,a)&&dt(l,"set",r,i):dt(l,"add",r,i),this},delete(r){const i=Y(this),{has:l,get:o}=Cn(i);let u=l.call(i,r);u||(r=Y(r),u=l.call(i,r)),o&&o.call(i,r);const d=i.delete(r);return u&&dt(i,"delete",r,void 0),d},clear(){const r=Y(this),i=r.size!==0,l=r.clear();return i&&dt(r,"clear",void 0,void 0),l}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=Zl(r,e,t)}),n}function zs(e,t){const n=eo(e,t);return(s,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(Q(n,r)&&r in s?n:s,r,i)}const to={get:zs(!1,!1)},no={get:zs(!1,!0)},so={get:zs(!0,!1)};const xi=new WeakMap,Si=new WeakMap,Ai=new WeakMap,ro=new WeakMap;function io(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 it(e)?e:Ys(e,!1,Yl,to,xi)}function Ci(e){return Ys(e,!1,Xl,no,Si)}function Ts(e){return Ys(e,!0,Ql,so,Ai)}function Ys(e,t,n,s,r){if(!X(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const i=r.get(e);if(i)return i;const l=io(Pl(e));if(l===0)return e;const o=new Proxy(e,l===2?s:n);return r.set(e,o),o}function At(e){return it(e)?At(e.__v_raw):!!(e&&e.__v_isReactive)}function it(e){return!!(e&&e.__v_isReadonly)}function Le(e){return!!(e&&e.__v_isShallow)}function Qs(e){return e?!!e.__v_raw:!1}function Y(e){const t=e&&e.__v_raw;return t?Y(t):e}function lo(e){return!Q(e,"__v_skip")&&Object.isExtensible(e)&&ui(e,"__v_skip",!0),e}const Ve=e=>X(e)?Zn(e):e,Ct=e=>X(e)?Ts(e):e;function xe(e){return e?e.__v_isRef===!0:!1}function fe(e){return Ri(e,!1)}function oo(e){return Ri(e,!0)}function Ri(e,t){return xe(e)?e:new uo(e,t)}class uo{constructor(t,n){this.dep=new Js,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Y(t),this._value=n?t:Ve(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||Le(t)||it(t);t=s?t:Y(t),et(t,n)&&(this._rawValue=t,this._value=s?t:Ve(t),this.dep.trigger())}}function W(e){return xe(e)?e.value:e}const co={get:(e,t,n)=>t==="__v_raw"?e:W(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return xe(r)&&!xe(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function Oi(e){return At(e)?e:new Proxy(e,co)}class ao{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Js(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=hn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&re!==this)return pi(this,!0),!0}get value(){const t=this.dep.track();return vi(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function fo(e,t,n=!1){let s,r;return U(e)?s=e:(s=e.get,r=e.set),new ao(s,r,n)}const On={},Fn=new WeakMap;let It;function ho(e,t=!1,n=It){if(n){let s=Fn.get(n);s||Fn.set(n,s=[]),s.push(e)}}function po(e,t,n=se){const{immediate:s,deep:r,once:i,scheduler:l,augmentJob:o,call:u}=n,d=N=>r?N:Le(N)||r===!1||r===0?ht(N,1):ht(N);let a,f,p,g,S=!1,E=!1;if(xe(e)?(f=()=>e.value,S=Le(e)):At(e)?(f=()=>d(e),S=!0):j(e)?(E=!0,S=e.some(N=>At(N)||Le(N)),f=()=>e.map(N=>{if(xe(N))return N.value;if(At(N))return d(N);if(U(N))return u?u(N,2):N()})):U(e)?t?f=u?()=>u(e,2):e:f=()=>{if(p){gt();try{p()}finally{mt()}}const N=It;It=a;try{return u?u(e,3,[g]):e(g)}finally{It=N}}:f=st,t&&r){const N=f,te=r===!0?1/0:r;f=()=>ht(N(),te)}const B=Ul(),k=()=>{a.stop(),B&&B.active&&Us(B.effects,a)};if(i&&t){const N=t;t=(...te)=>{const ce=N(...te);return k(),ce}}let P=E?new Array(e.length).fill(On):On;const M=N=>{if(!(!(a.flags&1)||!a.dirty&&!N))if(t){const te=a.run();if(N||r||S||(E?te.some((ce,ie)=>et(ce,P[ie])):et(te,P))){p&&p();const ce=It;It=a;try{const ie=[te,P===On?void 0:E&&P[0]===On?[]:P,g];P=te,u?u(t,3,ie):t(...ie)}finally{It=ce}}}else a.run()};return o&&o(M),a=new di(f),a.scheduler=l?()=>l(M,!1):M,g=N=>ho(N,!1,a),p=a.onStop=()=>{const N=Fn.get(a);if(N){if(u)u(N,4);else for(const te of N)te();Fn.delete(a)}},t?s?M(!0):P=a.run():l?l(M.bind(null,!0),!0):a.run(),k.pause=a.pause.bind(a),k.resume=a.resume.bind(a),k.stop=k,k}function ht(e,t=1/0,n){if(t<=0||!X(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,xe(e))ht(e.value,t,n);else if(j(e))for(let s=0;s{ht(s,t,n)});else if(oi(e)){for(const s in e)ht(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&ht(e[s],t,n)}return e}/** * @vue/runtime-core v3.5.43 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function xn(e,t,n,s){try{return s?e(...s):e()}catch(r){es(r,t,n)}}function Be(e,t,n,s){if(U(e)){const r=xn(e,t,n,s);return r&&ii(r)&&r.catch(i=>{es(i,t,n)}),r}if(j(e)){const r=[];for(let i=0;i>>1,r=Re[s],i=gn(r);i=gn(n)?Re.push(e):Re.splice(mo(t),0,e),e.flags|=1,Ii()}}function Ii(){kn||(kn=Ti.then(Mi))}function vo(e){if(!j(e))Et&&e.id===-1?Et.splice(Bt+1,0,e):e.flags&1||(Kt.push(e),e.flags|=1);else for(let t=0;tgn(n)-gn(s));if(Kt.length=0,Et){for(let n=0;ne.id==null?e.flags&2?-1:1/0:e.id;function Mi(e){try{for(Qe=0;Qe{s._d&&Un(-1);const i=Hn(t),l=pt.length;let o;try{o=e(...r)}finally{for(let u=pt.length;u>l;u--)sr();Hn(i),s._d&&Un(1)}return o};return s._n=!0,s._c=!0,s._d=!0,s}function tt(e,t){if(me===null)return e;const n=ls(me),s=e.dirs||(e.dirs=[]);for(let r=0;r1)return n&&U(t)?t.call(s&&s.proxy):t}}const _o=Symbol.for("v-scx"),yo=()=>rt(_o);function Dn(e,t,n){return Li(e,t,n)}function Li(e,t,n=se){const{immediate:s,deep:r,flush:i,once:l}=n,o=ve({},n),u=t&&s||!t&&i!=="post";let d;if(yn){if(i==="sync"){const g=yo();d=g.__watcherHandles||(g.__watcherHandles=[])}else if(!u){const g=()=>{};return g.stop=st,g.resume=st,g.pause=st,g}}const a=we;o.call=(g,S,E)=>Be(g,a,S,E);let f=!1;i==="post"?o.scheduler=g=>{Te(g,a&&a.suspense)}:i!=="sync"&&(f=!0,o.scheduler=(g,S)=>{S?g():Xs(g)}),o.augmentJob=g=>{t&&(g.flags|=4),f&&(g.flags|=2,a&&(g.id=a.uid,g.i=a))};const p=po(e,t,o);return yn&&(d?d.push(p):u&&p()),p}function bo(e,t,n){const s=this.proxy,r=oe(e)?e.includes(".")?Vi(s,e):()=>s[e]:e.bind(s,s);let i;U(t)?i=t:(i=t.handler,n=t);const l=An(this),o=Li(r,i.bind(s),n);return l(),o}function Vi(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;re.__isTeleport,ps=Symbol("_leaveCb");function Eo(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==lt){t=n;break}}return t}function Fi(e){if(!er(e))return ts(e.type)&&e.children?Eo(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&&U(n.default))return n.default()}}function Zs(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;const n=e.component.subTree;Zs(ts(n.type)&&Fi(n)||n,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ki(e,t){return U(e)?ve({name:e.name},t,{setup:e}):e}function Hi(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function mr(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const jn=new WeakMap;function un(e,t,n,s,r=!1){if(j(e)){e.forEach((E,B)=>un(E,t&&(j(t)?t[B]:t),n,s,r));return}if(Wt(s)&&!r){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&un(e,t,n,s.component.subTree);return}const i=s.shapeFlag&4?ls(s.component):s.el,l=r?null:i,{i:o,r:u}=e,d=t&&t.r,a=o.refs===se?o.refs={}:o.refs,f=o.setupState,p=Y(f),g=f===se?ri:E=>mr(a,E)?!1:Q(p,E),S=(E,B)=>!(B&&mr(a,B));if(d!=null&&d!==u){if(vr(t),oe(d))a[d]=null,g(d)&&(f[d]=null);else if(xe(d)){const E=t;S(d,E.k)&&(d.value=null),E.k&&(a[E.k]=null)}}if(U(u))xn(u,o,12,[l,a]);else{const E=oe(u),B=xe(u);if(E||B){const k=()=>{if(e.f){const P=E?g(u)?f[u]:a[u]:S()||!e.k?u.value:a[e.k];if(r)j(P)&&Us(P,i);else if(j(P))P.includes(i)||P.push(i);else if(E)a[u]=[i],g(u)&&(f[u]=a[u]);else{const M=[i];S(u,e.k)&&(u.value=M),e.k&&(a[e.k]=M)}}else E?(a[u]=l,g(u)&&(f[u]=l)):B&&(S(u,e.k)&&(u.value=l),e.k&&(a[e.k]=l))};if(l){const P=()=>{k(),jn.delete(e)};P.id=-1,jn.set(e,P),Te(P,n)}else vr(e),k()}}}function vr(e){const t=jn.get(e);t&&(t.flags|=8,jn.delete(e))}Yn().requestIdleCallback;Yn().cancelIdleCallback;const Wt=e=>!!e.type.__asyncLoader,er=e=>e.type.__isKeepAlive;function xo(e,t){ji(e,"a",t)}function So(e,t){ji(e,"da",t)}function ji(e,t,n=we){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(ns(t,s,n),n){let r=n.parent;for(;r&&r.parent;)er(r.parent.vnode)&&Ao(s,t,n,r),r=r.parent}}function Ao(e,t,n,s){const r=ns(t,e,s,!0);Sn(()=>{Us(s[t],r)},n)}function ns(e,t,n=we,s=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...l)=>{gt();const o=An(n),u=Be(t,n,e,l);return o(),mt(),u});return s?r.unshift(i):r.push(i),i}}const vt=e=>(t,n=we)=>{(!yn||e==="sp")&&ns(e,(...s)=>t(...s),n)},Co=vt("bm"),ss=vt("m"),Ro=vt("bu"),Oo=vt("u"),To=vt("bum"),Sn=vt("um"),Po=vt("sp"),Io=vt("rtg"),No=vt("rtc");function Mo(e,t=we){ns("ec",e,t)}const Do="components";function Bi(e,t){return Vo(Do,e,!0,t)||e}const Lo=Symbol.for("v-ndc");function Vo(e,t,n=!0,s=!1){const r=me||we;if(r){const i=r.type;{const o=wu(i,!1);if(o&&(o===t||o===Oe(t)||o===zn(Oe(t))))return i}const l=_r(r[e]||i[e],t)||_r(r.appContext[e],t);return!l&&s?i:l}}function _r(e,t){return e&&(e[t]||e[Oe(t)]||e[zn(Oe(t))])}function cn(e,t,n,s){let r;const i=n,l=j(e);if(l||oe(e)){const o=l&&At(e);let u=!1,d=!1;o&&(u=!Le(e),d=it(e),e=Xn(e)),r=new Array(e.length);for(let a=0,f=e.length;at(o,u,void 0,i));else{const o=Object.keys(e);r=new Array(o.length);for(let u=0,d=o.length;u0;return $(),Lt(ge,null,[Ee("slot",d,s)],a?-2:64)}let l=e[t];l&&l._c&&(l._d=!1);const o=pt.length;$();let u;try{const d=l&&Ui(l(n)),a=n.key||i||d&&d.key;u=Lt(ge,{key:(a&&!je(a)?a:`_${t}`)+(!d&&s?"_fb":"")},d||(s?s():[]),d&&e._===1?64:-2)}catch(d){for(let a=pt.length;a>o;a--)sr();throw d}finally{l&&l._c&&(l._d=!0)}return u.scopeId&&(u.slotScopeIds=[u.scopeId+"-s"]),u}function Ui(e){return e.some(t=>vn(t)?!(t.type===lt||t.type===ge&&!Ui(t.children)):!0)?e:null}const Ps=e=>e?ul(e)?ls(e):Ps(e.parent):null,an=ve(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=>Ps(e.parent),$root:e=>Ps(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Ki(e),$forceUpdate:e=>e.f||(e.f=()=>{Xs(e.update)}),$nextTick:e=>e.n||(e.n=Pi.bind(e.proxy)),$watch:e=>bo.bind(e)}),gs=(e,t)=>e!==se&&!e.__isScriptSetup&&Q(e,t),ko={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:i,accessCache:l,type:o,appContext:u}=e;if(t[0]!=="$"){const p=l[t];if(p!==void 0)switch(p){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(gs(s,t))return l[t]=1,s[t];if(r!==se&&Q(r,t))return l[t]=2,r[t];if(Q(i,t))return l[t]=3,i[t];if(n!==se&&Q(n,t))return l[t]=4,n[t];Is&&(l[t]=0)}}const d=an[t];let a,f;if(d)return t==="$attrs"&&ye(e.attrs,"get",""),d(e);if((a=o.__cssModules)&&(a=a[t]))return a;if(n!==se&&Q(n,t))return l[t]=4,n[t];if(f=u.config.globalProperties,Q(f,t))return f[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:i}=e;return gs(r,t)?(r[t]=n,!0):s!==se&&Q(s,t)?(s[t]=n,!0):Q(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,props:i,type:l}},o){let u;return!!(n[o]||e!==se&&o[0]!=="$"&&Q(e,o)||gs(t,o)||Q(i,o)||Q(s,o)||Q(an,o)||Q(r.config.globalProperties,o)||(u=l.__cssModules)&&u[o])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Q(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function yr(e){return j(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Is=!0;function Ho(e){const t=Ki(e),n=e.proxy,s=e.ctx;Is=!1,t.beforeCreate&&br(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:l,watch:o,provide:u,inject:d,created:a,beforeMount:f,mounted:p,beforeUpdate:g,updated:S,activated:E,deactivated:B,beforeDestroy:k,beforeUnmount:P,destroyed:M,unmounted:N,render:te,renderTracked:ce,renderTriggered:ie,errorCaptured:$e,serverPrefetch:_t,expose:Ke,inheritAttrs:yt,components:Rt,directives:Ge,filters:Qt}=t;if(d&&jo(d,s,null),l)for(const Z in l){const J=l[Z];U(J)&&(s[Z]=J.bind(n))}if(r){const Z=r.call(n,n);X(Z)&&(e.data=Zn(Z))}if(Is=!0,i)for(const Z in i){const J=i[Z],ot=U(J)?J.bind(n,n):U(J.get)?J.get.bind(n,n):st,bt=!U(J)&&U(J.set)?J.set.bind(n):st,We=Fe({get:ot,set:bt});Object.defineProperty(s,Z,{enumerable:!0,configurable:!0,get:()=>We.value,set:Se=>We.value=Se})}if(o)for(const Z in o)$i(o[Z],s,n,Z);if(u){const Z=U(u)?u.call(n):u;Reflect.ownKeys(Z).forEach(J=>{Mn(J,Z[J])})}a&&br(a,e,"c");function de(Z,J){j(J)?J.forEach(ot=>Z(ot.bind(n))):J&&Z(J.bind(n))}if(de(Co,f),de(ss,p),de(Ro,g),de(Oo,S),de(xo,E),de(So,B),de(Mo,$e),de(No,ce),de(Io,ie),de(To,P),de(Sn,N),de(Po,_t),j(Ke))if(Ke.length){const Z=e.exposed||(e.exposed={});Ke.forEach(J=>{Object.defineProperty(Z,J,{get:()=>n[J],set:ot=>n[J]=ot,enumerable:!0})})}else e.exposed||(e.exposed={});te&&e.render===st&&(e.render=te),yt!=null&&(e.inheritAttrs=yt),Rt&&(e.components=Rt),Ge&&(e.directives=Ge),_t&&Hi(e)}function jo(e,t,n=st){j(e)&&(e=Ns(e));for(const s in e){const r=e[s];let i;X(r)?"default"in r?i=rt(r.from||s,r.default,!0):i=rt(r.from||s):i=rt(r),xe(i)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>i.value,set:l=>i.value=l}):t[s]=i}}function br(e,t,n){Be(j(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function $i(e,t,n,s){let r=s.includes(".")?Vi(n,s):()=>n[s];if(oe(e)){const i=t[e];U(i)&&Dn(r,i)}else if(U(e))Dn(r,e.bind(n));else if(X(e))if(j(e))e.forEach(i=>$i(i,t,n,s));else{const i=U(e.handler)?e.handler.bind(n):t[e.handler];U(i)&&Dn(r,i,e)}}function Ki(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:l}}=e.appContext,o=i.get(t);let u;return o?u=o:!r.length&&!n&&!s?u=t:(u={},r.length&&r.forEach(d=>Bn(u,d,l,!0)),Bn(u,t,l)),X(t)&&i.set(t,u),u}function Bn(e,t,n,s=!1){const{mixins:r,extends:i}=t;i&&Bn(e,i,n,!0),r&&r.forEach(l=>Bn(e,l,n,!0));for(const l in t)if(!(s&&l==="expose")){const o=Bo[l]||n&&n[l];e[l]=o?o(e[l],t[l]):t[l]}return e}const Bo={data:wr,props:Er,emits:Er,methods:nn,computed:nn,beforeCreate:Ae,created:Ae,beforeMount:Ae,mounted:Ae,beforeUpdate:Ae,updated:Ae,beforeDestroy:Ae,beforeUnmount:Ae,destroyed:Ae,unmounted:Ae,activated:Ae,deactivated:Ae,errorCaptured:Ae,serverPrefetch:Ae,components:nn,directives:nn,watch:$o,provide:wr,inject:Uo};function wr(e,t){return t?e?function(){return ve(U(e)?e.call(this,this):e,U(t)?t.call(this,this):t)}:t:e}function Uo(e,t){return nn(Ns(e),Ns(t))}function Ns(e){if(j(e)){const t={};for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Oe(t)}Modifiers`]||e[`${Vt(t)}Modifiers`];function qo(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||se;let r=n;const i=t.startsWith("update:"),l=i&&Wo(s,t.slice(7));l&&(l.trim&&(r=n.map(a=>oe(a)?a.trim():a)),l.number&&(r=r.map(Ks)));let o,u=s[o=cs(t)]||s[o=cs(Oe(t))];!u&&i&&(u=s[o=cs(Vt(t))]),u&&Be(u,e,6,r);const d=s[o+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[o])return;e.emitted[o]=!0,Be(d,e,6,r)}}const Jo=new WeakMap;function Wi(e,t,n=!1){const s=n?Jo:t.emitsCache,r=s.get(e);if(r!==void 0)return r;const i=e.emits;let l={},o=!1;if(!U(e)){const u=d=>{const a=Wi(d,t,!0);a&&(o=!0,ve(l,a))};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!i&&!o?(X(e)&&s.set(e,null),null):(j(i)?i.forEach(u=>l[u]=null):ve(l,i),X(e)&&s.set(e,l),l)}function rs(e,t){return!e||!Wn(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),Q(e,t[0].toLowerCase()+t.slice(1))||Q(e,Vt(t))||Q(e,t))}function xr(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[i],slots:l,attrs:o,emit:u,render:d,renderCache:a,props:f,data:p,setupState:g,ctx:S,inheritAttrs:E}=e,B=Hn(e);let k,P;try{if(n.shapeFlag&4){const N=r||s,te=N;k=Ze(d.call(te,N,a,f,g,p,S)),P=o}else{const N=t;k=Ze(N.length>1?N(f,{attrs:o,slots:l,emit:u}):N(f,null)),P=t.props?o:zo(o)}}catch(N){pt.length=0,es(N,e,1),k=Ee(lt)}let M=k;if(P&&E!==!1){const N=Object.keys(P),{shapeFlag:te}=M;N.length&&te&7&&(i&&N.some(qn)&&(P=Yo(P,i)),M=Jt(M,P,!1,!0))}if(n.dirs&&(M=Jt(M,null,!1,!0),M.dirs=M.dirs?M.dirs.concat(n.dirs):n.dirs),n.transition){const N=ts(M.type)&&Fi(M)||M;Zs(N,n.transition)}return k=M,Hn(B),k}const zo=e=>{let t;for(const n in e)(n==="class"||n==="style"||Wn(n))&&((t||(t={}))[n]=e[n]);return t},Yo=(e,t)=>{const n={};for(const s in e)(!qn(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Qo(e,t,n){const{props:s,children:r,component:i}=e,{props:l,children:o,patchFlag:u}=t,d=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&u>=0){if(u&1024)return!0;if(u&16)return s?Sr(s,l,d):!!l;if(u&8){const a=t.dynamicProps;for(let f=0;fObject.create(Ji),Yi=e=>Object.getPrototypeOf(e)===Ji;function Zo(e,t,n,s=!1){const r={},i=zi();e.propsDefaults=Object.create(null),Qi(e,t,r,i);for(const l in e.propsOptions[0])l in r||(r[l]=void 0);n?e.props=s?r:Ci(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function eu(e,t,n,s){const{props:r,attrs:i,vnode:{patchFlag:l}}=e,o=Y(r),[u]=e.propsOptions;let d=!1;if((s||l>0)&&!(l&16)){if(l&8){const a=e.vnode.dynamicProps;for(let f=0;f{u=!0;const[p,g]=Xi(f,t,!0);ve(l,p),g&&o.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}if(!i&&!u)return X(e)&&s.set(e,Nt),Nt;if(j(i))for(let a=0;ae==="_"||e==="_ctx"||e==="$stable",nr=e=>j(e)?e.map(Ze):[Ze(e)],nu=(e,t,n)=>{if(t._n)return t;const s=Gt((...r)=>nr(t(...r)),n);return s._c=!1,s},Zi=(e,t,n)=>{const s=e._ctx;for(const r in e){if(tr(r))continue;const i=e[r];if(U(i))t[r]=nu(r,i,s);else if(i!=null){const l=nr(i);t[r]=()=>l}}},el=(e,t)=>{const n=nr(t);e.slots.default=()=>n},tl=(e,t,n)=>{for(const s in t)(n||!tr(s))&&(e[s]=t[s])},su=(e,t,n)=>{const s=e.slots=zi();if(e.vnode.shapeFlag&32){const r=t._;r?(tl(s,t,n),n&&ui(s,"_",r,!0)):Zi(t,s)}else t&&el(e,t)},ru=(e,t,n)=>{const{vnode:s,slots:r}=e;let i=!0,l=se;if(s.shapeFlag&32){const o=t._;o?n&&o===1?i=!1:tl(r,t,n):(i=!t.$stable,Zi(t,r)),l=t}else t&&(el(e,t),l={default:1});if(i)for(const o in r)!tr(o)&&l[o]==null&&delete r[o]},Te=cu;function iu(e){return lu(e)}function lu(e,t){const n=Yn();n.__VUE__=!0;const{insert:s,remove:r,patchProp:i,createElement:l,createText:o,createComment:u,setText:d,setElementText:a,parentNode:f,nextSibling:p,setScopeId:g=st,insertStaticContent:S}=e,E=(c,h,m,y=null,w=null,_=null,R=void 0,C=null,A=!!h.dynamicChildren)=>{if(c===h)return;c&&!en(c,h)&&(y=b(c),Se(c,w,_,!0),c=null),h.patchFlag===-2&&(A=!1,h.dynamicChildren=null),h.dynamicChildren&&c&&c.dynamicChildren&&c.dynamicChildren.hasOnce&&(h.dynamicChildren===Nt&&(h.dynamicChildren=[]),h.dynamicChildren.hasOnce=!0);const{type:x,ref:F,shapeFlag:T}=h;switch(x){case is:B(c,h,m,y);break;case lt:k(c,h,m,y);break;case vs:c==null&&P(h,m,y,R);break;case ge:Rt(c,h,m,y,w,_,R,C,A);break;default:T&1?te(c,h,m,y,w,_,R,C,A):T&6?Ge(c,h,m,y,w,_,R,C,A):(T&64||T&128)&&x.process(c,h,m,y,w,_,R,C,A,D)}F!=null&&w?un(F,c&&c.ref,_,h||c,!h):F==null&&c&&c.ref!=null&&un(c.ref,null,_,c,!0)},B=(c,h,m,y)=>{if(c==null)s(h.el=o(h.children),m,y);else{const w=h.el=c.el;h.children!==c.children&&d(w,h.children)}},k=(c,h,m,y)=>{c==null?s(h.el=u(h.children||""),m,y):h.el=c.el},P=(c,h,m,y)=>{[c.el,c.anchor]=S(c.children,h,m,y,c.el,c.anchor)},M=({el:c,anchor:h},m,y)=>{let w;for(;c&&c!==h;)w=p(c),s(c,m,y),c=w;s(h,m,y)},N=({el:c,anchor:h})=>{let m;for(;c&&c!==h;)m=p(c),r(c),c=m;r(h)},te=(c,h,m,y,w,_,R,C,A)=>{if(h.type==="svg"?R="svg":h.type==="math"&&(R="mathml"),c==null)ce(h,m,y,w,_,R,C,A);else{const x=c.el&&c.el._isVueCE?c.el:null;try{x&&x._beginPatch(),_t(c,h,w,_,R,C,A)}finally{x&&x._endPatch()}}},ce=(c,h,m,y,w,_,R,C)=>{let A,x;const{props:F,shapeFlag:T,transition:L,dirs:H}=c;if(A=c.el=l(c.type,_,F&&F.is,F),T&8?a(A,c.children):T&16&&$e(c.children,A,null,y,w,ms(c,_),R,C),H&&Tt(c,null,y,"created"),ie(A,c,c.scopeId,R,y),F){for(const ne in F)ne!=="value"&&!rn(ne)&&i(A,ne,null,F[ne],_,y);"value"in F&&i(A,"value",null,F.value,_),(x=F.onVnodeBeforeMount)&&Ye(x,y,c)}H&&Tt(c,null,y,"beforeMount");const G=ou(w,L);G&&L.beforeEnter(A),s(A,h,m),((x=F&&F.onVnodeMounted)||G||H)&&Te(()=>{try{x&&Ye(x,y,c),G&&L.enter(A),H&&Tt(c,null,y,"mounted")}finally{}},w)},ie=(c,h,m,y,w)=>{if(m&&g(c,m),y)for(let _=0;_{for(let x=A;x{const C=h.el=c.el;let{patchFlag:A,dynamicChildren:x,dirs:F}=h;A|=c.patchFlag&16;const T=c.props||se,L=h.props||se;let H;if(m&&Pt(m,!1),(H=L.onVnodeBeforeUpdate)&&Ye(H,m,h,c),F&&Tt(h,c,m,"beforeUpdate"),m&&Pt(m,!0),x&&(!c.dynamicChildren||c.dynamicChildren.length!==x.length)&&(A=0,R=!1,x=null),(T.innerHTML&&L.innerHTML==null||T.textContent&&L.textContent==null)&&a(C,""),x?Ke(c.dynamicChildren,x,C,m,y,ms(h,w),_):R||J(c,h,C,null,m,y,ms(h,w),_,!1),A>0){if(A&16)yt(C,T,L,m,w);else if(A&2&&T.class!==L.class&&i(C,"class",null,L.class,w),A&4&&i(C,"style",T.style,L.style,w),A&8){const G=h.dynamicProps;for(let ne=0;ne{H&&Ye(H,m,h,c),F&&Tt(h,c,m,"updated")},y)},Ke=(c,h,m,y,w,_,R)=>{for(let C=0;C{if(h!==m){if(h!==se)for(const _ in h)!rn(_)&&!(_ in m)&&i(c,_,h[_],null,w,y);for(const _ in m){if(rn(_))continue;const R=m[_],C=h[_];R!==C&&_!=="value"&&i(c,_,C,R,w,y)}"value"in m&&i(c,"value",h.value,m.value,w)}},Rt=(c,h,m,y,w,_,R,C,A)=>{const x=h.el=c?c.el:o(""),F=h.anchor=c?c.anchor:o("");let{patchFlag:T,dynamicChildren:L,slotScopeIds:H}=h;H&&(C=C?C.concat(H):H),c==null?(s(x,m,y),s(F,m,y),$e(h.children||[],m,F,w,_,R,C,A)):T>0&&T&64&&L&&c.dynamicChildren&&c.dynamicChildren.length===L.length?(Ke(c.dynamicChildren,L,m,w,_,R,C),(h.key!=null||w&&h===w.subTree)&&nl(c,h,!0)):J(c,h,m,F,w,_,R,C,A)},Ge=(c,h,m,y,w,_,R,C,A)=>{h.slotScopeIds=C,c==null?h.shapeFlag&512?w.ctx.activate(h,m,y,R,A):Qt(h,m,y,w,_,R,A):Ft(c,h,A)},Qt=(c,h,m,y,w,_,R)=>{const C=c.component=gu(c,y,w);if(er(c)&&(C.ctx.renderer=D),vu(C,!1,R),C.asyncDep){if(w&&w.registerDep(C,de,R),!c.el){const A=C.subTree=Ee(lt);k(null,A,h,m),c.placeholder=A.el}}else de(C,c,h,m,w,_,R)},Ft=(c,h,m)=>{const y=h.component=c.component;if(Qo(c,h,m))if(y.asyncDep&&!y.asyncResolved){h.el=c.el,Z(y,h,m);return}else y.next=h,y.update();else h.el=c.el,y.vnode=h},de=(c,h,m,y,w,_,R)=>{const C=()=>{if(c.isMounted){let{next:T,bu:L,u:H,parent:G,vnode:ne}=c;{const Je=sl(c);if(Je){T&&(T.el=ne.el,Z(c,T,R)),Je.asyncDep.then(()=>{Te(()=>{c.isUnmounted||x()},w)});return}}let ee=T,ue;Pt(c,!1),T?(T.el=ne.el,Z(c,T,R)):T=ne,L&&Nn(L),(ue=T.props&&T.props.onVnodeBeforeUpdate)&&Ye(ue,G,T,ne),Pt(c,!0);const he=xr(c),qe=c.subTree;c.subTree=he,E(qe,he,f(qe.el),b(qe),c,w,_),T.el=he.el,ee===null&&Xo(c,he.el),H&&Te(H,w),(ue=T.props&&T.props.onVnodeUpdated)&&Te(()=>Ye(ue,G,T,ne),w)}else{let T;const{el:L,props:H}=h,{bm:G,m:ne,parent:ee,root:ue,type:he}=c,qe=Wt(h);Pt(c,!1),G&&Nn(G),!qe&&(T=H&&H.onVnodeBeforeMount)&&Ye(T,ee,h),Pt(c,!0);{ue.ce&&ue.ce._hasShadowRoot()&&ue.ce._injectChildStyle(he,c.parent?c.parent.type:void 0);const Je=c.subTree=xr(c);E(null,Je,m,y,c,w,_),h.el=Je.el}if(ne&&Te(ne,w),!qe&&(T=H&&H.onVnodeMounted)){const Je=h;Te(()=>Ye(T,ee,Je),w)}(h.shapeFlag&256||ee&&Wt(ee.vnode)&&ee.vnode.shapeFlag&256)&&c.a&&Te(c.a,w),c.isMounted=!0,h=m=y=null}};c.scope.on();const A=c.effect=new di(C);c.scope.off();const x=c.update=A.run.bind(A),F=c.job=A.runIfDirty.bind(A);F.i=c,F.id=c.uid,A.scheduler=()=>Xs(F),Pt(c,!0),x()},Z=(c,h,m)=>{h.component=c;const y=c.vnode.props;c.vnode=h,c.next=null,eu(c,h.props,y,m),ru(c,h.children,m),gt(),gr(c),mt()},J=(c,h,m,y,w,_,R,C,A=!1)=>{const x=c&&c.children,F=c?c.shapeFlag:0,T=h.children,{patchFlag:L,shapeFlag:H}=h;if(L>0){if(L&128){bt(x,T,m,y,w,_,R,C,A);return}else if(L&256){ot(x,T,m,y,w,_,R,C,A);return}}H&8?(F&16&&Ne(x,w,_),T!==x&&a(m,T)):F&16?H&16?bt(x,T,m,y,w,_,R,C,A):Ne(x,w,_,!0):(F&8&&a(m,""),H&16&&$e(T,m,y,w,_,R,C,A))},ot=(c,h,m,y,w,_,R,C,A)=>{c=c||Nt,h=h||Nt;const x=c.length,F=h.length,T=Math.min(x,F);let L;for(L=0;LF?Ne(c,w,_,!0,!1,T):$e(h,m,y,w,_,R,C,A,T)},bt=(c,h,m,y,w,_,R,C,A)=>{let x=0;const F=h.length;let T=c.length-1,L=F-1;for(;x<=T&&x<=L;){const H=c[x],G=h[x]=A?ft(h[x]):Ze(h[x]);if(en(H,G))E(H,G,m,null,w,_,R,C,A);else break;x++}for(;x<=T&&x<=L;){const H=c[T],G=h[L]=A?ft(h[L]):Ze(h[L]);if(en(H,G))E(H,G,m,null,w,_,R,C,A);else break;T--,L--}if(x>T){if(x<=L){const H=L+1,G=HL)for(;x<=T;)Se(c[x],w,_,!0),x++;else{const H=x,G=x,ne=new Map;for(x=G;x<=L;x++){const Pe=h[x]=A?ft(h[x]):Ze(h[x]);Pe.key!=null&&ne.set(Pe.key,x)}let ee,ue=0;const he=L-G+1;let qe=!1,Je=0;const Xt=new Array(he);for(x=0;x=he){Se(Pe,w,_,!0);continue}let ze;if(Pe.key!=null)ze=ne.get(Pe.key);else for(ee=G;ee<=L;ee++)if(Xt[ee-G]===0&&en(Pe,h[ee])){ze=ee;break}ze===void 0?Se(Pe,w,_,!0):(Xt[ze-G]=x+1,ze>=Je?Je=ze:qe=!0,E(Pe,h[ze],m,null,w,_,R,C,A),ue++)}const lr=qe?uu(Xt):Nt;for(ee=lr.length-1,x=he-1;x>=0;x--){const Pe=G+x,ze=h[Pe],or=h[Pe+1],ur=Pe+1{const{el:_,type:R,transition:C,children:A,shapeFlag:x}=c;if(x&6){We(c.component.subTree,h,m,y);return}if(x&128){c.suspense.move(h,m,y);return}if(x&64){R.move(c,h,m,D);return}if(R===ge){s(_,h,m);for(let T=0;TC.enter(_),w));else{const{leave:T,delayLeave:L,afterLeave:H}=C,G=()=>{c.ctx.isUnmounted?r(_):s(_,h,m)},ne=()=>{const ee=_._isLeaving||!!_[ps];_._isLeaving&&_[ps](!0),C.persisted&&!ee?G():T(_,()=>{G(),H&&H()})};L?L(_,G,ne):ne()}else s(_,h,m)},Se=(c,h,m,y=!1,w=!1)=>{const{type:_,props:R,ref:C,children:A,dynamicChildren:x,shapeFlag:F,patchFlag:T,dirs:L,cacheIndex:H,memo:G}=c;if((T===-2||x&&x.hasOnce)&&(w=!1),C!=null&&(gt(),un(C,null,m,c,!0),mt()),H!=null&&(!c.ctx||c.ctx===h)&&(h.renderCache[H]=void 0),F&256){h.ctx.deactivate(c);return}const ne=F&1&&L,ee=!Wt(c);let ue;if(ee&&(ue=R&&R.onVnodeBeforeUnmount)&&Ye(ue,h,c),F&6)Ot(c.component,m,y);else{if(F&128){c.suspense.unmount(m,y);return}ne&&Tt(c,null,h,"beforeUnmount"),F&64?c.type.remove(c,h,m,D,y):x&&!x.hasOnce&&(_!==ge||T>0&&T&64)?Ne(x,h,m,!1,!0):(_===ge&&T&384||!w&&F&16)&&Ne(A,h,m),y&&kt(c)}const he=G!=null&&H==null;(ee&&(ue=R&&R.onVnodeUnmounted)||ne||he)&&Te(()=>{ue&&Ye(ue,h,c),ne&&Tt(c,null,h,"unmounted"),he&&(c.el=null)},m)},kt=c=>{const{type:h,el:m,anchor:y,transition:w}=c;if(h===ge){Ht(m,y);return}if(h===vs){N(c),w&&!w.persisted&&w.afterLeave&&w.afterLeave();return}const _=()=>{r(m),w&&!w.persisted&&w.afterLeave&&w.afterLeave()};if(c.shapeFlag&1&&w&&!w.persisted){const{leave:R,delayLeave:C}=w,A=()=>R(m,_);C?C(c.el,_,A):A()}else _()},Ht=(c,h)=>{let m;for(;c!==h;)m=p(c),r(c),c=m;r(h)},Ot=(c,h,m)=>{const{bum:y,scope:w,job:_,subTree:R,um:C,m:A,a:x}=c;Cr(A),Cr(x),y&&Nn(y),w.stop(),_?(_.flags|=8,Se(R,c,h,m)):c.vnode.el&&R&&(R.transition=c.vnode.transition,Se(R,c,h,m)),C&&Te(C,h),Te(()=>{c.isUnmounted=!0},h)},Ne=(c,h,m,y=!1,w=!1,_=0)=>{for(let R=_;R{if(c.shapeFlag&6)return b(c.component.subTree);if(c.shapeFlag&128)return c.suspense.next();const h=p(c.anchor||c.el),m=h&&h[wo];return m?p(m):h};let I=!1;const O=(c,h,m)=>{let y;c==null?h._vnode&&(Se(h._vnode,null,null,!0),y=h._vnode.component):E(h._vnode||null,c,h,null,null,null,m),h._vnode=c,I||(I=!0,gr(y),Ni(),I=!1)},D={p:E,um:Se,m:We,r:kt,mt:Qt,mc:$e,pc:J,pbc:Ke,n:b,o:e};return{render:O,hydrate:void 0,createApp:Go(O)}}function ms({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 Pt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function ou(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function nl(e,t,n=!1){const s=e.children,r=t.children;if(j(s)&&j(r))for(let i=0;i>1,e[n[o]]0&&(t[s]=n[i-1]),n[i]=s)}}for(i=n.length,l=n[i-1];i-- >0;)n[i]=l,l=t[l];return n}function sl(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:sl(t)}function Cr(e){if(e)for(let t=0;te.__isSuspense;function cu(e,t){t&&t.pendingBranch?j(e)?t.effects.push(...e):t.effects.push(e):vo(e)}const ge=Symbol.for("v-fgt"),is=Symbol.for("v-txt"),lt=Symbol.for("v-cmt"),vs=Symbol.for("v-stc"),pt=[];let Ie=null;function $(e=!1){pt.push(Ie=e?null:[])}function sr(){pt.pop(),Ie=pt[pt.length-1]||null}let mn=1;function Un(e,t=!1){mn+=e,e<0&&Ie&&t&&(Ie.hasOnce=!0)}function ll(e){return e.dynamicChildren=mn>0?Ie||Nt:null,sr(),mn>0&&Ie&&Ie.push(e),e}function q(e,t,n,s,r,i){return ll(v(e,t,n,s,r,i,!0))}function Lt(e,t,n,s,r){return ll(Ee(e,t,n,s,r,!0))}function vn(e){return e?e.__v_isVNode===!0:!1}function en(e,t){return e.type===t.type&&e.key===t.key}const ol=({key:e})=>e??null,Ln=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?oe(e)||xe(e)||U(e)?{i:me,r:e,k:t,f:!!n}:e:null);function v(e,t=null,n=null,s=0,r=null,i=e===ge?0:1,l=!1,o=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ol(t),ref:t&&Ln(t),scopeId:Di,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:i,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:me};return o?($n(u,n),i&128&&e.normalize(u)):n&&(u.shapeFlag|=oe(n)?8:16),mn>0&&!l&&Ie&&(u.patchFlag>0||i&6)&&u.patchFlag!==32&&Ie.push(u),u}const Ee=au;function au(e,t=null,n=null,s=0,r=null,i=!1){if((!e||e===Lo)&&(e=lt),vn(e)){const o=Jt(e,t,!0);return n&&$n(o,n),mn>0&&!i&&Ie&&(o.shapeFlag&6?Ie[Ie.indexOf(e)]=o:Ie.push(o)),o.patchFlag=-2,o}if(Eu(e)&&(e=e.__vccOpts),t){t=fu(t);let{class:o,style:u}=t;o&&!oe(o)&&(t.class=ke(o)),X(u)&&(Qs(u)&&!j(u)&&(u=ve({},u)),t.style=En(u))}const l=oe(e)?1:il(e)?128:ts(e)?64:X(e)?4:U(e)?2:0;return v(e,t,n,s,r,l,i,!0)}function fu(e){return e?Qs(e)||Yi(e)?ve({},e):e:null}function Jt(e,t,n=!1,s=!1){const{props:r,ref:i,patchFlag:l,children:o,transition:u}=e,d=t?du(r||{},t):r,a={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&ol(d),ref:t&&t.ref?n&&i?j(i)?i.concat(Ln(t)):[i,Ln(t)]:Ln(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ge?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:u,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Jt(e.ssContent),ssFallback:e.ssFallback&&Jt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce,cacheIndex:e.cacheIndex};return u&&s&&Zs(a,u.clone(a)),a}function _e(e=" ",t=0){return Ee(is,null,e,t)}function be(e="",t=!1){return t?($(),Lt(lt,null,e)):Ee(lt,null,e)}function Ze(e){return e==null||typeof e=="boolean"?Ee(lt):j(e)?Ee(ge,null,e.slice()):vn(e)?ft(e):Ee(is,null,String(e))}function ft(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Jt(e)}function $n(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(j(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),$n(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!Yi(t)?t._ctx=me:r===3&&me&&(me.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(U(t)){if(s&65){$n(e,{default:t});return}t={default:t,_ctx:me},n=32}else t=String(t),s&64?(n=16,t=[_e(t)]):n=8;e.children=t,e.shapeFlag|=n}function du(...e){const t={};for(let n=0;nwe||me;let Kn,_n;{const e=Yn(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),i=>{r.length>1?r.forEach(l=>l(i)):r[0](i)}};Kn=t("__VUE_INSTANCE_SETTERS__",n=>we=n),_n=t("__VUE_SSR_SETTERS__",n=>yn=n)}const An=e=>{const t=we;return Kn(e),e.scope.on(),()=>{e.scope.off(),Kn(t)}},Rr=()=>{we&&we.scope.off(),Kn(null)};function ul(e){return e.vnode.shapeFlag&4}let yn=!1;function vu(e,t=!1,n=!1){t&&_n(t);const{props:s,children:r}=e.vnode,i=ul(e);Zo(e,s,i,t),su(e,r,n||t);const l=i?_u(e,t):void 0;return t&&_n(!1),l}function _u(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ko);const{setup:s}=n;if(s){gt();const r=e.setupContext=s.length>1?bu(e):null,i=An(e),l=xn(s,e,0,[e.props,r]),o=ii(l);if(mt(),i(),(o||e.sp)&&!Wt(e)&&Hi(e),o){if(l.then(Rr,Rr),t)return l.then(u=>{_n(!0);try{Or(e,u,t)}finally{_n(!1)}}).catch(u=>{es(u,e,0)});e.asyncDep=l}else Or(e,l)}else cl(e)}function Or(e,t,n){U(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:X(t)&&(e.setupState=Oi(t)),cl(e)}function cl(e,t,n){const s=e.type;e.render||(e.render=s.render||st);{const r=An(e);gt();try{Ho(e)}finally{mt(),r()}}}const yu={get(e,t){return ye(e,"get",""),e[t]}};function bu(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,yu),slots:e.slots,emit:e.emit,expose:t}}function ls(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Oi(lo(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in an)return an[n](e)},has(t,n){return n in t||n in an}})):e.proxy}function wu(e,t=!0){return U(e)?e.displayName||e.name:e.name||t&&e.__name}function Eu(e){return U(e)&&"__vccOpts"in e}const Fe=(e,t)=>fo(e,t,yn);function al(e,t,n){try{Un(-1);const s=arguments.length;return s===2?X(t)&&!j(t)?vn(t)?Ee(e,null,[t]):Ee(e,t):Ee(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&vn(n)&&(n=[n]),Ee(e,t,n))}finally{Un(1)}}const xu="3.5.43";/** * @vue/runtime-dom v3.5.43 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let Ds;const Tr=typeof window<"u"&&window.trustedTypes;if(Tr)try{Ds=Tr.createPolicy("vue",{createHTML:e=>e})}catch{}const fl=Ds?e=>Ds.createHTML(e):e=>e,Su="http://www.w3.org/2000/svg",Au="http://www.w3.org/1998/Math/MathML",at=typeof document<"u"?document:null,Pr=at&&at.createElement("template"),Cu={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"?at.createElementNS(Su,e):t==="mathml"?at.createElementNS(Au,e):n?at.createElement(e,{is:n}):at.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>at.createTextNode(e),createComment:e=>at.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>at.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,i){const l=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{Pr.innerHTML=fl(s==="svg"?`${e}`:s==="mathml"?`${e}`:e);const o=Pr.content;if(s==="svg"||s==="mathml"){const u=o.firstChild;for(;u.firstChild;)o.appendChild(u.firstChild);o.removeChild(u)}t.insertBefore(o,n)}return[l?l.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ru=Symbol("_vtc");function Ou(e,t,n){const s=e[Ru];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Ir=Symbol("_vod"),Tu=Symbol("_vsh"),Pu=Symbol(""),Iu=/(?:^|;)\s*display\s*:/;function Nu(e,t,n){const s=e.style,r=oe(n);let i=!1;if(n&&!r){if(t)if(oe(t))for(const l of t.split(";")){const o=l.slice(0,l.indexOf(":")).trim();n[o]==null&&sn(s,o,"")}else for(const l in t)n[l]==null&&sn(s,l,"");for(const l in n){l==="display"&&(i=!0);const o=n[l];o!=null?Du(e,l,!oe(t)&&t?t[l]:void 0,o)||sn(s,l,o):sn(s,l,"")}}else if(r){if(t!==n){const l=s[Pu];l&&(n+=";"+l),s.cssText=n,i=Iu.test(n)}}else t&&e.removeAttribute("style");Ir in e&&(e[Ir]=i?s.display:"",e[Tu]&&(s.display="none"))}const Tn=/\s*!important$/;function sn(e,t,n){if(j(n))n.forEach(s=>sn(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))Tn.test(n)?e.setProperty(t,n.replace(Tn,""),"important"):e.setProperty(t,n);else{const s=Mu(e,t);Tn.test(n)?e.setProperty(Vt(s),n.replace(Tn,""),"important"):e[s]=n}}const Nr=["Webkit","Moz","ms"],_s={};function Mu(e,t){const n=_s[t];if(n)return n;let s=Oe(t);if(s!=="filter"&&s in e)return _s[t]=s;s=zn(s);for(let r=0;rys||(ju.then(()=>ys=0),ys=Date.now());function Uu(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;const r=n.value;if(j(r)){const i=s.stopImmediatePropagation;s.stopImmediatePropagation=()=>{i.call(s),s._stopped=!0};const l=r.slice(),o=[s];for(let u=0;ue.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,$u=(e,t,n,s,r,i)=>{const l=r==="svg";t==="class"?Ou(e,s,l):t==="style"?Nu(e,n,s):Wn(t)?qn(t)||Vu(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Ku(e,t,s,l))?(Lr(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Dr(e,t,s,l,i,t!=="value")):e._isVueCE&&(Gu(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!oe(s)))?Lr(e,Oe(t),s,i,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Dr(e,t,s,l))};function Ku(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&Fr(t)&&U(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 Fr(t)&&oe(n)?!1:t in e}function Gu(e,t){const n=e._def.props;if(!n)return!1;const s=Oe(t);return Array.isArray(n)?n.some(r=>Oe(r)===s):Object.keys(n).some(r=>Oe(r)===s)}const kr=e=>{const t=e.props["onUpdate:modelValue"]||!1;return j(t)?n=>Nn(t,n):t};function Wu(e){e.target.composing=!0}function Hr(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Pn=Symbol("_assign"),In=Symbol("_initialValue");function bs(e,t,n){return t&&(e=e.trim()),n&&(e=Ks(e)),e}const nt={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e.parentNode&&(e.type==="text"?e[In]=e.defaultValue.replace(/[\r\n]/g,""):e.type==="textarea"&&(e[In]=e.defaultValue.replace(/\r\n?/g,` `))),e[Pn]=kr(r);const i=s||r.props&&r.props.type==="number";Ut(e,t?"change":"input",l=>{l.target.composing||e[Pn](bs(e.value,n,i))}),(n||i)&&Ut(e,"change",()=>{e.value=bs(e.value,n,i)}),t||(Ut(e,"compositionstart",Wu),Ut(e,"compositionend",Hr),Ut(e,"change",Hr))},mounted(e,{value:t,modifiers:{trim:n,number:s}}){const r=t??"",i=e[In];delete e[In],i!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==i?e[Pn](bs(e.value,n,s)):e.value=r},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:r,number:i}},l){if(e[Pn]=kr(l),e.composing)return;const o=(i||e.type==="number")&&!/^0\d/.test(e.value)?Ks(e.value):e.value,u=t??"";if(o===u)return;const d=e.getRootNode();(d instanceof Document||d instanceof ShadowRoot)&&d.activeElement===e&&e.type!=="range"&&(s&&t===n||r&&e.value.trim()===u)||(e.value=u)}},qu=["ctrl","shift","alt","meta"],Ju={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)=>qu.some(n=>e[`${n}Key`]&&!t.includes(n))},Ls=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(r,...i)=>{for(let l=0;l{const t=Yu().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=Zu(s);if(!r)return;const i=t._component;!U(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const l=n(r,!1,Xu(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),l},t};function Xu(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Zu(e){return oe(e)?document.querySelector(e):e}const ec=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},tc={};function nc(e,t){const n=Bi("router-view");return $(),Lt(n)}const sc=ec(tc,[["render",nc]]);/*! * vue-router v4.6.4 * (c) 2025 Eduardo San Martin Morote * @license MIT */const $t=typeof document<"u";function dl(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function rc(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&dl(e.default)}const z=Object.assign;function ws(e,t){const n={};for(const s in t){const r=t[s];n[s]=Ue(r)?r.map(e):e(r)}return n}const fn=()=>{},Ue=Array.isArray;function Br(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}const hl=/#/g,ic=/&/g,lc=/\//g,oc=/=/g,uc=/\?/g,pl=/\+/g,cc=/%5B/g,ac=/%5D/g,gl=/%5E/g,fc=/%60/g,ml=/%7B/g,dc=/%7C/g,vl=/%7D/g,hc=/%20/g;function rr(e){return e==null?"":encodeURI(""+e).replace(dc,"|").replace(cc,"[").replace(ac,"]")}function pc(e){return rr(e).replace(ml,"{").replace(vl,"}").replace(gl,"^")}function Vs(e){return rr(e).replace(pl,"%2B").replace(hc,"+").replace(hl,"%23").replace(ic,"%26").replace(fc,"`").replace(ml,"{").replace(vl,"}").replace(gl,"^")}function gc(e){return Vs(e).replace(oc,"%3D")}function mc(e){return rr(e).replace(hl,"%23").replace(uc,"%3F")}function vc(e){return mc(e).replace(lc,"%2F")}function bn(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const _c=/\/$/,yc=e=>e.replace(_c,"");function Es(e,t,n="/"){let s,r={},i="",l="";const o=t.indexOf("#");let u=t.indexOf("?");return u=o>=0&&u>o?-1:u,u>=0&&(s=t.slice(0,u),i=t.slice(u,o>0?o:t.length),r=e(i.slice(1))),o>=0&&(s=s||t.slice(0,o),l=t.slice(o,t.length)),s=xc(s??t,n),{fullPath:s+i+l,path:s,query:r,hash:bn(l)}}function bc(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Ur(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function wc(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&zt(t.matched[s],n.matched[r])&&_l(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function zt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function _l(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Ec(e[n],t[n]))return!1;return!0}function Ec(e,t){return Ue(e)?$r(e,t):Ue(t)?$r(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function $r(e,t){return Ue(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function xc(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 i=n.length-1,l,o;for(l=0;l1&&i--;else break;return n.slice(0,i).join("/")+"/"+s.slice(l).join("/")}const wt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let Fs=function(e){return e.pop="pop",e.push="push",e}({}),xs=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});function Sc(e){if(!e)if($t){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),yc(e)}const Ac=/^[^#]+#/;function Cc(e,t){return e.replace(Ac,"#")+t}function Rc(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 os=()=>({left:window.scrollX,top:window.scrollY});function Oc(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=Rc(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 Kr(e,t){return(history.state?history.state.position-t:-1)+e}const ks=new Map;function Tc(e,t){ks.set(e,t)}function Pc(e){const t=ks.get(e);return ks.delete(e),t}function Ic(e){return typeof e=="string"||e&&typeof e=="object"}function yl(e){return typeof e=="string"||typeof e=="symbol"}let le=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 bl=Symbol("");le.MATCHER_NOT_FOUND+"",le.NAVIGATION_GUARD_REDIRECT+"",le.NAVIGATION_ABORTED+"",le.NAVIGATION_CANCELLED+"",le.NAVIGATION_DUPLICATED+"";function Yt(e,t){return z(new Error,{type:e,[bl]:!0},t)}function ct(e,t){return e instanceof Error&&bl in e&&(t==null||!!(e.type&t))}const Nc=["params","query","hash"];function Mc(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of Nc)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function Dc(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;sr&&Vs(r)):[s&&Vs(s)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+n,r!=null&&(t+="="+r))})}return t}function Lc(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=Ue(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const Vc=Symbol(""),Wr=Symbol(""),us=Symbol(""),wl=Symbol(""),Hs=Symbol("");function tn(){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 xt(e,t,n,s,r,i=l=>l()){const l=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((o,u)=>{const d=p=>{p===!1?u(Yt(le.NAVIGATION_ABORTED,{from:n,to:t})):p instanceof Error?u(p):Ic(p)?u(Yt(le.NAVIGATION_GUARD_REDIRECT,{from:t,to:p})):(l&&s.enterCallbacks[r]===l&&typeof p=="function"&&l.push(p),o())},a=i(()=>e.call(s&&s.instances[r],t,n,d));let f=Promise.resolve(a);e.length<3&&(f=f.then(d)),f.catch(p=>u(p))})}function Ss(e,t,n,s,r=i=>i()){const i=[];for(const l of e)for(const o in l.components){let u=l.components[o];if(!(t!=="beforeRouteEnter"&&!l.instances[o]))if(dl(u)){const d=(u.__vccOpts||u)[t];d&&i.push(xt(d,n,s,l,o,r))}else{let d=u();i.push(()=>d.then(a=>{if(!a)throw new Error(`Couldn't resolve component "${o}" at "${l.path}"`);const f=rc(a)?a.default:a;l.mods[o]=a,l.components[o]=f;const p=(f.__vccOpts||f)[t];return p&&xt(p,n,s,l,o,r)()}))}}return i}function Fc(e,t){const n=[],s=[],r=[],i=Math.max(t.matched.length,e.matched.length);for(let l=0;lzt(d,o))?s.push(o):n.push(o));const u=e.matched[l];u&&(t.matched.find(d=>zt(d,u))||r.push(u))}return[n,s,r]}/*! * vue-router v4.6.4 * (c) 2025 Eduardo San Martin Morote * @license MIT */let kc=()=>location.protocol+"//"+location.host;function El(e,t){const{pathname:n,search:s,hash:r}=t,i=e.indexOf("#");if(i>-1){let l=r.includes(e.slice(i))?e.slice(i).length:1,o=r.slice(l);return o[0]!=="/"&&(o="/"+o),Ur(o,"")}return Ur(n,e)+s+r}function Hc(e,t,n,s){let r=[],i=[],l=null;const o=({state:p})=>{const g=El(e,location),S=n.value,E=t.value;let B=0;if(p){if(n.value=g,t.value=p,l&&l===S){l=null;return}B=E?p.position-E.position:0}else s(g);r.forEach(k=>{k(n.value,S,{delta:B,type:Fs.pop,direction:B?B>0?xs.forward:xs.back:xs.unknown})})};function u(){l=n.value}function d(p){r.push(p);const g=()=>{const S=r.indexOf(p);S>-1&&r.splice(S,1)};return i.push(g),g}function a(){if(document.visibilityState==="hidden"){const{history:p}=window;if(!p.state)return;p.replaceState(z({},p.state,{scroll:os()}),"")}}function f(){for(const p of i)p();i=[],window.removeEventListener("popstate",o),window.removeEventListener("pagehide",a),document.removeEventListener("visibilitychange",a)}return window.addEventListener("popstate",o),window.addEventListener("pagehide",a),document.addEventListener("visibilitychange",a),{pauseListeners:u,listen:d,destroy:f}}function qr(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?os():null}}function jc(e){const{history:t,location:n}=window,s={value:El(e,n)},r={value:t.state};r.value||i(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(u,d,a){const f=e.indexOf("#"),p=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+u:kc()+e+u;try{t[a?"replaceState":"pushState"](d,"",p),r.value=d}catch(g){console.error(g),n[a?"replace":"assign"](p)}}function l(u,d){i(u,z({},t.state,qr(r.value.back,u,r.value.forward,!0),d,{position:r.value.position}),!0),s.value=u}function o(u,d){const a=z({},r.value,t.state,{forward:u,scroll:os()});i(a.current,a,!0),i(u,z({},qr(s.value,u,null),{position:a.position+1},d),!1),s.value=u}return{location:s,state:r,push:o,replace:l}}function Bc(e){e=Sc(e);const t=jc(e),n=Hc(e,t.state,t.location,t.replace);function s(i,l=!0){l||n.pauseListeners(),history.go(i)}const r=z({location:"",base:e,go:s,createHref:Cc.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 Mt=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e}({});var ae=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}(ae||{});const Uc={type:Mt.Static,value:""},$c=/[a-zA-Z0-9_]/;function Kc(e){if(!e)return[[]];if(e==="/")return[[Uc]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${d}": ${g}`)}let n=ae.Static,s=n;const r=[];let i;function l(){i&&r.push(i),i=[]}let o=0,u,d="",a="";function f(){d&&(n===ae.Static?i.push({type:Mt.Static,value:d}):n===ae.Param||n===ae.ParamRegExp||n===ae.ParamRegExpEnd?(i.length>1&&(u==="*"||u==="+")&&t(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),i.push({type:Mt.Param,value:d,regexp:a,repeatable:u==="*"||u==="+",optional:u==="*"||u==="?"})):t("Invalid state to consume buffer"),d="")}function p(){d+=u}for(;ot.length?t.length===1&&t[0]===Ce.Static+Ce.Segment?1:-1:0}function xl(e,t){let n=0;const s=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const zc={strict:!1,end:!0,sensitive:!1};function Yc(e,t,n){const s=qc(Kc(e.path),n),r=z(s,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function Qc(e,t){const n=[],s=new Map;t=Br(zc,t);function r(f){return s.get(f)}function i(f,p,g){const S=!g,E=Qr(f);E.aliasOf=g&&g.record;const B=Br(t,f),k=[E];if("alias"in f){const N=typeof f.alias=="string"?[f.alias]:f.alias;for(const te of N)k.push(Qr(z({},E,{components:g?g.record.components:E.components,path:te,aliasOf:g?g.record:E})))}let P,M;for(const N of k){const{path:te}=N;if(p&&te[0]!=="/"){const ce=p.record.path,ie=ce[ce.length-1]==="/"?"":"/";N.path=p.record.path+(te&&ie+te)}if(P=Yc(N,p,B),g?g.alias.push(P):(M=M||P,M!==P&&M.alias.push(P),S&&f.name&&!Xr(P)&&l(f.name)),Sl(P)&&u(P),E.children){const ce=E.children;for(let ie=0;ie{l(M)}:fn}function l(f){if(yl(f)){const p=s.get(f);p&&(s.delete(f),n.splice(n.indexOf(p),1),p.children.forEach(l),p.alias.forEach(l))}else{const p=n.indexOf(f);p>-1&&(n.splice(p,1),f.record.name&&s.delete(f.record.name),f.children.forEach(l),f.alias.forEach(l))}}function o(){return n}function u(f){const p=ea(f,n);n.splice(p,0,f),f.record.name&&!Xr(f)&&s.set(f.record.name,f)}function d(f,p){let g,S={},E,B;if("name"in f&&f.name){if(g=s.get(f.name),!g)throw Yt(le.MATCHER_NOT_FOUND,{location:f});B=g.record.name,S=z(Yr(p.params,g.keys.filter(M=>!M.optional).concat(g.parent?g.parent.keys.filter(M=>M.optional):[]).map(M=>M.name)),f.params&&Yr(f.params,g.keys.map(M=>M.name))),E=g.stringify(S)}else if(f.path!=null)E=f.path,g=n.find(M=>M.re.test(E)),g&&(S=g.parse(E),B=g.record.name);else{if(g=p.name?s.get(p.name):n.find(M=>M.re.test(p.path)),!g)throw Yt(le.MATCHER_NOT_FOUND,{location:f,currentLocation:p});B=g.record.name,S=z({},p.params,f.params),E=g.stringify(S)}const k=[];let P=g;for(;P;)k.unshift(P.record),P=P.parent;return{name:B,path:E,params:S,matched:k,meta:Zc(k)}}e.forEach(f=>i(f));function a(){n.length=0,s.clear()}return{addRoute:i,resolve:d,removeRoute:l,clearRoutes:a,getRoutes:o,getRecordMatcher:r}}function Yr(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function Qr(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Xc(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 Xc(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 Xr(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Zc(e){return e.reduce((t,n)=>z(t,n.meta),{})}function ea(e,t){let n=0,s=t.length;for(;n!==s;){const i=n+s>>1;xl(e,t[i])<0?s=i:n=i+1}const r=ta(e);return r&&(s=t.lastIndexOf(r,s-1)),s}function ta(e){let t=e;for(;t=t.parent;)if(Sl(t)&&xl(e,t)===0)return t}function Sl({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Zr(e){const t=rt(us),n=rt(wl),s=Fe(()=>{const u=W(e.to);return t.resolve(u)}),r=Fe(()=>{const{matched:u}=s.value,{length:d}=u,a=u[d-1],f=n.matched;if(!a||!f.length)return-1;const p=f.findIndex(zt.bind(null,a));if(p>-1)return p;const g=ei(u[d-2]);return d>1&&ei(a)===g&&f[f.length-1].path!==g?f.findIndex(zt.bind(null,u[d-2])):p}),i=Fe(()=>r.value>-1&&la(n.params,s.value.params)),l=Fe(()=>r.value>-1&&r.value===n.matched.length-1&&_l(n.params,s.value.params));function o(u={}){if(ia(u)){const d=t[W(e.replace)?"replace":"push"](W(e.to)).catch(fn);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>d),d}return Promise.resolve()}return{route:s,href:Fe(()=>s.value.href),isActive:i,isExactActive:l,navigate:o}}function na(e){return e.length===1?e[0]:e}const sa=ki({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:Zr,setup(e,{slots:t}){const n=Zn(Zr(e)),{options:s}=rt(us),r=Fe(()=>({[ti(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[ti(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&na(t.default(n));return e.custom?i:al("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},i)}}}),ra=sa;function ia(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 la(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(!Ue(r)||r.length!==s.length||s.some((i,l)=>i.valueOf()!==r[l].valueOf()))return!1}return!0}function ei(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const ti=(e,t,n)=>e??t??n,oa=ki({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=rt(Hs),r=Fe(()=>e.route||s.value),i=rt(Wr,0),l=Fe(()=>{let d=W(i);const{matched:a}=r.value;let f;for(;(f=a[d])&&!f.components;)d++;return d}),o=Fe(()=>r.value.matched[l.value]);Mn(Wr,Fe(()=>l.value+1)),Mn(Vc,o),Mn(Hs,r);const u=fe();return Dn(()=>[u.value,o.value,e.name],([d,a,f],[p,g,S])=>{a&&(a.instances[f]=d,g&&g!==a&&d&&d===p&&(a.leaveGuards.size||(a.leaveGuards=g.leaveGuards),a.updateGuards.size||(a.updateGuards=g.updateGuards))),d&&a&&(!g||!zt(a,g)||!p)&&(a.enterCallbacks[f]||[]).forEach(E=>E(d))},{flush:"post"}),()=>{const d=r.value,a=e.name,f=o.value,p=f&&f.components[a];if(!p)return ni(n.default,{Component:p,route:d});const g=f.props[a],S=g?g===!0?d.params:typeof g=="function"?g(d):g:null,B=al(p,z({},S,t,{onVnodeUnmounted:k=>{k.component.isUnmounted&&(f.instances[a]=null)},ref:u}));return ni(n.default,{Component:B,route:d})||B}}});function ni(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const ua=oa;function ca(e){const t=Qc(e.routes,e),n=e.parseQuery||Dc,s=e.stringifyQuery||Gr,r=e.history,i=tn(),l=tn(),o=tn(),u=oo(wt);let d=wt;$t&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const a=ws.bind(null,b=>""+b),f=ws.bind(null,vc),p=ws.bind(null,bn);function g(b,I){let O,D;return yl(b)?(O=t.getRecordMatcher(b),D=I):D=b,t.addRoute(D,O)}function S(b){const I=t.getRecordMatcher(b);I&&t.removeRoute(I)}function E(){return t.getRoutes().map(b=>b.record)}function B(b){return!!t.getRecordMatcher(b)}function k(b,I){if(I=z({},I||u.value),typeof b=="string"){const m=Es(n,b,I.path),y=t.resolve({path:m.path},I),w=r.createHref(m.fullPath);return z(m,y,{params:p(y.params),hash:bn(m.hash),redirectedFrom:void 0,href:w})}let O;if(b.path!=null)O=z({},b,{path:Es(n,b.path,I.path).path});else{const m=z({},b.params);for(const y in m)m[y]==null&&delete m[y];O=z({},b,{params:f(m)}),I.params=f(I.params)}const D=t.resolve(O,I),K=b.hash||"";D.params=a(p(D.params));const c=bc(s,z({},b,{hash:pc(K),path:D.path})),h=r.createHref(c);return z({fullPath:c,hash:K,query:s===Gr?Lc(b.query):b.query||{}},D,{redirectedFrom:void 0,href:h})}function P(b){return typeof b=="string"?Es(n,b,u.value.path):z({},b)}function M(b,I){if(d!==b)return Yt(le.NAVIGATION_CANCELLED,{from:I,to:b})}function N(b){return ie(b)}function te(b){return N(z(P(b),{replace:!0}))}function ce(b,I){const O=b.matched[b.matched.length-1];if(O&&O.redirect){const{redirect:D}=O;let K=typeof D=="function"?D(b,I):D;return typeof K=="string"&&(K=K.includes("?")||K.includes("#")?K=P(K):{path:K},K.params={}),z({query:b.query,hash:b.hash,params:K.path!=null?{}:b.params},K)}}function ie(b,I){const O=d=k(b),D=u.value,K=b.state,c=b.force,h=b.replace===!0,m=ce(O,D);if(m)return ie(z(P(m),{state:typeof m=="object"?z({},K,m.state):K,force:c,replace:h}),I||O);const y=O;y.redirectedFrom=I;let w;return!c&&wc(s,D,O)&&(w=Yt(le.NAVIGATION_DUPLICATED,{to:y,from:D}),We(D,D,!0,!1)),(w?Promise.resolve(w):Ke(y,D)).catch(_=>ct(_)?ct(_,le.NAVIGATION_GUARD_REDIRECT)?_:bt(_):J(_,y,D)).then(_=>{if(_){if(ct(_,le.NAVIGATION_GUARD_REDIRECT))return ie(z({replace:h},P(_.to),{state:typeof _.to=="object"?z({},K,_.to.state):K,force:c}),I||y)}else _=Rt(y,D,!0,h,K);return yt(y,D,_),_})}function $e(b,I){const O=M(b,I);return O?Promise.reject(O):Promise.resolve()}function _t(b){const I=Ht.values().next().value;return I&&typeof I.runWithContext=="function"?I.runWithContext(b):b()}function Ke(b,I){let O;const[D,K,c]=Fc(b,I);O=Ss(D.reverse(),"beforeRouteLeave",b,I);for(const m of D)m.leaveGuards.forEach(y=>{O.push(xt(y,b,I))});const h=$e.bind(null,b,I);return O.push(h),Ne(O).then(()=>{O=[];for(const m of i.list())O.push(xt(m,b,I));return O.push(h),Ne(O)}).then(()=>{O=Ss(K,"beforeRouteUpdate",b,I);for(const m of K)m.updateGuards.forEach(y=>{O.push(xt(y,b,I))});return O.push(h),Ne(O)}).then(()=>{O=[];for(const m of c)if(m.beforeEnter)if(Ue(m.beforeEnter))for(const y of m.beforeEnter)O.push(xt(y,b,I));else O.push(xt(m.beforeEnter,b,I));return O.push(h),Ne(O)}).then(()=>(b.matched.forEach(m=>m.enterCallbacks={}),O=Ss(c,"beforeRouteEnter",b,I,_t),O.push(h),Ne(O))).then(()=>{O=[];for(const m of l.list())O.push(xt(m,b,I));return O.push(h),Ne(O)}).catch(m=>ct(m,le.NAVIGATION_CANCELLED)?m:Promise.reject(m))}function yt(b,I,O){o.list().forEach(D=>_t(()=>D(b,I,O)))}function Rt(b,I,O,D,K){const c=M(b,I);if(c)return c;const h=I===wt,m=$t?history.state:{};O&&(D||h?r.replace(b.fullPath,z({scroll:h&&m&&m.scroll},K)):r.push(b.fullPath,K)),u.value=b,We(b,I,O,h),bt()}let Ge;function Qt(){Ge||(Ge=r.listen((b,I,O)=>{if(!Ot.listening)return;const D=k(b),K=ce(D,Ot.currentRoute.value);if(K){ie(z(K,{replace:!0,force:!0}),D).catch(fn);return}d=D;const c=u.value;$t&&Tc(Kr(c.fullPath,O.delta),os()),Ke(D,c).catch(h=>ct(h,le.NAVIGATION_ABORTED|le.NAVIGATION_CANCELLED)?h:ct(h,le.NAVIGATION_GUARD_REDIRECT)?(ie(z(P(h.to),{force:!0}),D).then(m=>{ct(m,le.NAVIGATION_ABORTED|le.NAVIGATION_DUPLICATED)&&!O.delta&&O.type===Fs.pop&&r.go(-1,!1)}).catch(fn),Promise.reject()):(O.delta&&r.go(-O.delta,!1),J(h,D,c))).then(h=>{h=h||Rt(D,c,!1),h&&(O.delta&&!ct(h,le.NAVIGATION_CANCELLED)?r.go(-O.delta,!1):O.type===Fs.pop&&ct(h,le.NAVIGATION_ABORTED|le.NAVIGATION_DUPLICATED)&&r.go(-1,!1)),yt(D,c,h)}).catch(fn)}))}let Ft=tn(),de=tn(),Z;function J(b,I,O){bt(b);const D=de.list();return D.length?D.forEach(K=>K(b,I,O)):console.error(b),Promise.reject(b)}function ot(){return Z&&u.value!==wt?Promise.resolve():new Promise((b,I)=>{Ft.add([b,I])})}function bt(b){return Z||(Z=!b,Qt(),Ft.list().forEach(([I,O])=>b?O(b):I()),Ft.reset()),b}function We(b,I,O,D){const{scrollBehavior:K}=e;if(!$t||!K)return Promise.resolve();const c=!O&&Pc(Kr(b.fullPath,0))||(D||!O)&&history.state&&history.state.scroll||null;return Pi().then(()=>K(b,I,c)).then(h=>h&&Oc(h)).catch(h=>J(h,b,I))}const Se=b=>r.go(b);let kt;const Ht=new Set,Ot={currentRoute:u,listening:!0,addRoute:g,removeRoute:S,clearRoutes:t.clearRoutes,hasRoute:B,getRoutes:E,resolve:k,options:e,push:N,replace:te,go:Se,back:()=>Se(-1),forward:()=>Se(1),beforeEach:i.add,beforeResolve:l.add,afterEach:o.add,onError:de.add,isReady:ot,install(b){b.component("RouterLink",ra),b.component("RouterView",ua),b.config.globalProperties.$router=Ot,Object.defineProperty(b.config.globalProperties,"$route",{enumerable:!0,get:()=>W(u)}),$t&&!kt&&u.value===wt&&(kt=!0,N(r.location).catch(D=>{}));const I={};for(const D in wt)Object.defineProperty(I,D,{get:()=>u.value[D],enumerable:!0});b.provide(us,Ot),b.provide(wl,Ci(I)),b.provide(Hs,u);const O=b.unmount;Ht.add(b),b.unmount=function(){Ht.delete(b),Ht.size<1&&(d=wt,Ge&&Ge(),Ge=null,u.value=wt,kt=!1,Z=!1),O()}}};function Ne(b){return b.reduce((I,O)=>I.then(()=>_t(O)),Promise.resolve())}return Ot}function Al(){return rt(us)}const aa=["token","role","wallet","username"];function ir(){return{token:localStorage.getItem("token")||"",role:localStorage.getItem("role")||"",wallet:localStorage.getItem("wallet")||"",username:localStorage.getItem("username")||""}}function fa(e){localStorage.setItem("token",e.access_token),localStorage.setItem("role",e.role),localStorage.setItem("wallet",e.wallet_address),localStorage.setItem("username",e.username||"")}function Cl(){aa.forEach(e=>localStorage.removeItem(e))}async function Me(e,t={}){const n={...t.headers||{}};t.body&&!n["Content-Type"]&&(n["Content-Type"]="application/json");const s=localStorage.getItem("token");s&&(n.Authorization=`Bearer ${s}`);const r=await fetch(`/api/v1${e}`,{...t,headers:n}),i=await r.text(),l=i?JSON.parse(i):null;if(r.status===401)throw Cl(),location.pathname!=="/login"&&location.assign("/login"),new Error(si(l)||"登录已失效");if(!r.ok)throw new Error(si(l)||"请求失败");return l}function si(e){return e?typeof e.detail=="string"?e.detail:Array.isArray(e.detail)?e.detail.map(t=>t.msg).filter(Boolean).join(";"):"":""}const da={class:"gate"},ha={class:"switch"},pa={key:0,class:"switch slim"},ga={key:1},ma={key:2},va={key:3},_a={key:4},ya={key:5,class:"form-error"},ba=["disabled"],wa={__name:"Login",setup(e){const t=Al(),n=fe("login"),s=fe("wallet"),r=fe(""),i=fe(!1),l=fe({wallet_address:"",username:"",password:"",confirm:""});async function o(){if(r.value="",n.value==="register"&&l.value.password!==l.value.confirm){r.value="两次密码不一致";return}i.value=!0;try{const a=n.value==="register"?await d():await u();fa(a),t.push(a.role==="admin"?"/admin":"/dashboard")}catch(a){r.value=a.message}finally{i.value=!1}}function u(){return s.value==="wallet"?Me("/auth/login",{method:"POST",body:JSON.stringify({wallet_address:l.value.wallet_address.trim()})}):Me("/auth/login",{method:"POST",body:JSON.stringify({username:l.value.username.trim(),password:l.value.password})})}function d(){return Me("/auth/register",{method:"POST",body:JSON.stringify({wallet_address:l.value.wallet_address.trim(),username:l.value.username.trim(),password:l.value.password})})}return(a,f)=>($(),q("div",da,[f[13]||(f[13]=v("section",{class:"gate-copy"},[v("p",{class:"eyebrow"},"HyperNode"),v("h1",null,"算力在这里入账。"),v("p",null,"钱包或账号进入自己的节点。管理员从这里审核提现、看全网在线。")],-1)),v("form",{class:"gate-card",onSubmit:Ls(o,["prevent"])},[v("div",ha,[v("button",{type:"button",class:ke({on:n.value==="login"}),onClick:f[0]||(f[0]=p=>n.value="login")},"登录",2),v("button",{type:"button",class:ke({on:n.value==="register"}),onClick:f[1]||(f[1]=p=>n.value="register")},"注册",2)]),n.value==="login"?($(),q("div",pa,[v("button",{type:"button",class:ke({on:s.value==="wallet"}),onClick:f[2]||(f[2]=p=>s.value="wallet")},"钱包地址",2),v("button",{type:"button",class:ke({on:s.value==="account"}),onClick:f[3]||(f[3]=p=>s.value="account")},"账号密码",2)])):be("",!0),n.value==="register"||s.value==="wallet"?($(),q("label",ga,[f[8]||(f[8]=_e(" 钱包地址 ",-1)),tt(v("input",{"onUpdate:modelValue":f[4]||(f[4]=p=>l.value.wallet_address=p),required:"",minlength:"4",placeholder:"0xabc123",autocomplete:"username"},null,512),[[nt,l.value.wallet_address]])])):be("",!0),n.value==="register"||s.value==="account"?($(),q("label",ma,[f[9]||(f[9]=_e(" 用户名 ",-1)),tt(v("input",{"onUpdate:modelValue":f[5]||(f[5]=p=>l.value.username=p),required:"",minlength:"3",maxlength:"32",placeholder:"miner",autocomplete:"username"},null,512),[[nt,l.value.username]])])):be("",!0),n.value==="register"||s.value==="account"?($(),q("label",va,[f[10]||(f[10]=_e(" 密码 ",-1)),tt(v("input",{"onUpdate:modelValue":f[6]||(f[6]=p=>l.value.password=p),required:"",minlength:"6",type:"password",autocomplete:"current-password"},null,512),[[nt,l.value.password]])])):be("",!0),n.value==="register"?($(),q("label",_a,[f[11]||(f[11]=_e(" 确认密码 ",-1)),tt(v("input",{"onUpdate:modelValue":f[7]||(f[7]=p=>l.value.confirm=p),required:"",minlength:"6",type:"password",autocomplete:"new-password"},null,512),[[nt,l.value.confirm]])])):be("",!0),r.value?($(),q("p",ya,V(r.value),1)):be("",!0),v("button",{class:"gold wide",type:"submit",disabled:i.value},V(i.value?"请稍候":n.value==="login"?"进入":"创建账号"),9,ba),f[12]||(f[12]=v("p",{class:"hint"},"管理员不能只用钱包进入,需要账号密码。",-1))],32)]))}},Ea={class:"shell"},xa={class:"rail"},Sa={class:"nav"},Aa={class:"rail-foot"},Ca={class:"who"},Ra={class:"stage"},Oa={class:"top"},Ta={class:"eyebrow"},Pa={class:"clock"},Ia={class:"view"},Rl={__name:"Shell",props:{eyebrow:{type:String,default:"控制面"},title:{type:String,required:!0}},setup(e){const t=Al(),n=ir(),s=fe("--:--:--");let r=0;function i(){s.value=new Intl.DateTimeFormat("zh-CN",{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1,timeZone:"Asia/Shanghai"}).format(new Date)}function l(){Cl(),t.push("/login")}return ss(()=>{i(),r=window.setInterval(i,1e3)}),Sn(()=>window.clearInterval(r)),(o,u)=>{const d=Bi("router-link");return $(),q("div",Ea,[v("aside",xa,[Ee(d,{class:"brand",to:"/"},{default:Gt(()=>[...u[0]||(u[0]=[v("span",{class:"mark","aria-hidden":"true"},[v("svg",{viewBox:"0 0 32 32",width:"28",height:"28"},[v("path",{d:"M16 3 L27 9.5 V22.5 L16 29 L5 22.5 V9.5 Z",fill:"none",stroke:"currentColor","stroke-width":"1.4"}),v("circle",{cx:"16",cy:"16",r:"2.2",fill:"currentColor"})])],-1),v("span",null,[v("strong",null,"HyperNode"),v("em",null,"Compute Atelier")],-1)])]),_:1}),v("nav",Sa,[Ee(d,{to:"/dashboard"},{default:Gt(()=>[...u[1]||(u[1]=[_e("我的节点",-1)])]),_:1}),W(n).role==="admin"?($(),Lt(d,{key:0,to:"/admin"},{default:Gt(()=>[...u[2]||(u[2]=[_e("管理后台",-1)])]),_:1})):be("",!0)]),v("div",Aa,[v("span",Ca,V(W(n).username||W(n).wallet),1),v("button",{type:"button",class:"texty",onClick:l},"退出")])]),v("div",Ra,[v("header",Oa,[v("div",null,[v("p",Ta,V(e.eyebrow),1),v("h1",null,V(e.title),1)]),v("div",Pa,[u[3]||(u[3]=v("span",null,"北京时间",-1)),v("strong",null,V(s.value),1)])]),v("main",Ia,[Fo(o.$slots,"default")])])])}}};function De(e){const[t,n=""]=String(e??"0").split("."),s=t.replace(/\B(?=(\d{3})+(?!\d))/g,","),r=n.replace(/0+$/,"");return r?`${s}.${r}`:s}function Gn(e){const t=Number(e)*100;return Number.isFinite(t)?`${t.toFixed(t>=10?0:1)}%`:"0%"}function js(e){if(!e)return"—";const t=new Date(e);return Number.isNaN(t.getTime())?"—":new Intl.DateTimeFormat("zh-CN",{month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"}).format(t)}const dn={online:"在线",offline:"离线",pending:"待审核",completed:"已打款",rejected:"已拒绝",failed:"失败",settled:"已入账",user:"用户",admin:"管理员"},Na={key:0,class:"form-error banner"},Ma={key:1,class:"banner ok"},Da={key:2,class:"metrics"},La={class:"metric"},Va={class:"metric"},Fa={class:"metric"},ka={class:"board"},Ha={class:"rate"},ja={key:0,class:"empty"},Ba={class:"forms"},Ua={class:"mini"},$a={__name:"Dashboard",setup(e){const t=fe(null),n=fe(""),s=fe(""),r=fe({sn:"",purchase_amount:"",callback_url:""}),i=fe({amount:"",asset_symbol:"POINT"});let l=0;async function o(){t.value=await Me("/me/dashboard")}async function u(f,p){n.value="",s.value="";try{await f(),s.value=p,await o()}catch(g){n.value=g.message}}function d(){const f={sn:r.value.sn.trim(),purchase_amount:r.value.purchase_amount};return r.value.callback_url.trim()&&(f.callback_url=r.value.callback_url.trim()),u(async()=>{await Me("/me/nodes",{method:"POST",body:JSON.stringify(f)}),r.value={sn:"",purchase_amount:"",callback_url:""}},"节点已登记")}function a(){return u(async()=>{await Me("/me/withdrawals",{method:"POST",body:JSON.stringify({amount:i.value.amount,asset_symbol:i.value.asset_symbol||"POINT"})}),i.value.amount=""},"提现申请已提交")}return ss(async()=>{try{await o()}catch(f){n.value=f.message}l=window.setInterval(()=>{o().catch(f=>{n.value=f.message})},1e4)}),Sn(()=>window.clearInterval(l)),(f,p)=>($(),Lt(Rl,{eyebrow:"用户控制台",title:"我的算力"},{default:Gt(()=>{var g,S;return[n.value?($(),q("p",Na,V(n.value),1)):be("",!0),s.value?($(),q("p",Ma,V(s.value),1)):be("",!0),t.value?($(),q("section",Da,[v("article",La,[p[5]||(p[5]=v("span",null,"可用积分",-1)),v("strong",null,V(W(De)(t.value.available_points)),1),v("em",null,"已入账 "+V(W(De)(t.value.settled_points)),1)]),v("article",Va,[p[6]||(p[6]=v("span",null,"今日预计",-1)),v("strong",null,V(W(De)(t.value.today_points)),1),p[7]||(p[7]=v("em",null,"按当前在线实时估算",-1))]),v("article",Fa,[p[8]||(p[8]=v("span",null,"节点",-1)),v("strong",null,V(t.value.nodes.length),1),v("em",null,V(t.value.nodes.filter(E=>E.status==="online").length)+" 台在线",1)])])):be("",!0),v("section",ka,[($(!0),q(ge,null,cn(((g=t.value)==null?void 0:g.nodes)||[],E=>($(),q("article",{key:E.sn,class:"plate"},[v("header",null,[v("strong",null,V(E.sn),1),v("span",{class:ke(["pill",E.status])},[p[9]||(p[9]=v("i",null,null,-1)),_e(V(W(dn)[E.status]),1)],2)]),v("p",Ha,[v("b",{style:En({width:W(Gn)(E.online_rate)})},null,4),_e(V(W(Gn)(E.online_rate))+" 今日在线",1)]),v("dl",null,[v("div",null,[p[10]||(p[10]=v("dt",null,"购买金额",-1)),v("dd",null,V(W(De)(E.purchase_amount)),1)]),v("div",null,[p[11]||(p[11]=v("dt",null,"今日积分",-1)),v("dd",null,V(W(De)(E.today_points)),1)]),v("div",null,[p[12]||(p[12]=v("dt",null,"最近心跳",-1)),v("dd",null,V(W(js)(E.last_heartbeat_at)),1)])])]))),128)),t.value&&!t.value.nodes.length?($(),q("p",ja,"还没有节点。下面可以登记第一台。")):be("",!0)]),v("section",Ba,[v("form",{class:"panel",onSubmit:Ls(d,["prevent"])},[p[16]||(p[16]=v("h2",null,"登记节点",-1)),p[17]||(p[17]=v("p",{class:"sub"},"绑到当前钱包,授权周期 12 个月。",-1)),v("label",null,[p[13]||(p[13]=_e("序列号",-1)),tt(v("input",{"onUpdate:modelValue":p[0]||(p[0]=E=>r.value.sn=E),required:"",minlength:"4",placeholder:"NODE-001"},null,512),[[nt,r.value.sn]])]),v("label",null,[p[14]||(p[14]=_e("购买金额",-1)),tt(v("input",{"onUpdate:modelValue":p[1]||(p[1]=E=>r.value.purchase_amount=E),required:"",placeholder:"365"},null,512),[[nt,r.value.purchase_amount]])]),v("label",null,[p[15]||(p[15]=_e("回调地址",-1)),tt(v("input",{"onUpdate:modelValue":p[2]||(p[2]=E=>r.value.callback_url=E),placeholder:"https:// 可选"},null,512),[[nt,r.value.callback_url]])]),p[18]||(p[18]=v("button",{class:"gold",type:"submit"},"登记",-1))],32),v("form",{class:"panel",onSubmit:Ls(a,["prevent"])},[p[21]||(p[21]=v("h2",null,"申请提现",-1)),p[22]||(p[22]=v("p",{class:"sub"},"提交后金额会被占用,等管理员打款。",-1)),v("label",null,[p[19]||(p[19]=_e("金额",-1)),tt(v("input",{"onUpdate:modelValue":p[3]||(p[3]=E=>i.value.amount=E),required:"",placeholder:"1.25"},null,512),[[nt,i.value.amount]])]),v("label",null,[p[20]||(p[20]=_e("资产",-1)),tt(v("input",{"onUpdate:modelValue":p[4]||(p[4]=E=>i.value.asset_symbol=E)},null,512),[[nt,i.value.asset_symbol]])]),p[23]||(p[23]=v("button",{class:"gold",type:"submit"},"提交申请",-1)),v("ul",Ua,[($(!0),q(ge,null,cn(((S=t.value)==null?void 0:S.withdrawals)||[],E=>($(),q("li",{key:E.id},[v("span",null,"#"+V(E.id)+" · "+V(W(De)(E.amount))+" "+V(E.asset_symbol),1),v("span",{class:ke(["pill",E.status])},V(W(dn)[E.status]),3)]))),128))])],32)])]}),_:1}))}},Ka={key:0,class:"form-error banner"},Ga={key:1,class:"banner ok"},Wa={key:2,class:"metrics"},qa={class:"metric"},Ja={class:"metric"},za={class:"metric"},Ya={class:"metric"},Qa={class:"board"},Xa={class:"wallet"},Za={class:"rate"},ef={key:0,class:"empty"},tf={class:"table-wrap"},nf={class:"mono"},sf=["onUpdate:modelValue"],rf={key:1,class:"mono"},lf={key:0,class:"actions"},of=["onClick"],uf=["onClick"],cf={key:1},af={key:0},ff={class:"table-wrap"},df={class:"mono"},hf={__name:"AdminOverview",setup(e){const t=fe(null),n=fe([]),s=fe([]),r=fe([]),i=fe({}),l=fe(""),o=fe("");let u=0;async function d(){const[p,g,S,E]=await Promise.all([Me("/admin/summary"),Me("/admin/users"),Me("/admin/nodes"),Me("/admin/withdrawals")]);t.value=p,n.value=g,s.value=S,r.value=E}async function a(p){const g=(i.value[p.id]||"").trim();if(!g){l.value="请先填写链上哈希";return}l.value="",o.value="";try{await Me(`/admin/withdrawals/${p.id}/confirm`,{method:"POST",body:JSON.stringify({tx_hash:g})}),o.value=`提现 #${p.id} 已打款`,await d()}catch(S){l.value=S.message}}async function f(p){l.value="",o.value="";try{await Me(`/admin/withdrawals/${p.id}/reject`,{method:"POST",body:JSON.stringify({note:"管理后台拒绝"})}),o.value=`提现 #${p.id} 已拒绝`,await d()}catch(g){l.value=g.message}}return ss(async()=>{try{await d()}catch(p){l.value=p.message}u=window.setInterval(()=>{d().catch(p=>{l.value=p.message})},1e4)}),Sn(()=>window.clearInterval(u)),(p,g)=>($(),Lt(Rl,{eyebrow:"管理后台",title:"全网概览"},{default:Gt(()=>[l.value?($(),q("p",Ka,V(l.value),1)):be("",!0),o.value?($(),q("p",Ga,V(o.value),1)):be("",!0),t.value?($(),q("section",Wa,[v("article",qa,[g[0]||(g[0]=v("span",null,"用户",-1)),v("strong",null,V(t.value.users),1),g[1]||(g[1]=v("em",null,"已注册钱包",-1))]),v("article",Ja,[g[2]||(g[2]=v("span",null,"节点",-1)),v("strong",null,V(t.value.nodes),1),v("em",null,"在线 "+V(t.value.online)+" · 离线 "+V(t.value.offline),1)]),v("article",za,[g[3]||(g[3]=v("span",null,"总产出",-1)),v("strong",null,V(W(De)(t.value.settled_points)),1),v("em",null,"授权 "+V(W(De)(t.value.authorized_amount)),1)]),v("article",Ya,[g[4]||(g[4]=v("span",null,"待审核",-1)),v("strong",null,V(W(De)(t.value.pending_withdrawals)),1),g[5]||(g[5]=v("em",null,"占用中的提现",-1))])])):be("",!0),g[12]||(g[12]=v("h2",{class:"section-title"},"节点监控",-1)),v("section",Qa,[($(!0),q(ge,null,cn(s.value,S=>($(),q("article",{key:S.sn,class:"plate"},[v("header",null,[v("strong",null,V(S.sn),1),v("span",{class:ke(["pill",S.status])},[g[6]||(g[6]=v("i",null,null,-1)),_e(V(W(dn)[S.status]),1)],2)]),v("p",Xa,V(S.wallet_address),1),v("p",Za,[v("b",{style:En({width:W(Gn)(S.online_rate)})},null,4),_e(V(W(Gn)(S.online_rate))+" 今日在线率",1)]),v("dl",null,[v("div",null,[g[7]||(g[7]=v("dt",null,"今日积分",-1)),v("dd",null,V(W(De)(S.today_points)),1)]),v("div",null,[g[8]||(g[8]=v("dt",null,"心跳",-1)),v("dd",null,V(W(js)(S.last_heartbeat_at)),1)])])]))),128)),s.value.length?be("",!0):($(),q("p",ef,"还没有节点。"))]),g[13]||(g[13]=v("h2",{class:"section-title"},"提现审核",-1)),v("div",tf,[v("table",null,[g[10]||(g[10]=v("thead",null,[v("tr",null,[v("th",null,"单号"),v("th",null,"钱包"),v("th",null,"金额"),v("th",null,"状态"),v("th",null,"链上哈希"),v("th")])],-1)),v("tbody",null,[($(!0),q(ge,null,cn(r.value,S=>($(),q("tr",{key:S.id},[v("td",null,"#"+V(S.id),1),v("td",nf,V(S.wallet_address),1),v("td",null,V(W(De)(S.amount))+" "+V(S.asset_symbol),1),v("td",null,[v("span",{class:ke(["pill",S.status])},V(W(dn)[S.status]),3)]),v("td",null,[S.status==="pending"?tt(($(),q("input",{key:0,"onUpdate:modelValue":E=>i.value[S.id]=E,placeholder:"交易哈希"},null,8,sf)),[[nt,i.value[S.id]]]):($(),q("span",rf,V(S.tx_hash||"—"),1))]),S.status==="pending"?($(),q("td",lf,[v("button",{class:"gold",type:"button",onClick:E=>a(S)},"打款",8,of),v("button",{class:"texty",type:"button",onClick:E=>f(S)},"拒绝",8,uf)])):($(),q("td",cf))]))),128)),r.value.length?be("",!0):($(),q("tr",af,[...g[9]||(g[9]=[v("td",{colspan:"6",class:"empty"},"还没有提现申请。",-1)])]))])])]),g[14]||(g[14]=v("h2",{class:"section-title"},"用户",-1)),v("div",ff,[v("table",null,[g[11]||(g[11]=v("thead",null,[v("tr",null,[v("th",null,"钱包"),v("th",null,"用户名"),v("th",null,"角色"),v("th",null,"节点"),v("th",null,"可用积分"),v("th",null,"注册")])],-1)),v("tbody",null,[($(!0),q(ge,null,cn(n.value,S=>($(),q("tr",{key:S.id},[v("td",df,V(S.wallet_address),1),v("td",null,V(S.username||"—"),1),v("td",null,V(W(dn)[S.role]),1),v("td",null,V(S.node_count),1),v("td",null,V(W(De)(S.available_points)),1),v("td",null,V(W(js)(S.created_at)),1)]))),128))])])])]),_:1}))}},Ol=ca({history:Bc(),routes:[{path:"/",redirect:()=>ir().role==="admin"?"/admin":"/dashboard"},{path:"/login",component:wa},{path:"/dashboard",component:$a,meta:{auth:!0}},{path:"/admin",component:hf,meta:{auth:!0,admin:!0}}]});Ol.beforeEach(e=>{const t=ir();return e.meta.auth&&!t.token?"/login":e.meta.admin&&t.role!=="admin"?"/dashboard":e.path==="/login"&&t.token?t.role==="admin"?"/admin":"/dashboard":!0});Qu(sc).use(Ol).mount("#app");