Files
NotesAgentic/server sync/sync_server/static/assets/index-C4AkVW4e.js
T

18 lines
75 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
var Yr=Object.defineProperty;var Xr=(e,t,s)=>t in e?Yr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var Tt=(e,t,s)=>Xr(e,typeof t!="symbol"?t+"":t,s);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))n(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"&&n(l)}).observe(document,{childList:!0,subtree:!0});function s(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 n(r){if(r.ep)return;r.ep=!0;const i=s(r);fetch(r.href,i)}})();/**
* @vue/shared v3.5.21
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function Ks(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const q={},bt=[],Ne=()=>{},Kn=()=>!1,us=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ws=e=>e.startsWith("onUpdate:"),le=Object.assign,qs=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},Zr=Object.prototype.hasOwnProperty,U=(e,t)=>Zr.call(e,t),R=Array.isArray,yt=e=>cs(e)==="[object Map]",Wn=e=>cs(e)==="[object Set]",D=e=>typeof e=="function",Q=e=>typeof e=="string",nt=e=>typeof e=="symbol",X=e=>e!==null&&typeof e=="object",qn=e=>(X(e)||D(e))&&D(e.then)&&D(e.catch),kn=Object.prototype.toString,cs=e=>kn.call(e),Qr=e=>cs(e).slice(8,-1),Jn=e=>cs(e)==="[object Object]",ks=e=>Q(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,It=Ks(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),fs=e=>{const t=Object.create(null);return s=>t[s]||(t[s]=e(s))},ei=/-\w/g,et=fs(e=>e.replace(ei,t=>t.slice(1).toUpperCase())),ti=/\B([A-Z])/g,at=fs(e=>e.replace(ti,"-$1").toLowerCase()),Gn=fs(e=>e.charAt(0).toUpperCase()+e.slice(1)),_s=fs(e=>e?`on${Gn(e)}`:""),Qe=(e,t)=>!Object.is(e,t),zt=(e,...t)=>{for(let s=0;s<e.length;s++)e[s](...t)},zn=(e,t,s,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},Rs=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let an;const as=()=>an||(an=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Js(e){if(R(e)){const t={};for(let s=0;s<e.length;s++){const n=e[s],r=Q(n)?ii(n):Js(n);if(r)for(const i in r)t[i]=r[i]}return t}else if(Q(e)||X(e))return e}const si=/;(?![^(]*\))/g,ni=/:([^]+)/,ri=/\/\*[^]*?\*\//g;function ii(e){const t={};return e.replace(ri,"").split(si).forEach(s=>{if(s){const n=s.split(ni);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function ct(e){let t="";if(Q(e))t=e;else if(R(e))for(let s=0;s<e.length;s++){const n=ct(e[s]);n&&(t+=n+" ")}else if(X(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}const li="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",oi=Ks(li);function Yn(e){return!!e||e===""}const Xn=e=>!!(e&&e.__v_isRef===!0),Y=e=>Q(e)?e:e==null?"":R(e)||X(e)&&(e.toString===kn||!D(e.toString))?Xn(e)?Y(e.value):JSON.stringify(e,Zn,2):String(e),Zn=(e,t)=>Xn(t)?Zn(e,t.value):yt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,r],i)=>(s[xs(n,i)+" =>"]=r,s),{})}:Wn(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>xs(s))}:nt(t)?xs(t):X(t)&&!R(t)&&!Jn(t)?String(t):t,xs=(e,t="")=>{var s;return nt(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};/**
* @vue/reactivity v3.5.21
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let ge;class ui{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=ge,!t&&ge&&(this.index=(ge.scopes||(ge.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].pause();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].resume();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].resume()}}run(t){if(this._active){const s=ge;try{return ge=this,t()}finally{ge=s}}}on(){++this._on===1&&(this.prevScope=ge,ge=this)}off(){this._on>0&&--this._on===0&&(ge=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let s,n;for(s=0,n=this.effects.length;s<n;s++)this.effects[s].stop();for(this.effects.length=0,s=0,n=this.cleanups.length;s<n;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){for(s=0,n=this.scopes.length;s<n;s++)this.scopes[s].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0}}}function ci(){return ge}let J;const ws=new WeakSet;class Qn{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,ge&&ge.active&&ge.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,ws.has(this)&&(ws.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||tr(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,dn(this),sr(this);const t=J,s=Ee;J=this,Ee=!0;try{return this.fn()}finally{nr(this),J=t,Ee=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Ys(t);this.deps=this.depsTail=void 0,dn(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?ws.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Fs(this)&&this.run()}get dirty(){return Fs(this)}}let er=0,Mt,Rt;function tr(e,t=!1){if(e.flags|=8,t){e.next=Rt,Rt=e;return}e.next=Mt,Mt=e}function Gs(){er++}function zs(){if(--er>0)return;if(Rt){let t=Rt;for(Rt=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;Mt;){let t=Mt;for(Mt=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=s}}if(e)throw e}function sr(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function nr(e){let t,s=e.depsTail,n=s;for(;n;){const r=n.prevDep;n.version===-1?(n===s&&(s=r),Ys(n),fi(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=r}e.deps=t,e.depsTail=s}function Fs(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(rr(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function rr(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===$t)||(e.globalVersion=$t,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Fs(e))))return;e.flags|=2;const t=e.dep,s=J,n=Ee;J=e,Ee=!0;try{sr(e);const r=e.fn(e._value);(t.version===0||Qe(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{J=s,Ee=n,nr(e),e.flags&=-3}}function Ys(e,t=!1){const{dep:s,prevSub:n,nextSub:r}=e;if(n&&(n.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let i=s.computed.deps;i;i=i.nextDep)Ys(i,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function fi(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let Ee=!0;const ir=[];function qe(){ir.push(Ee),Ee=!1}function ke(){const e=ir.pop();Ee=e===void 0?!0:e}function dn(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=J;J=void 0;try{t()}finally{J=s}}}let $t=0;class ai{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Xs{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(!J||!Ee||J===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==J)s=this.activeLink=new ai(J,this),J.deps?(s.prevDep=J.depsTail,J.depsTail.nextDep=s,J.depsTail=s):J.deps=J.depsTail=s,lr(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=J.depsTail,s.nextDep=void 0,J.depsTail.nextDep=s,J.depsTail=s,J.deps===s&&(J.deps=n)}return s}trigger(t){this.version++,$t++,this.notify(t)}notify(t){Gs();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{zs()}}}function lr(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)lr(n)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const Ds=new WeakMap,ft=Symbol(""),Ns=Symbol(""),Ht=Symbol("");function re(e,t,s){if(Ee&&J){let n=Ds.get(e);n||Ds.set(e,n=new Map);let r=n.get(s);r||(n.set(s,r=new Xs),r.map=n,r.key=s),r.track()}}function Ke(e,t,s,n,r,i){const l=Ds.get(e);if(!l){$t++;return}const o=c=>{c&&c.trigger()};if(Gs(),t==="clear")l.forEach(o);else{const c=R(e),g=c&&ks(s);if(c&&s==="length"){const a=Number(n);l.forEach((m,C)=>{(C==="length"||C===Ht||!nt(C)&&C>=a)&&o(m)})}else switch((s!==void 0||l.has(void 0))&&o(l.get(s)),g&&o(l.get(Ht)),t){case"add":c?g&&o(l.get("length")):(o(l.get(ft)),yt(e)&&o(l.get(Ns)));break;case"delete":c||(o(l.get(ft)),yt(e)&&o(l.get(Ns)));break;case"set":yt(e)&&o(l.get(ft));break}}zs()}function pt(e){const t=j(e);return t===e?t:(re(t,"iterate",Ht),Ce(e)?t:t.map(ne))}function ds(e){return re(e=j(e),"iterate",Ht),e}const di={__proto__:null,[Symbol.iterator](){return Ss(this,Symbol.iterator,ne)},concat(...e){return pt(this).concat(...e.map(t=>R(t)?pt(t):t))},entries(){return Ss(this,"entries",e=>(e[1]=ne(e[1]),e))},every(e,t){return Ue(this,"every",e,t,void 0,arguments)},filter(e,t){return Ue(this,"filter",e,t,s=>s.map(ne),arguments)},find(e,t){return Ue(this,"find",e,t,ne,arguments)},findIndex(e,t){return Ue(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Ue(this,"findLast",e,t,ne,arguments)},findLastIndex(e,t){return Ue(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Ue(this,"forEach",e,t,void 0,arguments)},includes(...e){return Cs(this,"includes",e)},indexOf(...e){return Cs(this,"indexOf",e)},join(e){return pt(this).join(e)},lastIndexOf(...e){return Cs(this,"lastIndexOf",e)},map(e,t){return Ue(this,"map",e,t,void 0,arguments)},pop(){return Ot(this,"pop")},push(...e){return Ot(this,"push",e)},reduce(e,...t){return hn(this,"reduce",e,t)},reduceRight(e,...t){return hn(this,"reduceRight",e,t)},shift(){return Ot(this,"shift")},some(e,t){return Ue(this,"some",e,t,void 0,arguments)},splice(...e){return Ot(this,"splice",e)},toReversed(){return pt(this).toReversed()},toSorted(e){return pt(this).toSorted(e)},toSpliced(...e){return pt(this).toSpliced(...e)},unshift(...e){return Ot(this,"unshift",e)},values(){return Ss(this,"values",ne)}};function Ss(e,t,s){const n=ds(e),r=n[t]();return n!==e&&!Ce(e)&&(r._next=r.next,r.next=()=>{const i=r._next();return i.value&&(i.value=s(i.value)),i}),r}const hi=Array.prototype;function Ue(e,t,s,n,r,i){const l=ds(e),o=l!==e&&!Ce(e),c=l[t];if(c!==hi[t]){const m=c.apply(e,i);return o?ne(m):m}let g=s;l!==e&&(o?g=function(m,C){return s.call(this,ne(m),C,e)}:s.length>2&&(g=function(m,C){return s.call(this,m,C,e)}));const a=c.call(l,g,n);return o&&r?r(a):a}function hn(e,t,s,n){const r=ds(e);let i=s;return r!==e&&(Ce(e)?s.length>3&&(i=function(l,o,c){return s.call(this,l,o,c,e)}):i=function(l,o,c){return s.call(this,l,ne(o),c,e)}),r[t](i,...n)}function Cs(e,t,s){const n=j(e);re(n,"iterate",Ht);const r=n[t](...s);return(r===-1||r===!1)&&en(s[0])?(s[0]=j(s[0]),n[t](...s)):r}function Ot(e,t,s=[]){qe(),Gs();const n=j(e)[t].apply(e,s);return zs(),ke(),n}const pi=Ks("__proto__,__v_isRef,__isVue"),or=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(nt));function gi(e){nt(e)||(e=String(e));const t=j(this);return re(t,"has",e),t.hasOwnProperty(e)}class ur{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,n){if(s==="__v_skip")return t.__v_skip;const r=this._isReadonly,i=this._isShallow;if(s==="__v_isReactive")return!r;if(s==="__v_isReadonly")return r;if(s==="__v_isShallow")return i;if(s==="__v_raw")return n===(r?i?Ei:dr:i?ar:fr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const l=R(t);if(!r){let c;if(l&&(c=di[s]))return c;if(s==="hasOwnProperty")return gi}const o=Reflect.get(t,s,ie(t)?t:n);return(nt(s)?or.has(s):pi(s))||(r||re(t,"get",s),i)?o:ie(o)?l&&ks(s)?o:o.value:X(o)?r?hr(o):hs(o):o}}class cr extends ur{constructor(t=!1){super(!1,t)}set(t,s,n,r){let i=t[s];if(!this._isShallow){const c=tt(i);if(!Ce(n)&&!tt(n)&&(i=j(i),n=j(n)),!R(t)&&ie(i)&&!ie(n))return c||(i.value=n),!0}const l=R(t)&&ks(s)?Number(s)<t.length:U(t,s),o=Reflect.set(t,s,n,ie(t)?t:r);return t===j(r)&&(l?Qe(n,i)&&Ke(t,"set",s,n):Ke(t,"add",s,n)),o}deleteProperty(t,s){const n=U(t,s);t[s];const r=Reflect.deleteProperty(t,s);return r&&n&&Ke(t,"delete",s,void 0),r}has(t,s){const n=Reflect.has(t,s);return(!nt(s)||!or.has(s))&&re(t,"has",s),n}ownKeys(t){return re(t,"iterate",R(t)?"length":ft),Reflect.ownKeys(t)}}class mi extends ur{constructor(t=!1){super(!0,t)}set(t,s){return!0}deleteProperty(t,s){return!0}}const vi=new cr,bi=new mi,yi=new cr(!0);const Ls=e=>e,qt=e=>Reflect.getPrototypeOf(e);function _i(e,t,s){return function(...n){const r=this.__v_raw,i=j(r),l=yt(i),o=e==="entries"||e===Symbol.iterator&&l,c=e==="keys"&&l,g=r[e](...n),a=s?Ls:t?ts:ne;return!t&&re(i,"iterate",c?Ns:ft),{next(){const{value:m,done:C}=g.next();return C?{value:m,done:C}:{value:o?[a(m[0]),a(m[1])]:a(m),done:C}},[Symbol.iterator](){return this}}}}function kt(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function xi(e,t){const s={get(r){const i=this.__v_raw,l=j(i),o=j(r);e||(Qe(r,o)&&re(l,"get",r),re(l,"get",o));const{has:c}=qt(l),g=t?Ls:e?ts:ne;if(c.call(l,r))return g(i.get(r));if(c.call(l,o))return g(i.get(o));i!==l&&i.get(r)},get size(){const r=this.__v_raw;return!e&&re(j(r),"iterate",ft),r.size},has(r){const i=this.__v_raw,l=j(i),o=j(r);return e||(Qe(r,o)&&re(l,"has",r),re(l,"has",o)),r===o?i.has(r):i.has(r)||i.has(o)},forEach(r,i){const l=this,o=l.__v_raw,c=j(o),g=t?Ls:e?ts:ne;return!e&&re(c,"iterate",ft),o.forEach((a,m)=>r.call(i,g(a),g(m),l))}};return le(s,e?{add:kt("add"),set:kt("set"),delete:kt("delete"),clear:kt("clear")}:{add(r){!t&&!Ce(r)&&!tt(r)&&(r=j(r));const i=j(this);return qt(i).has.call(i,r)||(i.add(r),Ke(i,"add",r,r)),this},set(r,i){!t&&!Ce(i)&&!tt(i)&&(i=j(i));const l=j(this),{has:o,get:c}=qt(l);let g=o.call(l,r);g||(r=j(r),g=o.call(l,r));const a=c.call(l,r);return l.set(r,i),g?Qe(i,a)&&Ke(l,"set",r,i):Ke(l,"add",r,i),this},delete(r){const i=j(this),{has:l,get:o}=qt(i);let c=l.call(i,r);c||(r=j(r),c=l.call(i,r)),o&&o.call(i,r);const g=i.delete(r);return c&&Ke(i,"delete",r,void 0),g},clear(){const r=j(this),i=r.size!==0,l=r.clear();return i&&Ke(r,"clear",void 0,void 0),l}}),["keys","values","entries",Symbol.iterator].forEach(r=>{s[r]=_i(r,e,t)}),s}function Zs(e,t){const s=xi(e,t);return(n,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?n:Reflect.get(U(s,r)&&r in n?s:n,r,i)}const wi={get:Zs(!1,!1)},Si={get:Zs(!1,!0)},Ci={get:Zs(!0,!1)};const fr=new WeakMap,ar=new WeakMap,dr=new WeakMap,Ei=new WeakMap;function Ti(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Oi(e){return e.__v_skip||!Object.isExtensible(e)?0:Ti(Qr(e))}function hs(e){return tt(e)?e:Qs(e,!1,vi,wi,fr)}function Ai(e){return Qs(e,!1,yi,Si,ar)}function hr(e){return Qs(e,!0,bi,Ci,dr)}function Qs(e,t,s,n,r){if(!X(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=Oi(e);if(i===0)return e;const l=r.get(e);if(l)return l;const o=new Proxy(e,i===2?n:s);return r.set(e,o),o}function _t(e){return tt(e)?_t(e.__v_raw):!!(e&&e.__v_isReactive)}function tt(e){return!!(e&&e.__v_isReadonly)}function Ce(e){return!!(e&&e.__v_isShallow)}function en(e){return e?!!e.__v_raw:!1}function j(e){const t=e&&e.__v_raw;return t?j(t):e}function Pi(e){return!U(e,"__v_skip")&&Object.isExtensible(e)&&zn(e,"__v_skip",!0),e}const ne=e=>X(e)?hs(e):e,ts=e=>X(e)?hr(e):e;function ie(e){return e?e.__v_isRef===!0:!1}function se(e){return Ii(e,!1)}function Ii(e,t){return ie(e)?e:new Mi(e,t)}class Mi{constructor(t,s){this.dep=new Xs,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:j(t),this._value=s?t:ne(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,n=this.__v_isShallow||Ce(t)||tt(t);t=n?t:j(t),Qe(t,s)&&(this._rawValue=t,this._value=n?t:ne(t),this.dep.trigger())}}function pr(e){return ie(e)?e.value:e}const Ri={get:(e,t,s)=>t==="__v_raw"?e:pr(Reflect.get(e,t,s)),set:(e,t,s,n)=>{const r=e[t];return ie(r)&&!ie(s)?(r.value=s,!0):Reflect.set(e,t,s,n)}};function gr(e){return _t(e)?e:new Proxy(e,Ri)}class Fi{constructor(t,s,n){this.fn=t,this.setter=s,this._value=void 0,this.dep=new Xs(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=$t-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&J!==this)return tr(this,!0),!0}get value(){const t=this.dep.track();return rr(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Di(e,t,s=!1){let n,r;return D(e)?n=e:(n=e.get,r=e.set),new Fi(n,r,s)}const Jt={},ss=new WeakMap;let ut;function Ni(e,t=!1,s=ut){if(s){let n=ss.get(s);n||ss.set(s,n=[]),n.push(e)}}function Li(e,t,s=q){const{immediate:n,deep:r,once:i,scheduler:l,augmentJob:o,call:c}=s,g=P=>r?P:Ce(P)||r===!1||r===0?We(P,1):We(P);let a,m,C,T,F=!1,N=!1;if(ie(e)?(m=()=>e.value,F=Ce(e)):_t(e)?(m=()=>g(e),F=!0):R(e)?(N=!0,F=e.some(P=>_t(P)||Ce(P)),m=()=>e.map(P=>{if(ie(P))return P.value;if(_t(P))return g(P);if(D(P))return c?c(P,2):P()})):D(e)?t?m=c?()=>c(e,2):e:m=()=>{if(C){qe();try{C()}finally{ke()}}const P=ut;ut=a;try{return c?c(e,3,[T]):e(T)}finally{ut=P}}:m=Ne,t&&r){const P=m,Z=r===!0?1/0:r;m=()=>We(P(),Z)}const z=ci(),$=()=>{a.stop(),z&&z.active&&qs(z.effects,a)};if(i&&t){const P=t;t=(...Z)=>{P(...Z),$()}}let V=N?new Array(e.length).fill(Jt):Jt;const G=P=>{if(!(!(a.flags&1)||!a.dirty&&!P))if(t){const Z=a.run();if(r||F||(N?Z.some((Te,xe)=>Qe(Te,V[xe])):Qe(Z,V))){C&&C();const Te=ut;ut=a;try{const xe=[Z,V===Jt?void 0:N&&V[0]===Jt?[]:V,T];V=Z,c?c(t,3,xe):t(...xe)}finally{ut=Te}}}else a.run()};return o&&o(G),a=new Qn(m),a.scheduler=l?()=>l(G,!1):G,T=P=>Ni(P,!1,a),C=a.onStop=()=>{const P=ss.get(a);if(P){if(c)c(P,4);else for(const Z of P)Z();ss.delete(a)}},t?n?G(!0):V=a.run():l?l(G.bind(null,!0),!0):a.run(),$.pause=a.pause.bind(a),$.resume=a.resume.bind(a),$.stop=$,$}function We(e,t=1/0,s){if(t<=0||!X(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,ie(e))We(e.value,t,s);else if(R(e))for(let n=0;n<e.length;n++)We(e[n],t,s);else if(Wn(e)||yt(e))e.forEach(n=>{We(n,t,s)});else if(Jn(e)){for(const n in e)We(e[n],t,s);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&We(e[n],t,s)}return e}/**
* @vue/runtime-core v3.5.21
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function Bt(e,t,s,n){try{return n?e(...n):e()}catch(r){ps(r,t,s)}}function $e(e,t,s,n){if(D(e)){const r=Bt(e,t,s,n);return r&&qn(r)&&r.catch(i=>{ps(i,t,s)}),r}if(R(e)){const r=[];for(let i=0;i<e.length;i++)r.push($e(e[i],t,s,n));return r}}function ps(e,t,s,n=!0){const r=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:l}=t&&t.appContext.config||q;if(t){let o=t.parent;const c=t.proxy,g=`https://vuejs.org/error-reference/#runtime-${s}`;for(;o;){const a=o.ec;if(a){for(let m=0;m<a.length;m++)if(a[m](e,c,g)===!1)return}o=o.parent}if(i){qe(),Bt(i,null,10,[e,c,g]),ke();return}}$i(e,s,r,n,l)}function $i(e,t,s,n=!0,r=!1){if(r)throw e;console.error(e)}const ue=[];let Fe=-1;const xt=[];let Xe=null,mt=0;const mr=Promise.resolve();let ns=null;function Hi(e){const t=ns||mr;return e?t.then(this?e.bind(this):e):t}function Vi(e){let t=Fe+1,s=ue.length;for(;t<s;){const n=t+s>>>1,r=ue[n],i=Vt(r);i<e||i===e&&r.flags&2?t=n+1:s=n}return t}function tn(e){if(!(e.flags&1)){const t=Vt(e),s=ue[ue.length-1];!s||!(e.flags&2)&&t>=Vt(s)?ue.push(e):ue.splice(Vi(t),0,e),e.flags|=1,vr()}}function vr(){ns||(ns=mr.then(yr))}function ji(e){R(e)?xt.push(...e):Xe&&e.id===-1?Xe.splice(mt+1,0,e):e.flags&1||(xt.push(e),e.flags|=1),vr()}function pn(e,t,s=Fe+1){for(;s<ue.length;s++){const n=ue[s];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;ue.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function br(e){if(xt.length){const t=[...new Set(xt)].sort((s,n)=>Vt(s)-Vt(n));if(xt.length=0,Xe){Xe.push(...t);return}for(Xe=t,mt=0;mt<Xe.length;mt++){const s=Xe[mt];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}Xe=null,mt=0}}const Vt=e=>e.id==null?e.flags&2?-1:1/0:e.id;function yr(e){try{for(Fe=0;Fe<ue.length;Fe++){const t=ue[Fe];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Bt(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Fe<ue.length;Fe++){const t=ue[Fe];t&&(t.flags&=-2)}Fe=-1,ue.length=0,br(),ns=null,(ue.length||xt.length)&&yr()}}let Se=null,_r=null;function rs(e){const t=Se;return Se=e,_r=e&&e.type.__scopeId||null,t}function Ui(e,t=Se,s){if(!t||e._n)return e;const n=(...r)=>{n._d&&En(-1);const i=rs(t);let l;try{l=e(...r)}finally{rs(i),n._d&&En(1)}return l};return n._n=!0,n._c=!0,n._d=!0,n}function ze(e,t){if(Se===null)return e;const s=bs(Se),n=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[i,l,o,c=q]=t[r];i&&(D(i)&&(i={mounted:i,updated:i}),i.deep&&We(l),n.push({dir:i,instance:s,value:l,oldValue:void 0,arg:o,modifiers:c}))}return e}function lt(e,t,s,n){const r=e.dirs,i=t&&t.dirs;for(let l=0;l<r.length;l++){const o=r[l];i&&(o.oldValue=i[l].value);let c=o.dir[n];c&&(qe(),$e(c,s,8,[e.el,o,e,t]),ke())}}const Bi=Symbol("_vte"),Ki=e=>e.__isTeleport,Wi=Symbol("_leaveCb");function sn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,sn(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 qi(e,t){return D(e)?le({name:e.name},t,{setup:e}):e}function xr(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const is=new WeakMap;function Ft(e,t,s,n,r=!1){if(R(e)){e.forEach((F,N)=>Ft(F,t&&(R(t)?t[N]:t),s,n,r));return}if(Dt(n)&&!r){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Ft(e,t,s,n.component.subTree);return}const i=n.shapeFlag&4?bs(n.component):n.el,l=r?null:i,{i:o,r:c}=e,g=t&&t.r,a=o.refs===q?o.refs={}:o.refs,m=o.setupState,C=j(m),T=m===q?Kn:F=>U(C,F);if(g!=null&&g!==c){if(gn(t),Q(g))a[g]=null,T(g)&&(m[g]=null);else if(ie(g)){g.value=null;const F=t;F.k&&(a[F.k]=null)}}if(D(c))Bt(c,o,12,[l,a]);else{const F=Q(c),N=ie(c);if(F||N){const z=()=>{if(e.f){const $=F?T(c)?m[c]:a[c]:c.value;if(r)R($)&&qs($,i);else if(R($))$.includes(i)||$.push(i);else if(F)a[c]=[i],T(c)&&(m[c]=a[c]);else{const V=[i];c.value=V,e.k&&(a[e.k]=V)}}else F?(a[c]=l,T(c)&&(m[c]=l)):N&&(c.value=l,e.k&&(a[e.k]=l))};if(l){const $=()=>{z(),is.delete(e)};$.id=-1,is.set(e,$),ye($,s)}else gn(e),z()}}}function gn(e){const t=is.get(e);t&&(t.flags|=8,is.delete(e))}as().requestIdleCallback;as().cancelIdleCallback;const Dt=e=>!!e.type.__asyncLoader,wr=e=>e.type.__isKeepAlive;function ki(e,t){Sr(e,"a",t)}function Ji(e,t){Sr(e,"da",t)}function Sr(e,t,s=ce){const n=e.__wdc||(e.__wdc=()=>{let r=s;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(gs(t,n,s),s){let r=s.parent;for(;r&&r.parent;)wr(r.parent.vnode)&&Gi(n,t,s,r),r=r.parent}}function Gi(e,t,s,n){const r=gs(t,e,n,!0);Tr(()=>{qs(n[t],r)},s)}function gs(e,t,s=ce,n=!1){if(s){const r=s[e]||(s[e]=[]),i=t.__weh||(t.__weh=(...l)=>{qe();const o=Kt(s),c=$e(t,s,e,l);return o(),ke(),c});return n?r.unshift(i):r.push(i),i}}const Je=e=>(t,s=ce)=>{(!Ut||e==="sp")&&gs(e,(...n)=>t(...n),s)},zi=Je("bm"),Cr=Je("m"),Yi=Je("bu"),Xi=Je("u"),Er=Je("bum"),Tr=Je("um"),Zi=Je("sp"),Qi=Je("rtg"),el=Je("rtc");function tl(e,t=ce){gs("ec",e,t)}const sl=Symbol.for("v-ndc");function mn(e,t,s,n){let r;const i=s,l=R(e);if(l||Q(e)){const o=l&&_t(e);let c=!1,g=!1;o&&(c=!Ce(e),g=tt(e),e=ds(e)),r=new Array(e.length);for(let a=0,m=e.length;a<m;a++)r[a]=t(c?g?ts(ne(e[a])):ne(e[a]):e[a],a,void 0,i)}else if(typeof e=="number"){r=new Array(e);for(let o=0;o<e;o++)r[o]=t(o+1,o,void 0,i)}else if(X(e))if(e[Symbol.iterator])r=Array.from(e,(o,c)=>t(o,c,void 0,i));else{const o=Object.keys(e);r=new Array(o.length);for(let c=0,g=o.length;c<g;c++){const a=o[c];r[c]=t(e[a],a,c,i)}}else r=[];return r}const $s=e=>e?Jr(e)?bs(e):$s(e.parent):null,Nt=le(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=>$s(e.parent),$root:e=>$s(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Ar(e),$forceUpdate:e=>e.f||(e.f=()=>{tn(e.update)}),$nextTick:e=>e.n||(e.n=Hi.bind(e.proxy)),$watch:e=>Cl.bind(e)}),Es=(e,t)=>e!==q&&!e.__isScriptSetup&&U(e,t),nl={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:r,props:i,accessCache:l,type:o,appContext:c}=e;let g;if(t[0]!=="$"){const T=l[t];if(T!==void 0)switch(T){case 1:return n[t];case 2:return r[t];case 4:return s[t];case 3:return i[t]}else{if(Es(n,t))return l[t]=1,n[t];if(r!==q&&U(r,t))return l[t]=2,r[t];if((g=e.propsOptions[0])&&U(g,t))return l[t]=3,i[t];if(s!==q&&U(s,t))return l[t]=4,s[t];Hs&&(l[t]=0)}}const a=Nt[t];let m,C;if(a)return t==="$attrs"&&re(e.attrs,"get",""),a(e);if((m=o.__cssModules)&&(m=m[t]))return m;if(s!==q&&U(s,t))return l[t]=4,s[t];if(C=c.config.globalProperties,U(C,t))return C[t]},set({_:e},t,s){const{data:n,setupState:r,ctx:i}=e;return Es(r,t)?(r[t]=s,!0):n!==q&&U(n,t)?(n[t]=s,!0):U(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:r,propsOptions:i,type:l}},o){let c,g;return!!(s[o]||e!==q&&o[0]!=="$"&&U(e,o)||Es(t,o)||(c=i[0])&&U(c,o)||U(n,o)||U(Nt,o)||U(r.config.globalProperties,o)||(g=l.__cssModules)&&g[o])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:U(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function vn(e){return R(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let Hs=!0;function rl(e){const t=Ar(e),s=e.proxy,n=e.ctx;Hs=!1,t.beforeCreate&&bn(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:l,watch:o,provide:c,inject:g,created:a,beforeMount:m,mounted:C,beforeUpdate:T,updated:F,activated:N,deactivated:z,beforeDestroy:$,beforeUnmount:V,destroyed:G,unmounted:P,render:Z,renderTracked:Te,renderTriggered:xe,errorCaptured:Oe,serverPrefetch:Ae,expose:He,inheritAttrs:rt,components:dt,directives:ee,filters:it}=t;if(g&&il(g,n,null),l)for(const B in l){const W=l[B];D(W)&&(n[B]=W.bind(s))}if(r){const B=r.call(s,s);X(B)&&(e.data=hs(B))}if(Hs=!0,i)for(const B in i){const W=i[B],Ve=D(W)?W.bind(s,s):D(W.get)?W.get.bind(s,s):Ne,ht=!D(W)&&D(W.set)?W.set.bind(s):Ne,je=Qt({get:Ve,set:ht});Object.defineProperty(n,B,{enumerable:!0,configurable:!0,get:()=>je.value,set:we=>je.value=we})}if(o)for(const B in o)Or(o[B],n,s,B);if(c){const B=D(c)?c.call(s):c;Reflect.ownKeys(B).forEach(W=>{al(W,B[W])})}a&&bn(a,e,"c");function te(B,W){R(W)?W.forEach(Ve=>B(Ve.bind(s))):W&&B(W.bind(s))}if(te(zi,m),te(Cr,C),te(Yi,T),te(Xi,F),te(ki,N),te(Ji,z),te(tl,Oe),te(el,Te),te(Qi,xe),te(Er,V),te(Tr,P),te(Zi,Ae),R(He))if(He.length){const B=e.exposed||(e.exposed={});He.forEach(W=>{Object.defineProperty(B,W,{get:()=>s[W],set:Ve=>s[W]=Ve,enumerable:!0})})}else e.exposed||(e.exposed={});Z&&e.render===Ne&&(e.render=Z),rt!=null&&(e.inheritAttrs=rt),dt&&(e.components=dt),ee&&(e.directives=ee),Ae&&xr(e)}function il(e,t,s=Ne){R(e)&&(e=Vs(e));for(const n in e){const r=e[n];let i;X(r)?"default"in r?i=Yt(r.from||n,r.default,!0):i=Yt(r.from||n):i=Yt(r),ie(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:l=>i.value=l}):t[n]=i}}function bn(e,t,s){$e(R(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function Or(e,t,s,n){let r=n.includes(".")?Ur(s,n):()=>s[n];if(Q(e)){const i=t[e];D(i)&&Os(r,i)}else if(D(e))Os(r,e.bind(s));else if(X(e))if(R(e))e.forEach(i=>Or(i,t,s,n));else{const i=D(e.handler)?e.handler.bind(s):t[e.handler];D(i)&&Os(r,i,e)}}function Ar(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:l}}=e.appContext,o=i.get(t);let c;return o?c=o:!r.length&&!s&&!n?c=t:(c={},r.length&&r.forEach(g=>ls(c,g,l,!0)),ls(c,t,l)),X(t)&&i.set(t,c),c}function ls(e,t,s,n=!1){const{mixins:r,extends:i}=t;i&&ls(e,i,s,!0),r&&r.forEach(l=>ls(e,l,s,!0));for(const l in t)if(!(n&&l==="expose")){const o=ll[l]||s&&s[l];e[l]=o?o(e[l],t[l]):t[l]}return e}const ll={data:yn,props:_n,emits:_n,methods:Pt,computed:Pt,beforeCreate:oe,created:oe,beforeMount:oe,mounted:oe,beforeUpdate:oe,updated:oe,beforeDestroy:oe,beforeUnmount:oe,destroyed:oe,unmounted:oe,activated:oe,deactivated:oe,errorCaptured:oe,serverPrefetch:oe,components:Pt,directives:Pt,watch:ul,provide:yn,inject:ol};function yn(e,t){return t?e?function(){return le(D(e)?e.call(this,this):e,D(t)?t.call(this,this):t)}:t:e}function ol(e,t){return Pt(Vs(e),Vs(t))}function Vs(e){if(R(e)){const t={};for(let s=0;s<e.length;s++)t[e[s]]=e[s];return t}return e}function oe(e,t){return e?[...new Set([].concat(e,t))]:t}function Pt(e,t){return e?le(Object.create(null),e,t):t}function _n(e,t){return e?R(e)&&R(t)?[...new Set([...e,...t])]:le(Object.create(null),vn(e),vn(t??{})):t}function ul(e,t){if(!e)return t;if(!t)return e;const s=le(Object.create(null),e);for(const n in t)s[n]=oe(e[n],t[n]);return s}function Pr(){return{app:null,config:{isNativeTag:Kn,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let cl=0;function fl(e,t){return function(n,r=null){D(n)||(n=le({},n)),r!=null&&!X(r)&&(r=null);const i=Pr(),l=new WeakSet,o=[];let c=!1;const g=i.app={_uid:cl++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:Jl,get config(){return i.config},set config(a){},use(a,...m){return l.has(a)||(a&&D(a.install)?(l.add(a),a.install(g,...m)):D(a)&&(l.add(a),a(g,...m))),g},mixin(a){return i.mixins.includes(a)||i.mixins.push(a),g},component(a,m){return m?(i.components[a]=m,g):i.components[a]},directive(a,m){return m?(i.directives[a]=m,g):i.directives[a]},mount(a,m,C){if(!c){const T=g._ceVNode||Le(n,r);return T.appContext=i,C===!0?C="svg":C===!1&&(C=void 0),e(T,a,C),c=!0,g._container=a,a.__vue_app__=g,bs(T.component)}},onUnmount(a){o.push(a)},unmount(){c&&($e(o,g._instance,16),e(null,g._container),delete g._container.__vue_app__)},provide(a,m){return i.provides[a]=m,g},runWithContext(a){const m=wt;wt=g;try{return a()}finally{wt=m}}};return g}}let wt=null;function al(e,t){if(ce){let s=ce.provides;const n=ce.parent&&ce.parent.provides;n===s&&(s=ce.provides=Object.create(n)),s[e]=t}}function Yt(e,t,s=!1){const n=Ul();if(n||wt){let r=wt?wt._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return s&&D(t)?t.call(n&&n.proxy):t}}const Ir={},Mr=()=>Object.create(Ir),Rr=e=>Object.getPrototypeOf(e)===Ir;function dl(e,t,s,n=!1){const r={},i=Mr();e.propsDefaults=Object.create(null),Fr(e,t,r,i);for(const l in e.propsOptions[0])l in r||(r[l]=void 0);s?e.props=n?r:Ai(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function hl(e,t,s,n){const{props:r,attrs:i,vnode:{patchFlag:l}}=e,o=j(r),[c]=e.propsOptions;let g=!1;if((n||l>0)&&!(l&16)){if(l&8){const a=e.vnode.dynamicProps;for(let m=0;m<a.length;m++){let C=a[m];if(ms(e.emitsOptions,C))continue;const T=t[C];if(c)if(U(i,C))T!==i[C]&&(i[C]=T,g=!0);else{const F=et(C);r[F]=js(c,o,F,T,e,!1)}else T!==i[C]&&(i[C]=T,g=!0)}}}else{Fr(e,t,r,i)&&(g=!0);let a;for(const m in o)(!t||!U(t,m)&&((a=at(m))===m||!U(t,a)))&&(c?s&&(s[m]!==void 0||s[a]!==void 0)&&(r[m]=js(c,o,m,void 0,e,!0)):delete r[m]);if(i!==o)for(const m in i)(!t||!U(t,m))&&(delete i[m],g=!0)}g&&Ke(e.attrs,"set","")}function Fr(e,t,s,n){const[r,i]=e.propsOptions;let l=!1,o;if(t)for(let c in t){if(It(c))continue;const g=t[c];let a;r&&U(r,a=et(c))?!i||!i.includes(a)?s[a]=g:(o||(o={}))[a]=g:ms(e.emitsOptions,c)||(!(c in n)||g!==n[c])&&(n[c]=g,l=!0)}if(i){const c=j(s),g=o||q;for(let a=0;a<i.length;a++){const m=i[a];s[m]=js(r,c,m,g[m],e,!U(g,m))}}return l}function js(e,t,s,n,r,i){const l=e[s];if(l!=null){const o=U(l,"default");if(o&&n===void 0){const c=l.default;if(l.type!==Function&&!l.skipFactory&&D(c)){const{propsDefaults:g}=r;if(s in g)n=g[s];else{const a=Kt(r);n=g[s]=c.call(null,t),a()}}else n=c;r.ce&&r.ce._setProp(s,n)}l[0]&&(i&&!o?n=!1:l[1]&&(n===""||n===at(s))&&(n=!0))}return n}const pl=new WeakMap;function Dr(e,t,s=!1){const n=s?pl:t.propsCache,r=n.get(e);if(r)return r;const i=e.props,l={},o=[];let c=!1;if(!D(e)){const a=m=>{c=!0;const[C,T]=Dr(m,t,!0);le(l,C),T&&o.push(...T)};!s&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}if(!i&&!c)return X(e)&&n.set(e,bt),bt;if(R(i))for(let a=0;a<i.length;a++){const m=et(i[a]);xn(m)&&(l[m]=q)}else if(i)for(const a in i){const m=et(a);if(xn(m)){const C=i[a],T=l[m]=R(C)||D(C)?{type:C}:le({},C),F=T.type;let N=!1,z=!0;if(R(F))for(let $=0;$<F.length;++$){const V=F[$],G=D(V)&&V.name;if(G==="Boolean"){N=!0;break}else G==="String"&&(z=!1)}else N=D(F)&&F.name==="Boolean";T[0]=N,T[1]=z,(N||U(T,"default"))&&o.push(m)}}const g=[l,o];return X(e)&&n.set(e,g),g}function xn(e){return e[0]!=="$"&&!It(e)}const nn=e=>e==="_"||e==="_ctx"||e==="$stable",rn=e=>R(e)?e.map(De):[De(e)],gl=(e,t,s)=>{if(t._n)return t;const n=Ui((...r)=>rn(t(...r)),s);return n._c=!1,n},Nr=(e,t,s)=>{const n=e._ctx;for(const r in e){if(nn(r))continue;const i=e[r];if(D(i))t[r]=gl(r,i,n);else if(i!=null){const l=rn(i);t[r]=()=>l}}},Lr=(e,t)=>{const s=rn(t);e.slots.default=()=>s},$r=(e,t,s)=>{for(const n in t)(s||!nn(n))&&(e[n]=t[n])},ml=(e,t,s)=>{const n=e.slots=Mr();if(e.vnode.shapeFlag&32){const r=t._;r?($r(n,t,s),s&&zn(n,"_",r,!0)):Nr(t,n)}else t&&Lr(e,t)},vl=(e,t,s)=>{const{vnode:n,slots:r}=e;let i=!0,l=q;if(n.shapeFlag&32){const o=t._;o?s&&o===1?i=!1:$r(r,t,s):(i=!t.$stable,Nr(t,r)),l=t}else t&&(Lr(e,t),l={default:1});if(i)for(const o in r)!nn(o)&&l[o]==null&&delete r[o]},ye=Rl;function bl(e){return yl(e)}function yl(e,t){const s=as();s.__VUE__=!0;const{insert:n,remove:r,patchProp:i,createElement:l,createText:o,createComment:c,setText:g,setElementText:a,parentNode:m,nextSibling:C,setScopeId:T=Ne,insertStaticContent:F}=e,N=(u,f,h,y=null,v=null,b=null,S=void 0,w=null,x=!!f.dynamicChildren)=>{if(u===f)return;u&&!At(u,f)&&(y=Wt(u),we(u,v,b,!0),u=null),f.patchFlag===-2&&(x=!1,f.dynamicChildren=null);const{type:_,ref:A,shapeFlag:E}=f;switch(_){case vs:z(u,f,h,y);break;case st:$(u,f,h,y);break;case Xt:u==null&&V(f,h,y,S);break;case me:dt(u,f,h,y,v,b,S,w,x);break;default:E&1?Z(u,f,h,y,v,b,S,w,x):E&6?ee(u,f,h,y,v,b,S,w,x):(E&64||E&128)&&_.process(u,f,h,y,v,b,S,w,x,Ct)}A!=null&&v?Ft(A,u&&u.ref,b,f||u,!f):A==null&&u&&u.ref!=null&&Ft(u.ref,null,b,u,!0)},z=(u,f,h,y)=>{if(u==null)n(f.el=o(f.children),h,y);else{const v=f.el=u.el;f.children!==u.children&&g(v,f.children)}},$=(u,f,h,y)=>{u==null?n(f.el=c(f.children||""),h,y):f.el=u.el},V=(u,f,h,y)=>{[u.el,u.anchor]=F(u.children,f,h,y,u.el,u.anchor)},G=({el:u,anchor:f},h,y)=>{let v;for(;u&&u!==f;)v=C(u),n(u,h,y),u=v;n(f,h,y)},P=({el:u,anchor:f})=>{let h;for(;u&&u!==f;)h=C(u),r(u),u=h;r(f)},Z=(u,f,h,y,v,b,S,w,x)=>{f.type==="svg"?S="svg":f.type==="math"&&(S="mathml"),u==null?Te(f,h,y,v,b,S,w,x):Ae(u,f,v,b,S,w,x)},Te=(u,f,h,y,v,b,S,w)=>{let x,_;const{props:A,shapeFlag:E,transition:O,dirs:M}=u;if(x=u.el=l(u.type,b,A&&A.is,A),E&8?a(x,u.children):E&16&&Oe(u.children,x,null,y,v,Ts(u,b),S,w),M&&lt(u,null,y,"created"),xe(x,u,u.scopeId,S,y),A){for(const k in A)k!=="value"&&!It(k)&&i(x,k,null,A[k],b,y);"value"in A&&i(x,"value",null,A.value,b),(_=A.onVnodeBeforeMount)&&Re(_,y,u)}M&&lt(u,null,y,"beforeMount");const H=_l(v,O);H&&O.beforeEnter(x),n(x,f,h),((_=A&&A.onVnodeMounted)||H||M)&&ye(()=>{_&&Re(_,y,u),H&&O.enter(x),M&&lt(u,null,y,"mounted")},v)},xe=(u,f,h,y,v)=>{if(h&&T(u,h),y)for(let b=0;b<y.length;b++)T(u,y[b]);if(v){let b=v.subTree;if(f===b||Kr(b.type)&&(b.ssContent===f||b.ssFallback===f)){const S=v.vnode;xe(u,S,S.scopeId,S.slotScopeIds,v.parent)}}},Oe=(u,f,h,y,v,b,S,w,x=0)=>{for(let _=x;_<u.length;_++){const A=u[_]=w?Ze(u[_]):De(u[_]);N(null,A,f,h,y,v,b,S,w)}},Ae=(u,f,h,y,v,b,S)=>{const w=f.el=u.el;let{patchFlag:x,dynamicChildren:_,dirs:A}=f;x|=u.patchFlag&16;const E=u.props||q,O=f.props||q;let M;if(h&&ot(h,!1),(M=O.onVnodeBeforeUpdate)&&Re(M,h,f,u),A&&lt(f,u,h,"beforeUpdate"),h&&ot(h,!0),(E.innerHTML&&O.innerHTML==null||E.textContent&&O.textContent==null)&&a(w,""),_?He(u.dynamicChildren,_,w,h,y,Ts(f,v),b):S||W(u,f,w,null,h,y,Ts(f,v),b,!1),x>0){if(x&16)rt(w,E,O,h,v);else if(x&2&&E.class!==O.class&&i(w,"class",null,O.class,v),x&4&&i(w,"style",E.style,O.style,v),x&8){const H=f.dynamicProps;for(let k=0;k<H.length;k++){const K=H[k],ae=E[K],de=O[K];(de!==ae||K==="value")&&i(w,K,ae,de,v,h)}}x&1&&u.children!==f.children&&a(w,f.children)}else!S&&_==null&&rt(w,E,O,h,v);((M=O.onVnodeUpdated)||A)&&ye(()=>{M&&Re(M,h,f,u),A&&lt(f,u,h,"updated")},y)},He=(u,f,h,y,v,b,S)=>{for(let w=0;w<f.length;w++){const x=u[w],_=f[w],A=x.el&&(x.type===me||!At(x,_)||x.shapeFlag&198)?m(x.el):h;N(x,_,A,null,y,v,b,S,!0)}},rt=(u,f,h,y,v)=>{if(f!==h){if(f!==q)for(const b in f)!It(b)&&!(b in h)&&i(u,b,f[b],null,v,y);for(const b in h){if(It(b))continue;const S=h[b],w=f[b];S!==w&&b!=="value"&&i(u,b,w,S,v,y)}"value"in h&&i(u,"value",f.value,h.value,v)}},dt=(u,f,h,y,v,b,S,w,x)=>{const _=f.el=u?u.el:o(""),A=f.anchor=u?u.anchor:o("");let{patchFlag:E,dynamicChildren:O,slotScopeIds:M}=f;M&&(w=w?w.concat(M):M),u==null?(n(_,h,y),n(A,h,y),Oe(f.children||[],h,A,v,b,S,w,x)):E>0&&E&64&&O&&u.dynamicChildren?(He(u.dynamicChildren,O,h,v,b,S,w),(f.key!=null||v&&f===v.subTree)&&Hr(u,f,!0)):W(u,f,h,A,v,b,S,w,x)},ee=(u,f,h,y,v,b,S,w,x)=>{f.slotScopeIds=w,u==null?f.shapeFlag&512?v.ctx.activate(f,h,y,S,x):it(f,h,y,v,b,S,x):Ge(u,f,x)},it=(u,f,h,y,v,b,S)=>{const w=u.component=jl(u,y,v);if(wr(u)&&(w.ctx.renderer=Ct),Bl(w,!1,S),w.asyncDep){if(v&&v.registerDep(w,te,S),!u.el){const x=w.subTree=Le(st);$(null,x,f,h),u.placeholder=x.el}}else te(w,u,f,h,v,b,S)},Ge=(u,f,h)=>{const y=f.component=u.component;if(Il(u,f,h))if(y.asyncDep&&!y.asyncResolved){B(y,f,h);return}else y.next=f,y.update();else f.el=u.el,y.vnode=f},te=(u,f,h,y,v,b,S)=>{const w=()=>{if(u.isMounted){let{next:E,bu:O,u:M,parent:H,vnode:k}=u;{const Ie=Vr(u);if(Ie){E&&(E.el=k.el,B(u,E,S)),Ie.asyncDep.then(()=>{u.isUnmounted||w()});return}}let K=E,ae;ot(u,!1),E?(E.el=k.el,B(u,E,S)):E=k,O&&zt(O),(ae=E.props&&E.props.onVnodeBeforeUpdate)&&Re(ae,H,E,k),ot(u,!0);const de=Sn(u),Pe=u.subTree;u.subTree=de,N(Pe,de,m(Pe.el),Wt(Pe),u,v,b),E.el=de.el,K===null&&Ml(u,de.el),M&&ye(M,v),(ae=E.props&&E.props.onVnodeUpdated)&&ye(()=>Re(ae,H,E,k),v)}else{let E;const{el:O,props:M}=f,{bm:H,m:k,parent:K,root:ae,type:de}=u,Pe=Dt(f);ot(u,!1),H&&zt(H),!Pe&&(E=M&&M.onVnodeBeforeMount)&&Re(E,K,f),ot(u,!0);{ae.ce&&ae.ce._def.shadowRoot!==!1&&ae.ce._injectChildStyle(de);const Ie=u.subTree=Sn(u);N(null,Ie,h,y,u,v,b),f.el=Ie.el}if(k&&ye(k,v),!Pe&&(E=M&&M.onVnodeMounted)){const Ie=f;ye(()=>Re(E,K,Ie),v)}(f.shapeFlag&256||K&&Dt(K.vnode)&&K.vnode.shapeFlag&256)&&u.a&&ye(u.a,v),u.isMounted=!0,f=h=y=null}};u.scope.on();const x=u.effect=new Qn(w);u.scope.off();const _=u.update=x.run.bind(x),A=u.job=x.runIfDirty.bind(x);A.i=u,A.id=u.uid,x.scheduler=()=>tn(A),ot(u,!0),_()},B=(u,f,h)=>{f.component=u;const y=u.vnode.props;u.vnode=f,u.next=null,hl(u,f.props,y,h),vl(u,f.children,h),qe(),pn(u),ke()},W=(u,f,h,y,v,b,S,w,x=!1)=>{const _=u&&u.children,A=u?u.shapeFlag:0,E=f.children,{patchFlag:O,shapeFlag:M}=f;if(O>0){if(O&128){ht(_,E,h,y,v,b,S,w,x);return}else if(O&256){Ve(_,E,h,y,v,b,S,w,x);return}}M&8?(A&16&&fe(_,v,b),E!==_&&a(h,E)):A&16?M&16?ht(_,E,h,y,v,b,S,w,x):fe(_,v,b,!0):(A&8&&a(h,""),M&16&&Oe(E,h,y,v,b,S,w,x))},Ve=(u,f,h,y,v,b,S,w,x)=>{u=u||bt,f=f||bt;const _=u.length,A=f.length,E=Math.min(_,A);let O;for(O=0;O<E;O++){const M=f[O]=x?Ze(f[O]):De(f[O]);N(u[O],M,h,null,v,b,S,w,x)}_>A?fe(u,v,b,!0,!1,E):Oe(f,h,y,v,b,S,w,x,E)},ht=(u,f,h,y,v,b,S,w,x)=>{let _=0;const A=f.length;let E=u.length-1,O=A-1;for(;_<=E&&_<=O;){const M=u[_],H=f[_]=x?Ze(f[_]):De(f[_]);if(At(M,H))N(M,H,h,null,v,b,S,w,x);else break;_++}for(;_<=E&&_<=O;){const M=u[E],H=f[O]=x?Ze(f[O]):De(f[O]);if(At(M,H))N(M,H,h,null,v,b,S,w,x);else break;E--,O--}if(_>E){if(_<=O){const M=O+1,H=M<A?f[M].el:y;for(;_<=O;)N(null,f[_]=x?Ze(f[_]):De(f[_]),h,H,v,b,S,w,x),_++}}else if(_>O)for(;_<=E;)we(u[_],v,b,!0),_++;else{const M=_,H=_,k=new Map;for(_=H;_<=O;_++){const ve=f[_]=x?Ze(f[_]):De(f[_]);ve.key!=null&&k.set(ve.key,_)}let K,ae=0;const de=O-H+1;let Pe=!1,Ie=0;const Et=new Array(de);for(_=0;_<de;_++)Et[_]=0;for(_=M;_<=E;_++){const ve=u[_];if(ae>=de){we(ve,v,b,!0);continue}let Me;if(ve.key!=null)Me=k.get(ve.key);else for(K=H;K<=O;K++)if(Et[K-H]===0&&At(ve,f[K])){Me=K;break}Me===void 0?we(ve,v,b,!0):(Et[Me-H]=_+1,Me>=Ie?Ie=Me:Pe=!0,N(ve,f[Me],h,null,v,b,S,w,x),ae++)}const un=Pe?xl(Et):bt;for(K=un.length-1,_=de-1;_>=0;_--){const ve=H+_,Me=f[ve],cn=f[ve+1],fn=ve+1<A?cn.el||cn.placeholder:y;Et[_]===0?N(null,Me,h,fn,v,b,S,w,x):Pe&&(K<0||_!==un[K]?je(Me,h,fn,2):K--)}}},je=(u,f,h,y,v=null)=>{const{el:b,type:S,transition:w,children:x,shapeFlag:_}=u;if(_&6){je(u.component.subTree,f,h,y);return}if(_&128){u.suspense.move(f,h,y);return}if(_&64){S.move(u,f,h,Ct);return}if(S===me){n(b,f,h);for(let E=0;E<x.length;E++)je(x[E],f,h,y);n(u.anchor,f,h);return}if(S===Xt){G(u,f,h);return}if(y!==2&&_&1&&w)if(y===0)w.beforeEnter(b),n(b,f,h),ye(()=>w.enter(b),v);else{const{leave:E,delayLeave:O,afterLeave:M}=w,H=()=>{u.ctx.isUnmounted?r(b):n(b,f,h)},k=()=>{b._isLeaving&&b[Wi](!0),E(b,()=>{H(),M&&M()})};O?O(b,H,k):k()}else n(b,f,h)},we=(u,f,h,y=!1,v=!1)=>{const{type:b,props:S,ref:w,children:x,dynamicChildren:_,shapeFlag:A,patchFlag:E,dirs:O,cacheIndex:M}=u;if(E===-2&&(v=!1),w!=null&&(qe(),Ft(w,null,h,u,!0),ke()),M!=null&&(f.renderCache[M]=void 0),A&256){f.ctx.deactivate(u);return}const H=A&1&&O,k=!Dt(u);let K;if(k&&(K=S&&S.onVnodeBeforeUnmount)&&Re(K,f,u),A&6)I(u.component,h,y);else{if(A&128){u.suspense.unmount(h,y);return}H&&lt(u,null,f,"beforeUnmount"),A&64?u.type.remove(u,f,h,Ct,y):_&&!_.hasOnce&&(b!==me||E>0&&E&64)?fe(_,f,h,!1,!0):(b===me&&E&384||!v&&A&16)&&fe(x,f,h),y&&L(u)}(k&&(K=S&&S.onVnodeUnmounted)||H)&&ye(()=>{K&&Re(K,f,u),H&&lt(u,null,f,"unmounted")},h)},L=u=>{const{type:f,el:h,anchor:y,transition:v}=u;if(f===me){p(h,y);return}if(f===Xt){P(u);return}const b=()=>{r(h),v&&!v.persisted&&v.afterLeave&&v.afterLeave()};if(u.shapeFlag&1&&v&&!v.persisted){const{leave:S,delayLeave:w}=v,x=()=>S(h,b);w?w(u.el,b,x):x()}else b()},p=(u,f)=>{let h;for(;u!==f;)h=C(u),r(u),u=h;r(f)},I=(u,f,h)=>{const{bum:y,scope:v,job:b,subTree:S,um:w,m:x,a:_}=u;wn(x),wn(_),y&&zt(y),v.stop(),b&&(b.flags|=8,we(S,u,f,h)),w&&ye(w,f),ye(()=>{u.isUnmounted=!0},f)},fe=(u,f,h,y=!1,v=!1,b=0)=>{for(let S=b;S<u.length;S++)we(u[S],f,h,y,v)},Wt=u=>{if(u.shapeFlag&6)return Wt(u.component.subTree);if(u.shapeFlag&128)return u.suspense.next();const f=C(u.anchor||u.el),h=f&&f[Bi];return h?C(h):f};let ys=!1;const on=(u,f,h)=>{u==null?f._vnode&&we(f._vnode,null,null,!0):N(f._vnode||null,u,f,null,null,null,h),f._vnode=u,ys||(ys=!0,pn(),br(),ys=!1)},Ct={p:N,um:we,m:je,r:L,mt:it,mc:Oe,pc:W,pbc:He,n:Wt,o:e};return{render:on,hydrate:void 0,createApp:fl(on)}}function Ts({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function ot({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function _l(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Hr(e,t,s=!1){const n=e.children,r=t.children;if(R(n)&&R(r))for(let i=0;i<n.length;i++){const l=n[i];let o=r[i];o.shapeFlag&1&&!o.dynamicChildren&&((o.patchFlag<=0||o.patchFlag===32)&&(o=r[i]=Ze(r[i]),o.el=l.el),!s&&o.patchFlag!==-2&&Hr(l,o)),o.type===vs&&o.patchFlag!==-1&&(o.el=l.el),o.type===st&&!o.el&&(o.el=l.el)}}function xl(e){const t=e.slice(),s=[0];let n,r,i,l,o;const c=e.length;for(n=0;n<c;n++){const g=e[n];if(g!==0){if(r=s[s.length-1],e[r]<g){t[n]=r,s.push(n);continue}for(i=0,l=s.length-1;i<l;)o=i+l>>1,e[s[o]]<g?i=o+1:l=o;g<e[s[i]]&&(i>0&&(t[n]=s[i-1]),s[i]=n)}}for(i=s.length,l=s[i-1];i-- >0;)s[i]=l,l=t[l];return s}function Vr(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Vr(t)}function wn(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const wl=Symbol.for("v-scx"),Sl=()=>Yt(wl);function Os(e,t,s){return jr(e,t,s)}function jr(e,t,s=q){const{immediate:n,deep:r,flush:i,once:l}=s,o=le({},s),c=t&&n||!t&&i!=="post";let g;if(Ut){if(i==="sync"){const T=Sl();g=T.__watcherHandles||(T.__watcherHandles=[])}else if(!c){const T=()=>{};return T.stop=Ne,T.resume=Ne,T.pause=Ne,T}}const a=ce;o.call=(T,F,N)=>$e(T,a,F,N);let m=!1;i==="post"?o.scheduler=T=>{ye(T,a&&a.suspense)}:i!=="sync"&&(m=!0,o.scheduler=(T,F)=>{F?T():tn(T)}),o.augmentJob=T=>{t&&(T.flags|=4),m&&(T.flags|=2,a&&(T.id=a.uid,T.i=a))};const C=Li(e,t,o);return Ut&&(g?g.push(C):c&&C()),C}function Cl(e,t,s){const n=this.proxy,r=Q(e)?e.includes(".")?Ur(n,e):()=>n[e]:e.bind(n,n);let i;D(t)?i=t:(i=t.handler,s=t);const l=Kt(this),o=jr(r,i.bind(n),s);return l(),o}function Ur(e,t){const s=t.split(".");return()=>{let n=e;for(let r=0;r<s.length&&n;r++)n=n[s[r]];return n}}const El=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${et(t)}Modifiers`]||e[`${at(t)}Modifiers`];function Tl(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||q;let r=s;const i=t.startsWith("update:"),l=i&&El(n,t.slice(7));l&&(l.trim&&(r=s.map(a=>Q(a)?a.trim():a)),l.number&&(r=s.map(Rs)));let o,c=n[o=_s(t)]||n[o=_s(et(t))];!c&&i&&(c=n[o=_s(at(t))]),c&&$e(c,e,6,r);const g=n[o+"Once"];if(g){if(!e.emitted)e.emitted={};else if(e.emitted[o])return;e.emitted[o]=!0,$e(g,e,6,r)}}const Ol=new WeakMap;function Br(e,t,s=!1){const n=s?Ol:t.emitsCache,r=n.get(e);if(r!==void 0)return r;const i=e.emits;let l={},o=!1;if(!D(e)){const c=g=>{const a=Br(g,t,!0);a&&(o=!0,le(l,a))};!s&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!i&&!o?(X(e)&&n.set(e,null),null):(R(i)?i.forEach(c=>l[c]=null):le(l,i),X(e)&&n.set(e,l),l)}function ms(e,t){return!e||!us(t)?!1:(t=t.slice(2).replace(/Once$/,""),U(e,t[0].toLowerCase()+t.slice(1))||U(e,at(t))||U(e,t))}function Sn(e){const{type:t,vnode:s,proxy:n,withProxy:r,propsOptions:[i],slots:l,attrs:o,emit:c,render:g,renderCache:a,props:m,data:C,setupState:T,ctx:F,inheritAttrs:N}=e,z=rs(e);let $,V;try{if(s.shapeFlag&4){const P=r||n,Z=P;$=De(g.call(Z,P,a,m,T,C,F)),V=o}else{const P=t;$=De(P.length>1?P(m,{attrs:o,slots:l,emit:c}):P(m,null)),V=t.props?o:Al(o)}}catch(P){Lt.length=0,ps(P,e,1),$=Le(st)}let G=$;if(V&&N!==!1){const P=Object.keys(V),{shapeFlag:Z}=G;P.length&&Z&7&&(i&&P.some(Ws)&&(V=Pl(V,i)),G=St(G,V,!1,!0))}return s.dirs&&(G=St(G,null,!1,!0),G.dirs=G.dirs?G.dirs.concat(s.dirs):s.dirs),s.transition&&sn(G,s.transition),$=G,rs(z),$}const Al=e=>{let t;for(const s in e)(s==="class"||s==="style"||us(s))&&((t||(t={}))[s]=e[s]);return t},Pl=(e,t)=>{const s={};for(const n in e)(!Ws(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function Il(e,t,s){const{props:n,children:r,component:i}=e,{props:l,children:o,patchFlag:c}=t,g=i.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&c>=0){if(c&1024)return!0;if(c&16)return n?Cn(n,l,g):!!l;if(c&8){const a=t.dynamicProps;for(let m=0;m<a.length;m++){const C=a[m];if(l[C]!==n[C]&&!ms(g,C))return!0}}}else return(r||o)&&(!o||!o.$stable)?!0:n===l?!1:n?l?Cn(n,l,g):!0:!!l;return!1}function Cn(e,t,s){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let r=0;r<n.length;r++){const i=n[r];if(t[i]!==e[i]&&!ms(s,i))return!0}return!1}function Ml({vnode:e,parent:t},s){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.el=e.el),n===e)(e=t.vnode).el=s,t=t.parent;else break}}const Kr=e=>e.__isSuspense;function Rl(e,t){t&&t.pendingBranch?R(e)?t.effects.push(...e):t.effects.push(e):ji(e)}const me=Symbol.for("v-fgt"),vs=Symbol.for("v-txt"),st=Symbol.for("v-cmt"),Xt=Symbol.for("v-stc"),Lt=[];let _e=null;function he(e=!1){Lt.push(_e=e?null:[])}function Fl(){Lt.pop(),_e=Lt[Lt.length-1]||null}let jt=1;function En(e,t=!1){jt+=e,e<0&&_e&&t&&(_e.hasOnce=!0)}function Wr(e){return e.dynamicChildren=jt>0?_e||bt:null,Fl(),jt>0&&_e&&_e.push(e),e}function be(e,t,s,n,r,i){return Wr(d(e,t,s,n,r,i,!0))}function Dl(e,t,s,n,r){return Wr(Le(e,t,s,n,r,!0))}function qr(e){return e?e.__v_isVNode===!0:!1}function At(e,t){return e.type===t.type&&e.key===t.key}const kr=({key:e})=>e??null,Zt=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?Q(e)||ie(e)||D(e)?{i:Se,r:e,k:t,f:!!s}:e:null);function d(e,t=null,s=null,n=0,r=null,i=e===me?0:1,l=!1,o=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&kr(t),ref:t&&Zt(t),scopeId:_r,slotScopeIds:null,children:s,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:n,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Se};return o?(ln(c,s),i&128&&e.normalize(c)):s&&(c.shapeFlag|=Q(s)?8:16),jt>0&&!l&&_e&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&_e.push(c),c}const Le=Nl;function Nl(e,t=null,s=null,n=0,r=null,i=!1){if((!e||e===sl)&&(e=st),qr(e)){const o=St(e,t,!0);return s&&ln(o,s),jt>0&&!i&&_e&&(o.shapeFlag&6?_e[_e.indexOf(e)]=o:_e.push(o)),o.patchFlag=-2,o}if(kl(e)&&(e=e.__vccOpts),t){t=Ll(t);let{class:o,style:c}=t;o&&!Q(o)&&(t.class=ct(o)),X(c)&&(en(c)&&!R(c)&&(c=le({},c)),t.style=Js(c))}const l=Q(e)?1:Kr(e)?128:Ki(e)?64:X(e)?4:D(e)?2:0;return d(e,t,s,n,r,l,i,!0)}function Ll(e){return e?en(e)||Rr(e)?le({},e):e:null}function St(e,t,s=!1,n=!1){const{props:r,ref:i,patchFlag:l,children:o,transition:c}=e,g=t?$l(r||{},t):r,a={__v_isVNode:!0,__v_skip:!0,type:e.type,props:g,key:g&&kr(g),ref:t&&t.ref?s&&i?R(i)?i.concat(Zt(t)):[i,Zt(t)]:Zt(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!==me?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&St(e.ssContent),ssFallback:e.ssFallback&&St(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&n&&sn(a,c.clone(a)),a}function pe(e=" ",t=0){return Le(vs,null,e,t)}function Tn(e,t){const s=Le(Xt,null,e);return s.staticCount=t,s}function Gt(e="",t=!1){return t?(he(),Dl(st,null,e)):Le(st,null,e)}function De(e){return e==null||typeof e=="boolean"?Le(st):R(e)?Le(me,null,e.slice()):qr(e)?Ze(e):Le(vs,null,String(e))}function Ze(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:St(e)}function ln(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(R(t))s=16;else if(typeof t=="object")if(n&65){const r=t.default;r&&(r._c&&(r._d=!1),ln(e,r()),r._c&&(r._d=!0));return}else{s=32;const r=t._;!r&&!Rr(t)?t._ctx=Se:r===3&&Se&&(Se.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else D(t)?(t={default:t,_ctx:Se},s=32):(t=String(t),n&64?(s=16,t=[pe(t)]):s=8);e.children=t,e.shapeFlag|=s}function $l(...e){const t={};for(let s=0;s<e.length;s++){const n=e[s];for(const r in n)if(r==="class")t.class!==n.class&&(t.class=ct([t.class,n.class]));else if(r==="style")t.style=Js([t.style,n.style]);else if(us(r)){const i=t[r],l=n[r];l&&i!==l&&!(R(i)&&i.includes(l))&&(t[r]=i?[].concat(i,l):l)}else r!==""&&(t[r]=n[r])}return t}function Re(e,t,s,n=null){$e(e,t,7,[s,n])}const Hl=Pr();let Vl=0;function jl(e,t,s){const n=e.type,r=(t?t.appContext:e.appContext)||Hl,i={uid:Vl++,vnode:e,type:n,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new ui(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Dr(n,r),emitsOptions:Br(n,r),emit:null,emitted:null,propsDefaults:q,inheritAttrs:n.inheritAttrs,ctx:q,data:q,props:q,attrs:q,slots:q,refs:q,setupState:q,setupContext:null,suspense:s,suspenseId:s?s.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=Tl.bind(null,i),e.ce&&e.ce(i),i}let ce=null;const Ul=()=>ce||Se;let os,Us;{const e=as(),t=(s,n)=>{let r;return(r=e[s])||(r=e[s]=[]),r.push(n),i=>{r.length>1?r.forEach(l=>l(i)):r[0](i)}};os=t("__VUE_INSTANCE_SETTERS__",s=>ce=s),Us=t("__VUE_SSR_SETTERS__",s=>Ut=s)}const Kt=e=>{const t=ce;return os(e),e.scope.on(),()=>{e.scope.off(),os(t)}},On=()=>{ce&&ce.scope.off(),os(null)};function Jr(e){return e.vnode.shapeFlag&4}let Ut=!1;function Bl(e,t=!1,s=!1){t&&Us(t);const{props:n,children:r}=e.vnode,i=Jr(e);dl(e,n,i,t),ml(e,r,s||t);const l=i?Kl(e,t):void 0;return t&&Us(!1),l}function Kl(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,nl);const{setup:n}=s;if(n){qe();const r=e.setupContext=n.length>1?ql(e):null,i=Kt(e),l=Bt(n,e,0,[e.props,r]),o=qn(l);if(ke(),i(),(o||e.sp)&&!Dt(e)&&xr(e),o){if(l.then(On,On),t)return l.then(c=>{An(e,c)}).catch(c=>{ps(c,e,0)});e.asyncDep=l}else An(e,l)}else Gr(e)}function An(e,t,s){D(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:X(t)&&(e.setupState=gr(t)),Gr(e)}function Gr(e,t,s){const n=e.type;e.render||(e.render=n.render||Ne);{const r=Kt(e);qe();try{rl(e)}finally{ke(),r()}}}const Wl={get(e,t){return re(e,"get",""),e[t]}};function ql(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,Wl),slots:e.slots,emit:e.emit,expose:t}}function bs(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(gr(Pi(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in Nt)return Nt[s](e)},has(t,s){return s in t||s in Nt}})):e.proxy}function kl(e){return D(e)&&"__vccOpts"in e}const Qt=(e,t)=>Di(e,t,Ut),Jl="3.5.21";/**
* @vue/runtime-dom v3.5.21
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let Bs;const Pn=typeof window<"u"&&window.trustedTypes;if(Pn)try{Bs=Pn.createPolicy("vue",{createHTML:e=>e})}catch{}const zr=Bs?e=>Bs.createHTML(e):e=>e,Gl="http://www.w3.org/2000/svg",zl="http://www.w3.org/1998/Math/MathML",Be=typeof document<"u"?document:null,In=Be&&Be.createElement("template"),Yl={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const r=t==="svg"?Be.createElementNS(Gl,e):t==="mathml"?Be.createElementNS(zl,e):s?Be.createElement(e,{is:s}):Be.createElement(e);return e==="select"&&n&&n.multiple!=null&&r.setAttribute("multiple",n.multiple),r},createText:e=>Be.createTextNode(e),createComment:e=>Be.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Be.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,r,i){const l=s?s.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),s),!(r===i||!(r=r.nextSibling)););else{In.innerHTML=zr(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const o=In.content;if(n==="svg"||n==="mathml"){const c=o.firstChild;for(;c.firstChild;)o.appendChild(c.firstChild);o.removeChild(c)}t.insertBefore(o,s)}return[l?l.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},Xl=Symbol("_vtc");function Zl(e,t,s){const n=e[Xl];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const Mn=Symbol("_vod"),Ql=Symbol("_vsh"),eo=Symbol(""),to=/(?:^|;)\s*display\s*:/;function so(e,t,s){const n=e.style,r=Q(s);let i=!1;if(s&&!r){if(t)if(Q(t))for(const l of t.split(";")){const o=l.slice(0,l.indexOf(":")).trim();s[o]==null&&es(n,o,"")}else for(const l in t)s[l]==null&&es(n,l,"");for(const l in s)l==="display"&&(i=!0),es(n,l,s[l])}else if(r){if(t!==s){const l=n[eo];l&&(s+=";"+l),n.cssText=s,i=to.test(s)}}else t&&e.removeAttribute("style");Mn in e&&(e[Mn]=i?n.display:"",e[Ql]&&(n.display="none"))}const Rn=/\s*!important$/;function es(e,t,s){if(R(s))s.forEach(n=>es(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=no(e,t);Rn.test(s)?e.setProperty(at(n),s.replace(Rn,""),"important"):e[n]=s}}const Fn=["Webkit","Moz","ms"],As={};function no(e,t){const s=As[t];if(s)return s;let n=et(t);if(n!=="filter"&&n in e)return As[t]=n;n=Gn(n);for(let r=0;r<Fn.length;r++){const i=Fn[r]+n;if(i in e)return As[t]=i}return t}const Dn="http://www.w3.org/1999/xlink";function Nn(e,t,s,n,r,i=oi(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(Dn,t.slice(6,t.length)):e.setAttributeNS(Dn,t,s):s==null||i&&!Yn(s)?e.removeAttribute(t):e.setAttribute(t,i?"":nt(s)?String(s):s)}function Ln(e,t,s,n,r){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?zr(s):s);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const o=i==="OPTION"?e.getAttribute("value")||"":e.value,c=s==null?e.type==="checkbox"?"on":"":String(s);(o!==c||!("_value"in e))&&(e.value=c),s==null&&e.removeAttribute(t),e._value=s;return}let l=!1;if(s===""||s==null){const o=typeof e[t];o==="boolean"?s=Yn(s):s==null&&o==="string"?(s="",l=!0):o==="number"&&(s=0,l=!0)}try{e[t]=s}catch{}l&&e.removeAttribute(r||t)}function vt(e,t,s,n){e.addEventListener(t,s,n)}function ro(e,t,s,n){e.removeEventListener(t,s,n)}const $n=Symbol("_vei");function io(e,t,s,n,r=null){const i=e[$n]||(e[$n]={}),l=i[t];if(n&&l)l.value=n;else{const[o,c]=lo(t);if(n){const g=i[t]=co(n,r);vt(e,o,g,c)}else l&&(ro(e,o,l,c),i[t]=void 0)}}const Hn=/(?:Once|Passive|Capture)$/;function lo(e){let t;if(Hn.test(e)){t={};let n;for(;n=e.match(Hn);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):at(e.slice(2)),t]}let Ps=0;const oo=Promise.resolve(),uo=()=>Ps||(oo.then(()=>Ps=0),Ps=Date.now());function co(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;$e(fo(n,s.value),t,5,[n])};return s.value=e,s.attached=uo(),s}function fo(e,t){if(R(t)){const s=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{s.call(e),e._stopped=!0},t.map(n=>r=>!r._stopped&&n&&n(r))}else return t}const Vn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,ao=(e,t,s,n,r,i)=>{const l=r==="svg";t==="class"?Zl(e,n,l):t==="style"?so(e,s,n):us(t)?Ws(t)||io(e,t,s,n,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):ho(e,t,n,l))?(Ln(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Nn(e,t,n,l,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Q(n))?Ln(e,et(t),n,i,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Nn(e,t,n,l))};function ho(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&Vn(t)&&D(s));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||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 Vn(t)&&Q(s)?!1:t in e}const jn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return R(t)?s=>zt(t,s):t};function po(e){e.target.composing=!0}function Un(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Is=Symbol("_assign"),Ye={created(e,{modifiers:{lazy:t,trim:s,number:n}},r){e[Is]=jn(r);const i=n||r.props&&r.props.type==="number";vt(e,t?"change":"input",l=>{if(l.target.composing)return;let o=e.value;s&&(o=o.trim()),i&&(o=Rs(o)),e[Is](o)}),s&&vt(e,"change",()=>{e.value=e.value.trim()}),t||(vt(e,"compositionstart",po),vt(e,"compositionend",Un),vt(e,"change",Un))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:n,trim:r,number:i}},l){if(e[Is]=jn(l),e.composing)return;const o=(i||e.type==="number")&&!/^0\d/.test(e.value)?Rs(e.value):e.value,c=t??"";o!==c&&(document.activeElement===e&&e.type!=="range"&&(n&&t===s||r&&e.value.trim()===c)||(e.value=c))}},go=["ctrl","shift","alt","meta"],mo={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)=>go.some(s=>e[`${s}Key`]&&!t.includes(s))},Ms=(e,t)=>{const s=e._withMods||(e._withMods={}),n=t.join(".");return s[n]||(s[n]=(r,...i)=>{for(let l=0;l<t.length;l++){const o=mo[t[l]];if(o&&o(r,t))return}return e(r,...i)})},vo=le({patchProp:ao},Yl);let Bn;function bo(){return Bn||(Bn=bl(vo))}const yo=(...e)=>{const t=bo().createApp(...e),{mount:s}=t;return t.mount=n=>{const r=xo(n);if(!r)return;const i=t._component;!D(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const l=s(r,!1,_o(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),l},t};function _o(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function xo(e){return Q(e)?document.querySelector(e):e}async function gt(e){try{return await e.json()}catch{return null}}class wo{constructor(){Tt(this,"access","");Tt(this,"refresh","");Tt(this,"deviceId","");Tt(this,"mustChangeCredentials",!1)}get signedIn(){return!!this.access}async raw(t,s={},n=!0){const r=new Headers(s.headers);return s.body&&!r.has("Content-Type")&&r.set("Content-Type","application/json"),n&&this.access&&r.set("Authorization",`Bearer ${this.access}`),fetch(t,{...s,headers:r,cache:"no-store",credentials:"same-origin"})}async rotate(){if(!this.refresh)return!1;const t=await this.raw("/sync/v1/auth/refresh",{method:"POST",body:JSON.stringify({refresh_token:this.refresh})},!1);if(!t.ok)return!1;const s=await gt(t);return s?(this.accept(s),!0):!1}async request(t,s={},n=!0){var l;let r=await this.raw(t,s);if(r.status===401&&n&&await this.rotate()&&(r=await this.raw(t,s)),!r.ok){const o=await gt(r);throw r.status===401&&this.clear(),new Error(((l=o==null?void 0:o.error)==null?void 0:l.code)??`HTTP_${r.status}`)}if(r.status===204)return;const i=await gt(r);if(i===null)throw new Error("INVALID_RESPONSE");return i}accept(t){this.access=t.access_token,this.refresh=t.refresh_token,this.deviceId=t.device_id,this.mustChangeCredentials=!!t.must_change_credentials}async status(){const[t,s,n]=await Promise.allSettled([this.raw("/health",{},!1),this.raw("/ready",{},!1),this.raw("/sync/v1/handshake?protocol=1",{},!1)]);let r=1,i=100*1024*1024;if(n.status==="fulfilled"&&n.value.ok){const l=await gt(n.value);r=(l==null?void 0:l.protocol)??r,i=(l==null?void 0:l.max_object_size)??i}return{health:t.status==="fulfilled"&&t.value.ok,ready:s.status==="fulfilled"&&s.value.ok,protocol:r,maxObjectSize:i}}async login(t,s,n){var l;const r=await this.raw("/sync/v1/auth/sessions",{method:"POST",body:JSON.stringify({username:t,password:s,device_name:n})},!1);if(!r.ok){const o=await gt(r);throw new Error(((l=o==null?void 0:o.error)==null?void 0:l.code)??`HTTP_${r.status}`)}const i=await gt(r);if(!i)throw new Error("INVALID_RESPONSE");return this.accept(i),this.mustChangeCredentials}async changeCredentials(t,s,n){const r=await this.request("/sync/v1/account/credentials",{method:"PUT",body:JSON.stringify({current_password:t,username:s,password:n})},!1);return this.mustChangeCredentials=!1,r}vaults(){return this.request("/sync/v1/vaults")}devices(){return this.request("/sync/v1/devices")}createVault(t){return this.request("/sync/v1/vaults",{method:"POST",body:JSON.stringify({name:t})})}revokeDevice(t){return this.request(`/sync/v1/devices/${encodeURIComponent(t)}`,{method:"DELETE"})}async logout(){try{this.access&&await this.request("/sync/v1/auth/sessions",{method:"DELETE"},!1)}finally{this.clear()}}clear(){this.access="",this.refresh="",this.deviceId="",this.mustChangeCredentials=!1}}const So={class:"topbar"},Co={class:"service-strip","aria-label":"服务状态"},Eo=["disabled"],To={key:0,class:"hero"},Oo={class:"hero-copy"},Ao={class:"protocol-grid","aria-label":"协议能力"},Po={class:"login-card","aria-labelledby":"login-title"},Io=["disabled"],Mo={key:1,class:"console-view"},Ro={class:"console-heading"},Fo=["disabled"],Do={key:0,class:"login-card credential-card","aria-labelledby":"credential-title"},No=["disabled"],Lo={class:"metric-grid"},$o={class:"content-grid"},Ho={class:"surface"},Vo={class:"surface-heading"},jo=["disabled"],Uo=["disabled"],Bo={class:"vault-list"},Ko={key:0,class:"empty-state"},Wo={class:"item-copy"},qo=["value"],ko={class:"item-side"},Jo={class:"surface"},Go={class:"device-list"},zo={class:"device-symbol"},Yo={class:"item-copy"},Xo=["disabled","onClick"],Zo=qi({__name:"App",setup(e){const t=new wo,s=hs({health:!1,ready:!1,protocol:1,maxObjectSize:100*1024*1024}),n=se(!0),r=se(!1),i=se(!1),l=se(""),o=se(""),c=se("OpenNexus Web Console"),g=se(""),a=se(!1),m=se(""),C=se(""),T=se(""),F=se(""),N=se(""),z=se([]),$=se([]),V=se(""),G=se(!1);let P,Z;const Te=Qt(()=>z.value.reduce((L,p)=>L+Number(p.used||0),0)),xe=Qt(()=>z.value.reduce((L,p)=>L+Number(p.quota||0),0)),Oe=Qt(()=>$.value.filter(L=>!L.revoked).length);function Ae(L){const p=["B","KiB","MiB","GiB","TiB"];let I=Number(L)||0,fe=0;for(;I>=1024&&fe<p.length-1;)I/=1024,fe+=1;return`${I>=10||fe===0?I.toFixed(0):I.toFixed(1)} ${p[fe]}`}function He(L){return`${L.slice(0,12)}…`}function rt(L){return Math.min(100,L.quota?L.used/L.quota*100:0)}function dt(L,p){return L.trim().slice(0,1).toUpperCase()||p}function ee(L,p=!1){V.value=L,G.value=p,window.clearTimeout(P),P=window.setTimeout(()=>{V.value=""},4800)}async function it(){n.value=!0;try{Object.assign(s,await t.status())}finally{n.value=!1}}async function Ge(){const[L,p]=await Promise.all([t.vaults(),t.devices()]);z.value=L.items,$.value=p.items}async function te(){if(!i.value){i.value=!0;try{await Ge(),ee("账户数据已刷新")}catch(L){t.signedIn||B(),ee(L instanceof Error?L.message:"REFRESH_FAILED",!0)}finally{i.value=!1}}}function B(){t.clear(),r.value=!1,o.value="",z.value=[],$.value=[],a.value=!1,m.value="",T.value="",F.value=""}async function W(){if(i.value)return;i.value=!0;const L=o.value,p=l.value.trim(),I=c.value.trim();o.value="";try{a.value=await t.login(p,L,I),g.value=`${p} · ${I}`,C.value=p,r.value=!0,a.value||await Ge(),ee(a.value?"请立即固定账户与密码":"设备会话已建立")}catch(fe){B(),ee(fe instanceof Error?fe.message:"LOGIN_FAILED",!0)}finally{i.value=!1}}async function Ve(){if(i.value)return;if(T.value!==F.value){ee("两次输入的新密码不一致",!0);return}i.value=!0;const L=m.value,p=T.value;m.value="",T.value="",F.value="";try{const I=await t.changeCredentials(L,C.value.trim(),p);a.value=!1,g.value=`${I.username} · ${c.value.trim()}`,await Ge(),ee("账户与密码已固定;以后重启不会再随机更换")}catch(I){ee(I instanceof Error?I.message:"CREDENTIAL_CHANGE_FAILED",!0)}finally{i.value=!1}}async function ht(){const L=N.value.trim();if(!(!L||i.value)){i.value=!0;try{await t.createVault(L),N.value="",await Ge(),ee(`已创建 Vault${L}`)}catch(p){ee(p instanceof Error?p.message:"CREATE_VAULT_FAILED",!0)}finally{i.value=!1}}}async function je(L){if(window.confirm(`撤销设备“${L.name}”?该设备的下一次请求会被拒绝。`)){i.value=!0;try{await t.revokeDevice(L.id),L.id===t.deviceId?(B(),ee("当前设备已撤销")):(await Ge(),ee(`已撤销设备:${L.name}`))}catch(p){ee(p instanceof Error?p.message:"REVOKE_FAILED",!0)}finally{i.value=!1}}}async function we(){if(!i.value){i.value=!0;try{await t.logout()}finally{B(),i.value=!1,ee("会话已退出")}}}return Cr(()=>{it(),Z=window.setInterval(()=>{it()},15e3)}),Er(()=>{window.clearInterval(Z),window.clearTimeout(P),B()}),(L,p)=>(he(),be(me,null,[p[45]||(p[45]=d("div",{class:"ambient ambient-one","aria-hidden":"true"},null,-1)),p[46]||(p[46]=d("div",{class:"ambient ambient-two","aria-hidden":"true"},null,-1)),d("header",So,[p[13]||(p[13]=d("a",{class:"brand",href:"/console","aria-label":"OpenNexus Sync Console"},[d("span",{class:"brand-mark","aria-hidden":"true"},[d("i"),d("i"),d("i")]),d("span",null,[d("strong",null,"OpenNexus"),d("small",null,"Sync Console")])],-1)),d("div",Co,[d("span",{class:ct(["status-chip",{ok:s.health,bad:!n.value&&!s.health}])},[p[8]||(p[8]=d("i",null,null,-1)),p[9]||(p[9]=d("b",null,"服务",-1)),d("em",null,Y(n.value?"检测中":s.health?"在线":"离线"),1)],2),d("span",{class:ct(["status-chip",{ok:s.ready,bad:!n.value&&!s.ready}])},[p[10]||(p[10]=d("i",null,null,-1)),p[11]||(p[11]=d("b",null,"依赖",-1)),d("em",null,Y(n.value?"检测中":s.ready?"就绪":"不可用"),1)],2),d("button",{class:"icon-button",type:"button",disabled:n.value,"aria-label":"刷新服务状态",title:"刷新服务状态",onClick:it},[...p[12]||(p[12]=[d("svg",{viewBox:"0 0 24 24","aria-hidden":"true"},[d("path",{d:"M20 11a8 8 0 1 0-2.3 5.7M20 4v7h-7"})],-1)])],8,Eo)])]),d("main",null,[r.value?(he(),be("section",Mo,[d("div",Ro,[d("div",null,[p[26]||(p[26]=d("div",{class:"eyebrow"},[d("span"),pe(" Connected workspace")],-1)),p[27]||(p[27]=d("h1",null,"同步空间",-1)),d("p",null,Y(g.value),1)]),d("button",{class:"secondary-button",type:"button",disabled:i.value,onClick:we},"退出登录",8,Fo)]),a.value?(he(),be("section",Do,[p[32]||(p[32]=Tn('<div class="card-heading"><span class="lock-mark" aria-hidden="true"><svg viewBox="0 0 24 24"><rect x="5" y="10" width="14" height="11" rx="3"></rect><path d="M8 10V7a4 4 0 0 1 8 0v3"></path></svg></span><div><p>首次登录</p><h2 id="credential-title">固定账户凭据</h2></div></div><p class="surface-intro">当前密码只对本次服务启动有效。修改账户和密码后,凭据将写入数据库并在后续重启中保持不变。</p>',2)),d("form",{onSubmit:Ms(Ve,["prevent"])},[d("label",null,[p[28]||(p[28]=pe("当前随机密码",-1)),ze(d("input",{"onUpdate:modelValue":p[3]||(p[3]=I=>m.value=I),type:"password",autocomplete:"current-password",minlength:"12",maxlength:"256",required:""},null,512),[[Ye,m.value]])]),d("label",null,[p[29]||(p[29]=pe("新账户",-1)),ze(d("input",{"onUpdate:modelValue":p[4]||(p[4]=I=>C.value=I),autocomplete:"username",maxlength:"80",required:""},null,512),[[Ye,C.value]])]),d("label",null,[p[30]||(p[30]=pe("新密码",-1)),ze(d("input",{"onUpdate:modelValue":p[5]||(p[5]=I=>T.value=I),type:"password",autocomplete:"new-password",minlength:"12",maxlength:"256",required:""},null,512),[[Ye,T.value]])]),d("label",null,[p[31]||(p[31]=pe("确认新密码",-1)),ze(d("input",{"onUpdate:modelValue":p[6]||(p[6]=I=>F.value=I),type:"password",autocomplete:"new-password",minlength:"12",maxlength:"256",required:""},null,512),[[Ye,F.value]])]),d("button",{class:"primary-button",type:"submit",disabled:i.value||!m.value||!T.value||!F.value},Y(i.value?"正在保存…":"保存并固定凭据"),9,No)],32)])):(he(),be(me,{key:1},[d("div",Lo,[d("article",null,[p[33]||(p[33]=d("span",null,"远端 Vault",-1)),d("strong",null,Y(z.value.length),1),p[34]||(p[34]=d("small",null,"当前账户可访问",-1))]),d("article",null,[p[35]||(p[35]=d("span",null,"已使用空间",-1)),d("strong",null,Y(Ae(Te.value)),1),d("small",null,"总配额 "+Y(Ae(xe.value)),1)]),d("article",null,[p[36]||(p[36]=d("span",null,"设备",-1)),d("strong",null,Y($.value.length),1),d("small",null,Y(Oe.value)+" 台可访问",1)]),d("article",null,[p[37]||(p[37]=d("span",null,"协议",-1)),d("strong",null,"v"+Y(s.protocol),1),p[38]||(p[38]=d("small",null,"历史长期保留",-1))])]),d("div",$o,[d("section",Ho,[d("div",Vo,[p[40]||(p[40]=d("div",null,[d("p",null,"Vaults"),d("h2",null,"远端知识库")],-1)),d("button",{class:"icon-button",type:"button",disabled:i.value,"aria-label":"刷新账户数据",title:"刷新账户数据",onClick:te},[...p[39]||(p[39]=[d("svg",{viewBox:"0 0 24 24","aria-hidden":"true"},[d("path",{d:"M20 11a8 8 0 1 0-2.3 5.7M20 4v7h-7"})],-1)])],8,jo)]),d("form",{class:"create-form",onSubmit:Ms(ht,["prevent"])},[p[41]||(p[41]=d("label",null,"创建新 Vault",-1)),d("div",null,[ze(d("input",{"onUpdate:modelValue":p[7]||(p[7]=I=>N.value=I),maxlength:"120",required:"",placeholder:"例如:产品知识库"},null,512),[[Ye,N.value]]),d("button",{type:"submit",disabled:i.value||!N.value.trim()},"创建",8,Uo)])],32),d("div",Bo,[z.value.length?Gt("",!0):(he(),be("div",Ko,"还没有远端 Vault")),(he(!0),be(me,null,mn(z.value,I=>(he(),be("article",{key:I.id,class:"vault-item"},[p[42]||(p[42]=d("div",{class:"vault-symbol"},"N",-1)),d("div",Wo,[d("strong",null,Y(I.name),1),d("small",null,Y(He(I.id))+" · revision "+Y(I.sequence),1),d("progress",{value:rt(I),max:"100"},null,8,qo)]),d("div",ko,[d("strong",null,Y(Ae(I.used)),1),d("small",null,"of "+Y(Ae(I.quota)),1)])]))),128))])]),d("section",Jo,[p[43]||(p[43]=d("div",{class:"surface-heading"},[d("div",null,[d("p",null,"Devices"),d("h2",null,"设备会话")]),d("span",{class:"secure-badge"},"逐次鉴权")],-1)),p[44]||(p[44]=d("p",{class:"surface-intro"},"撤销会让该设备的下一次请求立即失败。Vault 内容和本地文件不会因此删除。",-1)),d("div",Go,[(he(!0),be(me,null,mn($.value,I=>(he(),be("article",{key:I.id,class:ct(["device-item",{revoked:I.revoked}])},[d("div",zo,Y(dt(I.name,"D")),1),d("div",Yo,[d("strong",null,Y(I.name),1),d("small",null,[pe(Y(I.revoked?"已撤销":"可访问"),1),I.id===pr(t).deviceId?(he(),be(me,{key:0},[pe(" · 当前设备")],64)):Gt("",!0)])]),I.revoked?Gt("",!0):(he(),be("button",{key:0,class:"danger-button",type:"button",disabled:i.value,onClick:fe=>je(I)},"撤销",8,Xo))],2))),128))])])])],64))])):(he(),be("section",To,[d("div",Oo,[p[17]||(p[17]=d("div",{class:"eyebrow"},[d("span"),pe(" Self-hosted workspace sync")],-1)),p[18]||(p[18]=d("h1",null,[pe("让知识在设备之间"),d("br"),d("em",null,"安静地抵达。")],-1)),p[19]||(p[19]=d("p",null,"OpenNexus Sync 为每个 Vault 保留完整修订历史、附件完整性校验和设备级撤销。此控制台只连接当前服务器,不在浏览器持久保存密码或令牌。",-1)),d("div",Ao,[d("article",null,[d("strong",null,"v"+Y(s.protocol),1),p[14]||(p[14]=d("span",null,"同步协议",-1))]),d("article",null,[d("strong",null,Y(Ae(s.maxObjectSize)),1),p[15]||(p[15]=d("span",null,"单对象上限",-1))]),p[16]||(p[16]=d("article",null,[d("strong",null,"SHA-256"),d("span",null,"内容完整性")],-1))])]),d("section",Po,[p[24]||(p[24]=Tn('<div class="card-glow" aria-hidden="true"></div><div class="card-heading"><span class="lock-mark" aria-hidden="true"><svg viewBox="0 0 24 24"><rect x="5" y="10" width="14" height="11" rx="3"></rect><path d="M8 10V7a4 4 0 0 1 8 0v3"></path></svg></span><div><p>设备会话</p><h2 id="login-title">登录 Sync Server</h2></div></div>',2)),d("form",{onSubmit:Ms(W,["prevent"])},[d("label",null,[p[20]||(p[20]=pe("账户",-1)),ze(d("input",{"onUpdate:modelValue":p[0]||(p[0]=I=>l.value=I),autocomplete:"username",maxlength:"80",required:"",placeholder:"输入 Sync 账户"},null,512),[[Ye,l.value]])]),d("label",null,[p[21]||(p[21]=pe("密码",-1)),ze(d("input",{"onUpdate:modelValue":p[1]||(p[1]=I=>o.value=I),type:"password",autocomplete:"current-password",minlength:"12",maxlength:"256",required:"",placeholder:"至少 12 个字符"},null,512),[[Ye,o.value]])]),d("label",null,[p[22]||(p[22]=pe("设备名称",-1)),ze(d("input",{"onUpdate:modelValue":p[2]||(p[2]=I=>c.value=I),autocomplete:"off",maxlength:"120",required:""},null,512),[[Ye,c.value]])]),d("button",{class:"primary-button",type:"submit",disabled:i.value||!o.value},[d("span",null,Y(i.value?"正在建立会话…":"建立安全会话"),1),p[23]||(p[23]=d("svg",{viewBox:"0 0 24 24","aria-hidden":"true"},[d("path",{d:"m9 18 6-6-6-6"})],-1))],8,Io)],32),p[25]||(p[25]=d("p",{class:"privacy-note"},[d("span",null,"●"),pe("密码在发出请求前即从输入框清除;会话令牌只保存在当前页面内存。")],-1))])]))]),p[47]||(p[47]=d("footer",null,[d("span",null,"OpenNexus Sync v1"),d("span",null,"Transport encryption · Device revocation · Immutable history")],-1)),V.value?(he(),be("div",{key:0,class:ct(["toast",{error:G.value}]),role:"status","aria-live":"polite"},Y(V.value),3)):Gt("",!0)],64))}});yo(Zo).mount("#app");