@astralyn/sash 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -0
- package/README.md +17 -5
- package/THIRD_PARTY_NOTICES.md +9 -0
- package/dist/api.js +14 -45
- package/dist/app-state.js +99 -0
- package/dist/autostart/command.js +24 -0
- package/dist/autostart/context.js +43 -0
- package/dist/autostart/files.js +60 -0
- package/dist/autostart/installation.js +48 -0
- package/dist/autostart/start.js +47 -0
- package/dist/autostart/windows-registry.js +88 -0
- package/dist/autostart/windows.js +59 -0
- package/dist/autostart-contract.js +31 -0
- package/dist/autostart-entry.js +10 -0
- package/dist/autostart.js +69 -0
- package/dist/cli.js +11 -11
- package/dist/commands/auto.js +15 -0
- package/dist/commands/lifecycle.js +5 -15
- package/dist/commands/logs.js +11 -4
- package/dist/commands/shared.js +2 -4
- package/dist/commands/status.js +5 -1
- package/dist/commands/update.js +7 -3
- package/dist/commands/web.js +14 -50
- package/dist/contracts.js +168 -348
- package/dist/core-config-validation.js +22 -38
- package/dist/core-update.js +126 -762
- package/dist/core.js +20 -46
- package/dist/daemon/app.js +129 -117
- package/dist/daemon/context.js +13 -7
- package/dist/daemon/entry.js +21 -38
- package/dist/daemon/errors.js +3 -0
- package/dist/daemon/handlers/autostart.js +18 -0
- package/dist/daemon/handlers/core.js +32 -9
- package/dist/daemon/handlers/daemon.js +17 -6
- package/dist/daemon/handlers/profiles.js +12 -2
- package/dist/daemon/handlers/settings.js +9 -36
- package/dist/daemon/router.js +26 -21
- package/dist/daemon/scheduler.js +3 -1
- package/dist/daemon/server.js +5 -2
- package/dist/daemon-client.js +13 -3
- package/dist/daemon-http.js +6 -0
- package/dist/daemon-lifecycle.js +19 -196
- package/dist/github.js +7 -2
- package/dist/http.js +7 -5
- package/dist/mihomo-config.js +2 -1
- package/dist/paths.js +5 -7
- package/dist/profile-model.js +87 -0
- package/dist/profile-service.js +250 -587
- package/dist/profiles.js +43 -171
- package/dist/runtime-lifecycle.js +112 -194
- package/dist/runtime-owner.js +37 -76
- package/dist/sash-client.js +40 -19
- package/dist/settings-service.js +29 -224
- package/dist/settings.js +61 -289
- package/dist/status.js +24 -16
- package/dist/supervisor.js +1 -14
- package/dist/sysproxy/common.js +5 -45
- package/dist/sysproxy/factory.js +24 -65
- package/dist/sysproxy/snapshot.js +24 -257
- package/dist/sysproxy.js +1 -4
- package/dist/system-proxy-manager.js +37 -35
- package/dist/ui/assets/{ConnectionsView-CfaOG2JV.js → ConnectionsView-BgXQM6Z4.js} +1 -1
- package/dist/ui/assets/{LogsView-BDiRATXN.js → LogsView-2f542P8z.js} +1 -1
- package/dist/ui/assets/{PaginationFooter-DTytr1iu.js → PaginationFooter-cj1tcZej.js} +1 -1
- package/dist/ui/assets/ProfileEditorDialog-C9M8uKZC.css +1 -0
- package/dist/ui/assets/ProfileEditorDialog-DD4y4GBC.js +14 -0
- package/dist/ui/assets/ProfilesView-BXU2DOA7.css +1 -0
- package/dist/ui/assets/ProfilesView-DNnzYIEY.js +7 -0
- package/dist/ui/assets/{RulesView-CjEyCN1A.js → RulesView-CtKvlckZ.js} +1 -1
- package/dist/ui/assets/SettingsView-BaeKFF_N.js +1 -0
- package/dist/ui/assets/SettingsView-CWjIe05v.css +1 -0
- package/dist/ui/assets/index-CBInDvdJ.js +19 -0
- package/dist/ui/assets/index-mOLy7fkB.css +1 -0
- package/dist/ui/assets/{theme-BwDBMsKO.js → theme-D40MF8cQ.js} +1 -1
- package/dist/ui/index.html +2 -2
- package/docs/architecture-proposal.md +109 -0
- package/docs/autostart.md +101 -0
- package/docs/backend.md +92 -224
- package/docs/frontend.md +60 -106
- package/docs/usage.md +92 -164
- package/package.json +3 -3
- package/dist/commands/upgrade.js +0 -43
- package/dist/core-install-transaction.js +0 -114
- package/dist/core-update-coordination.js +0 -105
- package/dist/core-update-service.js +0 -245
- package/dist/managed-state-transaction.js +0 -375
- package/dist/offline-mutation.js +0 -58
- package/dist/profile-migration.js +0 -101
- package/dist/runtime-recovery.js +0 -31
- package/dist/sysproxy/darwin.js +0 -287
- package/dist/sysproxy/gnome.js +0 -181
- package/dist/sysproxy/legacy.js +0 -58
- package/dist/ui/assets/CodeEditorModal-6m0TJWyF.css +0 -1
- package/dist/ui/assets/CodeEditorModal-D1zn-jRS.js +0 -14
- package/dist/ui/assets/ProfileEditorDialog-CyyP6OF1.js +0 -1
- package/dist/ui/assets/ProfilesView-ByqdFNHN.css +0 -1
- package/dist/ui/assets/ProfilesView-hFa7-O72.js +0 -2
- package/dist/ui/assets/SettingsFileDialog-CjBSyH4K.js +0 -1
- package/dist/ui/assets/SettingsView-D5QvJId6.css +0 -1
- package/dist/ui/assets/SettingsView-DsRntRfn.js +0 -2
- package/dist/ui/assets/index-CxQTf_P9.css +0 -1
- package/dist/ui/assets/index-_mb4OfYp.js +0 -19
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./ConnectionsView-CfaOG2JV.js","./PaginationFooter-DTytr1iu.js","./PaginationFooter-BNkpcNoB.css","./ConnectionsView-DHo6yvU6.css","./LogsView-BDiRATXN.js","./LogsView-BoeE92VF.css","./ProfilesView-hFa7-O72.js","./ProfilesView-ByqdFNHN.css","./RulesView-CjEyCN1A.js","./RulesView-CHyynVqA.css","./SettingsView-DsRntRfn.js","./theme-BwDBMsKO.js","./SettingsView-D5QvJId6.css"])))=>i.map(i=>d[i]);
|
|
2
|
-
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const r of o)if(r.type==="childList")for(const i of r.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const r={};return o.integrity&&(r.integrity=o.integrity),o.referrerPolicy&&(r.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?r.credentials="include":o.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function s(o){if(o.ep)return;o.ep=!0;const r=n(o);fetch(o.href,r)}})();/**
|
|
3
|
-
* @vue/shared v3.5.42
|
|
4
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
5
|
-
* @license MIT
|
|
6
|
-
**/function Jo(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const re={},cn=[],yt=()=>{},wi=()=>!1,Bs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),zs=e=>e.startsWith("onUpdate:"),be=Object.assign,Yo=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},sa=Object.prototype.hasOwnProperty,ce=(e,t)=>sa.call(e,t),j=Array.isArray,Vt=e=>Yn(e)==="[object Map]",en=e=>Yn(e)==="[object Set]",Sr=e=>Yn(e)==="[object Date]",Y=e=>typeof e=="function",ye=e=>typeof e=="string",ot=e=>typeof e=="symbol",ue=e=>e!==null&&typeof e=="object",Ci=e=>(ue(e)||Y(e))&&Y(e.then)&&Y(e.catch),bi=Object.prototype.toString,Yn=e=>bi.call(e),oa=e=>Yn(e).slice(8,-1),_i=e=>Yn(e)==="[object Object]",Xo=e=>ye(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Dn=Jo(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Us=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},ra=/-\w/g,ke=Us(e=>e.replace(ra,t=>t.slice(1).toUpperCase())),ia=/\B([A-Z])/g,Mt=Us(e=>e.replace(ia,"-$1").toLowerCase()),Gs=Us(e=>e.charAt(0).toUpperCase()+e.slice(1)),co=Us(e=>e?`on${Gs(e)}`:""),Oe=(e,t)=>!Object.is(e,t),vs=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},xi=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},js=e=>{const t=parseFloat(e);return isNaN(t)?e:t},la=e=>{const t=ye(e)?Number(e):NaN;return isNaN(t)?e:t};let Tr;const Zs=()=>Tr||(Tr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ks(e){if(j(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],o=ye(s)?fa(s):Ks(s);if(o)for(const r in o)t[r]=o[r]}return t}else if(ye(e)||ue(e))return e}const aa=/;(?![^(]*\))/g,ca=/:([^]+)/,ua=/\/\*[^]*?\*\//g;function fa(e){const t={};return e.replace(ua,"").split(aa).forEach(n=>{if(n){const s=n.split(ca);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Ae(e){let t="";if(ye(e))t=e;else if(j(e))for(let n=0;n<e.length;n++){const s=Ae(e[n]);s&&(t+=s+" ")}else if(ue(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const da="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",pa=Jo(da);function Si(e){return!!e||e===""}function ha(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=It(e[s],t[s]);return n}function Lr(e,t){if(e.size!==t.size)return!1;const n=Array.from(t),s=new Uint8Array(n.length);for(const o of e){let r=-1;for(let i=0;i<n.length;i++)if(!s[i]&&It(o,n[i])){r=i;break}if(r<0)return!1;s[r]=1}return!0}function It(e,t){if(e===t)return!0;let n=Sr(e),s=Sr(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=ot(e),s=ot(t),n||s)return e===t;if(n=j(e),s=j(t),n||s)return n&&s?ha(e,t):!1;if(n=ue(e),s=ue(t),n||s){if(!n||!s)return!1;if(n=Vt(e),s=Vt(t),n||s||(n=en(e),s=en(t),n||s))return n&&s?Lr(e,t):!1;const o=Object.keys(e).length,r=Object.keys(t).length;if(o!==r)return!1;for(const i in e){const l=e.hasOwnProperty(i),a=t.hasOwnProperty(i);if(l&&!a||!l&&a||!It(e[i],t[i]))return!1}}return String(e)===String(t)}function ma(e,t){return e.findIndex(n=>It(n,t))}const Ti=e=>!!(e&&e.__v_isRef===!0),U=e=>ye(e)?e:e==null?"":j(e)||ue(e)&&(e.toString===bi||!Y(e.toString))?Ti(e)?U(e.value):JSON.stringify(e,Li,2):String(e),Li=(e,t)=>Ti(t)?Li(e,t.value):Vt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,o],r)=>(n[uo(s,r)+" =>"]=o,n),{})}:en(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>uo(n))}:ot(t)?uo(t):ue(t)&&!j(t)&&!_i(t)?String(t):t,uo=(e,t="")=>{var n;return ot(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
|
7
|
-
* @vue/reactivity v3.5.42
|
|
8
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
9
|
-
* @license MIT
|
|
10
|
-
**/let Ee;class ga{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&&Ee&&(Ee.active?(this.parent=Ee,this.index=(Ee.scopes||(Ee.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;t<n;t++)s[t].pause()}for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes){const o=this.scopes.slice();for(t=0,n=o.length;t<n;t++)o[t].resume()}const s=this.effects.slice();for(t=0,n=s.length;t<n;t++)s[t].resume()}}run(t){if(this._active){const n=Ee;try{return Ee=this,t()}finally{Ee=n}}}on(){++this._on===1&&(this.prevScope=Ee,Ee=this)}off(){if(this._on>0&&--this._on===0){if(Ee===this)Ee=this.prevScope;else{let t=Ee;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;n<s;n++)this.effects[n].stop();for(this.effects.length=0,n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){const o=this.scopes.slice();for(n=0,s=o.length;n<s;n++)o[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0}}}function ya(){return Ee}let ge;const fo=new WeakSet;class Pi{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,Ee&&(Ee.active?Ee.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,fo.has(this)&&(fo.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Mi(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Pr(this),$i(this);const t=ge,n=st;ge=this,st=!0;try{return this.fn()}finally{Ei(this),ge=t,st=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)tr(t);this.deps=this.depsTail=void 0,Pr(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?fo.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ao(this)&&this.run()}get dirty(){return Ao(this)}}let Ai=0,Vn,Nn;function Mi(e,t=!1){if(e.flags|=8,t){e.next=Nn,Nn=e;return}e.next=Vn,Vn=e}function Qo(){Ai++}function er(){if(--Ai>0)return;if(Nn){let t=Nn;for(Nn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Vn;){let t=Vn;for(Vn=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 $i(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ei(e){let t,n=e.depsTail,s=n;for(;s;){const o=s.prevDep;s.version===-1?(s===n&&(n=o),tr(s),va(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=o}e.deps=t,e.depsTail=n}function Ao(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Oi(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Oi(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Gn)||(e.globalVersion=Gn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ao(e))))return;e.flags|=2;const t=e.dep,n=ge,s=st;ge=e,st=!0;try{$i(e);const o=e.fn(e._value);(t.version===0||Oe(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{ge=n,st=s,Ei(e),e.flags&=-3}}function tr(e,t=!1){const{dep:n,prevSub:s,nextSub:o}=e;if(s&&(s.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let r=n.computed.deps;r;r=r.nextDep)tr(r,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function va(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let st=!0;const Ri=[];function Lt(){Ri.push(st),st=!1}function Pt(){const e=Ri.pop();st=e===void 0?!0:e}function Pr(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=ge;ge=void 0;try{t()}finally{ge=n}}}let Gn=0;class wa{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 qs{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(!ge||!st||ge===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==ge)n=this.activeLink=new wa(ge,this),ge.deps?(n.prevDep=ge.depsTail,ge.depsTail.nextDep=n,ge.depsTail=n):ge.deps=ge.depsTail=n,Hi(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=ge.depsTail,n.nextDep=void 0,ge.depsTail.nextDep=n,ge.depsTail=n,ge.deps===n&&(ge.deps=s)}return n}trigger(t){this.version++,Gn++,this.notify(t)}notify(t){Qo();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{er()}}}function Hi(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)Hi(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Mo=new WeakMap,Xt=Symbol(""),$o=Symbol(""),jn=Symbol("");function Ne(e,t,n){if(st&&ge){let s=Mo.get(e);s||Mo.set(e,s=new Map);let o=s.get(n);o||(s.set(n,o=new qs),o.map=s,o.key=n),o.track()}}function xt(e,t,n,s,o,r){const i=Mo.get(e);if(!i){Gn++;return}const l=a=>{a&&a.trigger()};if(Qo(),t==="clear")i.forEach(l);else{const a=j(e),u=a&&Xo(n);if(a&&n==="length"){const c=Number(s);i.forEach((d,m)=>{(m==="length"||m===jn||!ot(m)&&m>=c)&&l(d)})}else switch((n!==void 0||i.has(void 0))&&l(i.get(n)),u&&l(i.get(jn)),t){case"add":a?u&&l(i.get("length")):(l(i.get(Xt)),Vt(e)&&l(i.get($o)));break;case"delete":a||(l(i.get(Xt)),Vt(e)&&l(i.get($o)));break;case"set":Vt(e)&&l(i.get(Xt));break}}er()}function on(e){const t=oe(e);return t===e?t:(Ne(t,"iterate",jn),Xe(e)?t:t.map(rt))}function Ws(e){return Ne(e=oe(e),"iterate",jn),e}function ht(e,t){return At(e)?pn(Qt(e)?rt(t):t):rt(t)}const Ca={__proto__:null,[Symbol.iterator](){return po(this,Symbol.iterator,e=>ht(this,e))},concat(...e){return on(this).concat(...e.map(t=>j(t)?on(t):t))},entries(){return po(this,"entries",e=>(e[1]=ht(this,e[1]),e))},every(e,t){return wt(this,"every",e,t,void 0,arguments)},filter(e,t){return wt(this,"filter",e,t,n=>n.map(s=>ht(this,s)),arguments)},find(e,t){return wt(this,"find",e,t,n=>ht(this,n),arguments)},findIndex(e,t){return wt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return wt(this,"findLast",e,t,n=>ht(this,n),arguments)},findLastIndex(e,t){return wt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return wt(this,"forEach",e,t,void 0,arguments)},includes(...e){return ho(this,"includes",e)},indexOf(...e){return ho(this,"indexOf",e)},join(e){return on(this).join(e)},lastIndexOf(...e){return ho(this,"lastIndexOf",e)},map(e,t){return wt(this,"map",e,t,void 0,arguments)},pop(){return Sn(this,"pop")},push(...e){return Sn(this,"push",e)},reduce(e,...t){return Ar(this,"reduce",e,t)},reduceRight(e,...t){return Ar(this,"reduceRight",e,t)},shift(){return Sn(this,"shift")},some(e,t){return wt(this,"some",e,t,void 0,arguments)},splice(...e){return Sn(this,"splice",e)},toReversed(){return on(this).toReversed()},toSorted(e){return on(this).toSorted(e)},toSpliced(...e){return on(this).toSpliced(...e)},unshift(...e){return Sn(this,"unshift",e)},values(){return po(this,"values",e=>ht(this,e))}};function po(e,t,n){const s=Ws(e),o=s[t]();return s!==e&&!Xe(e)&&(o._next=o.next,o.next=()=>{const r=o._next();return r.done||(r.value=n(r.value)),r}),o}const ba=Array.prototype;function wt(e,t,n,s,o,r){const i=Ws(e),l=i!==e&&!Xe(e),a=i[t];if(a!==ba[t]){const d=a.apply(e,r);return l?rt(d):d}let u=n;i!==e&&(l?u=function(d,m){return n.call(this,ht(e,d),m,e)}:n.length>2&&(u=function(d,m){return n.call(this,d,m,e)}));const c=a.call(i,u,s);return l&&o?o(c):c}function Ar(e,t,n,s){const o=Ws(e),r=o!==e&&!Xe(e);let i=n,l=!1;o!==e&&(r?(l=s.length===0,i=function(u,c,d){return l&&(l=!1,u=ht(e,u)),n.call(this,u,ht(e,c),d,e)}):n.length>3&&(i=function(u,c,d){return n.call(this,u,c,d,e)}));const a=o[t](i,...s);return l?ht(e,a):a}function ho(e,t,n){const s=oe(e);Ne(s,"iterate",jn);const o=s[t](...n);return(o===-1||o===!1)&&or(n[0])?(n[0]=oe(n[0]),s[t](...n)):o}function Sn(e,t,n=[]){Lt(),Qo();const s=oe(e)[t].apply(e,n);return er(),Pt(),s}const _a=Jo("__proto__,__v_isRef,__isVue"),Di=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ot));function xa(e){ot(e)||(e=String(e));const t=oe(this);return Ne(t,"has",e),t.hasOwnProperty(e)}class Vi{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const o=this._isReadonly,r=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return r;if(n==="__v_raw")return s===(o?r?Ra:Fi:r?ki:Ii).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const i=j(t);if(!o){let a;if(i&&(a=Ca[n]))return a;if(n==="hasOwnProperty")return xa}const l=Reflect.get(t,n,Fe(t)?t:s);if((ot(n)?Di.has(n):_a(n))||(o||Ne(t,"get",n),r))return l;if(Fe(l)){const a=i&&Xo(n)?l:l.value;return o&&ue(a)?Oo(a):a}return ue(l)?o?Oo(l):Js(l):l}}class Ni extends Vi{constructor(t=!1){super(!1,t)}set(t,n,s,o){let r=t[n];const i=j(t)&&Xo(n);if(!this._isShallow){const u=At(r);if(!Xe(s)&&!At(s)&&(r=oe(r),s=oe(s)),!i&&Fe(r)&&!Fe(s))return u||(r.value=s),!0}const l=i?Number(n)<t.length:ce(t,n),a=Reflect.set(t,n,s,Fe(t)?t:o);return t===oe(o)&&a&&(l?Oe(s,r)&&xt(t,"set",n,s):xt(t,"add",n,s)),a}deleteProperty(t,n){const s=ce(t,n);t[n];const o=Reflect.deleteProperty(t,n);return o&&s&&xt(t,"delete",n,void 0),o}has(t,n){const s=Reflect.has(t,n);return(!ot(n)||!Di.has(n))&&Ne(t,"has",n),s}ownKeys(t){return Ne(t,"iterate",j(t)?"length":Xt),Reflect.ownKeys(t)}}class Sa extends Vi{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Ta=new Ni,La=new Sa,Pa=new Ni(!0);const Eo=e=>e,rs=e=>Reflect.getPrototypeOf(e);function Aa(e,t,n){return function(...s){const o=this.__v_raw,r=oe(o),i=Vt(r),l=e==="entries"||e===Symbol.iterator&&i,a=e==="keys"&&i,u=o[e](...s),c=n?Eo:t?pn:rt;return!t&&Ne(r,"iterate",a?$o:Xt),be(Object.create(u),{next(){const{value:d,done:m}=u.next();return m?{value:d,done:m}:{value:l?[c(d[0]),c(d[1])]:c(d),done:m}}})}}function is(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Ma(e,t){const n={get(o){const r=this.__v_raw,i=oe(r),l=oe(o);e||(Oe(o,l)&&Ne(i,"get",o),Ne(i,"get",l));const{has:a}=rs(i),u=t?Eo:e?pn:rt;if(a.call(i,o))return u(r.get(o));if(a.call(i,l))return u(r.get(l));r!==i&&r.get(o)},get size(){const o=this.__v_raw;return!e&&Ne(oe(o),"iterate",Xt),o.size},has(o){const r=this.__v_raw,i=oe(r),l=oe(o);return e||(Oe(o,l)&&Ne(i,"has",o),Ne(i,"has",l)),o===l?r.has(o):r.has(o)||r.has(l)},forEach(o,r){const i=this,l=i.__v_raw,a=oe(l),u=t?Eo:e?pn:rt;return!e&&Ne(a,"iterate",Xt),l.forEach((c,d)=>o.call(r,u(c),u(d),i))}};return be(n,e?{add:is("add"),set:is("set"),delete:is("delete"),clear:is("clear")}:{add(o){const r=oe(this),i=rs(r),l=oe(o),a=!t&&!Xe(o)&&!At(o)?l:o;return i.has.call(r,a)||Oe(o,a)&&i.has.call(r,o)||Oe(l,a)&&i.has.call(r,l)||(r.add(a),xt(r,"add",a,a)),this},set(o,r){!t&&!Xe(r)&&!At(r)&&(r=oe(r));const i=oe(this),{has:l,get:a}=rs(i);let u=l.call(i,o);u||(o=oe(o),u=l.call(i,o));const c=a.call(i,o);return i.set(o,r),u?Oe(r,c)&&xt(i,"set",o,r):xt(i,"add",o,r),this},delete(o){const r=oe(this),{has:i,get:l}=rs(r);let a=i.call(r,o);a||(o=oe(o),a=i.call(r,o)),l&&l.call(r,o);const u=r.delete(o);return a&&xt(r,"delete",o,void 0),u},clear(){const o=oe(this),r=o.size!==0,i=o.clear();return r&&xt(o,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=Aa(o,e,t)}),n}function nr(e,t){const n=Ma(e,t);return(s,o,r)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?s:Reflect.get(ce(n,o)&&o in s?n:s,o,r)}const $a={get:nr(!1,!1)},Ea={get:nr(!1,!0)},Oa={get:nr(!0,!1)};const Ii=new WeakMap,ki=new WeakMap,Fi=new WeakMap,Ra=new WeakMap;function Ha(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Js(e){return At(e)?e:sr(e,!1,Ta,$a,Ii)}function Bi(e){return sr(e,!1,Pa,Ea,ki)}function Oo(e){return sr(e,!0,La,Oa,Fi)}function sr(e,t,n,s,o){if(!ue(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const r=o.get(e);if(r)return r;const i=Ha(oa(e));if(i===0)return e;const l=new Proxy(e,i===2?s:n);return o.set(e,l),l}function Qt(e){return At(e)?Qt(e.__v_raw):!!(e&&e.__v_isReactive)}function At(e){return!!(e&&e.__v_isReadonly)}function Xe(e){return!!(e&&e.__v_isShallow)}function or(e){return e?!!e.__v_raw:!1}function oe(e){const t=e&&e.__v_raw;return t?oe(t):e}function Da(e){return!ce(e,"__v_skip")&&Object.isExtensible(e)&&xi(e,"__v_skip",!0),e}const rt=e=>ue(e)?Js(e):e,pn=e=>ue(e)?Oo(e):e;function Fe(e){return e?e.__v_isRef===!0:!1}function De(e){return Va(e,!1)}function Va(e,t){return Fe(e)?e:new Na(e,t)}class Na{constructor(t,n){this.dep=new qs,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:oe(t),this._value=n?t:rt(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||Xe(t)||At(t);t=s?t:oe(t),Oe(t,n)&&(this._rawValue=t,this._value=s?t:rt(t),this.dep.trigger())}}function g(e){return Fe(e)?e.value:e}const Ia={get:(e,t,n)=>t==="__v_raw"?e:g(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const o=e[t];return Fe(o)&&!Fe(n)?(o.value=n,!0):Reflect.set(e,t,n,s)}};function zi(e){return Qt(e)?e:new Proxy(e,Ia)}class ka{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new qs,{get:s,set:o}=t(n.track.bind(n),n.trigger.bind(n));this._get=s,this._set=o}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Fa(e){return new ka(e)}class Ba{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new qs(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Gn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&ge!==this)return Mi(this,!0),!0}get value(){const t=this.dep.track();return Oi(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function za(e,t,n=!1){let s,o;return Y(e)?s=e:(s=e.get,o=e.set),new Ba(s,o,n)}const ls={},Ts=new WeakMap;let Zt;function Ua(e,t=!1,n=Zt){if(n){let s=Ts.get(n);s||Ts.set(n,s=[]),s.push(e)}}function Ga(e,t,n=re){const{immediate:s,deep:o,once:r,scheduler:i,augmentJob:l,call:a}=n,u=E=>o?E:Xe(E)||o===!1||o===0?St(E,1):St(E);let c,d,m,y,b=!1,w=!1;if(Fe(e)?(d=()=>e.value,b=Xe(e)):Qt(e)?(d=()=>u(e),b=!0):j(e)?(w=!0,b=e.some(E=>Qt(E)||Xe(E)),d=()=>e.map(E=>{if(Fe(E))return E.value;if(Qt(E))return u(E);if(Y(E))return a?a(E,2):E()})):Y(e)?t?d=a?()=>a(e,2):e:d=()=>{if(m){Lt();try{m()}finally{Pt()}}const E=Zt;Zt=c;try{return a?a(e,3,[y]):e(y)}finally{Zt=E}}:d=yt,t&&o){const E=d,R=o===!0?1/0:o;d=()=>St(E(),R)}const M=ya(),S=()=>{c.stop(),M&&M.active&&Yo(M.effects,c)};if(r&&t){const E=t;t=(...R)=>{const V=E(...R);return S(),V}}let _=w?new Array(e.length).fill(ls):ls;const F=E=>{if(!(!(c.flags&1)||!c.dirty&&!E))if(t){const R=c.run();if(E||o||b||(w?R.some((V,$)=>Oe(V,_[$])):Oe(R,_))){m&&m();const V=Zt;Zt=c;try{const $=[R,_===ls?void 0:w&&_[0]===ls?[]:_,y];_=R,a?a(t,3,$):t(...$)}finally{Zt=V}}}else c.run()};return l&&l(F),c=new Pi(d),c.scheduler=i?()=>i(F,!1):F,y=E=>Ua(E,!1,c),m=c.onStop=()=>{const E=Ts.get(c);if(E){if(a)a(E,4);else for(const R of E)R();Ts.delete(c)}},t?s?F(!0):_=c.run():i?i(F.bind(null,!0),!0):c.run(),S.pause=c.pause.bind(c),S.resume=c.resume.bind(c),S.stop=S,S}function St(e,t=1/0,n){if(t<=0||!ue(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Fe(e))St(e.value,t,n);else if(j(e))for(let s=0;s<e.length;s++)St(e[s],t,n);else if(en(e)||Vt(e))e.forEach(s=>{St(s,t,n)});else if(_i(e)){for(const s in e)St(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&St(e[s],t,n)}return e}/**
|
|
11
|
-
* @vue/runtime-core v3.5.42
|
|
12
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
13
|
-
* @license MIT
|
|
14
|
-
**/function Xn(e,t,n,s){try{return s?e(...s):e()}catch(o){Qn(o,t,n)}}function Qe(e,t,n,s){if(Y(e)){const o=Xn(e,t,n,s);return o&&Ci(o)&&o.catch(r=>{Qn(r,t,n)}),o}if(j(e)){const o=[];for(let r=0;r<e.length;r++)o.push(Qe(e[r],t,n,s));return o}}function Qn(e,t,n,s=!0){const o=t?t.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||re;if(t){let l=t.parent;const a=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;l;){const c=l.ec;if(c){for(let d=0;d<c.length;d++)if(c[d](e,a,u)===!1)return}l=l.parent}if(r){Lt(),Xn(r,null,10,[e,a,u]),Pt();return}}ja(e,n,o,s,i)}function ja(e,t,n,s=!0,o=!1){if(o)throw e;console.error(e)}const Ge=[];let pt=-1;const un=[];let Ht=null,rn=0;const Ui=Promise.resolve();let Ls=null;function Ps(e){const t=Ls||Ui;return e?t.then(this?e.bind(this):e):t}function Za(e){let t=pt+1,n=Ge.length;for(;t<n;){const s=t+n>>>1,o=Ge[s],r=Zn(o);r<e||r===e&&o.flags&2?t=s+1:n=s}return t}function rr(e){if(!(e.flags&1)){const t=Zn(e),n=Ge[Ge.length-1];!n||!(e.flags&2)&&t>=Zn(n)?Ge.push(e):Ge.splice(Za(t),0,e),e.flags|=1,Gi()}}function Gi(){Ls||(Ls=Ui.then(Zi))}function Ka(e){if(!j(e))Ht&&e.id===-1?Ht.splice(rn+1,0,e):e.flags&1||(un.push(e),e.flags|=1);else for(let t=0;t<e.length;t++)un.push(e[t]);Gi()}function Mr(e,t,n=pt+1){for(;n<Ge.length;n++){const s=Ge[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;Ge.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function ji(e){if(un.length){const t=[...new Set(un)].sort((n,s)=>Zn(n)-Zn(s));if(un.length=0,Ht){for(let n=0;n<t.length;n++)Ht.push(t[n]);return}for(Ht=t,rn=0;rn<Ht.length;rn++){const n=Ht[rn];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Ht=null,rn=0}}const Zn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Zi(e){try{for(pt=0;pt<Ge.length;pt++){const t=Ge[pt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Xn(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;pt<Ge.length;pt++){const t=Ge[pt];t&&(t.flags&=-2)}pt=-1,Ge.length=0,ji(),Ls=null,(Ge.length||un.length)&&Zi()}}let He=null,Ki=null;function As(e){const t=He;return He=e,Ki=e&&e.type.__scopeId||null,t}function vn(e,t=He,n){if(!t||e._n)return e;const s=(...o)=>{s._d&&Rs(-1);const r=As(t),i=Tt.length;let l;try{l=e(...o)}finally{for(let a=Tt.length;a>i;a--)dr();As(r),s._d&&Rs(1)}return l};return s._n=!0,s._c=!0,s._d=!0,s}function qa(e,t){if(He===null)return e;const n=no(He),s=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[r,i,l,a=re]=t[o];r&&(Y(r)&&(r={mounted:r,updated:r}),r.deep&&St(i),s.push({dir:r,instance:n,value:i,oldValue:void 0,arg:l,modifiers:a}))}return e}function Ut(e,t,n,s){const o=e.dirs,r=t&&t.dirs;for(let i=0;i<o.length;i++){const l=o[i];r&&(l.oldValue=r[i].value);let a=l.dir[s];a&&(Lt(),Qe(a,n,8,[e.el,l,e,t]),Pt())}}function Wa(e,t){if(Re){let n=Re.provides;const s=Re.parent&&Re.parent.provides;s===n&&(n=Re.provides=Object.create(s)),n[e]=t}}function ws(e,t,n=!1){const s=ts();if(s||dn){let o=dn?dn._context.provides:s?s.parent==null||s.ce?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(o&&e in o)return o[e];if(arguments.length>1)return n&&Y(t)?t.call(s&&s.proxy):t}}const Ja=Symbol.for("v-scx"),Ya=()=>ws(Ja);function Xa(e,t){return ir(e,null,{flush:"sync"})}function Nt(e,t,n){return ir(e,t,n)}function ir(e,t,n=re){const{immediate:s,deep:o,flush:r,once:i}=n,l=be({},n),a=t&&s||!t&&r!=="post";let u;if(mn){if(r==="sync"){const y=Ya();u=y.__watcherHandles||(y.__watcherHandles=[])}else if(!a){const y=()=>{};return y.stop=yt,y.resume=yt,y.pause=yt,y}}const c=Re;l.call=(y,b,w)=>Qe(y,c,b,w);let d=!1;r==="post"?l.scheduler=y=>{ze(y,c&&c.suspense)}:r!=="sync"&&(d=!0,l.scheduler=(y,b)=>{b?y():rr(y)}),l.augmentJob=y=>{t&&(y.flags|=4),d&&(y.flags|=2,c&&(y.id=c.uid,y.i=c))};const m=Ga(e,t,l);return mn&&(u?u.push(m):a&&m()),m}function Qa(e,t,n){const s=this.proxy,o=ye(e)?e.includes(".")?qi(s,e):()=>s[e]:e.bind(s,s);let r;Y(t)?r=t:(r=t.handler,n=t);const i=ns(this),l=ir(o,r.bind(s),n);return i(),l}function qi(e,t){const n=t.split(".");return()=>{let s=e;for(let o=0;o<n.length&&s;o++)s=s[n[o]];return s}}const Ot=new WeakMap,Wi=Symbol("_vte"),Ys=e=>e.__isTeleport,qt=e=>e&&(e.disabled||e.disabled===""),ec=e=>e&&(e.defer||e.defer===""),$r=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Er=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Ro=(e,t)=>{const n=e&&e.to;return ye(n)?t?t(n):null:n},tc={name:"Teleport",__isTeleport:!0,process(e,t,n,s,o,r,i,l,a,u){const{mc:c,pc:d,pbc:m,o:{insert:y,querySelector:b,createText:w,createComment:M,parentNode:S}}=u,_=qt(t.props);let{dynamicChildren:F}=t;const E=($,Q,G)=>{$.shapeFlag&16&&c($.children,Q,G,o,r,i,l,a)},R=($=t)=>{const Q=qt($.props),G=$.target=Ro($.props,b),te=Ho(G,$,w,y);G&&(i!=="svg"&&$r(G)?i="svg":i!=="mathml"&&Er(G)&&(i="mathml"),o&&o.isCE&&(o.ce._teleportTargets||(o.ce._teleportTargets=new Set)).add(G),Q||(E($,G,te),On($,!1)))},V=$=>{const Q=()=>{if(Ot.get($)===Q){if(Ot.delete($),qt($.props)){const G=S($.el)||n;E($,G,$.anchor),On($,!0)}R($)}};Ot.set($,Q),ze(Q,r)};if(e==null){const $=t.el=w(""),Q=t.anchor=w("");if(y($,n,s),y(Q,n,s),ec(t.props)||r&&r.pendingBranch){V(t);return}_&&(E(t,n,Q),On(t,!0)),R()}else{t.el=e.el;const $=t.anchor=e.anchor,Q=Ot.get(e);if(Q){Q.flags|=8,Ot.delete(e),V(t);return}t.targetStart=e.targetStart;const G=t.target=e.target,te=t.targetAnchor=e.targetAnchor,ae=qt(e.props),I=ae?n:G,he=ae?$:te;if(i==="svg"||$r(G)?i="svg":(i==="mathml"||Er(G))&&(i="mathml"),F?(m(e.dynamicChildren,F,I,o,r,i,l),fr(e,t,!0)):a||d(e,t,I,he,o,r,i,l,!1),_)ae?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):as(t,n,$,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const _e=Ro(t.props,b);_e&&(t.target=_e,as(t,_e,null,u,0))}else ae&&as(t,G,te,u,1);On(t,_)}},remove(e,t,n,{um:s,o:{remove:o}},r){const{shapeFlag:i,children:l,anchor:a,targetStart:u,targetAnchor:c,target:d,props:m}=e,y=qt(m),b=r||!y,w=Ot.get(e);if(w&&(w.flags|=8,Ot.delete(e)),d&&(o(u),o(c)),r&&o(a),!w&&(y||d)&&i&16)for(let M=0;M<l.length;M++){const S=l[M];s(S,t,n,b,!!S.dynamicChildren)}},move:as,hydrate:nc};function as(e,t,n,{o:{insert:s},m:o},r=2){r===0&&s(e.targetAnchor,t,n);const{el:i,anchor:l,shapeFlag:a,children:u,props:c}=e,d=r===2;if(d&&s(i,t,n),!Ot.has(e)&&(!d||qt(c))&&a&16)for(let m=0;m<u.length;m++)o(u[m],t,n,2);d&&s(l,t,n)}function nc(e,t,n,s,o,r,{o:{nextSibling:i,parentNode:l,querySelector:a,insert:u,createText:c}},d){function m(M,S){let _=S;for(;_;){if(_&&_.nodeType===8){if(_.data==="teleport start anchor")t.targetStart=_;else if(_.data==="teleport anchor"){t.targetAnchor=_,M._lpa=t.targetAnchor&&i(t.targetAnchor);break}}_=i(_)}}function y(M,S){S.anchor=d(i(M),S,l(M),n,s,o,r)}const b=t.target=Ro(t.props,a),w=qt(t.props);if(b){const M=b._lpa||b.firstChild;t.shapeFlag&16&&(w?(y(e,t),m(b,M),t.targetAnchor||Ho(b,t,c,u,l(e)===b?e:null)):(t.anchor=i(e),m(b,M),t.targetAnchor||Ho(b,t,c,u),d(M&&i(M),t,b,n,s,o,r))),On(t,w)}else w&&t.shapeFlag&16&&(y(e,t),t.targetStart=e,t.targetAnchor=i(e));return t.anchor&&i(t.anchor)}const Ji=tc;function On(e,t){const n=e.ctx;if(n&&n.ut){let s,o;for(t?(s=e.el,o=e.anchor):(s=e.targetStart,o=e.targetAnchor);s&&s!==o;)s.nodeType===1&&s.setAttribute("data-v-owner",n.uid),s=s.nextSibling;n.ut()}}function Ho(e,t,n,s,o=null){const r=t.targetStart=n(""),i=t.targetAnchor=n("");return r[Wi]=i,e&&(s(r,e,o),s(i,e,o)),i}const Je=Symbol("_leaveCb"),Tn=Symbol("_enterCb");function Yi(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Qs(()=>{e.isMounted=!0}),rl(()=>{e.isUnmounting=!0}),e}const We=[Function,Array],Xi={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:We,onEnter:We,onAfterEnter:We,onEnterCancelled:We,onBeforeLeave:We,onLeave:We,onAfterLeave:We,onLeaveCancelled:We,onBeforeAppear:We,onAppear:We,onAfterAppear:We,onAppearCancelled:We},Qi=e=>{const t=e.subTree;return t.component?Qi(t.component):t},sc={name:"BaseTransition",props:Xi,setup(e,{slots:t}){const n=ts(),s=Yi();return()=>{const o=t.default&&lr(t.default(),!0),r=o&&o.length?el(o):n.subTree?Te():void 0;if(!r)return;const i=oe(e),{mode:l}=i;if(s.isLeaving)return mo(r);const a=Ms(r);if(!a)return mo(r);let u=Kn(a,i,s,n,d=>u=d);a.type!==Ie&&tn(a,u);let c=n.subTree&&Ms(n.subTree);if(c&&c.type!==Ie&&!Wt(c,a)&&Qi(n).type!==Ie){let d=Kn(c,i,s,n);if(tn(c,d),l==="out-in"&&a.type!==Ie)return s.isLeaving=!0,d.afterLeave=()=>{s.isLeaving=!1,n.job.flags&8||n.update(),delete d.afterLeave,c=void 0},mo(r);l==="in-out"&&a.type!==Ie?d.delayLeave=(m,y,b)=>{const w=tl(s,c);w[String(c.key)]=c,m[Je]=()=>{y(),m[Je]=void 0,delete u.delayedLeave,c=void 0},u.delayedLeave=()=>{b(),delete u.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return r}}};function el(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==Ie){t=n;break}}return t}const oc=sc;function tl(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function Kn(e,t,n,s,o){const{appear:r,mode:i,persisted:l=!1,onBeforeEnter:a,onEnter:u,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:m,onLeave:y,onAfterLeave:b,onLeaveCancelled:w,onBeforeAppear:M,onAppear:S,onAfterAppear:_,onAppearCancelled:F}=t,E=String(e.key),R=tl(n,e),V=(G,te)=>{G&&Qe(G,s,9,te)},$=(G,te)=>{const ae=te[1];V(G,te),j(G)?G.every(I=>I.length<=1)&&ae():G.length<=1&&ae()},Q={mode:i,persisted:l,beforeEnter(G){let te=a;if(!n.isMounted)if(r)te=M||a;else return;G[Je]&&G[Je](!0);const ae=R[E];ae&&Wt(e,ae)&&ae.el[Je]&&ae.el[Je](),V(te,[G])},enter(G){if(R[E]===e)return;let te=u,ae=c,I=d;if(!n.isMounted)if(r)te=S||u,ae=_||c,I=F||d;else return;let he=!1;G[Tn]=vt=>{he||(he=!0,vt?V(I,[G]):V(ae,[G]),Q.delayedLeave&&Q.delayedLeave(),G[Tn]=void 0)};const _e=G[Tn].bind(null,!1);te?$(te,[G,_e]):_e()},leave(G,te){const ae=String(e.key);if(G[Tn]&&G[Tn](!0),n.isUnmounting)return te();V(m,[G]);let I=!1;G[Je]=_e=>{I||(I=!0,te(),_e?V(w,[G]):V(b,[G]),G[Je]=void 0,R[ae]===e&&delete R[ae])};const he=G[Je].bind(null,!1);R[ae]=e,y?$(y,[G,he]):he()},clone(G){const te=Kn(G,t,n,s,o);return o&&o(te),te}};return Q}function mo(e){if(es(e))return e=kt(e),e.children=null,e}function Ms(e){if(!es(e))return Ys(e.type)&&e.children?el(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&&Y(n.default))return n.default()}}function tn(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;const n=e.component.subTree;tn(Ys(n.type)&&Ms(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 lr(e,t=!1,n){let s=[],o=0;for(let r=0;r<e.length;r++){let i=e[r];const l=n==null?i.key:String(n)+String(i.key!=null?i.key:r);i.type===ie?(i.patchFlag&128&&o++,s=s.concat(lr(i.children,t,l))):(t||i.type!==Ie)&&s.push(l!=null?kt(i,{key:l}):i)}if(o>1)for(let r=0;r<s.length;r++)s[r].patchFlag=-2;return s}function q(e,t){return Y(e)?be({name:e.name},t,{setup:e}):e}function nl(){const e=ts();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function ar(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Or(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const $s=new WeakMap;function In(e,t,n,s,o=!1){if(j(e)){e.forEach((w,M)=>In(w,t&&(j(t)?t[M]:t),n,s,o));return}if(fn(s)&&!o){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&In(e,t,n,s.component.subTree);return}const r=s.shapeFlag&4?no(s.component):s.el,i=o?null:r,{i:l,r:a}=e,u=t&&t.r,c=l.refs===re?l.refs={}:l.refs,d=l.setupState,m=oe(d),y=d===re?wi:w=>Or(c,w)?!1:ce(m,w),b=(w,M)=>!(M&&Or(c,M));if(u!=null&&u!==a){if(Rr(t),ye(u))c[u]=null,y(u)&&(d[u]=null);else if(Fe(u)){const w=t;b(u,w.k)&&(u.value=null),w.k&&(c[w.k]=null)}}if(Y(a))Xn(a,l,12,[i,c]);else{const w=ye(a),M=Fe(a);if(w||M){const S=()=>{if(e.f){const _=w?y(a)?d[a]:c[a]:b()||!e.k?a.value:c[e.k];if(o)j(_)&&Yo(_,r);else if(j(_))_.includes(r)||_.push(r);else if(w)c[a]=[r],y(a)&&(d[a]=c[a]);else{const F=[r];b(a,e.k)&&(a.value=F),e.k&&(c[e.k]=F)}}else w?(c[a]=i,y(a)&&(d[a]=i)):M&&(b(a,e.k)&&(a.value=i),e.k&&(c[e.k]=i))};if(i){const _=()=>{S(),$s.delete(e)};_.id=-1,$s.set(e,_),ze(_,n)}else Rr(e),S()}}}function Rr(e){const t=$s.get(e);t&&(t.flags|=8,$s.delete(e))}const Hr=e=>e.nodeType===8;Zs().requestIdleCallback;Zs().cancelIdleCallback;function rc(e,t){if(Hr(e)&&e.data==="["){let n=1,s=e.nextSibling;for(;s;){if(s.nodeType===1){if(t(s)===!1)break}else if(Hr(s))if(s.data==="]"){if(--n===0)break}else s.data==="["&&n++;s=s.nextSibling}}else t(e)}const fn=e=>!!e.type.__asyncLoader;function Ln(e){Y(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:s,delay:o=200,hydrate:r,timeout:i,suspensible:l=!0,onError:a}=e;let u=null,c,d=0;const m=()=>(d++,u=null,y()),y=()=>{let b;return u||(b=u=t().catch(w=>{if(w=w instanceof Error?w:new Error(String(w)),a)return new Promise((M,S)=>{a(w,()=>M(m()),()=>S(w),d+1)});throw w}).then(w=>b!==u&&u?u:(w&&(w.__esModule||w[Symbol.toStringTag]==="Module")&&(w=w.default),c=w,w)))};return q({name:"AsyncComponentWrapper",__asyncLoader:y,__asyncHydrate(b,w,M){const S=b.isConnected;let _=!1;(w.bu||(w.bu=[])).push(()=>_=!0);const F=()=>{_||!b.parentNode||S&&!b.isConnected||M()},E=r?()=>{const R=r(F,V=>rc(b,V));R&&(w.bum||(w.bum=[])).push(R)}:F;c?E():y().then(()=>!w.isUnmounted&&E())},get __asyncResolved(){return c},setup(){const b=Re;if(ar(b),c)return()=>cs(c,b);const w=R=>{u=null,Qn(R,b,13,!s)};if(l&&b.suspense||mn)return y().then(R=>()=>cs(R,b)).catch(R=>(w(R),()=>s?X(s,{error:R}):null));const M=De(!1),S=De(),_=De(!!o);let F,E;return wn(()=>{F!=null&&clearTimeout(F),E!=null&&clearTimeout(E)}),o&&(E=setTimeout(()=>{b.isUnmounted||(_.value=!1)},o)),i!=null&&(F=setTimeout(()=>{if(!b.isUnmounted&&!M.value&&!S.value){const R=new Error(`Async component timed out after ${i}ms.`);w(R),S.value=R}},i)),y().then(()=>{b.isUnmounted||(M.value=!0,b.parent&&es(b.parent.vnode)&&b.parent.update())}).catch(R=>{if(b.isUnmounted){u=null;return}w(R),S.value=R}),()=>{if(M.value&&c)return cs(c,b);if(S.value&&s)return X(s,{error:S.value});if(n&&!_.value)return cs(n,b)}}})}function cs(e,t){const{ref:n,props:s,children:o,ce:r}=t.vnode,i=X(e,s,o);return i.ref=n,i.ce=r,delete t.vnode.ce,i}const es=e=>e.type.__isKeepAlive;function ic(e,t){sl(e,"a",t)}function lc(e,t){sl(e,"da",t)}function sl(e,t,n=Re){const s=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Xs(t,s,n),n){let o=n.parent;for(;o&&o.parent;)es(o.parent.vnode)&&ac(s,t,n,o),o=o.parent}}function ac(e,t,n,s){const o=Xs(t,e,s,!0);wn(()=>{Yo(s[t],o)},n)}function Xs(e,t,n=Re,s=!1){if(n){const o=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...i)=>{Lt();const l=ns(n),a=Qe(t,n,e,i);return l(),Pt(),a});return s?o.unshift(r):o.push(r),r}}const $t=e=>(t,n=Re)=>{(!mn||e==="sp")&&Xs(e,(...s)=>t(...s),n)},cc=$t("bm"),Qs=$t("m"),uc=$t("bu"),ol=$t("u"),rl=$t("bum"),wn=$t("um"),fc=$t("sp"),dc=$t("rtg"),pc=$t("rtc");function hc(e,t=Re){Xs("ec",e,t)}const mc="components",il=Symbol.for("v-ndc");function ll(e){return ye(e)?gc(mc,e,!1)||e:e||il}function gc(e,t,n=!0,s=!1){const o=He||Re;if(o){const r=o.type;{const l=Qc(r,!1);if(l&&(l===t||l===ke(t)||l===Gs(ke(t))))return r}const i=Dr(o[e]||r[e],t)||Dr(o.appContext[e],t);return!i&&s?r:i}}function Dr(e,t){return e&&(e[t]||e[ke(t)]||e[Gs(ke(t))])}function nn(e,t,n,s){let o;const r=n,i=j(e);if(i||ye(e)){const l=i&&Qt(e);let a=!1,u=!1;l&&(a=!Xe(e),u=At(e),e=Ws(e)),o=new Array(e.length);for(let c=0,d=e.length;c<d;c++)o[c]=t(a?u?pn(rt(e[c])):rt(e[c]):e[c],c,void 0,r)}else if(typeof e=="number"){o=new Array(e);for(let l=0;l<e;l++)o[l]=t(l+1,l,void 0,r)}else if(ue(e))if(e[Symbol.iterator])o=Array.from(e,(l,a)=>t(l,a,void 0,r));else{const l=Object.keys(e);o=new Array(l.length);for(let a=0,u=l.length;a<u;a++){const c=l[a];o[a]=t(e[c],c,a,r)}}else o=[];return o}function yc(e,t,n,s,o,r){if(n==null&&(n={}),He.ce||He.parent&&fn(He.parent)&&He.parent.ce){const u=n,c=Object.keys(u).length>0;return t!=="default"&&(u.name=t),z(),Pe(ie,null,[X("slot",u,s)],c?-2:64)}let i=e[t];i&&i._c&&(i._d=!1);const l=Tt.length;z();let a;try{const u=i&&al(i(n)),c=n.key||r||u&&u.key;a=Pe(ie,{key:(c&&!ot(c)?c:`_${t}`)+(!u&&s?"_fb":"")},u||(s?s():[]),u&&e._===1?64:-2)}catch(u){for(let c=Tt.length;c>l;c--)dr();throw u}finally{i&&i._c&&(i._d=!0)}return a}function al(e){return e.some(t=>hn(t)?!(t.type===Ie||t.type===ie&&!al(t.children)):!0)?e:null}const Do=e=>e?Al(e)?no(e):Do(e.parent):null,kn=be(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=>Do(e.parent),$root:e=>Do(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>ul(e),$forceUpdate:e=>e.f||(e.f=()=>{rr(e.update)}),$nextTick:e=>e.n||(e.n=Ps.bind(e.proxy)),$watch:e=>Qa.bind(e)}),go=(e,t)=>e!==re&&!e.__isScriptSetup&&ce(e,t),vc={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:o,props:r,accessCache:i,type:l,appContext:a}=e;if(t[0]!=="$"){const m=i[t];if(m!==void 0)switch(m){case 1:return s[t];case 2:return o[t];case 4:return n[t];case 3:return r[t]}else{if(go(s,t))return i[t]=1,s[t];if(o!==re&&ce(o,t))return i[t]=2,o[t];if(ce(r,t))return i[t]=3,r[t];if(n!==re&&ce(n,t))return i[t]=4,n[t];Vo&&(i[t]=0)}}const u=kn[t];let c,d;if(u)return t==="$attrs"&&Ne(e.attrs,"get",""),u(e);if((c=l.__cssModules)&&(c=c[t]))return c;if(n!==re&&ce(n,t))return i[t]=4,n[t];if(d=a.config.globalProperties,ce(d,t))return d[t]},set({_:e},t,n){const{data:s,setupState:o,ctx:r}=e;return go(o,t)?(o[t]=n,!0):s!==re&&ce(s,t)?(s[t]=n,!0):ce(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:o,props:r,type:i}},l){let a;return!!(n[l]||e!==re&&l[0]!=="$"&&ce(e,l)||go(t,l)||ce(r,l)||ce(s,l)||ce(kn,l)||ce(o.config.globalProperties,l)||(a=i.__cssModules)&&a[l])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ce(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Es(e){return j(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function vh(e,t){return!e||!t?e||t:j(e)&&j(t)?e.concat(t):be({},Es(e),Es(t))}let Vo=!0;function wc(e){const t=ul(e),n=e.proxy,s=e.ctx;Vo=!1,t.beforeCreate&&Vr(t.beforeCreate,e,"bc");const{data:o,computed:r,methods:i,watch:l,provide:a,inject:u,created:c,beforeMount:d,mounted:m,beforeUpdate:y,updated:b,activated:w,deactivated:M,beforeDestroy:S,beforeUnmount:_,destroyed:F,unmounted:E,render:R,renderTracked:V,renderTriggered:$,errorCaptured:Q,serverPrefetch:G,expose:te,inheritAttrs:ae,components:I,directives:he,filters:_e}=t;if(u&&Cc(u,s,null),i)for(const ve in i){const me=i[ve];Y(me)&&(s[ve]=me.bind(n))}if(o){const ve=o.call(n,n);ue(ve)&&(e.data=Js(ve))}if(Vo=!0,r)for(const ve in r){const me=r[ve],Bt=Y(me)?me.bind(n,n):Y(me.get)?me.get.bind(n,n):yt,ss=!Y(me)&&Y(me.set)?me.set.bind(n):yt,zt=ee({get:Bt,set:ss});Object.defineProperty(s,ve,{enumerable:!0,configurable:!0,get:()=>zt.value,set:it=>zt.value=it})}if(l)for(const ve in l)cl(l[ve],s,n,ve);if(a){const ve=Y(a)?a.call(n):a;Reflect.ownKeys(ve).forEach(me=>{Wa(me,ve[me])})}c&&Vr(c,e,"c");function Le(ve,me){j(me)?me.forEach(Bt=>ve(Bt.bind(n))):me&&ve(me.bind(n))}if(Le(cc,d),Le(Qs,m),Le(uc,y),Le(ol,b),Le(ic,w),Le(lc,M),Le(hc,Q),Le(pc,V),Le(dc,$),Le(rl,_),Le(wn,E),Le(fc,G),j(te))if(te.length){const ve=e.exposed||(e.exposed={});te.forEach(me=>{Object.defineProperty(ve,me,{get:()=>n[me],set:Bt=>n[me]=Bt,enumerable:!0})})}else e.exposed||(e.exposed={});R&&e.render===yt&&(e.render=R),ae!=null&&(e.inheritAttrs=ae),I&&(e.components=I),he&&(e.directives=he),G&&ar(e)}function Cc(e,t,n=yt){j(e)&&(e=No(e));for(const s in e){const o=e[s];let r;ue(o)?"default"in o?r=ws(o.from||s,o.default,!0):r=ws(o.from||s):r=ws(o),Fe(r)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>r.value,set:i=>r.value=i}):t[s]=r}}function Vr(e,t,n){Qe(j(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function cl(e,t,n,s){let o=s.includes(".")?qi(n,s):()=>n[s];if(ye(e)){const r=t[e];Y(r)&&Nt(o,r)}else if(Y(e))Nt(o,e.bind(n));else if(ue(e))if(j(e))e.forEach(r=>cl(r,t,n,s));else{const r=Y(e.handler)?e.handler.bind(n):t[e.handler];Y(r)&&Nt(o,r,e)}}function ul(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:o,optionsCache:r,config:{optionMergeStrategies:i}}=e.appContext,l=r.get(t);let a;return l?a=l:!o.length&&!n&&!s?a=t:(a={},o.length&&o.forEach(u=>Os(a,u,i,!0)),Os(a,t,i)),ue(t)&&r.set(t,a),a}function Os(e,t,n,s=!1){const{mixins:o,extends:r}=t;r&&Os(e,r,n,!0),o&&o.forEach(i=>Os(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const l=bc[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const bc={data:Nr,props:Ir,emits:Ir,methods:Rn,computed:Rn,beforeCreate:Be,created:Be,beforeMount:Be,mounted:Be,beforeUpdate:Be,updated:Be,beforeDestroy:Be,beforeUnmount:Be,destroyed:Be,unmounted:Be,activated:Be,deactivated:Be,errorCaptured:Be,serverPrefetch:Be,components:Rn,directives:Rn,watch:xc,provide:Nr,inject:_c};function Nr(e,t){return t?e?function(){return be(Y(e)?e.call(this,this):e,Y(t)?t.call(this,this):t)}:t:e}function _c(e,t){return Rn(No(e),No(t))}function No(e){if(j(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Be(e,t){return e?[...new Set([].concat(e,t))]:t}function Rn(e,t){return e?be(Object.create(null),e,t):t}function Ir(e,t){return e?j(e)&&j(t)?[...new Set([...e,...t])]:be(Object.create(null),Es(e),Es(t??{})):t}function xc(e,t){if(!e)return t;if(!t)return e;const n=be(Object.create(null),e);for(const s in t)n[s]=Be(e[s],t[s]);return n}function fl(){return{app:null,config:{isNativeTag:wi,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 Sc=0;function Tc(e,t){return function(s,o=null){Y(s)||(s=be({},s)),o!=null&&!ue(o)&&(o=null);const r=fl(),i=new WeakSet,l=[];let a=!1;const u=r.app={_uid:Sc++,_component:s,_props:o,_container:null,_context:r,_instance:null,version:nu,get config(){return r.config},set config(c){},use(c,...d){return i.has(c)||(c&&Y(c.install)?(i.add(c),c.install(u,...d)):Y(c)&&(i.add(c),c(u,...d))),u},mixin(c){return r.mixins.includes(c)||r.mixins.push(c),u},component(c,d){return d?(r.components[c]=d,u):r.components[c]},directive(c,d){return d?(r.directives[c]=d,u):r.directives[c]},mount(c,d,m){if(!a){const y=u._ceVNode||X(s,o);return y.appContext=r,m===!0?m="svg":m===!1&&(m=void 0),e(y,c,m),a=!0,u._container=c,c.__vue_app__=u,no(y.component)}},onUnmount(c){l.push(c)},unmount(){a&&(Qe(l,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(c,d){return r.provides[c]=d,u},runWithContext(c){const d=dn;dn=u;try{return c()}finally{dn=d}}};return u}}let dn=null;function wh(e,t,n=re){const s=ts(),o=ke(t),r=Mt(t),i=dl(e,o),l=Fa((a,u)=>{let c,d=re,m;return Xa(()=>{const y=e[o];Oe(c,y)&&(c=y,u())}),{get(){return a(),n.get?n.get(c):c},set(y){const b=n.set?n.set(y):y;if(!Oe(b,c)&&!(d!==re&&Oe(y,d)))return;const w=s.vnode.props,M=!!(w&&(t in w||o in w||r in w)&&(`onUpdate:${t}`in w||`onUpdate:${o}`in w||`onUpdate:${r}`in w));M||(c=y,u()),s.emit(`update:${t}`,b),Oe(y,d)&&(Oe(y,b)&&!Oe(b,m)||M&&d!==re&&!Oe(b,c))&&u(),d=y,m=b}}});return l[Symbol.iterator]=()=>{let a=0;return{next(){return a<2?{value:a++?i||re:l,done:!1}:{done:!0}}}},l}const dl=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ke(t)}Modifiers`]||e[`${Mt(t)}Modifiers`];function Lc(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||re;let o=n;const r=t.startsWith("update:"),i=r&&dl(s,t.slice(7));i&&(i.trim&&(o=n.map(c=>ye(c)?c.trim():c)),i.number&&(o=o.map(js)));let l,a=s[l=co(t)]||s[l=co(ke(t))];!a&&r&&(a=s[l=co(Mt(t))]),a&&Qe(a,e,6,o);const u=s[l+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Qe(u,e,6,o)}}const Pc=new WeakMap;function pl(e,t,n=!1){const s=n?Pc:t.emitsCache,o=s.get(e);if(o!==void 0)return o;const r=e.emits;let i={},l=!1;if(!Y(e)){const a=u=>{const c=pl(u,t,!0);c&&(l=!0,be(i,c))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!r&&!l?(ue(e)&&s.set(e,null),null):(j(r)?r.forEach(a=>i[a]=null):be(i,r),ue(e)&&s.set(e,i),i)}function eo(e,t){return!e||!Bs(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),ce(e,t[0].toLowerCase()+t.slice(1))||ce(e,Mt(t))||ce(e,t))}function kr(e){const{type:t,vnode:n,proxy:s,withProxy:o,propsOptions:[r],slots:i,attrs:l,emit:a,render:u,renderCache:c,props:d,data:m,setupState:y,ctx:b,inheritAttrs:w}=e,M=As(e);let S,_;try{if(n.shapeFlag&4){const E=o||s,R=E;S=mt(u.call(R,E,c,d,y,m,b)),_=l}else{const E=t;S=mt(E.length>1?E(d,{attrs:l,slots:i,emit:a}):E(d,null)),_=t.props?l:Ac(l)}}catch(E){Tt.length=0,Qn(E,e,1),S=X(Ie)}let F=S;if(_&&w!==!1){const E=Object.keys(_),{shapeFlag:R}=F;E.length&&R&7&&(r&&E.some(zs)&&(_=Mc(_,r)),F=kt(F,_,!1,!0))}if(n.dirs&&(F=kt(F,null,!1,!0),F.dirs=F.dirs?F.dirs.concat(n.dirs):n.dirs),n.transition){const E=Ys(F.type)&&Ms(F)||F;tn(E,n.transition)}return S=F,As(M),S}const Ac=e=>{let t;for(const n in e)(n==="class"||n==="style"||Bs(n))&&((t||(t={}))[n]=e[n]);return t},Mc=(e,t)=>{const n={};for(const s in e)(!zs(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function $c(e,t,n){const{props:s,children:o,component:r}=e,{props:i,children:l,patchFlag:a}=t,u=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return s?Fr(s,i,u):!!i;if(a&8){const c=t.dynamicProps;for(let d=0;d<c.length;d++){const m=c[d];if(hl(i,s,m)&&!eo(u,m))return!0}}}else return(o||l)&&(!l||!l.$stable)?!0:s===i?!1:s?i?Fr(s,i,u):!0:!!i;return!1}function Fr(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let o=0;o<s.length;o++){const r=s[o];if(hl(t,e,r)&&!eo(n,r))return!0}return!1}function hl(e,t,n){const s=e[n],o=t[n];return n==="style"&&ue(s)&&ue(o)?!It(s,o):s!==o}function Ec({vnode:e,parent:t,suspense:n},s){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.suspense.vnode.el=o.el=s,e=o),o===e)(e=t.vnode).el=s,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=s)}const ml={},gl=()=>Object.create(ml),yl=e=>Object.getPrototypeOf(e)===ml;function Oc(e,t,n,s=!1){const o={},r=gl();e.propsDefaults=Object.create(null),vl(e,t,o,r);for(const i in e.propsOptions[0])i in o||(o[i]=void 0);n?e.props=s?o:Bi(o):e.type.props?e.props=o:e.props=r,e.attrs=r}function Rc(e,t,n,s){const{props:o,attrs:r,vnode:{patchFlag:i}}=e,l=oe(o),[a]=e.propsOptions;let u=!1;if((s||i>0)&&!(i&16)){if(i&8){const c=e.vnode.dynamicProps;for(let d=0;d<c.length;d++){let m=c[d];if(eo(e.emitsOptions,m))continue;const y=t[m];if(a)if(ce(r,m))y!==r[m]&&(r[m]=y,u=!0);else{const b=ke(m);o[b]=Io(a,l,b,y,e,!1)}else y!==r[m]&&(r[m]=y,u=!0)}}}else{vl(e,t,o,r)&&(u=!0);let c;for(const d in l)(!t||!ce(t,d)&&((c=Mt(d))===d||!ce(t,c)))&&(a?n&&(n[d]!==void 0||n[c]!==void 0)&&(o[d]=Io(a,l,d,void 0,e,!0)):delete o[d]);if(r!==l)for(const d in r)(!t||!ce(t,d))&&(delete r[d],u=!0)}u&&xt(e.attrs,"set","")}function vl(e,t,n,s){const[o,r]=e.propsOptions;let i=!1,l;if(t)for(let a in t){if(Dn(a))continue;const u=t[a];let c;o&&ce(o,c=ke(a))?!r||!r.includes(c)?n[c]=u:(l||(l={}))[c]=u:eo(e.emitsOptions,a)||(!(a in s)||u!==s[a])&&(s[a]=u,i=!0)}if(r){const a=oe(n),u=l||re;for(let c=0;c<r.length;c++){const d=r[c];n[d]=Io(o,a,d,u[d],e,!ce(u,d))}}return i}function Io(e,t,n,s,o,r){const i=e[n];if(i!=null){const l=ce(i,"default");if(l&&s===void 0){const a=i.default;if(i.type!==Function&&!i.skipFactory&&Y(a)){const{propsDefaults:u}=o;if(n in u)s=u[n];else{const c=ns(o);s=u[n]=a.call(null,t),c()}}else s=a;o.ce&&o.ce._setProp(n,s)}i[0]&&(r&&!l?s=!1:i[1]&&(s===""||s===Mt(n))&&(s=!0))}return s}const Hc=new WeakMap;function wl(e,t,n=!1){const s=n?Hc:t.propsCache,o=s.get(e);if(o)return o;const r=e.props,i={},l=[];let a=!1;if(!Y(e)){const c=d=>{a=!0;const[m,y]=wl(d,t,!0);be(i,m),y&&l.push(...y)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!r&&!a)return ue(e)&&s.set(e,cn),cn;if(j(r))for(let c=0;c<r.length;c++){const d=ke(r[c]);Br(d)&&(i[d]=re)}else if(r)for(const c in r){const d=ke(c);if(Br(d)){const m=r[c],y=i[d]=j(m)||Y(m)?{type:m}:be({},m),b=y.type;let w=!1,M=!0;if(j(b))for(let S=0;S<b.length;++S){const _=b[S],F=Y(_)&&_.name;if(F==="Boolean"){w=!0;break}else F==="String"&&(M=!1)}else w=Y(b)&&b.name==="Boolean";y[0]=w,y[1]=M,(w||ce(y,"default"))&&l.push(d)}}const u=[i,l];return ue(e)&&s.set(e,u),u}function Br(e){return e[0]!=="$"&&!Dn(e)}const cr=e=>e==="_"||e==="_ctx"||e==="$stable",ur=e=>j(e)?e.map(mt):[mt(e)],Dc=(e,t,n)=>{if(t._n)return t;const s=vn((...o)=>ur(t(...o)),n);return s._c=!1,s},Cl=(e,t,n)=>{const s=e._ctx;for(const o in e){if(cr(o))continue;const r=e[o];if(Y(r))t[o]=Dc(o,r,s);else if(r!=null){const i=ur(r);t[o]=()=>i}}},bl=(e,t)=>{const n=ur(t);e.slots.default=()=>n},_l=(e,t,n)=>{for(const s in t)(n||!cr(s))&&(e[s]=t[s])},Vc=(e,t,n)=>{const s=e.slots=gl();if(e.vnode.shapeFlag&32){const o=t._;o?(_l(s,t,n),n&&xi(s,"_",o,!0)):Cl(t,s)}else t&&bl(e,t)},Nc=(e,t,n)=>{const{vnode:s,slots:o}=e;let r=!0,i=re;if(s.shapeFlag&32){const l=t._;l?n&&l===1?r=!1:_l(o,t,n):(r=!t.$stable,Cl(t,o)),i=t}else t&&(bl(e,t),i={default:1});if(r)for(const l in o)!cr(l)&&i[l]==null&&delete o[l]},ze=zc;function Ic(e){return kc(e)}function kc(e,t){const n=Zs();n.__VUE__=!0;const{insert:s,remove:o,patchProp:r,createElement:i,createText:l,createComment:a,setText:u,setElementText:c,parentNode:d,nextSibling:m,setScopeId:y=yt,insertStaticContent:b}=e,w=(f,h,C,A=null,P=null,T=null,D=void 0,H=null,O=!!h.dynamicChildren)=>{if(f===h)return;f&&!Wt(f,h)&&(A=os(f),it(f,P,T,!0),f=null),h.patchFlag===-2&&(O=!1,h.dynamicChildren=null);const{type:L,ref:K,shapeFlag:N}=h;switch(L){case to:M(f,h,C,A);break;case Ie:S(f,h,C,A);break;case vo:f==null&&_(h,C,A,D);break;case ie:I(f,h,C,A,P,T,D,H,O);break;default:N&1?R(f,h,C,A,P,T,D,H,O):N&6?he(f,h,C,A,P,T,D,H,O):(N&64||N&128)&&L.process(f,h,C,A,P,T,D,H,O,_n)}K!=null&&P?In(K,f&&f.ref,T,h||f,!h):K==null&&f&&f.ref!=null&&In(f.ref,null,T,f,!0)},M=(f,h,C,A)=>{if(f==null)s(h.el=l(h.children),C,A);else{const P=h.el=f.el;h.children!==f.children&&u(P,h.children)}},S=(f,h,C,A)=>{f==null?s(h.el=a(h.children||""),C,A):h.el=f.el},_=(f,h,C,A)=>{[f.el,f.anchor]=b(f.children,h,C,A,f.el,f.anchor)},F=({el:f,anchor:h},C,A)=>{let P;for(;f&&f!==h;)P=m(f),s(f,C,A),f=P;s(h,C,A)},E=({el:f,anchor:h})=>{let C;for(;f&&f!==h;)C=m(f),o(f),f=C;o(h)},R=(f,h,C,A,P,T,D,H,O)=>{if(h.type==="svg"?D="svg":h.type==="math"&&(D="mathml"),f==null)V(h,C,A,P,T,D,H,O);else{const L=f.el&&f.el._isVueCE?f.el:null;try{L&&L._beginPatch(),G(f,h,P,T,D,H,O)}finally{L&&L._endPatch()}}},V=(f,h,C,A,P,T,D,H)=>{let O,L;const{props:K,shapeFlag:N,transition:Z,dirs:W}=f;if(O=f.el=i(f.type,T,K&&K.is,K),N&8?c(O,f.children):N&16&&Q(f.children,O,null,A,P,yo(f,T),D,H),W&&Ut(f,null,A,"created"),$(O,f,f.scopeId,D,A),K){for(const pe in K)pe!=="value"&&!Dn(pe)&&r(O,pe,null,K[pe],T,A);"value"in K&&r(O,"value",null,K.value,T),(L=K.onVnodeBeforeMount)&&ut(L,A,f)}W&&Ut(f,null,A,"beforeMount");const se=Fc(P,Z);se&&Z.beforeEnter(O),s(O,h,C),((L=K&&K.onVnodeMounted)||se||W)&&ze(()=>{try{L&&ut(L,A,f),se&&Z.enter(O),W&&Ut(f,null,A,"mounted")}finally{}},P)},$=(f,h,C,A,P)=>{if(C&&y(f,C),A)for(let T=0;T<A.length;T++)y(f,A[T]);if(P){let T=P.subTree;if(h===T||Tl(T.type)&&(T.ssContent===h||T.ssFallback===h)){const D=P.vnode;$(f,D,D.scopeId,D.slotScopeIds,P.parent)}}},Q=(f,h,C,A,P,T,D,H,O=0)=>{for(let L=O;L<f.length;L++){const K=f[L]=H?_t(f[L]):mt(f[L]);w(null,K,h,C,A,P,T,D,H)}},G=(f,h,C,A,P,T,D)=>{const H=h.el=f.el;let{patchFlag:O,dynamicChildren:L,dirs:K}=h;O|=f.patchFlag&16;const N=f.props||re,Z=h.props||re;let W;if(C&&Gt(C,!1),(W=Z.onVnodeBeforeUpdate)&&ut(W,C,h,f),K&&Ut(h,f,C,"beforeUpdate"),C&&Gt(C,!0),L&&(!f.dynamicChildren||f.dynamicChildren.length!==L.length)&&(O=0,D=!1,L=null),(N.innerHTML&&Z.innerHTML==null||N.textContent&&Z.textContent==null)&&c(H,""),L?te(f.dynamicChildren,L,H,C,A,yo(h,P),T):D||me(f,h,H,null,C,A,yo(h,P),T,!1),O>0){if(O&16)ae(H,N,Z,C,P);else if(O&2&&N.class!==Z.class&&r(H,"class",null,Z.class,P),O&4&&r(H,"style",N.style,Z.style,P),O&8){const se=h.dynamicProps;for(let pe=0;pe<se.length;pe++){const fe=se[pe],xe=N[fe],$e=Z[fe];($e!==xe||fe==="value")&&r(H,fe,xe,$e,P,C)}}O&1&&f.children!==h.children&&c(H,h.children)}else!D&&L==null&&ae(H,N,Z,C,P);((W=Z.onVnodeUpdated)||K)&&ze(()=>{W&&ut(W,C,h,f),K&&Ut(h,f,C,"updated")},A)},te=(f,h,C,A,P,T,D)=>{for(let H=0;H<h.length;H++){const O=f[H],L=h[H],K=O.el&&(O.type===ie||!Wt(O,L)||O.shapeFlag&198)?d(O.el):C;w(O,L,K,null,A,P,T,D,!0)}},ae=(f,h,C,A,P)=>{if(h!==C){if(h!==re)for(const T in h)!Dn(T)&&!(T in C)&&r(f,T,h[T],null,P,A);for(const T in C){if(Dn(T))continue;const D=C[T],H=h[T];D!==H&&T!=="value"&&r(f,T,H,D,P,A)}"value"in C&&r(f,"value",h.value,C.value,P)}},I=(f,h,C,A,P,T,D,H,O)=>{const L=h.el=f?f.el:l(""),K=h.anchor=f?f.anchor:l("");let{patchFlag:N,dynamicChildren:Z,slotScopeIds:W}=h;W&&(H=H?H.concat(W):W),f==null?(s(L,C,A),s(K,C,A),Q(h.children||[],C,K,P,T,D,H,O)):N>0&&N&64&&Z&&f.dynamicChildren&&f.dynamicChildren.length===Z.length?(te(f.dynamicChildren,Z,C,P,T,D,H),(h.key!=null||P&&h===P.subTree)&&fr(f,h,!0)):me(f,h,C,K,P,T,D,H,O)},he=(f,h,C,A,P,T,D,H,O)=>{h.slotScopeIds=H,f==null?h.shapeFlag&512?P.ctx.activate(h,C,A,D,O):_e(h,C,A,P,T,D,O):vt(f,h,O)},_e=(f,h,C,A,P,T,D)=>{const H=f.component=qc(f,A,P);if(es(f)&&(H.ctx.renderer=_n),Wc(H,!1,D),H.asyncDep){if(P&&P.registerDep(H,Le,D),!f.el){const O=H.subTree=X(Ie);S(null,O,h,C),f.placeholder=O.el}}else Le(H,f,h,C,P,T,D)},vt=(f,h,C)=>{const A=h.component=f.component;if($c(f,h,C))if(A.asyncDep&&!A.asyncResolved){ve(A,h,C);return}else A.next=h,A.update();else h.el=f.el,A.vnode=h},Le=(f,h,C,A,P,T,D)=>{const H=()=>{if(f.isMounted){let{next:N,bu:Z,u:W,parent:se,vnode:pe}=f;{const at=xl(f);if(at){N&&(N.el=pe.el,ve(f,N,D)),at.asyncDep.then(()=>{ze(()=>{f.isUnmounted||L()},P)});return}}let fe=N,xe;Gt(f,!1),N?(N.el=pe.el,ve(f,N,D)):N=pe,Z&&vs(Z),(xe=N.props&&N.props.onVnodeBeforeUpdate)&&ut(xe,se,N,pe),Gt(f,!0);const $e=kr(f),lt=f.subTree;f.subTree=$e,w(lt,$e,d(lt.el),os(lt),f,P,T),N.el=$e.el,fe===null&&Ec(f,$e.el),W&&ze(W,P),(xe=N.props&&N.props.onVnodeUpdated)&&ze(()=>ut(xe,se,N,pe),P)}else{let N;const{el:Z,props:W}=h,{bm:se,m:pe,parent:fe,root:xe,type:$e}=f,lt=fn(h);Gt(f,!1),se&&vs(se),!lt&&(N=W&&W.onVnodeBeforeMount)&&ut(N,fe,h),Gt(f,!0);{xe.ce&&xe.ce._hasShadowRoot()&&xe.ce._injectChildStyle($e,f.parent?f.parent.type:void 0);const at=f.subTree=kr(f);w(null,at,C,A,f,P,T),h.el=at.el}if(pe&&ze(pe,P),!lt&&(N=W&&W.onVnodeMounted)){const at=h;ze(()=>ut(N,fe,at),P)}(h.shapeFlag&256||fe&&fn(fe.vnode)&&fe.vnode.shapeFlag&256)&&f.a&&ze(f.a,P),f.isMounted=!0,h=C=A=null}};f.scope.on();const O=f.effect=new Pi(H);f.scope.off();const L=f.update=O.run.bind(O),K=f.job=O.runIfDirty.bind(O);K.i=f,K.id=f.uid,O.scheduler=()=>rr(K),Gt(f,!0),L()},ve=(f,h,C)=>{h.component=f;const A=f.vnode.props;f.vnode=h,f.next=null,Rc(f,h.props,A,C),Nc(f,h.children,C),Lt(),Mr(f),Pt()},me=(f,h,C,A,P,T,D,H,O=!1)=>{const L=f&&f.children,K=f?f.shapeFlag:0,N=h.children,{patchFlag:Z,shapeFlag:W}=h;if(Z>0){if(Z&128){ss(L,N,C,A,P,T,D,H,O);return}else if(Z&256){Bt(L,N,C,A,P,T,D,H,O);return}}W&8?(K&16&&bn(L,P,T),N!==L&&c(C,N)):K&16?W&16?ss(L,N,C,A,P,T,D,H,O):bn(L,P,T,!0):(K&8&&c(C,""),W&16&&Q(N,C,A,P,T,D,H,O))},Bt=(f,h,C,A,P,T,D,H,O)=>{f=f||cn,h=h||cn;const L=f.length,K=h.length,N=Math.min(L,K);let Z;for(Z=0;Z<N;Z++){const W=h[Z]=O?_t(h[Z]):mt(h[Z]);w(f[Z],W,C,null,P,T,D,H,O)}L>K?bn(f,P,T,!0,!1,N):Q(h,C,A,P,T,D,H,O,N)},ss=(f,h,C,A,P,T,D,H,O)=>{let L=0;const K=h.length;let N=f.length-1,Z=K-1;for(;L<=N&&L<=Z;){const W=f[L],se=h[L]=O?_t(h[L]):mt(h[L]);if(Wt(W,se))w(W,se,C,null,P,T,D,H,O);else break;L++}for(;L<=N&&L<=Z;){const W=f[N],se=h[Z]=O?_t(h[Z]):mt(h[Z]);if(Wt(W,se))w(W,se,C,null,P,T,D,H,O);else break;N--,Z--}if(L>N){if(L<=Z){const W=Z+1,se=W<K?h[W].el:A;for(;L<=Z;)w(null,h[L]=O?_t(h[L]):mt(h[L]),C,se,P,T,D,H,O),L++}}else if(L>Z)for(;L<=N;)it(f[L],P,T,!0),L++;else{const W=L,se=L,pe=new Map;for(L=se;L<=Z;L++){const je=h[L]=O?_t(h[L]):mt(h[L]);je.key!=null&&pe.set(je.key,L)}let fe,xe=0;const $e=Z-se+1;let lt=!1,at=0;const xn=new Array($e);for(L=0;L<$e;L++)xn[L]=0;for(L=W;L<=N;L++){const je=f[L];if(xe>=$e){it(je,P,T,!0);continue}let ct;if(je.key!=null)ct=pe.get(je.key);else for(fe=se;fe<=Z;fe++)if(xn[fe-se]===0&&Wt(je,h[fe])){ct=fe;break}ct===void 0?it(je,P,T,!0):(xn[ct-se]=L+1,ct>=at?at=ct:lt=!0,w(je,h[ct],C,null,P,T,D,H,O),xe++)}const br=lt?Bc(xn):cn;for(fe=br.length-1,L=$e-1;L>=0;L--){const je=se+L,ct=h[je],_r=h[je+1],xr=je+1<K?_r.el||Sl(_r):A;xn[L]===0?w(null,ct,C,xr,P,T,D,H,O):lt&&(fe<0||L!==br[fe]?zt(ct,C,xr,2):fe--)}}},zt=(f,h,C,A,P=null)=>{const{el:T,type:D,transition:H,children:O,shapeFlag:L}=f;if(L&6){zt(f.component.subTree,h,C,A);return}if(L&128){f.suspense.move(h,C,A);return}if(L&64){D.move(f,h,C,_n);return}if(D===ie){s(T,h,C);for(let N=0;N<O.length;N++)zt(O[N],h,C,A);s(f.anchor,h,C);return}if(D===vo){F(f,h,C);return}if(A!==2&&L&1&&H)if(A===0)H.persisted&&!T[Je]?s(T,h,C):(H.beforeEnter(T),s(T,h,C),ze(()=>H.enter(T),P));else{const{leave:N,delayLeave:Z,afterLeave:W}=H,se=()=>{f.ctx.isUnmounted?o(T):s(T,h,C)},pe=()=>{const fe=T._isLeaving||!!T[Je];T._isLeaving&&T[Je](!0),H.persisted&&!fe?se():N(T,()=>{se(),W&&W()})};Z?Z(T,se,pe):pe()}else s(T,h,C)},it=(f,h,C,A=!1,P=!1)=>{const{type:T,props:D,ref:H,children:O,dynamicChildren:L,shapeFlag:K,patchFlag:N,dirs:Z,cacheIndex:W,memo:se}=f;if(N===-2&&(P=!1),H!=null&&(Lt(),In(H,null,C,f,!0),Pt()),W!=null&&(h.renderCache[W]=void 0),K&256){h.ctx.deactivate(f);return}const pe=K&1&&Z,fe=!fn(f);let xe;if(fe&&(xe=D&&D.onVnodeBeforeUnmount)&&ut(xe,h,f),K&6)na(f.component,C,A);else{if(K&128){f.suspense.unmount(C,A);return}pe&&Ut(f,null,h,"beforeUnmount"),K&64?f.type.remove(f,h,C,_n,A):L&&!L.hasOnce&&(T!==ie||N>0&&N&64)?bn(L,h,C,!1,!0):(T===ie&&N&384||!P&&K&16)&&bn(O,h,C),A&&wr(f)}const $e=se!=null&&W==null;(fe&&(xe=D&&D.onVnodeUnmounted)||pe||$e)&&ze(()=>{xe&&ut(xe,h,f),pe&&Ut(f,null,h,"unmounted"),$e&&(f.el=null)},C)},wr=f=>{const{type:h,el:C,anchor:A,transition:P}=f;if(h===ie){ta(C,A);return}if(h===vo){E(f);return}const T=()=>{o(C),P&&!P.persisted&&P.afterLeave&&P.afterLeave()};if(f.shapeFlag&1&&P&&!P.persisted){const{leave:D,delayLeave:H}=P,O=()=>D(C,T);H?H(f.el,T,O):O()}else T()},ta=(f,h)=>{let C;for(;f!==h;)C=m(f),o(f),f=C;o(h)},na=(f,h,C)=>{const{bum:A,scope:P,job:T,subTree:D,um:H,m:O,a:L}=f;zr(O),zr(L),A&&vs(A),P.stop(),T&&(T.flags|=8,it(D,f,h,C)),H&&ze(H,h),ze(()=>{f.isUnmounted=!0},h)},bn=(f,h,C,A=!1,P=!1,T=0)=>{for(let D=T;D<f.length;D++)it(f[D],h,C,A,P)},os=f=>{if(f.shapeFlag&6)return os(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const h=m(f.anchor||f.el),C=h&&h[Wi];return C?m(C):h};let ao=!1;const Cr=(f,h,C)=>{let A;f==null?h._vnode&&(it(h._vnode,null,null,!0),A=h._vnode.component):w(h._vnode||null,f,h,null,null,null,C),h._vnode=f,ao||(ao=!0,Mr(A),ji(),ao=!1)},_n={p:w,um:it,m:zt,r:wr,mt:_e,mc:Q,pc:me,pbc:te,n:os,o:e};return{render:Cr,hydrate:void 0,createApp:Tc(Cr)}}function yo({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 Gt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Fc(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function fr(e,t,n=!1){const s=e.children,o=t.children;if(j(s)&&j(o))for(let r=0;r<s.length;r++){const i=s[r];let l=o[r];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=o[r]=_t(o[r]),l.el=i.el),!n&&l.patchFlag!==-2&&fr(i,l)),l.type===to&&(l.patchFlag===-1&&(l=o[r]=_t(l)),l.el=i.el),l.type===Ie&&!l.el&&(l.el=i.el)}}function Bc(e){const t=e.slice(),n=[0];let s,o,r,i,l;const a=e.length;for(s=0;s<a;s++){const u=e[s];if(u!==0){if(o=n[n.length-1],e[o]<u){t[s]=o,n.push(s);continue}for(r=0,i=n.length-1;r<i;)l=r+i>>1,e[n[l]]<u?r=l+1:i=l;u<e[n[r]]&&(r>0&&(t[s]=n[r-1]),n[r]=s)}}for(r=n.length,i=n[r-1];r-- >0;)n[r]=i,i=t[i];return n}function xl(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:xl(t)}function zr(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Sl(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Sl(t.subTree):null}const Tl=e=>e.__isSuspense;function zc(e,t){t&&t.pendingBranch?j(e)?t.effects.push(...e):t.effects.push(e):Ka(e)}const ie=Symbol.for("v-fgt"),to=Symbol.for("v-txt"),Ie=Symbol.for("v-cmt"),vo=Symbol.for("v-stc"),Tt=[];let Ze=null;function z(e=!1){Tt.push(Ze=e?null:[])}function dr(){Tt.pop(),Ze=Tt[Tt.length-1]||null}let qn=1;function Rs(e,t=!1){qn+=e,e<0&&Ze&&t&&(Ze.hasOnce=!0)}function Ll(e){return e.dynamicChildren=qn>0?Ze||cn:null,dr(),qn>0&&Ze&&Ze.push(e),e}function J(e,t,n,s,o,r){return Ll(v(e,t,n,s,o,r,!0))}function Pe(e,t,n,s,o){return Ll(X(e,t,n,s,o,!0))}function hn(e){return e?e.__v_isVNode===!0:!1}function Wt(e,t){return e.type===t.type&&e.key===t.key}const Pl=({key:e})=>e??null,Cs=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ye(e)||Fe(e)||Y(e)?{i:He,r:e,k:t,f:!!n}:e:null);function v(e,t=null,n=null,s=0,o=null,r=e===ie?0:1,i=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Pl(t),ref:t&&Cs(t),scopeId:Ki,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:r,patchFlag:s,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:He};return l?(Hs(a,n),r&128&&e.normalize(a)):n&&(a.shapeFlag|=ye(n)?8:16),qn>0&&!i&&Ze&&(a.patchFlag>0||r&6)&&a.patchFlag!==32&&Ze.push(a),a}const X=Uc;function Uc(e,t=null,n=null,s=0,o=null,r=!1){if((!e||e===il)&&(e=Ie),hn(e)){const l=kt(e,t,!0);return n&&Hs(l,n),qn>0&&!r&&Ze&&(l.shapeFlag&6?Ze[Ze.indexOf(e)]=l:Ze.push(l)),l.patchFlag=-2,l}if(eu(e)&&(e=e.__vccOpts),t){t=Gc(t);let{class:l,style:a}=t;l&&!ye(l)&&(t.class=Ae(l)),ue(a)&&(or(a)&&!j(a)&&(a=be({},a)),t.style=Ks(a))}const i=ye(e)?1:Tl(e)?128:Ys(e)?64:ue(e)?4:Y(e)?2:0;return v(e,t,n,s,o,i,r,!0)}function Gc(e){return e?or(e)||yl(e)?be({},e):e:null}function kt(e,t,n=!1,s=!1){const{props:o,ref:r,patchFlag:i,children:l,transition:a}=e,u=t?jc(o||{},t):o,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Pl(u),ref:t&&t.ref?n&&r?j(r)?r.concat(Cs(t)):[r,Cs(t)]:Cs(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ie?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&kt(e.ssContent),ssFallback:e.ssFallback&&kt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&s&&tn(c,a.clone(c)),c}function tt(e=" ",t=0){return X(to,null,e,t)}function Te(e="",t=!1){return t?(z(),Pe(Ie,null,e)):X(Ie,null,e)}function mt(e){return e==null||typeof e=="boolean"?X(Ie):j(e)?X(ie,null,e.slice()):hn(e)?_t(e):X(to,null,String(e))}function _t(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:kt(e)}function Hs(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 o=t.default;o&&(o._c&&(o._d=!1),Hs(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!yl(t)?t._ctx=He:o===3&&He&&(He.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(Y(t)){if(s&65){Hs(e,{default:t});return}t={default:t,_ctx:He},n=32}else t=String(t),s&64?(n=16,t=[tt(t)]):n=8;e.children=t,e.shapeFlag|=n}function jc(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const o in s)if(o==="class")t.class!==s.class&&(t.class=Ae([t.class,s.class]));else if(o==="style")t.style=Ks([t.style,s.style]);else if(Bs(o)){const r=t[o],i=s[o];i&&r!==i&&!(j(r)&&r.includes(i))?t[o]=r?[].concat(r,i):i:i==null&&r==null&&!zs(o)&&(t[o]=i)}else o!==""&&(t[o]=s[o])}return t}function ut(e,t,n,s=null){Qe(e,t,7,[n,s])}const Zc=fl();let Kc=0;function qc(e,t,n){const s=e.type,o=(t?t.appContext:e.appContext)||Zc,r={uid:Kc++,vnode:e,type:s,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new ga(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:wl(s,o),emitsOptions:pl(s,o),emit:null,emitted:null,propsDefaults:re,inheritAttrs:s.inheritAttrs,ctx:re,data:re,props:re,attrs:re,slots:re,refs:re,setupState:re,setupContext:null,suspense:n,suspenseId:n?n.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 r.ctx={_:r},r.root=t?t.root:r,r.emit=Lc.bind(null,r),e.ce&&e.ce(r),r}let Re=null;const ts=()=>Re||He;let Ds,Wn;{const e=Zs(),t=(n,s)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(s),r=>{o.length>1?o.forEach(i=>i(r)):o[0](r)}};Ds=t("__VUE_INSTANCE_SETTERS__",n=>Re=n),Wn=t("__VUE_SSR_SETTERS__",n=>mn=n)}const ns=e=>{const t=Re;return Ds(e),e.scope.on(),()=>{e.scope.off(),Ds(t)}},Ur=()=>{Re&&Re.scope.off(),Ds(null)};function Al(e){return e.vnode.shapeFlag&4}let mn=!1;function Wc(e,t=!1,n=!1){t&&Wn(t);const{props:s,children:o}=e.vnode,r=Al(e);Oc(e,s,r,t),Vc(e,o,n||t);const i=r?Jc(e,t):void 0;return t&&Wn(!1),i}function Jc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,vc);const{setup:s}=n;if(s){Lt();const o=e.setupContext=s.length>1?Xc(e):null,r=ns(e),i=Xn(s,e,0,[e.props,o]),l=Ci(i);if(Pt(),r(),(l||e.sp)&&!fn(e)&&ar(e),l){if(i.then(Ur,Ur),t)return i.then(a=>{Wn(!0);try{Gr(e,a,t)}finally{Wn(!1)}}).catch(a=>{Qn(a,e,0)});e.asyncDep=i}else Gr(e,i)}else Ml(e)}function Gr(e,t,n){Y(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ue(t)&&(e.setupState=zi(t)),Ml(e)}function Ml(e,t,n){const s=e.type;e.render||(e.render=s.render||yt);{const o=ns(e);Lt();try{wc(e)}finally{Pt(),o()}}}const Yc={get(e,t){return Ne(e,"get",""),e[t]}};function Xc(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Yc),slots:e.slots,emit:e.emit,expose:t}}function no(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(zi(Da(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in kn)return kn[n](e)},has(t,n){return n in t||n in kn}})):e.proxy}function Qc(e,t=!0){return Y(e)?e.displayName||e.name:e.name||t&&e.__name}function eu(e){return Y(e)&&"__vccOpts"in e}const ee=(e,t)=>za(e,t,mn);function tu(e,t,n){try{Rs(-1);const s=arguments.length;return s===2?ue(t)&&!j(t)?hn(t)?X(e,null,[t]):X(e,t):X(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&hn(n)&&(n=[n]),X(e,t,n))}finally{Rs(1)}}const nu="3.5.42";/**
|
|
15
|
-
* @vue/runtime-dom v3.5.42
|
|
16
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
17
|
-
* @license MIT
|
|
18
|
-
**/let ko;const jr=typeof window<"u"&&window.trustedTypes;if(jr)try{ko=jr.createPolicy("vue",{createHTML:e=>e})}catch{}const $l=ko?e=>ko.createHTML(e):e=>e,su="http://www.w3.org/2000/svg",ou="http://www.w3.org/1998/Math/MathML",bt=typeof document<"u"?document:null,Zr=bt&&bt.createElement("template"),ru={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 o=t==="svg"?bt.createElementNS(su,e):t==="mathml"?bt.createElementNS(ou,e):n?bt.createElement(e,{is:n}):bt.createElement(e);return e==="select"&&s&&s.multiple!=null&&o.setAttribute("multiple",s.multiple),o},createText:e=>bt.createTextNode(e),createComment:e=>bt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>bt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,o,r){const i=n?n.previousSibling:t.lastChild;if(o&&(o===r||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===r||!(o=o.nextSibling)););else{Zr.innerHTML=$l(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const l=Zr.content;if(s==="svg"||s==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Et="transition",Pn="animation",gn=Symbol("_vtc"),El={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Ol=be({},Xi,El),iu=e=>(e.displayName="Transition",e.props=Ol,e),Rl=iu((e,{slots:t})=>tu(oc,Hl(e),t)),jt=(e,t=[])=>{j(e)?e.forEach(n=>n(...t)):e&&e(...t)},Kr=e=>e?j(e)?e.some(t=>t.length>1):e.length>1:!1;function Hl(e){const t={};for(const I in e)I in El||(t[I]=e[I]);if(e.css===!1)return t;const{name:n="v",type:s,duration:o,enterFromClass:r=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=r,appearActiveClass:u=i,appearToClass:c=l,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:m=`${n}-leave-active`,leaveToClass:y=`${n}-leave-to`}=e,b=lu(o),w=b&&b[0],M=b&&b[1],{onBeforeEnter:S,onEnter:_,onEnterCancelled:F,onLeave:E,onLeaveCancelled:R,onBeforeAppear:V=S,onAppear:$=_,onAppearCancelled:Q=F}=t,G=(I,he,_e,vt)=>{I._enterCancelled=vt,Rt(I,he?c:l),Rt(I,he?u:i),_e&&_e()},te=(I,he)=>{I._isLeaving=!1,Rt(I,d),Rt(I,y),Rt(I,m),he&&he()},ae=I=>(he,_e)=>{const vt=I?$:_,Le=()=>G(he,I,_e);jt(vt,[he,Le]),qr(()=>{Rt(he,I?a:r),dt(he,I?c:l),Kr(vt)||Wr(he,s,w,Le)})};return be(t,{onBeforeEnter(I){jt(S,[I]),dt(I,r),dt(I,i)},onBeforeAppear(I){jt(V,[I]),dt(I,a),dt(I,u)},onEnter:ae(!1),onAppear:ae(!0),onLeave(I,he){I._isLeaving=!0;const _e=()=>te(I,he);dt(I,d),I._enterCancelled?(dt(I,m),Fo(I)):(Fo(I),dt(I,m)),qr(()=>{I._isLeaving&&(Rt(I,d),dt(I,y),Kr(E)||Wr(I,s,M,_e))}),jt(E,[I,_e])},onEnterCancelled(I){G(I,!1,void 0,!0),jt(F,[I])},onAppearCancelled(I){G(I,!0,void 0,!0),jt(Q,[I])},onLeaveCancelled(I){te(I),jt(R,[I])}})}function lu(e){if(e==null)return null;if(ue(e))return[wo(e.enter),wo(e.leave)];{const t=wo(e);return[t,t]}}function wo(e){return la(e)}function dt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[gn]||(e[gn]=new Set)).add(t)}function Rt(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[gn];n&&(n.delete(t),n.size||(e[gn]=void 0))}function qr(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let au=0;function Wr(e,t,n,s){const o=e._endId=++au,r=()=>{o===e._endId&&s()};if(n!=null)return setTimeout(r,n);const{type:i,timeout:l,propCount:a}=Dl(e,t);if(!i)return s();const u=i+"end";let c=0;const d=()=>{e.removeEventListener(u,m),r()},m=y=>{y.target===e&&++c>=a&&d()};setTimeout(()=>{c<a&&d()},l+1),e.addEventListener(u,m)}function Dl(e,t){const n=window.getComputedStyle(e),s=b=>(n[b]||"").split(", "),o=s(`${Et}Delay`),r=s(`${Et}Duration`),i=Jr(o,r),l=s(`${Pn}Delay`),a=s(`${Pn}Duration`),u=Jr(l,a);let c=null,d=0,m=0;t===Et?i>0&&(c=Et,d=i,m=r.length):t===Pn?u>0&&(c=Pn,d=u,m=a.length):(d=Math.max(i,u),c=d>0?i>u?Et:Pn:null,m=c?c===Et?r.length:a.length:0);const y=c===Et&&/\b(?:transform|all)(?:,|$)/.test(s(`${Et}Property`).toString());return{type:c,timeout:d,propCount:m,hasTransform:y}}function Jr(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,s)=>Yr(n)+Yr(e[s])))}function Yr(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Fo(e){return(e?e.ownerDocument:document).body.offsetHeight}function cu(e,t,n){const s=e[gn];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Vs=Symbol("_vod"),pr=Symbol("_vsh"),Ch={name:"show",beforeMount(e,{value:t},{transition:n}){e[Vs]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):An(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),An(e,!0),s.enter(e)):s.leave(e,()=>{An(e,!1)}):An(e,t))},beforeUnmount(e,{value:t}){An(e,t)}};function An(e,t){e.style.display=t?e[Vs]:"none",e[pr]=!t}const uu=Symbol(""),fu=/(?:^|;)\s*display\s*:/;function du(e,t,n){const s=e.style,o=ye(n);let r=!1;if(n&&!o){if(t)if(ye(t))for(const i of t.split(";")){const l=i.slice(0,i.indexOf(":")).trim();n[l]==null&&Hn(s,l,"")}else for(const i in t)n[i]==null&&Hn(s,i,"");for(const i in n){i==="display"&&(r=!0);const l=n[i];l!=null?hu(e,i,!ye(t)&&t?t[i]:void 0,l)||Hn(s,i,l):Hn(s,i,"")}}else if(o){if(t!==n){const i=s[uu];i&&(n+=";"+i),s.cssText=n,r=fu.test(n)}}else t&&e.removeAttribute("style");Vs in e&&(e[Vs]=r?s.display:"",e[pr]&&(s.display="none"))}const us=/\s*!important$/;function Hn(e,t,n){if(j(n))n.forEach(s=>Hn(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))us.test(n)?e.setProperty(t,n.replace(us,""),"important"):e.setProperty(t,n);else{const s=pu(e,t);us.test(n)?e.setProperty(Mt(s),n.replace(us,""),"important"):e[s]=n}}const Xr=["Webkit","Moz","ms"],Co={};function pu(e,t){const n=Co[t];if(n)return n;let s=ke(t);if(s!=="filter"&&s in e)return Co[t]=s;s=Gs(s);for(let o=0;o<Xr.length;o++){const r=Xr[o]+s;if(r in e)return Co[t]=r}return t}function hu(e,t,n,s){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&ye(s)&&n===s}const Qr="http://www.w3.org/1999/xlink";function ei(e,t,n,s,o,r=pa(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Qr,t.slice(6,t.length)):e.setAttributeNS(Qr,t,n):n==null||r&&!Si(n)?e.removeAttribute(t):e.setAttribute(t,r?"":ot(n)?String(n):n)}function ti(e,t,n,s,o){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?$l(n):n);return}const r=e.tagName;if(t==="value"&&r!=="PROGRESS"&&!r.includes("-")){const l=r==="OPTION"?e.getAttribute("value")||"":e.value,a=n==null?e.type==="checkbox"?"on":"":String(n);(l!==a||!("_value"in e))&&(e.value=a),n==null&&e.removeAttribute(t),e._value=n;return}let i=!1;if(n===""||n==null){const l=typeof e[t];l==="boolean"?n=Si(n):n==null&&l==="string"?(n="",i=!0):l==="number"&&(n=0,i=!0)}try{e[t]=n}catch{}i&&e.removeAttribute(o||t)}function Jt(e,t,n,s){e.addEventListener(t,n,s)}function mu(e,t,n,s){e.removeEventListener(t,n,s)}const ni=Symbol("_vei");function gu(e,t,n,s,o=null){const r=e[ni]||(e[ni]={}),i=r[t];if(s&&i)i.value=s;else{const[l,a]=wu(t);if(s){const u=r[t]=_u(s,o);Jt(e,l,u,a)}else i&&(mu(e,l,i,a),r[t]=void 0)}}const yu=/(Once|Passive|Capture)$/,vu=/^on:?(?:Once|Passive|Capture)$/;function wu(e){let t,n;for(;(n=e.match(yu))&&!vu.test(e);)t||(t={}),e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===":"?e.slice(3):Mt(e.slice(2)),t]}let bo=0;const Cu=Promise.resolve(),bu=()=>bo||(Cu.then(()=>bo=0),bo=Date.now());function _u(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;const o=n.value;if(j(o)){const r=s.stopImmediatePropagation;s.stopImmediatePropagation=()=>{r.call(s),s._stopped=!0};const i=o.slice(),l=[s];for(let a=0;a<i.length&&!s._stopped;a++){const u=i[a];u&&Qe(u,t,5,l)}}else Qe(o,t,5,[s])};return n.value=e,n.attached=bu(),n}const si=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,xu=(e,t,n,s,o,r)=>{const i=o==="svg";t==="class"?cu(e,s,i):t==="style"?du(e,n,s):Bs(t)?zs(t)||gu(e,t,n,s,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Su(e,t,s,i))?(ti(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&ei(e,t,s,i,r,t!=="value")):e._isVueCE&&(Tu(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!ye(s)))?ti(e,ke(t),s,r,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),ei(e,t,s,i))};function Su(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&si(t)&&Y(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 o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return si(t)&&ye(n)?!1:t in e}function Tu(e,t){const n=e._def.props;if(!n)return!1;const s=ke(t);return Array.isArray(n)?n.some(o=>ke(o)===s):Object.keys(n).some(o=>ke(o)===s)}const Vl=new WeakMap,Nl=new WeakMap,Ns=Symbol("_moveCb"),oi=Symbol("_enterCb"),Lu=e=>(delete e.props.mode,e),Pu=Lu({name:"TransitionGroup",props:be({},Ol,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=ts(),s=Yi();let o,r;return ol(()=>{if(!o.length)return;const i=e.moveClass||`${e.name||"v"}-move`;if(!Ou(o[0].el,n.vnode.el,i)){o=[];return}o.forEach(Mu),o.forEach($u);const l=o.filter(Eu);Fo(n.vnode.el),l.forEach(a=>{const u=a.el,c=u.style;dt(u,i),c.transform=c.webkitTransform=c.transitionDuration="";const d=u[Ns]=m=>{m&&m.target!==u||(!m||m.propertyName.endsWith("transform"))&&(u.removeEventListener("transitionend",d),u[Ns]=null,Rt(u,i))};u.addEventListener("transitionend",d)}),o=[]}),()=>{const i=oe(e),l=Hl(i);let a=i.tag||ie;if(o=[],r)for(let u=0;u<r.length;u++){const c=r[u];c.el&&c.el instanceof Element&&!c.el[pr]&&(o.push(c),tn(c,Kn(c,l,s,n)),Vl.set(c,Il(c.el)))}r=t.default?lr(t.default()):[];for(let u=0;u<r.length;u++){const c=r[u];c.key!=null&&tn(c,Kn(c,l,s,n))}return X(a,null,r)}}}),Au=Pu;function Mu(e){const t=e.el;t[Ns]&&t[Ns](),t[oi]&&t[oi]()}function $u(e){Nl.set(e,Il(e.el))}function Eu(e){const t=Vl.get(e),n=Nl.get(e),s=t.left-n.left,o=t.top-n.top;if(s||o){const r=e.el,i=r.style,l=r.getBoundingClientRect();let a=1,u=1;return r.offsetWidth&&(a=l.width/r.offsetWidth),r.offsetHeight&&(u=l.height/r.offsetHeight),(!Number.isFinite(a)||a===0)&&(a=1),(!Number.isFinite(u)||u===0)&&(u=1),Math.abs(a-1)<.01&&(a=1),Math.abs(u-1)<.01&&(u=1),i.transform=i.webkitTransform=`translate(${s/a}px,${o/u}px)`,i.transitionDuration="0s",e}}function Il(e){const t=e.getBoundingClientRect();return{left:t.left,top:t.top}}function Ou(e,t,n){const s=e.cloneNode(),o=e[gn];o&&o.forEach(l=>{l.split(/\s+/).forEach(a=>a&&s.classList.remove(a))}),n.split(/\s+/).forEach(l=>l&&s.classList.add(l)),s.style.display="none";const r=t.nodeType===1?t:t.parentNode;r.appendChild(s);const{hasTransform:i}=Dl(s);return r.removeChild(s),i}const Is=e=>{const t=e.props["onUpdate:modelValue"]||!1;return j(t)?n=>vs(t,n):t};function Ru(e){e.target.composing=!0}function ri(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Yt=Symbol("_assign"),fs=Symbol("_initialValue");function _o(e,t,n){return t&&(e=e.trim()),n&&(e=js(e)),e}const Hu={created(e,{modifiers:{lazy:t,trim:n,number:s}},o){e.parentNode&&(e.type==="text"?e[fs]=e.defaultValue.replace(/[\r\n]/g,""):e.type==="textarea"&&(e[fs]=e.defaultValue.replace(/\r\n?/g,`
|
|
19
|
-
`))),e[Yt]=Is(o);const r=s||o.props&&o.props.type==="number";Jt(e,t?"change":"input",i=>{i.target.composing||e[Yt](_o(e.value,n,r))}),(n||r)&&Jt(e,"change",()=>{e.value=_o(e.value,n,r)}),t||(Jt(e,"compositionstart",Ru),Jt(e,"compositionend",ri),Jt(e,"change",ri))},mounted(e,{value:t,modifiers:{trim:n,number:s}}){const o=t??"",r=e[fs];delete e[fs],r!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==r?e[Yt](_o(e.value,n,s)):e.value=o},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:o,number:r}},i){if(e[Yt]=Is(i),e.composing)return;const l=(r||e.type==="number")&&!/^0\d/.test(e.value)?js(e.value):e.value,a=t??"";if(l===a)return;const u=e.getRootNode();(u instanceof Document||u instanceof ShadowRoot)&&u.activeElement===e&&e.type!=="range"&&(s&&t===n||o&&e.value.trim()===a)||(e.value=a)}},bh={deep:!0,created(e,{value:t,modifiers:{number:n}},s){e._modelValue=t,Jt(e,"change",()=>{const o=Array.prototype.filter.call(e.options,a=>a.selected).map(a=>n?js(ks(a)):ks(a)),r=e.multiple,i=r?en(e._modelValue)?new Set(o):o:o[0],l=e._pendingValue=[r,r?j(i)?o.slice():o:i];try{e[Yt](i)}finally{Ps(()=>{e._pendingValue===l&&(e._pendingValue=void 0)})}}),e[Yt]=Is(s)},mounted(e,{value:t}){ii(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[Yt]=Is(n)},updated(e,{value:t}){const n=e._pendingValue;e._pendingValue=void 0,(!n||n[0]!==e.multiple||!Du(t,n[1],n[0]))&&ii(e,t)}};function Du(e,t,n){if(!n||j(e))return It(e,t);if(en(e)){if(e.size!==t.length)return!1;for(const s of t)if(!e.has(s))return!1;return!0}return!1}function ii(e,t){const n=e.multiple,s=j(t);if(!(n&&!s&&!en(t))){for(let o=0,r=e.options.length;o<r;o++){const i=e.options[o],l=ks(i);if(n)if(s){const a=typeof l;a==="string"||a==="number"?i.selected=t.some(u=>String(u)===String(l)):i.selected=ma(t,l)>-1}else i.selected=t.has(l);else if(It(ks(i),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function ks(e){return"_value"in e?e._value:e.value}const Vu=["ctrl","shift","alt","meta"],Nu={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)=>Vu.some(n=>e[`${n}Key`]&&!t.includes(n))},bs=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=((o,...r)=>{for(let i=0;i<t.length;i++){const l=Nu[t[i]];if(l&&l(o,t))return}return e(o,...r)}))},Iu={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},_h=(e,t)=>{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=(o=>{if(!("key"in o))return;const r=Mt(o.key);if(t.some(i=>i===r||Iu[i]===r))return e(o)}))},ku=be({patchProp:xu},ru);let li;function Fu(){return li||(li=Ic(ku))}const Bu=((...e)=>{const t=Fu().createApp(...e),{mount:n}=t;return t.mount=s=>{const o=Uu(s);if(!o)return;const r=t._component;!Y(r)&&!r.render&&!r.template&&(r.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const i=n(o,!1,zu(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t});function zu(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Uu(e){return ye(e)?document.querySelector(e):e}const Gu="modulepreload",ju=function(e,t){return new URL(e,t).href},ai={},Mn=function(t,n,s){let o=Promise.resolve();if(n&&n.length>0){let i=function(c){return Promise.all(c.map(d=>Promise.resolve(d).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};const l=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),u=a?.nonce||a?.getAttribute("nonce");o=i(n.map(c=>{if(c=ju(c,s),c in ai)return;ai[c]=!0;const d=c.endsWith(".css"),m=d?'[rel="stylesheet"]':"";if(!!s)for(let w=l.length-1;w>=0;w--){const M=l[w];if(M.href===c&&(!d||M.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${m}`))return;const b=document.createElement("link");if(b.rel=d?"stylesheet":Gu,d||(b.as="script"),b.crossOrigin="",b.href=c,u&&b.setAttribute("nonce",u),document.head.appendChild(b),d)return new Promise((w,M)=>{b.addEventListener("load",w),b.addEventListener("error",()=>M(new Error(`Unable to preload CSS for ${c}`)))})}))}function r(i){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=i,window.dispatchEvent(l),!l.defaultPrevented)throw i}return o.then(i=>{for(const l of i||[])l.status==="rejected"&&r(l.reason);return t().catch(r)})};function Bo(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&Object.getPrototypeOf(e)===Object.prototype}function Zu(e){if(typeof e!="string")return!1;const t=Date.parse(e);return Number.isFinite(t)&&new Date(t).toISOString()===e}const Ku="sash",qu="sash-token.";function Wu(e){if(!Bo(e)||!Bo(e.error))return;const{code:t,message:n}=e.error;if(!(typeof t!="string"||typeof n!="string"))return{code:t,message:n}}function et(e,t,n){throw new TypeError(`${e} response is invalid: ${t} must be ${n}`)}function de(e,t,n){return Bo(e)||et(t,n,"a plain object"),e}function B(e,t,n,s){return Object.hasOwn(e,t)||et(n,s,"present"),e[t]}function Me(e,t,n){return typeof e!="boolean"&&et(t,n,"a boolean"),e}function Ce(e,t,n,s=!1){return(typeof e!="string"||s&&!e.trim())&&et(t,n,s?"a non-empty string":"a string"),e}function ds(e,t,n){return(typeof e!="number"||!Number.isFinite(e))&&et(t,n,"a finite number"),e}function so(e,t,n){return(typeof e!="number"||!Number.isSafeInteger(e)||e<=0)&&et(t,n,"a positive safe integer"),e}function Cn(e,t,n){return(typeof e!="number"||!Number.isSafeInteger(e)||e<0)&&et(t,n,"a non-negative safe integer"),e}function zo(e,t,n){return(typeof e!="number"||!Number.isInteger(e)||e<1||e>65535)&&et(t,n,"an integer port from 1 to 65535"),e}function yn(e,t,n){return Zu(e)||et(t,n,"a canonical ISO timestamp"),e}function Ft(e,t,n,s){return Object.hasOwn(e,t)?Ce(e[t],n,s):void 0}function Fs(e,t,n,s){return Object.hasOwn(e,t)?Me(e[t],n,s):!1}function kl(e,t,n){const s=de(e,t,n),o=Ft(s,"server",t,`${n}.server`),r=Ft(s,"details",t,`${n}.details`);return{supported:Me(B(s,"supported",t,`${n}.supported`),t,`${n}.supported`),enabled:Me(B(s,"enabled",t,`${n}.enabled`),t,`${n}.enabled`),...o!==void 0?{server:o}:{},...r!==void 0?{details:r}:{}}}function Ju(e,t){const n=de(e,t,"core"),s=Object.hasOwn(n,"pid")?so(n.pid,t,"core.pid"):void 0,o=Object.hasOwn(n,"startedAt")?yn(n.startedAt,t,"core.startedAt"):void 0,r=Object.hasOwn(n,"healthy")?Me(n.healthy,t,"core.healthy"):void 0,i=Ft(n,"version",t,"core.version"),l=Object.hasOwn(n,"tunActive")?Me(n.tunActive,t,"core.tunActive"):void 0;return{running:Me(B(n,"running",t,"core.running"),t,"core.running"),...s!==void 0?{pid:s}:{},...o!==void 0?{startedAt:o}:{},...r!==void 0?{healthy:r}:{},...i!==void 0?{version:i}:{},...l!==void 0?{tunActive:l}:{}}}function hr(e){const t="sashd settings",n=de(e,t,"settings");return{mixedPort:zo(B(n,"mixedPort",t,"settings.mixedPort"),t,"settings.mixedPort"),controller:Ce(B(n,"controller",t,"settings.controller"),t,"settings.controller",!0),tun:Me(B(n,"tun",t,"settings.tun"),t,"settings.tun"),allowLan:Me(B(n,"allowLan",t,"settings.allowLan"),t,"settings.allowLan"),daemonPort:zo(B(n,"daemonPort",t,"settings.daemonPort"),t,"settings.daemonPort"),systemProxy:Me(B(n,"systemProxy",t,"settings.systemProxy"),t,"settings.systemProxy")}}function oo(e,t,n){const s=de(e,t,n),o=Object.hasOwn(s,"subInfo")?de(s.subInfo,t,`${n}.subInfo`):void 0,r=o?{upload:ds(B(o,"upload",t,`${n}.subInfo.upload`),t,`${n}.subInfo.upload`),download:ds(B(o,"download",t,`${n}.subInfo.download`),t,`${n}.subInfo.download`),total:ds(B(o,"total",t,`${n}.subInfo.total`),t,`${n}.subInfo.total`),...Object.hasOwn(o,"expire")?{expire:ds(o.expire,t,`${n}.subInfo.expire`)}:{}}:void 0,i=Ft(s,"homePage",t,`${n}.homePage`),l=Ft(s,"lastError",t,`${n}.lastError`);return{id:Ce(B(s,"id",t,`${n}.id`),t,`${n}.id`,!0),name:Ce(B(s,"name",t,`${n}.name`),t,`${n}.name`),url:Ce(B(s,"url",t,`${n}.url`),t,`${n}.url`),intervalHours:Cn(B(s,"intervalHours",t,`${n}.intervalHours`),t,`${n}.intervalHours`),createdAt:yn(B(s,"createdAt",t,`${n}.createdAt`),t,`${n}.createdAt`),updatedAt:yn(B(s,"updatedAt",t,`${n}.updatedAt`),t,`${n}.updatedAt`),...r!==void 0?{subInfo:r}:{},...i!==void 0?{homePage:i}:{},...l!==void 0?{lastError:l}:{}}}function ro(e,t,n){return Object.hasOwn(e,"proxyCount")?{proxyCount:Cn(e.proxyCount,t,`${n}.proxyCount`)}:{}}function Yu(e){const t="sashd health",n=de(e,t,"response");return{token:Ce(B(n,"token",t,"token"),t,"token",!0),pid:so(B(n,"pid",t,"pid"),t,"pid"),startedAt:yn(B(n,"startedAt",t,"startedAt"),t,"startedAt")}}function Xu(e){const t="sashd web bootstrap",n=de(e,t,"response");return{token:Ce(B(n,"token",t,"token"),t,"token",!0),expiresAt:yn(B(n,"expiresAt",t,"expiresAt"),t,"expiresAt")}}function Fl(e){const t="sashd web session",n=de(e,t,"response");return{token:Ce(B(n,"token",t,"token"),t,"token",!0),daemonToken:Ce(B(n,"daemonToken",t,"daemonToken"),t,"daemonToken",!0)}}function ci(e){const t="sashd core start",n=de(e,t,"response"),s=Ft(n,"version",t,"version"),o=Object.hasOwn(n,"tunActive")?Me(n.tunActive,t,"tunActive"):void 0;return{pid:so(B(n,"pid",t,"pid"),t,"pid"),...s!==void 0?{version:s}:{},...o!==void 0?{tunActive:o}:{}}}function Qu(e){const t="sashd core reload",n=de(e,t,"response"),s=Ce(B(n,"source",t,"source"),t,"source");return s!=="subscription"&&s!=="default"&&et(t,"source",'"subscription" or "default"'),{proxyCount:Cn(B(n,"proxyCount",t,"proxyCount"),t,"proxyCount"),source:s}}function ef(e){const t="sashd shutdown",n=de(e,t,"response");return{coreWasRunning:Me(B(n,"coreWasRunning",t,"coreWasRunning"),t,"coreWasRunning")}}function tf(e){const t="sashd system proxy",n=de(e,t,"response"),s=kl(n,t,"response"),o=Ft(n,"queryError",t,"queryError");return{desired:Me(B(n,"desired",t,"desired"),t,"desired"),applied:Me(B(n,"applied",t,"applied"),t,"applied"),...s,appliedKnown:Fs(n,"appliedKnown",t,"appliedKnown"),stateKnown:Fs(n,"stateKnown",t,"stateKnown"),...o!==void 0?{queryError:o}:{}}}function ui(e){const t="sashd settings write",n=de(e,t,"response");return{restartRequired:Me(B(n,"restartRequired",t,"restartRequired"),t,"restartRequired"),settings:hr(B(n,"settings",t,"settings"))}}function nf(e){const t="sashd settings file",n=de(e,t,"response");return{content:Ce(B(n,"content",t,"content"),t,"content")}}function sf(e){const t="sashd profiles",n=de(e,t,"response"),s=B(n,"activeId",t,"activeId"),o=B(n,"profiles",t,"profiles");return Array.isArray(o)||et(t,"profiles","an array"),{activeId:s===null?null:Ce(s,t,"activeId",!0),profiles:o.map((r,i)=>oo(r,t,`profiles[${i}]`))}}function fi(e){const t="sashd profile action",n=de(e,t,"response");return{profile:oo(B(n,"profile",t,"profile"),t,"profile"),activated:Me(B(n,"activated",t,"activated"),t,"activated"),...ro(n,t,"response")}}function di(e){const t="sashd profile update",n=de(e,t,"response");return{profile:oo(B(n,"profile",t,"profile"),t,"profile"),...ro(n,t,"response")}}function of(e){const t="sashd profiles update-all",n=de(e,t,"response"),s=B(n,"failed",t,"failed");return Array.isArray(s)||et(t,"failed","an array"),{updated:Cn(B(n,"updated",t,"updated"),t,"updated"),failed:s.map((o,r)=>{const i=`failed[${r}]`,l=de(o,t,i);return{id:Ce(B(l,"id",t,`${i}.id`),t,`${i}.id`),name:Ce(B(l,"name",t,`${i}.name`),t,`${i}.name`),error:Ce(B(l,"error",t,`${i}.error`),t,`${i}.error`)}}),...ro(n,t,"response")}}function rf(e){const t="sashd profile content",n=de(e,t,"response");return{name:Ce(B(n,"name",t,"name"),t,"name"),content:Ce(B(n,"content",t,"content"),t,"content")}}function lf(e){const t="sashd profile activate",n=de(e,t,"response"),s=B(n,"activeId",t,"activeId");return{activeId:s===null?null:Ce(s,t,"activeId",!0),proxyCount:Cn(B(n,"proxyCount",t,"proxyCount"),t,"proxyCount")}}function af(e){const t="sashd profile remove",n=de(e,t,"response");return{wasActive:Me(B(n,"wasActive",t,"wasActive"),t,"wasActive"),...ro(n,t,"response")}}function cf(e){const t="sashd profile rename",n=de(e,t,"response");return{profile:oo(B(n,"profile",t,"profile"),t,"profile")}}function uf(e){const t="sashd status",n=de(e,t,"response"),s=de(B(n,"daemon",t,"daemon"),t,"daemon"),o=de(B(n,"revisions",t,"revisions"),t,"revisions"),r=de(B(n,"systemProxy",t,"systemProxy"),t,"systemProxy"),i=Object.hasOwn(r,"actual")?kl(r.actual,t,"systemProxy.actual"):void 0,l=Ft(r,"queryError",t,"systemProxy.queryError"),a=B(n,"activeProfile",t,"activeProfile"),u=a===null?null:(()=>{const c=de(a,t,"activeProfile");return{id:Ce(B(c,"id",t,"activeProfile.id"),t,"activeProfile.id",!0),name:Ce(B(c,"name",t,"activeProfile.name"),t,"activeProfile.name"),url:Ce(B(c,"url",t,"activeProfile.url"),t,"activeProfile.url")}})();return{daemon:{pid:so(B(s,"pid",t,"daemon.pid"),t,"daemon.pid"),startedAt:yn(B(s,"startedAt",t,"daemon.startedAt"),t,"daemon.startedAt"),port:zo(B(s,"port",t,"daemon.port"),t,"daemon.port")},revisions:{profiles:Cn(B(o,"profiles",t,"revisions.profiles"),t,"revisions.profiles")},core:Ju(B(n,"core",t,"core"),t),systemProxy:{desired:Me(B(r,"desired",t,"systemProxy.desired"),t,"systemProxy.desired"),applied:Me(B(r,"applied",t,"systemProxy.applied"),t,"systemProxy.applied"),...i!==void 0?{actual:i}:{},appliedKnown:Fs(r,"appliedKnown",t,"systemProxy.appliedKnown"),stateKnown:Fs(r,"stateKnown",t,"systemProxy.stateKnown"),...l!==void 0?{queryError:l}:{}},settings:hr(B(n,"settings",t,"settings")),activeProfile:u}}const ff=async(e,t)=>{const n=await fetch(e,{method:t.method,headers:t.headers,...t.body!==void 0?{body:t.body}:{},...t.timeoutMs!==void 0?{signal:AbortSignal.timeout(t.timeoutMs)}:{}});return{status:n.status,text:()=>n.text()}};class Bl extends Error{constructor(t,n,s){super(s),this.status=t,this.code=n,this.name="SashApiError"}}class df{baseUrl;token;tokenHeader;fetchFn;timeoutMs;onUnauthorized;constructor(t){this.baseUrl=t.baseUrl.replace(/\/+$/,""),t.token&&(this.token=t.token),this.tokenHeader=t.tokenHeader??"authorization",this.fetchFn=t.fetchFn??ff,this.timeoutMs=t.timeoutMs??5e3,t.onUnauthorized&&(this.onUnauthorized=t.onUnauthorized)}async request(t,n={}){const s={},o=n.authenticate===!1?"":this.token?.()??"";o&&(this.tokenHeader==="x-sash-token"?s["X-Sash-Token"]=o:s.Authorization=`Bearer ${o}`);let r;n.body!==void 0&&(s["Content-Type"]="application/json",r=JSON.stringify(n.body));const i=await this.fetchFn(`${this.baseUrl}${t}`,{method:n.method??"GET",headers:s,...r!==void 0?{body:r}:{},timeoutMs:n.timeoutMs??this.timeoutMs,...n.attempts!==void 0?{attempts:n.attempts}:{}}),l=await i.text();let a;try{a=l?JSON.parse(l):void 0}catch(u){if(i.status>=200&&i.status<300)throw new Error(`Invalid JSON response from ${t}: ${u.message}`);a=l}if(i.status===401&&o&&this.onUnauthorized?.(o),i.status<200||i.status>=300){const u=Wu(a),c=u?.message??(typeof a=="string"?a.slice(0,300).trim():"");throw new Bl(i.status,u?.code,c||`HTTP ${i.status}`)}return a}async health(){return Yu(await this.request("/sash/daemon/health",{timeoutMs:2e3,attempts:1,authenticate:!1}))}async createWebBootstrap(){return Xu(await this.request("/sash/web/bootstrap",{method:"POST",timeoutMs:5e3}))}async redeemWebBootstrap(t){return Fl(await this.request("/sash/web/session",{method:"POST",body:{token:t},timeoutMs:5e3,attempts:1,authenticate:!1}))}async status(t=!1){return uf(await this.request(t?"/sash/daemon/status?fresh=1":"/sash/daemon/status"))}async shutdown(){return ef(await this.request("/sash/daemon/shutdown",{method:"POST",timeoutMs:45e3}))}async startCore(){return ci(await this.request("/sash/core/start",{method:"POST",timeoutMs:15e3}))}async stopCore(){await this.request("/sash/core/stop",{method:"POST",timeoutMs:3e4})}async restartCore(){return ci(await this.request("/sash/core/restart",{method:"POST",timeoutMs:3e4}))}async reloadCoreConfig(){return Qu(await this.request("/sash/core/reload",{method:"POST",timeoutMs:3e4}))}async proxyStatus(t=!1){return tf(await this.request(t?"/sash/proxy?fresh=1":"/sash/proxy"))}async getSettings(){return hr(await this.request("/sash/settings"))}async patchSettings(t){return ui(await this.request("/sash/settings",{method:"PATCH",body:t,timeoutMs:45e3}))}async getSettingsFile(){return nf(await this.request("/sash/settings/file"))}async writeSettingsFile(t){return ui(await this.request("/sash/settings/file",{method:"PUT",body:{content:t},timeoutMs:45e3}))}async listProfiles(){return sf(await this.request("/sash/profiles"))}async addProfile(t,n={}){return fi(await this.request("/sash/profiles",{method:"POST",body:{url:t,...n},timeoutMs:6e4}))}async importProfile(t,n){return fi(await this.request("/sash/profiles/import",{method:"POST",body:{name:t,content:n},timeoutMs:3e4}))}async activateProfile(t){return lf(await this.request("/sash/profiles/active",{method:"PUT",body:{id:t},timeoutMs:3e4}))}async updateProfile(t){return di(await this.request(`/sash/profiles/${t}/update`,{method:"POST",timeoutMs:6e4}))}async updateAllProfiles(){return of(await this.request("/sash/profiles/update-all",{method:"POST",timeoutMs:12e4}))}async getProfileContent(t){return rf(await this.request(`/sash/profiles/${t}/content`))}async writeProfileContent(t,n){return di(await this.request(`/sash/profiles/${t}/content`,{method:"PUT",body:{content:n},timeoutMs:3e4}))}async renameProfile(t,n){return cf(await this.request(`/sash/profiles/${t}`,{method:"PATCH",body:{name:n}}))}async removeProfile(t){return af(await this.request(`/sash/profiles/${t}`,{method:"DELETE",timeoutMs:3e4}))}}class pf{values=new Map;current(t){return this.values.get(t)??0}begin(t){const n=(this.values.get(t)??0)+1;return this.values.set(t,n),n}invalidate(t){this.begin(t)}isCurrent(t,n){return this.current(t)===n}}function hf(e,t){e.mode="rule",e.proxies={},e.proxyGroups=[],e.connections=[],e.connectionsUploadTotal=0,e.connectionsDownloadTotal=0,e.rules=[],e.traffic={up:0,down:0,historyUp:Array(t).fill(0),historyDown:Array(t).fill(0)},e.manualProxyDelays={},e.activeGroup="",e.runtimeGeneration+=1}function Ke(e){return!!(e?.core.running&&e.core.healthy)}function Fn(e){return Ke(e)?[e?.daemon.startedAt??"",e?.core.pid??"",e?.core.startedAt??""].join("|"):null}function mf(e,t,n,s){return e?!t||s===null?null:n?"coreDegraded":"coreUnavailable":"offline"}function xh(e,t){return!Object.is(e,t)}function Sh(e,t,n,s){return!s&&Object.is(e,t)?n:e}function zl(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)?e:null}function gf(e){const t=zl(e);if(!t)return null;const{up:n,down:s}=t;return typeof n!="number"||!Number.isFinite(n)||n<0||typeof s!="number"||!Number.isFinite(s)||s<0?null:{up:n,down:s}}const yf=new Set(["info","warning","error","debug"]);function vf(e){const t=zl(e);return!t||typeof t.type!="string"||typeof t.payload!="string"||!yf.has(t.type)?null:{type:t.type,payload:t.payload}}function mr(e){return!!(e?.systemProxy.desired||e?.systemProxy.applied||e?.systemProxy.actual?.enabled)}function Ul(e,t){return t?Ke(e):mr(e)}function wf(e,t,n){const s=n[e];return s!==void 0?s:t[e]?.history?.at(-1)?.delay}function Cf(e,t,n){if(!e)return null;const s=n??{...e.settings,allowLan:t},o={...e.core};return s.allowLan!==e.settings.allowLan&&delete o.tunActive,{...e,settings:s,core:o}}async function bf(e,t,n){let s,o;try{s=await e()}catch(i){o=i}try{await t()}catch(i){if(o===void 0)throw i}if(o!==void 0)throw o;const r=s;return await n?.(r),r}const _f={app:{coreRunning:"Core running",coreStopped:"Core stopped",navigation:"Primary navigation"},nav:{overview:"Overview",profiles:"Profiles",logs:"Logs",connections:"Connections",rules:"Rules",settings:"Settings"},page:{overview:{title:"Overview",desc:"Live traffic, outbound mode and core status"},logs:{title:"Logs"},connections:{title:"Connections"},rules:{title:"Rules",desc:"Routing rules currently in effect"},settings:{title:"Settings",desc:"Interface, network listeners and core control"}},common:{on:"On",off:"Off",save:"Save",cancel:"Cancel",confirm:"Confirm",close:"Close",clear:"Clear",loading:"Loading…",reset:"Reset",timeout:"Timeout",untested:"Untested",running:"Running",stopped:"Stopped",live:"LIVE",nodesCount:"{n} nodes",rulesCount:"{n} rules",previous:"Previous",next:"Next",pageSummary:"Page {page} of {total}",toggle:"Toggle setting"},format:{justNow:"just now",minutesAgo:"{n} min ago",hoursAgo:"{n} h ago",daysAgo:"{n} d ago",monthsAgo:"{n} mo ago",yearsAgo:"{n} y ago",durationDayHour:"{d}d {h}h",durationHourMin:"{h}h {m}m",durationMin:"{m}m",durationSec:"{s}s"},theme:{system:"System",light:"Light",dark:"Dark"},overview:{trafficTitle:"Live Traffic",trafficChartLabel:"Live traffic chart",download:"Download",upload:"Upload",totalDown:"Total Down",totalUp:"Total Up",modeTitle:"Outbound Mode",modeDesc:"How traffic is matched to outbounds",modeRule:"Rule",modeRuleDesc:"Route via rules",modeGlobal:"Global",modeGlobalDesc:"All via selected node",modeDirect:"Direct",modeDirectDesc:"Bypass all proxies",sysProxyTitle:"System Proxy",subTitle:"Profile",subSet:"Configure",coreTitle:"Core Info",uptime:"Uptime",mixedPort:"Mixed Proxy Port",controller:"Controller",daemonPort:"Daemon Port",lan:"LAN Access",switchesTitle:"Network switches"},proxies:{testAll:"Test latency",testNode:"Test latency for {name}",manual:"Manual Selection",auto:"Automatic",currentTag:"current",filter:"Filter nodes…",hideTimeout:"Show/hide timed-out nodes",toggleGroup:"Expand/collapse group",directHint:"Direct mode: all traffic bypasses proxy nodes.",noGroups:"No proxy groups",noGroupsHint:"Groups and nodes appear here after a subscription is imported"},connections:{active:"Active",totalShort:"Total: ↑{up} ↓{down}",searchPlaceholder:"Filter by host, IP, process…",closeAll:"Close all",pause:"Pause",resume:"Resume",sortTime:"Sort by start time",sortUpload:"Sort by upload",sortDownload:"Sort by download",sortHost:"Sort by destination",colAction:"Action",empty:"No active connections match",closeTitle:"Close connection",closeAllConfirm:"This will force-close all {n} active connections. Continue?"},rules:{searchPlaceholder:"Filter by type, payload, target…",colIndex:"#",colType:"Type",colPayload:"Payload",colTarget:"Target",empty:"No rules match"},logs:{searchPlaceholder:"Search logs…",levelLabel:"Log level",levelAll:"All",pause:"Pause scroll",resume:"Resume scroll",listening:"Listening for core log stream…",empty:"No logs at this level",modeLabel:"Outbound mode: {mode}"},profiles:{downloadPlaceholder:"Download from a URL",download:"Download",downloading:"Downloading…",updateAll:"Update All",import:"Import",paste:"Paste from clipboard",update:"Update",edit:"Edit",rename:"Rename",renameTitle:"Rename profile",nameLabel:"Name",delete:"Delete",clickToUse:"Click to activate this profile",localFile:"local file",neverUpdated:"never updated",usageLabel:"Subscription traffic usage",statGroups:"Proxy Groups",emptyTitle:"No profiles yet",emptyHint:"Download a subscription from a URL, or import a local YAML file",deleteConfirmTitle:"Delete profile",deleteConfirmMsg:'Delete "{name}"? This cannot be undone.'},editor:{title:"Edit Profile",saving:"Saving…",remoteWarning:"Subscription profile: the next update overwrites manual edits",discardConfirm:"Discard unsaved changes?"},settings:{appearanceTitle:"Appearance",appearanceDesc:"Follow the system or choose a console theme",editFile:"Edit settings file",fileTitle:"sash.json",fileHint:"daemonPort changes need a manual sash restart to take effect",themeTitle:"Theme",langTitle:"Language",langDesc:"Display language of the console",networkTitle:"Network & Listeners",mixedPortTitle:"Mixed Proxy Port",mixedPortDesc:"Local HTTP / SOCKS5 mixed inbound port (default 7890; core restarts on save)",allowLanTitle:"Allow LAN Connections",allowLanDesc:"Accept proxy requests from other devices on the LAN",coreTitle:"Core Control",restartTitle:"Restart Core Process",restartDesc:"Reboots the core child process and re-applies config; active connections drop",restartBtn:"Restart core",restartConfirmTitle:"Restart core",restartConfirmMsg:"Active connections will be interrupted. Continue?",reloadTitle:"Hot-Reload Config",reloadDesc:"Regenerates config.yaml and signals the core without a restart",reloadBtn:"Reload",aboutTitle:"Runtime Info",coreVersion:"Core Version"},toast:{modeOk:"Outbound mode switched to {mode}",sysProxyOn:"System proxy enabled",sysProxyOff:"System proxy disabled",nodeOk:"Switched to node {name}",testDone:"Latency test finished",profileAdded:'Downloaded "{name}"',profileActivated:'Switched to "{name}", {n} nodes loaded',profileUpdated:'"{name}" updated',profileSaved:'"{name}" saved',profileDeleted:'Deleted "{name}"',profileImported:'Imported "{name}"',profilesUpdateAllOk:"Updated {n} profiles",profilesUpdateAllPartial:"{n} updated, {f} failed",pasteFailed:"Cannot read the clipboard",portSaved:"Port updated, core restarted",settingSaved:"Setting updated",settingSavedUnverified:"Setting saved; runtime refresh is temporarily unavailable",settingsSavedRestart:"Settings saved; daemonPort changes take effect after a manual `sash restart`",coreRestarted:"Core restarted",configReloaded:"Config hot-reloaded, {n} nodes",connClosed:"Connection closed",connAllClosed:"All connections closed",langSwitched:"Language switched",failed:"Action failed: {msg}"},status:{offline:"Sash daemon unreachable, retrying automatically…",unauthorized:"This browser session is not authorized. Run 'sash web' to connect.",connectTitle:"Connect to Sash",connectDescription:"Run this command in the terminal where you use Sash. It opens and authorizes the dashboard in your browser.",coreDegraded:"Core data refresh failed; showing the last valid snapshot while retrying…",coreUnavailable:"Core is running, but runtime data is temporarily unavailable; retrying…"}},xf={app:{coreRunning:"核心运行中",coreStopped:"核心已停止",navigation:"主导航"},nav:{overview:"概览",profiles:"配置",logs:"日志",connections:"连接",rules:"规则",settings:"设置"},page:{overview:{title:"概览",desc:"实时流量、出站模式与核心状态"},logs:{title:"日志"},connections:{title:"连接"},rules:{title:"规则",desc:"核心当前使用的分流规则"},settings:{title:"设置",desc:"界面、网络监听与核心控制"}},common:{on:"开",off:"关",save:"保存",cancel:"取消",confirm:"确认",close:"关闭",clear:"清空",loading:"加载中…",reset:"重置",timeout:"超时",untested:"未测",running:"运行中",stopped:"已停止",live:"实时",nodesCount:"{n} 个节点",rulesCount:"{n} 条规则",previous:"上一页",next:"下一页",pageSummary:"第 {page} 页,共 {total} 页",toggle:"切换开关"},format:{justNow:"刚刚",minutesAgo:"{n} 分钟前",hoursAgo:"{n} 小时前",daysAgo:"{n} 天前",monthsAgo:"{n} 个月前",yearsAgo:"{n} 年前",durationDayHour:"{d} 天 {h} 小时",durationHourMin:"{h} 小时 {m} 分",durationMin:"{m} 分钟",durationSec:"{s} 秒"},theme:{system:"跟随系统",light:"浅色",dark:"深色"},overview:{trafficTitle:"实时流量",trafficChartLabel:"实时流量图",download:"下行",upload:"上行",totalDown:"累计下行",totalUp:"累计上行",modeTitle:"出站模式",modeDesc:"决定流量如何匹配出站",modeRule:"规则",modeRuleDesc:"按分流规则转发",modeGlobal:"全局",modeGlobalDesc:"全部走选中节点",modeDirect:"直连",modeDirectDesc:"全部不经过代理",sysProxyTitle:"系统代理",subTitle:"配置",subSet:"前往配置",coreTitle:"核心信息",uptime:"运行时长",mixedPort:"混合代理端口",controller:"控制接口",daemonPort:"守护进程端口",lan:"局域网访问",switchesTitle:"网络开关"},proxies:{testAll:"测试延迟",testNode:"测试 {name} 的延迟",manual:"手动选择",auto:"自动选择",currentTag:"当前",filter:"过滤节点…",hideTimeout:"显示/隐藏超时节点",toggleGroup:"展开/折叠策略组",directHint:"当前为直连模式,所有流量不经过代理节点。",noGroups:"暂无策略组",noGroupsHint:"导入订阅后,策略组和节点会显示在这里"},connections:{active:"活跃连接",totalShort:"总计: ↑{up} ↓{down}",searchPlaceholder:"按域名、IP、进程过滤…",closeAll:"关闭全部",pause:"暂停",resume:"继续",sortTime:"按时间排序",sortUpload:"按上行流量排序",sortDownload:"按下行流量排序",sortHost:"按目标地址排序",colAction:"操作",empty:"没有匹配的活跃连接",closeTitle:"关闭连接",closeAllConfirm:"将强制关闭全部 {n} 条活跃连接,确定继续?"},rules:{searchPlaceholder:"按类型、内容、目标过滤…",colIndex:"#",colType:"类型",colPayload:"匹配内容",colTarget:"目标策略",empty:"没有匹配的规则"},logs:{searchPlaceholder:"搜索日志…",levelLabel:"日志级别",levelAll:"全部",pause:"暂停滚动",resume:"恢复滚动",listening:"正在监听核心日志流…",empty:"当前级别暂无日志",modeLabel:"出站模式:{mode}"},profiles:{downloadPlaceholder:"输入订阅链接,从 URL 下载",download:"下载",downloading:"下载中…",updateAll:"全部更新",import:"导入",paste:"从剪贴板粘贴",update:"更新",edit:"编辑",rename:"改名",renameTitle:"重命名配置",nameLabel:"名称",delete:"删除",clickToUse:"点击切换到此配置",localFile:"本地文件",neverUpdated:"从未更新",usageLabel:"订阅流量用量",statGroups:"策略组",emptyTitle:"暂无配置",emptyHint:"从 URL 下载订阅,或导入本地 YAML 文件",deleteConfirmTitle:"删除配置",deleteConfirmMsg:"删除「{name}」?此操作不可恢复。"},editor:{title:"编辑配置",saving:"保存中…",remoteWarning:"订阅配置:下次更新会覆盖手动修改",discardConfirm:"有未保存的修改,确定放弃?"},settings:{appearanceTitle:"外观",appearanceDesc:"跟随系统或选择控制台主题",editFile:"编辑设置文件",fileTitle:"sash.json",fileHint:"daemonPort 保存后需手动 sash restart 生效",themeTitle:"主题",langTitle:"界面语言",langDesc:"切换控制台显示语言",networkTitle:"网络与监听",mixedPortTitle:"混合代理端口",mixedPortDesc:"本地 HTTP / SOCKS5 混合入站端口(默认 7890,保存后核心自动重启)",allowLanTitle:"允许局域网连接",allowLanDesc:"接受来自局域网其他设备的代理请求",coreTitle:"核心控制",restartTitle:"重启核心进程",restartDesc:"重启核心子进程并重新应用配置,活动连接会中断",restartBtn:"重启核心",restartConfirmTitle:"重启核心",restartConfirmMsg:"重启期间活动连接会中断,确定继续?",reloadTitle:"热加载配置",reloadDesc:"重新生成 config.yaml 并通知核心,无需重启进程",reloadBtn:"热加载",aboutTitle:"运行信息",coreVersion:"核心版本"},toast:{modeOk:"出站模式已切换为 {mode}",sysProxyOn:"系统代理已开启",sysProxyOff:"系统代理已关闭",nodeOk:"已切换到节点 {name}",testDone:"延迟测试完成",profileAdded:"已下载「{name}」",profileActivated:"已切换到「{name}」,共 {n} 个节点",profileUpdated:"「{name}」已更新",profileSaved:"「{name}」已保存",profileDeleted:"已删除「{name}」",profileImported:"已导入「{name}」",profilesUpdateAllOk:"已更新 {n} 个配置",profilesUpdateAllPartial:"{n} 个已更新,{f} 个失败",pasteFailed:"无法读取剪贴板",portSaved:"端口已更新,核心已重启",settingSaved:"设置已更新",settingSavedUnverified:"设置已保存,暂时无法刷新运行状态",settingsSavedRestart:"设置已保存;daemonPort 变更需手动执行 sash restart 生效",coreRestarted:"核心已重启",configReloaded:"配置已热加载,共 {n} 个节点",connClosed:"连接已关闭",connAllClosed:"已关闭全部连接",langSwitched:"界面语言已切换",failed:"操作失败: {msg}"},status:{offline:"无法连接 Sash 守护进程,正在自动重试…",unauthorized:"此浏览器会话未授权,请运行 sash web 完成连接。",connectTitle:"连接到 Sash",connectDescription:"在使用 Sash 的终端中运行以下命令,浏览器将自动打开并连接面板。",coreDegraded:"核心数据刷新失败,暂时显示最后一次有效快照并自动重试…",coreUnavailable:"核心正在运行,但运行数据暂时不可用,正在自动重试…"}},Gl="sash.locale",jl=typeof window<"u"&&typeof document<"u";function Sf(){try{const e=localStorage.getItem(Gl);if(e==="en"||e==="zh")return e}catch{}return"zh"}const io=De(Sf()),Tf={zh:xf,en:_f};function Th(e){io.value=e;try{localStorage.setItem(Gl,e)}catch{}jl&&(document.documentElement.lang=e==="zh"?"zh-CN":"en")}jl&&(document.documentElement.lang=io.value==="zh"?"zh-CN":"en");function x(e,t){let n=Tf[io.value];for(const o of e.split(".")){if(n===null||typeof n!="object"){n=void 0;break}n=n[o]}let s=typeof n=="string"?n:e;if(t)for(const[o,r]of Object.entries(t))s=s.replaceAll(`{${o}}`,String(r));return s}function Uo(e){if(!e||e<=0)return"0 B";const t=1024,n=["B","KB","MB","GB","TB"],s=Math.min(Math.floor(Math.log(e)/Math.log(t)),n.length-1),o=e/t**s;return`${o>=100?Math.round(o):o.toFixed(1)} ${n[s]}`}function pi(e){return`${Uo(e)}/s`}function Lf(e,t){if(!e)return"-";const n=new Date(e).getTime();if(Number.isNaN(n))return"-";let s=Math.max(0,Math.floor((Date.now()-n)/1e3));const o=Math.floor(s/86400);s%=86400;const r=Math.floor(s/3600),i=Math.floor(s%3600/60);return o>0?x("format.durationDayHour",{d:o,h:r}):r>0?x("format.durationHourMin",{h:r,m:i}):i>0?x("format.durationMin",{m:i}):x("format.durationSec",{s:Math.max(s%60,0)})}function Pf(e=new Date){const t=n=>String(n).padStart(2,"0");return`${t(e.getHours())}:${t(e.getMinutes())}:${t(e.getSeconds())}`}function Lh(e,t){const n=new Date(e).getTime();if(!Number.isFinite(n)||n<=0)return"-";const s=Math.floor(Math.max(0,Date.now()-n)/6e4);if(s<1)return x("format.justNow");if(s<60)return x("format.minutesAgo",{n:s});const o=Math.floor(s/60);if(o<24)return x("format.hoursAgo",{n:o});const r=Math.floor(o/24);if(r<30)return x("format.daysAgo",{n:r});const i=Math.floor(r/30);if(i<12)return x("format.monthsAgo",{n:i});const l=Math.floor(i/12);return x("format.yearsAgo",{n:l})}function Ph(e){const t=new Date(e*1e3),n=s=>String(s).padStart(2,"0");return`${t.getFullYear()}-${n(t.getMonth()+1)}-${n(t.getDate())}`}function Af(e){return e<=0?"bad":e<300?"good":e<800?"mid":"bad"}const Go="sash.control-token";let _s=null,ps=null,$n=0,En=null;const ln=De(!1);function Mf(){try{const e=window.sessionStorage.getItem(Go);return e?Fl(JSON.parse(e)):null}catch{return null}}function hs(e){_s=e,ln.value=e!==null;try{e?window.sessionStorage.setItem(Go,JSON.stringify(e)):window.sessionStorage.removeItem(Go)}catch{}}function $f(){if(typeof window>"u"||!window.location)return null;const e=new URLSearchParams(window.location.hash.slice(1));if(!e.has("boot"))return null;const t=e.get("boot")??"";return window.history.replaceState(null,"",`${window.location.pathname}${window.location.search}#/`),/^[a-f0-9]{64}$/.test(t)?t:null}const nt={token:()=>_s?.token??"",generation:()=>$n,startedAt:()=>ps,clear(){$n+=1,En=null,ps=null,hs(null)},reject(e){e&&e===_s?.token&&($n+=1,hs(null))},async initialize(e,t){const n=++$n,s=()=>t()&&n===$n,o=t()?$f():null;o&&(En=e.redeemWebBootstrap(o));const r=En;try{let i=_s??Mf();r&&(i=await r.catch(()=>null));const l=await e.health();return s()&&(hs(i?.daemonToken===l.token?i:null),ps=l.startedAt),l}catch(i){throw s()&&(hs(null),ps=null),i}finally{s()&&En===r&&(En=null)}}},Se=new df({baseUrl:"",token:nt.token,tokenHeader:"x-sash-token",onUnauthorized:nt.reject});async function ft(e,t={}){const n=nt.token();if(!n)throw new Bl(401,"unauthorized","Run 'sash web' to connect.");const s={};n&&(s["X-Sash-Token"]=n);let o;t.body!==void 0&&(s["Content-Type"]="application/json",o=JSON.stringify(t.body));const r=await fetch(e,{method:t.method??"GET",headers:s,body:o}),i=await r.text();if(r.status===401&&nt.reject(n),!r.ok){let l=i.slice(0,300).trim();if(i)try{const a=JSON.parse(i);a.error!==void 0&&(l=String(a.error))}catch{}throw new Error(l||`HTTP ${r.status}`)}if(t.response!=="void"){if(!i)throw new Error(`Empty JSON response from ${e}`);try{return JSON.parse(i)}catch(l){throw new Error(`Invalid JSON response from ${e}: ${l.message}`)}}}function hi(e,t,n){const o=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}${e}`;let r=null,i=null,l=!1;const a=()=>{n?.(),!(l||!nt.token()||i!==null)&&(i=window.setTimeout(()=>{i=null,u()},3e3))},u=()=>{const c=nt.token();if(!(l||!c))try{const d=c?[Ku,`${qu}${c}`]:void 0;r=new WebSocket(o,d),r.onmessage=m=>{let y;try{y=JSON.parse(m.data)}catch{return}t(y)},r.onclose=()=>{r=null,a()},r.onerror=()=>r?.close()}catch{a()}};return u(),()=>{l=!0,i!==null&&clearTimeout(i),r?.close()}}const le={initialize:(e=()=>!0)=>nt.initialize(Se,e),clearSession:nt.clear,hasSession:()=>nt.token()!=="",getSessionDaemonStartedAt:nt.startedAt,getHealth:()=>Se.health(),getStatus:()=>Se.status(),getSessionGeneration:nt.generation,enableSystemProxy:()=>Se.patchSettings({systemProxy:!0}),disableSystemProxy:()=>Se.patchSettings({systemProxy:!1}),getProfiles:()=>Se.listProfiles(),addProfile:e=>Se.addProfile(e),importProfile:(e,t)=>Se.importProfile(e,t),updateProfile:e=>Se.updateProfile(e),updateAllProfiles:()=>Se.updateAllProfiles(),setActiveProfile:e=>Se.activateProfile(e),deleteProfile:e=>Se.removeProfile(e),renameProfile:(e,t)=>Se.renameProfile(e,t),getProfileContent:e=>Se.getProfileContent(e),setProfileContent:(e,t)=>Se.writeProfileContent(e,t),patchSettings:e=>Se.patchSettings(e),getSettingsFile:()=>Se.getSettingsFile(),saveSettingsFile:e=>Se.writeSettingsFile(e),restartCore:()=>Se.restartCore(),reloadCoreConfig:()=>Se.reloadCoreConfig(),getConfigs:()=>ft("/core/api/configs"),setMode:e=>ft("/core/api/configs",{method:"PATCH",body:{mode:e},response:"void"}),getProxies:()=>ft("/core/api/proxies"),selectProxy:(e,t)=>ft(`/core/api/proxies/${encodeURIComponent(e)}`,{method:"PUT",body:{name:t},response:"void"}),testProxyDelay:(e,t="https://www.gstatic.com/generate_204",n=5e3)=>ft(`/core/api/proxies/${encodeURIComponent(e)}/delay?url=${encodeURIComponent(t)}&timeout=${n}`),testGroupDelay:(e,t="https://www.gstatic.com/generate_204",n=5e3)=>ft(`/core/api/group/${encodeURIComponent(e)}/delay?url=${encodeURIComponent(t)}&timeout=${n}`),getConnections:()=>ft("/core/api/connections"),closeConnection:e=>ft(`/core/api/connections/${encodeURIComponent(e)}`,{method:"DELETE",response:"void"}),closeAllConnections:()=>ft("/core/api/connections",{method:"DELETE",response:"void"}),getRules:()=>ft("/core/api/rules"),connectTraffic:(e,t)=>hi("/core/api/traffic",n=>{const s=gf(n);s&&e(s)},t),connectLogs:e=>hi("/core/api/logs",t=>{const n=vf(t);n&&e({...n,time:Pf()})})},Ef=["overview","profiles","logs","connections","rules","settings"];function Zl(){if(typeof window>"u")return"overview";let e=window.location.hash.replace(/^#\/?/,"").split("?")[0]??"";return e==="subscription"&&(e="profiles"),Ef.includes(e)?e:"overview"}const Ve=De(Zl());typeof window<"u"&&window.addEventListener("hashchange",()=>{Ve.value=Zl()});function xs(e){Ve.value!==e&&(window.location.hash=`/${e}`)}const Jn=60,ne=new pf,gt={observedOwner:null,snapshotProfileRevision:null,lastDaemonStartedAt:null},p=Bi({status:null,daemonOnline:!0,lastProfileRevision:null,coreSnapshotAvailable:!1,coreSnapshotError:null,mode:"rule",traffic:{up:0,down:0,historyUp:Array(Jn).fill(0),historyDown:Array(Jn).fill(0)},proxies:{},proxyGroups:[],manualProxyDelays:{},runtimeGeneration:0,connections:[],connectionsUploadTotal:0,connectionsDownloadTotal:0,rules:[],logs:[],profiles:[],activeProfileId:null,activeGroup:"",operations:{profileMutation:!1,mode:!1,systemProxy:!1,networkSetting:!1,proxySelections:{}},toasts:[]}),ms=ee(()=>mr(p.status)),Ss=ee(()=>p.status?.core.running??!1),jo=ee(()=>Ke(p.status)),Of=ee(()=>mf(p.daemonOnline,Ke(p.status),p.coreSnapshotAvailable,p.coreSnapshotError)),Rf=ee(()=>!p.operations.systemProxy&&Ul(p.status,!mr(p.status)));function Dt(e){return e instanceof Error?e.message:String(e)}function Kl(e){p.profiles=e.profiles,p.activeProfileId=e.activeId}function gr(e){const t=Fn(e);if(t===gt.observedOwner){t===null&&(p.coreSnapshotAvailable=!1,p.coreSnapshotError=null,gt.snapshotProfileRevision=null);return}gt.observedOwner=t,gt.snapshotProfileRevision=null,p.coreSnapshotAvailable=!1,p.coreSnapshotError=null,hf(p,Jn)}function Hf(e){gt.lastDaemonStartedAt!==e.daemon.startedAt&&(ne.invalidate("profiles"),p.lastProfileRevision=null),gt.lastDaemonStartedAt=e.daemon.startedAt,p.status=e,p.daemonOnline=!0,gr(e)}function yr(e,t){return ne.isCurrent("runtime",t)&&Fn(e)!==null&&Fn(p.status)===Fn(e)}function ql(e,t,n){yr(e,t)&&(p.coreSnapshotError=Dt(n).slice(0,300))}function Wl(e){return e??[]}function Jl(e){p.proxies=e;const t=new Set(["Selector","URLTest","Fallback","LoadBalance","Relay"]),n=Object.keys(e).filter(s=>t.has(e[s]?.type??"")||Array.isArray(e[s]?.all));p.proxyGroups=n,(!p.activeGroup||!n.includes(p.activeGroup))&&(p.activeGroup=n.find(s=>["PROXY","GLOBAL"].includes(s.toUpperCase()))??n[0]??"")}function Zo(){p.traffic={up:0,down:0,historyUp:Array(Jn).fill(0),historyDown:Array(Jn).fill(0)}}async function Df(e,t){if(Fn(e)===null)return!1;const n=["connections","proxies","rules"].map(l=>[l,ne.begin(l)]),[s,o,r,i]=await Promise.allSettled([le.getConfigs(),le.getProxies(),le.getRules(),le.getConnections()]);if(n.some(([l,a])=>!ne.isCurrent(l,a)))return!1;if(s.status==="rejected"||o.status==="rejected"||r.status==="rejected"||i.status==="rejected"){const l=[s,o,r,i].find(a=>a.status==="rejected");return ql(e,t,l?.reason??"Core snapshot failed"),!1}return yr(e,t)?(gt.snapshotProfileRevision!==null&>.snapshotProfileRevision!==e.revisions.profiles&&(p.manualProxyDelays={},Zo(),p.runtimeGeneration+=1),p.mode=s.value.mode,Jl(o.value.proxies),p.rules=r.value.rules,p.connections=Wl(i.value.connections),p.connectionsUploadTotal=i.value.uploadTotal,p.connectionsDownloadTotal=i.value.downloadTotal,gt.snapshotProfileRevision=e.revisions.profiles,p.coreSnapshotAvailable=!0,p.coreSnapshotError=null,!0):!1}async function Yl(e,t,n){const s=p.status;if(s===null||!Ke(s))return;const o=ne.current("runtime"),r=ne.begin(e);try{const i=await t();ne.isCurrent(e,r)&&yr(s,o)&&n(i)}catch(i){throw ne.isCurrent(e,r)&&ql(s,o,i),i}}function mi(){return Yl("connections",le.getConnections,e=>{p.connections=Wl(e.connections),p.connectionsUploadTotal=e.uploadTotal,p.connectionsDownloadTotal=e.downloadTotal})}async function Ah(e){if(!Ke(p.status))throw new Error("Core is not healthy");await le.closeConnection(e),p.connections=p.connections.filter(t=>t.id!==e)}async function Mh(){if(!Ke(p.status))throw new Error("Core is not healthy");await le.closeAllConnections(),p.connections=[]}function Vf(){return Yl("proxies",le.getProxies,e=>Jl(e.proxies))}async function Nf(e){if(p.operations.mode||e===p.mode)return;if(!Ke(p.status))throw new Error("Core is not healthy");p.operations={...p.operations,mode:!0},ne.invalidate("runtime");const t=ne.begin("mode");try{await le.setMode(e),ne.invalidate("runtime"),ne.isCurrent("mode",t)&&(p.mode=e)}finally{ne.isCurrent("mode",t)&&(p.operations={...p.operations,mode:!1})}}async function If(e,t){if(p.operations.proxySelections[e])return;if(!Ke(p.status))throw new Error("Core is not healthy");p.operations={...p.operations,proxySelections:{...p.operations.proxySelections,[e]:!0}},ne.invalidate("runtime");const n=`proxy-selection:${e}`,s=ne.begin(n);try{await le.selectProxy(e,t),ne.invalidate("runtime");const o=p.proxies[e];ne.isCurrent(n,s)&&o&&(p.proxies={...p.proxies,[e]:{...o,now:t}})}finally{if(ne.isCurrent(n,s)){const o={...p.operations.proxySelections};delete o[e],p.operations={...p.operations,proxySelections:o}}}}function gi(e,t,n){n!==p.runtimeGeneration||!p.proxies[e]||(p.manualProxyDelays={...p.manualProxyDelays,[e]:t})}function kf(e,t){if(t!==p.runtimeGeneration)return;const n={...p.manualProxyDelays};for(const[s,o]of Object.entries(e))p.proxies[s]&&(n[s]=o);p.manualProxyDelays=n}function yi(e){return wf(e,p.proxies,p.manualProxyDelays)}function Ff(){ne.invalidate("runtime"),ne.invalidate("profiles"),gr(null),p.daemonOnline=!1,p.status=null}async function Bf(e,t){if(p.lastProfileRevision===e.revisions.profiles)return!0;const n=ne.begin("profiles");try{const s=await le.getProfiles();return!ne.isCurrent("runtime",t)||!ne.isCurrent("profiles",n)||p.status?.daemon.startedAt!==e.daemon.startedAt?!1:(Kl(s),p.lastProfileRevision=e.revisions.profiles,!0)}catch{return!1}}async function lo(e,t=ne.begin("runtime"),n=()=>!0){const s=()=>n()&&ne.isCurrent("runtime",t);let o;try{o=await le.getStatus()}catch(a){if(!s())return"superseded";throw a}if(!s())return"superseded";if(Hf(o),!le.hasSession())return gr(null),"unauthorized";const r=Bf(o,t);if(!Ke(o))return await r,s()?o.core.running?"degraded":"stopped":"superseded";if(!(e||!p.coreSnapshotAvailable||p.coreSnapshotError!==null||gt.snapshotProfileRevision!==o.revisions.profiles))return await r,s()?"status":"superseded";const[,l]=await Promise.all([r,Df(o,t)]);return s()?l?"full":"degraded":"superseded"}async function vr(){await lo(!0)}function Ko(){return lo(!1)}function zf(e=2e3){const t=Math.max(e,15e3);let n=!1,s=!1,o=!1,r=null,i=0,l=0;const a=()=>{r!==null&&(window.clearTimeout(r),r=null)},u=y=>{a(),r=window.setTimeout(()=>{r=null,c()},y)},c=async()=>{if(n||s)return;s=!0;const y=ne.begin("runtime");l=y;const b=()=>!n&&ne.isCurrent("runtime",y);try{if(await le.initialize(b),!b())return;const w=await lo(!1,y,()=>!n);if(!b())return;i+=1,w==="status"&&Ke(p.status)&&((Ve.value==="connections"||Ve.value==="overview")&&await mi().catch(()=>{}),i%3===0&&await Vf().catch(()=>{}))}catch{b()&&Ff()}finally{s=!1,n||(o&&!document.hidden?(o=!1,u(0)):u(document.hidden?t:e))}},d=()=>{n||(a(),document.hidden?(o=!1,s||u(t)):s?o=!0:c())};document.addEventListener("visibilitychange",d);const m=Nt(Ve,y=>{n||le.hasSession()&&(y==="connections"||y==="overview")&&Ke(p.status)&&mi().catch(()=>{})});return c(),()=>{n=!0,s&&ne.isCurrent("runtime",l)&&ne.invalidate("runtime"),o=!1,a(),m(),document.removeEventListener("visibilitychange",d)}}async function Uf(e){if(p.operations.systemProxy)return!1;if(!Ul(p.status,e))throw new Error(e?"Cannot enable system proxy: Core is not healthy":"System proxy is already off");p.operations={...p.operations,systemProxy:!0},ne.invalidate("runtime");try{let t;try{t=e?await le.enableSystemProxy():await le.disableSystemProxy()}catch(n){throw await Ko().catch(()=>{}),n}return p.status&&(p.status={...p.status,settings:t.settings,systemProxy:{...p.status.systemProxy,desired:t.settings.systemProxy}}),await Ko().then(n=>n!=="superseded"&&n!=="degraded"&&n!=="unauthorized",()=>!1)}finally{p.operations={...p.operations,systemProxy:!1}}}async function Gf(e){if(p.operations.networkSetting)return!1;p.operations={...p.operations,networkSetting:!0},ne.invalidate("runtime");try{let t;try{t=await le.patchSettings({allowLan:e})}catch(n){throw await vr().catch(()=>{}),n}return p.status=Cf(p.status,e,t.settings),await lo(!0).then(n=>n!=="superseded"&&n!=="degraded"&&n!=="unauthorized",()=>!1)}finally{p.operations={...p.operations,networkSetting:!1}}}async function jf(){const e=ne.begin("profiles"),t=p.status,n=await le.getProfiles();ne.isCurrent("profiles",e)&&(Kl(n),t&&p.status?.daemon.startedAt===t.daemon.startedAt&&(p.lastProfileRevision=t.revisions.profiles))}async function sn(e,t){if(p.operations.profileMutation)throw new Error("A profile operation is already running");p.operations={...p.operations,profileMutation:!0},ne.invalidate("runtime"),ne.invalidate("profiles");try{return await bf(e,jf,async n=>{t(n)&&await vr()})}finally{p.operations={...p.operations,profileMutation:!1}}}async function $h(e,t){await le.renameProfile(e,t),await Ko()}function Eh(e){return sn(()=>le.addProfile(e),t=>t.activated)}function Oh(e,t){return sn(()=>le.importProfile(e,t),n=>n.activated)}function Zf(e){return sn(()=>le.updateProfile(e),t=>t.proxyCount!==void 0)}function Rh(e,t){return sn(()=>le.setProfileContent(e,t),n=>n.proxyCount!==void 0)}function Hh(){return sn(()=>le.updateAllProfiles(),e=>e.proxyCount!==void 0)}function Dh(e){return sn(()=>le.setActiveProfile(e),()=>!0)}function Vh(e){return sn(()=>le.deleteProfile(e),t=>t.wasActive)}const Kf=100;let qf=0,Bn=[],zn=null;function Wf(e,t=p.runtimeGeneration){t!==p.runtimeGeneration||!Ke(p.status)||(p.traffic={up:e.up,down:e.down,historyUp:[...p.traffic.historyUp.slice(-59),e.up],historyDown:[...p.traffic.historyDown.slice(-59),e.down]})}function Jf(e,t=p.runtimeGeneration){t===p.runtimeGeneration&&(Bn.push({...e,id:++qf}),zn===null&&(zn=setTimeout(Yf,Kf)))}function Yf(){zn!==null&&(clearTimeout(zn),zn=null),Bn.length!==0&&(p.logs=p.logs.concat(Bn).slice(-600),Bn=[])}function Nh(){Bn=[],p.logs=[]}let Xf=0;function xo(e,t){const n=++Xf;p.toasts=[...p.toasts,{id:n,kind:e,text:t}],window.setTimeout(()=>Xl(n),4200)}function Xl(e){p.toasts=p.toasts.filter(t=>t.id!==e)}const Ue={success:e=>xo("success",e),error:e=>xo("error",e),info:e=>xo("info",e)},Qf=Array.prototype.slice;function k(e,t=null,n=null){return(arguments.length>3||hn(n))&&(n=Qf.call(arguments,2)),X(e,t,n)}const ed=q({name:"RiArrowLeftRightLine",props:{size:{type:String,default:"24px"},color:{type:String,default:"currentColor"},className:{type:String,default:""}},render(){return k("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:this.size,height:this.size,fill:this.color,class:["remixicon",this.className]},k("path",{d:"M16.0503 12.0498L21 16.9996L16.0503 21.9493L14.636 20.5351L17.172 17.9988L4 17.9996V15.9996L17.172 15.9988L14.636 13.464L16.0503 12.0498ZM7.94975 2.0498L9.36396 3.46402L6.828 5.9988L20 5.99955V7.99955L6.828 7.9988L9.36396 10.5351L7.94975 11.9493L3 6.99955L7.94975 2.0498Z"}))}}),td=q({name:"RiCheckboxCircleLine",props:{size:{type:String,default:"24px"},color:{type:String,default:"currentColor"},className:{type:String,default:""}},render(){return k("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:this.size,height:this.size,fill:this.color,class:["remixicon",this.className]},k("path",{d:"M4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12ZM12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM17.4571 9.45711L16.0429 8.04289L11 13.0858L8.20711 10.2929L6.79289 11.7071L11 15.9142L17.4571 9.45711Z"}))}}),nd=q({name:"RiClipboardLine",props:{size:{type:String,default:"24px"},color:{type:String,default:"currentColor"},className:{type:String,default:""}},render(){return k("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:this.size,height:this.size,fill:this.color,class:["remixicon",this.className]},k("path",{d:"M7 4V2H17V4H20.0066C20.5552 4 21 4.44495 21 4.9934V21.0066C21 21.5552 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5551 3 21.0066V4.9934C3 4.44476 3.44495 4 3.9934 4H7ZM7 6H5V20H19V6H17V8H7V6ZM9 4V6H15V4H9Z"}))}}),sd=q({name:"RiCloseLine",props:{size:{type:String,default:"24px"},color:{type:String,default:"currentColor"},className:{type:String,default:""}},render(){return k("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:this.size,height:this.size,fill:this.color,class:["remixicon",this.className]},k("path",{d:"M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z"}))}}),od=q({name:"RiCodeSSlashLine",props:{size:{type:String,default:"24px"},color:{type:String,default:"currentColor"},className:{type:String,default:""}},render(){return k("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:this.size,height:this.size,fill:this.color,class:["remixicon",this.className]},k("path",{d:"M24 12L18.3431 17.6569L16.9289 16.2426L21.1716 12L16.9289 7.75736L18.3431 6.34315L24 12ZM2.82843 12L7.07107 16.2426L5.65685 17.6569L0 12L5.65685 6.34315L7.07107 7.75736L2.82843 12ZM9.78845 21H7.66009L14.2116 3H16.3399L9.78845 21Z"}))}}),rd=q({name:"RiComputerLine",props:{size:{type:String,default:"24px"},color:{type:String,default:"currentColor"},className:{type:String,default:""}},render(){return k("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:this.size,height:this.size,fill:this.color,class:["remixicon",this.className]},k("path",{d:"M4 16H20V5H4V16ZM13 18V20H17V22H7V20H11V18H2.9918C2.44405 18 2 17.5511 2 16.9925V4.00748C2 3.45107 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44892 22 4.00748V16.9925C22 17.5489 21.5447 18 21.0082 18H13Z"}))}}),id=q({name:"RiDashboardLine",props:{size:{type:String,default:"24px"},color:{type:String,default:"currentColor"},className:{type:String,default:""}},render(){return k("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:this.size,height:this.size,fill:this.color,class:["remixicon",this.className]},k("path",{d:"M14 21C13.4477 21 13 20.5523 13 20V12C13 11.4477 13.4477 11 14 11H20C20.5523 11 21 11.4477 21 12V20C21 20.5523 20.5523 21 20 21H14ZM4 13C3.44772 13 3 12.5523 3 12V4C3 3.44772 3.44772 3 4 3H10C10.5523 3 11 3.44772 11 4V12C11 12.5523 10.5523 13 10 13H4ZM9 11V5H5V11H9ZM4 21C3.44772 21 3 20.5523 3 20V16C3 15.4477 3.44772 15 4 15H10C10.5523 15 11 15.4477 11 16V20C11 20.5523 10.5523 21 10 21H4ZM5 19H9V17H5V19ZM15 19H19V13H15V19ZM13 4C13 3.44772 13.4477 3 14 3H20C20.5523 3 21 3.44772 21 4V8C21 8.55228 20.5523 9 20 9H14C13.4477 9 13 8.55228 13 8V4ZM15 5V7H19V5H15Z"}))}}),ld=q({name:"RiDeleteBin6Line",props:{size:{type:String,default:"24px"},color:{type:String,default:"currentColor"},className:{type:String,default:""}},render(){return k("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:this.size,height:this.size,fill:this.color,class:["remixicon",this.className]},k("path",{d:"M7 4V2H17V4H22V6H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V6H2V4H7ZM6 6V20H18V6H6ZM9 9H11V17H9V9ZM13 9H15V17H13V9Z"}))}}),ad=q({name:"RiDownload2Line",props:{size:{type:String,default:"24px"},color:{type:String,default:"currentColor"},className:{type:String,default:""}},render(){return k("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:this.size,height:this.size,fill:this.color,class:["remixicon",this.className]},k("path",{d:"M13 10H18L12 16L6 10H11V3H13V10ZM4 19H20V12H22V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V12H4V19Z"}))}}),cd=q({name:"RiEditLine",props:{size:{type:String,default:"24px"},color:{type:String,default:"currentColor"},className:{type:String,default:""}},render(){return k("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:this.size,height:this.size,fill:this.color,class:["remixicon",this.className]},k("path",{d:"M6.41421 15.89L16.5563 5.74785L15.1421 4.33363L5 14.4758V15.89H6.41421ZM7.24264 17.89H3V13.6473L14.435 2.21231C14.8256 1.82179 15.4587 1.82179 15.8492 2.21231L18.6777 5.04074C19.0682 5.43126 19.0682 6.06443 18.6777 6.45495L7.24264 17.89ZM3 19.89H21V21.89H3V19.89Z"}))}}),ud=q({name:"RiErrorWarningLine",props:{size:{type:String,default:"24px"},color:{type:String,default:"currentColor"},className:{type:String,default:""}},render(){return k("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:this.size,height:this.size,fill:this.color,class:["remixicon",this.className]},k("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z"}))}}),fd=q({name:"RiEyeLine",props:{size:{type:String,default:"24px"},color:{type:String,default:"currentColor"},className:{type:String,default:""}},render(){return k("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:this.size,height:this.size,fill:this.color,class:["remixicon",this.className]},k("path",{d:"M12.0003 3C17.3924 3 21.8784 6.87976 22.8189 12C21.8784 17.1202 17.3924 21 12.0003 21C6.60812 21 2.12215 17.1202 1.18164 12C2.12215 6.87976 6.60812 3 12.0003 3ZM12.0003 19C16.2359 19 19.8603 16.052 20.7777 12C19.8603 7.94803 16.2359 5 12.0003 5C7.7646 5 4.14022 7.94803 3.22278 12C4.14022 16.052 7.7646 19 12.0003 19ZM12.0003 16.5C9.51498 16.5 7.50026 14.4853 7.50026 12C7.50026 9.51472 9.51498 7.5 12.0003 7.5C14.4855 7.5 16.5003 9.51472 16.5003 12C16.5003 14.4853 14.4855 16.5 12.0003 16.5ZM12.0003 14.5C13.381 14.5 14.5003 13.3807 14.5003 12C14.5003 10.6193 13.381 9.5 12.0003 9.5C10.6196 9.5 9.50026 10.6193 9.50026 12C9.50026 13.3807 10.6196 14.5 12.0003 14.5Z"}))}}),dd=q({name:"RiEyeOffLine",props:{size:{type:String,default:"24px"},color:{type:String,default:"currentColor"},className:{type:String,default:""}},render(){return k("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:this.size,height:this.size,fill:this.color,class:["remixicon",this.className]},k("path",{d:"M17.8827 19.2968C16.1814 20.3755 14.1638 21.0002 12.0003 21.0002C6.60812 21.0002 2.12215 17.1204 1.18164 12.0002C1.61832 9.62282 2.81932 7.5129 4.52047 5.93457L1.39366 2.80777L2.80788 1.39355L22.6069 21.1925L21.1927 22.6068L17.8827 19.2968ZM5.9356 7.3497C4.60673 8.56015 3.6378 10.1672 3.22278 12.0002C4.14022 16.0521 7.7646 19.0002 12.0003 19.0002C13.5997 19.0002 15.112 18.5798 16.4243 17.8384L14.396 15.8101C13.7023 16.2472 12.8808 16.5002 12.0003 16.5002C9.51498 16.5002 7.50026 14.4854 7.50026 12.0002C7.50026 11.1196 7.75317 10.2981 8.19031 9.60442L5.9356 7.3497ZM12.9139 14.328L9.67246 11.0866C9.5613 11.3696 9.50026 11.6777 9.50026 12.0002C9.50026 13.3809 10.6196 14.5002 12.0003 14.5002C12.3227 14.5002 12.6309 14.4391 12.9139 14.328ZM20.8068 16.5925L19.376 15.1617C20.0319 14.2268 20.5154 13.1586 20.7777 12.0002C19.8603 7.94818 16.2359 5.00016 12.0003 5.00016C11.1544 5.00016 10.3329 5.11773 9.55249 5.33818L7.97446 3.76015C9.22127 3.26959 10.5793 3.00016 12.0003 3.00016C17.3924 3.00016 21.8784 6.87992 22.8189 12.0002C22.5067 13.6998 21.8038 15.2628 20.8068 16.5925ZM11.7229 7.50857C11.8146 7.50299 11.9071 7.50016 12.0003 7.50016C14.4855 7.50016 16.5003 9.51488 16.5003 12.0002C16.5003 12.0933 16.4974 12.1858 16.4919 12.2775L11.7229 7.50857Z"}))}}),pd=q({name:"RiFilter3Line",props:{size:{type:String,default:"24px"},color:{type:String,default:"currentColor"},className:{type:String,default:""}},render(){return k("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:this.size,height:this.size,fill:this.color,class:["remixicon",this.className]},k("path",{d:"M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z"}))}}),hd=q({name:"RiFlashlightLine",props:{size:{type:String,default:"24px"},color:{type:String,default:"currentColor"},className:{type:String,default:""}},render(){return k("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:this.size,height:this.size,fill:this.color,class:["remixicon",this.className]},k("path",{d:"M13 9H21L11 24V15H4L13 0V9ZM11 11V7.22063L7.53238 13H13V17.3944L17.263 11H11Z"}))}}),md=q({name:"RiGlobalLine",props:{size:{type:String,default:"24px"},color:{type:String,default:"currentColor"},className:{type:String,default:""}},render(){return k("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:this.size,height:this.size,fill:this.color,class:["remixicon",this.className]},k("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM9.71002 19.6674C8.74743 17.6259 8.15732 15.3742 8.02731 13H4.06189C4.458 16.1765 6.71639 18.7747 9.71002 19.6674ZM10.0307 13C10.1811 15.4388 10.8778 17.7297 12 19.752C13.1222 17.7297 13.8189 15.4388 13.9693 13H10.0307ZM19.9381 13H15.9727C15.8427 15.3742 15.2526 17.6259 14.29 19.6674C17.2836 18.7747 19.542 16.1765 19.9381 13ZM4.06189 11H8.02731C8.15732 8.62577 8.74743 6.37407 9.71002 4.33256C6.71639 5.22533 4.458 7.8235 4.06189 11ZM10.0307 11H13.9693C13.8189 8.56122 13.1222 6.27025 12 4.24799C10.8778 6.27025 10.1811 8.56122 10.0307 11ZM14.29 4.33256C15.2526 6.37407 15.8427 8.62577 15.9727 11H19.9381C19.542 7.8235 17.2836 5.22533 14.29 4.33256Z"}))}}),gd=q({name:"RiInformationLine",props:{size:{type:String,default:"24px"},color:{type:String,default:"currentColor"},className:{type:String,default:""}},render(){return k("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:this.size,height:this.size,fill:this.color,class:["remixicon",this.className]},k("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z"}))}}),yd=q({name:"RiLoader2Line",props:{size:{type:String,default:"24px"},color:{type:String,default:"currentColor"},className:{type:String,default:""}},render(){return k("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:this.size,height:this.size,fill:this.color,class:["remixicon",this.className]},k("path",{d:"M12 2C12.5523 2 13 2.44772 13 3V6C13 6.55228 12.5523 7 12 7C11.4477 7 11 6.55228 11 6V3C11 2.44772 11.4477 2 12 2ZM12 17C12.5523 17 13 17.4477 13 18V21C13 21.5523 12.5523 22 12 22C11.4477 22 11 21.5523 11 21V18C11 17.4477 11.4477 17 12 17ZM22 12C22 12.5523 21.5523 13 21 13H18C17.4477 13 17 12.5523 17 12C17 11.4477 17.4477 11 18 11H21C21.5523 11 22 11.4477 22 12ZM7 12C7 12.5523 6.55228 13 6 13H3C2.44772 13 2 12.5523 2 12C2 11.4477 2.44772 11 3 11H6C6.55228 11 7 11.4477 7 12ZM19.0711 19.0711C18.6805 19.4616 18.0474 19.4616 17.6569 19.0711L15.5355 16.9497C15.145 16.5592 15.145 15.9261 15.5355 15.5355C15.9261 15.145 16.5592 15.145 16.9497 15.5355L19.0711 17.6569C19.4616 18.0474 19.4616 18.6805 19.0711 19.0711ZM8.46447 8.46447C8.07394 8.85499 7.44078 8.85499 7.05025 8.46447L4.92893 6.34315C4.53841 5.95262 4.53841 5.31946 4.92893 4.92893C5.31946 4.53841 5.95262 4.53841 6.34315 4.92893L8.46447 7.05025C8.85499 7.44078 8.85499 8.07394 8.46447 8.46447ZM4.92893 19.0711C4.53841 18.6805 4.53841 18.0474 4.92893 17.6569L7.05025 15.5355C7.44078 15.145 8.07394 15.145 8.46447 15.5355C8.85499 15.9261 8.85499 16.5592 8.46447 16.9497L6.34315 19.0711C5.95262 19.4616 5.31946 19.4616 4.92893 19.0711ZM15.5355 8.46447C15.145 8.07394 15.145 7.44078 15.5355 7.05025L17.6569 4.92893C18.0474 4.53841 18.6805 4.53841 19.0711 4.92893C19.4616 5.31946 19.4616 5.95262 19.0711 6.34315L16.9497 8.46447C16.5592 8.85499 15.9261 8.85499 15.5355 8.46447Z"}))}}),vd=q({name:"RiMoonLine",props:{size:{type:String,default:"24px"},color:{type:String,default:"currentColor"},className:{type:String,default:""}},render(){return k("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:this.size,height:this.size,fill:this.color,class:["remixicon",this.className]},k("path",{d:"M10 7C10 10.866 13.134 14 17 14C18.9584 14 20.729 13.1957 21.9995 11.8995C22 11.933 22 11.9665 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C12.0335 2 12.067 2 12.1005 2.00049C10.8043 3.27098 10 5.04157 10 7ZM4 12C4 16.4183 7.58172 20 12 20C15.0583 20 17.7158 18.2839 19.062 15.7621C18.3945 15.9187 17.7035 16 17 16C12.0294 16 8 11.9706 8 7C8 6.29648 8.08133 5.60547 8.2379 4.938C5.71611 6.28423 4 8.9417 4 12Z"}))}}),wd=q({name:"RiPauseLine",props:{size:{type:String,default:"24px"},color:{type:String,default:"currentColor"},className:{type:String,default:""}},render(){return k("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:this.size,height:this.size,fill:this.color,class:["remixicon",this.className]},k("path",{d:"M6 5H8V19H6V5ZM16 5H18V19H16V5Z"}))}}),Cd=q({name:"RiPencilLine",props:{size:{type:String,default:"24px"},color:{type:String,default:"currentColor"},className:{type:String,default:""}},render(){return k("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:this.size,height:this.size,fill:this.color,class:["remixicon",this.className]},k("path",{d:"M15.7279 9.57627L14.3137 8.16206L5 17.4758V18.89H6.41421L15.7279 9.57627ZM17.1421 8.16206L18.5563 6.74785L17.1421 5.33363L15.7279 6.74785L17.1421 8.16206ZM7.24264 20.89H3V16.6473L16.435 3.21231C16.8256 2.82179 17.4587 2.82179 17.8492 3.21231L20.6777 6.04074C21.0682 6.43126 21.0682 7.06443 20.6777 7.45495L7.24264 20.89Z"}))}}),bd=q({name:"RiPlayLine",props:{size:{type:String,default:"24px"},color:{type:String,default:"currentColor"},className:{type:String,default:""}},render(){return k("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:this.size,height:this.size,fill:this.color,class:["remixicon",this.className]},k("path",{d:"M16.3944 12.0001L10 7.7371V16.263L16.3944 12.0001ZM19.376 12.4161L8.77735 19.4818C8.54759 19.635 8.23715 19.5729 8.08397 19.3432C8.02922 19.261 8 19.1645 8 19.0658V4.93433C8 4.65818 8.22386 4.43433 8.5 4.43433C8.59871 4.43433 8.69522 4.46355 8.77735 4.5183L19.376 11.584C19.6057 11.7372 19.6678 12.0477 19.5146 12.2774C19.478 12.3323 19.4309 12.3795 19.376 12.4161Z"}))}}),_d=q({name:"RiQuestionLine",props:{size:{type:String,default:"24px"},color:{type:String,default:"currentColor"},className:{type:String,default:""}},render(){return k("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:this.size,height:this.size,fill:this.color,class:["remixicon",this.className]},k("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM13 13.3551V14H11V12.5C11 11.9477 11.4477 11.5 12 11.5C12.8284 11.5 13.5 10.8284 13.5 10C13.5 9.17157 12.8284 8.5 12 8.5C11.2723 8.5 10.6656 9.01823 10.5288 9.70577L8.56731 9.31346C8.88637 7.70919 10.302 6.5 12 6.5C13.933 6.5 15.5 8.067 15.5 10C15.5 11.5855 14.4457 12.9248 13 13.3551Z"}))}}),xd=q({name:"RiRefreshLine",props:{size:{type:String,default:"24px"},color:{type:String,default:"currentColor"},className:{type:String,default:""}},render(){return k("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:this.size,height:this.size,fill:this.color,class:["remixicon",this.className]},k("path",{d:"M5.46257 4.43262C7.21556 2.91688 9.5007 2 12 2C17.5228 2 22 6.47715 22 12C22 14.1361 21.3302 16.1158 20.1892 17.7406L17 12H20C20 7.58172 16.4183 4 12 4C9.84982 4 7.89777 4.84827 6.46023 6.22842L5.46257 4.43262ZM18.5374 19.5674C16.7844 21.0831 14.4993 22 12 22C6.47715 22 2 17.5228 2 12C2 9.86386 2.66979 7.88416 3.8108 6.25944L7 12H4C4 16.4183 7.58172 20 12 20C14.1502 20 16.1022 19.1517 17.5398 17.7716L18.5374 19.5674Z"}))}}),Sd=q({name:"RiSearchLine",props:{size:{type:String,default:"24px"},color:{type:String,default:"currentColor"},className:{type:String,default:""}},render(){return k("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:this.size,height:this.size,fill:this.color,class:["remixicon",this.className]},k("path",{d:"M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z"}))}}),Td=q({name:"RiSettings3Line",props:{size:{type:String,default:"24px"},color:{type:String,default:"currentColor"},className:{type:String,default:""}},render(){return k("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:this.size,height:this.size,fill:this.color,class:["remixicon",this.className]},k("path",{d:"M3.33946 17.0002C2.90721 16.2515 2.58277 15.4702 2.36133 14.6741C3.3338 14.1779 3.99972 13.1668 3.99972 12.0002C3.99972 10.8345 3.3348 9.824 2.36353 9.32741C2.81025 7.71651 3.65857 6.21627 4.86474 4.99001C5.7807 5.58416 6.98935 5.65534 7.99972 5.072C9.01009 4.48866 9.55277 3.40635 9.4962 2.31604C11.1613 1.8846 12.8847 1.90004 14.5031 2.31862C14.4475 3.40806 14.9901 4.48912 15.9997 5.072C17.0101 5.65532 18.2187 5.58416 19.1346 4.99007C19.7133 5.57986 20.2277 6.25151 20.66 7.00021C21.0922 7.7489 21.4167 8.53025 21.6381 9.32628C20.6656 9.82247 19.9997 10.8336 19.9997 12.0002C19.9997 13.166 20.6646 14.1764 21.6359 14.673C21.1892 16.2839 20.3409 17.7841 19.1347 19.0104C18.2187 18.4163 17.0101 18.3451 15.9997 18.9284C14.9893 19.5117 14.4467 20.5941 14.5032 21.6844C12.8382 22.1158 11.1148 22.1004 9.49633 21.6818C9.55191 20.5923 9.00929 19.5113 7.99972 18.9284C6.98938 18.3451 5.78079 18.4162 4.86484 19.0103C4.28617 18.4205 3.77172 17.7489 3.33946 17.0002ZM8.99972 17.1964C10.0911 17.8265 10.8749 18.8227 11.2503 19.9659C11.7486 20.0133 12.2502 20.014 12.7486 19.9675C13.1238 18.8237 13.9078 17.8268 14.9997 17.1964C16.0916 16.5659 17.347 16.3855 18.5252 16.6324C18.8146 16.224 19.0648 15.7892 19.2729 15.334C18.4706 14.4373 17.9997 13.2604 17.9997 12.0002C17.9997 10.74 18.4706 9.5632 19.2729 8.6665C19.1688 8.4405 19.0538 8.21822 18.9279 8.00021C18.802 7.78219 18.667 7.57148 18.5233 7.36842C17.3457 7.61476 16.0911 7.43414 14.9997 6.80405C13.9083 6.17395 13.1246 5.17768 12.7491 4.03455C12.2509 3.98714 11.7492 3.98646 11.2509 4.03292C10.8756 5.17671 10.0916 6.17364 8.99972 6.80405C7.9078 7.43447 6.65245 7.61494 5.47428 7.36803C5.18485 7.77641 4.93463 8.21117 4.72656 8.66637C5.52881 9.56311 5.99972 10.74 5.99972 12.0002C5.99972 13.2604 5.52883 14.4372 4.72656 15.3339C4.83067 15.5599 4.94564 15.7822 5.07152 16.0002C5.19739 16.2182 5.3324 16.4289 5.47612 16.632C6.65377 16.3857 7.90838 16.5663 8.99972 17.1964ZM11.9997 15.0002C10.3429 15.0002 8.99972 13.6571 8.99972 12.0002C8.99972 10.3434 10.3429 9.00021 11.9997 9.00021C13.6566 9.00021 14.9997 10.3434 14.9997 12.0002C14.9997 13.6571 13.6566 15.0002 11.9997 15.0002ZM11.9997 13.0002C12.552 13.0002 12.9997 12.5525 12.9997 12.0002C12.9997 11.4479 12.552 11.0002 11.9997 11.0002C11.4474 11.0002 10.9997 11.4479 10.9997 12.0002C10.9997 12.5525 11.4474 13.0002 11.9997 13.0002Z"}))}}),Ld=q({name:"RiShutDownLine",props:{size:{type:String,default:"24px"},color:{type:String,default:"currentColor"},className:{type:String,default:""}},render(){return k("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:this.size,height:this.size,fill:this.color,class:["remixicon",this.className]},k("path",{d:"M6.26489 3.80698L7.41191 5.44558C5.34875 6.89247 4 9.28873 4 12C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 9.28873 18.6512 6.89247 16.5881 5.44558L17.7351 3.80698C20.3141 5.61559 22 8.61091 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 8.61091 3.68594 5.61559 6.26489 3.80698ZM11 12V2H13V12H11Z"}))}}),Pd=q({name:"RiSpeedLine",props:{size:{type:String,default:"24px"},color:{type:String,default:"currentColor"},className:{type:String,default:""}},render(){return k("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:this.size,height:this.size,fill:this.color,class:["remixicon",this.className]},k("path",{d:"M12 13.3334L2.77735 19.4818C2.54759 19.635 2.23715 19.5729 2.08397 19.3432C2.02922 19.261 2 19.1645 2 19.0658V4.93433C2 4.65818 2.22386 4.43433 2.5 4.43433C2.59871 4.43433 2.69522 4.46355 2.77735 4.5183L12 10.6667V4.93433C12 4.65818 12.2239 4.43433 12.5 4.43433C12.5987 4.43433 12.6952 4.46355 12.7774 4.5183L23.376 11.584C23.6057 11.7372 23.6678 12.0477 23.5146 12.2774C23.478 12.3323 23.4309 12.3795 23.376 12.4161L12.7774 19.4818C12.5476 19.635 12.2372 19.5729 12.084 19.3432C12.0292 19.261 12 19.1645 12 19.0658V13.3334ZM10.3944 12.0001L4 7.7371V16.263L10.3944 12.0001ZM14 7.7371V16.263L20.3944 12.0001L14 7.7371Z"}))}}),Ad=q({name:"RiStackLine",props:{size:{type:String,default:"24px"},color:{type:String,default:"currentColor"},className:{type:String,default:""}},render(){return k("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:this.size,height:this.size,fill:this.color,class:["remixicon",this.className]},k("path",{d:"M20.0833 15.1999L21.2854 15.9212C21.5221 16.0633 21.5989 16.3704 21.4569 16.6072C21.4146 16.6776 21.3557 16.7365 21.2854 16.7787L12.5144 22.0412C12.1977 22.2313 11.8021 22.2313 11.4854 22.0412L2.71451 16.7787C2.47772 16.6366 2.40093 16.3295 2.54301 16.0927C2.58523 16.0223 2.64413 15.9634 2.71451 15.9212L3.9166 15.1999L11.9999 20.0499L20.0833 15.1999ZM20.0833 10.4999L21.2854 11.2212C21.5221 11.3633 21.5989 11.6704 21.4569 11.9072C21.4146 11.9776 21.3557 12.0365 21.2854 12.0787L11.9999 17.6499L2.71451 12.0787C2.47772 11.9366 2.40093 11.6295 2.54301 11.3927C2.58523 11.3223 2.64413 11.2634 2.71451 11.2212L3.9166 10.4999L11.9999 15.3499L20.0833 10.4999ZM12.5144 1.30864L21.2854 6.5712C21.5221 6.71327 21.5989 7.0204 21.4569 7.25719C21.4146 7.32757 21.3557 7.38647 21.2854 7.42869L11.9999 12.9999L2.71451 7.42869C2.47772 7.28662 2.40093 6.97949 2.54301 6.7427C2.58523 6.67232 2.64413 6.61343 2.71451 6.5712L11.4854 1.30864C11.8021 1.11864 12.1977 1.11864 12.5144 1.30864ZM11.9999 3.33233L5.88723 6.99995L11.9999 10.6676L18.1126 6.99995L11.9999 3.33233Z"}))}}),Md=q({name:"RiSunLine",props:{size:{type:String,default:"24px"},color:{type:String,default:"currentColor"},className:{type:String,default:""}},render(){return k("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:this.size,height:this.size,fill:this.color,class:["remixicon",this.className]},k("path",{d:"M12 18C8.68629 18 6 15.3137 6 12C6 8.68629 8.68629 6 12 6C15.3137 6 18 8.68629 18 12C18 15.3137 15.3137 18 12 18ZM12 16C14.2091 16 16 14.2091 16 12C16 9.79086 14.2091 8 12 8C9.79086 8 8 9.79086 8 12C8 14.2091 9.79086 16 12 16ZM11 1H13V4H11V1ZM11 20H13V23H11V20ZM3.51472 4.92893L4.92893 3.51472L7.05025 5.63604L5.63604 7.05025L3.51472 4.92893ZM16.9497 18.364L18.364 16.9497L20.4853 19.0711L19.0711 20.4853L16.9497 18.364ZM19.0711 3.51472L20.4853 4.92893L18.364 7.05025L16.9497 5.63604L19.0711 3.51472ZM5.63604 16.9497L7.05025 18.364L4.92893 20.4853L3.51472 19.0711L5.63604 16.9497ZM23 11V13H20V11H23ZM4 11V13H1V11H4Z"}))}}),$d=q({name:"RiTerminalBoxLine",props:{size:{type:String,default:"24px"},color:{type:String,default:"currentColor"},className:{type:String,default:""}},render(){return k("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:this.size,height:this.size,fill:this.color,class:["remixicon",this.className]},k("path",{d:"M3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3ZM4 5V19H20V5H4ZM12 15H18V17H12V15ZM8.66685 12L5.83842 9.17157L7.25264 7.75736L11.4953 12L7.25264 16.2426L5.83842 14.8284L8.66685 12Z"}))}}),Ed=q({name:"RiTimerLine",props:{size:{type:String,default:"24px"},color:{type:String,default:"currentColor"},className:{type:String,default:""}},render(){return k("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:this.size,height:this.size,fill:this.color,class:["remixicon",this.className]},k("path",{d:"M17.6177 5.9681L19.0711 4.51472L20.4853 5.92893L19.0319 7.38231C20.2635 8.92199 21 10.875 21 13C21 17.9706 16.9706 22 12 22C7.02944 22 3 17.9706 3 13C3 8.02944 7.02944 4 12 4C14.125 4 16.078 4.73647 17.6177 5.9681ZM12 20C15.866 20 19 16.866 19 13C19 9.13401 15.866 6 12 6C8.13401 6 5 9.13401 5 13C5 16.866 8.13401 20 12 20ZM11 8H13V14H11V8ZM8 1H16V3H8V1Z"}))}}),Od=q({name:"RiUpload2Line",props:{size:{type:String,default:"24px"},color:{type:String,default:"currentColor"},className:{type:String,default:""}},render(){return k("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:this.size,height:this.size,fill:this.color,class:["remixicon",this.className]},k("path",{d:"M4 19H20V12H22V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V12H4V19ZM13 9V16H11V9H6L12 3L18 9H13Z"}))}}),Rd={alert:ud,"check-circle":td,clipboard:nd,code:od,download:ad,edit:cd,eye:fd,"eye-off":dd,globe:md,grid:id,info:gd,layers:Ad,"list-filter":pd,loader:yd,monitor:rd,moon:vd,pause:wd,pencil:Cd,play:bd,power:Ld,refresh:xd,search:Sd,settings:Td,speed:Pd,sun:Md,swap:ed,terminal:$d,timer:Ed,trash:ld,upload:Od,x:sd,zap:hd};function Hd(e){return Rd[e]??_d}const Dd=q({__name:"Icon",props:{name:{},size:{default:14}},setup(e){const t=e,n=ee(()=>Hd(t.name)),s=ee(()=>typeof t.size=="number"?`${t.size}px`:t.size);return(o,r)=>(z(),Pe(ll(n.value),{size:s.value,color:"currentColor","class-name":"sash-icon","aria-hidden":"true",focusable:"false"},null,8,["size"]))}}),qe=(e,t)=>{const n=e.__vccOpts||e;for(const[s,o]of t)n[s]=o;return n},Ye=qe(Dd,[["__scopeId","data-v-1f90b3d4"]]),Vd={class:"sidebar"},Nd={class:"traffic-panel","aria-live":"off"},Id=["title"],kd={class:"traffic-number mono"},Fd={class:"traffic-unit mono"},Bd=["title"],zd={class:"traffic-number mono"},Ud={class:"traffic-unit mono"},Gd=["aria-label"],jd=["aria-current","onClick"],Zd={class:"nav-icon"},Kd={class:"nav-label"},qd={class:"side-foot"},Wd={class:"runtime mono"},Jd=["title"],Yd={class:"core-label"},Xd=q({__name:"AppSidebar",setup(e){function t(w){const M=Number.isFinite(w)?Math.max(0,w):0,S=["B/s","KB/s","MB/s","GB/s","TB/s"];if(M<1024)return{numberText:Math.round(M).toString(),unitText:S[0]??"B/s"};const _=Math.min(Math.floor(Math.log(M)/Math.log(1024)),S.length-1);return{numberText:(M/1024**_).toFixed(2),unitText:S[_]??"B/s"}}const n=[{route:"overview",icon:"grid"},{route:"profiles",icon:"layers"},{route:"logs",icon:"terminal"},{route:"connections",icon:"swap"},{route:"rules",icon:"list-filter"},{route:"settings",icon:"settings"}];function s(w,M){if(!w)return"00 : 00 : 00";const S=new Date(w).getTime();if(!Number.isFinite(S))return"00 : 00 : 00";const _=Math.max(0,Math.floor((M-S)/1e3)),F=Math.floor(_/3600),E=Math.floor(_%3600/60),R=_%60,V=$=>$.toString().padStart(2,"0");return`${V(F)} : ${V(E)} : ${V(R)}`}const o=De(Date.now());let r=null;const i=ee(()=>n.findIndex(w=>w.route===Ve.value)),l=ee(()=>t(p.traffic.up)),a=ee(()=>t(p.traffic.down)),u=ee(()=>s(p.status?.core.startedAt,o.value)),c=ee(()=>{const w=Ss.value?x("app.coreRunning"):x("app.coreStopped");return p.status?.core.pid?`${w} · PID ${p.status.core.pid}`:w});function d(){r!==null||document.hidden||(r=window.setInterval(()=>{o.value=Date.now()},1e3))}function m(){r!==null&&(window.clearInterval(r),r=null)}function y(){document.hidden?m():(o.value=Date.now(),d())}Qs(()=>{d(),document.addEventListener("visibilitychange",y)}),wn(()=>{m(),document.removeEventListener("visibilitychange",y)});function b(w){return{active:i.value===w,"before-active":i.value===w+1,"after-active":i.value===w-1}}return(w,M)=>(z(),J("aside",Vd,[v("div",Nd,[v("div",{class:"traffic-row up",title:g(x)("overview.upload")},[M[0]||(M[0]=v("span",{class:"traffic-arrow"},"↑",-1)),v("span",kd,U(l.value.numberText),1),v("span",Fd,U(l.value.unitText),1)],8,Id),v("div",{class:"traffic-row down",title:g(x)("overview.download")},[M[1]||(M[1]=v("span",{class:"traffic-arrow"},"↓",-1)),v("span",zd,U(a.value.numberText),1),v("span",Ud,U(a.value.unitText),1)],8,Bd)]),v("nav",{class:"side-nav","aria-label":g(x)("app.navigation")},[(z(),J(ie,null,nn(n,(S,_)=>v("button",{key:S.route,type:"button",class:Ae(["side-nav-item",b(_)]),"aria-current":g(Ve)===S.route?"page":void 0,onClick:F=>g(xs)(S.route)},[v("span",Zd,[X(Ye,{name:S.icon,size:19},null,8,["name"])]),v("span",Kd,U(g(x)(`nav.${S.route}`)),1)],10,jd)),64))],8,Gd),v("div",qd,[v("div",Wd,U(u.value),1),v("div",{class:"core-row",title:c.value},[v("span",{class:Ae(["dot",g(Ss)?"dot-success":"dot-muted"])},null,2),v("span",Yd,U(g(Ss)?g(x)("common.running"):g(x)("common.stopped")),1)],8,Jd)])]))}}),Qd=qe(Xd,[["__scopeId","data-v-7a650a34"]]),e1=["button:not([disabled])","[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[contenteditable="true"]','[tabindex]:not([tabindex="-1"])'].join(", "),an=[];let gs=!1;function Ql(e){return Array.from(e.querySelectorAll(e1)).filter(t=>!t.hasAttribute("hidden"))}function vi(e){if(e.defaultPrevented)return;const t=an[an.length-1],n=t?.container();if(!t||!n)return;if(e.key==="Escape"){e.preventDefault(),t.onEscape();return}if(e.key!=="Tab")return;const s=Ql(n);if(s.length===0){e.preventDefault(),n.focus();return}const o=s[0],r=s[s.length-1],i=document.activeElement;e.shiftKey&&(i===o||i===n||!n.contains(i))?(e.preventDefault(),r?.focus()):!e.shiftKey&&(i===r||!n.contains(i))&&(e.preventDefault(),o?.focus())}function t1(e){const t={container:()=>e.container.value,onEscape:e.onEscape};let n=!1,s=null;async function o(){if(n||typeof window>"u"||(n=!0,s=document.activeElement instanceof HTMLElement?document.activeElement:null,an.push(t),gs||(window.addEventListener("keydown",vi),gs=!0),await Ps(),!n))return;const i=e.container.value;(e.initialFocus?.()??(i?Ql(i)[0]:null)??i)?.focus()}function r(){if(!n)return;n=!1;const i=an.indexOf(t);i!==-1&&an.splice(i,1),an.length===0&&gs&&(window.removeEventListener("keydown",vi),gs=!1);const l=s;s=null,!(!l?.isConnected||typeof l.focus!="function")&&Ps(()=>{l.isConnected&&l.focus({preventScroll:!0})})}return{open:o,close:r}}let Un=0,qo=null,Wo=null;function n1(){typeof document>"u"||(Un===0&&(qo=document.body.style.overflow,Wo=document.documentElement.style.overflow,document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden"),Un+=1)}function s1(){typeof document>"u"||Un!==0&&(Un-=1,!(Un>0)&&(document.body.style.overflow=qo??"",document.documentElement.style.overflow=Wo??"",qo=null,Wo=null))}const we=Js({visible:!1,title:"",message:"",confirmText:x("common.confirm"),cancelText:x("common.cancel"),danger:!1,resolve:null});function o1(e){return we.resolve&&Kt(!1),we.title=e.title,we.message=e.message,we.confirmText=e.confirmText??x("common.confirm"),we.cancelText=e.cancelText??x("common.cancel"),we.danger=e.danger??!1,we.visible=!0,new Promise(t=>{we.resolve=t})}function Kt(e){we.visible=!1,we.resolve?.(e),we.resolve=null}const r1={class:"dialog-actions"},i1=q({__name:"ConfirmDialog",setup(e){const t=De(null),n=De(null),s=De(null),o=nl(),r=`${o}-title`,i=`${o}-description`;let l=!1;const{open:a,close:u}=t1({container:t,initialFocus:()=>(we.danger?n.value:s.value)??n.value,onEscape:()=>Kt(!1)});function c(){l||(n1(),l=!0)}function d(){l&&(s1(),l=!1)}return Nt(()=>we.visible,async m=>{if(m){c(),await a();return}d(),u()},{immediate:!0}),Nt(Ve,()=>{we.visible&&Kt(!1)}),wn(()=>{we.visible&&Kt(!1),d(),u()}),(m,y)=>(z(),Pe(Ji,{to:"body"},[X(Rl,{name:"fade"},{default:vn(()=>[g(we).visible?(z(),J("div",{key:0,class:"overlay",onClick:y[2]||(y[2]=bs(b=>g(Kt)(!1),["self"]))},[v("div",{ref_key:"dialogElement",ref:t,class:"dialog card",role:"alertdialog","aria-modal":"true","aria-labelledby":r,"aria-describedby":i,tabindex:"-1"},[v("h3",{id:r,class:"dialog-title"},U(g(we).title),1),v("p",{id:i,class:"dialog-msg"},U(g(we).message),1),v("div",r1,[v("button",{ref_key:"cancelButton",ref:n,type:"button",class:"btn btn-secondary btn-sm",onClick:y[0]||(y[0]=b=>g(Kt)(!1))},U(g(we).cancelText),513),v("button",{ref_key:"confirmButton",ref:s,type:"button",class:Ae(["btn btn-sm",g(we).danger?"btn-danger":"btn-primary"]),onClick:y[1]||(y[1]=b=>g(Kt)(!0))},U(g(we).confirmText),3)])],512)])):Te("",!0)]),_:1})]))}}),l1=qe(i1,[["__scopeId","data-v-a4c3d877"]]),a1={class:"toast-host","aria-live":"polite","aria-atomic":"false","aria-relevant":"additions text"},c1={class:"toast-icon"},u1={class:"toast-text"},f1=["aria-label","onClick"],d1=q({__name:"ToastHost",setup(e){function t(n){return n==="success"?"check-circle":n==="error"?"alert":"info"}return(n,s)=>(z(),Pe(Ji,{to:"body"},[v("div",a1,[X(Au,{name:"toast"},{default:vn(()=>[(z(!0),J(ie,null,nn(g(p).toasts,o=>(z(),J("div",{key:o.id,class:Ae(["toast",`toast-${o.kind}`])},[v("span",c1,[X(Ye,{name:t(o.kind),size:14},null,8,["name"])]),v("span",u1,U(o.text),1),v("button",{type:"button",class:"toast-close","aria-label":g(x)("common.close"),onClick:r=>g(Xl)(o.id)},[X(Ye,{name:"x",size:12})],8,f1)],2))),128))]),_:1})])]))}}),p1=qe(d1,[["__scopeId","data-v-98c7b3bc"]]),So=ee(()=>{const e=p.status?.core.version;return e?e.startsWith("v")?e:`v${e}`:""});function h1(){const e=De(!1);async function t(){if(!(e.value||!await o1({title:x("settings.restartConfirmTitle"),message:x("settings.restartConfirmMsg"),confirmText:x("common.confirm"),cancelText:x("common.cancel"),danger:!0}))){e.value=!0;try{await le.restartCore(),await vr(),Ue.success(x("toast.coreRestarted"))}catch(s){Ue.error(x("toast.failed",{msg:Dt(s)}))}finally{e.value=!1}}}return{restarting:e,restartCore:t}}const m1=["viewBox","aria-label"],g1=["y1","y2"],y1=["d","fill"],v1=["d","fill"],w1=["d"],C1=["d"],ys=600,Ct=148,To=6,b1=q({__name:"TrafficChart",props:{down:{},up:{},height:{default:150},label:{}},setup(e){const t=e,n=ee(()=>t.label??x("overview.trafficChartLabel")),s=nl(),o=`${s}-down-fill`,r=`${s}-up-fill`,i=[Ct*.25,Ct*.5,Ct*.75],l=ee(()=>{const S=Math.max(...t.down,...t.up,0);return S>0?S*1.15:1024});function a(S){const _=S.length;if(_===0)return[];const F=ys/Math.max(_-1,1);return S.map((E,R)=>{const V=R*F,$=Ct-To-Math.min(E,l.value)/l.value*(Ct-To*2);return[V,$]})}function u(S){if(S.length===0)return"";const _=S[0];if(!_||S.length===1)return`M ${_?.[0]??0} ${Ct-To}`;let F=`M ${_[0].toFixed(1)} ${_[1].toFixed(1)}`;for(let E=0;E<S.length-1;E++){const R=S[E-1]??S[E]??_,V=S[E]??_,$=S[E+1]??V,Q=S[E+2]??$,G=V[0]+($[0]-R[0])/6,te=V[1]+($[1]-R[1])/6,ae=$[0]-(Q[0]-V[0])/6,I=$[1]-(Q[1]-V[1])/6;F+=` C ${G.toFixed(1)} ${te.toFixed(1)}, ${ae.toFixed(1)} ${I.toFixed(1)}, ${$[0].toFixed(1)} ${$[1].toFixed(1)}`}return F}function c(S,_){if(!_)return"";const F=S[S.length-1],E=S[0];return`${_} L ${F?.[0]??ys} ${Ct} L ${E?.[0]??0} ${Ct} Z`}const d=ee(()=>a(t.down)),m=ee(()=>a(t.up)),y=ee(()=>u(d.value)),b=ee(()=>u(m.value)),w=ee(()=>c(d.value,y.value)),M=ee(()=>c(m.value,b.value));return(S,_)=>(z(),J("svg",{class:"traffic-chart",style:Ks({"--traffic-chart-height":`${e.height}px`}),viewBox:`0 0 ${ys} ${Ct}`,preserveAspectRatio:"none",role:"img","aria-label":n.value},[v("defs",null,[v("linearGradient",{id:o,x1:"0",y1:"0",x2:"0",y2:"1"},[..._[0]||(_[0]=[v("stop",{offset:"0%","stop-color":"var(--chart-down)","stop-opacity":"0.12"},null,-1),v("stop",{offset:"100%","stop-color":"var(--chart-down)","stop-opacity":"0"},null,-1)])]),v("linearGradient",{id:r,x1:"0",y1:"0",x2:"0",y2:"1"},[..._[1]||(_[1]=[v("stop",{offset:"0%","stop-color":"var(--chart-up)","stop-opacity":"0.1"},null,-1),v("stop",{offset:"100%","stop-color":"var(--chart-up)","stop-opacity":"0"},null,-1)])])]),(z(),J(ie,null,nn(i,F=>v("line",{key:F,x1:0,x2:ys,y1:F,y2:F,stroke:"var(--border)","stroke-width":"1","stroke-dasharray":"3 5"},null,8,g1)),64)),v("path",{d:w.value,fill:`url(#${o})`},null,8,y1),v("path",{d:M.value,fill:`url(#${r})`},null,8,v1),v("path",{d:y.value,fill:"none",stroke:"var(--chart-down)","stroke-width":"1.6","stroke-linecap":"round","vector-effect":"non-scaling-stroke"},null,8,w1),v("path",{d:b.value,fill:"none",stroke:"var(--chart-up)","stroke-width":"1.6","stroke-linecap":"round","vector-effect":"non-scaling-stroke"},null,8,C1)],12,m1))}}),_1=qe(b1,[["__scopeId","data-v-68611f87"]]),x1=["aria-label"],S1={class:"identity-row"},T1={class:"identity-copy"},L1={class:"identity-meta mono"},P1=["aria-label"],A1=["aria-label"],M1=["aria-pressed","disabled","onClick"],$1={class:"mode-code"},E1={class:"mode-name"},O1=["aria-label"],R1=["aria-pressed","disabled"],H1={class:"toggle-name"},D1={class:"toggle-state"},V1=["aria-pressed","disabled"],N1={class:"toggle-name"},I1={class:"toggle-state"},k1={class:"general-list"},F1={class:"general-row"},B1={class:"general-label"},z1={class:"general-value mono"},U1={class:"general-row"},G1={class:"general-label"},j1={class:"general-value"},Z1=["title"],K1={class:"general-row profile-row"},q1={class:"general-label"},W1={key:0},J1={key:0,class:"general-value profile-value"},Y1=["title"],X1=["title","aria-label","disabled"],Q1=["aria-label"],ep={class:"pane-section-heading traffic-heading"},tp={class:"mono"},np={class:"live-state"},sp={class:"traffic-metrics"},op={class:"traffic-metric"},rp={class:"mono down-value"},ip={class:"traffic-metric"},lp={class:"mono up-value"},ap={class:"traffic-totals"},cp={class:"mono"},up={class:"mono"},fp=q({__name:"OverviewGeneralPane",setup(e){const t=De(!1),n=ee(()=>Lf(p.status?.core.startedAt,io.value)),s=ee(()=>p.status?.activeProfile??null),o=ee(()=>p.status?.settings.allowLan??!1),r=ee(()=>Object.values(p.proxies).filter(d=>!(Array.isArray(d.all)&&d.all.length>0)).length),i=ee(()=>[{id:"global",label:x("overview.modeGlobal")},{id:"rule",label:x("overview.modeRule")},{id:"direct",label:x("overview.modeDirect")}]);async function l(d){if(d!==p.mode)try{await Nf(d),Ue.success(x("toast.modeOk",{mode:x(`overview.mode${d[0]?.toUpperCase()}${d.slice(1)}`)}))}catch(m){Ue.error(x("toast.failed",{msg:Dt(m)}))}}async function a(d){try{await Uf(d)?Ue.success(x(d?"toast.sysProxyOn":"toast.sysProxyOff")):Ue.info(x("toast.settingSavedUnverified"))}catch(m){Ue.error(x("toast.failed",{msg:Dt(m)}))}}async function u(d){try{await Gf(d)?Ue.success(x("toast.settingSaved")):Ue.info(x("toast.settingSavedUnverified"))}catch(m){Ue.error(x("toast.failed",{msg:Dt(m)}))}}async function c(){const d=s.value;if(!(!d?.url||t.value)){t.value=!0;try{await Zf(d.id),Ue.success(x("toast.profileUpdated",{name:d.name}))}catch(m){Ue.error(x("toast.failed",{msg:Dt(m)}))}finally{t.value=!1}}}return(d,m)=>(z(),J("aside",{class:"general-pane","aria-label":g(x)("overview.coreTitle")},[v("div",S1,[m[6]||(m[6]=v("span",{class:"identity-mark","aria-hidden":"true"},[v("img",{src:"./assets/branding/sash-cat.png",alt:""})],-1)),v("div",T1,[m[5]||(m[5]=v("h2",null,"Sash",-1)),v("span",L1,[g(So)?(z(),J(ie,{key:0},[tt(U(g(So)),1)],64)):Te("",!0),g(So)&&g(p).status?.core.pid?(z(),J(ie,{key:1},[tt(" · ")],64)):Te("",!0),g(p).status?.core.pid?(z(),J(ie,{key:2},[tt("PID "+U(g(p).status.core.pid),1)],64)):Te("",!0)])])]),v("section",{class:"mode-control","aria-label":g(x)("overview.modeTitle")},[v("div",{class:"mode-switcher",role:"group","aria-label":g(x)("overview.modeTitle")},[(z(!0),J(ie,null,nn(i.value,y=>(z(),J("button",{key:y.id,type:"button",class:Ae(["mode-button",{active:g(p).mode===y.id}]),"aria-pressed":g(p).mode===y.id,disabled:g(p).operations.mode||!g(jo),onClick:b=>l(y.id)},[v("span",$1,U(y.id.toUpperCase()),1),v("span",E1,U(y.label),1)],10,M1))),128))],8,A1),v("div",{class:"mode-switcher toggle-switcher",role:"group","aria-label":g(x)("overview.switchesTitle")},[v("button",{type:"button",class:Ae(["mode-button toggle-button",{active:g(ms)}]),"aria-pressed":g(ms),disabled:!g(Rf),onClick:m[0]||(m[0]=y=>a(!g(ms)))},[v("span",H1,U(g(x)("overview.sysProxyTitle")),1),v("span",D1,U(g(ms)?g(x)("common.on"):g(x)("common.off")),1)],10,R1),v("button",{type:"button",class:Ae(["mode-button toggle-button",{active:o.value}]),"aria-pressed":o.value,disabled:g(p).operations.networkSetting||!g(p).status,onClick:m[1]||(m[1]=y=>u(!o.value))},[v("span",N1,U(g(x)("overview.lan")),1),v("span",I1,U(o.value?g(x)("common.on"):g(x)("common.off")),1)],10,V1)],8,O1)],8,P1),v("div",k1,[v("div",F1,[v("div",B1,U(g(x)("overview.uptime")),1),v("div",z1,U(n.value),1)]),v("div",U1,[v("div",G1,U(g(x)("overview.mixedPort")),1),v("div",j1,[v("button",{type:"button",class:"general-link mono",title:g(x)("page.settings.title"),onClick:m[2]||(m[2]=y=>g(xs)("settings"))}," 127.0.0.1:"+U(g(p).status?.settings.mixedPort??7890),9,Z1)])]),v("div",K1,[v("div",q1,[v("span",null,U(g(x)("overview.subTitle")),1),s.value?(z(),J("small",W1,U(g(x)("common.nodesCount",{n:r.value})),1)):Te("",!0)]),s.value?(z(),J("div",J1,[v("button",{type:"button",class:"general-link profile-name",title:s.value.url||s.value.name,onClick:m[3]||(m[3]=y=>g(xs)("profiles"))},U(s.value.name),9,Y1),s.value.url?(z(),J("button",{key:0,type:"button",class:Ae(["icon-btn",{spin:t.value}]),title:g(x)("profiles.update"),"aria-label":g(x)("profiles.update"),disabled:t.value,onClick:c},[X(Ye,{name:"refresh",size:14})],10,X1)):Te("",!0)])):(z(),J("button",{key:1,type:"button",class:"btn btn-primary btn-sm",onClick:m[4]||(m[4]=y=>g(xs)("profiles"))},U(g(x)("overview.subSet")),1))])]),v("section",{class:"traffic-compact","aria-label":g(x)("overview.trafficTitle")},[v("div",ep,[v("div",null,[v("h3",null,U(g(x)("overview.trafficTitle")),1),v("p",null,[tt(U(g(x)("connections.active"))+" ",1),v("strong",tp,U(g(p).connections.length),1)])]),v("span",np,[m[7]||(m[7]=v("span",{class:"dot dot-success"},null,-1)),tt(" "+U(g(x)("common.live")),1)])]),v("div",sp,[v("div",op,[v("span",null,U(g(x)("overview.download")),1),v("strong",rp,U(g(pi)(g(p).traffic.down)),1)]),v("div",ip,[v("span",null,U(g(x)("overview.upload")),1),v("strong",lp,U(g(pi)(g(p).traffic.up)),1)])]),X(_1,{down:g(p).traffic.historyDown,up:g(p).traffic.historyUp,height:74,label:g(x)("overview.trafficTitle")},null,8,["down","up","label"]),v("div",ap,[v("span",null,[tt(U(g(x)("overview.totalDown"))+" ",1),v("strong",cp,U(g(Uo)(g(p).connectionsDownloadTotal)),1)]),v("span",null,[tt(U(g(x)("overview.totalUp"))+" ",1),v("strong",up,U(g(Uo)(g(p).connectionsUploadTotal)),1)])])],8,Q1)],8,x1))}}),dp=qe(fp,[["__scopeId","data-v-2beb3028"]]);function pp(){const e=De(new Set),t=De(new Set);async function n(o){if(e.value.has(o))return;e.value=new Set(e.value).add(o);const r=p.runtimeGeneration;try{const i=await le.testGroupDelay(o);kf(i,r)}catch(i){Ue.error(x("toast.failed",{msg:Dt(i)}))}finally{const i=new Set(e.value);i.delete(o),e.value=i}}async function s(o){if(t.value.has(o))return;t.value=new Set(t.value).add(o);const r=p.runtimeGeneration;try{gi(o,(await le.testProxyDelay(o)).delay,r)}catch{gi(o,0,r)}finally{const i=new Set(t.value);i.delete(o),t.value=i}}return{testingGroups:e,testingNodes:t,testGroup:n,testSingle:s}}const hp={class:"empty-state",role:"status"},mp={class:"empty-icon","aria-hidden":"true"},gp={class:"empty-title"},yp={key:0,class:"empty-hint"},vp=q({__name:"EmptyState",props:{icon:{},title:{},hint:{}},setup(e){return(t,n)=>(z(),J("div",hp,[v("span",mp,[X(Ye,{name:e.icon,size:26},null,8,["name"])]),v("p",gp,U(e.title),1),e.hint?(z(),J("p",yp,U(e.hint),1)):Te("",!0)]))}}),Lo=qe(vp,[["__scopeId","data-v-4868d2ff"]]),wp={class:"pgroup"},Cp={class:"pgroup-name"},bp={class:"pgroup-type"},_p=["title"],xp=["title","aria-label"],Sp=["title","aria-label","disabled"],Tp=["title","aria-label"],Lp={key:0,class:"pgroup-grid"},Pp={class:"node-top"},Ap=["title"],Mp={class:"node-sub"},$p={class:"node-meta"},Ep={class:"node-badges"},Op={key:0,class:"node-badge udp-tag"},Rp=["aria-label","disabled","onClick"],Hp=q({__name:"ProxyGroupSection",props:{group:{},members:{},selectable:{type:Boolean},testing:{type:Boolean},testingNodes:{},busy:{type:Boolean},collapsed:{type:Boolean},hideTimeout:{type:Boolean}},emits:["select","test-group","test-node","toggle-collapse","toggle-hide-timeout"],setup(e,{emit:t}){const n=e,s=t,o=new Set(["Selector","URLTest","Fallback","LoadBalance","Relay"]),r=ee(()=>p.proxies[n.group]?.now??""),i=ee(()=>(p.proxies[n.group]?.type??"S").charAt(0)),l=ee(()=>n.hideTimeout?n.members.filter(M=>{const S=yi(M);return S===void 0||S>0}):n.members);function a(M){return p.proxies[M]?.now??""}function u(M){return p.proxies[M]?.type??""}function c(M){return o.has(u(M))}function d(M){return p.proxies[M]?.udp??!1}function m(M){return n.testingNodes?.has(M)??!1}function y(M){m(M)||s("test-node",M)}const b=ee(()=>{const M=new Map;for(const S of n.members){const _=yi(S);if(_===void 0)M.set(S,{cls:"delay-none",text:x("common.untested")});else{const F=Af(_);M.set(S,{cls:F==="good"?"delay-good":F==="mid"?"delay-mid":"delay-bad",text:_<=0?x("common.timeout"):`${_} ms`})}}return M});function w(M){return b.value.get(M)??{cls:"delay-none",text:x("common.untested")}}return(M,S)=>(z(),J("section",wp,[v("div",{class:"pgroup-head",onClick:S[3]||(S[3]=_=>s("toggle-collapse"))},[v("span",Cp,U(e.group),1),v("span",bp,U(i.value),1),v("span",{class:"pgroup-now",title:r.value},U(r.value),9,_p),S[4]||(S[4]=v("span",{class:"pgroup-spacer"},null,-1)),v("button",{type:"button",class:Ae(["icon-btn group-action",{active:e.hideTimeout}]),title:g(x)("proxies.hideTimeout"),"aria-label":g(x)("proxies.hideTimeout"),onClick:S[0]||(S[0]=bs(_=>s("toggle-hide-timeout"),["stop"]))},[X(Ye,{name:"timer",size:15})],10,xp),v("button",{type:"button",class:"icon-btn group-test",title:g(x)("proxies.testAll"),"aria-label":`${g(x)("proxies.testAll")}: ${e.group}`,disabled:e.testing,onClick:S[1]||(S[1]=bs(_=>s("test-group"),["stop"]))},[X(Ye,{name:e.testing?"loader":"zap",size:15,class:Ae({spin:e.testing})},null,8,["name","class"])],8,Sp),v("button",{type:"button",class:"icon-btn group-action",title:g(x)("proxies.toggleGroup"),"aria-label":g(x)("proxies.toggleGroup"),onClick:S[2]||(S[2]=bs(_=>s("toggle-collapse"),["stop"]))},[X(Ye,{name:e.collapsed?"eye-off":"eye",size:15},null,8,["name"])],8,Tp)]),e.collapsed?Te("",!0):(z(),J("div",Lp,[(z(!0),J(ie,null,nn(l.value,_=>(z(),J("article",{key:_,class:Ae(["node-card",{selected:r.value===_,static:!e.selectable}])},[(z(),Pe(ll(e.selectable?"button":"div"),{class:"node-main",type:e.selectable?"button":void 0,"aria-pressed":e.selectable?r.value===_:void 0,disabled:e.selectable?e.busy:void 0,onClick:F=>e.selectable&&!e.busy&&s("select",_)},{default:vn(()=>[v("div",Pp,[v("span",{class:"node-name",title:_},U(_),9,Ap)]),v("div",Mp,[v("span",$p,[tt(U(u(_)),1),c(_)&&a(_)?(z(),J(ie,{key:0},[tt(" · "+U(a(_)),1)],64)):Te("",!0)]),v("span",Ep,[d(_)?(z(),J("span",Op,"UDP")):Te("",!0)])])]),_:2},1032,["type","aria-pressed","disabled","onClick"])),v("button",{type:"button",class:Ae(["node-delay",[w(_).cls,{testing:m(_)}]]),"aria-label":g(x)("proxies.testNode",{name:_}),disabled:m(_),onClick:F=>y(_)},[m(_)?(z(),Pe(Ye,{key:0,name:"refresh",size:11,class:"delay-spinner"})):(z(),J(ie,{key:1},[tt(U(w(_).text),1)],64))],10,Rp)],2))),128))]))]))}}),Po=qe(Hp,[["__scopeId","data-v-b524911a"]]),Dp=["aria-label"],Vp={class:"proxy-pane-head"},Np={class:"proxy-title-row"},Ip={key:0,class:"search-box proxy-filter"},kp=["aria-label","placeholder"],Fp={key:1,class:"group-count"},Bp={key:0,class:"empty-panel"},zp={class:"proxy-kind-heading"},Up={class:"proxy-kind-heading"},Gp={key:2,class:"empty-panel"},jp={key:1,class:"empty-panel"},Zp={class:"direct-node","aria-current":"true"},Kp={class:"direct-current"},qp={class:"direct-hint"},Wp=q({__name:"OverviewProxyPane",setup(e){const{testingGroups:t,testingNodes:n,testGroup:s,testSingle:o}=pp(),r=De(""),i=ee(()=>r.value.trim().toLowerCase()),l=De(new Set),a=De(new Set);function u(R){const V=new Set(l.value);V.has(R)?V.delete(R):V.add(R),l.value=V}function c(R){const V=new Set(a.value);V.has(R)?V.delete(R):V.add(R),a.value=V}const d=ee(()=>p.mode==="global"?x("overview.modeGlobal"):p.mode==="direct"?x("overview.modeDirect"):x("overview.modeRule")),m=ee(()=>p.mode==="global"?x("overview.modeGlobalDesc"):p.mode==="direct"?x("overview.modeDirectDesc"):x("overview.modeRuleDesc")),y=ee(()=>p.proxyGroups.filter(R=>p.proxies[R]?.type==="Selector"&&R!=="GLOBAL")),b=ee(()=>p.proxyGroups.filter(R=>p.proxies[R]?.type!=="Selector"&&R!=="GLOBAL")),w=ee(()=>M(p.proxies.GLOBAL?.all??[]));function M(R){return i.value?R.filter(V=>V.toLowerCase().includes(i.value)):R}const S=ee(()=>{const R=new Map;for(const V of p.proxyGroups)R.set(V,M(p.proxies[V]?.all??[]));return R});function _(R){return S.value.get(R)??[]}function F(R){return p.proxies[R]?.now??""}async function E(R,V){if(F(R)!==V)try{await If(R,V),Ue.success(x("toast.nodeOk",{name:V}))}catch($){Ue.error(x("toast.failed",{msg:Dt($)}))}}return(R,V)=>(z(),J("section",{class:"proxy-pane","aria-label":g(x)("overview.modeTitle")},[v("header",Vp,[v("div",null,[v("div",Np,[v("h2",null,U(d.value),1)]),v("p",null,U(m.value),1)]),g(p).mode!=="direct"&&g(p).proxyGroups.length>0?(z(),J("div",Ip,[X(Ye,{name:"search",size:13}),qa(v("input",{"onUpdate:modelValue":V[0]||(V[0]=$=>r.value=$),type:"search","aria-label":g(x)("proxies.filter"),placeholder:g(x)("proxies.filter")},null,8,kp),[[Hu,r.value]])])):Te("",!0),g(p).mode==="rule"?(z(),J("span",Fp,U(g(p).proxyGroups.length)+" "+U(g(x)("profiles.statGroups")),1)):Te("",!0)]),g(Ss)?g(p).mode==="rule"?(z(),J(ie,{key:1},[y.value.length>0?(z(),J(ie,{key:0},[v("div",zp,U(g(x)("proxies.manual")),1),(z(!0),J(ie,null,nn(y.value,$=>(z(),Pe(Po,{key:$,group:$,members:_($),selectable:!0,testing:g(t).has($),"testing-nodes":g(n),busy:!!g(p).operations.proxySelections[$],collapsed:l.value.has($),"hide-timeout":a.value.has($),onSelect:Q=>E($,Q),onTestGroup:Q=>g(s)($),onTestNode:g(o),onToggleCollapse:Q=>u($),onToggleHideTimeout:Q=>c($)},null,8,["group","members","testing","testing-nodes","busy","collapsed","hide-timeout","onSelect","onTestGroup","onTestNode","onToggleCollapse","onToggleHideTimeout"]))),128))],64)):Te("",!0),b.value.length>0?(z(),J(ie,{key:1},[v("div",Up,U(g(x)("proxies.auto")),1),(z(!0),J(ie,null,nn(b.value,$=>(z(),Pe(Po,{key:$,group:$,members:_($),selectable:!1,testing:g(t).has($),"testing-nodes":g(n),busy:!!g(p).operations.proxySelections[$],collapsed:l.value.has($),"hide-timeout":a.value.has($),onTestGroup:Q=>g(s)($),onTestNode:g(o),onToggleCollapse:Q=>u($),onToggleHideTimeout:Q=>c($)},null,8,["group","members","testing","testing-nodes","busy","collapsed","hide-timeout","onTestGroup","onTestNode","onToggleCollapse","onToggleHideTimeout"]))),128))],64)):Te("",!0),y.value.length===0&&b.value.length===0?(z(),J("div",Gp,[X(Lo,{icon:"globe",title:g(x)("proxies.noGroups"),hint:g(x)("proxies.noGroupsHint")},null,8,["title","hint"])])):Te("",!0)],64)):g(p).mode==="global"?(z(),J(ie,{key:2},[w.value.length>0?(z(),Pe(Po,{key:0,group:"GLOBAL",members:w.value,selectable:!0,testing:g(t).has("GLOBAL"),"testing-nodes":g(n),busy:!!g(p).operations.proxySelections.GLOBAL,collapsed:l.value.has("GLOBAL"),"hide-timeout":a.value.has("GLOBAL"),onSelect:V[1]||(V[1]=$=>E("GLOBAL",$)),onTestGroup:V[2]||(V[2]=$=>g(s)("GLOBAL")),onTestNode:g(o),onToggleCollapse:V[3]||(V[3]=$=>u("GLOBAL")),onToggleHideTimeout:V[4]||(V[4]=$=>c("GLOBAL"))},null,8,["members","testing","testing-nodes","busy","collapsed","hide-timeout","onTestNode"])):(z(),J("div",jp,[X(Lo,{icon:"globe",title:g(x)("proxies.noGroups"),hint:g(x)("proxies.noGroupsHint")},null,8,["title","hint"])]))],64)):(z(),J(ie,{key:3},[v("article",Zp,[V[5]||(V[5]=v("span",{class:"direct-indicator"},null,-1)),V[6]||(V[6]=v("div",{class:"direct-copy"},[v("strong",null,"DIRECT"),v("span",null,"Direct")],-1)),v("span",Kp,U(g(x)("proxies.currentTag")),1)]),v("p",qp,U(g(x)("proxies.directHint")),1)],64)):(z(),J("div",Bp,[X(Lo,{icon:"globe",title:g(x)("proxies.noGroups"),hint:g(x)("proxies.noGroupsHint")},null,8,["title","hint"])]))],8,Dp))}}),Jp=qe(Wp,[["__scopeId","data-v-5fec4f3a"]]),Yp={class:"page-head"},Xp={class:"page-head-text"},Qp={class:"page-title"},eh={key:0,class:"page-desc"},th={key:0,class:"page-head-actions"},nh=q({__name:"PageHeader",props:{title:{},desc:{}},setup(e){return(t,n)=>(z(),J("header",Yp,[v("div",Xp,[v("h1",Qp,U(e.title),1),e.desc?(z(),J("p",eh,U(e.desc),1)):Te("",!0)]),t.$slots.default?(z(),J("div",th,[yc(t.$slots,"default",{},void 0)])):Te("",!0)]))}}),ea=qe(nh,[["__scopeId","data-v-28e798e0"]]),sh={class:"overview"},oh=["disabled"],rh={class:"overview-split"},ih=q({__name:"OverviewView",setup(e){const{restarting:t,restartCore:n}=h1();return(s,o)=>(z(),J("div",sh,[X(ea,{title:g(x)("page.overview.title"),desc:g(x)("page.overview.desc")},{default:vn(()=>[v("button",{type:"button",class:"btn btn-danger-outline btn-sm",disabled:g(t),onClick:o[0]||(o[0]=(...r)=>g(n)&&g(n)(...r))},[X(Ye,{name:"refresh",size:13,class:Ae({spin:g(t)})},null,8,["class"]),v("span",null,U(g(x)("settings.restartBtn")),1)],8,oh)]),_:1},8,["title","desc"]),v("div",rh,[X(dp),X(Jp)])]))}}),lh=qe(ih,[["__scopeId","data-v-aff55a8d"]]),ah={class:"connection-panel"},ch=q({__name:"ConnectionView",setup(e){return(t,n)=>(z(),J(ie,null,[X(ea,{title:g(x)("status.connectTitle")},null,8,["title"]),v("section",ah,[v("p",null,U(g(x)("status.connectDescription")),1),n[0]||(n[0]=v("code",{class:"mono"},"sash web",-1))])],64))}}),uh=qe(ch,[["__scopeId","data-v-f3479712"]]),fh={class:"app-frame"},dh={class:"app-shell"},ph={class:"app-main"},hh=["title"],mh=q({__name:"App",setup(e){const t=ee(()=>p.daemonOnline&&!ln.value?"unauthorized":Of.value),n=Ln(()=>Mn(()=>import("./ConnectionsView-CfaOG2JV.js"),__vite__mapDeps([0,1,2,3]),import.meta.url)),s=Ln(()=>Mn(()=>import("./LogsView-BDiRATXN.js"),__vite__mapDeps([4,5]),import.meta.url)),o=Ln(()=>Mn(()=>import("./ProfilesView-hFa7-O72.js"),__vite__mapDeps([6,7]),import.meta.url)),r=Ln(()=>Mn(()=>import("./RulesView-CjEyCN1A.js"),__vite__mapDeps([8,1,2,9]),import.meta.url)),i=Ln(()=>Mn(()=>import("./SettingsView-DsRntRfn.js"),__vite__mapDeps([10,11,12]),import.meta.url));let l=null,a=null,u=null;const c=new WeakMap;function d(y){const b=y.target instanceof Document?document.documentElement:y.target;if(!(b instanceof HTMLElement))return;b.classList.add("is-scrolling");const w=c.get(b);w!==void 0&&window.clearTimeout(w),c.set(b,window.setTimeout(()=>{b.classList.remove("is-scrolling"),c.delete(b)},700))}function m(){a?.(),u?.(),a=null,u=null,Zo()}return Nt(()=>p.daemonOnline&&jo.value&&ln.value?p.runtimeGeneration:null,y=>{m(),y!==null&&(a=le.connectTraffic(b=>Wf(b,y),()=>{y===p.runtimeGeneration&&Zo()}))}),Nt(()=>p.daemonOnline&&jo.value&&ln.value&&Ve.value==="logs"?p.runtimeGeneration:null,y=>{u?.(),u=null,y!==null&&(u=le.connectLogs(b=>Jf(b,y)))}),Qs(()=>{l=zf(),window.addEventListener("scroll",d,{capture:!0,passive:!0})}),wn(()=>{l?.(),m(),window.removeEventListener("scroll",d,{capture:!0})}),(y,b)=>(z(),J("div",fh,[v("div",dh,[X(Qd),v("main",ph,[X(Rl,{name:"fade"},{default:vn(()=>[t.value?(z(),J("div",{key:0,class:Ae(["runtime-banner",t.value]),role:"status","aria-live":"polite",title:g(p).coreSnapshotError??void 0},[X(Ye,{name:"alert",size:13}),v("span",null,U(g(x)(`status.${t.value}`)),1)],10,hh)):Te("",!0)]),_:1}),v("div",{class:Ae(["page-container",`page-${g(ln)?g(Ve):"connect"}`])},[g(ln)?g(Ve)==="overview"?(z(),Pe(lh,{key:1})):g(Ve)==="profiles"?(z(),Pe(g(o),{key:2})):g(Ve)==="logs"?(z(),Pe(g(s),{key:3})):g(Ve)==="connections"?(z(),Pe(g(n),{key:4})):g(Ve)==="rules"?(z(),Pe(g(r),{key:5})):g(Ve)==="settings"?(z(),Pe(g(i),{key:6})):Te("",!0):(z(),Pe(uh,{key:0}))],2)]),X(p1),X(l1)])]))}}),gh=qe(mh,[["__scopeId","data-v-880d8fd0"]]);Bu(gh).mount("#app");export{Eh as $,o1 as A,Mh as B,Qs as C,rl as D,Lo as E,ie as F,bh as G,Nh as H,Ye as I,Ps as J,nl as K,t1 as L,n1 as M,wn as N,s1 as O,ea as P,bs as Q,_h as R,Rl as S,Ji as T,$h as U,jf as V,Ph as W,Ks as X,Ln as Y,Mn as Z,qe as _,X as a,Zf as a0,Hh as a1,Dh as a2,Vh as a3,Oh as a4,wh as a5,vh as a6,yc as a7,Sh as a8,So as a9,h1 as aa,xh as ab,Th as ac,le as ad,vr as ae,Gf as af,Rh as ag,Ko as ah,Ch as ai,vn as b,J as c,q as d,v as e,qa as f,U as g,Uo as h,Te as i,tt as j,Lh as k,io as l,Pe as m,Ae as n,z as o,De as p,ee as q,nn as r,p as s,x as t,g as u,Hu as v,Nt as w,Ah as x,Ue as y,Dt as z};
|