dudu-converter-cli 1.0.16 → 1.0.18

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.
@@ -0,0 +1,32 @@
1
+ var Sl=Object.defineProperty;var xl=(e,t,s)=>t in e?Sl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var Wt=(e,t,s)=>xl(e,typeof t!="symbol"?t+"":t,s);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const r of i.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&n(r)}).observe(document,{childList:!0,subtree:!0});function s(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(o){if(o.ep)return;o.ep=!0;const i=s(o);fetch(o.href,i)}})();/**
2
+ * @vue/shared v3.5.44
3
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
+ * @license MIT
5
+ **/function ho(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const me={},Xt=[],yt=()=>{},Hi=()=>!1,an=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),cn=e=>e.startsWith("onUpdate:"),Ne=Object.assign,po=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},kl=Object.prototype.hasOwnProperty,ue=(e,t)=>kl.call(e,t),q=Array.isArray,jt=e=>Fs(e)==="[object Map]",Mt=e=>Fs(e)==="[object Set]",Vo=e=>Fs(e)==="[object Date]",ne=e=>typeof e=="function",Se=e=>typeof e=="string",Qe=e=>typeof e=="symbol",he=e=>e!==null&&typeof e=="object",ji=e=>(he(e)||ne(e))&&ne(e.then)&&ne(e.catch),Ui=Object.prototype.toString,Fs=e=>Ui.call(e),Cl=e=>Fs(e).slice(8,-1),Bi=e=>Fs(e)==="[object Object]",un=e=>Se(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ws=ho(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),fn=e=>{const t=Object.create(null);return s=>t[s]||(t[s]=e(s))},El=/-\w/g,st=fn(e=>e.replace(El,t=>t.slice(1).toUpperCase())),Al=/\B([A-Z])/g,Kt=fn(e=>e.replace(Al,"-$1").toLowerCase()),zi=fn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Tn=fn(e=>e?`on${zi(e)}`:""),vt=(e,t)=>!Object.is(e,t),qs=(e,...t)=>{for(let s=0;s<e.length;s++)e[s](...t)},Ki=(e,t,s,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},dn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Lo;const hn=()=>Lo||(Lo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function pn(e){if(q(e)){const t={};for(let s=0;s<e.length;s++){const n=e[s],o=Se(n)?Pl(n):pn(n);if(o)for(const i in o)t[i]=o[i]}return t}else if(Se(e)||he(e))return e}const Rl=/;(?![^(]*\))/g,Tl=/:([^]+)/,Ol=/"(?:[^"\\]|\\[^])*"|'(?:[^'\\]|\\[^])*'|\\[^]|\/\*[^]*?\*\//g;function Pl(e){const t={};return e.replace(Ol,s=>s.startsWith("/*")?"":s).split(Rl).forEach(s=>{if(s){const n=s.split(Tl);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function ye(e){let t="";if(Se(e))t=e;else if(q(e))for(let s=0;s<e.length;s++){const n=ye(e[s]);n&&(t+=n+" ")}else if(he(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}const Il="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,playsinline,readonly",$l=ho(Il);function Wi(e){return!!e||e===""}function Ml(e,t,s){if(e.length!==t.length)return!1;let n=!0;for(let o=0;n&&o<e.length;o++)n=rt(e[o],t[o],s);return n}function Ho(e,t,s){if(e.size!==t.size)return!1;const n=Array.from(t),o=new Uint8Array(n.length);for(const i of e){let r=-1;for(let l=0;l<n.length;l++)if(!o[l]&&rt(i,n[l],s)){r=l;break}if(r<0)return!1;o[r]=1}return!0}function Nl(e,t,s){let n=jt(e),o=jt(t);if(n||o||(n=Mt(e),o=Mt(t),n||o))return n&&o?Ho(e,t,s):!1;const i=Object.keys(e).length,r=Object.keys(t).length;if(i!==r)return!1;for(const l in e){const a=e.hasOwnProperty(l),d=t.hasOwnProperty(l);if(a&&!d||!a&&d||!rt(e[l],t[l],s))return!1}return String(e)===String(t)}function jo(e,t,s,n){s||(s=[new Map,new Map]);const[o,i]=s;if(o.has(e)||i.has(t))return o.get(e)===t&&i.get(t)===e;o.set(e,t),i.set(t,e);const r=n(e,t,s);return o.delete(e),i.delete(t),r}function rt(e,t,s){if(e===t)return!0;let n=Vo(e),o=Vo(t);return n||o?n&&o?e.getTime()===t.getTime():!1:(n=Qe(e),o=Qe(t),n||o?e===t:(n=q(e),o=q(t),n||o?n&&o?jo(e,t,s,Ml):!1:(n=he(e),o=he(t),n||o?!n||!o?!1:jo(e,t,s,Nl):String(e)===String(t))))}function go(e,t){return e.findIndex(s=>rt(s,t))}const Gi=e=>!!(e&&e.__v_isRef===!0),_=e=>Se(e)?e:e==null?"":q(e)||he(e)&&(e.toString===Ui||!ne(e.toString))?Gi(e)?_(e.value):JSON.stringify(e,qi,2):String(e),qi=(e,t)=>Gi(t)?qi(e,t.value):jt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,o],i)=>(s[On(n,i)+" =>"]=o,s),{})}:Mt(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>On(s))}:Qe(t)?On(t):he(t)&&!q(t)&&!Bi(t)?String(t):t,On=(e,t="")=>{var s;return Qe(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};/**
6
+ * @vue/reactivity v3.5.44
7
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
+ * @license MIT
9
+ **/let Oe;class Ji{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&&Oe&&(Oe.active?(this.parent=Oe,this.index=(Oe.scopes||(Oe.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes){const n=this.scopes.slice();for(t=0,s=n.length;t<s;t++)n[t].pause()}for(t=0,s=this.effects.length;t<s;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,s;if(this.scopes){const o=this.scopes.slice();for(t=0,s=o.length;t<s;t++)o[t].resume()}const n=this.effects.slice();for(t=0,s=n.length;t<s;t++)n[t].resume()}}run(t){if(this._active){const s=Oe;try{return Oe=this,t()}finally{Oe=s}}}on(){++this._on===1&&(this.prevScope=Oe,Oe=this)}off(){if(this._on>0&&--this._on===0){if(Oe===this)Oe=this.prevScope;else{let t=Oe;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 s,n;for(s=0,n=this.effects.length;s<n;s++)this.effects[s].stop();for(this.effects.length=0,s=0,n=this.cleanups.length;s<n;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){const o=this.scopes.slice();for(s=0,n=o.length;s<n;s++)o[s].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 Yi(e){return new Ji(e)}function Qi(){return Oe}function Dl(e,t=!1){Oe&&Oe.cleanups.push(e)}let ve;const Pn=new WeakSet;class Xi{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,Oe&&(Oe.active?Oe.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Pn.has(this)&&(Pn.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||er(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Uo(this),tr(this);const t=ve,s=nt;ve=this,nt=!0;try{return this.fn()}finally{sr(this),ve=t,nt=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)yo(t);this.deps=this.depsTail=void 0,Uo(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Pn.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Gn(this)&&this.run()}get dirty(){return Gn(this)}}let Zi=0,Ss,xs;function er(e,t=!1){if(e.flags|=8,t){e.next=xs,xs=e;return}e.next=Ss,Ss=e}function mo(){Zi++}function vo(){if(--Zi>0)return;if(xs){let t=xs;for(xs=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;Ss;){let t=Ss;for(Ss=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=s}}if(e)throw e}function tr(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function sr(e){let t,s=e.depsTail,n=s;for(;n;){const o=n.prevDep;n.version===-1?(n===s&&(s=o),yo(n),Fl(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=o}e.deps=t,e.depsTail=s}function Gn(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(nr(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function nr(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Ts)||(e.globalVersion=Ts,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Gn(e))))return;e.flags|=2;const t=e.dep,s=ve,n=nt;ve=e,nt=!0;try{tr(e);const o=e.fn(e._value);(t.version===0||vt(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{ve=s,nt=n,sr(e),e.flags&=-3}}function yo(e,t=!1){const{dep:s,prevSub:n,nextSub:o}=e;if(n&&(n.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let i=s.computed.deps;i;i=i.nextDep)yo(i,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function Fl(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let nt=!0;const or=[];function bt(){or.push(nt),nt=!1}function wt(){const e=or.pop();nt=e===void 0?!0:e}function Uo(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=ve;ve=void 0;try{t()}finally{ve=s}}}let Ts=0;class Vl{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class _o{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(!ve||!nt||ve===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==ve)s=this.activeLink=new Vl(ve,this),ve.deps?(s.prevDep=ve.depsTail,ve.depsTail.nextDep=s,ve.depsTail=s):ve.deps=ve.depsTail=s,ir(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=ve.depsTail,s.nextDep=void 0,ve.depsTail.nextDep=s,ve.depsTail=s,ve.deps===s&&(ve.deps=n)}return s}trigger(t){this.version++,Ts++,this.notify(t)}notify(t){mo();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{vo()}}}function ir(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)ir(n)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const Qs=new WeakMap,es=Symbol(""),qn=Symbol(""),Os=Symbol("");function De(e,t,s){if(nt&&ve){let n=Qs.get(e);n||Qs.set(e,n=new Map);let o=n.get(s);o||(n.set(s,o=new _o),o.map=n,o.key=s),o.track()}}function Tt(e,t,s,n,o,i){const r=Qs.get(e);if(!r){Ts++;return}const l=a=>{a&&a.trigger()};if(mo(),t==="clear")r.forEach(l);else{const a=q(e),d=a&&un(s);if(a&&s==="length"){const u=Number(n);r.forEach((p,b)=>{(b==="length"||b===Os||!Qe(b)&&b>=u)&&l(p)})}else switch((s!==void 0||r.has(void 0))&&l(r.get(s)),d&&l(r.get(Os)),t){case"add":a?d&&l(r.get("length")):(l(r.get(es)),jt(e)&&l(r.get(qn)));break;case"delete":a||(l(r.get(es)),jt(e)&&l(r.get(qn)));break;case"set":jt(e)&&l(r.get(es));break}}vo()}function Ll(e,t){const s=Qs.get(e);return s&&s.get(t)}function is(e){const t=ce(e);return t===e||(De(t,"iterate",Os),qe(e))?t:St(e)?_t(e)?t.map(s=>Bt(Xe(s))):t.map(Bt):t.map(Xe)}function gn(e){return De(e=ce(e),"iterate",Os),e}function pt(e,t){return St(e)?Bt(_t(e)?Xe(t):t):Xe(t)}const Hl={__proto__:null,[Symbol.iterator](){return In(this,Symbol.iterator,e=>pt(this,e))},concat(...e){return is(this).concat(...e.map(t=>q(t)?is(t):t))},entries(){return In(this,"entries",e=>(e[1]=pt(this,e[1]),e))},every(e,t){return Ct(this,"every",e,t,void 0,arguments)},filter(e,t){return Ct(this,"filter",e,t,s=>s.map(n=>pt(this,n)),arguments)},find(e,t){return Ct(this,"find",e,t,s=>pt(this,s),arguments)},findIndex(e,t){return Ct(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Ct(this,"findLast",e,t,s=>pt(this,s),arguments)},findLastIndex(e,t){return Ct(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Ct(this,"forEach",e,t,void 0,arguments)},includes(...e){return $n(this,"includes",e)},indexOf(...e){return $n(this,"indexOf",e)},join(e){return is(this).join(e)},lastIndexOf(...e){return $n(this,"lastIndexOf",e)},map(e,t){return Ct(this,"map",e,t,void 0,arguments)},pop(){return ms(this,"pop")},push(...e){return ms(this,"push",e)},reduce(e,...t){return zo(this,"reduce",e,t)},reduceRight(e,...t){return zo(this,"reduceRight",e,t)},shift(){return ms(this,"shift")},some(e,t){return Ct(this,"some",e,t,void 0,arguments)},splice(...e){return ms(this,"splice",e)},toReversed(){return is(this).toReversed()},toSorted(e){return is(this).toSorted(e)},toSpliced(...e){return is(this).toSpliced(...e)},unshift(...e){return ms(this,"unshift",e)},values(){return In(this,"values",e=>pt(this,e))}};function In(e,t,s){const n=gn(e),o=n[t],i=o.call(n);if(n!==e&&!qe(e)){if(i[Symbol.toStringTag]==="Array Iterator"){const r=Object.create(Object.getPrototypeOf(i));return r.next=()=>Bo(i.next(),s),o!==rr[t]&&Object.defineProperties(r,{return:{get(){const l=i.return;return typeof l=="function"?l.bind(i):l}},throw:{get(){const l=i.throw;return typeof l=="function"?l.bind(i):l}}}),r}i._next=i.next,i.next=()=>Bo(i._next(),s)}return i}function Bo(e,t){return e.done||(e.value=t(e.value)),e}const rr=Array.prototype;function Ct(e,t,s,n,o,i){const r=gn(e),l=r!==e&&!qe(e),a=r[t];if(a!==rr[t]){const p=a.apply(e,i);return l?Xe(p):p}let d=s;r!==e&&(l?d=function(p,b){return s.call(this,pt(e,p),b,e)}:s.length>2&&(d=function(p,b){return s.call(this,p,b,e)}));const u=a.call(r,d,n);return l&&o?o(u):u}function zo(e,t,s,n){const o=gn(e),i=o!==e&&!qe(e);let r=s,l=!1;o!==e&&(i?(l=n.length===0,r=function(d,u,p){return l&&(l=!1,d=pt(e,d)),s.call(this,d,pt(e,u),p,e)}):s.length>3&&(r=function(d,u,p){return s.call(this,d,u,p,e)}));const a=o[t](r,...n);return l?pt(e,a):a}function $n(e,t,s){const n=ce(e);De(n,"iterate",Os);const o=n[t](...s);return(o===-1||o===!1)&&mn(s[0])?(s[0]=ce(s[0]),n[t](...s)):o}function ms(e,t,s=[]){bt(),mo();const n=ce(e)[t].apply(e,s);return vo(),wt(),n}const jl=ho("__proto__,__v_isRef,__isVue"),lr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Qe));function Ul(e){Qe(e)||(e=String(e));const t=ce(this);return De(t,"has",e),t.hasOwnProperty(e)}class ar{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,n){if(s==="__v_skip")return t.__v_skip;const o=this._isReadonly,i=this._isShallow;if(s==="__v_isReactive")return!o;if(s==="__v_isReadonly")return o;if(s==="__v_isShallow")return i;if(s==="__v_raw")return n===(o?i?Xl:dr:i?fr:ur).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const r=q(t);if(!o){let a;if(r&&(a=Hl[s]))return a;if(s==="hasOwnProperty")return Ul}const l=Reflect.get(t,s,xe(t)?t:n);if((Qe(s)?lr.has(s):jl(s))||(o||De(t,"get",s),i))return l;if(xe(l)){const a=r&&un(s)?l:l.value;return o&&he(a)?Yn(a):a}return he(l)?o?Yn(l):ns(l):l}}class cr extends ar{constructor(t=!1){super(!1,t)}set(t,s,n,o){let i=t[s];const r=q(t)&&un(s);if(!this._isShallow){const d=St(i);if(!qe(n)&&!St(n)&&(i=ce(i),n=ce(n)),!r&&xe(i)&&!xe(n))return d||(i.value=n),!0}const l=r?Number(s)<t.length:ue(t,s),a=Reflect.set(t,s,n,xe(t)?t:o);return t===ce(o)&&a&&(l?vt(n,i)&&Tt(t,"set",s,n):Tt(t,"add",s,n)),a}deleteProperty(t,s){const n=ue(t,s);t[s];const o=Reflect.deleteProperty(t,s);return o&&n&&Tt(t,"delete",s,void 0),o}has(t,s){const n=Reflect.has(t,s);return(!Qe(s)||!lr.has(s))&&De(t,"has",s),n}ownKeys(t){return De(t,"iterate",q(t)?"length":es),Reflect.ownKeys(t)}}class Bl extends ar{constructor(t=!1){super(!0,t)}set(t,s){return!0}deleteProperty(t,s){return!0}}const zl=new cr,Kl=new Bl,Wl=new cr(!0);const Jn=e=>e,Us=e=>Reflect.getPrototypeOf(e);function Gl(e,t,s){return function(...n){const o=this.__v_raw,i=ce(o),r=jt(i),l=e==="entries"||e===Symbol.iterator&&r,a=e==="keys"&&r,d=o[e](...n),u=s?Jn:t?Bt:Xe;return!t&&De(i,"iterate",a?qn:es),Ne(Object.create(d),{next(){const{value:p,done:b}=d.next();return b?{value:p,done:b}:{value:l?[u(p[0]),u(p[1])]:u(p),done:b}}})}}function Bs(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ql(e,t){const s={get(o){const i=this.__v_raw,r=ce(i),l=ce(o);e||(vt(o,l)&&De(r,"get",o),De(r,"get",l));const{has:a}=Us(r),d=t?Jn:e?Bt:Xe;if(a.call(r,o))return d(i.get(o));if(a.call(r,l))return d(i.get(l));i!==r&&i.get(o)},get size(){const o=this.__v_raw;return!e&&De(ce(o),"iterate",es),o.size},has(o){const i=this.__v_raw,r=ce(i),l=ce(o);return e||(vt(o,l)&&De(r,"has",o),De(r,"has",l)),o===l?i.has(o):i.has(o)||i.has(l)},forEach(o,i){const r=this,l=r.__v_raw,a=ce(l),d=t?Jn:e?Bt:Xe;return!e&&De(a,"iterate",es),l.forEach((u,p)=>o.call(i,d(u),d(p),r))}};return Ne(s,e?{add:Bs("add"),set:Bs("set"),delete:Bs("delete"),clear:Bs("clear")}:{add(o){const i=ce(this),r=Us(i),l=ce(o),a=!t&&!qe(o)&&!St(o)?l:o;return r.has.call(i,a)||vt(o,a)&&r.has.call(i,o)||vt(l,a)&&r.has.call(i,l)||(i.add(a),Tt(i,"add",a,a)),this},set(o,i){!t&&!qe(i)&&!St(i)&&(i=ce(i));const r=ce(this),{has:l,get:a}=Us(r);let d=l.call(r,o);d||(o=ce(o),d=l.call(r,o));const u=a.call(r,o);return r.set(o,i),d?vt(i,u)&&Tt(r,"set",o,i):Tt(r,"add",o,i),this},delete(o){const i=ce(this),{has:r,get:l}=Us(i);let a=r.call(i,o);a||(o=ce(o),a=r.call(i,o)),l&&l.call(i,o);const d=i.delete(o);return a&&Tt(i,"delete",o,void 0),d},clear(){const o=ce(this),i=o.size!==0,r=o.clear();return i&&Tt(o,"clear",void 0,void 0),r}}),["keys","values","entries",Symbol.iterator].forEach(o=>{s[o]=Gl(o,e,t)}),s}function bo(e,t){const s=ql(e,t);return(n,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_isShallow"?t:o==="__v_raw"?n:Reflect.get(ue(s,o)&&o in n?s:n,o,i)}const Jl={get:bo(!1,!1)},Yl={get:bo(!1,!0)},Ql={get:bo(!0,!1)};const ur=new WeakMap,fr=new WeakMap,dr=new WeakMap,Xl=new WeakMap;function Zl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ns(e){return St(e)?e:wo(e,!1,zl,Jl,ur)}function hr(e){return wo(e,!1,Wl,Yl,fr)}function Yn(e){return wo(e,!0,Kl,Ql,dr)}function wo(e,t,s,n,o){if(!he(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const i=o.get(e);if(i)return i;const r=Zl(Cl(e));if(r===0)return e;const l=new Proxy(e,r===2?n:s);return o.set(e,l),l}function _t(e){return St(e)?_t(e.__v_raw):!!(e&&e.__v_isReactive)}function St(e){return!!(e&&e.__v_isReadonly)}function qe(e){return!!(e&&e.__v_isShallow)}function mn(e){return e?!!e.__v_raw:!1}function ce(e){const t=e&&e.__v_raw;return t?ce(t):e}function So(e){return!ue(e,"__v_skip")&&Object.isExtensible(e)&&Ki(e,"__v_skip",!0),e}const Xe=e=>he(e)?ns(e):e,Bt=e=>he(e)?Yn(e):e;function xe(e){return e?e.__v_isRef===!0:!1}function oe(e){return pr(e,!1)}function ea(e){return pr(e,!0)}function pr(e,t){return xe(e)?e:new ta(e,t)}class ta{constructor(t,s){this.dep=new _o,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:ce(t),this._value=s?t:Xe(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,n=this.__v_isShallow||qe(t)||St(t);t=n?t:ce(t),vt(t,s)&&(this._rawValue=t,this._value=n?t:Xe(t),this.dep.trigger())}}function y(e){return xe(e)?e.value:e}const sa={get:(e,t,s)=>t==="__v_raw"?e:y(Reflect.get(e,t,s)),set:(e,t,s,n)=>{const o=e[t];return xe(o)&&!xe(s)?(o.value=s,!0):Reflect.set(e,t,s,n)}};function gr(e){return _t(e)?e:new Proxy(e,sa)}function na(e){const t=q(e)?new Array(e.length):{};for(const s in e)t[s]=ia(e,s);return t}class oa{constructor(t,s,n){this._object=t,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._key=Qe(s)?s:String(s),this._raw=ce(t);let o=!0,i=t;if(!q(t)||Qe(this._key)||!un(this._key))do o=!mn(i)||qe(i);while(o&&(i=i.__v_raw));this._shallow=o}get value(){let t=this._object[this._key];return this._shallow&&(t=y(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&xe(this._raw[this._key])){const s=this._object[this._key];if(xe(s)){s.value=t;return}}this._object[this._key]=t}get dep(){return Ll(this._raw,this._key)}}function ia(e,t,s){return new oa(e,t,s)}class ra{constructor(t,s,n){this.fn=t,this.setter=s,this._value=void 0,this.dep=new _o(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ts-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&ve!==this)return er(this,!0),!0}get value(){const t=this.dep.track();return nr(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function la(e,t,s=!1){let n,o;return ne(e)?n=e:(n=e.get,o=e.set),new ra(n,o,s)}const zs={},Xs=new WeakMap;let Jt;function aa(e,t=!1,s=Jt){if(s){let n=Xs.get(s);n||Xs.set(s,n=[]),n.push(e)}}function ca(e,t,s=me){const{immediate:n,deep:o,once:i,scheduler:r,augmentJob:l,call:a}=s,d=L=>o?L:qe(L)||o===!1||o===0?Ot(L,1):Ot(L);let u,p,b,v,V=!1,N=!1;if(xe(e)?(p=()=>e.value,V=qe(e)):_t(e)?(p=()=>d(e),V=!0):q(e)?(N=!0,V=e.some(L=>_t(L)||qe(L)),p=()=>e.map(L=>{if(xe(L))return L.value;if(_t(L))return d(L);if(ne(L))return a?a(L,2):L()})):ne(e)?t?p=a?()=>a(e,2):e:p=()=>{if(b){bt();try{b()}finally{wt()}}const L=Jt;Jt=u;try{return a?a(e,3,[v]):e(v)}finally{Jt=L}}:p=yt,t&&o){const L=p,z=o===!0?1/0:o;p=()=>Ot(L(),z)}const G=Qi(),$=()=>{u.stop(),G&&G.active&&po(G.effects,u)};if(i&&t){const L=t;t=(...z)=>{try{return L(...z)}finally{$()}}}let T=N?new Array(e.length).fill(zs):zs;const D=L=>{if(!(!(u.flags&1)||!u.dirty&&!L))if(t){const z=u.run();if(L||o||V||(N?z.some((J,U)=>vt(J,T[U])):vt(z,T))){const J=Jt;bt();try{b&&b(),Jt=u;const U=[z,T===zs?void 0:N&&T[0]===zs?[]:T,v];T=z,a?a(t,3,U):t(...U)}finally{Jt=J,wt()}}}else u.run()};return l&&l(D),u=new Xi(p),u.scheduler=r?()=>r(D,!1):D,v=L=>aa(L,!1,u),b=u.onStop=()=>{const L=Xs.get(u);if(L){if(a)a(L,4);else for(const z of L)z();Xs.delete(u)}},t?n?D(!0):T=u.run():r?r(D.bind(null,!0),!0):u.run(),$.pause=u.pause.bind(u),$.resume=u.resume.bind(u),$.stop=$,$}function Ot(e,t=1/0,s){if(t<=0||!he(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,xe(e))Ot(e.value,t,s);else if(q(e))for(let n=0;n<e.length;n++)Ot(e[n],t,s);else if(Mt(e)||jt(e))e.forEach(n=>{Ot(n,t,s)});else if(Bi(e)){for(const n in e)Ot(e[n],t,s);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&Ot(e[n],t,s)}return e}/**
10
+ * @vue/runtime-core v3.5.44
11
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
12
+ * @license MIT
13
+ **/function Vs(e,t,s,n){try{return n?e(...n):e()}catch(o){vn(o,t,s)}}function lt(e,t,s,n){if(ne(e)){const o=Vs(e,t,s,n);return o&&ji(o)&&o.catch(i=>{vn(i,t,s)}),o}if(q(e)){const o=[];for(let i=0;i<e.length;i++)o.push(lt(e[i],t,s,n));return o}}function vn(e,t,s,n=!0){const o=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:r}=t&&t.appContext.config||me;if(t){let l=t.parent;const a=t.proxy,d=`https://vuejs.org/error-reference/#runtime-${s}`;for(;l;){const u=l.ec;if(u){for(let p=0;p<u.length;p++)if(u[p](e,a,d)===!1)return}l=l.parent}if(i){bt(),Vs(i,null,10,[e,a,d]),wt();return}}ua(e,s,o,n,r)}function ua(e,t,s,n=!0,o=!1){if(o)throw e;console.error(e)}const Le=[];let tt=-1;const gt=[];let Lt=null,as=0;const mr=Promise.resolve();let Zs=null;function ps(e){const t=Zs||mr;return e?t.then(this?e.bind(this):e):t}function fa(e){let t=tt+1,s=Le.length;for(;t<s;){const n=t+s>>>1,o=Le[n],i=Ps(o);i<e||i===e&&o.flags&2?t=n+1:s=n}return t}function xo(e){if(!(e.flags&1)){const t=Ps(e),s=Le[Le.length-1];!s||!(e.flags&2)&&t>=Ps(s)?Le.push(e):Le.splice(fa(t),0,e),e.flags|=1,vr()}}function vr(){Zs||(Zs=mr.then(br))}function da(e){if(!q(e))Lt&&e.id===-1?Lt.splice(as+1,0,e):e.flags&1||(gt.push(e),e.flags|=1);else for(let t=0;t<e.length;t++)gt.push(e[t]);vr()}function yr(e,t,s,n=tt+1){for(;n<Le.length;n++){const o=Le[n];if(o&&o.flags&2){if(e&&o.id!==e.uid||t!==void 0&&!(o.id>=t))continue;Le.splice(n,1),n=e?n-1:tt,o.flags&4&&(o.flags&=-2),o(),o.flags&4||(o.flags&=-2)}}}function _r(e,t,s=0){if(gt.length){let n=gt,o=0;if(t){n=[];for(let r=0;r<gt.length;r++){const l=gt[r];(l.i!==void 0?!l.i||l.i.uid<s:t.has(l))?gt[o++]=l:n.push(l)}}const i=[...new Set(n)].sort((r,l)=>Ps(r)-Ps(l));if(gt.length=o,Lt){for(let r=0;r<i.length;r++)Lt.push(i[r]);return}for(Lt=i,as=0;as<Lt.length;as++){const r=Lt[as];r.flags&4&&(r.flags&=-2),r.flags&8||r(),r.flags&=-2}Lt=null,as=0}}let Mn=!1;function ha(e,t){if(Mn){e();return}const s=t===void 0?void 0:new Set(gt);e(),Mn=!0;try{yr(void 0,t),_r(void 0,s,t)}finally{Mn=!1}}const Ps=e=>e.id==null?e.flags&2?-1:1/0:e.id;function br(e){try{for(tt=0;tt<Le.length;tt++){const t=Le[tt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Vs(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;tt<Le.length;tt++){const t=Le[tt];t&&(t.flags&=-2)}tt=-1,Le.length=0,_r(),Zs=null,(Le.length||gt.length)&&br()}}let Ye=null,wr=null;function en(e){const t=Ye;return Ye=e,wr=e&&e.type.__scopeId||null,t}function Yt(e,t=Ye,s){if(!t||e._n)return e;const n=(...o)=>{n._d&&on(-1);const i=en(t),r=ss.length;let l;try{l=e(...o)}finally{for(let a=ss.length;a>r;a--)Kr();en(i),n._d&&on(1)}return l};return n._n=!0,n._c=!0,n._d=!0,n}function Pt(e,t){if(Ye===null)return e;const s=xn(Ye),n=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[i,r,l,a=me]=t[o];i&&(ne(i)&&(i={mounted:i,updated:i}),i.deep&&Ot(r),n.push({dir:i,instance:s,value:r,oldValue:void 0,arg:l,modifiers:a}))}return e}function Gt(e,t,s,n){const o=e.dirs,i=t&&t.dirs;for(let r=0;r<o.length;r++){const l=o[r];i&&(l.oldValue=i[r].value);let a=l.dir[n];a&&(bt(),lt(a,s,8,[e.el,l,e,t]),wt())}}function Js(e,t){if(He){let s=He.provides;const n=He.parent&&He.parent.provides;n===s&&(s=He.provides=Object.create(n)),s[e]=t}}function ot(e,t,s=!1){const n=Jr();if(n||ts){let o=ts?ts._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(o&&e in o)return o[e];if(arguments.length>1)return s&&ne(t)?t.call(n&&n.proxy):t}}function pa(){return!!(Jr()||ts)}const ga=Symbol.for("v-scx"),ma=()=>ot(ga);function $t(e,t,s){return Sr(e,t,s)}function Sr(e,t,s=me){const{immediate:n,deep:o,flush:i,once:r}=s,l=Ne({},s),a=t&&n||!t&&i!=="post";let d;if(Ns){if(i==="sync"){const v=ma();d=v.__watcherHandles||(v.__watcherHandles=[])}else if(!a){const v=()=>{};return v.stop=yt,v.resume=yt,v.pause=yt,v}}const u=He;l.call=(v,V,N)=>lt(v,u,V,N);let p=!1;i==="post"?l.scheduler=v=>{v.i=u,Ue(v,u&&u.suspense)}:i!=="sync"&&(p=!0,l.scheduler=(v,V)=>{V?v():xo(v)}),l.augmentJob=v=>{t&&(v.flags|=4),p&&(v.flags|=2,u&&(v.id=u.uid,v.i=u))};const b=ca(e,t,l);return Ns&&(d?d.push(b):a&&b()),b}function va(e,t,s){const n=this.proxy,o=Se(e)?e.includes(".")?xr(n,e):()=>n[e]:e.bind(n,n);let i;ne(t)?i=t:(i=t.handler,s=t);const r=Ls(this),l=Sr(o,i.bind(n),s);return r(),l}function xr(e,t){const s=t.split(".");return()=>{let n=e;for(let o=0;o<s.length&&n;o++)n=n[s[o]];return n}}const ya=Symbol("_vte"),yn=e=>e.__isTeleport,Nn=Symbol("_leaveCb");function _a(e){let t=e[0];if(e.length>1){for(const s of e)if(s.type!==at){t=s;break}}return t}function kr(e){if(!ko(e))return yn(e.type)&&e.children?_a(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:s}=e;if(s){if(t&16)return s[0];if(t&32&&ne(s.default))return s.default()}}function tn(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;const s=e.component.subTree;tn(yn(s.type)&&kr(s)||s,t)}else if(e.shapeFlag&128)e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback);else if(e.transition=t,e.type===re&&q(e.children)){const s=Ir(e.children,!1);s&&tn(s,t)}}function Qn(e){if(e.component)return Qn(e.component.subTree);if(e.type===re){const t=q(e.children)&&Ir(e.children,!1);return t?Qn(t):void 0}if(e.type!==at)return e}function je(e,t){return ne(e)?Ne({name:e.name},t,{setup:e}):e}function Cr(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Ko(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const sn=new WeakMap;function ks(e,t,s,n,o=!1){if(q(e)){e.forEach((N,G)=>ks(N,t&&(q(t)?t[G]:t),s,n,o));return}if(Cs(n)&&!o){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&ks(e,t,s,n.component.subTree);return}const i=n.shapeFlag&4?xn(n.component):n.el,r=o?null:i,{i:l,r:a}=e,d=t&&t.r,u=l.refs===me?l.refs={}:l.refs,p=l.setupState,b=ce(p),v=p===me?Hi:N=>Ko(u,N)?!1:ue(b,N),V=(N,G)=>!(G&&Ko(u,G));if(d!=null&&d!==a){if(Wo(t),Se(d))u[d]=null,v(d)&&(p[d]=null);else if(xe(d)){const N=t;V(d,N.k)&&(d.value=null),N.k&&(u[N.k]=null)}}if(ne(a))Vs(a,l,12,[r,u]);else{const N=Se(a),G=xe(a);if(N||G){const $=()=>{if(e.f){const T=N?v(a)?p[a]:u[a]:V()||!e.k?a.value:u[e.k];if(o)q(T)&&po(T,i);else if(q(T))T.includes(i)||T.push(i);else if(N)u[a]=[i],v(a)&&(p[a]=u[a]);else{const D=[i];V(a,e.k)&&(a.value=D),e.k&&(u[e.k]=D)}}else N?(u[a]=r,v(a)&&(p[a]=r)):G&&(V(a,e.k)&&(a.value=r),e.k&&(u[e.k]=r))};if(r){const T=()=>{$(),sn.delete(e)};T.id=-1,sn.set(e,T),Ue(T,s)}else Wo(e),$()}}}function Wo(e){const t=sn.get(e);t&&(t.flags|=8,sn.delete(e))}hn().requestIdleCallback;hn().cancelIdleCallback;const Cs=e=>!!e.type.__asyncLoader,ko=e=>e.type.__isKeepAlive;function ba(e,t){Er(e,"a",t)}function wa(e,t){Er(e,"da",t)}function Er(e,t,s=He){const n=e.__wdc||(e.__wdc=()=>{let o=s;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(_n(t,n,s),s){let o=s.parent;for(;o&&o.parent;)ko(o.parent.vnode)&&Sa(n,t,s,o),o=o.parent}}function Sa(e,t,s,n){const o=_n(t,e,n,!0);Ar(()=>{po(n[t],o)},s)}function _n(e,t,s=He,n=!1){if(s){const o=s[e]||(s[e]=[]),i=t.__weh||(t.__weh=(...r)=>{bt();const l=Ls(s),a=lt(t,s,e,r);return l(),wt(),a});return n?o.unshift(i):o.push(i),i}}const Nt=e=>(t,s=He)=>{(!Ns||e==="sp")&&_n(e,(...n)=>t(...n),s)},xa=Nt("bm"),os=Nt("m"),ka=Nt("bu"),Ca=Nt("u"),bn=Nt("bum"),Ar=Nt("um"),Ea=Nt("sp"),Aa=Nt("rtg"),Ra=Nt("rtc");function Ta(e,t=He){_n("ec",e,t)}const Oa=Symbol.for("v-ndc");function Ae(e,t,s,n){let o;const i=s,r=q(e);if(r||Se(e)){const l=r&&_t(e);let a=!1,d=!1;l&&(a=!qe(e),d=St(e),e=gn(e)),o=new Array(e.length);for(let u=0,p=e.length;u<p;u++)o[u]=t(a?d?Bt(Xe(e[u])):Xe(e[u]):e[u],u,void 0,i)}else if(typeof e=="number")if(!Number.isInteger(e)||e<0)o=[];else{o=new Array(e);for(let l=0;l<e;l++)o[l]=t(l+1,l,void 0,i)}else if(he(e))if(e[Symbol.iterator])o=Array.from(e,(l,a)=>t(l,a,void 0,i));else{const l=Object.keys(e);o=new Array(l.length);for(let a=0,d=l.length;a<d;a++){const u=l[a];o[a]=t(e[u],u,a,i)}}else o=[];return o}const Xn=e=>e?Yr(e)?xn(e):Xn(e.parent):null,Es=Ne(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=>Xn(e.parent),$root:e=>Xn(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Tr(e),$forceUpdate:e=>e.f||(e.f=()=>{xo(e.update)}),$nextTick:e=>e.n||(e.n=ps.bind(e.proxy)),$watch:e=>va.bind(e)}),Dn=(e,t)=>e!==me&&!e.__isScriptSetup&&ue(e,t),Pa={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:o,props:i,accessCache:r,type:l,appContext:a}=e;if(t[0]!=="$"){const b=r[t];if(b!==void 0)switch(b){case 1:return n[t];case 2:return o[t];case 4:return s[t];case 3:return i[t]}else{if(Dn(n,t))return r[t]=1,n[t];if(o!==me&&ue(o,t))return r[t]=2,o[t];if(ue(i,t))return r[t]=3,i[t];if(s!==me&&ue(s,t))return r[t]=4,s[t];Zn&&(r[t]=0)}}const d=Es[t];let u,p;if(d)return t==="$attrs"&&De(e.attrs,"get",""),d(e);if((u=l.__cssModules)&&(u=u[t]))return u;if(s!==me&&ue(s,t))return r[t]=4,s[t];if(p=a.config.globalProperties,ue(p,t))return p[t]},set({_:e},t,s){const{data:n,setupState:o,ctx:i}=e;return Dn(o,t)?(o[t]=s,!0):n!==me&&ue(n,t)?(n[t]=s,!0):ue(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:o,props:i,type:r}},l){let a;return!!(s[l]||e!==me&&l[0]!=="$"&&ue(e,l)||Dn(t,l)||ue(i,l)||ue(n,l)||ue(Es,l)||ue(o.config.globalProperties,l)||(a=r.__cssModules)&&a[l])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:ue(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function Go(e){return q(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let Zn=!0;function Ia(e){const t=Tr(e),s=e.proxy,n=e.ctx;Zn=!1,t.beforeCreate&&qo(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:r,watch:l,provide:a,inject:d,created:u,beforeMount:p,mounted:b,beforeUpdate:v,updated:V,activated:N,deactivated:G,beforeDestroy:$,beforeUnmount:T,destroyed:D,unmounted:L,render:z,renderTracked:J,renderTriggered:U,errorCaptured:se,serverPrefetch:X,expose:ge,inheritAttrs:ke,components:Pe,directives:_e,filters:Ce}=t;if(d&&$a(d,n,null),r)for(const te in r){const le=r[te];ne(le)&&(n[te]=le.bind(s))}if(o){const te=o.call(s,s);he(te)&&(e.data=ns(te))}if(Zn=!0,i)for(const te in i){const le=i[te],et=ne(le)?le.bind(s,s):ne(le.get)?le.get.bind(s,s):yt,Je=!ne(le)&&ne(le.set)?le.set.bind(s):yt,ze=ie({get:et,set:Je});Object.defineProperty(n,te,{enumerable:!0,configurable:!0,get:()=>ze.value,set:Ie=>ze.value=Ie})}if(l)for(const te in l)Rr(l[te],n,s,te);if(a){const te=ne(a)?a.call(s):a;Reflect.ownKeys(te).forEach(le=>{Js(le,te[le])})}u&&qo(u,e,"c");function de(te,le){q(le)?le.forEach(et=>te(et.bind(s))):le&&te(le.bind(s))}if(de(xa,p),de(os,b),de(ka,v),de(Ca,V),de(ba,N),de(wa,G),de(Ta,se),de(Ra,J),de(Aa,U),de(bn,T),de(Ar,L),de(Ea,X),q(ge))if(ge.length){const te=e.exposed||(e.exposed={});ge.forEach(le=>{Object.defineProperty(te,le,{get:()=>s[le],set:et=>s[le]=et,enumerable:!0})})}else e.exposed||(e.exposed={});z&&e.render===yt&&(e.render=z),ke!=null&&(e.inheritAttrs=ke),Pe&&(e.components=Pe),_e&&(e.directives=_e),X&&Cr(e)}function $a(e,t,s=yt){q(e)&&(e=eo(e));for(const n in e){const o=e[n];let i;he(o)?"default"in o?i=ot(o.from||n,o.default,!0):i=ot(o.from||n):i=ot(o),xe(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:r=>i.value=r}):t[n]=i}}function qo(e,t,s){lt(q(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function Rr(e,t,s,n){let o=n.includes(".")?xr(s,n):()=>s[n];if(Se(e)){const i=t[e];ne(i)&&$t(o,i)}else if(ne(e))$t(o,e.bind(s));else if(he(e))if(q(e))e.forEach(i=>Rr(i,t,s,n));else{const i=ne(e.handler)?e.handler.bind(s):t[e.handler];ne(i)&&$t(o,i,e)}}function Tr(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:r}}=e.appContext,l=i.get(t);let a;return l?a=l:!o.length&&!s&&!n?a=t:(a={},o.length&&o.forEach(d=>nn(a,d,r,!0)),nn(a,t,r)),he(t)&&i.set(t,a),a}function nn(e,t,s,n=!1){const{mixins:o,extends:i}=t;i&&nn(e,i,s,!0),o&&o.forEach(r=>nn(e,r,s,!0));for(const r in t)if(!(n&&r==="expose")){const l=Ma[r]||s&&s[r];e[r]=l?l(e[r],t[r]):t[r]}return e}const Ma={data:Jo,props:Yo,emits:Yo,methods:_s,computed:_s,beforeCreate:Fe,created:Fe,beforeMount:Fe,mounted:Fe,beforeUpdate:Fe,updated:Fe,beforeDestroy:Fe,beforeUnmount:Fe,destroyed:Fe,unmounted:Fe,activated:Fe,deactivated:Fe,errorCaptured:Fe,serverPrefetch:Fe,components:_s,directives:_s,watch:Da,provide:Jo,inject:Na};function Jo(e,t){return t?e?function(){return Ne(ne(e)?e.call(this,this):e,ne(t)?t.call(this,this):t)}:t:e}function Na(e,t){return _s(eo(e),eo(t))}function eo(e){if(q(e)){const t={};for(let s=0;s<e.length;s++)t[e[s]]=e[s];return t}return e}function Fe(e,t){return e?[...new Set([].concat(e,t))]:t}function _s(e,t){return e?Ne(Object.create(null),e,t):t}function Yo(e,t){return e?q(e)&&q(t)?[...new Set([...e,...t])]:Ne(Object.create(null),Go(e),Go(t??{})):t}function Da(e,t){if(!e)return t;if(!t)return e;const s=Ne(Object.create(null),e);for(const n in t)s[n]=Fe(e[n],t[n]);return s}function Or(){return{app:null,config:{isNativeTag:Hi,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 Fa=0;function Va(e,t){return function(n,o=null){ne(n)||(n=Ne({},n)),o!=null&&!he(o)&&(o=null);const i=Or(),r=new WeakSet,l=[];let a=!1;const d=i.app={_uid:Fa++,_component:n,_props:o,_container:null,_context:i,_instance:null,version:pc,get config(){return i.config},set config(u){},use(u,...p){return r.has(u)||(u&&ne(u.install)?(r.add(u),u.install(d,...p)):ne(u)&&(r.add(u),u(d,...p))),d},mixin(u){return i.mixins.includes(u)||i.mixins.push(u),d},component(u,p){return p?(i.components[u]=p,d):i.components[u]},directive(u,p){return p?(i.directives[u]=p,d):i.directives[u]},mount(u,p,b){if(!a){const v=d._ceVNode||K(n,o);return v.appContext=i,b===!0?b="svg":b===!1&&(b=void 0),e(v,u,b),a=!0,d._container=u,u.__vue_app__=d,xn(v.component)}},onUnmount(u){l.push(u)},unmount(){a&&(lt(l,d._instance,16),e(null,d._container),delete d._container.__vue_app__)},provide(u,p){return i.provides[u]=p,d},runWithContext(u){const p=ts;ts=d;try{return u()}finally{ts=p}}};return d}}let ts=null;const La=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${st(t)}Modifiers`]||e[`${Kt(t)}Modifiers`];function Ha(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||me;let o=s;const i=t.startsWith("update:"),r=i&&La(n,t.slice(7));r&&(r.trim&&(o=s.map(u=>Se(u)?u.trim():u)),r.number&&(o=o.map(dn)));let l,a=n[l=Tn(t)]||n[l=Tn(st(t))];!a&&i&&(a=n[l=Tn(Kt(t))]),a&&lt(a,e,6,o);const d=n[l+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,lt(d,e,6,o)}}const ja=new WeakMap;function Pr(e,t,s=!1){const n=s?ja:t.emitsCache,o=n.get(e);if(o!==void 0)return o;const i=e.emits;let r={},l=!1;if(!ne(e)){const a=d=>{const u=Pr(d,t,!0);u&&(l=!0,Ne(r,u))};!s&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!i&&!l?(he(e)&&n.set(e,null),null):(q(i)?i.forEach(a=>r[a]=null):Ne(r,i),he(e)&&n.set(e,r),r)}function wn(e,t){return!e||!an(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),ue(e,t[0].toLowerCase()+t.slice(1))||ue(e,Kt(t))||ue(e,t))}function Qo(e){const{type:t,vnode:s,proxy:n,withProxy:o,propsOptions:[i],slots:r,attrs:l,emit:a,render:d,renderCache:u,props:p,data:b,setupState:v,ctx:V,inheritAttrs:N}=e,G=en(e);let $,T;try{if(s.shapeFlag&4){const L=o||n,z=L;$=mt(d.call(z,L,u,p,v,b,V)),T=l}else{const L=t;$=mt(L.length>1?L(p,{attrs:l,slots:r,emit:a}):L(p,null)),T=t.props?l:Ua(l)}}catch(L){ss.length=0,vn(L,e,1),$=K(at)}let D=$;if(T&&N!==!1){const L=Object.keys(T),{shapeFlag:z}=D;L.length&&z&7&&(i&&L.some(cn)&&(T=Ba(T,i)),D=us(D,T,!1,!0))}if(s.dirs&&(D=us(D,null,!1,!0),D.dirs=D.dirs?D.dirs.concat(s.dirs):s.dirs),s.transition){const L=yn(D.type)&&kr(D)||D;tn(L,s.transition)}return $=D,en(G),$}function Ir(e,t=!0){let s;for(let n=0;n<e.length;n++){const o=e[n];if($s(o)){if(o.type!==at||o.children==="v-if"){if(s)return;s=o}}else return}return s}const Ua=e=>{let t;for(const s in e)(s==="class"||s==="style"||an(s))&&((t||(t={}))[s]=e[s]);return t},Ba=(e,t)=>{const s={};for(const n in e)(!cn(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function za(e,t,s){const{props:n,children:o,component:i}=e,{props:r,children:l,patchFlag:a}=t,d=i.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&a>=0){if(a&1024)return!0;if(a&16)return n?Xo(n,r,d):!!r;if(a&8){const u=t.dynamicProps;for(let p=0;p<u.length;p++){const b=u[p];if($r(r,n,b)&&!wn(d,b))return!0}}}else return(o||l)&&(!l||!l.$stable)?!0:n===r?!1:n?r?Xo(n,r,d):!0:!!r;return!1}function Xo(e,t,s){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let o=0;o<n.length;o++){const i=n[o];if(!ue(e,i)||$r(t,e,i)&&!wn(s,i))return!0}return!1}function $r(e,t,s){const n=e[s],o=t[s];return s==="style"&&he(n)&&he(o)?!rt(n,o):n!==o}function Ka({vnode:e,parent:t,suspense:s},n){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.suspense.vnode.el=o.el=n,e=o),o===e)(e=t.vnode).el=n,t=t.parent;else break}s&&s.activeBranch===e&&(s.vnode.el=n)}const Mr={},Nr=()=>Object.create(Mr),Dr=e=>Object.getPrototypeOf(e)===Mr;function Wa(e,t,s,n=!1){const o={},i=Nr();e.propsDefaults=Object.create(null),Fr(e,t,o,i);for(const r in e.propsOptions[0])r in o||(o[r]=void 0);s?e.props=n?o:hr(o):e.type.props?e.props=o:e.props=i,e.attrs=i}function Ga(e,t,s,n){const{props:o,attrs:i,vnode:{patchFlag:r}}=e,l=ce(o),[a]=e.propsOptions;let d=!1;if((n||r>0)&&!(r&16)){if(r&8){const u=e.vnode.dynamicProps;for(let p=0;p<u.length;p++){let b=u[p];if(wn(e.emitsOptions,b))continue;const v=t[b];if(a)if(ue(i,b))v!==i[b]&&(i[b]=v,d=!0);else{const V=st(b);o[V]=to(a,l,V,v,e,!1)}else v!==i[b]&&(i[b]=v,d=!0)}}}else{Fr(e,t,o,i)&&(d=!0);let u;for(const p in l)(!t||!ue(t,p)&&((u=Kt(p))===p||!ue(t,u)))&&(a?s&&(s[p]!==void 0||s[u]!==void 0)&&(o[p]=to(a,l,p,void 0,e,!0)):delete o[p]);if(i!==l)for(const p in i)(!t||!ue(t,p))&&(delete i[p],d=!0)}d&&Tt(e.attrs,"set","")}function Fr(e,t,s,n){const[o,i]=e.propsOptions;let r=!1,l;if(t)for(let a in t){if(ws(a))continue;const d=t[a];let u;o&&ue(o,u=st(a))?!i||!i.includes(u)?s[u]=d:(l||(l={}))[u]=d:wn(e.emitsOptions,a)||(!(a in n)||d!==n[a])&&(n[a]=d,r=!0)}if(i){const a=ce(s),d=l||me;for(let u=0;u<i.length;u++){const p=i[u];s[p]=to(o,a,p,d[p],e,!ue(d,p))}}return r}function to(e,t,s,n,o,i){const r=e[s];if(r!=null){const l=ue(r,"default");if(l&&n===void 0){const a=r.default;if(r.type!==Function&&!r.skipFactory&&ne(a)){const{propsDefaults:d}=o;if(s in d)n=d[s];else{const u=Ls(o);n=d[s]=a.call(null,t),u()}}else n=a;o.ce&&o.ce._setProp(s,n)}r[0]&&(i&&!l?n=!1:r[1]&&(n===""||n===Kt(s))&&(n=!0))}return n}const qa=new WeakMap;function Vr(e,t,s=!1){const n=s?qa:t.propsCache,o=n.get(e);if(o)return o;const i=e.props,r={},l=[];let a=!1;if(!ne(e)){const u=p=>{a=!0;const[b,v]=Vr(p,t,!0);Ne(r,b),v&&l.push(...v)};!s&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!a)return he(e)&&n.set(e,Xt),Xt;if(q(i))for(let u=0;u<i.length;u++){const p=st(i[u]);Zo(p)&&(r[p]=me)}else if(i)for(const u in i){const p=st(u);if(Zo(p)){const b=i[u],v=r[p]=q(b)||ne(b)?{type:b}:Ne({},b),V=v.type;let N=!1,G=!0;if(q(V))for(let $=0;$<V.length;++$){const T=V[$],D=ne(T)&&T.name;if(D==="Boolean"){N=!0;break}else D==="String"&&(G=!1)}else N=ne(V)&&V.name==="Boolean";v[0]=N,v[1]=G,(N||ue(v,"default"))&&l.push(p)}}const d=[r,l];return he(e)&&n.set(e,d),d}function Zo(e){return e[0]!=="$"&&!ws(e)}const Co=e=>e==="_"||e==="_ctx"||e==="$stable",Eo=e=>q(e)?e.map(mt):[mt(e)],Ja=(e,t,s)=>{if(t._n)return t;const n=Yt((...o)=>Eo(t(...o)),s);return n._c=!1,n},Lr=(e,t,s)=>{const n=e._ctx;for(const o in e){if(Co(o))continue;const i=e[o];if(ne(i))t[o]=Ja(o,i,n);else if(i!=null){const r=Eo(i);t[o]=()=>r}}},Hr=(e,t)=>{const s=Eo(t);e.slots.default=()=>s},jr=(e,t,s)=>{for(const n in t)(s||!Co(n))&&(e[n]=t[n])},Ya=(e,t,s)=>{const n=e.slots=Nr();if(e.vnode.shapeFlag&32){const o=t._;o?(jr(n,t,s),s&&Ki(n,"_",o,!0)):Lr(t,n)}else t&&Hr(e,t)},Qa=(e,t,s)=>{const{vnode:n,slots:o}=e;let i=!0,r=me;if(n.shapeFlag&32){const l=t._;l?s&&l===1?i=!1:jr(o,t,s):(i=!t.$stable,Lr(t,o)),r=t}else t&&(Hr(e,t),r={default:1});if(i)for(const l in o)!Co(l)&&r[l]==null&&delete o[l]},Ue=sc;function Xa(e){return Za(e)}function Za(e,t){const s=hn();s.__VUE__=!0;const{insert:n,remove:o,patchProp:i,createElement:r,createText:l,createComment:a,setText:d,setElementText:u,parentNode:p,nextSibling:b,setScopeId:v=yt,insertStaticContent:V}=e,N=(f,g,w,k=null,C=null,O=null,I=void 0,F=null,M=!!g.dynamicChildren)=>{if(f===g)return;f&&!vs(f,g)&&(k=A(f),Ie(f,C,O,!0),f=null),g.patchFlag===-2&&(M=!1,g.dynamicChildren=null),g.dynamicChildren&&f&&f.dynamicChildren&&f.dynamicChildren.hasOnce&&(g.dynamicChildren===Xt&&(g.dynamicChildren=[]),g.dynamicChildren.hasOnce=!0);const{type:h,ref:S,shapeFlag:m}=g;switch(h){case Sn:G(f,g,w,k);break;case at:$(f,g,w,k);break;case Vn:f==null&&T(g,w,k,I);break;case re:Pe(f,g,w,k,C,O,I,F,M);break;default:m&1?z(f,g,w,k,C,O,I,F,M):m&6?_e(f,g,w,k,C,O,I,F,M):(m&64||m&128)&&h.process(f,g,w,k,C,O,I,F,M,j)}S!=null&&C?ks(S,f&&f.ref,O,g||f,!g):S==null&&f&&f.ref!=null&&ks(f.ref,null,O,f,!0)},G=(f,g,w,k)=>{if(f==null)n(g.el=l(g.children),w,k);else{const C=g.el=f.el;g.children!==f.children&&d(C,g.children)}},$=(f,g,w,k)=>{f==null?n(g.el=a(g.children||""),w,k):g.el=f.el},T=(f,g,w,k)=>{[f.el,f.anchor]=V(f.children,g,w,k,f.el,f.anchor)},D=({el:f,anchor:g},w,k)=>{let C;for(;f&&f!==g;)C=b(f),n(f,w,k),f=C;n(g,w,k)},L=({el:f,anchor:g})=>{let w;for(;f&&f!==g;)w=b(f),o(f),f=w;o(g)},z=(f,g,w,k,C,O,I,F,M)=>{if(g.type==="svg"?I="svg":g.type==="math"&&(I="mathml"),f==null)J(g,w,k,C,O,I,F,M);else{const h=f.el&&f.el._isVueCE?f.el:null;try{h&&h._beginPatch(),X(f,g,C,O,I,F,M)}finally{h&&h._endPatch()}}},J=(f,g,w,k,C,O,I,F)=>{let M,h;const{props:S,shapeFlag:m,transition:R,dirs:H}=f;if(M=f.el=r(f.type,O,S&&S.is,S),m&8?u(M,f.children):m&16&&se(f.children,M,null,k,C,Fn(f,O),I,F),H&&Gt(f,null,k,"created"),U(M,f,f.scopeId,I,k),S){for(const pe in S)pe!=="value"&&!ws(pe)&&i(M,pe,null,S[pe],O,k);"value"in S&&i(M,"value",null,S.value,O),(h=S.onVnodeBeforeMount)&&ht(h,k,f)}H&&Gt(f,null,k,"beforeMount");const ee=ec(C,R);ee&&R.beforeEnter(M),n(M,g,w),((h=S&&S.onVnodeMounted)||ee||H)&&Ue(()=>{try{h&&ht(h,k,f),ee&&R.enter(M),H&&Gt(f,null,k,"mounted")}finally{}},C)},U=(f,g,w,k,C)=>{if(w&&v(f,w),k)for(let O=0;O<k.length;O++)v(f,k[O]);if(C){let O=C.subTree;if(g===O||zr(O.type)&&(O.ssContent===g||O.ssFallback===g)){const I=C.vnode;U(f,I,I.scopeId,I.slotScopeIds,C.parent)}}},se=(f,g,w,k,C,O,I,F,M=0)=>{for(let h=M;h<f.length;h++){const S=f[h]=F?Rt(f[h]):mt(f[h]);N(null,S,g,w,k,C,O,I,F)}},X=(f,g,w,k,C,O,I)=>{const F=g.el=f.el;let{patchFlag:M,dynamicChildren:h,dirs:S}=g;M|=f.patchFlag&16;const m=f.props||me,R=g.props||me;let H;if(w&&qt(w,!1),(H=R.onVnodeBeforeUpdate)&&ht(H,w,g,f),S&&Gt(g,f,w,"beforeUpdate"),w&&qt(w,!0),h&&(!f.dynamicChildren||f.dynamicChildren.length!==h.length)&&(M=0,I=!1,h=null),(m.innerHTML&&R.innerHTML==null||m.textContent&&R.textContent==null)&&u(F,""),h?ge(f.dynamicChildren,h,F,w,k,Fn(g,C),O):I||le(f,g,F,null,w,k,Fn(g,C),O,!1),M>0){if(M&16)ke(F,m,R,w,C);else if(M&2&&m.class!==R.class&&i(F,"class",null,R.class,C),M&4&&i(F,"style",m.style,R.style,C),M&8){const ee=g.dynamicProps;for(let pe=0;pe<ee.length;pe++){const ae=ee[pe],Ee=m[ae],Me=R[ae];(Me!==Ee||ae==="value")&&i(F,ae,Ee,Me,C,w)}}M&1&&f.children!==g.children&&u(F,g.children)}else!I&&h==null&&ke(F,m,R,w,C);((H=R.onVnodeUpdated)||S)&&Ue(()=>{H&&ht(H,w,g,f),S&&Gt(g,f,w,"updated")},k)},ge=(f,g,w,k,C,O,I)=>{for(let F=0;F<g.length;F++){const M=f[F],h=g[F],S=M.el||so(M),m=S&&(M.type===re||!vs(M,h)||M.shapeFlag&198)?p(S):w;N(M,h,m,null,k,C,O,I,!0)}},ke=(f,g,w,k,C)=>{if(g!==w){if(g!==me)for(const O in g)!ws(O)&&!(O in w)&&i(f,O,g[O],null,C,k);for(const O in w){if(ws(O))continue;const I=w[O],F=g[O];I!==F&&O!=="value"&&i(f,O,F,I,C,k)}"value"in w&&i(f,"value",g.value,w.value,C)}},Pe=(f,g,w,k,C,O,I,F,M)=>{const h=g.el=f?f.el:l(""),S=g.anchor=f?f.anchor:l("");let{patchFlag:m,dynamicChildren:R,slotScopeIds:H}=g;H&&(F=F?F.concat(H):H),f==null?(n(h,w,k),n(S,w,k),se(g.children||[],w,S,C,O,I,F,M)):m>0&&m&64&&R&&f.dynamicChildren&&f.dynamicChildren.length===R.length?(ge(f.dynamicChildren,R,w,C,O,I,F),(g.key!=null||C&&g===C.subTree)&&Ur(f,g,!0)):le(f,g,w,S,C,O,I,F,M)},_e=(f,g,w,k,C,O,I,F,M)=>{g.slotScopeIds=F,f==null?g.shapeFlag&512?C.ctx.activate(g,w,k,I,M):Ce(g,w,k,C,O,I,M):Be(f,g,M)},Ce=(f,g,w,k,C,O,I)=>{const F=f.component=ac(f,k,C);if(ko(f)&&(F.ctx.renderer=j),cc(F,!1,I),F.asyncDep){if(C&&C.registerDep(F,de,I,O),!f.el){const M=F.subTree=K(at);$(null,M,g,w),f.placeholder=M.el}}else de(F,f,g,w,C,O,I)},Be=(f,g,w)=>{const k=g.component=f.component;if(za(f,g,w))if(k.asyncDep&&!k.asyncResolved){g.el=f.el,g.placeholder=f.placeholder,te(k,g,w);return}else k.next=g,k.update();else g.el=f.el,g.placeholder=f.placeholder,k.vnode=g},de=(f,g,w,k,C,O,I)=>{const F=()=>{if(f.isMounted){let{next:m,bu:R,u:H,parent:ee,vnode:pe}=f;{const ft=Br(f);if(ft){m&&(m.el=pe.el,te(f,m,I)),ft.asyncDep.then(()=>{Ue(()=>{f.isUnmounted||h()},C)});return}}let ae=m,Ee;qt(f,!1),m?(m.el=pe.el,te(f,m,I)):m=pe,R&&qs(R),(Ee=m.props&&m.props.onVnodeBeforeUpdate)&&ht(Ee,ee,m,pe),qt(f,!0);const Me=Qo(f),ut=f.subTree;f.subTree=Me,N(ut,Me,p(ut.el),A(ut),f,C,O),m.el=Me.el,ae===null&&Ka(f,Me.el),H&&Ue(H,C),(Ee=m.props&&m.props.onVnodeUpdated)&&Ue(()=>ht(Ee,ee,m,pe),C)}else{let m;const{el:R,props:H}=g,{bm:ee,m:pe,parent:ae,root:Ee,type:Me}=f,ut=Cs(g);qt(f,!1),ee&&qs(ee),!ut&&(m=H&&H.onVnodeBeforeMount)&&ht(m,ae,g),qt(f,!0);{Ee.ce&&Ee.ce._hasShadowRoot()&&Ee.ce._injectChildStyle(Me,f.parent?f.parent.type:void 0);const ft=f.subTree=Qo(f);N(null,ft,w,k,f,C,O),g.el=ft.el}if(pe&&Ue(pe,C),!ut&&(m=H&&H.onVnodeMounted)){const ft=g;Ue(()=>ht(m,ae,ft),C)}(g.shapeFlag&256||ae&&Cs(ae.vnode)&&ae.vnode.shapeFlag&256)&&f.a&&Ue(f.a,C),f.isMounted=!0,g=w=k=null}};f.scope.on();const M=f.effect=new Xi(F);f.scope.off();const h=f.update=M.run.bind(M),S=f.job=M.runIfDirty.bind(M);S.i=f,S.id=f.uid,M.scheduler=()=>xo(S),qt(f,!0),h()},te=(f,g,w)=>{g.component=f;const k=f.vnode.props;f.vnode=g,f.next=null,Ga(f,g.props,k,w),Qa(f,g.children,w),bt(),yr(f),wt()},le=(f,g,w,k,C,O,I,F,M=!1)=>{const h=f&&f.children,S=f?f.shapeFlag:0,m=g.children,{patchFlag:R,shapeFlag:H}=g;if(R>0){if(R&128){Je(h,m,w,k,C,O,I,F,M);return}else if(R&256){et(h,m,w,k,C,O,I,F,M);return}}H&8?(S&16&&$e(h,C,O),m!==h&&u(w,m)):S&16?H&16?Je(h,m,w,k,C,O,I,F,M):$e(h,C,O,!0):(S&8&&u(w,""),H&16&&se(m,w,k,C,O,I,F,M))},et=(f,g,w,k,C,O,I,F,M)=>{f=f||Xt,g=g||Xt;const h=f.length,S=g.length,m=Math.min(h,S);let R;for(R=0;R<m;R++){const H=g[R]=M?Rt(g[R]):mt(g[R]);N(f[R],H,w,null,C,O,I,F,M)}h>S?$e(f,C,O,!0,!1,m):se(g,w,k,C,O,I,F,M,m)},Je=(f,g,w,k,C,O,I,F,M)=>{let h=0;const S=g.length;let m=f.length-1,R=S-1;for(;h<=m&&h<=R;){const H=f[h],ee=g[h]=M?Rt(g[h]):mt(g[h]);if(vs(H,ee))N(H,ee,w,null,C,O,I,F,M);else break;h++}for(;h<=m&&h<=R;){const H=f[m],ee=g[R]=M?Rt(g[R]):mt(g[R]);if(vs(H,ee))N(H,ee,w,null,C,O,I,F,M);else break;m--,R--}if(h>m){if(h<=R){const H=R+1,ee=H<S?g[H].el:k;for(;h<=R;)N(null,g[h]=M?Rt(g[h]):mt(g[h]),w,ee,C,O,I,F,M),h++}}else if(h>R)for(;h<=m;)Ie(f[h],C,O,!0),h++;else{const H=h,ee=h,pe=new Map;for(h=ee;h<=R;h++){const Ke=g[h]=M?Rt(g[h]):mt(g[h]);Ke.key!=null&&pe.set(Ke.key,h)}let ae,Ee=0;const Me=R-ee+1;let ut=!1,ft=0;const gs=new Array(Me);for(h=0;h<Me;h++)gs[h]=0;for(h=H;h<=m;h++){const Ke=f[h];if(Ee>=Me){Ie(Ke,C,O,!0);continue}let dt;if(Ke.key!=null)dt=pe.get(Ke.key);else for(ae=ee;ae<=R;ae++)if(gs[ae-ee]===0&&vs(Ke,g[ae])){dt=ae;break}dt===void 0?Ie(Ke,C,O,!0):(gs[dt-ee]=h+1,dt>=ft?ft=dt:ut=!0,N(Ke,g[dt],w,null,C,O,I,F,M),Ee++)}const No=ut?tc(gs):Xt;for(ae=No.length-1,h=Me-1;h>=0;h--){const Ke=ee+h,dt=g[Ke],Do=g[Ke+1],Fo=Ke+1<S?Do.el||so(Do):k;gs[h]===0?N(null,dt,w,Fo,C,O,I,F,M):ut&&(ae<0||h!==No[ae]?ze(dt,w,Fo,2):ae--)}}},ze=(f,g,w,k,C=null)=>{const{el:O,type:I,transition:F,children:M,shapeFlag:h}=f;if(h&6){ze(f.component.subTree,g,w,k);return}if(h&128){f.suspense.move(g,w,k);return}if(h&64){I.move(f,g,w,j);return}if(I===re){n(O,g,w);for(let m=0;m<M.length;m++)ze(M[m],g,w,k);n(f.anchor,g,w);return}if(I===Vn){D(f,g,w);return}if(k!==2&&h&1&&F)if(k===0)F.persisted&&!O[Nn]?n(O,g,w):(F.beforeEnter(O),n(O,g,w),Ue(()=>F.enter(O),C));else{const{leave:m,delayLeave:R,afterLeave:H}=F,ee=()=>{f.ctx.isUnmounted?o(O):n(O,g,w)},pe=()=>{const ae=O._isLeaving||!!O[Nn];O._isLeaving&&O[Nn](!0),F.persisted&&!ae?ee():m(O,()=>{ee(),H&&H()})};R?R(O,ee,pe):pe()}else n(O,g,w)},Ie=(f,g,w,k=!1,C=!1)=>{const{type:O,props:I,ref:F,children:M,dynamicChildren:h,shapeFlag:S,patchFlag:m,dirs:R,cacheIndex:H,memo:ee}=f;if((m===-2||h&&h.hasOnce)&&(C=!1),F!=null&&(bt(),ks(F,null,w,f,!0),wt()),H!=null&&(!f.ctx||f.ctx===g)&&(g.renderCache[H]=void 0),S&256){g.ctx.deactivate(f);return}const pe=S&1&&R,ae=!Cs(f);let Ee;if(ae&&(Ee=I&&I.onVnodeBeforeUnmount)&&ht(Ee,g,f),S&6)kt(f.component,w,k);else{if(S&128){f.suspense.unmount(w,k);return}pe&&Gt(f,null,g,"beforeUnmount"),S&64?f.type.remove(f,g,w,j,k):h&&!h.hasOnce&&(O!==re||m>0&&m&64)?$e(h,g,w,!1,!0):(O===re&&m&384||!C&&S&16)&&$e(M,g,w),k&&Dt(f)}const Me=ee!=null&&H==null;(ae&&(Ee=I&&I.onVnodeUnmounted)||pe||Me)&&Ue(()=>{Ee&&ht(Ee,g,f),pe&&Gt(f,null,g,"unmounted"),Me&&(f.el=null)},w)},Dt=f=>{const{type:g,el:w,anchor:k,transition:C}=f,O=g===re;if(O&&!C){xt(w,k);return}if(g===Vn){L(f),C&&!C.persisted&&C.afterLeave&&C.afterLeave();return}const I=O?Qn(f):f,F=()=>{O?p(w)&&xt(w,k):o(w),C&&!C.persisted&&C.afterLeave&&C.afterLeave()};if(I&&I.shapeFlag&1&&C&&!C.persisted){const{leave:M,delayLeave:h}=C,S=I.el,m=()=>M(S,F);h?h(S,F,m):m()}else F()},xt=(f,g)=>{let w;for(;f!==g;)w=b(f),o(f),f=w;o(g)},kt=(f,g,w)=>{const{bum:k,scope:C,job:O,subTree:I,um:F,m:M,a:h}=f;ei(M),ei(h),k&&qs(k),C.stop(),O?(O.flags|=8,Ie(I,f,g,w)):f.vnode.el&&I&&(I.transition=f.vnode.transition,Ie(I,f,g,w)),F&&Ue(F,g),Ue(()=>{f.isUnmounted=!0},g)},$e=(f,g,w,k=!1,C=!1,O=0)=>{for(let I=O;I<f.length;I++)Ie(f[I],g,w,k,C)},A=f=>{if(f.shapeFlag&6)return A(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const g=b(f.anchor||f.el),w=g&&g[ya];return w?b(w):g},W=(f,g,w)=>{const k=f&&g._vnode?void 0:f&&f.component?f.component.uid:lc();ha(()=>{f==null?g._vnode&&Ie(g._vnode,null,null,!0):N(g._vnode||null,f,g,null,null,null,w),g._vnode=f},k)},j={p:N,um:Ie,m:ze,r:Dt,mt:Ce,mc:se,pc:le,pbc:ge,n:A,o:e};return{render:W,hydrate:void 0,createApp:Va(W)}}function Fn({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function qt({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function ec(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ur(e,t,s=!1){const n=e.children,o=t.children;if(q(n)&&q(o))for(let i=0;i<n.length;i++){const r=n[i];let l=o[i];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=o[i]=Rt(o[i]),l.el=r.el),!s&&l.patchFlag!==-2&&Ur(r,l)),l.type===Sn&&(l.patchFlag===-1&&(l=o[i]=Rt(l)),l.el=r.el),l.type===at&&!l.el&&(l.el=r.el)}}function tc(e){const t=e.slice(),s=[0];let n,o,i,r,l;const a=e.length;for(n=0;n<a;n++){const d=e[n];if(d!==0){if(o=s[s.length-1],e[o]<d){t[n]=o,s.push(n);continue}for(i=0,r=s.length-1;i<r;)l=i+r>>1,e[s[l]]<d?i=l+1:r=l;d<e[s[i]]&&(i>0&&(t[n]=s[i-1]),s[i]=n)}}for(i=s.length,r=s[i-1];i-- >0;)s[i]=r,r=t[r];return s}function Br(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Br(t)}function ei(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function so(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?so(t.subTree):null}const zr=e=>e.__isSuspense;function sc(e,t){t&&t.pendingBranch?q(e)?t.effects.push(...e):t.effects.push(e):da(e)}const re=Symbol.for("v-fgt"),Sn=Symbol.for("v-txt"),at=Symbol.for("v-cmt"),Vn=Symbol.for("v-stc"),ss=[];let We=null;function E(e=!1){ss.push(We=e?null:[])}function Kr(){ss.pop(),We=ss[ss.length-1]||null}let Is=1;function on(e,t=!1){Is+=e,e<0&&We&&t&&(We.hasOnce=!0)}function Wr(e){return e.dynamicChildren=Is>0?We||Xt:null,Kr(),Is>0&&We&&We.push(e),e}function P(e,t,s,n,o,i){return Wr(c(e,t,s,n,o,i,!0))}function it(e,t,s,n,o){return Wr(K(e,t,s,n,o,!0))}function $s(e){return e?e.__v_isVNode===!0:!1}function vs(e,t){return e.type===t.type&&e.key===t.key}const Gr=({key:e})=>e??null,Ys=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?Se(e)||xe(e)||ne(e)?{i:Ye,r:e,k:t,f:!!s}:e:null);function c(e,t=null,s=null,n=0,o=null,i=e===re?0:1,r=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Gr(t),ref:t&&Ys(t),scopeId:wr,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:n,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Ye};return l?(rn(a,s),i&128&&e.normalize(a)):s&&(a.shapeFlag|=Se(s)?8:16),Is>0&&!r&&We&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&We.push(a),a}const K=nc;function nc(e,t=null,s=null,n=0,o=null,i=!1){if((!e||e===Oa)&&(e=at),$s(e)){const l=us(e,t,!0);return s&&rn(l,s),Is>0&&!i&&We&&(l.shapeFlag&6?We[We.indexOf(e)]=l:We.push(l)),l.patchFlag=-2,l}if(hc(e)&&(e=e.__vccOpts),t){t=oc(t);let{class:l,style:a}=t;l&&!Se(l)&&(t.class=ye(l)),he(a)&&(mn(a)&&!q(a)&&(a=Ne({},a)),t.style=pn(a))}const r=Se(e)?1:zr(e)?128:yn(e)?64:he(e)?4:ne(e)?2:0;return c(e,t,s,n,o,r,i,!0)}function oc(e){return e?mn(e)||Dr(e)?Ne({},e):e:null}function us(e,t,s=!1,n=!1){const{props:o,ref:i,patchFlag:r,children:l,transition:a}=e,d=t?ic(o||{},t):o,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&Gr(d),ref:t&&t.ref?s&&i?q(i)?i.concat(Ys(t)):[i,Ys(t)]:Ys(t):i,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!==re?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&us(e.ssContent),ssFallback:e.ssFallback&&us(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce,cacheIndex:e.cacheIndex};return a&&n&&tn(u,a.clone(u)),u}function B(e=" ",t=0){return K(Sn,null,e,t)}function Z(e="",t=!1){return t?(E(),it(at,null,e)):K(at,null,e)}function mt(e){return e==null||typeof e=="boolean"?K(at):q(e)?K(re,null,e.slice()):$s(e)?Rt(e):K(Sn,null,String(e))}function Rt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:us(e)}function rn(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(q(t))s=16;else if(typeof t=="object")if(n&65){const o=t.default;o&&(o._c&&(o._d=!1),rn(e,o()),o._c&&(o._d=!0));return}else{s=32;const o=t._;!o&&!Dr(t)?t._ctx=Ye:o===3&&Ye&&(Ye.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(ne(t)){if(n&65){rn(e,{default:t});return}t={default:t,_ctx:Ye},s=32}else t=String(t),n&64?(s=16,t=[B(t)]):s=8;e.children=t,e.shapeFlag|=s}function ic(...e){const t={};for(let s=0;s<e.length;s++){const n=e[s];for(const o in n)if(o==="class")t.class!==n.class&&(t.class=ye([t.class,n.class]));else if(o==="style")t.style=pn([t.style,n.style]);else if(an(o)){const i=t[o],r=n[o];r&&i!==r&&!(q(i)&&i.includes(r))?t[o]=i?[].concat(i,r):r:r==null&&i==null&&!cn(o)&&(t[o]=r)}else o!==""&&(t[o]=n[o])}return t}function ht(e,t,s,n=null){lt(e,t,7,[s,n])}const rc=Or();let qr=0;function lc(){return qr}function ac(e,t,s){const n=e.type,o=(t?t.appContext:e.appContext)||rc,i={uid:qr++,vnode:e,type:n,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Ji(!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:Vr(n,o),emitsOptions:Pr(n,o),emit:null,emitted:null,propsDefaults:me,inheritAttrs:n.inheritAttrs,ctx:me,data:me,props:me,attrs:me,slots:me,refs:me,setupState:me,setupContext:null,suspense:s,suspenseId:s?s.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=Ha.bind(null,i),e.ce&&e.ce(i),i}let He=null;const Jr=()=>He||Ye;let ln,Ms;{const e=hn(),t=(s,n)=>{let o;return(o=e[s])||(o=e[s]=[]),o.push(n),i=>{o.length>1?o.forEach(r=>r(i)):o[0](i)}};ln=t("__VUE_INSTANCE_SETTERS__",s=>He=s),Ms=t("__VUE_SSR_SETTERS__",s=>Ns=s)}const Ls=e=>{const t=He;return ln(e),e.scope.on(),()=>{e.scope.off(),ln(t)}},ti=()=>{He&&He.scope.off(),ln(null)};function Yr(e){return e.vnode.shapeFlag&4}let Ns=!1;function cc(e,t=!1,s=!1){t&&Ms(t);const{props:n,children:o}=e.vnode,i=Yr(e);Wa(e,n,i,t),Ya(e,o,s||t);const r=i?uc(e,t):void 0;return t&&Ms(!1),r}function uc(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Pa);const{setup:n}=s;if(n){bt();const o=e.setupContext=n.length>1?dc(e):null,i=Ls(e),r=Vs(n,e,0,[e.props,o]),l=ji(r);if(wt(),i(),(l||e.sp)&&!Cs(e)&&Cr(e),l){if(r.then(ti,ti),t)return r.then(a=>{Ms(!0);try{si(e,a,t)}finally{Ms(!1)}}).catch(a=>{vn(a,e,0)});e.asyncDep=r}else si(e,r)}else Qr(e)}function si(e,t,s){ne(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:he(t)&&(e.setupState=gr(t)),Qr(e)}function Qr(e,t,s){const n=e.type;e.render||(e.render=n.render||yt);{const o=Ls(e);bt();try{Ia(e)}finally{wt(),o()}}}const fc={get(e,t){return De(e,"get",""),e[t]}};function dc(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,fc),slots:e.slots,emit:e.emit,expose:t}}function xn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(gr(So(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in Es)return Es[s](e)},has(t,s){return s in t||s in Es}})):e.proxy}function hc(e){return ne(e)&&"__vccOpts"in e}const ie=(e,t)=>la(e,t,Ns);function Xr(e,t,s){try{on(-1);const n=arguments.length;return n===2?he(t)&&!q(t)?$s(t)?K(e,null,[t]):K(e,t):K(e,null,t):(n>3?s=Array.prototype.slice.call(arguments,2):n===3&&$s(s)&&(s=[s]),K(e,t,s))}finally{on(1)}}const pc="3.5.44";/**
14
+ * @vue/runtime-dom v3.5.44
15
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
16
+ * @license MIT
17
+ **/let no;const ni=typeof window<"u"&&window.trustedTypes;if(ni)try{no=ni.createPolicy("vue",{createHTML:e=>e})}catch{}const Zr=no?e=>no.createHTML(e):e=>e,gc="http://www.w3.org/2000/svg",mc="http://www.w3.org/1998/Math/MathML",At=typeof document<"u"?document:null,oi=At&&At.createElement("template"),vc={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const o=t==="svg"?At.createElementNS(gc,e):t==="mathml"?At.createElementNS(mc,e):s?At.createElement(e,{is:s}):At.createElement(e);return e==="select"&&n&&n.multiple!=null&&o.setAttribute("multiple",n.multiple),o},createText:e=>At.createTextNode(e),createComment:e=>At.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>At.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,o,i){const r=s?s.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),s),!(o===i||!(o=o.nextSibling)););else{oi.innerHTML=Zr(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const l=oi.content;if(n==="svg"||n==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,s)}return[r?r.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},yc=Symbol("_vtc");function _c(e,t,s){const n=e[yc];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const ii=Symbol("_vod"),bc=Symbol("_vsh"),wc=Symbol(""),Sc=/(?:^|;)\s*display\s*:/;function xc(e,t,s){const n=e.style,o=Se(s);let i=!1;if(s&&!o){if(t)if(Se(t))for(const r of t.split(";")){const l=r.slice(0,r.indexOf(":")).trim();s[l]==null&&bs(n,l,"")}else for(const r in t)s[r]==null&&bs(n,r,"");for(const r in s){r==="display"&&(i=!0);const l=s[r];l!=null?Cc(e,r,!Se(t)&&t?t[r]:void 0,l)||bs(n,r,l):bs(n,r,"")}}else if(o){if(t!==s){const r=n[wc];r&&(s+=";"+r),n.cssText=s,i=Sc.test(s)}}else t&&e.removeAttribute("style");ii in e&&((!o||t!==s)&&(e[ii]=i?n.display:""),e[bc]&&(n.display="none"))}const Ks=/\s*!important$/;function bs(e,t,s){if(q(s))s.forEach(n=>bs(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))Ks.test(s)?e.setProperty(t,s.replace(Ks,""),"important"):e.setProperty(t,s);else{const n=kc(e,t);Ks.test(s)?e.setProperty(Kt(n),s.replace(Ks,""),"important"):e[n]=s}}const ri=["Webkit","Moz","ms"],Ln={};function kc(e,t){const s=Ln[t];if(s)return s;let n=st(t);if(n!=="filter"&&n in e)return Ln[t]=n;n=zi(n);for(let o=0;o<ri.length;o++){const i=ri[o]+n;if(i in e)return Ln[t]=i}return t}function Cc(e,t,s,n){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&Se(n)&&s===n}const li="http://www.w3.org/1999/xlink";function ai(e,t,s,n,o,i=$l(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(li,t.slice(6,t.length)):e.setAttributeNS(li,t,s):s==null||i&&!Wi(s)?e.removeAttribute(t):e.setAttribute(t,i?"":Qe(s)?String(s):s)}function ci(e,t,s,n,o){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?Zr(s):s);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const l=i==="OPTION"?e.getAttribute("value")||"":e.value,a=s==null?e.type==="checkbox"?"on":"":String(s);(l!==a||!("_value"in e))&&(e.value=a),s==null&&e.removeAttribute(t),e._value=s;return}let r=!1;if(s===""||s==null){const l=typeof e[t];l==="boolean"?s=Wi(s):s==null&&l==="string"?(s="",r=!0):l==="number"&&(s=0,r=!0)}try{e[t]=s}catch{}r&&e.removeAttribute(o||t)}function It(e,t,s,n){e.addEventListener(t,s,n)}function Ec(e,t,s,n){e.removeEventListener(t,s,n)}const ui=Symbol("_vei");function Ac(e,t,s,n,o=null){const i=e[ui]||(e[ui]={}),r=i[t];if(n&&r)r.value=n;else{const[l,a]=Oc(t);if(n){const d=i[t]=$c(n,o);It(e,l,d,a)}else r&&(Ec(e,l,r,a),i[t]=void 0)}}const Rc=/(Once|Passive|Capture)$/,Tc=/^on:?(?:Once|Passive|Capture)$/;function Oc(e){let t,s;for(;(s=e.match(Rc))&&!Tc.test(e);)t||(t={}),e=e.slice(0,e.length-s[1].length),t[s[1].toLowerCase()]=!0;return[e[2]===":"?e.slice(3):Kt(e.slice(2)),t]}let Hn=0;const Pc=Promise.resolve(),Ic=()=>Hn||(Pc.then(()=>Hn=0),Hn=Date.now());function $c(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;const o=s.value;if(q(o)){const i=n.stopImmediatePropagation;n.stopImmediatePropagation=()=>{i.call(n),n._stopped=!0};const r=o.slice(),l=[n];for(let a=0;a<r.length&&!n._stopped;a++){const d=r[a];d&&lt(d,t,5,l)}}else lt(o,t,5,[n])};return s.value=e,s.attached=Ic(),s}const fi=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Mc=(e,t,s,n,o,i)=>{const r=o==="svg";t==="class"?_c(e,n,r):t==="style"?xc(e,s,n):an(t)?cn(t)||Ac(e,t,s,n,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Nc(e,t,n,r))?(ci(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&ai(e,t,n,r,i,t!=="value")):e._isVueCE&&(Dc(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Se(n)))?ci(e,st(t),n,i,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),ai(e,t,n,r))};function Nc(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&fi(t)&&ne(s));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 fi(t)&&Se(s)?!1:t in e}function Dc(e,t){const s=e._def.props;if(!s)return!1;const n=st(t);return Array.isArray(s)?s.some(o=>st(o)===n):Object.keys(s).some(o=>st(o)===n)}const zt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return q(t)?s=>qs(t,s):t};function Fc(e){e.target.composing=!0}function di(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ge=Symbol("_assign"),Ws=Symbol("_initialValue");function jn(e,t,s){return t&&(e=e.trim()),s&&(e=dn(e)),e}const Ut={created(e,{modifiers:{lazy:t,trim:s,number:n}},o){e.parentNode&&(e.type==="text"?e[Ws]=e.defaultValue.replace(/[\r\n]/g,""):e.type==="textarea"&&(e[Ws]=e.defaultValue.replace(/\r\n?/g,`
18
+ `))),e[Ge]=zt(o);const i=n||o.props&&o.props.type==="number";It(e,t?"change":"input",r=>{r.target.composing||e[Ge](jn(e.value,s,i))}),(s||i)&&It(e,"change",()=>{e.value=jn(e.value,s,i)}),t||(It(e,"compositionstart",Fc),It(e,"compositionend",di),It(e,"change",di))},mounted(e,{value:t,modifiers:{trim:s,number:n}}){const o=t??"",i=e[Ws];delete e[Ws],i!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==i?e[Ge](jn(e.value,s,n)):e.value=o},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:n,trim:o,number:i}},r){if(e[Ge]=zt(r),e.composing)return;const l=(i||e.type==="number")&&!/^0\d/.test(e.value)?dn(e.value):e.value,a=t??"";if(l===a)return;const d=e.getRootNode();(d instanceof Document||d instanceof ShadowRoot)&&d.activeElement===e&&e.type!=="range"&&(n&&t===s||o&&e.value.trim()===a)||(e.value=a)}},Vc={deep:!0,created(e,t,s){e[Ge]=zt(s),It(e,"change",()=>{const n=e._modelValue,o=fs(e),i=e.checked,r=e[Ge];if(q(n)){const l=go(n,o),a=l!==-1;if(i&&!a)r(n.concat(o));else if(!i&&a){const d=[...n];d.splice(l,1),r(d)}}else if(Mt(n)){const l=new Set(n);i?l.add(o):l.delete(o),r(l)}else r(el(e,i))})},mounted:hi,beforeUpdate(e,t,s){e[Ge]=zt(s),hi(e,t,s)}};function hi(e,{value:t,oldValue:s},n){e._modelValue=t;let o;if(q(t))o=go(t,n.props.value)>-1;else if(Mt(t))o=t.has(n.props.value);else{if(t===s)return;o=rt(t,el(e,!0))}e.checked!==o&&(e.checked=o)}const Lc={created(e,{value:t},s){e.checked=rt(t,s.props.value),e[Ge]=zt(s),It(e,"change",()=>{e[Ge](fs(e))})},beforeUpdate(e,{value:t,oldValue:s},n){e[Ge]=zt(n),t!==s&&(e.checked=rt(t,n.props.value))}},Ao={deep:!0,created(e,{value:t,modifiers:{number:s}},n){e._modelValue=t,It(e,"change",()=>{const o=Array.prototype.filter.call(e.options,a=>a.selected).map(a=>s?dn(fs(a)):fs(a)),i=e.multiple,r=i?Mt(e._modelValue)?new Set(o):o:o[0],l=e._pendingValue=[i,i?q(r)?o.slice():o:r];try{e[Ge](r)}finally{ps(()=>{e._pendingValue===l&&(e._pendingValue=void 0)})}}),e[Ge]=zt(n)},mounted(e,{value:t}){pi(e,t)},beforeUpdate(e,{value:t},s){e._modelValue=t,e[Ge]=zt(s)},updated(e,{value:t}){const s=e._pendingValue;e._pendingValue=void 0,(!s||s[0]!==e.multiple||!Hc(t,s[1],s[0]))&&pi(e,t)}};function Hc(e,t,s){if(!s||q(e))return rt(e,t);if(Mt(e)){if(e.size!==t.length)return!1;for(const n of t)if(!e.has(n))return!1;return!0}return!1}function pi(e,t){const s=e.multiple,n=q(t);if(!(s&&!n&&!Mt(t))){for(let o=0,i=e.options.length;o<i;o++){const r=e.options[o],l=fs(r);if(s)if(n){const a=typeof l;a==="string"||a==="number"?r.selected=t.some(d=>String(d)===String(l)):r.selected=go(t,l)>-1}else r.selected=t.has(l);else if(rt(fs(r),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!s&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function fs(e){return"_value"in e?e._value:e.value}function el(e,t){const s=t?"_trueValue":"_falseValue";return s in e?e[s]:t}const jc={created(e,t,s){Gs(e,t,s,null,"created")},mounted(e,t,s){Gs(e,t,s,null,"mounted")},beforeUpdate(e,t,s,n){Gs(e,t,s,n,"beforeUpdate")},updated(e,t,s,n){Gs(e,t,s,n,"updated")}};function Uc(e,t){switch(e){case"SELECT":return Ao;case"TEXTAREA":return Ut;default:switch(t){case"checkbox":return Vc;case"radio":return Lc;default:return Ut}}}function Gs(e,t,s,n,o){const r=Uc(e.tagName,s.props&&s.props.type)[o];r&&r(e,t,s,n)}const Bc=["ctrl","shift","alt","meta"],zc={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)=>Bc.some(s=>e[`${s}Key`]&&!t.includes(s))},oo=(e,t)=>{if(!e)return e;const s=e._withMods||(e._withMods={}),n=t.join(".");return s[n]||(s[n]=(o,...i)=>{for(let r=0;r<t.length;r++){const l=zc[t[r]];if(l&&l(o,t))return}return e(o,...i)})},Kc={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Wc=(e,t)=>{const s=e._withKeys||(e._withKeys={}),n=t.join(".");return s[n]||(s[n]=o=>{if(!("key"in o))return;const i=Kt(o.key);if(t.some(r=>r===i||Kc[r]===i))return e(o)})},Gc=Ne({patchProp:Mc},vc);let gi;function qc(){return gi||(gi=Xa(Gc))}const Jc=(...e)=>{const t=qc().createApp(...e),{mount:s}=t;return t.mount=n=>{const o=Qc(n);if(!o)return;const i=t._component;!ne(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const r=s(o,!1,Yc(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),r},t};function Yc(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Qc(e){return Se(e)?document.querySelector(e):e}/*!
19
+ * pinia v2.3.1
20
+ * (c) 2025 Eduardo San Martin Morote
21
+ * @license MIT
22
+ */let tl;const kn=e=>tl=e,sl=Symbol();function io(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var As;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(As||(As={}));function Xc(){const e=Yi(!0),t=e.run(()=>oe({}));let s=[],n=[];const o=So({install(i){kn(o),o._a=i,i.provide(sl,o),i.config.globalProperties.$pinia=o,n.forEach(r=>s.push(r)),n=[]},use(i){return this._a?s.push(i):n.push(i),this},_p:s,_a:null,_e:e,_s:new Map,state:t});return o}const nl=()=>{};function mi(e,t,s,n=nl){e.push(t);const o=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),n())};return!s&&Qi()&&Dl(o),o}function rs(e,...t){e.slice().forEach(s=>{s(...t)})}const Zc=e=>e(),vi=Symbol(),Un=Symbol();function ro(e,t){e instanceof Map&&t instanceof Map?t.forEach((s,n)=>e.set(n,s)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const s in t){if(!t.hasOwnProperty(s))continue;const n=t[s],o=e[s];io(o)&&io(n)&&e.hasOwnProperty(s)&&!xe(n)&&!_t(n)?e[s]=ro(o,n):e[s]=n}return e}const eu=Symbol();function tu(e){return!io(e)||!e.hasOwnProperty(eu)}const{assign:Vt}=Object;function su(e){return!!(xe(e)&&e.effect)}function nu(e,t,s,n){const{state:o,actions:i,getters:r}=t,l=s.state.value[e];let a;function d(){l||(s.state.value[e]=o?o():{});const u=na(s.state.value[e]);return Vt(u,i,Object.keys(r||{}).reduce((p,b)=>(p[b]=So(ie(()=>{kn(s);const v=s._s.get(e);return r[b].call(v,v)})),p),{}))}return a=ol(e,d,t,s,n,!0),a}function ol(e,t,s={},n,o,i){let r;const l=Vt({actions:{}},s),a={deep:!0};let d,u,p=[],b=[],v;const V=n.state.value[e];!i&&!V&&(n.state.value[e]={});let N;function G(se){let X;d=u=!1,typeof se=="function"?(se(n.state.value[e]),X={type:As.patchFunction,storeId:e,events:v}):(ro(n.state.value[e],se),X={type:As.patchObject,payload:se,storeId:e,events:v});const ge=N=Symbol();ps().then(()=>{N===ge&&(d=!0)}),u=!0,rs(p,X,n.state.value[e])}const $=i?function(){const{state:X}=s,ge=X?X():{};this.$patch(ke=>{Vt(ke,ge)})}:nl;function T(){r.stop(),p=[],b=[],n._s.delete(e)}const D=(se,X="")=>{if(vi in se)return se[Un]=X,se;const ge=function(){kn(n);const ke=Array.from(arguments),Pe=[],_e=[];function Ce(te){Pe.push(te)}function Be(te){_e.push(te)}rs(b,{args:ke,name:ge[Un],store:z,after:Ce,onError:Be});let de;try{de=se.apply(this&&this.$id===e?this:z,ke)}catch(te){throw rs(_e,te),te}return de instanceof Promise?de.then(te=>(rs(Pe,te),te)).catch(te=>(rs(_e,te),Promise.reject(te))):(rs(Pe,de),de)};return ge[vi]=!0,ge[Un]=X,ge},L={_p:n,$id:e,$onAction:mi.bind(null,b),$patch:G,$reset:$,$subscribe(se,X={}){const ge=mi(p,se,X.detached,()=>ke()),ke=r.run(()=>$t(()=>n.state.value[e],Pe=>{(X.flush==="sync"?u:d)&&se({storeId:e,type:As.direct,events:v},Pe)},Vt({},a,X)));return ge},$dispose:T},z=ns(L);n._s.set(e,z);const U=(n._a&&n._a.runWithContext||Zc)(()=>n._e.run(()=>(r=Yi()).run(()=>t({action:D}))));for(const se in U){const X=U[se];if(xe(X)&&!su(X)||_t(X))i||(V&&tu(X)&&(xe(X)?X.value=V[se]:ro(X,V[se])),n.state.value[e][se]=X);else if(typeof X=="function"){const ge=D(X,se);U[se]=ge,l.actions[se]=X}}return Vt(z,U),Vt(ce(z),U),Object.defineProperty(z,"$state",{get:()=>n.state.value[e],set:se=>{G(X=>{Vt(X,se)})}}),n._p.forEach(se=>{Vt(z,r.run(()=>se({store:z,app:n._a,pinia:n,options:l})))}),V&&i&&s.hydrate&&s.hydrate(z.$state,V),d=!0,u=!0,z}/*! #__NO_SIDE_EFFECTS__ */function Hs(e,t,s){let n,o;const i=typeof t=="function";typeof e=="string"?(n=e,o=i?s:t):(o=e,n=e.id);function r(l,a){const d=pa();return l=l||(d?ot(sl,null):null),l&&kn(l),l=tl,l._s.has(n)||(i?ol(n,t,o,l):nu(n,o,l)),l._s.get(n)}return r.$id=n,r}/*!
23
+ * vue-router v4.6.4
24
+ * (c) 2025 Eduardo San Martin Morote
25
+ * @license MIT
26
+ */const cs=typeof document<"u";function il(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function ou(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&il(e.default)}const fe=Object.assign;function Bn(e,t){const s={};for(const n in t){const o=t[n];s[n]=ct(o)?o.map(e):e(o)}return s}const Rs=()=>{},ct=Array.isArray;function yi(e,t){const s={};for(const n in e)s[n]=n in t?t[n]:e[n];return s}const rl=/#/g,iu=/&/g,ru=/\//g,lu=/=/g,au=/\?/g,ll=/\+/g,cu=/%5B/g,uu=/%5D/g,al=/%5E/g,fu=/%60/g,cl=/%7B/g,du=/%7C/g,ul=/%7D/g,hu=/%20/g;function Ro(e){return e==null?"":encodeURI(""+e).replace(du,"|").replace(cu,"[").replace(uu,"]")}function pu(e){return Ro(e).replace(cl,"{").replace(ul,"}").replace(al,"^")}function lo(e){return Ro(e).replace(ll,"%2B").replace(hu,"+").replace(rl,"%23").replace(iu,"%26").replace(fu,"`").replace(cl,"{").replace(ul,"}").replace(al,"^")}function gu(e){return lo(e).replace(lu,"%3D")}function mu(e){return Ro(e).replace(rl,"%23").replace(au,"%3F")}function vu(e){return mu(e).replace(ru,"%2F")}function Ds(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const yu=/\/$/,_u=e=>e.replace(yu,"");function zn(e,t,s="/"){let n,o={},i="",r="";const l=t.indexOf("#");let a=t.indexOf("?");return a=l>=0&&a>l?-1:a,a>=0&&(n=t.slice(0,a),i=t.slice(a,l>0?l:t.length),o=e(i.slice(1))),l>=0&&(n=n||t.slice(0,l),r=t.slice(l,t.length)),n=xu(n??t,s),{fullPath:n+i+r,path:n,query:o,hash:Ds(r)}}function bu(e,t){const s=t.query?e(t.query):"";return t.path+(s&&"?")+s+(t.hash||"")}function _i(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function wu(e,t,s){const n=t.matched.length-1,o=s.matched.length-1;return n>-1&&n===o&&ds(t.matched[n],s.matched[o])&&fl(t.params,s.params)&&e(t.query)===e(s.query)&&t.hash===s.hash}function ds(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function fl(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var s in e)if(!Su(e[s],t[s]))return!1;return!0}function Su(e,t){return ct(e)?bi(e,t):ct(t)?bi(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function bi(e,t){return ct(t)?e.length===t.length&&e.every((s,n)=>s===t[n]):e.length===1&&e[0]===t}function xu(e,t){if(e.startsWith("/"))return e;if(!e)return t;const s=t.split("/"),n=e.split("/"),o=n[n.length-1];(o===".."||o===".")&&n.push("");let i=s.length-1,r,l;for(r=0;r<n.length;r++)if(l=n[r],l!==".")if(l==="..")i>1&&i--;else break;return s.slice(0,i).join("/")+"/"+n.slice(r).join("/")}const Ft={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let ao=function(e){return e.pop="pop",e.push="push",e}({}),Kn=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});function ku(e){if(!e)if(cs){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),_u(e)}const Cu=/^[^#]+#/;function Eu(e,t){return e.replace(Cu,"#")+t}function Au(e,t){const s=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-s.left-(t.left||0),top:n.top-s.top-(t.top||0)}}const Cn=()=>({left:window.scrollX,top:window.scrollY});function Ru(e){let t;if("el"in e){const s=e.el,n=typeof s=="string"&&s.startsWith("#"),o=typeof s=="string"?n?document.getElementById(s.slice(1)):document.querySelector(s):s;if(!o)return;t=Au(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function wi(e,t){return(history.state?history.state.position-t:-1)+e}const co=new Map;function Tu(e,t){co.set(e,t)}function Ou(e){const t=co.get(e);return co.delete(e),t}function Pu(e){return typeof e=="string"||e&&typeof e=="object"}function dl(e){return typeof e=="string"||typeof e=="symbol"}let be=function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e}({});const hl=Symbol("");be.MATCHER_NOT_FOUND+"",be.NAVIGATION_GUARD_REDIRECT+"",be.NAVIGATION_ABORTED+"",be.NAVIGATION_CANCELLED+"",be.NAVIGATION_DUPLICATED+"";function hs(e,t){return fe(new Error,{type:e,[hl]:!0},t)}function Et(e,t){return e instanceof Error&&hl in e&&(t==null||!!(e.type&t))}const Iu=["params","query","hash"];function $u(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const s of Iu)s in e&&(t[s]=e[s]);return JSON.stringify(t,null,2)}function Mu(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let n=0;n<s.length;++n){const o=s[n].replace(ll," "),i=o.indexOf("="),r=Ds(i<0?o:o.slice(0,i)),l=i<0?null:Ds(o.slice(i+1));if(r in t){let a=t[r];ct(a)||(a=t[r]=[a]),a.push(l)}else t[r]=l}return t}function Si(e){let t="";for(let s in e){const n=e[s];if(s=gu(s),n==null){n!==void 0&&(t+=(t.length?"&":"")+s);continue}(ct(n)?n.map(o=>o&&lo(o)):[n&&lo(n)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+s,o!=null&&(t+="="+o))})}return t}function Nu(e){const t={};for(const s in e){const n=e[s];n!==void 0&&(t[s]=ct(n)?n.map(o=>o==null?null:""+o):n==null?n:""+n)}return t}const Du=Symbol(""),xi=Symbol(""),En=Symbol(""),pl=Symbol(""),uo=Symbol("");function ys(){let e=[];function t(n){return e.push(n),()=>{const o=e.indexOf(n);o>-1&&e.splice(o,1)}}function s(){e=[]}return{add:t,list:()=>e.slice(),reset:s}}function Ht(e,t,s,n,o,i=r=>r()){const r=n&&(n.enterCallbacks[o]=n.enterCallbacks[o]||[]);return()=>new Promise((l,a)=>{const d=b=>{b===!1?a(hs(be.NAVIGATION_ABORTED,{from:s,to:t})):b instanceof Error?a(b):Pu(b)?a(hs(be.NAVIGATION_GUARD_REDIRECT,{from:t,to:b})):(r&&n.enterCallbacks[o]===r&&typeof b=="function"&&r.push(b),l())},u=i(()=>e.call(n&&n.instances[o],t,s,d));let p=Promise.resolve(u);e.length<3&&(p=p.then(d)),p.catch(b=>a(b))})}function Wn(e,t,s,n,o=i=>i()){const i=[];for(const r of e)for(const l in r.components){let a=r.components[l];if(!(t!=="beforeRouteEnter"&&!r.instances[l]))if(il(a)){const d=(a.__vccOpts||a)[t];d&&i.push(Ht(d,s,n,r,l,o))}else{let d=a();i.push(()=>d.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${l}" at "${r.path}"`);const p=ou(u)?u.default:u;r.mods[l]=u,r.components[l]=p;const b=(p.__vccOpts||p)[t];return b&&Ht(b,s,n,r,l,o)()}))}}return i}function Fu(e,t){const s=[],n=[],o=[],i=Math.max(t.matched.length,e.matched.length);for(let r=0;r<i;r++){const l=t.matched[r];l&&(e.matched.find(d=>ds(d,l))?n.push(l):s.push(l));const a=e.matched[r];a&&(t.matched.find(d=>ds(d,a))||o.push(a))}return[s,n,o]}/*!
27
+ * vue-router v4.6.4
28
+ * (c) 2025 Eduardo San Martin Morote
29
+ * @license MIT
30
+ */let Vu=()=>location.protocol+"//"+location.host;function gl(e,t){const{pathname:s,search:n,hash:o}=t,i=e.indexOf("#");if(i>-1){let r=o.includes(e.slice(i))?e.slice(i).length:1,l=o.slice(r);return l[0]!=="/"&&(l="/"+l),_i(l,"")}return _i(s,e)+n+o}function Lu(e,t,s,n){let o=[],i=[],r=null;const l=({state:b})=>{const v=gl(e,location),V=s.value,N=t.value;let G=0;if(b){if(s.value=v,t.value=b,r&&r===V){r=null;return}G=N?b.position-N.position:0}else n(v);o.forEach($=>{$(s.value,V,{delta:G,type:ao.pop,direction:G?G>0?Kn.forward:Kn.back:Kn.unknown})})};function a(){r=s.value}function d(b){o.push(b);const v=()=>{const V=o.indexOf(b);V>-1&&o.splice(V,1)};return i.push(v),v}function u(){if(document.visibilityState==="hidden"){const{history:b}=window;if(!b.state)return;b.replaceState(fe({},b.state,{scroll:Cn()}),"")}}function p(){for(const b of i)b();i=[],window.removeEventListener("popstate",l),window.removeEventListener("pagehide",u),document.removeEventListener("visibilitychange",u)}return window.addEventListener("popstate",l),window.addEventListener("pagehide",u),document.addEventListener("visibilitychange",u),{pauseListeners:a,listen:d,destroy:p}}function ki(e,t,s,n=!1,o=!1){return{back:e,current:t,forward:s,replaced:n,position:window.history.length,scroll:o?Cn():null}}function Hu(e){const{history:t,location:s}=window,n={value:gl(e,s)},o={value:t.state};o.value||i(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(a,d,u){const p=e.indexOf("#"),b=p>-1?(s.host&&document.querySelector("base")?e:e.slice(p))+a:Vu()+e+a;try{t[u?"replaceState":"pushState"](d,"",b),o.value=d}catch(v){console.error(v),s[u?"replace":"assign"](b)}}function r(a,d){i(a,fe({},t.state,ki(o.value.back,a,o.value.forward,!0),d,{position:o.value.position}),!0),n.value=a}function l(a,d){const u=fe({},o.value,t.state,{forward:a,scroll:Cn()});i(u.current,u,!0),i(a,fe({},ki(n.value,a,null),{position:u.position+1},d),!1),n.value=a}return{location:n,state:o,push:l,replace:r}}function ju(e){e=ku(e);const t=Hu(e),s=Lu(e,t.state,t.location,t.replace);function n(i,r=!0){r||s.pauseListeners(),history.go(i)}const o=fe({location:"",base:e,go:n,createHref:Eu.bind(null,e)},t,s);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function Uu(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),ju(e)}let Zt=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e}({});var Te=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e}(Te||{});const Bu={type:Zt.Static,value:""},zu=/[a-zA-Z0-9_]/;function Ku(e){if(!e)return[[]];if(e==="/")return[[Bu]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(v){throw new Error(`ERR (${s})/"${d}": ${v}`)}let s=Te.Static,n=s;const o=[];let i;function r(){i&&o.push(i),i=[]}let l=0,a,d="",u="";function p(){d&&(s===Te.Static?i.push({type:Zt.Static,value:d}):s===Te.Param||s===Te.ParamRegExp||s===Te.ParamRegExpEnd?(i.length>1&&(a==="*"||a==="+")&&t(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),i.push({type:Zt.Param,value:d,regexp:u,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):t("Invalid state to consume buffer"),d="")}function b(){d+=a}for(;l<e.length;){if(a=e[l++],a==="\\"&&s!==Te.ParamRegExp){n=s,s=Te.EscapeNext;continue}switch(s){case Te.Static:a==="/"?(d&&p(),r()):a===":"?(p(),s=Te.Param):b();break;case Te.EscapeNext:b(),s=n;break;case Te.Param:a==="("?s=Te.ParamRegExp:zu.test(a)?b():(p(),s=Te.Static,a!=="*"&&a!=="?"&&a!=="+"&&l--);break;case Te.ParamRegExp:a===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+a:s=Te.ParamRegExpEnd:u+=a;break;case Te.ParamRegExpEnd:p(),s=Te.Static,a!=="*"&&a!=="?"&&a!=="+"&&l--,u="";break;default:t("Unknown state");break}}return s===Te.ParamRegExp&&t(`Unfinished custom RegExp for param "${d}"`),p(),r(),o}const Ci="[^/]+?",Wu={sensitive:!1,strict:!1,start:!0,end:!0};var Ve=function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e}(Ve||{});const Gu=/[.+*?^${}()[\]/\\]/g;function qu(e,t){const s=fe({},Wu,t),n=[];let o=s.start?"^":"";const i=[];for(const d of e){const u=d.length?[]:[Ve.Root];s.strict&&!d.length&&(o+="/");for(let p=0;p<d.length;p++){const b=d[p];let v=Ve.Segment+(s.sensitive?Ve.BonusCaseSensitive:0);if(b.type===Zt.Static)p||(o+="/"),o+=b.value.replace(Gu,"\\$&"),v+=Ve.Static;else if(b.type===Zt.Param){const{value:V,repeatable:N,optional:G,regexp:$}=b;i.push({name:V,repeatable:N,optional:G});const T=$||Ci;if(T!==Ci){v+=Ve.BonusCustomRegExp;try{`${T}`}catch(L){throw new Error(`Invalid custom RegExp for param "${V}" (${T}): `+L.message)}}let D=N?`((?:${T})(?:/(?:${T}))*)`:`(${T})`;p||(D=G&&d.length<2?`(?:/${D})`:"/"+D),G&&(D+="?"),o+=D,v+=Ve.Dynamic,G&&(v+=Ve.BonusOptional),N&&(v+=Ve.BonusRepeatable),T===".*"&&(v+=Ve.BonusWildcard)}u.push(v)}n.push(u)}if(s.strict&&s.end){const d=n.length-1;n[d][n[d].length-1]+=Ve.BonusStrict}s.strict||(o+="/?"),s.end?o+="$":s.strict&&!o.endsWith("/")&&(o+="(?:/|$)");const r=new RegExp(o,s.sensitive?"":"i");function l(d){const u=d.match(r),p={};if(!u)return null;for(let b=1;b<u.length;b++){const v=u[b]||"",V=i[b-1];p[V.name]=v&&V.repeatable?v.split("/"):v}return p}function a(d){let u="",p=!1;for(const b of e){(!p||!u.endsWith("/"))&&(u+="/"),p=!1;for(const v of b)if(v.type===Zt.Static)u+=v.value;else if(v.type===Zt.Param){const{value:V,repeatable:N,optional:G}=v,$=V in d?d[V]:"";if(ct($)&&!N)throw new Error(`Provided param "${V}" is an array but it is not repeatable (* or + modifiers)`);const T=ct($)?$.join("/"):$;if(!T)if(G)b.length<2&&(u.endsWith("/")?u=u.slice(0,-1):p=!0);else throw new Error(`Missing required param "${V}"`);u+=T}}return u||"/"}return{re:r,score:n,keys:i,parse:l,stringify:a}}function Ju(e,t){let s=0;for(;s<e.length&&s<t.length;){const n=t[s]-e[s];if(n)return n;s++}return e.length<t.length?e.length===1&&e[0]===Ve.Static+Ve.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===Ve.Static+Ve.Segment?1:-1:0}function ml(e,t){let s=0;const n=e.score,o=t.score;for(;s<n.length&&s<o.length;){const i=Ju(n[s],o[s]);if(i)return i;s++}if(Math.abs(o.length-n.length)===1){if(Ei(n))return 1;if(Ei(o))return-1}return o.length-n.length}function Ei(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Yu={strict:!1,end:!0,sensitive:!1};function Qu(e,t,s){const n=qu(Ku(e.path),s),o=fe(n,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function Xu(e,t){const s=[],n=new Map;t=yi(Yu,t);function o(p){return n.get(p)}function i(p,b,v){const V=!v,N=Ri(p);N.aliasOf=v&&v.record;const G=yi(t,p),$=[N];if("alias"in p){const L=typeof p.alias=="string"?[p.alias]:p.alias;for(const z of L)$.push(Ri(fe({},N,{components:v?v.record.components:N.components,path:z,aliasOf:v?v.record:N})))}let T,D;for(const L of $){const{path:z}=L;if(b&&z[0]!=="/"){const J=b.record.path,U=J[J.length-1]==="/"?"":"/";L.path=b.record.path+(z&&U+z)}if(T=Qu(L,b,G),v?v.alias.push(T):(D=D||T,D!==T&&D.alias.push(T),V&&p.name&&!Ti(T)&&r(p.name)),vl(T)&&a(T),N.children){const J=N.children;for(let U=0;U<J.length;U++)i(J[U],T,v&&v.children[U])}v=v||T}return D?()=>{r(D)}:Rs}function r(p){if(dl(p)){const b=n.get(p);b&&(n.delete(p),s.splice(s.indexOf(b),1),b.children.forEach(r),b.alias.forEach(r))}else{const b=s.indexOf(p);b>-1&&(s.splice(b,1),p.record.name&&n.delete(p.record.name),p.children.forEach(r),p.alias.forEach(r))}}function l(){return s}function a(p){const b=tf(p,s);s.splice(b,0,p),p.record.name&&!Ti(p)&&n.set(p.record.name,p)}function d(p,b){let v,V={},N,G;if("name"in p&&p.name){if(v=n.get(p.name),!v)throw hs(be.MATCHER_NOT_FOUND,{location:p});G=v.record.name,V=fe(Ai(b.params,v.keys.filter(D=>!D.optional).concat(v.parent?v.parent.keys.filter(D=>D.optional):[]).map(D=>D.name)),p.params&&Ai(p.params,v.keys.map(D=>D.name))),N=v.stringify(V)}else if(p.path!=null)N=p.path,v=s.find(D=>D.re.test(N)),v&&(V=v.parse(N),G=v.record.name);else{if(v=b.name?n.get(b.name):s.find(D=>D.re.test(b.path)),!v)throw hs(be.MATCHER_NOT_FOUND,{location:p,currentLocation:b});G=v.record.name,V=fe({},b.params,p.params),N=v.stringify(V)}const $=[];let T=v;for(;T;)$.unshift(T.record),T=T.parent;return{name:G,path:N,params:V,matched:$,meta:ef($)}}e.forEach(p=>i(p));function u(){s.length=0,n.clear()}return{addRoute:i,resolve:d,removeRoute:r,clearRoutes:u,getRoutes:l,getRecordMatcher:o}}function Ai(e,t){const s={};for(const n of t)n in e&&(s[n]=e[n]);return s}function Ri(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Zu(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Zu(e){const t={},s=e.props||!1;if("component"in e)t.default=s;else for(const n in e.components)t[n]=typeof s=="object"?s[n]:s;return t}function Ti(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function ef(e){return e.reduce((t,s)=>fe(t,s.meta),{})}function tf(e,t){let s=0,n=t.length;for(;s!==n;){const i=s+n>>1;ml(e,t[i])<0?n=i:s=i+1}const o=sf(e);return o&&(n=t.lastIndexOf(o,n-1)),n}function sf(e){let t=e;for(;t=t.parent;)if(vl(t)&&ml(e,t)===0)return t}function vl({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Oi(e){const t=ot(En),s=ot(pl),n=ie(()=>{const a=y(e.to);return t.resolve(a)}),o=ie(()=>{const{matched:a}=n.value,{length:d}=a,u=a[d-1],p=s.matched;if(!u||!p.length)return-1;const b=p.findIndex(ds.bind(null,u));if(b>-1)return b;const v=Pi(a[d-2]);return d>1&&Pi(u)===v&&p[p.length-1].path!==v?p.findIndex(ds.bind(null,a[d-2])):b}),i=ie(()=>o.value>-1&&lf(s.params,n.value.params)),r=ie(()=>o.value>-1&&o.value===s.matched.length-1&&fl(s.params,n.value.params));function l(a={}){if(rf(a)){const d=t[y(e.replace)?"replace":"push"](y(e.to)).catch(Rs);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>d),d}return Promise.resolve()}return{route:n,href:ie(()=>n.value.href),isActive:i,isExactActive:r,navigate:l}}function nf(e){return e.length===1?e[0]:e}const of=je({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:Oi,setup(e,{slots:t}){const s=ns(Oi(e)),{options:n}=ot(En),o=ie(()=>({[Ii(e.activeClass,n.linkActiveClass,"router-link-active")]:s.isActive,[Ii(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:s.isExactActive}));return()=>{const i=t.default&&nf(t.default(s));return e.custom?i:Xr("a",{"aria-current":s.isExactActive?e.ariaCurrentValue:null,href:s.href,onClick:s.navigate,class:o.value},i)}}}),Qt=of;function rf(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function lf(e,t){for(const s in t){const n=t[s],o=e[s];if(typeof n=="string"){if(n!==o)return!1}else if(!ct(o)||o.length!==n.length||n.some((i,r)=>i.valueOf()!==o[r].valueOf()))return!1}return!0}function Pi(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ii=(e,t,s)=>e??t??s,af=je({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:s}){const n=ot(uo),o=ie(()=>e.route||n.value),i=ot(xi,0),r=ie(()=>{let d=y(i);const{matched:u}=o.value;let p;for(;(p=u[d])&&!p.components;)d++;return d}),l=ie(()=>o.value.matched[r.value]);Js(xi,ie(()=>r.value+1)),Js(Du,l),Js(uo,o);const a=oe();return $t(()=>[a.value,l.value,e.name],([d,u,p],[b,v,V])=>{u&&(u.instances[p]=d,v&&v!==u&&d&&d===b&&(u.leaveGuards.size||(u.leaveGuards=v.leaveGuards),u.updateGuards.size||(u.updateGuards=v.updateGuards))),d&&u&&(!v||!ds(u,v)||!b)&&(u.enterCallbacks[p]||[]).forEach(N=>N(d))},{flush:"post"}),()=>{const d=o.value,u=e.name,p=l.value,b=p&&p.components[u];if(!b)return $i(s.default,{Component:b,route:d});const v=p.props[u],V=v?v===!0?d.params:typeof v=="function"?v(d):v:null,G=Xr(b,fe({},V,t,{onVnodeUnmounted:$=>{$.component.isUnmounted&&(p.instances[u]=null)},ref:a}));return $i(s.default,{Component:G,route:d})||G}}});function $i(e,t){if(!e)return null;const s=e(t);return s.length===1?s[0]:s}const yl=af;function cf(e){const t=Xu(e.routes,e),s=e.parseQuery||Mu,n=e.stringifyQuery||Si,o=e.history,i=ys(),r=ys(),l=ys(),a=ea(Ft);let d=Ft;cs&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Bn.bind(null,A=>""+A),p=Bn.bind(null,vu),b=Bn.bind(null,Ds);function v(A,W){let j,Y;return dl(A)?(j=t.getRecordMatcher(A),Y=W):Y=A,t.addRoute(Y,j)}function V(A){const W=t.getRecordMatcher(A);W&&t.removeRoute(W)}function N(){return t.getRoutes().map(A=>A.record)}function G(A){return!!t.getRecordMatcher(A)}function $(A,W){if(W=fe({},W||a.value),typeof A=="string"){const k=zn(s,A,W.path),C=t.resolve({path:k.path},W),O=o.createHref(k.fullPath);return fe(k,C,{params:b(C.params),hash:Ds(k.hash),redirectedFrom:void 0,href:O})}let j;if(A.path!=null)j=fe({},A,{path:zn(s,A.path,W.path).path});else{const k=fe({},A.params);for(const C in k)k[C]==null&&delete k[C];j=fe({},A,{params:p(k)}),W.params=p(W.params)}const Y=t.resolve(j,W),f=A.hash||"";Y.params=u(b(Y.params));const g=bu(n,fe({},A,{hash:pu(f),path:Y.path})),w=o.createHref(g);return fe({fullPath:g,hash:f,query:n===Si?Nu(A.query):A.query||{}},Y,{redirectedFrom:void 0,href:w})}function T(A){return typeof A=="string"?zn(s,A,a.value.path):fe({},A)}function D(A,W){if(d!==A)return hs(be.NAVIGATION_CANCELLED,{from:W,to:A})}function L(A){return U(A)}function z(A){return L(fe(T(A),{replace:!0}))}function J(A,W){const j=A.matched[A.matched.length-1];if(j&&j.redirect){const{redirect:Y}=j;let f=typeof Y=="function"?Y(A,W):Y;return typeof f=="string"&&(f=f.includes("?")||f.includes("#")?f=T(f):{path:f},f.params={}),fe({query:A.query,hash:A.hash,params:f.path!=null?{}:A.params},f)}}function U(A,W){const j=d=$(A),Y=a.value,f=A.state,g=A.force,w=A.replace===!0,k=J(j,Y);if(k)return U(fe(T(k),{state:typeof k=="object"?fe({},f,k.state):f,force:g,replace:w}),W||j);const C=j;C.redirectedFrom=W;let O;return!g&&wu(n,Y,j)&&(O=hs(be.NAVIGATION_DUPLICATED,{to:C,from:Y}),ze(Y,Y,!0,!1)),(O?Promise.resolve(O):ge(C,Y)).catch(I=>Et(I)?Et(I,be.NAVIGATION_GUARD_REDIRECT)?I:Je(I):le(I,C,Y)).then(I=>{if(I){if(Et(I,be.NAVIGATION_GUARD_REDIRECT))return U(fe({replace:w},T(I.to),{state:typeof I.to=="object"?fe({},f,I.to.state):f,force:g}),W||C)}else I=Pe(C,Y,!0,w,f);return ke(C,Y,I),I})}function se(A,W){const j=D(A,W);return j?Promise.reject(j):Promise.resolve()}function X(A){const W=xt.values().next().value;return W&&typeof W.runWithContext=="function"?W.runWithContext(A):A()}function ge(A,W){let j;const[Y,f,g]=Fu(A,W);j=Wn(Y.reverse(),"beforeRouteLeave",A,W);for(const k of Y)k.leaveGuards.forEach(C=>{j.push(Ht(C,A,W))});const w=se.bind(null,A,W);return j.push(w),$e(j).then(()=>{j=[];for(const k of i.list())j.push(Ht(k,A,W));return j.push(w),$e(j)}).then(()=>{j=Wn(f,"beforeRouteUpdate",A,W);for(const k of f)k.updateGuards.forEach(C=>{j.push(Ht(C,A,W))});return j.push(w),$e(j)}).then(()=>{j=[];for(const k of g)if(k.beforeEnter)if(ct(k.beforeEnter))for(const C of k.beforeEnter)j.push(Ht(C,A,W));else j.push(Ht(k.beforeEnter,A,W));return j.push(w),$e(j)}).then(()=>(A.matched.forEach(k=>k.enterCallbacks={}),j=Wn(g,"beforeRouteEnter",A,W,X),j.push(w),$e(j))).then(()=>{j=[];for(const k of r.list())j.push(Ht(k,A,W));return j.push(w),$e(j)}).catch(k=>Et(k,be.NAVIGATION_CANCELLED)?k:Promise.reject(k))}function ke(A,W,j){l.list().forEach(Y=>X(()=>Y(A,W,j)))}function Pe(A,W,j,Y,f){const g=D(A,W);if(g)return g;const w=W===Ft,k=cs?history.state:{};j&&(Y||w?o.replace(A.fullPath,fe({scroll:w&&k&&k.scroll},f)):o.push(A.fullPath,f)),a.value=A,ze(A,W,j,w),Je()}let _e;function Ce(){_e||(_e=o.listen((A,W,j)=>{if(!kt.listening)return;const Y=$(A),f=J(Y,kt.currentRoute.value);if(f){U(fe(f,{replace:!0,force:!0}),Y).catch(Rs);return}d=Y;const g=a.value;cs&&Tu(wi(g.fullPath,j.delta),Cn()),ge(Y,g).catch(w=>Et(w,be.NAVIGATION_ABORTED|be.NAVIGATION_CANCELLED)?w:Et(w,be.NAVIGATION_GUARD_REDIRECT)?(U(fe(T(w.to),{force:!0}),Y).then(k=>{Et(k,be.NAVIGATION_ABORTED|be.NAVIGATION_DUPLICATED)&&!j.delta&&j.type===ao.pop&&o.go(-1,!1)}).catch(Rs),Promise.reject()):(j.delta&&o.go(-j.delta,!1),le(w,Y,g))).then(w=>{w=w||Pe(Y,g,!1),w&&(j.delta&&!Et(w,be.NAVIGATION_CANCELLED)?o.go(-j.delta,!1):j.type===ao.pop&&Et(w,be.NAVIGATION_ABORTED|be.NAVIGATION_DUPLICATED)&&o.go(-1,!1)),ke(Y,g,w)}).catch(Rs)}))}let Be=ys(),de=ys(),te;function le(A,W,j){Je(A);const Y=de.list();return Y.length?Y.forEach(f=>f(A,W,j)):console.error(A),Promise.reject(A)}function et(){return te&&a.value!==Ft?Promise.resolve():new Promise((A,W)=>{Be.add([A,W])})}function Je(A){return te||(te=!A,Ce(),Be.list().forEach(([W,j])=>A?j(A):W()),Be.reset()),A}function ze(A,W,j,Y){const{scrollBehavior:f}=e;if(!cs||!f)return Promise.resolve();const g=!j&&Ou(wi(A.fullPath,0))||(Y||!j)&&history.state&&history.state.scroll||null;return ps().then(()=>f(A,W,g)).then(w=>w&&Ru(w)).catch(w=>le(w,A,W))}const Ie=A=>o.go(A);let Dt;const xt=new Set,kt={currentRoute:a,listening:!0,addRoute:v,removeRoute:V,clearRoutes:t.clearRoutes,hasRoute:G,getRoutes:N,resolve:$,options:e,push:L,replace:z,go:Ie,back:()=>Ie(-1),forward:()=>Ie(1),beforeEach:i.add,beforeResolve:r.add,afterEach:l.add,onError:de.add,isReady:et,install(A){A.component("RouterLink",Qt),A.component("RouterView",yl),A.config.globalProperties.$router=kt,Object.defineProperty(A.config.globalProperties,"$route",{enumerable:!0,get:()=>y(a)}),cs&&!Dt&&a.value===Ft&&(Dt=!0,L(o.location).catch(Y=>{}));const W={};for(const Y in Ft)Object.defineProperty(W,Y,{get:()=>a.value[Y],enumerable:!0});A.provide(En,kt),A.provide(pl,hr(W)),A.provide(uo,a);const j=A.unmount;xt.add(A),A.unmount=function(){xt.delete(A),xt.size<1&&(d=Ft,_e&&_e(),_e=null,a.value=Ft,Dt=!1,te=!1),j()}}};function $e(A){return A.reduce((W,j)=>W.then(()=>X(j)),Promise.resolve())}return kt}function uf(){return ot(En)}class ff{constructor(t=`${location.protocol==="https:"?"wss":"ws"}://${location.host}/ws`){Wt(this,"socket");Wt(this,"attempts",0);Wt(this,"timer");Wt(this,"handlers",new Set);Wt(this,"stateHandlers",new Set);Wt(this,"reconnectAfterResync");this.url=t}onMessage(t){return this.handlers.add(t),()=>this.handlers.delete(t)}onConnectionChange(t){return this.stateHandlers.add(t),()=>this.stateHandlers.delete(t)}onResync(t){this.reconnectAfterResync=()=>void t()}connect(){var s;clearTimeout(this.timer),(s=this.socket)==null||s.close();const t=new WebSocket(this.url);this.socket=t,t.onopen=()=>{var n;this.attempts=0,this.stateHandlers.forEach(o=>o(!0)),(n=this.reconnectAfterResync)==null||n.call(this)},t.onmessage=n=>{try{const o=JSON.parse(n.data);this.handlers.forEach(i=>i(o))}catch{}},t.onclose=()=>{this.stateHandlers.forEach(o=>o(!1)),this.attempts+=1;const n=Math.min(15e3,1e3*2**(this.attempts-1));this.timer=window.setTimeout(()=>this.connect(),n)},t.onerror=()=>t.close()}}let Mi;function To(){return Mi??(Mi=new ff),Mi}class Oo extends Error{constructor(t,s,n,o){super(n),this.status=t,this.code=s,this.details=o,this.name="ApiError"}}async function Re(e,t){const s=await fetch(e,{...t,headers:{"content-type":"application/json",...(t==null?void 0:t.headers)??{}}}),n=await s.json().catch(()=>({code:"INVALID_RESPONSE",message:"响应不是合法 JSON"}));if(!s.ok){const o=n;throw new Oo(s.status,o.code??"UNKNOWN_ERROR",o.message??"请求失败",o.details)}return n}async function Ni(e){const t=new URLSearchParams({filename:e.name}),s=await fetch(`/api/uploads?${t}`,{method:"POST",headers:{"content-type":"application/octet-stream"},body:e}),n=await s.json().catch(()=>({code:"INVALID_RESPONSE",message:"上传响应不是合法 JSON"}));if(!s.ok){const o=n;throw new Oo(s.status,o.code??"UNKNOWN_ERROR",o.message??"文件上传失败",o.details)}return n}const we={doctor:()=>Re("/api/doctor"),recheckDoctor:()=>Re("/api/doctor/recheck",{method:"POST"}),install:e=>Re(`/api/doctor/install/${e}`,{method:"POST"}),uninstall:e=>Re(`/api/doctor/uninstall/${e}`,{method:"POST"}),features:()=>Re("/api/features"),tasks:()=>Re("/api/tasks"),revealTask:e=>Re(`/api/tasks/${e}/reveal`,{method:"POST"}),revealPath:e=>Re("/api/reveal",{method:"POST",body:JSON.stringify({path:e})}),wxStatus:()=>Re("/api/wx/status"),version:()=>Re("/api/version"),wxActivate:e=>Re("/api/wx/activate",{method:"POST",body:JSON.stringify({token:e})}),deleteHistory:e=>Re(`/api/history/${e}`,{method:"DELETE"}),clearHistory:()=>Re("/api/history/clear",{method:"POST"}),serviceStop:()=>Re("/api/service/stop",{method:"POST"}),settings:()=>Re("/api/settings"),selectOutputDir:()=>Re("/api/settings/select-output-dir",{method:"POST"}),openPrivacySettings:()=>Re("/api/settings/open-privacy-settings",{method:"POST"}),saveSettings:e=>Re("/api/settings",{method:"POST",body:JSON.stringify(e)}),convert:e=>Re("/api/convert",{method:"POST",body:JSON.stringify(e)})},An=Hs("doctor",{state:()=>({statuses:[],loading:!1,connected:!0,error:"",installSession:{state:"idle",logs:[]}}),getters:{readyCount:e=>e.statuses.filter(t=>t.installed&&t.versionOk).length,usableFeatures:e=>e.statuses.reduce((t,s)=>t+s.features.length,0)},actions:{async load(){this.loading=!0;try{this.statuses=await we.doctor(),this.error=""}catch(e){this.error=e instanceof Error?e.message:String(e)}finally{this.loading=!1}},async recheck(){this.loading=!0;try{this.statuses=await we.recheckDoctor(),this.error=""}catch(e){this.error=e instanceof Error?e.message:String(e)}finally{this.loading=!1}},startInstall(e,t){this.startOperation(e,t,"install")},startUninstall(e,t){this.startOperation(e,t,"uninstall")},startOperation(e,t,s){if(this.installSession.state==="progress")throw new Oo(409,"OPERATION_IN_PROGRESS","已有依赖操作进行中");this.installSession={depId:e,state:"progress",logs:[t]},(s==="install"?we.install(e):we.uninstall(e)).catch(n=>{this.installSession={depId:e,state:"failed",logs:[t,`操作未启动:${n.message}`],error:{depId:e,exitCode:1,stderrTail:n.message}}})},applyProgress(e){this.installSession.depId===e.depId&&("line"in e&&this.installSession.logs.push(e.line),this.installSession.logs.length>1e3&&this.installSession.logs.shift())},applyDone(e){this.statuses=e,this.installSession.state="done"},applyFailure(e){if(this.installSession.depId&&this.installSession.depId!==e.depId)return;const t=e.stderrTail.split(/\r?\n/).filter(s=>s.trim());this.installSession={depId:e.depId,state:"failed",logs:[`操作失败(退出码 ${e.exitCode})`,...t],error:e}}}}),Po=Hs("features",{state:()=>({features:[],loading:!1,error:""}),getters:{available:e=>e.features.filter(t=>t.available),byKey:e=>new Map(e.features.map(t=>[t.key,t]))},actions:{async load(){this.loading=!0;try{this.features=await we.features(),this.error=""}finally{this.loading=!1}}}}),Io=Hs("tasks",{state:()=>({tasks:[],loading:!1,error:""}),getters:{active:e=>e.tasks.filter(t=>t.status==="queued"||t.status==="running"),history:e=>e.tasks.filter(t=>t.status==="success"||t.status==="failed").slice(0,200)},actions:{async load(){this.loading=!0;try{this.tasks=await we.tasks(),this.error=""}catch(e){this.error=e instanceof Error?e.message:String(e)}finally{this.loading=!1}},upsert(e){const t=this.tasks.findIndex(s=>s.taskId===e.taskId);t<0?this.tasks.unshift(e):this.tasks[t]=e}}}),_l=Hs("settings",{state:()=>({settings:{autostart:!1,outputDir:"",concurrency:2,language:"zh-CN"},form:{autostart:!1,outputDir:"",concurrency:2,language:"zh-CN"},loading:!1,saving:!1,error:""}),actions:{async load(){this.loading=!0;try{this.settings=await we.settings(),this.form={...this.settings},this.error=""}finally{this.loading=!1}},async save(){const e={...this.form};this.saving=!0;try{this.settings=await we.saveSettings(this.form),this.form={...this.settings},this.error=""}catch(t){throw this.form=e,this.error=t instanceof Error?t.message:String(t),t}finally{this.saving=!1}}}}),df=3456,fo=`http://127.0.0.1:${df}`,hf="https://duduer.com";function js(){return location.hostname==="127.0.0.1"||location.hostname==="localhost"}function Rn(){return/Windows|Win32|Win64/i.test(navigator.userAgent)?"windows":"macos"}async function pf(e=1500){const t=new AbortController,s=setTimeout(()=>t.abort(),e);try{return await fetch(`${fo}/api/doctor`,{mode:"no-cors",cache:"no-store",signal:t.signal}),!0}catch{return!1}finally{clearTimeout(s)}}function gf(){return js()?hf:location.origin}function $o(e){const t=gf();return e==="macos"?`curl -fsSL ${t}/install.sh | sh`:`$w=New-Object Net.WebClient;$w.Encoding=[Text.Encoding]::UTF8;iex $w.DownloadString('${t}/install.ps1')`}function mf(){const e=An(),t=Po(),s=Io(),n=_l(),o=To();async function i(){await Promise.all([e.load(),t.load(),s.load()])}async function r(){await t.load()}function l(a){a.type==="doctor:status"?(e.statuses=a.data,r()):a.type==="task:update"?s.upsert(a.data):a.type==="install:start"||a.type==="install:progress"||a.type==="uninstall:start"||a.type==="uninstall:progress"?e.applyProgress(a.data):a.type==="install:done"||a.type==="uninstall:done"?(e.applyDone(a.data.status),r()):(a.type==="install:fail"||a.type==="uninstall:fail")&&e.applyFailure(a.data)}os(async()=>{js()&&(o.onMessage(l),o.onConnectionChange(a=>{e.connected=a}),o.onResync(i),o.connect(),await Promise.all([i(),n.load()]))}),bn(()=>{})}const x={appName:"嘟嘟",nav:{home:"首页",workbench:"功能页",history:"转换历史",settings:"设置"},connection:{connected:"已连接本地服务",disconnected:"连接已断开,正在自动重连"},doctor:{title:"依赖与环境",recheck:"重新检测",install:"一键安装",uninstall:"一键卸载",copy:"复制命令",manual:"手动下载",logs:"操作日志",ready:"可用",outdated:"版本过旧",missingRequired:"必需缺失",missingOptional:"可选缺失",portableInstall:"内置直装(国内镜像下载,无需包管理器)",portableUninstall:"删除本地便携版组件",sessionRunning:"执行中,请耐心等待…",sessionRunningFull:"正在安装,请耐心等待完成(可能需要几分钟)——期间请不要关闭或刷新此页面;日志长时间无输出属正常现象(正在后台下载)",sessionDone:"✅ 操作完成",sessionFailed:"❌ 操作失败,详情见下方日志"},workbench:{title:"转换工作台",subtitle:"按类型分栏管理,文件入表后逐个或批量转换",dropTitle:"把{tab}文件拖到这里",dropHint:"支持 {exts} 等格式",dropCompact:"继续添加{tab}文件",pastePlaceholder:"粘贴文件绝对路径,回车添加",wrongTab:"{name} 不属于{tab},请切换到对应标签页添加",fileDuplicate:"已在列表中,无需重复添加",addFile:"选择文件",addPath:"添加",convertTo:"批量转换为",noCommonTargets:"当前文件没有共同的转换目标,请清理后分批转换",noTools:"该类别依赖的工具尚未安装,转换前需要先完成安装",gotoSettings:"去设置页安装依赖",depsMissingTitle:"本分类还需要先安装依赖",depsMissingDesc:"缺少:{deps}。点击右侧按钮前往设置页一键安装,装好后回来即可使用全部功能",tableFile:"文件名",tablePath:"路径",tableSize:"大小",tableStatus:"状态",tableActions:"操作",statusPending:"待转换",statusRunning:"转换中",statusSuccess:"转换成功",statusFailed:"转换失败",convert:"转换",retry:"重试",openFolder:"打开目录",download:"下载",remove:"移除",clearDone:"清除已完成",batchConvert:"开始批量转换",batchConvertN:"开始批量转换({n} 个)",batchDone:"本次批量转换已完成",paramsTitle:"高级参数",advanced:"高级设置",chooseFile:"选择文件"},history:{title:"转换历史",subtitle:"所有转换任务按时间倒序排列,可随时下载或打开产物",filterAll:"全部",statTotal:"累计任务",statSuccess:"成功",statFailed:"失败",searchPlaceholder:"搜索文件名…",empty:"还没有转换记录,去工作台开始第一次转换吧",today:"今天",yesterday:"昨天",openFolder:"打开目录",download:"下载",remove:"删除",clear:"清空历史"},landing:{heroBadge:"本地转换 · 零上传 · 不限文件大小",heroTitle:"你的文件,",heroAccent:"不必上传",heroTagline:"嘟嘟本地万能转换器:视频、音频、图片、文档在本机一步完成 —— 没有大小限制,没有隐私顾虑,没有漫长等待。",cta:"立即开始转换",ctaInstall:"查看安装指南",localRunning:"转换器已在本机运行,可直接进入功能页",stats:[{value:"24",label:"转换能力"},{value:"40+",label:"支持格式"},{value:"0",label:"文件上传"},{value:"100%",label:"本机运行"}],painTitle:"你是不是也有这些顾虑?",painSub:"嘟嘟把这些通通变成过去。",pains:[{icon:"shield",title:"文件传上去,心里不踏实",text:"合同、证件、家庭影像……一旦上传到陌生服务器,隐私就不再由你掌控。"},{icon:"globe",title:"在线工具处处受限",text:"大小限制、格式缺失、会员付费、广告弹窗,简单转个文件总要妥协。"},{icon:"clock",title:"传上去再下载,来回折腾",text:"大文件先上传一小时,转换完再下载一小时,网速决定了心情。"}],valueTitle:"换一种方式转换文件",valueSub:"本机运行带来的三个直接好处",values:[{icon:"shield-check",title:"文件不出你的电脑",text:"所有解析与转换都在本机完成,不经任何服务器,隐私天然无忧。"},{icon:"package-plus",title:"缺什么,一键装什么",text:"首次使用自动体检环境,FFmpeg 等引擎在页面里点一下即可安装。"},{icon:"zap",title:"装完即用,秒级开始",text:"一条命令安装,浏览器自动打开操作界面,拖入文件立刻出结果。"}],scenesTitle:"这些瞬间,嘟嘟都帮得上忙",scenesSub:"来自日常使用的高频场景",scenes:[{icon:"video",title:"网课录屏瘦身",text:"几个 G 的课程录像压成几百 MB,备份分享都不再犯难"},{icon:"image",title:"聊天图片压缩",text:"手机原图一张 8MB,压完不到 1MB,清晰度几乎不变"},{icon:"pdf",title:"发票合并归档",text:"几十张发票 PDF 按顺序合并成一个文件,报销不再手忙脚乱"},{icon:"sparkles",title:"表情包制作",text:"精彩片段一键做成 GIF 动图,斗图弹药永远充足"},{icon:"markdown",title:"简历笔记定稿",text:"Markdown 写完一键转 Word / PDF,排版不乱直接发"},{icon:"shield",title:"证件照脱敏外发",text:"身份证扫描件加水印或加密,发给陌生方也更安心"}],featuresTitle:"覆盖你日常的每一类文件",featuresSub:"24 类能力 · 40+ 种格式,全部本机完成",compareTitle:"和在线转换工具比一比",compareSub:"同样的转换,不同的体验",compare:[{item:"文件隐私",online:"上传到陌生服务器",local:"全程留在你的电脑里"},{item:"文件大小",online:"免费版普遍限制 100MB",local:"无任何限制"},{item:"转换速度",online:"上传 + 下载双倍耗时",local:"直接读写本地磁盘"},{item:"批量处理",online:"多数按次收费",local:"免费,支持批量队列"},{item:"网络依赖",online:"必须联网上传",local:"断网也能正常转换"}],faqTitle:"常见问题",faqSub:"关于嘟嘟的几个高频疑问",faq:[{q:"我的文件会被上传吗?",a:"不会。嘟嘟完全运行在你自己的电脑上,转换过程不经过任何服务器,即使断网也能正常转换。"},{q:"需要付费吗?",a:"免费使用:无功能限制、无水印、无次数限制,也不需要注册账号。"},{q:"转换用的引擎需要自己装吗?",a:"不用自己找教程。首次使用某类能力时,应用会自动检测缺失的引擎,在「设置 → 依赖与环境」里点一下即可安装,全程图形化操作。"},{q:"支持 Windows 吗?",a:"支持。macOS 12+ 与 Windows 10/11 均可使用,安装命令在首页首屏即可一键复制。"},{q:"大文件会很慢或卡住吗?",a:"转换在本地队列并发执行(1–4 个可调),大文件只是耗时更长,不会占用云端额度,也不影响电脑其他操作。"}],footer:"嘟嘟 · 本地优先的文件转换工具 · 文件永不上传"},install:{title:"安装转换器",step1:"打开终端",step2:"粘贴以下命令并回车",step3:"等待安装完成,浏览器会自动打开转换器",macos:"macOS",windows:"Windows",copy:"复制",copied:"已复制",macosTerminal:"按 ⌘+空格 打开聚焦搜索,输入「终端」或「Terminal」,回车打开",windowsTerminal:"点击开始菜单,输入「PowerShell」,回车打开",alreadyInstalled:"已经安装过?再次执行此命令会自动升级到新版本",manualTitle:"自动安装失败?手动安装",manualSteps:[{title:"安装 Node.js",text:"打开 nodejs.org 下载 Node.js 18 或更高版本,双击安装(保持默认选项)"},{title:"安装嘟嘟",text:"打开终端(macOS:终端;Windows:PowerShell),执行 npm install -g dudu-converter-cli"},{title:"启动服务",text:"执行 converter start,浏览器访问 http://127.0.0.1:3456"}],startHint:"如果已经安装但未运行:在终端执行 converter start 启动后,回到此页重新检测"},gate:{checking:"正在检测本地转换器…",online:"已检测到本地转换器正在运行",open:"打开本地转换器",offline:"未检测到本地转换器",installedTitle:"转换器已安装,但服务未运行",manualTitle:"手动启动(一行命令)",manualHint:"复制命令 → 打开终端粘贴回车;若已开启开机自启,重启电脑也会自动运行",retry:"重新检测",notInstalledTitle:"尚未安装?查看安装步骤"},settings:{title:"设置",preferences:"应用设置",autostart:"开机自动启动",outputDir:"输出目录",chooseDir:"选择文件夹",concurrency:"并发数",language:"界面语言",save:"保存设置",saved:"设置已保存",service:"服务管理",serviceRunning:"转换服务运行中",stopService:"停止服务",stopConfirm:`确定停止转换服务吗?
31
+ 停止后转换功能不可用;已开启的开机自启会在下次重启电脑时自动运行服务。`,serviceStopped:"转换服务已停止",stoppedGuide:"重新启动:在终端执行下方命令;若已开启开机自启,重启电脑后服务也会自动运行。",startCommand:"converter start",outputAccessTitle:"输出目录无法访问",useSuggestedDir:"一键改用主目录输出(无需授权)",openPrivacy:"打开系统隐私设置"},update:{banner:"发现新版本 v{latest}(当前 v{current}),建议升级获得最新功能与修复",copy:"复制升级命令",copied:"已复制,打开终端粘贴即可",how:"如何升级",dismiss:"暂不提醒",steps:["点击「复制升级命令」,打开终端粘贴并回车(macOS 用终端,Windows 用 PowerShell)","安装命令会自动停止旧服务、完成升级并启动新版本,无需手动操作","刷新浏览器页面即可"]},common:{retry:"重试",close:"关闭",loading:"加载中…",save:"保存",cancel:"取消"}},vf={video:["M3 5.5A2.5 2.5 0 0 1 5.5 3h13A2.5 2.5 0 0 1 21 5.5v13a2.5 2.5 0 0 1-2.5 2.5h-13A2.5 2.5 0 0 1 3 18.5z","M7 3v18","M17 3v18","M3 12h18"],music:["M9 18V5l12-2v13","M3 18a3 3 0 1 0 6 0 3 3 0 1 0-6 0","M15 16a3 3 0 1 0 6 0 3 3 0 1 0-6 0"],image:["M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z","M7 9a2 2 0 1 0 4 0 2 2 0 1 0-4 0","m21 15-4.6-4.6a2 2 0 0 0-2.8 0L4 20"],archive:["M3 3h18v5H3z","M5 8v11a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8","M10 12h4"],office:["M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z","M14 2v5h5","M9 13h6","M9 17h6","M9 9h1"],pdf:["M12 7v14","M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z"],markdown:["M12 20h9","M16.4 3.6a1.4 1.4 0 0 1 2 2L7.5 16.5a2 2 0 0 1-.9.5l-2.8.8a.5.5 0 0 1-.6-.6l.8-2.8a2 2 0 0 1 .5-.9z"],shield:["M20 13c0 5-3.5 7.5-7.7 9a.6.6 0 0 1-.6 0C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.2-2.7a1.2 1.2 0 0 1 1.6 0C14.5 3.8 17 5 19 5a1 1 0 0 1 1 1z"],"shield-check":["M20 13c0 5-3.5 7.5-7.7 9a.6.6 0 0 1-.6 0C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.2-2.7a1.2 1.2 0 0 1 1.6 0C14.5 3.8 17 5 19 5a1 1 0 0 1 1 1z","m9 12 2 2 4-4"],"package-plus":["M21 16V8a2 2 0 0 0-1-1.7l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.7l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z","M3.3 7 12 12l8.7-5","M12 22V12","M19 13v6","M16 16h6"],zap:["M4 14a1 1 0 0 1-.8-1.6l9.9-10.2a.5.5 0 0 1 .9.5l-1.9 6a1 1 0 0 0 1 1.3h7a1 1 0 0 1 .7 1.6l-9.9 10.2a.5.5 0 0 1-.9-.5l1.9-6a1 1 0 0 0-.9-1.3z"],globe:["M12 22a10 10 0 1 0 0-20 10 10 0 0 0 0 20z","M2 12h20","M12 2a15 15 0 0 1 4 10 15 15 0 0 1-4 10 15 15 0 0 1-4-10 15 15 0 0 1 4-10z"],clock:["M12 22a10 10 0 1 0 0-20 10 10 0 0 0 0 20z","M12 6v6l4 2"],"check-circle":["M12 22a10 10 0 1 0 0-20 10 10 0 0 0 0 20z","m9 12 2 2 4-4"],"x-circle":["M12 22a10 10 0 1 0 0-20 10 10 0 0 0 0 20z","m15 9-6 6","m9 9 6 6"],"minus-circle":["M12 22a10 10 0 1 0 0-20 10 10 0 0 0 0 20z","M8 12h8"],"alert-circle":["M12 22a10 10 0 1 0 0-20 10 10 0 0 0 0 20z","M12 8v4","M12 16h.01"],copy:["M10 8h9a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-9a2 2 0 0 1-2-2v-9a2 2 0 0 1 2-2z","M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"],"external-link":["M15 3h6v6","M10 14 21 3","M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"],refresh:["M3 12a9 9 0 0 1 15.7-6","M21 3v5h-5","M21 12a9 9 0 0 1-15.7 6","M3 21v-5h5"],upload:["M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4","m7 8 5-5 5 5","M12 3v12"],download:["M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4","m7 10 5 5 5-5","M12 15V3"],plus:["M5 12h14","M12 5v14"],x:["M18 6 6 18","m6 6 12 12"],settings:["M4 6h6","M14 6h6","M4 12h10","M18 12h2","M4 18h4","M12 18h8","M10 4v4","M14 10v4","M8 16v4"],terminal:["m4 17 6-6-6-6","M12 19h8"],"arrow-right":["M5 12h14","m12 5 7 7-7 7"],"chevron-down":["m6 9 6 6 6-6"],file:["M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z","M14 2v5h5"],folder:["M11 4H5a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7l-2-2z"],sparkles:["M12 3l1.9 5.1L19 10l-5.1 1.9L12 17l-1.9-5.1L5 10l5.1-1.9z","M19 17v4","M21 19h-4","M5 3v2","M4 4h2"],repeat:["m17 2 4 4-4 4","M3 11v-1a4 4 0 0 1 4-4h14","m7 22-4-4 4-4","M21 13v1a4 4 0 0 1-4 4H3"]},bl={video:"video",audio:"music",image:"image",archive:"archive",office:"office",pdf:"pdf",markdown:"markdown"},yf=["width","height"],_f=["d"],bf=je({__name:"AppIcon",props:{name:{},size:{default:20}},setup(e){const t=e;return(s,n)=>(E(),P("svg",{width:t.size,height:t.size,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true",class:"app-icon"},[(E(!0),P(re,null,Ae(y(vf)[t.name],(o,i)=>(E(),P("path",{key:i,d:o},null,8,_f))),128))],8,yf))}}),Ze=(e,t)=>{const s=e.__vccOpts||e;for(const[n,o]of t)s[n]=o;return s},Q=Ze(bf,[["__scopeId","data-v-84fb32bd"]]),Mo=Hs("version",{state:()=>({status:{current:"",latest:"",updateAvailable:!1},dismissed:!1,loaded:!1}),getters:{visible:e=>e.status.updateAvailable&&!e.dismissed},actions:{async load(){try{this.status=await we.version()}catch{}finally{this.loaded=!0}},listenWs(){To().onMessage(e=>{e.type==="update:available"&&(this.status=e.data,this.dismissed=!1)})},dismiss(){this.dismissed=!0}}}),wf={key:0,class:"update-banner","data-testid":"update-banner"},Sf={class:"banner-text"},xf=["title"],kf={key:0,class:"banner-detail"},Cf=je({__name:"UpdateBanner",setup(e){const t=Mo(),s=oe(Rn()),n=oe(!1),o=oe(!1),i=oe($o(s.value));async function r(){try{await navigator.clipboard.writeText(i.value),n.value=!0,setTimeout(()=>{n.value=!1},2500)}catch{}}return(l,a)=>y(t).visible?(E(),P("div",wf,[K(Q,{name:"sparkles",size:15}),c("span",Sf,_(y(x).update.banner.replace("{latest}",y(t).status.latest).replace("{current}",y(t).status.current)),1),c("button",{class:ye(["copy",{ok:n.value}]),type:"button",onClick:r},[K(Q,{name:n.value?"check-circle":"copy",size:13},null,8,["name"]),B(" "+_(n.value?y(x).update.copied:y(x).update.copy),1)],2),c("button",{class:"how",type:"button",onClick:a[0]||(a[0]=d=>o.value=!o.value)},[B(_(y(x).update.how),1),K(Q,{name:"chevron-down",size:13,class:ye({open:o.value})},null,8,["class"])]),c("button",{class:"close",type:"button",title:y(x).update.dismiss,onClick:a[1]||(a[1]=d=>y(t).dismiss())},[K(Q,{name:"x",size:13})],8,xf),o.value?(E(),P("div",kf,[c("ol",null,[(E(!0),P(re,null,Ae(y(x).update.steps,(d,u)=>(E(),P("li",{key:d},_(u+1)+". "+_(d),1))),128))])])):Z("",!0)])):Z("",!0)}}),Ef=Ze(Cf,[["__scopeId","data-v-69c975e5"]]),Af={class:"app-shell"},Rf={class:"app-header"},Tf=je({__name:"App",setup(e){mf();const t=An(),s=js(),n=Mo();return s&&(n.listenWs(),n.load()),(o,i)=>(E(),P("div",Af,[c("header",Rf,[K(y(Qt),{to:"/",class:"brand"},{default:Yt(()=>[i[0]||(i[0]=c("span",{class:"logo"},"嘟",-1)),c("strong",null,_(y(x).appName),1)]),_:1}),c("nav",null,[K(y(Qt),{to:"/"},{default:Yt(()=>[B(_(y(x).nav.home),1)]),_:1}),K(y(Qt),{to:"/workbench"},{default:Yt(()=>[B(_(y(x).nav.workbench),1)]),_:1}),y(s)?(E(),it(y(Qt),{key:0,to:"/history"},{default:Yt(()=>[B(_(y(x).nav.history),1)]),_:1})):Z("",!0),y(s)?(E(),it(y(Qt),{key:1,to:"/settings"},{default:Yt(()=>[B(_(y(x).nav.settings),1)]),_:1})):Z("",!0)]),y(s)?(E(),P("span",{key:0,class:ye(["connection",{offline:!y(t).connected}])},[i[1]||(i[1]=c("i",{class:"dot"},null,-1)),B(_(y(t).connected?y(x).connection.connected:y(x).connection.disconnected),1)],2)):Z("",!0)]),c("main",null,[y(s)?(E(),it(Ef,{key:0})):Z("",!0),K(y(yl))])]))}}),Of=Ze(Tf,[["__scopeId","data-v-e736b31c"]]),Pf={class:"history","data-testid":"history"},If={class:"page-title"},$f={class:"page-subtitle"},Mf={class:"toolbar"},Nf={class:"filters"},Df=["onClick"],Ff={class:"toolbar-right"},Vf={class:"search"},Lf=["placeholder"],Hf={key:0,class:"hint-alert"},jf={key:1,class:"panel empty"},Uf={class:"day-head"},Bf={class:"panel day-list"},zf={class:"item-main"},Kf={class:"item-title"},Wf=["title"],Gf={class:"arrow"},qf={class:"target"},Jf={class:"item-meta"},Yf={class:"error-text"},Qf={key:0,class:"spinner tiny"},Xf={class:"item-actions"},Zf=["onClick"],ed=["title","onClick"],td=je({__name:"HistoryView",setup(e){const t=Io(),s=Po(),n=oe("all"),o=oe("");os(()=>{t.load(),s.load()});const i=ie(()=>({total:t.tasks.length,success:t.tasks.filter($=>$.status==="success").length,failed:t.tasks.filter($=>$.status==="failed").length})),r=ie(()=>t.tasks.filter($=>!(n.value!=="all"&&$.status!==n.value||o.value.trim()&&!$.input.toLowerCase().includes(o.value.trim().toLowerCase()))).sort(($,T)=>T.startedAt.localeCompare($.startedAt))),l=oe("");async function a($){l.value="";try{await we.revealTask($.taskId)}catch(T){l.value=T instanceof Error?T.message:"打开目录失败"}}async function d($){l.value="";try{await we.deleteHistory($),await t.load()}catch(T){t.error=T instanceof Error?T.message:"删除失败"}}async function u(){if(window.confirm("确定清空全部转换历史吗?此操作不可恢复。"))try{await we.clearHistory(),await t.load()}catch($){t.error=$ instanceof Error?$.message:"清空失败"}}function p($){const T=new Date($);if(Number.isNaN(T.getTime()))return"";const D=new Date,L=U=>new Date(U.getFullYear(),U.getMonth(),U.getDate()).getTime(),z=Math.round((L(D)-L(T))/864e5);return z<=0?x.history.today:z===1?x.history.yesterday:T.getFullYear()===D.getFullYear()?`${T.getMonth()+1} 月 ${T.getDate()} 日`:`${T.getFullYear()} 年 ${T.getMonth()+1} 月 ${T.getDate()} 日`}const b=ie(()=>{const $=new Map;for(const T of r.value){const D=p(T.startedAt),L=$.get(D);L?L.push(T):$.set(D,[T])}return[...$.entries()]});function v($){const T=new Date($);return Number.isNaN(T.getTime())?"":`${String(T.getHours()).padStart(2,"0")}:${String(T.getMinutes()).padStart(2,"0")}`}function V($){return $.split(/[\\/]/).pop()??$}function N($){var D;const T=(D=s.byKey.get($.conversionKey))==null?void 0:D.category;return bl[T??"file"]??"file"}function G($){var T;return((T=s.byKey.get($.conversionKey))==null?void 0:T.label)??$.conversionKey}return($,T)=>(E(),P("section",Pf,[c("h1",If,_(y(x).history.title),1),c("p",$f,_(y(x).history.subtitle),1),c("div",Mf,[c("div",Nf,[(E(!0),P(re,null,Ae([{key:"all",label:y(x).history.filterAll,count:i.value.total},{key:"success",label:y(x).history.statSuccess,count:i.value.success},{key:"failed",label:y(x).history.statFailed,count:i.value.failed}],D=>(E(),P("button",{key:D.key,type:"button",class:ye(["filter-chip",{active:n.value===D.key}]),onClick:L=>n.value=D.key},[B(_(D.label)+" ",1),c("em",null,_(D.count),1)],10,Df))),128))]),c("div",Ff,[c("div",Vf,[K(Q,{name:"file",size:14}),Pt(c("input",{"onUpdate:modelValue":T[0]||(T[0]=D=>o.value=D),type:"text",placeholder:y(x).history.searchPlaceholder},null,8,Lf),[[Ut,o.value]])]),y(t).tasks.length?(E(),P("button",{key:0,class:"ghost danger",type:"button",onClick:u},[K(Q,{name:"x",size:13}),B(_(y(x).history.clear),1)])):Z("",!0)])]),l.value?(E(),P("p",Hf,[K(Q,{name:"alert-circle",size:15}),B(_(l.value),1)])):Z("",!0),r.value.length?Z("",!0):(E(),P("div",jf,[K(Q,{name:"folder",size:36}),c("span",null,_(y(x).history.empty),1)])),(E(!0),P(re,null,Ae(b.value,([D,L])=>(E(),P("div",{key:D,class:"day-group"},[c("div",Uf,[B(_(D),1),c("em",null,_(L.length)+" 条",1)]),c("div",Bf,[(E(!0),P(re,null,Ae(L,z=>(E(),P("article",{key:z.taskId,class:"history-item"},[c("span",{class:ye(["item-icon",z.status])},[K(Q,{name:N(z),size:18},null,8,["name"])],2),c("div",zf,[c("div",Kf,[c("strong",{title:z.input},_(V(z.input)),9,Wf),c("span",Gf,[K(Q,{name:"arrow-right",size:13})]),c("span",qf,_(z.targetFormat.toUpperCase()),1)]),c("div",Jf,[B(_(G(z))+" · "+_(v(z.startedAt))+_(z.durationMs?` · ${z.durationMs} ms`:"")+" ",1),z.error?(E(),P(re,{key:0},[T[1]||(T[1]=B(" · ",-1)),c("span",Yf,_(z.error.message),1)],64)):Z("",!0)])]),c("span",{class:ye(["badge row-badge",z.status])},[z.status==="running"?(E(),P("span",Qf)):Z("",!0),B(" "+_(z.status==="success"?y(x).workbench.statusSuccess:z.status==="failed"?y(x).workbench.statusFailed:z.status==="running"?y(x).workbench.statusRunning:y(x).workbench.statusPending),1)],2),c("div",Xf,[z.status==="success"?(E(),P("button",{key:0,class:"ghost tiny",type:"button",onClick:J=>a(z)},[K(Q,{name:"folder",size:13}),B(_(y(x).history.openFolder),1)],8,Zf)):Z("",!0),c("button",{class:"icon-btn",type:"button",title:y(x).history.remove,onClick:J=>d(z.taskId)},[K(Q,{name:"x",size:14})],8,ed)])]))),128))])]))),128))]))}}),sd=Ze(td,[["__scopeId","data-v-b299457c"]]),nd={class:"landing","data-testid":"landing"},od={class:"hero"},id={class:"hero-grid"},rd={class:"hero-copy"},ld={class:"hero-badge"},ad={class:"tagline"},cd={class:"cta-row"},ud={key:0,class:"local-badge"},fd={class:"terminal-card","data-testid":"install-guide"},dd={class:"term-head"},hd={class:"term-pills"},pd={class:"term-body"},gd={class:"command-row"},md={"data-testid":"install-command"},vd={class:"stats"},yd={class:"section"},_d={class:"section-sub"},bd={class:"pain-grid"},wd={class:"icon pain"},Sd={class:"section"},xd={class:"section-sub"},kd={class:"value-grid"},Cd={class:"icon value"},Ed={class:"section"},Ad={class:"section-sub"},Rd={class:"scene-grid"},Td={class:"icon scene"},Od={id:"features",class:"section"},Pd={class:"section-sub"},Id={class:"category-grid"},$d={class:"icon cat"},Md={class:"cat-body"},Nd={class:"section"},Dd={class:"section-sub"},Fd={class:"table-wrap"},Vd={class:"compare-table"},Ld={class:"c-item"},Hd={class:"c-online"},jd={class:"c-local"},Ud={class:"section"},Bd={class:"section-sub"},zd={class:"faq"},Kd={class:"landing-footer muted"},Wd=je({__name:"LandingView",setup(e){const t=js(),s=oe(Rn()),n=ie(()=>$o(s.value)),o=oe(!1);async function i(){try{await navigator.clipboard.writeText(n.value),o.value=!0,setTimeout(()=>{o.value=!1},2e3)}catch{}}function r(){var a;(a=document.getElementById("features"))==null||a.scrollIntoView({behavior:"smooth",block:"start"})}const l=[{icon:"video",title:"视频",lines:["格式转换 · 压缩 · 延迟摄影","MP4 · AVI · MKV · MOV · WebM"]},{icon:"music",title:"音频",lines:["格式转换 · 提取 · 压缩","MP3 · AAC · WAV · FLAC"]},{icon:"image",title:"图片",lines:["格式 · 缩放 · 压缩 · 水印 · 合成 GIF/PDF","JPG · PNG · WebP · HEIC · AVIF"]},{icon:"archive",title:"压缩包",lines:["文件压缩 · 解压","7z · Zip"]},{icon:"office",title:"Office 文档",lines:["转 PDF / HTML · 家族互转","Word · Excel · PowerPoint"]},{icon:"pdf",title:"PDF",lines:["转图片文本 · 合并拆分 · 规则拆分","全套 PDF 处理"]},{icon:"markdown",title:"Markdown",lines:["互转 Word / HTML / PDF","写作发布一步到位"]}];return(a,d)=>(E(),P("section",nd,[c("div",od,[c("div",id,[c("div",rd,[c("span",ld,[K(Q,{name:"sparkles",size:14}),B(_(y(x).landing.heroBadge),1)]),c("h1",null,[B(_(y(x).landing.heroTitle),1),c("em",null,_(y(x).landing.heroAccent),1)]),c("p",ad,_(y(x).landing.heroTagline),1),c("div",cd,[K(y(Qt),{class:"btn primary cta",to:"/workbench","data-testid":"landing-cta"},{default:Yt(()=>[B(_(y(x).landing.cta),1),K(Q,{name:"arrow-right",size:16})]),_:1}),c("button",{class:"btn ghost",type:"button",onClick:r},[d[2]||(d[2]=B("了解功能",-1)),K(Q,{name:"chevron-down",size:15})])]),y(t)?(E(),P("p",ud,[K(Q,{name:"check-circle",size:14}),B(_(y(x).landing.localRunning),1)])):Z("",!0)]),c("div",fd,[c("div",dd,[d[3]||(d[3]=c("span",{class:"dots","aria-hidden":"true"},[c("i"),c("i"),c("i")],-1)),d[4]||(d[4]=c("strong",null,"一键安装嘟嘟 · 全程约 1 分钟",-1)),c("div",hd,[c("button",{type:"button",class:ye({active:s.value==="macos"}),onClick:d[0]||(d[0]=u=>s.value="macos")},"macOS",2),c("button",{type:"button",class:ye({active:s.value==="windows"}),onClick:d[1]||(d[1]=u=>s.value="windows")},"Windows",2)])]),c("div",pd,[c("div",gd,[c("code",md,[d[5]||(d[5]=c("span",{class:"prompt"},"$",-1)),B(_(n.value),1)])]),c("button",{class:ye(["one-click",{ok:o.value}]),type:"button","data-testid":"install-copy",onClick:i},[K(Q,{name:o.value?"check-circle":"copy",size:15},null,8,["name"]),B(" "+_(o.value?"已复制!打开终端粘贴回车即可":"一键复制安装命令"),1)],2),d[6]||(d[6]=c("ol",{class:"term-steps"},[c("li",null,[c("span",null,"1"),B("点击上方按钮复制安装命令")]),c("li",null,[c("span",null,"2"),B("打开终端粘贴并回车(macOS:⌘+空格 搜「终端」;Windows:开始菜单搜 PowerShell)")]),c("li",null,[c("span",null,"3"),B("安装全自动完成,浏览器自动打开转换器")])],-1))])])]),c("div",vd,[(E(!0),P(re,null,Ae(y(x).landing.stats,u=>(E(),P("div",{key:u.label,class:"stat"},[c("strong",null,_(u.value),1),c("span",null,_(u.label),1)]))),128))])]),c("div",yd,[c("h2",null,_(y(x).landing.painTitle),1),c("p",_d,_(y(x).landing.painSub),1),c("div",bd,[(E(!0),P(re,null,Ae(y(x).landing.pains,u=>(E(),P("article",{key:u.title,class:"pain-card"},[c("span",wd,[K(Q,{name:u.icon,size:21},null,8,["name"])]),c("div",null,[c("strong",null,_(u.title),1),c("p",null,_(u.text),1)])]))),128))])]),c("div",Sd,[c("h2",null,_(y(x).landing.valueTitle),1),c("p",xd,_(y(x).landing.valueSub),1),c("div",kd,[(E(!0),P(re,null,Ae(y(x).landing.values,u=>(E(),P("article",{key:u.title,class:"value-card"},[c("span",Cd,[K(Q,{name:u.icon,size:23},null,8,["name"])]),c("strong",null,_(u.title),1),c("p",null,_(u.text),1)]))),128))])]),c("div",Ed,[c("h2",null,_(y(x).landing.scenesTitle),1),c("p",Ad,_(y(x).landing.scenesSub),1),c("div",Rd,[(E(!0),P(re,null,Ae(y(x).landing.scenes,u=>(E(),P("article",{key:u.title,class:"scene-card"},[c("span",Td,[K(Q,{name:u.icon,size:20},null,8,["name"])]),c("div",null,[c("strong",null,_(u.title),1),c("p",null,_(u.text),1)])]))),128))])]),c("div",Od,[c("h2",null,_(y(x).landing.featuresTitle),1),c("p",Pd,_(y(x).landing.featuresSub),1),c("div",Id,[(E(),P(re,null,Ae(l,u=>c("article",{key:u.title,class:"category-card"},[c("span",$d,[K(Q,{name:u.icon,size:21},null,8,["name"])]),c("div",Md,[c("strong",null,_(u.title),1),c("p",null,_(u.lines[0]),1),c("small",null,_(u.lines[1]),1)])])),64))])]),c("div",Nd,[c("h2",null,_(y(x).landing.compareTitle),1),c("p",Dd,_(y(x).landing.compareSub),1),c("div",Fd,[c("table",Vd,[d[7]||(d[7]=c("thead",null,[c("tr",null,[c("th",null,"对比项"),c("th",null,"在线转换工具"),c("th",null,"嘟嘟")])],-1)),c("tbody",null,[(E(!0),P(re,null,Ae(y(x).landing.compare,u=>(E(),P("tr",{key:u.item},[c("td",Ld,_(u.item),1),c("td",Hd,_(u.online),1),c("td",jd,[K(Q,{name:"check-circle",size:14}),B(_(u.local),1)])]))),128))])])])]),c("div",Ud,[c("h2",null,_(y(x).landing.faqTitle),1),c("p",Bd,_(y(x).landing.faqSub),1),c("div",zd,[(E(!0),P(re,null,Ae(y(x).landing.faq,u=>(E(),P("details",{key:u.q,class:"faq-item"},[c("summary",null,[B(_(u.q),1),K(Q,{name:"chevron-down",size:15})]),c("p",null,_(u.a),1)]))),128))])]),c("footer",Kd,_(y(x).landing.footer),1)]))}}),Gd=Ze(Wd,[["__scopeId","data-v-290de621"]]),qd=je({__name:"StatusBadge",props:{state:{}},setup(e){const t=e,s=ie(()=>x.doctor[t.state==="ready"?"ready":t.state==="outdated"?"outdated":t.state==="missing-required"?"missingRequired":"missingOptional"]);return(n,o)=>(E(),P("span",{class:ye(["badge",e.state])},_(s.value),3))}}),Jd={class:"tool-info"},Yd={class:"title"},Qd={key:0,class:"chip version"},Xd={class:"muted"},Zd={class:"actions"},eh=["disabled"],th=["disabled"],sh=je({__name:"DependencyRow",props:{status:{},installing:{type:Boolean}},emits:["install","uninstall"],setup(e,{emit:t}){const s=e,n=t;let o;const i=oe(!1);async function r(){s.status.installCommand&&(await navigator.clipboard.writeText(s.status.installCommand),i.value=!0,clearTimeout(o),o=window.setTimeout(()=>{i.value=!1},2e3))}return(l,a)=>(E(),P("article",{class:ye(["dependency-row",`is-${e.status.state}`])},[c("div",Jd,[c("div",Yd,[c("strong",null,_(e.status.name),1),K(qd,{state:e.status.state},null,8,["state"]),e.status.version?(E(),P("span",Qd,_(e.status.version),1)):Z("",!0)]),c("p",Xd,_(e.status.description),1)]),c("div",Zd,[(e.status.installCommand||e.status.installMethod==="portable")&&(!e.status.installed||e.status.state==="outdated")?(E(),P("button",{key:0,class:"primary",disabled:e.installing,onClick:a[0]||(a[0]=d=>n("install",e.status))},_(y(x).doctor.install),9,eh)):Z("",!0),e.status.installCommand?(E(),P("button",{key:1,class:"ghost",onClick:r},_(i.value?y(x).install.copied:y(x).doctor.copy),1)):Z("",!0),e.status.installed&&(e.status.uninstallCommand||e.status.installMethod==="portable")?(E(),P("button",{key:2,class:"ghost danger",disabled:e.installing,onClick:a[1]||(a[1]=d=>n("uninstall",e.status))},_(y(x).doctor.uninstall),9,th)):Z("",!0)])],2))}}),nh=Ze(sh,[["__scopeId","data-v-d296fa22"]]),oh=je({__name:"LogStream",props:{logs:{}},setup(e){const t=e,s=oe(),n=oe(!0);$t(()=>[...t.logs],async()=>{n.value&&(await ps(),s.value&&(s.value.scrollTop=s.value.scrollHeight))});function o(){const i=s.value;i&&(n.value=i.scrollHeight-i.scrollTop-i.clientHeight<24)}return(i,r)=>(E(),P("div",{ref_key:"container",ref:s,class:"log-stream",onScroll:o},[(E(!0),P(re,null,Ae(e.logs,(l,a)=>(E(),P("p",{key:`${a}-${l}`},_(l),1))),128))],544))}}),ih=Ze(oh,[["__scopeId","data-v-a4d9e36c"]]),rh={class:"settings","data-testid":"settings"},lh={class:"page-title"},ah={class:"panel"},ch={class:"section-head"},uh={key:0,class:"chip version-chip"},fh={key:0,class:"chip running-chip"},dh={key:0,class:"stop-row"},hh=["disabled"],ph={key:0,class:"spinner",style:{width:"13px",height:"13px","border-color":"#ffffff88","border-top-color":"#fff"}},gh={key:1,class:"stopped-card"},mh={class:"muted"},vh={class:"command-row"},yh={class:"panel"},_h={class:"section-head"},bh=["disabled"],wh={key:1,class:"spinner",style:{width:"14px",height:"14px"}},Sh={class:"summary-card"},xh={class:"summary-text"},kh={class:"summary-bar bar"},Ch={key:0,class:"alert"},Eh={class:"dep-list"},Ah={key:0,class:"spinner",style:{width:"13px",height:"13px"}},Rh={class:"section-head"},Th={class:"field"},Oh={class:"directory-editor"},Ph=["disabled"],Ih={key:1,class:"spinner",style:{width:"13px",height:"13px"}},$h={key:0,class:"output-access-warning","data-testid":"output-access-warning"},Mh={class:"warning-title"},Nh={class:"muted warning-detail"},Dh={class:"warning-actions"},Fh=["disabled"],Vh={key:0,class:"spinner",style:{width:"12px",height:"12px","border-color":"#ffffff88","border-top-color":"#fff"}},Lh={class:"field"},Hh={class:"concurrency"},jh={class:"field"},Uh={key:0,class:"error"},Bh={key:1,class:"saved"},zh={class:"actions"},Kh=["disabled"],Wh={key:0,class:"spinner",style:{"border-color":"#ffffff88","border-top-color":"#fff"}},Gh=je({__name:"SettingsView",setup(e){const t=An(),s=_l(),n=Mo();os(()=>{n.loaded||n.load()});const o=oe(!1),i=oe(!1),r=oe(!1),l=oe(!1),a=oe(!1);async function d(){try{await navigator.clipboard.writeText(x.settings.startCommand),a.value=!0,setTimeout(()=>{a.value=!1},2e3)}catch{}}async function u(){if(window.confirm(x.settings.stopConfirm)){l.value=!0;try{await we.serviceStop(),r.value=!0,t.connected=!1}catch(J){s.error=J instanceof Error?J.message:"停止服务失败"}finally{l.value=!1}}}const p=ie(()=>t.installSession.state==="progress"),b=oe();$t(()=>t.installSession.state,J=>{J==="progress"&&ps(()=>{var U,se;(se=(U=b.value)==null?void 0:U.scrollIntoView)==null||se.call(U,{behavior:"smooth",block:"center"})})});const v=ie(()=>t.statuses.length?Math.round(t.readyCount/t.statuses.length*100):0);function V(J){p.value||!J.installCommand&&J.installMethod!=="portable"||J.state==="outdated"&&!window.confirm(`${J.name} 已安装但版本过低,确认重新安装?`)||t.startInstall(J.id,J.installCommand||x.doctor.portableInstall)}function N(J){if(p.value||!J.uninstallCommand&&J.installMethod!=="portable")return;const U=`确定要卸载 ${J.name} 吗?
32
+ 卸载后相关转换功能将不可用。`;window.confirm(U)&&t.startUninstall(J.id,J.uninstallCommand||x.doctor.portableUninstall)}async function G(){o.value=!0;try{const J=await we.selectOutputDir();J.selected&&J.path&&(s.form.outputDir=J.path)}catch(J){s.error=J instanceof Error?J.message:"无法打开目录选择器"}finally{o.value=!1}}const $=ie(()=>s.settings.outputDirAccess!==void 0&&!s.settings.outputDirAccess.ok),T=oe(!1);async function D(){if(!(!s.settings.suggestedOutputDir||T.value)){T.value=!0;try{s.form.outputDir=s.settings.suggestedOutputDir,await s.save()}catch{}finally{T.value=!1}}}async function L(){try{await we.openPrivacySettings()}catch(J){s.error=J instanceof Error?J.message:"打开系统设置失败"}}async function z(){try{await s.save(),i.value=!0,setTimeout(()=>{i.value=!1},2e3)}catch{}}return(J,U)=>{var se;return E(),P("section",rh,[c("h1",lh,_(y(x).settings.title),1),U[12]||(U[12]=c("p",{class:"page-subtitle"},"转换引擎与应用偏好集中在这里管理",-1)),c("div",ah,[c("div",ch,[c("div",null,[c("h2",null,[B(_(y(x).settings.service)+" ",1),y(n).status.current?(E(),P("span",uh,"v"+_(y(n).status.current),1)):Z("",!0)]),U[4]||(U[4]=c("p",{class:"muted section-sub"},"转换服务的运行控制",-1))]),r.value?Z("",!0):(E(),P("span",fh,[U[5]||(U[5]=c("span",{class:"dot"},null,-1)),B(_(y(x).settings.serviceRunning),1)]))]),r.value?(E(),P("div",gh,[c("p",null,[K(Q,{name:"check-circle",size:15}),c("strong",null,_(y(x).settings.serviceStopped),1)]),c("p",mh,_(y(x).settings.stoppedGuide),1),c("div",vh,[c("code",null,[U[7]||(U[7]=c("span",{class:"prompt"},"$",-1)),B(_(y(x).settings.startCommand),1)]),c("button",{class:"ghost",type:"button",onClick:d},_(a.value?"已复制":"复制"),1)])])):(E(),P("div",dh,[U[6]||(U[6]=c("p",{class:"muted stop-desc"},[B("停止后转换功能不可用。已开启的开机自启会在下次重启电脑时自动运行服务;重新启动请在终端执行 "),c("code",null,"converter start"),B("。")],-1)),c("button",{class:"ghost danger stop-btn",type:"button","data-testid":"stop-service",disabled:l.value,onClick:u},[l.value?(E(),P("span",ph)):Z("",!0),B(" "+_(l.value?"停止中…":y(x).settings.stopService),1)],8,hh)]))]),c("div",yh,[c("div",_h,[c("div",null,[c("h2",null,_(y(x).doctor.title),1),U[8]||(U[8]=c("p",{class:"muted section-sub"},"缺什么就一键补齐",-1))]),c("button",{class:"ghost recheck",disabled:y(t).loading,onClick:U[0]||(U[0]=X=>y(t).recheck())},[y(t).loading?(E(),P("span",wh)):(E(),it(Q,{key:0,name:"refresh",size:15})),B(" "+_(y(x).doctor.recheck),1)],8,bh)]),c("div",Sh,[c("div",xh,[c("strong",null,_(y(t).readyCount)+" / "+_(y(t).statuses.length),1),U[9]||(U[9]=c("span",null,"个引擎可用",-1))]),c("div",kh,[c("i",{style:pn({width:`${v.value}%`})},null,4)])]),y(t).error?(E(),P("p",Ch,_(y(t).error),1)):Z("",!0),c("div",Eh,[(E(!0),P(re,null,Ae(y(t).statuses,X=>(E(),it(nh,{key:X.id,status:X,installing:p.value,onInstall:V,onUninstall:N},null,8,["status","installing"]))),128))]),y(t).installSession.state!=="idle"?(E(),P("div",{key:1,ref_key:"installSessionRef",ref:b,class:"install-session"},[c("h3",null,_(y(x).doctor.logs),1),c("p",{class:ye(["session-state",y(t).installSession.state])},[y(t).installSession.state==="progress"?(E(),P("span",Ah)):Z("",!0),B(" "+_(y(t).installSession.state==="progress"?y(x).doctor.sessionRunningFull:y(t).installSession.state==="done"?y(x).doctor.sessionDone:y(x).doctor.sessionFailed),1)],2),K(ih,{logs:y(t).installSession.logs},null,8,["logs"])],512)):Z("",!0)]),c("form",{class:"panel",onSubmit:oo(z,["prevent"])},[c("div",Rh,[c("h2",null,_(y(x).settings.preferences),1)]),c("label",Th,[c("span",null,_(y(x).settings.outputDir),1),c("div",Oh,[Pt(c("input",{"onUpdate:modelValue":U[1]||(U[1]=X=>y(s).form.outputDir=X),type:"text",placeholder:"转换结果保存目录"},null,512),[[Ut,y(s).form.outputDir]]),c("button",{class:"ghost",type:"button",disabled:o.value,onClick:G},[o.value?(E(),P("span",Ih)):(E(),it(Q,{key:0,name:"folder",size:14})),B(" "+_(o.value?"打开中…":y(x).settings.chooseDir),1)],8,Ph)]),$.value?(E(),P("div",$h,[c("p",Mh,[K(Q,{name:"alert-circle",size:15}),B(" "+_(y(x).settings.outputAccessTitle),1)]),c("p",Nh,_((se=y(s).settings.outputDirAccess)==null?void 0:se.message),1),c("div",Dh,[c("button",{class:"primary",type:"button",disabled:T.value,onClick:D},[T.value?(E(),P("span",Vh)):Z("",!0),B(" "+_(y(x).settings.useSuggestedDir),1)],8,Fh),y(Rn)()==="macos"?(E(),P("button",{key:0,class:"ghost",type:"button",onClick:L},[K(Q,{name:"external-link",size:13}),B(" "+_(y(x).settings.openPrivacy),1)])):Z("",!0)])])):Z("",!0)]),c("label",Lh,[c("span",null,_(y(x).settings.concurrency),1),c("div",Hh,[Pt(c("input",{"onUpdate:modelValue":U[2]||(U[2]=X=>y(s).form.concurrency=X),type:"number",min:"1",max:"4"},null,512),[[Ut,y(s).form.concurrency,void 0,{number:!0}]]),U[10]||(U[10]=c("small",{class:"muted"},"同时进行的转换任务数(1–4)",-1))])]),c("label",jh,[c("span",null,_(y(x).settings.language),1),Pt(c("select",{"onUpdate:modelValue":U[3]||(U[3]=X=>y(s).form.language=X),disabled:""},[...U[11]||(U[11]=[c("option",{value:"zh-CN"},"简体中文",-1)])],512),[[Ao,y(s).form.language]])]),y(s).error?(E(),P("p",Uh,_(y(s).error),1)):i.value?(E(),P("p",Bh,[K(Q,{name:"check-circle",size:14}),B(_(y(x).settings.saved),1)])):Z("",!0),c("div",zh,[c("button",{class:"primary",disabled:y(s).saving,type:"submit"},[y(s).saving?(E(),P("span",Wh)):Z("",!0),B(" "+_(y(s).saving?"保存中…":y(x).settings.save),1)],8,Kh)])],32)])}}}),qh=Ze(Gh,[["__scopeId","data-v-4ed1ac55"]]),ls=[{key:"image",label:"图片",icon:"image",categories:["image"]},{key:"video",label:"视频",icon:"video",categories:["video"]},{key:"audio",label:"音频",icon:"music",categories:["audio"]},{key:"office",label:"文档",icon:"office",categories:["office","markdown"]},{key:"pdf",label:"PDF",icon:"pdf",categories:["pdf"]},{key:"archive",label:"压缩包",icon:"archive",categories:["archive"]}];function wl(e,t){return e.filter(s=>t.categories.includes(s.category))}function Di(e,t){const s=new Set;for(const n of wl(e,t))for(const o of n.fromFormats)s.add(o);return s}const Jh={"image-resize":"缩放","image-compress":"压缩","image-watermark":"加水印","images-to-gif":"合成 GIF","images-to-pdf":"合成 PDF","video-compress":"压缩","video-timelapse":"延迟摄影","media-compress":"压缩","pdf-merge":"合并","pdf-split":"拆分","pdf-protect":"加密/解密","archive-extract":"解压"};function Yh(e){return Jh[e]}const Fi={jpg:"jpg",jpeg:"jpg"};function Qh(e,t){return(Fi[e]??e)===(Fi[t]??t)}function Xh(e){const t=e.split(/[\\/]/).pop()??"",s=t.lastIndexOf(".");return s>0?t.slice(s+1).toLowerCase():""}function Zh(e,t){if(!t.length)return[];const s=[...new Set(t.map(i=>i.toLowerCase()))],n=[],o=new Set;for(const i of e){if(!i.available||!s.every(l=>i.fromFormats.includes(l)))continue;const r=Yh(i.key);if(r){const l=`op:${i.key}`;if(o.has(l))continue;o.add(l),n.push({conversionKey:i.key,format:"",label:r,capability:i.label,category:i.category,kind:"operate"});continue}for(const l of i.toFormats){if(s.every(d=>Qh(d,l)))continue;const a=`${i.key}:${l}`;o.has(a)||(o.add(a),n.push({conversionKey:i.key,format:l,label:l==="folder"?"解压为文件夹":l.toUpperCase(),capability:i.label,category:i.category,kind:"convert"}))}}return n}function ep(e,t){return t?[...e].sort((s,n)=>+(n.category===t)-+(s.category===t)):[...e]}function Vi(e,t){var n;const s=t.toLowerCase();return(n=e.find(o=>o.fromFormats.includes(s)))==null?void 0:n.category}function Li(e,t){return e.some(n=>n!==t&&n.label===t.label)?`${t.label} · ${t.capability}`:t.label}function tp(e){return e===void 0?"":e<1024?`${e} B`:e<1024**2?`${(e/1024).toFixed(0)} KB`:e<1024**3?`${(e/1024**2).toFixed(1)} MB`:`${(e/1024**3).toFixed(2)} GB`}const sp={class:"install-guide","data-testid":"install-guide"},np={class:"platform-switch",role:"tablist"},op=["aria-selected"],ip=["aria-selected"],rp={class:"steps"},lp={class:"muted"},ap={class:"command-block"},cp={class:"command-row"},up={"data-testid":"install-command"},fp={class:"muted hint"},dp={class:"manual-block"},hp={key:0,class:"manual-steps"},pp={class:"step-no"},gp=je({__name:"InstallGuide",setup(e){const t=oe(Rn()),s=oe(!1),n=ie(()=>$o(t.value)),o=oe(!1);async function i(){try{await navigator.clipboard.writeText(n.value),o.value=!0,setTimeout(()=>{o.value=!1},2e3)}catch{}}return(r,l)=>(E(),P("div",sp,[c("div",np,[c("button",{type:"button",class:ye({active:t.value==="macos"}),role:"tab","aria-selected":t.value==="macos",onClick:l[0]||(l[0]=a=>t.value="macos")},_(y(x).install.macos),11,op),c("button",{type:"button",class:ye({active:t.value==="windows"}),role:"tab","aria-selected":t.value==="windows",onClick:l[1]||(l[1]=a=>t.value="windows")},_(y(x).install.windows),11,ip)]),c("ol",rp,[c("li",null,[l[3]||(l[3]=c("span",{class:"step-no"},"1",-1)),c("div",null,[c("strong",null,_(y(x).install.step1),1),c("p",lp,_(t.value==="macos"?y(x).install.macosTerminal:y(x).install.windowsTerminal),1)])]),c("li",null,[l[5]||(l[5]=c("span",{class:"step-no"},"2",-1)),c("div",ap,[c("strong",null,_(y(x).install.step2),1),c("div",cp,[c("code",up,[l[4]||(l[4]=c("span",{class:"prompt"},"$",-1)),B(_(n.value),1)]),c("button",{class:"ghost copy",type:"button",onClick:i},[K(Q,{name:o.value?"check-circle":"copy",size:14},null,8,["name"]),B(" "+_(o.value?y(x).install.copied:y(x).install.copy),1)])])])]),c("li",null,[l[6]||(l[6]=c("span",{class:"step-no"},"3",-1)),c("div",null,[c("strong",null,_(y(x).install.step3),1),c("p",fp,_(y(x).install.alreadyInstalled),1)])])]),c("div",dp,[c("button",{class:"manual-toggle",type:"button",onClick:l[2]||(l[2]=a=>s.value=!s.value)},[B(_(y(x).install.manualTitle),1),K(Q,{name:"chevron-down",size:14,class:ye({open:s.value})},null,8,["class"])]),s.value?(E(),P("ol",hp,[(E(!0),P(re,null,Ae(y(x).install.manualSteps,(a,d)=>(E(),P("li",{key:a.title},[c("span",pp,_(d+1),1),c("div",null,[c("strong",null,_(a.title),1),c("p",null,_(a.text),1)])]))),128))])):Z("",!0)])]))}}),mp=Ze(gp,[["__scopeId","data-v-56162934"]]),vp={class:"daemon-gate","data-testid":"daemon-gate"},yp={key:0,class:"gate-state checking"},_p={key:1,class:"gate-state online","data-testid":"gate-online"},bp={class:"gate-icon ok"},wp={class:"actions"},Sp=["href"],xp={key:2,class:"gate-state offline","data-testid":"gate-offline"},kp={class:"gate-icon off"},Cp={class:"start-block"},Ep={class:"manual"},Ap={class:"manual-label"},Rp={class:"manual-row"},Tp={class:"manual-hint"},Op={class:"actions"},Pp=["href"],Ip={class:"install-collapsed"},$p=je({__name:"DaemonGate",setup(e){const t=oe("checking"),s=oe(!1),n=oe(!1);async function o(){try{await navigator.clipboard.writeText("converter start"),n.value=!0,setTimeout(()=>{n.value=!1},2e3)}catch{}}async function i(){t.value="checking",t.value=await pf()?"online":"offline"}return os(()=>{i()}),(r,l)=>(E(),P("div",vp,[t.value==="checking"?(E(),P("div",yp,[l[1]||(l[1]=c("span",{class:"spinner big","aria-hidden":"true"},null,-1)),c("p",null,_(y(x).gate.checking),1)])):t.value==="online"?(E(),P("div",_p,[c("div",bp,[K(Q,{name:"check-circle",size:26})]),c("p",null,_(y(x).gate.online),1),l[2]||(l[2]=c("p",{class:"hint muted"},"转换在本机完成,点击进入操作界面",-1)),c("div",wp,[c("a",{class:"btn primary",href:y(fo),target:"_blank",rel:"noopener"},[B(_(y(x).gate.open),1),K(Q,{name:"arrow-right",size:15})],8,Sp),c("button",{class:"ghost",type:"button",onClick:i},[K(Q,{name:"refresh",size:14}),B(_(y(x).gate.retry),1)])])])):(E(),P("div",xp,[c("div",kp,[K(Q,{name:"alert-circle",size:26})]),c("p",null,_(y(x).gate.offline),1),c("div",Cp,[c("div",Ep,[c("span",Ap,_(y(x).gate.manualTitle),1),c("div",Rp,[l[3]||(l[3]=c("code",null,[c("span",{class:"prompt"},"$"),B("converter start")],-1)),c("button",{class:"copy",type:"button",onClick:o},[K(Q,{name:n.value?"check-circle":"copy",size:13},null,8,["name"]),B(_(n.value?"已复制":"复制"),1)])]),c("p",Tp,_(y(x).gate.manualHint),1)]),c("div",Op,[c("button",{class:"ghost",type:"button",onClick:i},[K(Q,{name:"refresh",size:14}),B(_(y(x).gate.retry),1)]),c("a",{class:"ghost direct-link",href:y(fo),target:"_blank",rel:"noopener"},_(y(x).gate.open),9,Pp)])]),c("div",Ip,[c("button",{class:"install-toggle",type:"button",onClick:l[0]||(l[0]=a=>s.value=!s.value)},[B(_(y(x).gate.notInstalledTitle),1),K(Q,{name:"chevron-down",size:14,class:ye({open:s.value})},null,8,["class"])]),s.value?(E(),it(mp,{key:0})):Z("",!0)])]))]))}}),Mp=Ze($p,[["__scopeId","data-v-0f39bf4c"]]),Np="/gh-qrcode.png",Dp={class:"follow-gate","data-testid":"follow-gate"},Fp={class:"gate-right"},Vp={class:"code-row"},Lp={"data-testid":"pair-code"},Hp={key:0,class:"gate-error"},jp=je({__name:"FollowGate",props:{pairCode:{}},emits:["activated"],setup(e,{emit:t}){const s=e,n=t,o=ie(()=>s.pairCode??""),i=oe(!1),r=oe("");let l;async function a(){try{await navigator.clipboard.writeText(o.value),i.value=!0,setTimeout(()=>{i.value=!1},2e3)}catch{}}async function d(){const b=s.pairCode;if(b)try{const v=await fetch(`https://duduer.com/api/wx/activate/${encodeURIComponent(b)}`);if(!v.ok)return;const V=await v.json();V.status==="active"&&V.token?(p(),await we.wxActivate(V.token),n("activated",V.token)):V.subscribed===!1?r.value="检测到关注已取消,重新关注即可恢复使用":r.value=""}catch{}}function u(){l=window.setInterval(()=>{d()},5e3)}function p(){l!==void 0&&(clearInterval(l),l=void 0)}return os(()=>{u()}),bn(()=>{p()}),(b,v)=>(E(),P("div",Dp,[v[5]||(v[5]=c("div",{class:"gate-left"},[c("img",{class:"gh-qrcode",src:Np,alt:"公众号二维码"}),c("p",{class:"qr-hint"},"微信扫码,关注公众号")],-1)),c("div",Fp,[v[1]||(v[1]=c("h2",null,"免费解锁全部功能",-1)),v[2]||(v[2]=c("p",{class:"gate-desc"},[B("关注公众号并回复你的绑定码,即可"),c("strong",null,"永久免费"),B("使用全部转换功能")],-1)),c("div",Vp,[v[0]||(v[0]=c("span",{class:"code-label"},"你的绑定码",-1)),c("code",Lp,_(o.value),1),c("button",{class:"copy",type:"button",onClick:a},[K(Q,{name:i.value?"check-circle":"copy",size:13},null,8,["name"]),B(_(i.value?"已复制":"复制"),1)])]),v[3]||(v[3]=c("ol",{class:"gate-steps"},[c("li",null,[c("span",null,"1"),B("微信扫描左侧二维码,关注公众号")]),c("li",null,[c("span",null,"2"),B("在公众号里发送你的绑定码(点击上方「复制」;手机手动输入请切换英文键盘,用半角字符)")]),c("li",null,[c("span",null,"3"),B("收到「绑定成功」回复后,本页自动解锁")])],-1)),r.value?(E(),P("p",Hp,[K(Q,{name:"alert-circle",size:14}),B(_(r.value),1)])):Z("",!0),v[4]||(v[4]=c("p",{class:"waiting"},[c("span",{class:"spinner tiny"}),B("正在等待绑定完成,每 5 秒自动检测…")],-1))])]))}}),Up=Ze(jp,[["__scopeId","data-v-8a413519"]]),Bp={class:"workbench","data-testid":"workbench"},zp={class:"page-title"},Kp={class:"page-subtitle"},Wp={key:2,class:"tabbed"},Gp={class:"tab-rail"},qp=["data-testid","onClick"],Jp={class:"tab-label"},Yp={key:0,class:"tab-count"},Qp={class:"tab-panel panel"},Xp={class:"drop-icon"},Zp={class:"drop-title"},eg={class:"muted drop-hint"},tg={class:"drop-compact-text"},sg={class:"drop-actions"},ng=["placeholder"],og=["disabled"],ig=["disabled"],rg={key:1,class:"spinner",style:{width:"13px",height:"13px","border-color":"#ffffff88","border-top-color":"#fff"}},lg=["accept"],ag={key:0,class:"hint-alert"},cg={key:1,class:"deps-missing-panel","data-testid":"deps-missing-panel"},ug={class:"deps-text"},fg={class:"muted"},dg={class:"target-bar"},hg={class:"section-title"},pg={key:0,class:"target-chips"},gg=["onClick"],mg={key:1,class:"hint-alert"},vg={class:"table-wrap"},yg={class:"file-table","data-testid":"file-table"},_g={class:"cell-file"},bg={class:"cell-path"},wg={class:"cell-size"},Sg={class:"cell-status"},xg={class:"cell-actions"},kg={class:"cell-file"},Cg={class:"file-icon"},Eg=["title"],Ag={class:"chip ext"},Rg={class:"cell-path"},Tg=["title","onClick"],Og={class:"cell-size muted"},Pg={class:"cell-status"},Ig=["title"],$g={key:0,class:"spinner tiny"},Mg={key:1},Ng={key:2,class:"row-error"},Dg={class:"cell-actions"},Fg=["onClick"],Vg=["onClick"],Lg=["onClick"],Hg=["title","onClick"],jg={key:0,class:"params"},Ug={class:"section-title"},Bg={class:"params-grid"},zg={class:"param-label"},Kg={key:1,class:"required"},Wg=["onUpdate:modelValue","data-testid"],Gg=["value"],qg=["onUpdate:modelValue","min","max","data-testid"],Jg={key:2,class:"watermark-editor"},Yg=["onUpdate:modelValue","data-testid"],Qg=["disabled"],Xg=["onUpdate:modelValue","type","data-testid"],Zg={key:4,class:"param-description"},em={class:"summary"},tm={class:"batch-actions"},sm=["disabled"],nm={key:0,class:"spinner",style:{"border-color":"#ffffff88","border-top-color":"#fff"}},om=je({__name:"WorkbenchView",setup(e){const t=js(),s=uf(),n=Po(),o=An(),i=ns({checking:t,activated:!0}),r=Io(),l=oe(ls[0].key),a=ns(Object.fromEntries(ls.map(h=>[h.key,{rows:[],selected:null,paramValues:{}}]))),d=oe("");function u(){s.push("/settings")}const p=h=>{we.wxActivate(h).then(()=>{i.activated=!0}).catch(()=>{})},b=ie(()=>ls.find(h=>h.key===l.value)),v=ie(()=>a[l.value]),V=ie(()=>wl(n.features,b.value)),N=ie(()=>Di(n.features,b.value)),G=ie(()=>{const h=Zh(V.value,v.value.rows.map(m=>m.ext)),S=v.value.rows[0]?Vi(n.features,v.value.rows[0].ext):void 0;return ep(h,S)}),$=ie(()=>{var h;return v.value.selected?((h=n.byKey.get(v.value.selected.conversionKey))==null?void 0:h.params)??[]:[]}),T=ie(()=>$.value.filter(h=>h.required&&String(v.value.paramValues[h.key]??"").trim()==="")),D=new Set(["pdf-merge","images-to-gif","images-to-pdf"]),L=ie(()=>{var h;return D.has(((h=v.value.selected)==null?void 0:h.conversionKey)??"")}),z=ie(()=>{const h=new Set;for(const S of V.value)for(const m of S.missingTools??[])h.add(m);return[...h].map(S=>{var m;return{id:S,name:((m=o.statuses.find(R=>R.id===S))==null?void 0:m.name)??S}})});$t(()=>[l.value,G.value.map(h=>`${h.conversionKey}:${h.format}`).join("|")],()=>{const h=v.value.selected,S=h!==null&&G.value.some(m=>m.conversionKey===h.conversionKey&&m.format===h.format);v.value.selected=S?h:G.value[0]??null,J()});function J(){var S;const h={};for(const m of $.value)m.defaultValue!==void 0?h[m.key]=m.defaultValue:m.control==="preset"&&((S=m.presets)!=null&&S.length)&&(h[m.key]=m.presets[0].value);v.value.paramValues=h}function U(h){const S=v.value.selected;return(S==null?void 0:S.conversionKey)===h.conversionKey&&(S==null?void 0:S.format)===h.format}function se(h){v.value.selected=h,J()}function X(){const h={};for(const S of $.value){const m=v.value.paramValues[S.key];S.control==="preset"||S.control==="number"?typeof m=="number"&&Number.isFinite(m)&&(h[S.key]=m):typeof m=="string"&&m.trim()&&(h[S.key]=m.trim())}return h}function ge(h,S){var R;if(h.kind!=="operate")return h.format;const m=((R=n.byKey.get(h.conversionKey))==null?void 0:R.toFormats)??[];return m.includes(S.ext)?S.ext:m[0]??S.ext}const ke=oe(""),Pe=oe(!1),_e=oe(!1),Ce=oe(""),Be=oe(),de=oe();function te(h){return h.split(/[\\/]/).pop()??h}function le(h){return bl[Vi(n.features,h)??"file"]??"file"}function et(h){const S=ls.find(m=>Di(n.features,m).has(h));return(S==null?void 0:S.label)??"其他"}function Je(h,S,m){const R=h.trim();if(!R)return;const H=Xh(R);if(!N.value.has(H)){Ce.value=x.workbench.wrongTab.replace("{name}",te(R)).replace("{tab}",`「${b.value.label}」`).replace("对应标签页",`「${et(H)}」标签页`);return}const ee=m??te(R);if(v.value.rows.some(ae=>ae.path===R||S!==void 0&&ae.name===ee&&ae.size===S)){Ce.value=`${ee} ${x.workbench.fileDuplicate}`;return}Ce.value="",v.value.rows.push({path:R,ext:H,name:ee,status:"pending",...S!==void 0?{size:S}:{}})}function ze(){Je(ke.value),ke.value=""}async function Ie(h){if(h.length){_e.value=!0,Ce.value="";try{for(const S of h){const m=S.path;if(m){Je(m,S.size,S.name);continue}if(v.value.rows.some(H=>H.name===S.name&&H.size===S.size)){Ce.value=`${S.name} ${x.workbench.fileDuplicate}`;continue}const R=await Ni(S);Je(R.inputPath,R.size,R.originalName)}}catch(S){Ce.value=S instanceof Error?S.message:"文件导入失败"}finally{_e.value=!1,Be.value&&(Be.value.value="")}}}function Dt(h){Ie(Array.from(h.target.files??[]))}function xt(h){var S;Pe.value=!1,Ie(Array.from(((S=h.dataTransfer)==null?void 0:S.files)??[]))}async function kt(h){const S=Array.from(h.target.files??[])[0],m=$.value.find(R=>R.control==="file");if(!(!S||!m)){_e.value=!0;try{const R=S.path;if(R)v.value.paramValues[m.key]=R;else{const H=await Ni(S);v.value.paramValues[m.key]=H.inputPath}}catch(R){Ce.value=R instanceof Error?R.message:"水印图片选择失败"}finally{_e.value=!1,de.value&&(de.value.value="")}}}const $e=oe(!1),A=ie(()=>v.value.rows.filter(h=>h.status==="pending").length),W=ie(()=>v.value.rows.some(h=>h.status==="success"||h.status==="failed")),j=ie(()=>A.value>0&&v.value.selected!==null&&T.value.length===0&&!$e.value);async function Y(h){const S=v.value.selected;if(!(!S||L.value)){h.status="converting",h.targetFormat=ge(S,h),h.progress=0,h.error=void 0,h.output=void 0;try{const m=await we.convert({inputPath:h.path,targetFormat:h.targetFormat,conversionKey:S.conversionKey,options:X()});h.taskId=m.taskId}catch(m){h.status="failed",h.error=m instanceof Error?m.message:"提交失败"}}}async function f(){const h=v.value.selected,S=v.value.rows.filter(m=>m.status==="pending");if(!(!h||!S.length||T.value.length)){if($e.value=!0,L.value){const m=S.map(R=>R.path);for(const R of S)R.status="converting",R.targetFormat=ge(h,R),R.error=void 0;try{const R=await we.convert({inputPath:m[0],targetFormat:ge(h,S[0]),conversionKey:h.conversionKey,options:{...X(),inputs:m}});for(const H of S)H.taskId=R.taskId}catch(R){const H=R instanceof Error?R.message:"提交失败";for(const ee of S)ee.status="failed",ee.error=H}}else for(const m of S)await Y(m);$e.value=!1}}$t(()=>r.tasks,h=>{var m;const S=new Map(h.map(R=>[R.taskId,R]));for(const R of ls)for(const H of a[R.key].rows){if(!H.taskId)continue;const ee=S.get(H.taskId);ee&&(ee.status==="success"?(H.status="success",H.output=ee.output,H.progress=100):ee.status==="failed"?(H.status="failed",H.error=((m=ee.error)==null?void 0:m.message)??"转换失败"):(H.status="converting",H.progress=ee.progress??H.progress))}},{deep:!0});function g(h){v.value.rows.splice(h,1)}function w(){v.value.rows=v.value.rows.filter(h=>h.status==="pending"||h.status==="converting")}async function k(h){try{await we.revealPath(h.path)}catch(S){Ce.value=S instanceof Error?S.message:"打开目录失败"}}async function C(h){if(h.taskId)try{await we.revealTask(h.taskId)}catch(S){Ce.value=S instanceof Error?S.message:"打开目录失败"}}function O(h){return h==="pending"?x.workbench.statusPending:h==="converting"?x.workbench.statusRunning:h==="success"?x.workbench.statusSuccess:x.workbench.statusFailed}const I=ie(()=>[...N.value].slice(0,10).map(h=>h.toUpperCase()).join(" / ")),F=ie(()=>[...N.value].map(h=>`.${h}`).join(","));let M;return os(()=>{t&&(M=To().onMessage(h=>{h.type==="activation:revoked"&&(i.activated=!1,i.checking=!1)}),we.wxStatus().then(h=>{i.activated=h.activated,d.value=h.pairCode,i.checking=!1}).catch(()=>{i.checking=!1}))}),bn(()=>{M==null||M()}),(h,S)=>(E(),P("section",Bp,[c("h1",zp,_(y(x).workbench.title),1),c("p",Kp,_(y(x).workbench.subtitle),1),y(t)?i.activated?(E(),P("div",Wp,[c("aside",Gp,[(E(!0),P(re,null,Ae(y(ls),m=>(E(),P("button",{key:m.key,type:"button",class:ye(["tab-btn",{active:l.value===m.key}]),"data-testid":`tab-${m.key}`,onClick:R=>{l.value=m.key,Ce.value=""}},[K(Q,{name:m.icon,size:17},null,8,["name"]),c("span",Jp,_(m.label),1),a[m.key].rows.length?(E(),P("span",Yp,_(a[m.key].rows.length),1)):Z("",!0)],10,qp))),128))]),c("div",Qp,[c("div",{class:ye(["dropzone",{dragging:Pe.value,compact:v.value.rows.length>0}]),"data-testid":"dropzone",onDragover:S[2]||(S[2]=oo(m=>Pe.value=!0,["prevent"])),onDragleave:S[3]||(S[3]=m=>Pe.value=!1),onDrop:oo(xt,["prevent"])},[v.value.rows.length?(E(),P(re,{key:1},[K(Q,{name:"upload",size:15}),c("span",tg,_(y(x).workbench.dropCompact.replace("{tab}",b.value.label)),1)],64)):(E(),P(re,{key:0},[c("span",Xp,[K(Q,{name:b.value.icon,size:30},null,8,["name"])]),c("strong",Zp,_(y(x).workbench.dropTitle.replace("{tab}",b.value.label)),1),c("p",eg,_(y(x).workbench.dropHint.replace("{exts}",I.value)),1)],64)),c("div",sg,[Pt(c("input",{"onUpdate:modelValue":S[0]||(S[0]=m=>ke.value=m),type:"text",placeholder:y(x).workbench.pastePlaceholder,onKeydown:Wc(ze,["enter"])},null,40,ng),[[Ut,ke.value]]),c("button",{class:"ghost",type:"button",disabled:!ke.value.trim(),onClick:ze},[K(Q,{name:"plus",size:14}),B(_(y(x).workbench.addPath),1)],8,og),c("button",{class:"primary",type:"button",disabled:_e.value,onClick:S[1]||(S[1]=m=>{var R;return(R=Be.value)==null?void 0:R.click()})},[_e.value?(E(),P("span",rg)):(E(),it(Q,{key:0,name:"file",size:14})),B(" "+_(_e.value?"导入中…":y(x).workbench.addFile),1)],8,ig)]),c("input",{ref_key:"fileInput",ref:Be,type:"file",multiple:"",hidden:"",accept:F.value,onChange:Dt},null,40,lg)],34),Ce.value?(E(),P("p",ag,[K(Q,{name:"alert-circle",size:15}),B(_(Ce.value),1)])):Z("",!0),z.value.length?(E(),P("div",cg,[K(Q,{name:"alert-circle",size:17}),c("div",ug,[c("strong",null,_(y(x).workbench.depsMissingTitle),1),c("p",fg,_(y(x).workbench.depsMissingDesc.replace("{deps}",z.value.map(m=>m.name).join("、"))),1)]),c("button",{class:"btn primary goto-settings",type:"button","data-testid":"goto-settings",onClick:u},_(y(x).workbench.gotoSettings),1)])):Z("",!0),v.value.rows.length?(E(),P(re,{key:2},[c("div",dg,[c("span",hg,_(y(x).workbench.convertTo),1),G.value.length?(E(),P("div",pg,[(E(!0),P(re,null,Ae(G.value,m=>(E(),P("button",{key:`${m.conversionKey}:${m.format}`,type:"button",class:ye(["target-chip",{active:U(m)}]),"data-testid":"target-chip",onClick:R=>se(m)},_(y(Li)(G.value,m)),11,gg))),128))])):V.value.some(m=>m.available)?(E(),P("p",mg,[K(Q,{name:"alert-circle",size:15}),B(_(y(x).workbench.noCommonTargets),1)])):Z("",!0)]),c("div",vg,[c("table",yg,[c("thead",null,[c("tr",null,[c("th",_g,_(y(x).workbench.tableFile),1),c("th",bg,_(y(x).workbench.tablePath),1),c("th",wg,_(y(x).workbench.tableSize),1),c("th",Sg,_(y(x).workbench.tableStatus),1),c("th",xg,_(y(x).workbench.tableActions),1)])]),c("tbody",null,[(E(!0),P(re,null,Ae(v.value.rows,(m,R)=>(E(),P("tr",{key:m.path,"data-testid":"file-row"},[c("td",kg,[c("span",Cg,[K(Q,{name:le(m.ext),size:16},null,8,["name"])]),c("span",{class:"file-name",title:m.path},_(m.name??te(m.path)),9,Eg),c("span",Ag,_(m.ext?m.ext.toUpperCase():"?"),1)]),c("td",Rg,[c("button",{class:"path-link",type:"button","data-testid":"row-path",title:m.path,onClick:H=>k(m)},_(m.path),9,Tg)]),c("td",Og,_(m.size!==void 0?y(tp)(m.size):"—"),1),c("td",Pg,[c("span",{class:ye(["row-status",m.status]),title:m.error??""},[m.status==="converting"?(E(),P("span",$g)):Z("",!0),B(" "+_(O(m.status))+" ",1),m.status==="converting"&&m.progress!==void 0?(E(),P("em",Mg,_(m.progress)+"%",1)):Z("",!0),m.status==="failed"&&m.error?(E(),P("em",Ng,_(m.error),1)):Z("",!0)],10,Ig)]),c("td",Dg,[m.status==="pending"&&!L.value?(E(),P("button",{key:0,class:"ghost tiny",type:"button",onClick:H=>Y(m)},_(y(x).workbench.convert),9,Fg)):Z("",!0),m.status==="failed"&&!L.value?(E(),P("button",{key:1,class:"ghost tiny",type:"button",onClick:H=>Y(m)},_(y(x).workbench.retry),9,Vg)):Z("",!0),m.status==="success"?(E(),P("button",{key:2,class:"ghost tiny",type:"button",onClick:H=>C(m)},_(y(x).workbench.openFolder),9,Lg)):Z("",!0),c("button",{class:"icon-btn",type:"button",title:y(x).workbench.remove,onClick:H=>g(R)},[K(Q,{name:"x",size:14})],8,Hg)])]))),128))])])]),$.value.length?(E(),P("div",jg,[c("div",Ug,_(y(x).workbench.paramsTitle),1),c("div",Bg,[(E(!0),P(re,null,Ae($.value,m=>(E(),P("label",{key:m.key,class:ye(["param-field",{wide:m.control==="file"}])},[c("span",zg,[B(_(m.label),1),m.unit?(E(),P(re,{key:0},[B("("+_(m.unit)+")",1)],64)):Z("",!0),m.required?(E(),P("i",Kg,"*")):Z("",!0)]),m.control==="preset"?Pt((E(),P("select",{key:0,"onUpdate:modelValue":R=>v.value.paramValues[m.key]=R,"data-testid":`param-${m.key}`},[(E(!0),P(re,null,Ae(m.presets??[],R=>(E(),P("option",{key:R.value,value:R.value},_(R.label),9,Gg))),128))],8,Wg)),[[Ao,v.value.paramValues[m.key]]]):m.control==="number"?Pt((E(),P("input",{key:1,"onUpdate:modelValue":R=>v.value.paramValues[m.key]=R,type:"number",min:m.min,max:m.max,placeholder:"不调整","data-testid":`param-${m.key}`},null,8,qg)),[[Ut,v.value.paramValues[m.key],void 0,{number:!0}]]):m.control==="file"?(E(),P("div",Jg,[Pt(c("input",{"onUpdate:modelValue":R=>v.value.paramValues[m.key]=R,type:"text",placeholder:"选择或粘贴水印图片路径","data-testid":`param-${m.key}`},null,8,Yg),[[Ut,v.value.paramValues[m.key],void 0,{trim:!0}]]),c("button",{class:"ghost",type:"button",disabled:_e.value,onClick:S[4]||(S[4]=R=>{var H;return(H=de.value)==null?void 0:H.click()})},_(y(x).workbench.chooseFile),9,Qg),c("input",{ref_for:!0,ref_key:"watermarkInput",ref:de,type:"file",hidden:"",accept:"image/*",onChange:kt},null,544)])):Pt((E(),P("input",{key:3,"onUpdate:modelValue":R=>v.value.paramValues[m.key]=R,type:m.control==="password"?"password":"text","data-testid":`param-${m.key}`},null,8,Xg)),[[jc,v.value.paramValues[m.key],void 0,{trim:!0}]]),m.description?(E(),P("small",Zg,_(m.description),1)):Z("",!0)],2))),128))])])):Z("",!0),c("div",{class:ye(["batch-bar",{disabled:!j.value}])},[c("span",em,[S[5]||(S[5]=B(" 待转换 ",-1)),c("strong",null,_(A.value),1),B(" 个 → "+_(v.value.selected?y(Li)(G.value,v.value.selected):"—"),1)]),c("div",tm,[W.value?(E(),P("button",{key:0,class:"ghost",type:"button",onClick:w},"清除已完成")):Z("",!0),c("button",{class:"primary batch",type:"button","data-testid":"batch-convert",disabled:!j.value,onClick:f},[$e.value?(E(),P("span",nm)):Z("",!0),B(" "+_($e.value?"转换中…":y(x).workbench.batchConvertN.replace("{n}",String(A.value))),1)],8,sm)])],2)],64)):Z("",!0)])])):(E(),it(Up,{key:1,"pair-code":d.value,"data-testid":"follow-gate",onActivated:p},null,8,["pair-code"])):(E(),it(Mp,{key:0}))]))}}),im=Ze(om,[["__scopeId","data-v-14e4481b"]]),rm=cf({history:Uu(),routes:[{path:"/",name:"landing",component:Gd},{path:"/workbench",name:"workbench",component:im},{path:"/history",name:"history",component:sd},{path:"/settings",name:"settings",component:qh},{path:"/:pathMatch(.*)*",redirect:"/"}]});Jc(Of).use(Xc()).use(rm).mount("#app");