diff --git a/index.html b/index.html index bec7989..44f65d7 100644 --- a/index.html +++ b/index.html @@ -8,8 +8,8 @@ - - + +
diff --git a/static/index-ByBNwJkE.js b/static/index-BLpttrTi.js similarity index 94% rename from static/index-ByBNwJkE.js rename to static/index-BLpttrTi.js index 5fa2390..c556ef5 100644 --- a/static/index-ByBNwJkE.js +++ b/static/index-BLpttrTi.js @@ -2,20 +2,20 @@ * @vue/shared v3.5.5 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**//*! #__NO_SIDE_EFFECTS__ */function Xs(t){const e=Object.create(null);for(const s of t.split(","))e[s]=1;return s=>s in e}const U={},he=[],Pt=()=>{},yn=()=>!1,cs=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),tl=t=>t.startsWith("onUpdate:"),rt=Object.assign,el=(t,e)=>{const s=t.indexOf(e);s>-1&&t.splice(s,1)},Tn=Object.prototype.hasOwnProperty,L=(t,e)=>Tn.call(t,e),D=Array.isArray,ce=t=>Ue(t)==="[object Map]",ve=t=>Ue(t)==="[object Set]",Tl=t=>Ue(t)==="[object Date]",C=t=>typeof t=="function",Y=t=>typeof t=="string",zt=t=>typeof t=="symbol",B=t=>t!==null&&typeof t=="object",fi=t=>(B(t)||C(t))&&C(t.then)&&C(t.catch),xi=Object.prototype.toString,Ue=t=>xi.call(t),Dn=t=>Ue(t).slice(8,-1),hi=t=>Ue(t)==="[object Object]",sl=t=>Y(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Oe=Xs(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ps=t=>{const e=Object.create(null);return s=>e[s]||(e[s]=t(s))},Sn=/-(\w)/g,St=ps(t=>t.replace(Sn,(e,s)=>s?s.toUpperCase():"")),Nn=/\B([A-Z])/g,_e=ps(t=>t.replace(Nn,"-$1").toLowerCase()),bs=ps(t=>t.charAt(0).toUpperCase()+t.slice(1)),Gs=ps(t=>t?`on${bs(t)}`:""),ue=(t,e)=>!Object.is(t,e),ns=(t,...e)=>{for(let s=0;s{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:l,value:s})},ms=t=>{const e=parseFloat(t);return isNaN(e)?t:e};let Dl;const pi=()=>Dl||(Dl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ll(t){if(D(t)){const e={};for(let s=0;s{if(s){const l=s.split(jn);l.length>1&&(e[l[0].trim()]=l[1].trim())}}),e}function Wt(t){let e="";if(Y(t))e=t;else if(D(t))for(let s=0;sqe(s,e))}const ki=t=>!!(t&&t.__v_isRef===!0),gt=t=>Y(t)?t:t==null?"":D(t)||B(t)&&(t.toString===xi||!C(t.toString))?ki(t)?gt(t.value):JSON.stringify(t,wi,2):String(t),wi=(t,e)=>ki(e)?wi(t,e.value):ce(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((s,[l,i],n)=>(s[js(l,n)+" =>"]=i,s),{})}:ve(e)?{[`Set(${e.size})`]:[...e.values()].map(s=>js(s))}:zt(e)?js(e):B(e)&&!D(e)&&!hi(e)?String(e):e,js=(t,e="")=>{var s;return zt(t)?`Symbol(${(s=t.description)!=null?s:e})`:t};/** +**//*! #__NO_SIDE_EFFECTS__ */function Xs(t){const e=Object.create(null);for(const s of t.split(","))e[s]=1;return s=>s in e}const U={},he=[],It=()=>{},yn=()=>!1,cs=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),tl=t=>t.startsWith("onUpdate:"),rt=Object.assign,el=(t,e)=>{const s=t.indexOf(e);s>-1&&t.splice(s,1)},Tn=Object.prototype.hasOwnProperty,L=(t,e)=>Tn.call(t,e),D=Array.isArray,ce=t=>Ue(t)==="[object Map]",ve=t=>Ue(t)==="[object Set]",Tl=t=>Ue(t)==="[object Date]",C=t=>typeof t=="function",Y=t=>typeof t=="string",Pt=t=>typeof t=="symbol",B=t=>t!==null&&typeof t=="object",fi=t=>(B(t)||C(t))&&C(t.then)&&C(t.catch),xi=Object.prototype.toString,Ue=t=>xi.call(t),Dn=t=>Ue(t).slice(8,-1),hi=t=>Ue(t)==="[object Object]",sl=t=>Y(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Oe=Xs(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ps=t=>{const e=Object.create(null);return s=>e[s]||(e[s]=t(s))},Sn=/-(\w)/g,Nt=ps(t=>t.replace(Sn,(e,s)=>s?s.toUpperCase():"")),Nn=/\B([A-Z])/g,_e=ps(t=>t.replace(Nn,"-$1").toLowerCase()),bs=ps(t=>t.charAt(0).toUpperCase()+t.slice(1)),Gs=ps(t=>t?`on${bs(t)}`:""),ue=(t,e)=>!Object.is(t,e),ns=(t,...e)=>{for(let s=0;s{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:l,value:s})},ms=t=>{const e=parseFloat(t);return isNaN(e)?t:e};let Dl;const pi=()=>Dl||(Dl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ll(t){if(D(t)){const e={};for(let s=0;s{if(s){const l=s.split(jn);l.length>1&&(e[l[0].trim()]=l[1].trim())}}),e}function yt(t){let e="";if(Y(t))e=t;else if(D(t))for(let s=0;sqe(s,e))}const ki=t=>!!(t&&t.__v_isRef===!0),At=t=>Y(t)?t:t==null?"":D(t)||B(t)&&(t.toString===xi||!C(t.toString))?ki(t)?At(t.value):JSON.stringify(t,wi,2):String(t),wi=(t,e)=>ki(e)?wi(t,e.value):ce(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((s,[l,i],n)=>(s[js(l,n)+" =>"]=i,s),{})}:ve(e)?{[`Set(${e.size})`]:[...e.values()].map(s=>js(s))}:Pt(e)?js(e):B(e)&&!D(e)&&!hi(e)?String(e):e,js=(t,e="")=>{var s;return Pt(t)?`Symbol(${(s=t.description)!=null?s:e})`:t};/** * @vue/reactivity v3.5.5 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let bt;class Pn{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=bt,!e&&bt&&(this.index=(bt.scopes||(bt.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,s;if(this.scopes)for(e=0,s=this.scopes.length;e0)return;let t;for(;Ce;){let e=Ce;for(Ce=void 0;e;){const s=e.nextEffect;if(e.nextEffect=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(l){t||(t=l)}e=s}}if(t)throw t}function vi(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function yi(t){let e,s=t.depsTail,l=s;for(;l;){const i=l.prevDep;l.version===-1?(l===s&&(s=i),ol(l),Ln(l)):e=l,l.dep.activeLink=l.prevActiveLink,l.prevActiveLink=void 0,l=i}t.deps=e,t.depsTail=s}function Hs(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&Ti(e.dep.computed)||e.dep.version!==e.version)return!0;return!!t._dirty}function Ti(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===Pe))return;t.globalVersion=Pe;const e=t.dep;if(t.flags|=2,e.version>0&&!t.isSSR&&!Hs(t)){t.flags&=-3;return}const s=M,l=Tt;M=t,Tt=!0;try{vi(t);const i=t.fn(t._value);(e.version===0||ue(i,t._value))&&(t._value=i,e.version++)}catch(i){throw e.version++,i}finally{M=s,Tt=l,yi(t),t.flags&=-3}}function ol(t){const{dep:e,prevSub:s,nextSub:l}=t;if(s&&(s.nextSub=l,t.prevSub=void 0),l&&(l.prevSub=s,t.nextSub=void 0),e.subs===t&&(e.subs=s),!e.subs&&e.computed){e.computed.flags&=-5;for(let i=e.computed.deps;i;i=i.nextDep)ol(i)}}function Ln(t){const{prevDep:e,nextDep:s}=t;e&&(e.nextDep=s,t.prevDep=void 0),s&&(s.prevDep=e,t.nextDep=void 0)}let Tt=!0;const Di=[];function Xt(){Di.push(Tt),Tt=!1}function te(){const t=Di.pop();Tt=t===void 0?!0:t}function Sl(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const s=M;M=void 0;try{e()}finally{M=s}}}let Pe=0;class Fn{constructor(e,s){this.sub=e,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Si{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0}track(e){if(!M||!Tt||M===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==M)s=this.activeLink=new Fn(M,this),M.deps?(s.prevDep=M.depsTail,M.depsTail.nextDep=s,M.depsTail=s):M.deps=M.depsTail=s,M.flags&4&&Ni(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const l=s.nextDep;l.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=l),s.prevDep=M.depsTail,s.nextDep=void 0,M.depsTail.nextDep=s,M.depsTail=s,M.deps===s&&(M.deps=l)}return s}trigger(e){this.version++,Pe++,this.notify(e)}notify(e){nl();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()}finally{rl()}}}function Ni(t){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let l=e.deps;l;l=l.nextDep)Ni(l)}const s=t.dep.subs;s!==t&&(t.prevSub=s,s&&(s.nextSub=t)),t.dep.subs=t}const Ms=new WeakMap,oe=Symbol(""),Us=Symbol(""),ze=Symbol("");function ot(t,e,s){if(Tt&&M){let l=Ms.get(t);l||Ms.set(t,l=new Map);let i=l.get(s);i||l.set(s,i=new Si),i.track()}}function Ut(t,e,s,l,i,n){const r=Ms.get(t);if(!r){Pe++;return}const o=a=>{a&&a.trigger()};if(nl(),e==="clear")r.forEach(o);else{const a=D(t),_=a&&sl(s);if(a&&s==="length"){const m=Number(l);r.forEach((f,k)=>{(k==="length"||k===ze||!zt(k)&&k>=m)&&o(f)})}else switch(s!==void 0&&o(r.get(s)),_&&o(r.get(ze)),e){case"add":a?_&&o(r.get("length")):(o(r.get(oe)),ce(t)&&o(r.get(Us)));break;case"delete":a||(o(r.get(oe)),ce(t)&&o(r.get(Us)));break;case"set":ce(t)&&o(r.get(oe));break}}rl()}function ge(t){const e=H(t);return e===t?e:(ot(e,"iterate",ze),Dt(t)?e:e.map(_t))}function ks(t){return ot(t=H(t),"iterate",ze),t}const Hn={__proto__:null,[Symbol.iterator](){return Cs(this,Symbol.iterator,_t)},concat(...t){return ge(this).concat(...t.map(e=>D(e)?ge(e):e))},entries(){return Cs(this,"entries",t=>(t[1]=_t(t[1]),t))},every(t,e){return Ft(this,"every",t,e,void 0,arguments)},filter(t,e){return Ft(this,"filter",t,e,s=>s.map(_t),arguments)},find(t,e){return Ft(this,"find",t,e,_t,arguments)},findIndex(t,e){return Ft(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return Ft(this,"findLast",t,e,_t,arguments)},findLastIndex(t,e){return Ft(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return Ft(this,"forEach",t,e,void 0,arguments)},includes(...t){return Rs(this,"includes",t)},indexOf(...t){return Rs(this,"indexOf",t)},join(t){return ge(this).join(t)},lastIndexOf(...t){return Rs(this,"lastIndexOf",t)},map(t,e){return Ft(this,"map",t,e,void 0,arguments)},pop(){return Ne(this,"pop")},push(...t){return Ne(this,"push",t)},reduce(t,...e){return Nl(this,"reduce",t,e)},reduceRight(t,...e){return Nl(this,"reduceRight",t,e)},shift(){return Ne(this,"shift")},some(t,e){return Ft(this,"some",t,e,void 0,arguments)},splice(...t){return Ne(this,"splice",t)},toReversed(){return ge(this).toReversed()},toSorted(t){return ge(this).toSorted(t)},toSpliced(...t){return ge(this).toSpliced(...t)},unshift(...t){return Ne(this,"unshift",t)},values(){return Cs(this,"values",_t)}};function Cs(t,e,s){const l=ks(t),i=l[e]();return l!==t&&!Dt(t)&&(i._next=i.next,i.next=()=>{const n=i._next();return n.value&&(n.value=s(n.value)),n}),i}const Mn=Array.prototype;function Ft(t,e,s,l,i,n){const r=ks(t),o=r!==t&&!Dt(t),a=r[e];if(a!==Mn[e]){const f=a.apply(t,n);return o?_t(f):f}let _=s;r!==t&&(o?_=function(f,k){return s.call(this,_t(f),k,t)}:s.length>2&&(_=function(f,k){return s.call(this,f,k,t)}));const m=a.call(r,_,l);return o&&i?i(m):m}function Nl(t,e,s,l){const i=ks(t);let n=s;return i!==t&&(Dt(t)?s.length>3&&(n=function(r,o,a){return s.call(this,r,o,a,t)}):n=function(r,o,a){return s.call(this,r,_t(o),a,t)}),i[e](n,...l)}function Rs(t,e,s){const l=H(t);ot(l,"iterate",ze);const i=l[e](...s);return(i===-1||i===!1)&&ml(s[0])?(s[0]=H(s[0]),l[e](...s)):i}function Ne(t,e,s=[]){Xt(),nl();const l=H(t)[e].apply(t,s);return rl(),te(),l}const Un=Xs("__proto__,__v_isRef,__isVue"),Gi=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(zt));function qn(t){zt(t)||(t=String(t));const e=H(this);return ot(e,"has",t),e.hasOwnProperty(t)}class ji{constructor(e=!1,s=!1){this._isReadonly=e,this._isShallow=s}get(e,s,l){const i=this._isReadonly,n=this._isShallow;if(s==="__v_isReactive")return!i;if(s==="__v_isReadonly")return i;if(s==="__v_isShallow")return n;if(s==="__v_raw")return l===(i?n?lr:Wi:n?Ri:Ci).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(l)?e:void 0;const r=D(e);if(!i){let a;if(r&&(a=Hn[s]))return a;if(s==="hasOwnProperty")return qn}const o=Reflect.get(e,s,mt(e)?e:l);return(zt(s)?Gi.has(s):Un(s))||(i||ot(e,"get",s),n)?o:mt(o)?r&&sl(s)?o:o.value:B(o)?i?Ii(o):$e(o):o}}class Oi extends ji{constructor(e=!1){super(!1,e)}set(e,s,l,i){let n=e[s];if(!this._isShallow){const a=we(n);if(!Dt(l)&&!we(l)&&(n=H(n),l=H(l)),!D(e)&&mt(n)&&!mt(l))return a?!1:(n.value=l,!0)}const r=D(e)&&sl(s)?Number(s)t,ws=t=>Reflect.getPrototypeOf(t);function Xe(t,e,s=!1,l=!1){t=t.__v_raw;const i=H(t),n=H(e);s||(ue(e,n)&&ot(i,"get",e),ot(i,"get",n));const{has:r}=ws(i),o=l?al:s?_l:_t;if(r.call(i,e))return o(t.get(e));if(r.call(i,n))return o(t.get(n));t!==i&&t.get(e)}function ts(t,e=!1){const s=this.__v_raw,l=H(s),i=H(t);return e||(ue(t,i)&&ot(l,"has",t),ot(l,"has",i)),t===i?s.has(t):s.has(t)||s.has(i)}function es(t,e=!1){return t=t.__v_raw,!e&&ot(H(t),"iterate",oe),Reflect.get(t,"size",t)}function Gl(t,e=!1){!e&&!Dt(t)&&!we(t)&&(t=H(t));const s=H(this);return ws(s).has.call(s,t)||(s.add(t),Ut(s,"add",t,t)),this}function jl(t,e,s=!1){!s&&!Dt(e)&&!we(e)&&(e=H(e));const l=H(this),{has:i,get:n}=ws(l);let r=i.call(l,t);r||(t=H(t),r=i.call(l,t));const o=n.call(l,t);return l.set(t,e),r?ue(e,o)&&Ut(l,"set",t,e):Ut(l,"add",t,e),this}function Ol(t){const e=H(this),{has:s,get:l}=ws(e);let i=s.call(e,t);i||(t=H(t),i=s.call(e,t)),l&&l.call(e,t);const n=e.delete(t);return i&&Ut(e,"delete",t,void 0),n}function Cl(){const t=H(this),e=t.size!==0,s=t.clear();return e&&Ut(t,"clear",void 0,void 0),s}function ss(t,e){return function(l,i){const n=this,r=n.__v_raw,o=H(r),a=e?al:t?_l:_t;return!t&&ot(o,"iterate",oe),r.forEach((_,m)=>l.call(i,a(_),a(m),n))}}function ls(t,e,s){return function(...l){const i=this.__v_raw,n=H(i),r=ce(n),o=t==="entries"||t===Symbol.iterator&&r,a=t==="keys"&&r,_=i[t](...l),m=s?al:e?_l:_t;return!e&&ot(n,"iterate",a?Us:oe),{next(){const{value:f,done:k}=_.next();return k?{value:f,done:k}:{value:o?[m(f[0]),m(f[1])]:m(f),done:k}},[Symbol.iterator](){return this}}}}function Vt(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function Jn(){const t={get(n){return Xe(this,n)},get size(){return es(this)},has:ts,add:Gl,set:jl,delete:Ol,clear:Cl,forEach:ss(!1,!1)},e={get(n){return Xe(this,n,!1,!0)},get size(){return es(this)},has:ts,add(n){return Gl.call(this,n,!0)},set(n,r){return jl.call(this,n,r,!0)},delete:Ol,clear:Cl,forEach:ss(!1,!0)},s={get(n){return Xe(this,n,!0)},get size(){return es(this,!0)},has(n){return ts.call(this,n,!0)},add:Vt("add"),set:Vt("set"),delete:Vt("delete"),clear:Vt("clear"),forEach:ss(!0,!1)},l={get(n){return Xe(this,n,!0,!0)},get size(){return es(this,!0)},has(n){return ts.call(this,n,!0)},add:Vt("add"),set:Vt("set"),delete:Vt("delete"),clear:Vt("clear"),forEach:ss(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(n=>{t[n]=ls(n,!1,!1),s[n]=ls(n,!0,!1),e[n]=ls(n,!1,!0),l[n]=ls(n,!0,!0)}),[t,s,e,l]}const[Qn,Yn,Zn,Xn]=Jn();function ul(t,e){const s=e?t?Xn:Zn:t?Yn:Qn;return(l,i,n)=>i==="__v_isReactive"?!t:i==="__v_isReadonly"?t:i==="__v_raw"?l:Reflect.get(L(s,i)&&i in l?s:l,i,n)}const tr={get:ul(!1,!1)},er={get:ul(!1,!0)},sr={get:ul(!0,!1)};const Ci=new WeakMap,Ri=new WeakMap,Wi=new WeakMap,lr=new WeakMap;function ir(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function nr(t){return t.__v_skip||!Object.isExtensible(t)?0:ir(Dn(t))}function $e(t){return we(t)?t:dl(t,!1,Bn,tr,Ci)}function rr(t){return dl(t,!1,Vn,er,Ri)}function Ii(t){return dl(t,!0,Kn,sr,Wi)}function dl(t,e,s,l,i){if(!B(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const n=i.get(t);if(n)return n;const r=nr(t);if(r===0)return t;const o=new Proxy(t,r===2?l:s);return i.set(t,o),o}function pe(t){return we(t)?pe(t.__v_raw):!!(t&&t.__v_isReactive)}function we(t){return!!(t&&t.__v_isReadonly)}function Dt(t){return!!(t&&t.__v_isShallow)}function ml(t){return t?!!t.__v_raw:!1}function H(t){const e=t&&t.__v_raw;return e?H(e):t}function or(t){return!L(t,"__v_skip")&&Object.isExtensible(t)&&ci(t,"__v_skip",!0),t}const _t=t=>B(t)?$e(t):t,_l=t=>B(t)?Ii(t):t;function mt(t){return t?t.__v_isRef===!0:!1}function ar(t){return mt(t)?t.value:t}const ur={get:(t,e,s)=>e==="__v_raw"?t:ar(Reflect.get(t,e,s)),set:(t,e,s,l)=>{const i=t[e];return mt(i)&&!mt(s)?(i.value=s,!0):Reflect.set(t,e,s,l)}};function Pi(t){return pe(t)?t:new Proxy(t,ur)}class dr{constructor(e,s,l){this.fn=e,this.setter=s,this._value=void 0,this.dep=new Si(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Pe-1,this.effect=this,this.__v_isReadonly=!s,this.isSSR=l}notify(){this.flags|=16,M!==this&&this.dep.notify()}get value(){const e=this.dep.track();return Ti(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function mr(t,e,s=!1){let l,i;return C(t)?l=t:(l=t.get,i=t.set),new dr(l,i,s)}const is={},_s=new WeakMap;let re;function _r(t,e=!1,s=re){if(s){let l=_s.get(s);l||_s.set(s,l=[]),l.push(t)}}function gr(t,e,s=U){const{immediate:l,deep:i,once:n,scheduler:r,augmentJob:o,call:a}=s,_=N=>i?N:Dt(N)||i===!1||i===0?Mt(N,1):Mt(N);let m,f,k,S,W=!1,O=!1;if(mt(t)?(f=()=>t.value,W=Dt(t)):pe(t)?(f=()=>_(t),W=!0):D(t)?(O=!0,W=t.some(N=>pe(N)||Dt(N)),f=()=>t.map(N=>{if(mt(N))return N.value;if(pe(N))return _(N);if(C(N))return a?a(N,2):N()})):C(t)?e?f=a?()=>a(t,2):t:f=()=>{if(k){Xt();try{k()}finally{te()}}const N=re;re=m;try{return a?a(t,3,[S]):t(S)}finally{re=N}}:f=Pt,e&&i){const N=f,X=i===!0?1/0:i;f=()=>Mt(N(),X)}const Z=zn(),z=()=>{m.stop(),Z&&el(Z.effects,m)};if(n)if(e){const N=e;e=(...X)=>{N(...X),z()}}else{const N=f;f=()=>{N(),z()}}let V=O?new Array(t.length).fill(is):is;const J=N=>{if(!(!(m.flags&1)||!m.dirty&&!N))if(e){const X=m.run();if(i||W||(O?X.some((Bt,Nt)=>ue(Bt,V[Nt])):ue(X,V))){k&&k();const Bt=re;re=m;try{const Nt=[X,V===is?void 0:O&&V[0]===is?[]:V,S];a?a(e,3,Nt):e(...Nt),V=X}finally{re=Bt}}}else m.run()};return o&&o(J),m=new Ai(f),m.scheduler=r?()=>r(J,!1):J,S=N=>_r(N,!1,m),k=m.onStop=()=>{const N=_s.get(m);if(N){if(a)a(N,4);else for(const X of N)X();_s.delete(m)}},e?l?J(!0):V=m.run():r?r(J.bind(null,!0),!0):m.run(),z.pause=m.pause.bind(m),z.resume=m.resume.bind(m),z.stop=z,z}function Mt(t,e=1/0,s){if(e<=0||!B(t)||t.__v_skip||(s=s||new Set,s.has(t)))return t;if(s.add(t),e--,mt(t))Mt(t.value,e,s);else if(D(t))for(let l=0;l{Mt(l,e,s)});else if(hi(t)){for(const l in t)Mt(t[l],e,s);for(const l of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,l)&&Mt(t[l],e,s)}return t}/** +**/let pt;class Pn{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=pt,!e&&pt&&(this.index=(pt.scopes||(pt.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,s;if(this.scopes)for(e=0,s=this.scopes.length;e0)return;let t;for(;Ce;){let e=Ce;for(Ce=void 0;e;){const s=e.nextEffect;if(e.nextEffect=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(l){t||(t=l)}e=s}}if(t)throw t}function vi(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function yi(t){let e,s=t.depsTail,l=s;for(;l;){const i=l.prevDep;l.version===-1?(l===s&&(s=i),ol(l),Ln(l)):e=l,l.dep.activeLink=l.prevActiveLink,l.prevActiveLink=void 0,l=i}t.deps=e,t.depsTail=s}function Hs(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&Ti(e.dep.computed)||e.dep.version!==e.version)return!0;return!!t._dirty}function Ti(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===Pe))return;t.globalVersion=Pe;const e=t.dep;if(t.flags|=2,e.version>0&&!t.isSSR&&!Hs(t)){t.flags&=-3;return}const s=M,l=Dt;M=t,Dt=!0;try{vi(t);const i=t.fn(t._value);(e.version===0||ue(i,t._value))&&(t._value=i,e.version++)}catch(i){throw e.version++,i}finally{M=s,Dt=l,yi(t),t.flags&=-3}}function ol(t){const{dep:e,prevSub:s,nextSub:l}=t;if(s&&(s.nextSub=l,t.prevSub=void 0),l&&(l.prevSub=s,t.nextSub=void 0),e.subs===t&&(e.subs=s),!e.subs&&e.computed){e.computed.flags&=-5;for(let i=e.computed.deps;i;i=i.nextDep)ol(i)}}function Ln(t){const{prevDep:e,nextDep:s}=t;e&&(e.nextDep=s,t.prevDep=void 0),s&&(s.prevDep=e,t.nextDep=void 0)}let Dt=!0;const Di=[];function Xt(){Di.push(Dt),Dt=!1}function te(){const t=Di.pop();Dt=t===void 0?!0:t}function Sl(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const s=M;M=void 0;try{e()}finally{M=s}}}let Pe=0;class Fn{constructor(e,s){this.sub=e,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Si{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0}track(e){if(!M||!Dt||M===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==M)s=this.activeLink=new Fn(M,this),M.deps?(s.prevDep=M.depsTail,M.depsTail.nextDep=s,M.depsTail=s):M.deps=M.depsTail=s,M.flags&4&&Ni(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const l=s.nextDep;l.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=l),s.prevDep=M.depsTail,s.nextDep=void 0,M.depsTail.nextDep=s,M.depsTail=s,M.deps===s&&(M.deps=l)}return s}trigger(e){this.version++,Pe++,this.notify(e)}notify(e){nl();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()}finally{rl()}}}function Ni(t){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let l=e.deps;l;l=l.nextDep)Ni(l)}const s=t.dep.subs;s!==t&&(t.prevSub=s,s&&(s.nextSub=t)),t.dep.subs=t}const Ms=new WeakMap,oe=Symbol(""),Us=Symbol(""),ze=Symbol("");function ot(t,e,s){if(Dt&&M){let l=Ms.get(t);l||Ms.set(t,l=new Map);let i=l.get(s);i||l.set(s,i=new Si),i.track()}}function Mt(t,e,s,l,i,n){const r=Ms.get(t);if(!r){Pe++;return}const o=a=>{a&&a.trigger()};if(nl(),e==="clear")r.forEach(o);else{const a=D(t),_=a&&sl(s);if(a&&s==="length"){const m=Number(l);r.forEach((f,k)=>{(k==="length"||k===ze||!Pt(k)&&k>=m)&&o(f)})}else switch(s!==void 0&&o(r.get(s)),_&&o(r.get(ze)),e){case"add":a?_&&o(r.get("length")):(o(r.get(oe)),ce(t)&&o(r.get(Us)));break;case"delete":a||(o(r.get(oe)),ce(t)&&o(r.get(Us)));break;case"set":ce(t)&&o(r.get(oe));break}}rl()}function ge(t){const e=H(t);return e===t?e:(ot(e,"iterate",ze),St(t)?e:e.map(_t))}function ks(t){return ot(t=H(t),"iterate",ze),t}const Hn={__proto__:null,[Symbol.iterator](){return Cs(this,Symbol.iterator,_t)},concat(...t){return ge(this).concat(...t.map(e=>D(e)?ge(e):e))},entries(){return Cs(this,"entries",t=>(t[1]=_t(t[1]),t))},every(t,e){return Lt(this,"every",t,e,void 0,arguments)},filter(t,e){return Lt(this,"filter",t,e,s=>s.map(_t),arguments)},find(t,e){return Lt(this,"find",t,e,_t,arguments)},findIndex(t,e){return Lt(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return Lt(this,"findLast",t,e,_t,arguments)},findLastIndex(t,e){return Lt(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return Lt(this,"forEach",t,e,void 0,arguments)},includes(...t){return Rs(this,"includes",t)},indexOf(...t){return Rs(this,"indexOf",t)},join(t){return ge(this).join(t)},lastIndexOf(...t){return Rs(this,"lastIndexOf",t)},map(t,e){return Lt(this,"map",t,e,void 0,arguments)},pop(){return Ne(this,"pop")},push(...t){return Ne(this,"push",t)},reduce(t,...e){return Nl(this,"reduce",t,e)},reduceRight(t,...e){return Nl(this,"reduceRight",t,e)},shift(){return Ne(this,"shift")},some(t,e){return Lt(this,"some",t,e,void 0,arguments)},splice(...t){return Ne(this,"splice",t)},toReversed(){return ge(this).toReversed()},toSorted(t){return ge(this).toSorted(t)},toSpliced(...t){return ge(this).toSpliced(...t)},unshift(...t){return Ne(this,"unshift",t)},values(){return Cs(this,"values",_t)}};function Cs(t,e,s){const l=ks(t),i=l[e]();return l!==t&&!St(t)&&(i._next=i.next,i.next=()=>{const n=i._next();return n.value&&(n.value=s(n.value)),n}),i}const Mn=Array.prototype;function Lt(t,e,s,l,i,n){const r=ks(t),o=r!==t&&!St(t),a=r[e];if(a!==Mn[e]){const f=a.apply(t,n);return o?_t(f):f}let _=s;r!==t&&(o?_=function(f,k){return s.call(this,_t(f),k,t)}:s.length>2&&(_=function(f,k){return s.call(this,f,k,t)}));const m=a.call(r,_,l);return o&&i?i(m):m}function Nl(t,e,s,l){const i=ks(t);let n=s;return i!==t&&(St(t)?s.length>3&&(n=function(r,o,a){return s.call(this,r,o,a,t)}):n=function(r,o,a){return s.call(this,r,_t(o),a,t)}),i[e](n,...l)}function Rs(t,e,s){const l=H(t);ot(l,"iterate",ze);const i=l[e](...s);return(i===-1||i===!1)&&ml(s[0])?(s[0]=H(s[0]),l[e](...s)):i}function Ne(t,e,s=[]){Xt(),nl();const l=H(t)[e].apply(t,s);return rl(),te(),l}const Un=Xs("__proto__,__v_isRef,__isVue"),Gi=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Pt));function qn(t){Pt(t)||(t=String(t));const e=H(this);return ot(e,"has",t),e.hasOwnProperty(t)}class ji{constructor(e=!1,s=!1){this._isReadonly=e,this._isShallow=s}get(e,s,l){const i=this._isReadonly,n=this._isShallow;if(s==="__v_isReactive")return!i;if(s==="__v_isReadonly")return i;if(s==="__v_isShallow")return n;if(s==="__v_raw")return l===(i?n?lr:Wi:n?Ri:Ci).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(l)?e:void 0;const r=D(e);if(!i){let a;if(r&&(a=Hn[s]))return a;if(s==="hasOwnProperty")return qn}const o=Reflect.get(e,s,mt(e)?e:l);return(Pt(s)?Gi.has(s):Un(s))||(i||ot(e,"get",s),n)?o:mt(o)?r&&sl(s)?o:o.value:B(o)?i?Ii(o):$e(o):o}}class Oi extends ji{constructor(e=!1){super(!1,e)}set(e,s,l,i){let n=e[s];if(!this._isShallow){const a=we(n);if(!St(l)&&!we(l)&&(n=H(n),l=H(l)),!D(e)&&mt(n)&&!mt(l))return a?!1:(n.value=l,!0)}const r=D(e)&&sl(s)?Number(s)t,ws=t=>Reflect.getPrototypeOf(t);function Xe(t,e,s=!1,l=!1){t=t.__v_raw;const i=H(t),n=H(e);s||(ue(e,n)&&ot(i,"get",e),ot(i,"get",n));const{has:r}=ws(i),o=l?al:s?_l:_t;if(r.call(i,e))return o(t.get(e));if(r.call(i,n))return o(t.get(n));t!==i&&t.get(e)}function ts(t,e=!1){const s=this.__v_raw,l=H(s),i=H(t);return e||(ue(t,i)&&ot(l,"has",t),ot(l,"has",i)),t===i?s.has(t):s.has(t)||s.has(i)}function es(t,e=!1){return t=t.__v_raw,!e&&ot(H(t),"iterate",oe),Reflect.get(t,"size",t)}function Gl(t,e=!1){!e&&!St(t)&&!we(t)&&(t=H(t));const s=H(this);return ws(s).has.call(s,t)||(s.add(t),Mt(s,"add",t,t)),this}function jl(t,e,s=!1){!s&&!St(e)&&!we(e)&&(e=H(e));const l=H(this),{has:i,get:n}=ws(l);let r=i.call(l,t);r||(t=H(t),r=i.call(l,t));const o=n.call(l,t);return l.set(t,e),r?ue(e,o)&&Mt(l,"set",t,e):Mt(l,"add",t,e),this}function Ol(t){const e=H(this),{has:s,get:l}=ws(e);let i=s.call(e,t);i||(t=H(t),i=s.call(e,t)),l&&l.call(e,t);const n=e.delete(t);return i&&Mt(e,"delete",t,void 0),n}function Cl(){const t=H(this),e=t.size!==0,s=t.clear();return e&&Mt(t,"clear",void 0,void 0),s}function ss(t,e){return function(l,i){const n=this,r=n.__v_raw,o=H(r),a=e?al:t?_l:_t;return!t&&ot(o,"iterate",oe),r.forEach((_,m)=>l.call(i,a(_),a(m),n))}}function ls(t,e,s){return function(...l){const i=this.__v_raw,n=H(i),r=ce(n),o=t==="entries"||t===Symbol.iterator&&r,a=t==="keys"&&r,_=i[t](...l),m=s?al:e?_l:_t;return!e&&ot(n,"iterate",a?Us:oe),{next(){const{value:f,done:k}=_.next();return k?{value:f,done:k}:{value:o?[m(f[0]),m(f[1])]:m(f),done:k}},[Symbol.iterator](){return this}}}}function Vt(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function Jn(){const t={get(n){return Xe(this,n)},get size(){return es(this)},has:ts,add:Gl,set:jl,delete:Ol,clear:Cl,forEach:ss(!1,!1)},e={get(n){return Xe(this,n,!1,!0)},get size(){return es(this)},has:ts,add(n){return Gl.call(this,n,!0)},set(n,r){return jl.call(this,n,r,!0)},delete:Ol,clear:Cl,forEach:ss(!1,!0)},s={get(n){return Xe(this,n,!0)},get size(){return es(this,!0)},has(n){return ts.call(this,n,!0)},add:Vt("add"),set:Vt("set"),delete:Vt("delete"),clear:Vt("clear"),forEach:ss(!0,!1)},l={get(n){return Xe(this,n,!0,!0)},get size(){return es(this,!0)},has(n){return ts.call(this,n,!0)},add:Vt("add"),set:Vt("set"),delete:Vt("delete"),clear:Vt("clear"),forEach:ss(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(n=>{t[n]=ls(n,!1,!1),s[n]=ls(n,!0,!1),e[n]=ls(n,!1,!0),l[n]=ls(n,!0,!0)}),[t,s,e,l]}const[Qn,Yn,Zn,Xn]=Jn();function ul(t,e){const s=e?t?Xn:Zn:t?Yn:Qn;return(l,i,n)=>i==="__v_isReactive"?!t:i==="__v_isReadonly"?t:i==="__v_raw"?l:Reflect.get(L(s,i)&&i in l?s:l,i,n)}const tr={get:ul(!1,!1)},er={get:ul(!1,!0)},sr={get:ul(!0,!1)};const Ci=new WeakMap,Ri=new WeakMap,Wi=new WeakMap,lr=new WeakMap;function ir(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function nr(t){return t.__v_skip||!Object.isExtensible(t)?0:ir(Dn(t))}function $e(t){return we(t)?t:dl(t,!1,Bn,tr,Ci)}function rr(t){return dl(t,!1,Vn,er,Ri)}function Ii(t){return dl(t,!0,Kn,sr,Wi)}function dl(t,e,s,l,i){if(!B(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const n=i.get(t);if(n)return n;const r=nr(t);if(r===0)return t;const o=new Proxy(t,r===2?l:s);return i.set(t,o),o}function pe(t){return we(t)?pe(t.__v_raw):!!(t&&t.__v_isReactive)}function we(t){return!!(t&&t.__v_isReadonly)}function St(t){return!!(t&&t.__v_isShallow)}function ml(t){return t?!!t.__v_raw:!1}function H(t){const e=t&&t.__v_raw;return e?H(e):t}function or(t){return!L(t,"__v_skip")&&Object.isExtensible(t)&&ci(t,"__v_skip",!0),t}const _t=t=>B(t)?$e(t):t,_l=t=>B(t)?Ii(t):t;function mt(t){return t?t.__v_isRef===!0:!1}function ar(t){return mt(t)?t.value:t}const ur={get:(t,e,s)=>e==="__v_raw"?t:ar(Reflect.get(t,e,s)),set:(t,e,s,l)=>{const i=t[e];return mt(i)&&!mt(s)?(i.value=s,!0):Reflect.set(t,e,s,l)}};function Pi(t){return pe(t)?t:new Proxy(t,ur)}class dr{constructor(e,s,l){this.fn=e,this.setter=s,this._value=void 0,this.dep=new Si(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Pe-1,this.effect=this,this.__v_isReadonly=!s,this.isSSR=l}notify(){this.flags|=16,M!==this&&this.dep.notify()}get value(){const e=this.dep.track();return Ti(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function mr(t,e,s=!1){let l,i;return C(t)?l=t:(l=t.get,i=t.set),new dr(l,i,s)}const is={},_s=new WeakMap;let re;function _r(t,e=!1,s=re){if(s){let l=_s.get(s);l||_s.set(s,l=[]),l.push(t)}}function gr(t,e,s=U){const{immediate:l,deep:i,once:n,scheduler:r,augmentJob:o,call:a}=s,_=N=>i?N:St(N)||i===!1||i===0?Ht(N,1):Ht(N);let m,f,k,S,W=!1,O=!1;if(mt(t)?(f=()=>t.value,W=St(t)):pe(t)?(f=()=>_(t),W=!0):D(t)?(O=!0,W=t.some(N=>pe(N)||St(N)),f=()=>t.map(N=>{if(mt(N))return N.value;if(pe(N))return _(N);if(C(N))return a?a(N,2):N()})):C(t)?e?f=a?()=>a(t,2):t:f=()=>{if(k){Xt();try{k()}finally{te()}}const N=re;re=m;try{return a?a(t,3,[S]):t(S)}finally{re=N}}:f=It,e&&i){const N=f,X=i===!0?1/0:i;f=()=>Ht(N(),X)}const Z=zn(),P=()=>{m.stop(),Z&&el(Z.effects,m)};if(n)if(e){const N=e;e=(...X)=>{N(...X),P()}}else{const N=f;f=()=>{N(),P()}}let V=O?new Array(t.length).fill(is):is;const J=N=>{if(!(!(m.flags&1)||!m.dirty&&!N))if(e){const X=m.run();if(i||W||(O?X.some((Bt,Gt)=>ue(Bt,V[Gt])):ue(X,V))){k&&k();const Bt=re;re=m;try{const Gt=[X,V===is?void 0:O&&V[0]===is?[]:V,S];a?a(e,3,Gt):e(...Gt),V=X}finally{re=Bt}}}else m.run()};return o&&o(J),m=new Ai(f),m.scheduler=r?()=>r(J,!1):J,S=N=>_r(N,!1,m),k=m.onStop=()=>{const N=_s.get(m);if(N){if(a)a(N,4);else for(const X of N)X();_s.delete(m)}},e?l?J(!0):V=m.run():r?r(J.bind(null,!0),!0):m.run(),P.pause=m.pause.bind(m),P.resume=m.resume.bind(m),P.stop=P,P}function Ht(t,e=1/0,s){if(e<=0||!B(t)||t.__v_skip||(s=s||new Set,s.has(t)))return t;if(s.add(t),e--,mt(t))Ht(t.value,e,s);else if(D(t))for(let l=0;l{Ht(l,e,s)});else if(hi(t)){for(const l in t)Ht(t[l],e,s);for(const l of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,l)&&Ht(t[l],e,s)}return t}/** * @vue/runtime-core v3.5.5 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/function Be(t,e,s,l){try{return l?t(...l):t()}catch(i){As(i,e,s)}}function Lt(t,e,s,l){if(C(t)){const i=Be(t,e,s,l);return i&&fi(i)&&i.catch(n=>{As(n,e,s)}),i}if(D(t)){const i=[];for(let n=0;n>>1,i=dt[l],n=Fe(i);n=Fe(s)?dt.push(t):dt.splice(xr(e),0,t),t.flags|=1,Fi()}}function Fi(){!Le&&!qs&&(qs=!0,gl=zi.then(Mi))}function hr(t){D(t)?be.push(...t):Qt&&t.id===-1?Qt.splice(fe+1,0,t):t.flags&1||(be.push(t),t.flags|=1),Fi()}function Rl(t,e,s=Le?Ct+1:0){for(;sFe(s)-Fe(l));if(be.length=0,Qt){Qt.push(...e);return}for(Qt=e,fe=0;fet.id==null?t.flags&2?-1:1/0:t.id;function Mi(t){qs=!1,Le=!0;try{for(Ct=0;Ct{l._d&&Ul(-1);const n=gs(e);let r;try{r=t(...i)}finally{gs(n),l._d&&Ul(1)}return r};return l._n=!0,l._c=!0,l._d=!0,l}function yt(t,e){if(wt===null)return t;const s=Ds(wt),l=t.dirs||(t.dirs=[]);for(let i=0;it.__isTeleport;function xl(t,e){t.shapeFlag&6&&t.component?(t.transition=e,xl(t.component.subTree,e)):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function qi(t){t.ids=[t.ids[0]+t.ids[2]+++"-",0,0]}function $s(t,e,s,l,i=!1){if(D(t)){t.forEach((W,O)=>$s(W,e&&(D(e)?e[O]:e),s,l,i));return}if(Re(l)&&!i)return;const n=l.shapeFlag&4?Ds(l.component):l.el,r=i?null:n,{i:o,r:a}=t,_=e&&e.r,m=o.refs===U?o.refs={}:o.refs,f=o.setupState,k=H(f),S=f===U?()=>!1:W=>L(k,W);if(_!=null&&_!==a&&(Y(_)?(m[_]=null,S(_)&&(f[_]=null)):mt(_)&&(_.value=null)),C(a))Be(a,o,12,[r,m]);else{const W=Y(a),O=mt(a);if(W||O){const Z=()=>{if(t.f){const z=W?S(a)?f[a]:m[a]:a.value;i?D(z)&&el(z,n):D(z)?z.includes(n)||z.push(n):W?(m[a]=[n],S(a)&&(f[a]=m[a])):(a.value=[n],t.k&&(m[t.k]=a.value))}else W?(m[a]=r,S(a)&&(f[a]=r)):O&&(a.value=r,t.k&&(m[t.k]=r))};r?(Z.id=-1,pt(Z,s)):Z()}}}const Re=t=>!!t.type.__asyncLoader,$i=t=>t.type.__isKeepAlive;function kr(t,e){Bi(t,"a",e)}function wr(t,e){Bi(t,"da",e)}function Bi(t,e,s=it){const l=t.__wdc||(t.__wdc=()=>{let i=s;for(;i;){if(i.isDeactivated)return;i=i.parent}return t()});if(Es(e,l,s),s){let i=s.parent;for(;i&&i.parent;)$i(i.parent.vnode)&&Ar(l,e,s,i),i=i.parent}}function Ar(t,e,s,l){const i=Es(e,t,l,!0);Ki(()=>{el(l[e],i)},s)}function Es(t,e,s=it,l=!1){if(s){const i=s[t]||(s[t]=[]),n=e.__weh||(e.__weh=(...r)=>{Xt();const o=Ke(s),a=Lt(e,s,t,r);return o(),te(),a});return l?i.unshift(n):i.push(n),n}}const $t=t=>(e,s=it)=>{(!Ts||t==="sp")&&Es(t,(...l)=>e(...l),s)},Er=$t("bm"),vr=$t("m"),yr=$t("bu"),Tr=$t("u"),Dr=$t("bum"),Ki=$t("um"),Sr=$t("sp"),Nr=$t("rtg"),Gr=$t("rtc");function jr(t,e=it){Es("ec",t,e)}const Vi="components";function kt(t,e){return Cr(Vi,t,!0,e)||t}const Or=Symbol.for("v-ndc");function Cr(t,e,s=!0,l=!1){const i=wt||it;if(i){const n=i.type;if(t===Vi){const o=Eo(n,!1);if(o&&(o===e||o===St(e)||o===bs(St(e))))return n}const r=Wl(i[t]||n[t],e)||Wl(i.appContext[t],e);return!r&&l?n:r}}function Wl(t,e){return t&&(t[e]||t[St(e)]||t[bs(St(e))])}function ae(t,e,s,l){let i;const n=s,r=D(t);if(r||Y(t)){const o=r&&pe(t);let a=!1;o&&(a=!Dt(t),t=ks(t)),i=new Array(t.length);for(let _=0,m=t.length;_e(o,a,void 0,n));else{const o=Object.keys(t);i=new Array(o.length);for(let a=0,_=o.length;a<_;a++){const m=o[a];i[a]=e(t[m],m,a,n)}}else i=[];return i}const Bs=t=>t?xn(t)?Ds(t):Bs(t.parent):null,We=rt(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>Bs(t.parent),$root:t=>Bs(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>hl(t),$forceUpdate:t=>t.f||(t.f=()=>{fl(t.update)}),$nextTick:t=>t.n||(t.n=Li.bind(t.proxy)),$watch:t=>eo.bind(t)}),Ws=(t,e)=>t!==U&&!t.__isScriptSetup&&L(t,e),Rr={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:s,setupState:l,data:i,props:n,accessCache:r,type:o,appContext:a}=t;let _;if(e[0]!=="$"){const S=r[e];if(S!==void 0)switch(S){case 1:return l[e];case 2:return i[e];case 4:return s[e];case 3:return n[e]}else{if(Ws(l,e))return r[e]=1,l[e];if(i!==U&&L(i,e))return r[e]=2,i[e];if((_=t.propsOptions[0])&&L(_,e))return r[e]=3,n[e];if(s!==U&&L(s,e))return r[e]=4,s[e];Ks&&(r[e]=0)}}const m=We[e];let f,k;if(m)return e==="$attrs"&&ot(t.attrs,"get",""),m(t);if((f=o.__cssModules)&&(f=f[e]))return f;if(s!==U&&L(s,e))return r[e]=4,s[e];if(k=a.config.globalProperties,L(k,e))return k[e]},set({_:t},e,s){const{data:l,setupState:i,ctx:n}=t;return Ws(i,e)?(i[e]=s,!0):l!==U&&L(l,e)?(l[e]=s,!0):L(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(n[e]=s,!0)},has({_:{data:t,setupState:e,accessCache:s,ctx:l,appContext:i,propsOptions:n}},r){let o;return!!s[r]||t!==U&&L(t,r)||Ws(e,r)||(o=n[0])&&L(o,r)||L(l,r)||L(We,r)||L(i.config.globalProperties,r)},defineProperty(t,e,s){return s.get!=null?t._.accessCache[e]=0:L(s,"value")&&this.set(t,e,s.value,null),Reflect.defineProperty(t,e,s)}};function Il(t){return D(t)?t.reduce((e,s)=>(e[s]=null,e),{}):t}let Ks=!0;function Wr(t){const e=hl(t),s=t.proxy,l=t.ctx;Ks=!1,e.beforeCreate&&Pl(e.beforeCreate,t,"bc");const{data:i,computed:n,methods:r,watch:o,provide:a,inject:_,created:m,beforeMount:f,mounted:k,beforeUpdate:S,updated:W,activated:O,deactivated:Z,beforeDestroy:z,beforeUnmount:V,destroyed:J,unmounted:N,render:X,renderTracked:Bt,renderTriggered:Nt,errorCaptured:Kt,serverPrefetch:Ve,expose:ee,inheritAttrs:ye,components:Je,directives:Qe,filters:Ss}=e;if(_&&Ir(_,l,null),r)for(const K in r){const q=r[K];C(q)&&(l[K]=q.bind(s))}if(i){const K=i.call(s,s);B(K)&&(t.data=$e(K))}if(Ks=!0,n)for(const K in n){const q=n[K],se=C(q)?q.bind(s,s):C(q.get)?q.get.bind(s,s):Pt,Ye=!C(q)&&C(q.set)?q.set.bind(s):Pt,le=yo({get:se,set:Ye});Object.defineProperty(l,K,{enumerable:!0,configurable:!0,get:()=>le.value,set:Gt=>le.value=Gt})}if(o)for(const K in o)Ji(o[K],l,s,K);if(a){const K=C(a)?a.call(s):a;Reflect.ownKeys(K).forEach(q=>{Mr(q,K[q])})}m&&Pl(m,t,"c");function at(K,q){D(q)?q.forEach(se=>K(se.bind(s))):q&&K(q.bind(s))}if(at(Er,f),at(vr,k),at(yr,S),at(Tr,W),at(kr,O),at(wr,Z),at(jr,Kt),at(Gr,Bt),at(Nr,Nt),at(Dr,V),at(Ki,N),at(Sr,Ve),D(ee))if(ee.length){const K=t.exposed||(t.exposed={});ee.forEach(q=>{Object.defineProperty(K,q,{get:()=>s[q],set:se=>s[q]=se})})}else t.exposed||(t.exposed={});X&&t.render===Pt&&(t.render=X),ye!=null&&(t.inheritAttrs=ye),Je&&(t.components=Je),Qe&&(t.directives=Qe),Ve&&qi(t)}function Ir(t,e,s=Pt){D(t)&&(t=Vs(t));for(const l in t){const i=t[l];let n;B(i)?"default"in i?n=rs(i.from||l,i.default,!0):n=rs(i.from||l):n=rs(i),mt(n)?Object.defineProperty(e,l,{enumerable:!0,configurable:!0,get:()=>n.value,set:r=>n.value=r}):e[l]=n}}function Pl(t,e,s){Lt(D(t)?t.map(l=>l.bind(e.proxy)):t.bind(e.proxy),e,s)}function Ji(t,e,s,l){let i=l.includes(".")?dn(s,l):()=>s[l];if(Y(t)){const n=e[t];C(n)&&os(i,n)}else if(C(t))os(i,t.bind(s));else if(B(t))if(D(t))t.forEach(n=>Ji(n,e,s,l));else{const n=C(t.handler)?t.handler.bind(s):e[t.handler];C(n)&&os(i,n,t)}}function hl(t){const e=t.type,{mixins:s,extends:l}=e,{mixins:i,optionsCache:n,config:{optionMergeStrategies:r}}=t.appContext,o=n.get(e);let a;return o?a=o:!i.length&&!s&&!l?a=e:(a={},i.length&&i.forEach(_=>fs(a,_,r,!0)),fs(a,e,r)),B(e)&&n.set(e,a),a}function fs(t,e,s,l=!1){const{mixins:i,extends:n}=e;n&&fs(t,n,s,!0),i&&i.forEach(r=>fs(t,r,s,!0));for(const r in e)if(!(l&&r==="expose")){const o=Pr[r]||s&&s[r];t[r]=o?o(t[r],e[r]):e[r]}return t}const Pr={data:zl,props:Ll,emits:Ll,methods:je,computed:je,beforeCreate:ut,created:ut,beforeMount:ut,mounted:ut,beforeUpdate:ut,updated:ut,beforeDestroy:ut,beforeUnmount:ut,destroyed:ut,unmounted:ut,activated:ut,deactivated:ut,errorCaptured:ut,serverPrefetch:ut,components:je,directives:je,watch:Lr,provide:zl,inject:zr};function zl(t,e){return e?t?function(){return rt(C(t)?t.call(this,this):t,C(e)?e.call(this,this):e)}:e:t}function zr(t,e){return je(Vs(t),Vs(e))}function Vs(t){if(D(t)){const e={};for(let s=0;s1)return s&&C(e)?e.call(l&&l.proxy):e}}const Yi={},Zi=()=>Object.create(Yi),Xi=t=>Object.getPrototypeOf(t)===Yi;function Ur(t,e,s,l=!1){const i={},n=Zi();t.propsDefaults=Object.create(null),tn(t,e,i,n);for(const r in t.propsOptions[0])r in i||(i[r]=void 0);s?t.props=l?i:rr(i):t.type.props?t.props=i:t.props=n,t.attrs=n}function qr(t,e,s,l){const{props:i,attrs:n,vnode:{patchFlag:r}}=t,o=H(i),[a]=t.propsOptions;let _=!1;if((l||r>0)&&!(r&16)){if(r&8){const m=t.vnode.dynamicProps;for(let f=0;f{a=!0;const[k,S]=en(f,e,!0);rt(r,k),S&&o.push(...S)};!s&&e.mixins.length&&e.mixins.forEach(m),t.extends&&m(t.extends),t.mixins&&t.mixins.forEach(m)}if(!n&&!a)return B(t)&&l.set(t,he),he;if(D(n))for(let m=0;mt[0]==="_"||t==="$stable",cl=t=>D(t)?t.map(Rt):[Rt(t)],Br=(t,e,s)=>{if(e._n)return e;const l=cr((...i)=>cl(e(...i)),s);return l._c=!1,l},ln=(t,e,s)=>{const l=t._ctx;for(const i in t){if(sn(i))continue;const n=t[i];if(C(n))e[i]=Br(i,n,l);else if(n!=null){const r=cl(n);e[i]=()=>r}}},nn=(t,e)=>{const s=cl(e);t.slots.default=()=>s},rn=(t,e,s)=>{for(const l in e)(s||l!=="_")&&(t[l]=e[l])},Kr=(t,e,s)=>{const l=t.slots=Zi();if(t.vnode.shapeFlag&32){const i=e._;i?(rn(l,e,s),s&&ci(l,"_",i,!0)):ln(e,l)}else e&&nn(t,e)},Vr=(t,e,s)=>{const{vnode:l,slots:i}=t;let n=!0,r=U;if(l.shapeFlag&32){const o=e._;o?s&&o===1?n=!1:rn(i,e,s):(n=!e.$stable,ln(e,i)),r=e}else e&&(nn(t,e),r={default:1});if(n)for(const o in i)!sn(o)&&r[o]==null&&delete i[o]},pt=ao;function Jr(t){return Qr(t)}function Qr(t,e){const s=pi();s.__VUE__=!0;const{insert:l,remove:i,patchProp:n,createElement:r,createText:o,createComment:a,setText:_,setElementText:m,parentNode:f,nextSibling:k,setScopeId:S=Pt,insertStaticContent:W}=t,O=(u,d,g,p=null,x=null,c=null,E=void 0,A=null,w=!!d.dynamicChildren)=>{if(u===d)return;u&&!Ge(u,d)&&(p=Ze(u),Gt(u,x,c,!0),u=null),d.patchFlag===-2&&(w=!1,d.dynamicChildren=null);const{type:b,ref:T,shapeFlag:v}=d;switch(b){case ys:Z(u,d,g,p);break;case de:z(u,d,g,p);break;case as:u==null&&V(d,g,p,E);break;case Q:Je(u,d,g,p,x,c,E,A,w);break;default:v&1?X(u,d,g,p,x,c,E,A,w):v&6?Qe(u,d,g,p,x,c,E,A,w):(v&64||v&128)&&b.process(u,d,g,p,x,c,E,A,w,De)}T!=null&&x&&$s(T,u&&u.ref,c,d||u,!d)},Z=(u,d,g,p)=>{if(u==null)l(d.el=o(d.children),g,p);else{const x=d.el=u.el;d.children!==u.children&&_(x,d.children)}},z=(u,d,g,p)=>{u==null?l(d.el=a(d.children||""),g,p):d.el=u.el},V=(u,d,g,p)=>{[u.el,u.anchor]=W(u.children,d,g,p,u.el,u.anchor)},J=({el:u,anchor:d},g,p)=>{let x;for(;u&&u!==d;)x=k(u),l(u,g,p),u=x;l(d,g,p)},N=({el:u,anchor:d})=>{let g;for(;u&&u!==d;)g=k(u),i(u),u=g;i(d)},X=(u,d,g,p,x,c,E,A,w)=>{d.type==="svg"?E="svg":d.type==="math"&&(E="mathml"),u==null?Bt(d,g,p,x,c,E,A,w):Ve(u,d,x,c,E,A,w)},Bt=(u,d,g,p,x,c,E,A)=>{let w,b;const{props:T,shapeFlag:v,transition:y,dirs:j}=u;if(w=u.el=r(u.type,c,T&&T.is,T),v&8?m(w,u.children):v&16&&Kt(u.children,w,null,p,x,Is(u,c),E,A),j&&ie(u,null,p,"created"),Nt(w,u,u.scopeId,E,p),T){for(const $ in T)$!=="value"&&!Oe($)&&n(w,$,null,T[$],c,p);"value"in T&&n(w,"value",null,T.value,c),(b=T.onVnodeBeforeMount)&&Ot(b,p,u)}j&&ie(u,null,p,"beforeMount");const I=Yr(x,y);I&&y.beforeEnter(w),l(w,d,g),((b=T&&T.onVnodeMounted)||I||j)&&pt(()=>{b&&Ot(b,p,u),I&&y.enter(w),j&&ie(u,null,p,"mounted")},x)},Nt=(u,d,g,p,x)=>{if(g&&S(u,g),p)for(let c=0;c{for(let b=w;b{const A=d.el=u.el;let{patchFlag:w,dynamicChildren:b,dirs:T}=d;w|=u.patchFlag&16;const v=u.props||U,y=d.props||U;let j;if(g&&ne(g,!1),(j=y.onVnodeBeforeUpdate)&&Ot(j,g,d,u),T&&ie(d,u,g,"beforeUpdate"),g&&ne(g,!0),(v.innerHTML&&y.innerHTML==null||v.textContent&&y.textContent==null)&&m(A,""),b?ee(u.dynamicChildren,b,A,g,p,Is(d,x),c):E||q(u,d,A,null,g,p,Is(d,x),c,!1),w>0){if(w&16)ye(A,v,y,g,x);else if(w&2&&v.class!==y.class&&n(A,"class",null,y.class,x),w&4&&n(A,"style",v.style,y.style,x),w&8){const I=d.dynamicProps;for(let $=0;${j&&Ot(j,g,d,u),T&&ie(d,u,g,"updated")},p)},ee=(u,d,g,p,x,c,E)=>{for(let A=0;A{if(d!==g){if(d!==U)for(const c in d)!Oe(c)&&!(c in g)&&n(u,c,d[c],null,x,p);for(const c in g){if(Oe(c))continue;const E=g[c],A=d[c];E!==A&&c!=="value"&&n(u,c,A,E,x,p)}"value"in g&&n(u,"value",d.value,g.value,x)}},Je=(u,d,g,p,x,c,E,A,w)=>{const b=d.el=u?u.el:o(""),T=d.anchor=u?u.anchor:o("");let{patchFlag:v,dynamicChildren:y,slotScopeIds:j}=d;j&&(A=A?A.concat(j):j),u==null?(l(b,g,p),l(T,g,p),Kt(d.children||[],g,T,x,c,E,A,w)):v>0&&v&64&&y&&u.dynamicChildren?(ee(u.dynamicChildren,y,g,x,c,E,A),(d.key!=null||x&&d===x.subTree)&&on(u,d,!0)):q(u,d,g,T,x,c,E,A,w)},Qe=(u,d,g,p,x,c,E,A,w)=>{d.slotScopeIds=A,u==null?d.shapeFlag&512?x.ctx.activate(d,g,p,E,w):Ss(d,g,p,x,c,E,w):bl(u,d,w)},Ss=(u,d,g,p,x,c,E)=>{const A=u.component=po(u,p,x);if($i(u)&&(A.ctx.renderer=De),bo(A,!1,E),A.asyncDep){if(x&&x.registerDep(A,at,E),!u.el){const w=A.subTree=et(de);z(null,w,d,g)}}else at(A,u,d,g,x,c,E)},bl=(u,d,g)=>{const p=d.component=u.component;if(ro(u,d,g))if(p.asyncDep&&!p.asyncResolved){K(p,d,g);return}else p.next=d,p.update();else d.el=u.el,p.vnode=d},at=(u,d,g,p,x,c,E)=>{const A=()=>{if(u.isMounted){let{next:v,bu:y,u:j,parent:I,vnode:$}=u;{const ht=an(u);if(ht){v&&(v.el=$.el,K(u,v,E)),ht.asyncDep.then(()=>{u.isUnmounted||A()});return}}let F=v,xt;ne(u,!1),v?(v.el=$.el,K(u,v,E)):v=$,y&&ns(y),(xt=v.props&&v.props.onVnodeBeforeUpdate)&&Ot(xt,I,v,$),ne(u,!0);const lt=Ps(u),Et=u.subTree;u.subTree=lt,O(Et,lt,f(Et.el),Ze(Et),u,x,c),v.el=lt.el,F===null&&oo(u,lt.el),j&&pt(j,x),(xt=v.props&&v.props.onVnodeUpdated)&&pt(()=>Ot(xt,I,v,$),x)}else{let v;const{el:y,props:j}=d,{bm:I,m:$,parent:F,root:xt,type:lt}=u,Et=Re(d);if(ne(u,!1),I&&ns(I),!Et&&(v=j&&j.onVnodeBeforeMount)&&Ot(v,F,d),ne(u,!0),y&&El){const ht=()=>{u.subTree=Ps(u),El(y,u.subTree,u,x,null)};Et&<.__asyncHydrate?lt.__asyncHydrate(y,u,ht):ht()}else{xt.ce&&xt.ce._injectChildStyle(lt);const ht=u.subTree=Ps(u);O(null,ht,g,p,u,x,c),d.el=ht.el}if($&&pt($,x),!Et&&(v=j&&j.onVnodeMounted)){const ht=d;pt(()=>Ot(v,F,ht),x)}(d.shapeFlag&256||F&&Re(F.vnode)&&F.vnode.shapeFlag&256)&&u.a&&pt(u.a,x),u.isMounted=!0,d=g=p=null}};u.scope.on();const w=u.effect=new Ai(A);u.scope.off();const b=u.update=w.run.bind(w),T=u.job=w.runIfDirty.bind(w);T.i=u,T.id=u.uid,w.scheduler=()=>fl(T),ne(u,!0),b()},K=(u,d,g)=>{d.component=u;const p=u.vnode.props;u.vnode=d,u.next=null,qr(u,d.props,p,g),Vr(u,d.children,g),Xt(),Rl(u),te()},q=(u,d,g,p,x,c,E,A,w=!1)=>{const b=u&&u.children,T=u?u.shapeFlag:0,v=d.children,{patchFlag:y,shapeFlag:j}=d;if(y>0){if(y&128){Ye(b,v,g,p,x,c,E,A,w);return}else if(y&256){se(b,v,g,p,x,c,E,A,w);return}}j&8?(T&16&&Te(b,x,c),v!==b&&m(g,v)):T&16?j&16?Ye(b,v,g,p,x,c,E,A,w):Te(b,x,c,!0):(T&8&&m(g,""),j&16&&Kt(v,g,p,x,c,E,A,w))},se=(u,d,g,p,x,c,E,A,w)=>{u=u||he,d=d||he;const b=u.length,T=d.length,v=Math.min(b,T);let y;for(y=0;yT?Te(u,x,c,!0,!1,v):Kt(d,g,p,x,c,E,A,w,v)},Ye=(u,d,g,p,x,c,E,A,w)=>{let b=0;const T=d.length;let v=u.length-1,y=T-1;for(;b<=v&&b<=y;){const j=u[b],I=d[b]=w?Yt(d[b]):Rt(d[b]);if(Ge(j,I))O(j,I,g,null,x,c,E,A,w);else break;b++}for(;b<=v&&b<=y;){const j=u[v],I=d[y]=w?Yt(d[y]):Rt(d[y]);if(Ge(j,I))O(j,I,g,null,x,c,E,A,w);else break;v--,y--}if(b>v){if(b<=y){const j=y+1,I=jy)for(;b<=v;)Gt(u[b],x,c,!0),b++;else{const j=b,I=b,$=new Map;for(b=I;b<=y;b++){const ct=d[b]=w?Yt(d[b]):Rt(d[b]);ct.key!=null&&$.set(ct.key,b)}let F,xt=0;const lt=y-I+1;let Et=!1,ht=0;const Se=new Array(lt);for(b=0;b=lt){Gt(ct,x,c,!0);continue}let jt;if(ct.key!=null)jt=$.get(ct.key);else for(F=I;F<=y;F++)if(Se[F-I]===0&&Ge(ct,d[F])){jt=F;break}jt===void 0?Gt(ct,x,c,!0):(Se[jt-I]=b+1,jt>=ht?ht=jt:Et=!0,O(ct,d[jt],g,null,x,c,E,A,w),xt++)}const vl=Et?Zr(Se):he;for(F=vl.length-1,b=lt-1;b>=0;b--){const ct=I+b,jt=d[ct],yl=ct+1{const{el:c,type:E,transition:A,children:w,shapeFlag:b}=u;if(b&6){le(u.component.subTree,d,g,p);return}if(b&128){u.suspense.move(d,g,p);return}if(b&64){E.move(u,d,g,De);return}if(E===Q){l(c,d,g);for(let v=0;vA.enter(c),x);else{const{leave:v,delayLeave:y,afterLeave:j}=A,I=()=>l(c,d,g),$=()=>{v(c,()=>{I(),j&&j()})};y?y(c,I,$):$()}else l(c,d,g)},Gt=(u,d,g,p=!1,x=!1)=>{const{type:c,props:E,ref:A,children:w,dynamicChildren:b,shapeFlag:T,patchFlag:v,dirs:y,cacheIndex:j}=u;if(v===-2&&(x=!1),A!=null&&$s(A,null,g,u,!0),j!=null&&(d.renderCache[j]=void 0),T&256){d.ctx.deactivate(u);return}const I=T&1&&y,$=!Re(u);let F;if($&&(F=E&&E.onVnodeBeforeUnmount)&&Ot(F,d,u),T&6)vn(u.component,g,p);else{if(T&128){u.suspense.unmount(g,p);return}I&&ie(u,null,d,"beforeUnmount"),T&64?u.type.remove(u,d,g,De,p):b&&!b.hasOnce&&(c!==Q||v>0&&v&64)?Te(b,d,g,!1,!0):(c===Q&&v&384||!x&&T&16)&&Te(w,d,g),p&&kl(u)}($&&(F=E&&E.onVnodeUnmounted)||I)&&pt(()=>{F&&Ot(F,d,u),I&&ie(u,null,d,"unmounted")},g)},kl=u=>{const{type:d,el:g,anchor:p,transition:x}=u;if(d===Q){En(g,p);return}if(d===as){N(u);return}const c=()=>{i(g),x&&!x.persisted&&x.afterLeave&&x.afterLeave()};if(u.shapeFlag&1&&x&&!x.persisted){const{leave:E,delayLeave:A}=x,w=()=>E(g,c);A?A(u.el,c,w):w()}else c()},En=(u,d)=>{let g;for(;u!==d;)g=k(u),i(u),u=g;i(d)},vn=(u,d,g)=>{const{bum:p,scope:x,job:c,subTree:E,um:A,m:w,a:b}=u;Hl(w),Hl(b),p&&ns(p),x.stop(),c&&(c.flags|=8,Gt(E,u,d,g)),A&&pt(A,d),pt(()=>{u.isUnmounted=!0},d),d&&d.pendingBranch&&!d.isUnmounted&&u.asyncDep&&!u.asyncResolved&&u.suspenseId===d.pendingId&&(d.deps--,d.deps===0&&d.resolve())},Te=(u,d,g,p=!1,x=!1,c=0)=>{for(let E=c;E{if(u.shapeFlag&6)return Ze(u.component.subTree);if(u.shapeFlag&128)return u.suspense.next();const d=k(u.anchor||u.el),g=d&&d[pr];return g?k(g):d};let Ns=!1;const wl=(u,d,g)=>{u==null?d._vnode&&Gt(d._vnode,null,null,!0):O(d._vnode||null,u,d,null,null,null,g),d._vnode=u,Ns||(Ns=!0,Rl(),Hi(),Ns=!1)},De={p:O,um:Gt,m:le,r:kl,mt:Ss,mc:Kt,pc:q,pbc:ee,n:Ze,o:t};let Al,El;return{render:wl,hydrate:Al,createApp:Hr(wl,Al)}}function Is({type:t,props:e},s){return s==="svg"&&t==="foreignObject"||s==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:s}function ne({effect:t,job:e},s){s?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}function Yr(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function on(t,e,s=!1){const l=t.children,i=e.children;if(D(l)&&D(i))for(let n=0;n>1,t[s[o]]<_?n=o+1:r=o;_0&&(e[l]=s[n-1]),s[n]=l)}}for(n=s.length,r=s[n-1];n-- >0;)s[n]=r,r=e[r];return s}function an(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:an(e)}function Hl(t){if(t)for(let e=0;ers(Xr);function os(t,e,s){return un(t,e,s)}function un(t,e,s=U){const{immediate:l,deep:i,flush:n,once:r}=s,o=rt({},s);let a;if(Ts)if(n==="sync"){const k=to();a=k.__watcherHandles||(k.__watcherHandles=[])}else if(!e||l)o.once=!0;else return{stop:Pt,resume:Pt,pause:Pt};const _=it;o.call=(k,S,W)=>Lt(k,_,S,W);let m=!1;n==="post"?o.scheduler=k=>{pt(k,_&&_.suspense)}:n!=="sync"&&(m=!0,o.scheduler=(k,S)=>{S?k():fl(k)}),o.augmentJob=k=>{e&&(k.flags|=4),m&&(k.flags|=2,_&&(k.id=_.uid,k.i=_))};const f=gr(t,e,o);return a&&a.push(f),f}function eo(t,e,s){const l=this.proxy,i=Y(t)?t.includes(".")?dn(l,t):()=>l[t]:t.bind(l,l);let n;C(e)?n=e:(n=e.handler,s=e);const r=Ke(this),o=un(i,n.bind(l),s);return r(),o}function dn(t,e){const s=e.split(".");return()=>{let l=t;for(let i=0;ie==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${St(e)}Modifiers`]||t[`${_e(e)}Modifiers`];function lo(t,e,...s){if(t.isUnmounted)return;const l=t.vnode.props||U;let i=s;const n=e.startsWith("update:"),r=n&&so(l,e.slice(7));r&&(r.trim&&(i=s.map(m=>Y(m)?m.trim():m)),r.number&&(i=s.map(ms)));let o,a=l[o=Gs(e)]||l[o=Gs(St(e))];!a&&n&&(a=l[o=Gs(_e(e))]),a&&Lt(a,t,6,i);const _=l[o+"Once"];if(_){if(!t.emitted)t.emitted={};else if(t.emitted[o])return;t.emitted[o]=!0,Lt(_,t,6,i)}}function mn(t,e,s=!1){const l=e.emitsCache,i=l.get(t);if(i!==void 0)return i;const n=t.emits;let r={},o=!1;if(!C(t)){const a=_=>{const m=mn(_,e,!0);m&&(o=!0,rt(r,m))};!s&&e.mixins.length&&e.mixins.forEach(a),t.extends&&a(t.extends),t.mixins&&t.mixins.forEach(a)}return!n&&!o?(B(t)&&l.set(t,null),null):(D(n)?n.forEach(a=>r[a]=null):rt(r,n),B(t)&&l.set(t,r),r)}function vs(t,e){return!t||!cs(e)?!1:(e=e.slice(2).replace(/Once$/,""),L(t,e[0].toLowerCase()+e.slice(1))||L(t,_e(e))||L(t,e))}function Ps(t){const{type:e,vnode:s,proxy:l,withProxy:i,propsOptions:[n],slots:r,attrs:o,emit:a,render:_,renderCache:m,props:f,data:k,setupState:S,ctx:W,inheritAttrs:O}=t,Z=gs(t);let z,V;try{if(s.shapeFlag&4){const N=i||l,X=N;z=Rt(_.call(X,N,m,f,S,k,W)),V=o}else{const N=e;z=Rt(N.length>1?N(f,{attrs:o,slots:r,emit:a}):N(f,null)),V=e.props?o:io(o)}}catch(N){Ie.length=0,As(N,t,1),z=et(de)}let J=z;if(V&&O!==!1){const N=Object.keys(V),{shapeFlag:X}=J;N.length&&X&7&&(n&&N.some(tl)&&(V=no(V,n)),J=Ae(J,V,!1,!0))}return s.dirs&&(J=Ae(J,null,!1,!0),J.dirs=J.dirs?J.dirs.concat(s.dirs):s.dirs),s.transition&&xl(J,s.transition),z=J,gs(Z),z}const io=t=>{let e;for(const s in t)(s==="class"||s==="style"||cs(s))&&((e||(e={}))[s]=t[s]);return e},no=(t,e)=>{const s={};for(const l in t)(!tl(l)||!(l.slice(9)in e))&&(s[l]=t[l]);return s};function ro(t,e,s){const{props:l,children:i,component:n}=t,{props:r,children:o,patchFlag:a}=e,_=n.emitsOptions;if(e.dirs||e.transition)return!0;if(s&&a>=0){if(a&1024)return!0;if(a&16)return l?Ml(l,r,_):!!r;if(a&8){const m=e.dynamicProps;for(let f=0;ft.__isSuspense;function ao(t,e){e&&e.pendingBranch?D(t)?e.effects.push(...t):e.effects.push(t):hr(t)}const Q=Symbol.for("v-fgt"),ys=Symbol.for("v-txt"),de=Symbol.for("v-cmt"),as=Symbol.for("v-stc"),Ie=[];let At=null;function R(t=!1){Ie.push(At=t?null:[])}function uo(){Ie.pop(),At=Ie[Ie.length-1]||null}let He=1;function Ul(t){He+=t,t<0&&At&&(At.hasOnce=!0)}function gn(t){return t.dynamicChildren=He>0?At||he:null,uo(),He>0&&At&&At.push(t),t}function P(t,e,s,l,i,n){return gn(h(t,e,s,l,i,n,!0))}function me(t,e,s,l,i){return gn(et(t,e,s,l,i,!0))}function mo(t){return t?t.__v_isVNode===!0:!1}function Ge(t,e){return t.type===e.type&&t.key===e.key}const fn=({key:t})=>t??null,us=({ref:t,ref_key:e,ref_for:s})=>(typeof t=="number"&&(t=""+t),t!=null?Y(t)||mt(t)||C(t)?{i:wt,r:t,k:e,f:!!s}:t:null);function h(t,e=null,s=null,l=0,i=null,n=t===Q?0:1,r=!1,o=!1){const a={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&fn(e),ref:e&&us(e),scopeId:Ui,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:n,patchFlag:l,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:wt};return o?(pl(a,s),n&128&&t.normalize(a)):s&&(a.shapeFlag|=Y(s)?8:16),He>0&&!r&&At&&(a.patchFlag>0||n&6)&&a.patchFlag!==32&&At.push(a),a}const et=_o;function _o(t,e=null,s=null,l=0,i=null,n=!1){if((!t||t===Or)&&(t=de),mo(t)){const o=Ae(t,e,!0);return s&&pl(o,s),He>0&&!n&&At&&(o.shapeFlag&6?At[At.indexOf(t)]=o:At.push(o)),o.patchFlag=-2,o}if(vo(t)&&(t=t.__vccOpts),e){e=go(e);let{class:o,style:a}=e;o&&!Y(o)&&(e.class=Wt(o)),B(a)&&(ml(a)&&!D(a)&&(a=rt({},a)),e.style=ll(a))}const r=Y(t)?1:_n(t)?128:br(t)?64:B(t)?4:C(t)?2:0;return h(t,e,s,l,i,r,n,!0)}function go(t){return t?ml(t)||Xi(t)?rt({},t):t:null}function Ae(t,e,s=!1,l=!1){const{props:i,ref:n,patchFlag:r,children:o,transition:a}=t,_=e?xo(i||{},e):i,m={__v_isVNode:!0,__v_skip:!0,type:t.type,props:_,key:_&&fn(_),ref:e&&e.ref?s&&n?D(n)?n.concat(us(e)):[n,us(e)]:us(e):n,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:o,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Q?r===-1?16:r|16:r,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:a,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Ae(t.ssContent),ssFallback:t.ssFallback&&Ae(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return a&&l&&xl(m,a.clone(m)),m}function xs(t=" ",e=0){return et(ys,null,t,e)}function fo(t,e){const s=et(as,null,t);return s.staticCount=e,s}function It(t="",e=!1){return e?(R(),me(de,null,t)):et(de,null,t)}function Rt(t){return t==null||typeof t=="boolean"?et(de):D(t)?et(Q,null,t.slice()):typeof t=="object"?Yt(t):et(ys,null,String(t))}function Yt(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:Ae(t)}function pl(t,e){let s=0;const{shapeFlag:l}=t;if(e==null)e=null;else if(D(e))s=16;else if(typeof e=="object")if(l&65){const i=e.default;i&&(i._c&&(i._d=!1),pl(t,i()),i._c&&(i._d=!0));return}else{s=32;const i=e._;!i&&!Xi(e)?e._ctx=wt:i===3&&wt&&(wt.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else C(e)?(e={default:e,_ctx:wt},s=32):(e=String(e),l&64?(s=16,e=[xs(e)]):s=8);t.children=e,t.shapeFlag|=s}function xo(...t){const e={};for(let s=0;s{let i;return(i=t[s])||(i=t[s]=[]),i.push(l),n=>{i.length>1?i.forEach(r=>r(n)):i[0](n)}};hs=e("__VUE_INSTANCE_SETTERS__",s=>it=s),Qs=e("__VUE_SSR_SETTERS__",s=>Ts=s)}const Ke=t=>{const e=it;return hs(t),t.scope.on(),()=>{t.scope.off(),hs(e)}},ql=()=>{it&&it.scope.off(),hs(null)};function xn(t){return t.vnode.shapeFlag&4}let Ts=!1;function bo(t,e=!1,s=!1){e&&Qs(e);const{props:l,children:i}=t.vnode,n=xn(t);Ur(t,l,n,e),Kr(t,i,s);const r=n?ko(t,e):void 0;return e&&Qs(!1),r}function ko(t,e){const s=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,Rr);const{setup:l}=s;if(l){const i=t.setupContext=l.length>1?Ao(t):null,n=Ke(t);Xt();const r=Be(l,t,0,[t.props,i]);if(te(),n(),fi(r)){if(Re(t)||qi(t),r.then(ql,ql),e)return r.then(o=>{$l(t,o,e)}).catch(o=>{As(o,t,0)});t.asyncDep=r}else $l(t,r,e)}else hn(t,e)}function $l(t,e,s){C(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:B(e)&&(t.setupState=Pi(e)),hn(t,s)}let Bl;function hn(t,e,s){const l=t.type;if(!t.render){if(!e&&Bl&&!l.render){const i=l.template||hl(t).template;if(i){const{isCustomElement:n,compilerOptions:r}=t.appContext.config,{delimiters:o,compilerOptions:a}=l,_=rt(rt({isCustomElement:n,delimiters:o},r),a);l.render=Bl(i,_)}}t.render=l.render||Pt}{const i=Ke(t);Xt();try{Wr(t)}finally{te(),i()}}}const wo={get(t,e){return ot(t,"get",""),t[e]}};function Ao(t){const e=s=>{t.exposed=s||{}};return{attrs:new Proxy(t.attrs,wo),slots:t.slots,emit:t.emit,expose:e}}function Ds(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(Pi(or(t.exposed)),{get(e,s){if(s in e)return e[s];if(s in We)return We[s](t)},has(e,s){return s in e||s in We}})):t.proxy}function Eo(t,e=!0){return C(t)?t.displayName||t.name:t.name||e&&t.__name}function vo(t){return C(t)&&"__vccOpts"in t}const yo=(t,e)=>mr(t,e,Ts),To="3.5.5";/** +**/function Be(t,e,s,l){try{return l?t(...l):t()}catch(i){As(i,e,s)}}function zt(t,e,s,l){if(C(t)){const i=Be(t,e,s,l);return i&&fi(i)&&i.catch(n=>{As(n,e,s)}),i}if(D(t)){const i=[];for(let n=0;n>>1,i=dt[l],n=Fe(i);n=Fe(s)?dt.push(t):dt.splice(xr(e),0,t),t.flags|=1,Fi()}}function Fi(){!Le&&!qs&&(qs=!0,gl=zi.then(Mi))}function hr(t){D(t)?be.push(...t):Qt&&t.id===-1?Qt.splice(fe+1,0,t):t.flags&1||(be.push(t),t.flags|=1),Fi()}function Rl(t,e,s=Le?Rt+1:0){for(;sFe(s)-Fe(l));if(be.length=0,Qt){Qt.push(...e);return}for(Qt=e,fe=0;fet.id==null?t.flags&2?-1:1/0:t.id;function Mi(t){qs=!1,Le=!0;try{for(Rt=0;Rt{l._d&&Ul(-1);const n=gs(e);let r;try{r=t(...i)}finally{gs(n),l._d&&Ul(1)}return r};return l._n=!0,l._c=!0,l._d=!0,l}function Tt(t,e){if(kt===null)return t;const s=Ds(kt),l=t.dirs||(t.dirs=[]);for(let i=0;it.__isTeleport;function xl(t,e){t.shapeFlag&6&&t.component?(t.transition=e,xl(t.component.subTree,e)):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function qi(t){t.ids=[t.ids[0]+t.ids[2]+++"-",0,0]}function $s(t,e,s,l,i=!1){if(D(t)){t.forEach((W,O)=>$s(W,e&&(D(e)?e[O]:e),s,l,i));return}if(Re(l)&&!i)return;const n=l.shapeFlag&4?Ds(l.component):l.el,r=i?null:n,{i:o,r:a}=t,_=e&&e.r,m=o.refs===U?o.refs={}:o.refs,f=o.setupState,k=H(f),S=f===U?()=>!1:W=>L(k,W);if(_!=null&&_!==a&&(Y(_)?(m[_]=null,S(_)&&(f[_]=null)):mt(_)&&(_.value=null)),C(a))Be(a,o,12,[r,m]);else{const W=Y(a),O=mt(a);if(W||O){const Z=()=>{if(t.f){const P=W?S(a)?f[a]:m[a]:a.value;i?D(P)&&el(P,n):D(P)?P.includes(n)||P.push(n):W?(m[a]=[n],S(a)&&(f[a]=m[a])):(a.value=[n],t.k&&(m[t.k]=a.value))}else W?(m[a]=r,S(a)&&(f[a]=r)):O&&(a.value=r,t.k&&(m[t.k]=r))};r?(Z.id=-1,ct(Z,s)):Z()}}}const Re=t=>!!t.type.__asyncLoader,$i=t=>t.type.__isKeepAlive;function kr(t,e){Bi(t,"a",e)}function wr(t,e){Bi(t,"da",e)}function Bi(t,e,s=it){const l=t.__wdc||(t.__wdc=()=>{let i=s;for(;i;){if(i.isDeactivated)return;i=i.parent}return t()});if(Es(e,l,s),s){let i=s.parent;for(;i&&i.parent;)$i(i.parent.vnode)&&Ar(l,e,s,i),i=i.parent}}function Ar(t,e,s,l){const i=Es(e,t,l,!0);Ki(()=>{el(l[e],i)},s)}function Es(t,e,s=it,l=!1){if(s){const i=s[t]||(s[t]=[]),n=e.__weh||(e.__weh=(...r)=>{Xt();const o=Ke(s),a=zt(e,s,t,r);return o(),te(),a});return l?i.unshift(n):i.push(n),n}}const $t=t=>(e,s=it)=>{(!Ts||t==="sp")&&Es(t,(...l)=>e(...l),s)},Er=$t("bm"),vr=$t("m"),yr=$t("bu"),Tr=$t("u"),Dr=$t("bum"),Ki=$t("um"),Sr=$t("sp"),Nr=$t("rtg"),Gr=$t("rtc");function jr(t,e=it){Es("ec",t,e)}const Vi="components";function bt(t,e){return Cr(Vi,t,!0,e)||t}const Or=Symbol.for("v-ndc");function Cr(t,e,s=!0,l=!1){const i=kt||it;if(i){const n=i.type;if(t===Vi){const o=Eo(n,!1);if(o&&(o===e||o===Nt(e)||o===bs(Nt(e))))return n}const r=Wl(i[t]||n[t],e)||Wl(i.appContext[t],e);return!r&&l?n:r}}function Wl(t,e){return t&&(t[e]||t[Nt(e)]||t[bs(Nt(e))])}function ae(t,e,s,l){let i;const n=s,r=D(t);if(r||Y(t)){const o=r&&pe(t);let a=!1;o&&(a=!St(t),t=ks(t)),i=new Array(t.length);for(let _=0,m=t.length;_e(o,a,void 0,n));else{const o=Object.keys(t);i=new Array(o.length);for(let a=0,_=o.length;a<_;a++){const m=o[a];i[a]=e(t[m],m,a,n)}}else i=[];return i}const Bs=t=>t?xn(t)?Ds(t):Bs(t.parent):null,We=rt(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>Bs(t.parent),$root:t=>Bs(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>hl(t),$forceUpdate:t=>t.f||(t.f=()=>{fl(t.update)}),$nextTick:t=>t.n||(t.n=Li.bind(t.proxy)),$watch:t=>eo.bind(t)}),Ws=(t,e)=>t!==U&&!t.__isScriptSetup&&L(t,e),Rr={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:s,setupState:l,data:i,props:n,accessCache:r,type:o,appContext:a}=t;let _;if(e[0]!=="$"){const S=r[e];if(S!==void 0)switch(S){case 1:return l[e];case 2:return i[e];case 4:return s[e];case 3:return n[e]}else{if(Ws(l,e))return r[e]=1,l[e];if(i!==U&&L(i,e))return r[e]=2,i[e];if((_=t.propsOptions[0])&&L(_,e))return r[e]=3,n[e];if(s!==U&&L(s,e))return r[e]=4,s[e];Ks&&(r[e]=0)}}const m=We[e];let f,k;if(m)return e==="$attrs"&&ot(t.attrs,"get",""),m(t);if((f=o.__cssModules)&&(f=f[e]))return f;if(s!==U&&L(s,e))return r[e]=4,s[e];if(k=a.config.globalProperties,L(k,e))return k[e]},set({_:t},e,s){const{data:l,setupState:i,ctx:n}=t;return Ws(i,e)?(i[e]=s,!0):l!==U&&L(l,e)?(l[e]=s,!0):L(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(n[e]=s,!0)},has({_:{data:t,setupState:e,accessCache:s,ctx:l,appContext:i,propsOptions:n}},r){let o;return!!s[r]||t!==U&&L(t,r)||Ws(e,r)||(o=n[0])&&L(o,r)||L(l,r)||L(We,r)||L(i.config.globalProperties,r)},defineProperty(t,e,s){return s.get!=null?t._.accessCache[e]=0:L(s,"value")&&this.set(t,e,s.value,null),Reflect.defineProperty(t,e,s)}};function Il(t){return D(t)?t.reduce((e,s)=>(e[s]=null,e),{}):t}let Ks=!0;function Wr(t){const e=hl(t),s=t.proxy,l=t.ctx;Ks=!1,e.beforeCreate&&Pl(e.beforeCreate,t,"bc");const{data:i,computed:n,methods:r,watch:o,provide:a,inject:_,created:m,beforeMount:f,mounted:k,beforeUpdate:S,updated:W,activated:O,deactivated:Z,beforeDestroy:P,beforeUnmount:V,destroyed:J,unmounted:N,render:X,renderTracked:Bt,renderTriggered:Gt,errorCaptured:Kt,serverPrefetch:Ve,expose:ee,inheritAttrs:ye,components:Je,directives:Qe,filters:Ss}=e;if(_&&Ir(_,l,null),r)for(const K in r){const q=r[K];C(q)&&(l[K]=q.bind(s))}if(i){const K=i.call(s,s);B(K)&&(t.data=$e(K))}if(Ks=!0,n)for(const K in n){const q=n[K],se=C(q)?q.bind(s,s):C(q.get)?q.get.bind(s,s):It,Ye=!C(q)&&C(q.set)?q.set.bind(s):It,le=yo({get:se,set:Ye});Object.defineProperty(l,K,{enumerable:!0,configurable:!0,get:()=>le.value,set:jt=>le.value=jt})}if(o)for(const K in o)Ji(o[K],l,s,K);if(a){const K=C(a)?a.call(s):a;Reflect.ownKeys(K).forEach(q=>{Mr(q,K[q])})}m&&Pl(m,t,"c");function at(K,q){D(q)?q.forEach(se=>K(se.bind(s))):q&&K(q.bind(s))}if(at(Er,f),at(vr,k),at(yr,S),at(Tr,W),at(kr,O),at(wr,Z),at(jr,Kt),at(Gr,Bt),at(Nr,Gt),at(Dr,V),at(Ki,N),at(Sr,Ve),D(ee))if(ee.length){const K=t.exposed||(t.exposed={});ee.forEach(q=>{Object.defineProperty(K,q,{get:()=>s[q],set:se=>s[q]=se})})}else t.exposed||(t.exposed={});X&&t.render===It&&(t.render=X),ye!=null&&(t.inheritAttrs=ye),Je&&(t.components=Je),Qe&&(t.directives=Qe),Ve&&qi(t)}function Ir(t,e,s=It){D(t)&&(t=Vs(t));for(const l in t){const i=t[l];let n;B(i)?"default"in i?n=rs(i.from||l,i.default,!0):n=rs(i.from||l):n=rs(i),mt(n)?Object.defineProperty(e,l,{enumerable:!0,configurable:!0,get:()=>n.value,set:r=>n.value=r}):e[l]=n}}function Pl(t,e,s){zt(D(t)?t.map(l=>l.bind(e.proxy)):t.bind(e.proxy),e,s)}function Ji(t,e,s,l){let i=l.includes(".")?dn(s,l):()=>s[l];if(Y(t)){const n=e[t];C(n)&&os(i,n)}else if(C(t))os(i,t.bind(s));else if(B(t))if(D(t))t.forEach(n=>Ji(n,e,s,l));else{const n=C(t.handler)?t.handler.bind(s):e[t.handler];C(n)&&os(i,n,t)}}function hl(t){const e=t.type,{mixins:s,extends:l}=e,{mixins:i,optionsCache:n,config:{optionMergeStrategies:r}}=t.appContext,o=n.get(e);let a;return o?a=o:!i.length&&!s&&!l?a=e:(a={},i.length&&i.forEach(_=>fs(a,_,r,!0)),fs(a,e,r)),B(e)&&n.set(e,a),a}function fs(t,e,s,l=!1){const{mixins:i,extends:n}=e;n&&fs(t,n,s,!0),i&&i.forEach(r=>fs(t,r,s,!0));for(const r in e)if(!(l&&r==="expose")){const o=Pr[r]||s&&s[r];t[r]=o?o(t[r],e[r]):e[r]}return t}const Pr={data:zl,props:Ll,emits:Ll,methods:je,computed:je,beforeCreate:ut,created:ut,beforeMount:ut,mounted:ut,beforeUpdate:ut,updated:ut,beforeDestroy:ut,beforeUnmount:ut,destroyed:ut,unmounted:ut,activated:ut,deactivated:ut,errorCaptured:ut,serverPrefetch:ut,components:je,directives:je,watch:Lr,provide:zl,inject:zr};function zl(t,e){return e?t?function(){return rt(C(t)?t.call(this,this):t,C(e)?e.call(this,this):e)}:e:t}function zr(t,e){return je(Vs(t),Vs(e))}function Vs(t){if(D(t)){const e={};for(let s=0;s1)return s&&C(e)?e.call(l&&l.proxy):e}}const Yi={},Zi=()=>Object.create(Yi),Xi=t=>Object.getPrototypeOf(t)===Yi;function Ur(t,e,s,l=!1){const i={},n=Zi();t.propsDefaults=Object.create(null),tn(t,e,i,n);for(const r in t.propsOptions[0])r in i||(i[r]=void 0);s?t.props=l?i:rr(i):t.type.props?t.props=i:t.props=n,t.attrs=n}function qr(t,e,s,l){const{props:i,attrs:n,vnode:{patchFlag:r}}=t,o=H(i),[a]=t.propsOptions;let _=!1;if((l||r>0)&&!(r&16)){if(r&8){const m=t.vnode.dynamicProps;for(let f=0;f{a=!0;const[k,S]=en(f,e,!0);rt(r,k),S&&o.push(...S)};!s&&e.mixins.length&&e.mixins.forEach(m),t.extends&&m(t.extends),t.mixins&&t.mixins.forEach(m)}if(!n&&!a)return B(t)&&l.set(t,he),he;if(D(n))for(let m=0;mt[0]==="_"||t==="$stable",cl=t=>D(t)?t.map(Wt):[Wt(t)],Br=(t,e,s)=>{if(e._n)return e;const l=cr((...i)=>cl(e(...i)),s);return l._c=!1,l},ln=(t,e,s)=>{const l=t._ctx;for(const i in t){if(sn(i))continue;const n=t[i];if(C(n))e[i]=Br(i,n,l);else if(n!=null){const r=cl(n);e[i]=()=>r}}},nn=(t,e)=>{const s=cl(e);t.slots.default=()=>s},rn=(t,e,s)=>{for(const l in e)(s||l!=="_")&&(t[l]=e[l])},Kr=(t,e,s)=>{const l=t.slots=Zi();if(t.vnode.shapeFlag&32){const i=e._;i?(rn(l,e,s),s&&ci(l,"_",i,!0)):ln(e,l)}else e&&nn(t,e)},Vr=(t,e,s)=>{const{vnode:l,slots:i}=t;let n=!0,r=U;if(l.shapeFlag&32){const o=e._;o?s&&o===1?n=!1:rn(i,e,s):(n=!e.$stable,ln(e,i)),r=e}else e&&(nn(t,e),r={default:1});if(n)for(const o in i)!sn(o)&&r[o]==null&&delete i[o]},ct=ao;function Jr(t){return Qr(t)}function Qr(t,e){const s=pi();s.__VUE__=!0;const{insert:l,remove:i,patchProp:n,createElement:r,createText:o,createComment:a,setText:_,setElementText:m,parentNode:f,nextSibling:k,setScopeId:S=It,insertStaticContent:W}=t,O=(u,d,g,p=null,x=null,c=null,E=void 0,A=null,w=!!d.dynamicChildren)=>{if(u===d)return;u&&!Ge(u,d)&&(p=Ze(u),jt(u,x,c,!0),u=null),d.patchFlag===-2&&(w=!1,d.dynamicChildren=null);const{type:b,ref:T,shapeFlag:v}=d;switch(b){case ys:Z(u,d,g,p);break;case de:P(u,d,g,p);break;case as:u==null&&V(d,g,p,E);break;case Q:Je(u,d,g,p,x,c,E,A,w);break;default:v&1?X(u,d,g,p,x,c,E,A,w):v&6?Qe(u,d,g,p,x,c,E,A,w):(v&64||v&128)&&b.process(u,d,g,p,x,c,E,A,w,De)}T!=null&&x&&$s(T,u&&u.ref,c,d||u,!d)},Z=(u,d,g,p)=>{if(u==null)l(d.el=o(d.children),g,p);else{const x=d.el=u.el;d.children!==u.children&&_(x,d.children)}},P=(u,d,g,p)=>{u==null?l(d.el=a(d.children||""),g,p):d.el=u.el},V=(u,d,g,p)=>{[u.el,u.anchor]=W(u.children,d,g,p,u.el,u.anchor)},J=({el:u,anchor:d},g,p)=>{let x;for(;u&&u!==d;)x=k(u),l(u,g,p),u=x;l(d,g,p)},N=({el:u,anchor:d})=>{let g;for(;u&&u!==d;)g=k(u),i(u),u=g;i(d)},X=(u,d,g,p,x,c,E,A,w)=>{d.type==="svg"?E="svg":d.type==="math"&&(E="mathml"),u==null?Bt(d,g,p,x,c,E,A,w):Ve(u,d,x,c,E,A,w)},Bt=(u,d,g,p,x,c,E,A)=>{let w,b;const{props:T,shapeFlag:v,transition:y,dirs:j}=u;if(w=u.el=r(u.type,c,T&&T.is,T),v&8?m(w,u.children):v&16&&Kt(u.children,w,null,p,x,Is(u,c),E,A),j&&ie(u,null,p,"created"),Gt(w,u,u.scopeId,E,p),T){for(const $ in T)$!=="value"&&!Oe($)&&n(w,$,null,T[$],c,p);"value"in T&&n(w,"value",null,T.value,c),(b=T.onVnodeBeforeMount)&&Ct(b,p,u)}j&&ie(u,null,p,"beforeMount");const I=Yr(x,y);I&&y.beforeEnter(w),l(w,d,g),((b=T&&T.onVnodeMounted)||I||j)&&ct(()=>{b&&Ct(b,p,u),I&&y.enter(w),j&&ie(u,null,p,"mounted")},x)},Gt=(u,d,g,p,x)=>{if(g&&S(u,g),p)for(let c=0;c{for(let b=w;b{const A=d.el=u.el;let{patchFlag:w,dynamicChildren:b,dirs:T}=d;w|=u.patchFlag&16;const v=u.props||U,y=d.props||U;let j;if(g&&ne(g,!1),(j=y.onVnodeBeforeUpdate)&&Ct(j,g,d,u),T&&ie(d,u,g,"beforeUpdate"),g&&ne(g,!0),(v.innerHTML&&y.innerHTML==null||v.textContent&&y.textContent==null)&&m(A,""),b?ee(u.dynamicChildren,b,A,g,p,Is(d,x),c):E||q(u,d,A,null,g,p,Is(d,x),c,!1),w>0){if(w&16)ye(A,v,y,g,x);else if(w&2&&v.class!==y.class&&n(A,"class",null,y.class,x),w&4&&n(A,"style",v.style,y.style,x),w&8){const I=d.dynamicProps;for(let $=0;${j&&Ct(j,g,d,u),T&&ie(d,u,g,"updated")},p)},ee=(u,d,g,p,x,c,E)=>{for(let A=0;A{if(d!==g){if(d!==U)for(const c in d)!Oe(c)&&!(c in g)&&n(u,c,d[c],null,x,p);for(const c in g){if(Oe(c))continue;const E=g[c],A=d[c];E!==A&&c!=="value"&&n(u,c,A,E,x,p)}"value"in g&&n(u,"value",d.value,g.value,x)}},Je=(u,d,g,p,x,c,E,A,w)=>{const b=d.el=u?u.el:o(""),T=d.anchor=u?u.anchor:o("");let{patchFlag:v,dynamicChildren:y,slotScopeIds:j}=d;j&&(A=A?A.concat(j):j),u==null?(l(b,g,p),l(T,g,p),Kt(d.children||[],g,T,x,c,E,A,w)):v>0&&v&64&&y&&u.dynamicChildren?(ee(u.dynamicChildren,y,g,x,c,E,A),(d.key!=null||x&&d===x.subTree)&&on(u,d,!0)):q(u,d,g,T,x,c,E,A,w)},Qe=(u,d,g,p,x,c,E,A,w)=>{d.slotScopeIds=A,u==null?d.shapeFlag&512?x.ctx.activate(d,g,p,E,w):Ss(d,g,p,x,c,E,w):bl(u,d,w)},Ss=(u,d,g,p,x,c,E)=>{const A=u.component=po(u,p,x);if($i(u)&&(A.ctx.renderer=De),bo(A,!1,E),A.asyncDep){if(x&&x.registerDep(A,at,E),!u.el){const w=A.subTree=et(de);P(null,w,d,g)}}else at(A,u,d,g,x,c,E)},bl=(u,d,g)=>{const p=d.component=u.component;if(ro(u,d,g))if(p.asyncDep&&!p.asyncResolved){K(p,d,g);return}else p.next=d,p.update();else d.el=u.el,p.vnode=d},at=(u,d,g,p,x,c,E)=>{const A=()=>{if(u.isMounted){let{next:v,bu:y,u:j,parent:I,vnode:$}=u;{const xt=an(u);if(xt){v&&(v.el=$.el,K(u,v,E)),xt.asyncDep.then(()=>{u.isUnmounted||A()});return}}let F=v,ft;ne(u,!1),v?(v.el=$.el,K(u,v,E)):v=$,y&&ns(y),(ft=v.props&&v.props.onVnodeBeforeUpdate)&&Ct(ft,I,v,$),ne(u,!0);const lt=Ps(u),Et=u.subTree;u.subTree=lt,O(Et,lt,f(Et.el),Ze(Et),u,x,c),v.el=lt.el,F===null&&oo(u,lt.el),j&&ct(j,x),(ft=v.props&&v.props.onVnodeUpdated)&&ct(()=>Ct(ft,I,v,$),x)}else{let v;const{el:y,props:j}=d,{bm:I,m:$,parent:F,root:ft,type:lt}=u,Et=Re(d);if(ne(u,!1),I&&ns(I),!Et&&(v=j&&j.onVnodeBeforeMount)&&Ct(v,F,d),ne(u,!0),y&&El){const xt=()=>{u.subTree=Ps(u),El(y,u.subTree,u,x,null)};Et&<.__asyncHydrate?lt.__asyncHydrate(y,u,xt):xt()}else{ft.ce&&ft.ce._injectChildStyle(lt);const xt=u.subTree=Ps(u);O(null,xt,g,p,u,x,c),d.el=xt.el}if($&&ct($,x),!Et&&(v=j&&j.onVnodeMounted)){const xt=d;ct(()=>Ct(v,F,xt),x)}(d.shapeFlag&256||F&&Re(F.vnode)&&F.vnode.shapeFlag&256)&&u.a&&ct(u.a,x),u.isMounted=!0,d=g=p=null}};u.scope.on();const w=u.effect=new Ai(A);u.scope.off();const b=u.update=w.run.bind(w),T=u.job=w.runIfDirty.bind(w);T.i=u,T.id=u.uid,w.scheduler=()=>fl(T),ne(u,!0),b()},K=(u,d,g)=>{d.component=u;const p=u.vnode.props;u.vnode=d,u.next=null,qr(u,d.props,p,g),Vr(u,d.children,g),Xt(),Rl(u),te()},q=(u,d,g,p,x,c,E,A,w=!1)=>{const b=u&&u.children,T=u?u.shapeFlag:0,v=d.children,{patchFlag:y,shapeFlag:j}=d;if(y>0){if(y&128){Ye(b,v,g,p,x,c,E,A,w);return}else if(y&256){se(b,v,g,p,x,c,E,A,w);return}}j&8?(T&16&&Te(b,x,c),v!==b&&m(g,v)):T&16?j&16?Ye(b,v,g,p,x,c,E,A,w):Te(b,x,c,!0):(T&8&&m(g,""),j&16&&Kt(v,g,p,x,c,E,A,w))},se=(u,d,g,p,x,c,E,A,w)=>{u=u||he,d=d||he;const b=u.length,T=d.length,v=Math.min(b,T);let y;for(y=0;yT?Te(u,x,c,!0,!1,v):Kt(d,g,p,x,c,E,A,w,v)},Ye=(u,d,g,p,x,c,E,A,w)=>{let b=0;const T=d.length;let v=u.length-1,y=T-1;for(;b<=v&&b<=y;){const j=u[b],I=d[b]=w?Yt(d[b]):Wt(d[b]);if(Ge(j,I))O(j,I,g,null,x,c,E,A,w);else break;b++}for(;b<=v&&b<=y;){const j=u[v],I=d[y]=w?Yt(d[y]):Wt(d[y]);if(Ge(j,I))O(j,I,g,null,x,c,E,A,w);else break;v--,y--}if(b>v){if(b<=y){const j=y+1,I=jy)for(;b<=v;)jt(u[b],x,c,!0),b++;else{const j=b,I=b,$=new Map;for(b=I;b<=y;b++){const ht=d[b]=w?Yt(d[b]):Wt(d[b]);ht.key!=null&&$.set(ht.key,b)}let F,ft=0;const lt=y-I+1;let Et=!1,xt=0;const Se=new Array(lt);for(b=0;b=lt){jt(ht,x,c,!0);continue}let Ot;if(ht.key!=null)Ot=$.get(ht.key);else for(F=I;F<=y;F++)if(Se[F-I]===0&&Ge(ht,d[F])){Ot=F;break}Ot===void 0?jt(ht,x,c,!0):(Se[Ot-I]=b+1,Ot>=xt?xt=Ot:Et=!0,O(ht,d[Ot],g,null,x,c,E,A,w),ft++)}const vl=Et?Zr(Se):he;for(F=vl.length-1,b=lt-1;b>=0;b--){const ht=I+b,Ot=d[ht],yl=ht+1{const{el:c,type:E,transition:A,children:w,shapeFlag:b}=u;if(b&6){le(u.component.subTree,d,g,p);return}if(b&128){u.suspense.move(d,g,p);return}if(b&64){E.move(u,d,g,De);return}if(E===Q){l(c,d,g);for(let v=0;vA.enter(c),x);else{const{leave:v,delayLeave:y,afterLeave:j}=A,I=()=>l(c,d,g),$=()=>{v(c,()=>{I(),j&&j()})};y?y(c,I,$):$()}else l(c,d,g)},jt=(u,d,g,p=!1,x=!1)=>{const{type:c,props:E,ref:A,children:w,dynamicChildren:b,shapeFlag:T,patchFlag:v,dirs:y,cacheIndex:j}=u;if(v===-2&&(x=!1),A!=null&&$s(A,null,g,u,!0),j!=null&&(d.renderCache[j]=void 0),T&256){d.ctx.deactivate(u);return}const I=T&1&&y,$=!Re(u);let F;if($&&(F=E&&E.onVnodeBeforeUnmount)&&Ct(F,d,u),T&6)vn(u.component,g,p);else{if(T&128){u.suspense.unmount(g,p);return}I&&ie(u,null,d,"beforeUnmount"),T&64?u.type.remove(u,d,g,De,p):b&&!b.hasOnce&&(c!==Q||v>0&&v&64)?Te(b,d,g,!1,!0):(c===Q&&v&384||!x&&T&16)&&Te(w,d,g),p&&kl(u)}($&&(F=E&&E.onVnodeUnmounted)||I)&&ct(()=>{F&&Ct(F,d,u),I&&ie(u,null,d,"unmounted")},g)},kl=u=>{const{type:d,el:g,anchor:p,transition:x}=u;if(d===Q){En(g,p);return}if(d===as){N(u);return}const c=()=>{i(g),x&&!x.persisted&&x.afterLeave&&x.afterLeave()};if(u.shapeFlag&1&&x&&!x.persisted){const{leave:E,delayLeave:A}=x,w=()=>E(g,c);A?A(u.el,c,w):w()}else c()},En=(u,d)=>{let g;for(;u!==d;)g=k(u),i(u),u=g;i(d)},vn=(u,d,g)=>{const{bum:p,scope:x,job:c,subTree:E,um:A,m:w,a:b}=u;Hl(w),Hl(b),p&&ns(p),x.stop(),c&&(c.flags|=8,jt(E,u,d,g)),A&&ct(A,d),ct(()=>{u.isUnmounted=!0},d),d&&d.pendingBranch&&!d.isUnmounted&&u.asyncDep&&!u.asyncResolved&&u.suspenseId===d.pendingId&&(d.deps--,d.deps===0&&d.resolve())},Te=(u,d,g,p=!1,x=!1,c=0)=>{for(let E=c;E{if(u.shapeFlag&6)return Ze(u.component.subTree);if(u.shapeFlag&128)return u.suspense.next();const d=k(u.anchor||u.el),g=d&&d[pr];return g?k(g):d};let Ns=!1;const wl=(u,d,g)=>{u==null?d._vnode&&jt(d._vnode,null,null,!0):O(d._vnode||null,u,d,null,null,null,g),d._vnode=u,Ns||(Ns=!0,Rl(),Hi(),Ns=!1)},De={p:O,um:jt,m:le,r:kl,mt:Ss,mc:Kt,pc:q,pbc:ee,n:Ze,o:t};let Al,El;return{render:wl,hydrate:Al,createApp:Hr(wl,Al)}}function Is({type:t,props:e},s){return s==="svg"&&t==="foreignObject"||s==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:s}function ne({effect:t,job:e},s){s?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}function Yr(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function on(t,e,s=!1){const l=t.children,i=e.children;if(D(l)&&D(i))for(let n=0;n>1,t[s[o]]<_?n=o+1:r=o;_0&&(e[l]=s[n-1]),s[n]=l)}}for(n=s.length,r=s[n-1];n-- >0;)s[n]=r,r=e[r];return s}function an(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:an(e)}function Hl(t){if(t)for(let e=0;ers(Xr);function os(t,e,s){return un(t,e,s)}function un(t,e,s=U){const{immediate:l,deep:i,flush:n,once:r}=s,o=rt({},s);let a;if(Ts)if(n==="sync"){const k=to();a=k.__watcherHandles||(k.__watcherHandles=[])}else if(!e||l)o.once=!0;else return{stop:It,resume:It,pause:It};const _=it;o.call=(k,S,W)=>zt(k,_,S,W);let m=!1;n==="post"?o.scheduler=k=>{ct(k,_&&_.suspense)}:n!=="sync"&&(m=!0,o.scheduler=(k,S)=>{S?k():fl(k)}),o.augmentJob=k=>{e&&(k.flags|=4),m&&(k.flags|=2,_&&(k.id=_.uid,k.i=_))};const f=gr(t,e,o);return a&&a.push(f),f}function eo(t,e,s){const l=this.proxy,i=Y(t)?t.includes(".")?dn(l,t):()=>l[t]:t.bind(l,l);let n;C(e)?n=e:(n=e.handler,s=e);const r=Ke(this),o=un(i,n.bind(l),s);return r(),o}function dn(t,e){const s=e.split(".");return()=>{let l=t;for(let i=0;ie==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${Nt(e)}Modifiers`]||t[`${_e(e)}Modifiers`];function lo(t,e,...s){if(t.isUnmounted)return;const l=t.vnode.props||U;let i=s;const n=e.startsWith("update:"),r=n&&so(l,e.slice(7));r&&(r.trim&&(i=s.map(m=>Y(m)?m.trim():m)),r.number&&(i=s.map(ms)));let o,a=l[o=Gs(e)]||l[o=Gs(Nt(e))];!a&&n&&(a=l[o=Gs(_e(e))]),a&&zt(a,t,6,i);const _=l[o+"Once"];if(_){if(!t.emitted)t.emitted={};else if(t.emitted[o])return;t.emitted[o]=!0,zt(_,t,6,i)}}function mn(t,e,s=!1){const l=e.emitsCache,i=l.get(t);if(i!==void 0)return i;const n=t.emits;let r={},o=!1;if(!C(t)){const a=_=>{const m=mn(_,e,!0);m&&(o=!0,rt(r,m))};!s&&e.mixins.length&&e.mixins.forEach(a),t.extends&&a(t.extends),t.mixins&&t.mixins.forEach(a)}return!n&&!o?(B(t)&&l.set(t,null),null):(D(n)?n.forEach(a=>r[a]=null):rt(r,n),B(t)&&l.set(t,r),r)}function vs(t,e){return!t||!cs(e)?!1:(e=e.slice(2).replace(/Once$/,""),L(t,e[0].toLowerCase()+e.slice(1))||L(t,_e(e))||L(t,e))}function Ps(t){const{type:e,vnode:s,proxy:l,withProxy:i,propsOptions:[n],slots:r,attrs:o,emit:a,render:_,renderCache:m,props:f,data:k,setupState:S,ctx:W,inheritAttrs:O}=t,Z=gs(t);let P,V;try{if(s.shapeFlag&4){const N=i||l,X=N;P=Wt(_.call(X,N,m,f,S,k,W)),V=o}else{const N=e;P=Wt(N.length>1?N(f,{attrs:o,slots:r,emit:a}):N(f,null)),V=e.props?o:io(o)}}catch(N){Ie.length=0,As(N,t,1),P=et(de)}let J=P;if(V&&O!==!1){const N=Object.keys(V),{shapeFlag:X}=J;N.length&&X&7&&(n&&N.some(tl)&&(V=no(V,n)),J=Ae(J,V,!1,!0))}return s.dirs&&(J=Ae(J,null,!1,!0),J.dirs=J.dirs?J.dirs.concat(s.dirs):s.dirs),s.transition&&xl(J,s.transition),P=J,gs(Z),P}const io=t=>{let e;for(const s in t)(s==="class"||s==="style"||cs(s))&&((e||(e={}))[s]=t[s]);return e},no=(t,e)=>{const s={};for(const l in t)(!tl(l)||!(l.slice(9)in e))&&(s[l]=t[l]);return s};function ro(t,e,s){const{props:l,children:i,component:n}=t,{props:r,children:o,patchFlag:a}=e,_=n.emitsOptions;if(e.dirs||e.transition)return!0;if(s&&a>=0){if(a&1024)return!0;if(a&16)return l?Ml(l,r,_):!!r;if(a&8){const m=e.dynamicProps;for(let f=0;ft.__isSuspense;function ao(t,e){e&&e.pendingBranch?D(t)?e.effects.push(...t):e.effects.push(t):hr(t)}const Q=Symbol.for("v-fgt"),ys=Symbol.for("v-txt"),de=Symbol.for("v-cmt"),as=Symbol.for("v-stc"),Ie=[];let wt=null;function R(t=!1){Ie.push(wt=t?null:[])}function uo(){Ie.pop(),wt=Ie[Ie.length-1]||null}let He=1;function Ul(t){He+=t,t<0&&wt&&(wt.hasOnce=!0)}function gn(t){return t.dynamicChildren=He>0?wt||he:null,uo(),He>0&&wt&&wt.push(t),t}function z(t,e,s,l,i,n){return gn(h(t,e,s,l,i,n,!0))}function me(t,e,s,l,i){return gn(et(t,e,s,l,i,!0))}function mo(t){return t?t.__v_isVNode===!0:!1}function Ge(t,e){return t.type===e.type&&t.key===e.key}const fn=({key:t})=>t??null,us=({ref:t,ref_key:e,ref_for:s})=>(typeof t=="number"&&(t=""+t),t!=null?Y(t)||mt(t)||C(t)?{i:kt,r:t,k:e,f:!!s}:t:null);function h(t,e=null,s=null,l=0,i=null,n=t===Q?0:1,r=!1,o=!1){const a={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&fn(e),ref:e&&us(e),scopeId:Ui,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:n,patchFlag:l,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:kt};return o?(pl(a,s),n&128&&t.normalize(a)):s&&(a.shapeFlag|=Y(s)?8:16),He>0&&!r&&wt&&(a.patchFlag>0||n&6)&&a.patchFlag!==32&&wt.push(a),a}const et=_o;function _o(t,e=null,s=null,l=0,i=null,n=!1){if((!t||t===Or)&&(t=de),mo(t)){const o=Ae(t,e,!0);return s&&pl(o,s),He>0&&!n&&wt&&(o.shapeFlag&6?wt[wt.indexOf(t)]=o:wt.push(o)),o.patchFlag=-2,o}if(vo(t)&&(t=t.__vccOpts),e){e=go(e);let{class:o,style:a}=e;o&&!Y(o)&&(e.class=yt(o)),B(a)&&(ml(a)&&!D(a)&&(a=rt({},a)),e.style=ll(a))}const r=Y(t)?1:_n(t)?128:br(t)?64:B(t)?4:C(t)?2:0;return h(t,e,s,l,i,r,n,!0)}function go(t){return t?ml(t)||Xi(t)?rt({},t):t:null}function Ae(t,e,s=!1,l=!1){const{props:i,ref:n,patchFlag:r,children:o,transition:a}=t,_=e?xo(i||{},e):i,m={__v_isVNode:!0,__v_skip:!0,type:t.type,props:_,key:_&&fn(_),ref:e&&e.ref?s&&n?D(n)?n.concat(us(e)):[n,us(e)]:us(e):n,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:o,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Q?r===-1?16:r|16:r,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:a,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Ae(t.ssContent),ssFallback:t.ssFallback&&Ae(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return a&&l&&xl(m,a.clone(m)),m}function xs(t=" ",e=0){return et(ys,null,t,e)}function fo(t,e){const s=et(as,null,t);return s.staticCount=e,s}function Ut(t="",e=!1){return e?(R(),me(de,null,t)):et(de,null,t)}function Wt(t){return t==null||typeof t=="boolean"?et(de):D(t)?et(Q,null,t.slice()):typeof t=="object"?Yt(t):et(ys,null,String(t))}function Yt(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:Ae(t)}function pl(t,e){let s=0;const{shapeFlag:l}=t;if(e==null)e=null;else if(D(e))s=16;else if(typeof e=="object")if(l&65){const i=e.default;i&&(i._c&&(i._d=!1),pl(t,i()),i._c&&(i._d=!0));return}else{s=32;const i=e._;!i&&!Xi(e)?e._ctx=kt:i===3&&kt&&(kt.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else C(e)?(e={default:e,_ctx:kt},s=32):(e=String(e),l&64?(s=16,e=[xs(e)]):s=8);t.children=e,t.shapeFlag|=s}function xo(...t){const e={};for(let s=0;s{let i;return(i=t[s])||(i=t[s]=[]),i.push(l),n=>{i.length>1?i.forEach(r=>r(n)):i[0](n)}};hs=e("__VUE_INSTANCE_SETTERS__",s=>it=s),Qs=e("__VUE_SSR_SETTERS__",s=>Ts=s)}const Ke=t=>{const e=it;return hs(t),t.scope.on(),()=>{t.scope.off(),hs(e)}},ql=()=>{it&&it.scope.off(),hs(null)};function xn(t){return t.vnode.shapeFlag&4}let Ts=!1;function bo(t,e=!1,s=!1){e&&Qs(e);const{props:l,children:i}=t.vnode,n=xn(t);Ur(t,l,n,e),Kr(t,i,s);const r=n?ko(t,e):void 0;return e&&Qs(!1),r}function ko(t,e){const s=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,Rr);const{setup:l}=s;if(l){const i=t.setupContext=l.length>1?Ao(t):null,n=Ke(t);Xt();const r=Be(l,t,0,[t.props,i]);if(te(),n(),fi(r)){if(Re(t)||qi(t),r.then(ql,ql),e)return r.then(o=>{$l(t,o,e)}).catch(o=>{As(o,t,0)});t.asyncDep=r}else $l(t,r,e)}else hn(t,e)}function $l(t,e,s){C(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:B(e)&&(t.setupState=Pi(e)),hn(t,s)}let Bl;function hn(t,e,s){const l=t.type;if(!t.render){if(!e&&Bl&&!l.render){const i=l.template||hl(t).template;if(i){const{isCustomElement:n,compilerOptions:r}=t.appContext.config,{delimiters:o,compilerOptions:a}=l,_=rt(rt({isCustomElement:n,delimiters:o},r),a);l.render=Bl(i,_)}}t.render=l.render||It}{const i=Ke(t);Xt();try{Wr(t)}finally{te(),i()}}}const wo={get(t,e){return ot(t,"get",""),t[e]}};function Ao(t){const e=s=>{t.exposed=s||{}};return{attrs:new Proxy(t.attrs,wo),slots:t.slots,emit:t.emit,expose:e}}function Ds(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(Pi(or(t.exposed)),{get(e,s){if(s in e)return e[s];if(s in We)return We[s](t)},has(e,s){return s in e||s in We}})):t.proxy}function Eo(t,e=!0){return C(t)?t.displayName||t.name:t.name||e&&t.__name}function vo(t){return C(t)&&"__vccOpts"in t}const yo=(t,e)=>mr(t,e,Ts),To="3.5.5";/** * @vue/runtime-dom v3.5.5 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let Ys;const Kl=typeof window<"u"&&window.trustedTypes;if(Kl)try{Ys=Kl.createPolicy("vue",{createHTML:t=>t})}catch{}const cn=Ys?t=>Ys.createHTML(t):t=>t,Do="http://www.w3.org/2000/svg",So="http://www.w3.org/1998/Math/MathML",Ht=typeof document<"u"?document:null,Vl=Ht&&Ht.createElement("template"),No={insert:(t,e,s)=>{e.insertBefore(t,s||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,s,l)=>{const i=e==="svg"?Ht.createElementNS(Do,t):e==="mathml"?Ht.createElementNS(So,t):s?Ht.createElement(t,{is:s}):Ht.createElement(t);return t==="select"&&l&&l.multiple!=null&&i.setAttribute("multiple",l.multiple),i},createText:t=>Ht.createTextNode(t),createComment:t=>Ht.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Ht.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,s,l,i,n){const r=s?s.previousSibling:e.lastChild;if(i&&(i===n||i.nextSibling))for(;e.insertBefore(i.cloneNode(!0),s),!(i===n||!(i=i.nextSibling)););else{Vl.innerHTML=cn(l==="svg"?`${t}`:l==="mathml"?`${t}`:t);const o=Vl.content;if(l==="svg"||l==="mathml"){const a=o.firstChild;for(;a.firstChild;)o.appendChild(a.firstChild);o.removeChild(a)}e.insertBefore(o,s)}return[r?r.nextSibling:e.firstChild,s?s.previousSibling:e.lastChild]}},Go=Symbol("_vtc");function jo(t,e,s){const l=t[Go];l&&(e=(e?[e,...l]:[...l]).join(" ")),e==null?t.removeAttribute("class"):s?t.setAttribute("class",e):t.className=e}const Jl=Symbol("_vod"),Oo=Symbol("_vsh"),Co=Symbol(""),Ro=/(^|;)\s*display\s*:/;function Wo(t,e,s){const l=t.style,i=Y(s);let n=!1;if(s&&!i){if(e)if(Y(e))for(const r of e.split(";")){const o=r.slice(0,r.indexOf(":")).trim();s[o]==null&&ds(l,o,"")}else for(const r in e)s[r]==null&&ds(l,r,"");for(const r in s)r==="display"&&(n=!0),ds(l,r,s[r])}else if(i){if(e!==s){const r=l[Co];r&&(s+=";"+r),l.cssText=s,n=Ro.test(s)}}else e&&t.removeAttribute("style");Jl in t&&(t[Jl]=n?l.display:"",t[Oo]&&(l.display="none"))}const Ql=/\s*!important$/;function ds(t,e,s){if(D(s))s.forEach(l=>ds(t,e,l));else if(s==null&&(s=""),e.startsWith("--"))t.setProperty(e,s);else{const l=Io(t,e);Ql.test(s)?t.setProperty(_e(l),s.replace(Ql,""),"important"):t[l]=s}}const Yl=["Webkit","Moz","ms"],zs={};function Io(t,e){const s=zs[e];if(s)return s;let l=St(e);if(l!=="filter"&&l in t)return zs[e]=l;l=bs(l);for(let i=0;iLs||(Ho.then(()=>Ls=0),Ls=Date.now());function Uo(t,e){const s=l=>{if(!l._vts)l._vts=Date.now();else if(l._vts<=s.attached)return;Lt(qo(l,s.value),e,5,[l])};return s.value=t,s.attached=Mo(),s}function qo(t,e){if(D(e)){const s=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{s.call(t),t._stopped=!0},e.map(l=>i=>!i._stopped&&l&&l(i))}else return e}const si=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,$o=(t,e,s,l,i,n)=>{const r=i==="svg";e==="class"?jo(t,l,r):e==="style"?Wo(t,s,l):cs(e)?tl(e)||Lo(t,e,s,l,n):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):Bo(t,e,l,r))?(Po(t,e,l),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&Xl(t,e,l,r,n,e!=="value")):(e==="true-value"?t._trueValue=l:e==="false-value"&&(t._falseValue=l),Xl(t,e,l,r))};function Bo(t,e,s,l){if(l)return!!(e==="innerHTML"||e==="textContent"||e in t&&si(e)&&C(s));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const i=t.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return si(e)&&Y(s)?!1:!!(e in t||t._isVueCE&&(/[A-Z]/.test(e)||!Y(s)))}const Ee=t=>{const e=t.props["onUpdate:modelValue"]||!1;return D(e)?s=>ns(e,s):e};function Ko(t){t.target.composing=!0}function li(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const qt=Symbol("_assign"),xe={created(t,{modifiers:{lazy:e,trim:s,number:l}},i){t[qt]=Ee(i);const n=l||i.props&&i.props.type==="number";Zt(t,e?"change":"input",r=>{if(r.target.composing)return;let o=t.value;s&&(o=o.trim()),n&&(o=ms(o)),t[qt](o)}),s&&Zt(t,"change",()=>{t.value=t.value.trim()}),e||(Zt(t,"compositionstart",Ko),Zt(t,"compositionend",li),Zt(t,"change",li))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,oldValue:s,modifiers:{lazy:l,trim:i,number:n}},r){if(t[qt]=Ee(r),t.composing)return;const o=(n||t.type==="number")&&!/^0\d/.test(t.value)?ms(t.value):t.value,a=e??"";o!==a&&(document.activeElement===t&&t.type!=="range"&&(l&&e===s||i&&t.value.trim()===a)||(t.value=a))}},pn={deep:!0,created(t,e,s){t[qt]=Ee(s),Zt(t,"change",()=>{const l=t._modelValue,i=Me(t),n=t.checked,r=t[qt];if(D(l)){const o=il(l,i),a=o!==-1;if(n&&!a)r(l.concat(i));else if(!n&&a){const _=[...l];_.splice(o,1),r(_)}}else if(ve(l)){const o=new Set(l);n?o.add(i):o.delete(i),r(o)}else r(bn(t,n))})},mounted:ii,beforeUpdate(t,e,s){t[qt]=Ee(s),ii(t,e,s)}};function ii(t,{value:e,oldValue:s},l){t._modelValue=e;let i;D(e)?i=il(e,l.props.value)>-1:ve(e)?i=e.has(l.props.value):i=qe(e,bn(t,!0)),t.checked!==i&&(t.checked=i)}const Fs={deep:!0,created(t,{value:e,modifiers:{number:s}},l){const i=ve(e);Zt(t,"change",()=>{const n=Array.prototype.filter.call(t.options,r=>r.selected).map(r=>s?ms(Me(r)):Me(r));t[qt](t.multiple?i?new Set(n):n:n[0]),t._assigning=!0,Li(()=>{t._assigning=!1})}),t[qt]=Ee(l)},mounted(t,{value:e,modifiers:{number:s}}){ni(t,e)},beforeUpdate(t,e,s){t[qt]=Ee(s)},updated(t,{value:e,modifiers:{number:s}}){t._assigning||ni(t,e)}};function ni(t,e,s){const l=t.multiple,i=D(e);if(!(l&&!i&&!ve(e))){for(let n=0,r=t.options.length;nString(m)===String(a)):o.selected=il(e,a)>-1}else o.selected=e.has(a);else if(qe(Me(o),e)){t.selectedIndex!==n&&(t.selectedIndex=n);return}}!l&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function Me(t){return"_value"in t?t._value:t.value}function bn(t,e){const s=e?"_trueValue":"_falseValue";return s in t?t[s]:e}const Vo=rt({patchProp:$o},No);let ri;function Jo(){return ri||(ri=Jr(Vo))}const Qo=(...t)=>{const e=Jo().createApp(...t),{mount:s}=e;return e.mount=l=>{const i=Zo(l);if(!i)return;const n=e._component;!C(n)&&!n.render&&!n.template&&(n.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const r=s(i,!1,Yo(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),r},e};function Yo(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function Zo(t){return Y(t)?document.querySelector(t):t}const ft=(t,e)=>{const s=t.__vccOpts||t;for(const[l,i]of e)s[l]=i;return s},Xo={};function ta(t,e){return R(),P(Q,null,[e[0]||(e[0]=h("h1",null,"GlossySnake",-1)),e[1]||(e[1]=h("p",null,[xs("INDEX PAGE | "),h("a",{href:"https://github.com/parkchamchi/GlossySnake"},"Repo")],-1))],64)}const ea=ft(Xo,[["render",ta],["__scopeId","data-v-0f95cfa1"]]),Jt=$e({}),st={on(t,e){Jt[t]||(Jt[t]=[]),Jt[t].push(e)},off(t,e){Jt[t]&&(Jt[t]=Jt[t].filter(s=>s!==e))},emit(t,e){Jt[t]&&Jt[t].forEach(s=>s(e))}};function nt(){}nt.prototype.host="https://api.glossysnake.com";nt.prototype.api="/api/v4";nt.prototype.uri=function(t){return this.host+this.api+t};nt.prototype.jsonHelper=async function(t){try{return await t.json()}catch(e){return console.log(e),{error:JSON.parse(JSON.stringify(e,Object.getOwnPropertyNames(e)))}}};nt.prototype.submit=async function(t,e="GET",s=null,l=!0){const i=this.uri(t);let n={method:e,headers:{"Content-type":"application/json; charset=UTF-8"},credentials:"include"};e!="GET"&&(n.body=JSON.stringify(s)),l&&(n.headers.Authorization="Token "+nt._key);const r=await fetch(i,n);if(!r.ok){const o=await this.jsonHelper(r),a=i+": "+r.statusText+` -> `+JSON.stringify(o);throw st.emit("addAlert",{message:a,alertClass:"alert-warning"}),new Error(a)}return this.emitCorpusesUpdate(t),r};nt.prototype.emitCorpusesUpdate=async function(t){["/corpuses/","/tasks/","/user/check","/user/get-temp-user","/user/logout","/rest-auth/registration/","/rest-auth/login/","/rest-auth/logout/"].some(s=>t.endsWith(s))||(st.emit("updateCorpuses"),st.emit("updateTasks"))};const sa={data(){return{api:new nt,loggedin:!1}},computed:{userinfo(){return this.loggedin?"Guest.":"Log in."}},methods:{meow(){console.log("meow")},async getTempUser(){const e=await(await this.api.submit("/user/get-temp-user","GET",null,!1)).json();return e.success?(nt._key=e.key,!0):(console.error("get-temp-user unsuccessful"),!1)},async updateUser(){if(!nt._key&&!await this.getTempUser()){console.error("could not get the temp user.");return}this.loggedin=!0,st.emit("updateCorpuses"),st.emit("updateTasks")},async logout(){this.api.submit("/user/logout").then(()=>{nt._key=null,this.loggedin=!1,this.updateUser()})}},async created(){await this.updateUser()}},la={id:"frontend_auth_div"},ia={class:"userinfo_p"};function na(t,e,s,l,i,n){return R(),P("div",la,[h("p",ia,gt(n.userinfo),1),h("p",{onClick:e[0]||(e[0]=r=>n.logout()),class:"btn logout_button"}," Logout ")])}const ra=ft(sa,[["render",na],["__scopeId","data-v-72d1c363"]]),oa=JSON.parse(localStorage.getItem("sharedState"))||{},G=$e({annotator_name:"chatgpt_ft0",lang_from:"German",lang_to:"English",toRemote:!0,openaiApiKey:null,openaiModel:"gpt-4o-mini",outerRetry:2,innerRetry:3,maxGloss:80,fullPrompt:!0,currentOpenCorpus:"",...oa}),aa={data(){return G},watch:{annotator_name(){this.emitChange()},lang_from(){this.emitChange()},lang_to(){this.emitChange()},toRemote(){this.emitChange()}},methods:{emitChange(){G.annotator_name=this.annotator_name,G.lang_from=this.lang_from,G.lang_to=this.lang_to,G.toRemote=this.toRemote}}},ua={class:"container mt-4"},da={class:"row"},ma={class:"col-md-4"},_a={class:"col-md-4"},ga={class:"col-md-4"};function fa(t,e,s,l,i,n){return R(),P(Q,null,[h("div",ua,[h("div",da,[h("div",ma,[e[5]||(e[5]=h("label",{for:"annotator_name"},"annotator_name:",-1)),yt(h("select",{"onUpdate:modelValue":e[0]||(e[0]=r=>t.annotator_name=r),name:"annotator_name",id:"annotator_name_select",class:"form-control"},e[4]||(e[4]=[fo('',6)]),512),[[Fs,t.annotator_name]])]),h("div",_a,[e[7]||(e[7]=h("label",{for:"lang_from"},"lang_from:",-1)),yt(h("select",{"onUpdate:modelValue":e[1]||(e[1]=r=>t.lang_from=r),name:"lang_from",id:"lang_from_select",class:"form-control"},e[6]||(e[6]=[h("option",{value:"French"},"French",-1),h("option",{value:"German"},"German",-1),h("option",{value:"Latin"},"Latin",-1)]),512),[[Fs,t.lang_from]])]),h("div",ga,[e[9]||(e[9]=h("label",{for:"lang_to"},"lang_to:",-1)),yt(h("select",{"onUpdate:modelValue":e[2]||(e[2]=r=>t.lang_to=r),name:"lang_to",id:"lang_to_select",class:"form-control"},e[8]||(e[8]=[h("option",{value:"English"},"English",-1)]),512),[[Fs,t.lang_to]])])])]),e[11]||(e[11]=h("br",null,null,-1)),h("div",null,[yt(h("input",{"onUpdate:modelValue":e[3]||(e[3]=r=>t.toRemote=r),type:"checkbox",name:"toRemote",id:"toRemote_input",class:"form-check-input",checked:""},null,512),[[pn,t.toRemote]]),e[10]||(e[10]=h("label",{for:"toRemote_input",class:"form-check-label"},"To the remote server",-1))])],64)}const xa=ft(aa,[["render",fa]]),ha={data(){return G},watch:{openaiApiKey(){this.emitChange()},openaiModel(){this.emitChange()},outerRetry(){this.emitChange()},innerRetry(){this.emitChange()},maxGloss(){this.emitChange()},fullPrompt(){this.emitChange()}},computed:{visibility(){return!G.toRemote}},methods:{emitChange(){G.openaiApiKey=this.openaiApiKey,G.openaiModel=this.openaiModel,G.outerRetry=this.outerRetry,G.innerRetry=this.innerRetry,G.maxGloss=this.maxGloss,G.fullPrompt=this.fullPrompt},exportData(){console.log("test");const t=JSON.stringify(G,null,2),e=new Blob([t],{type:"application/json"}),s=URL.createObjectURL(e),l=document.createElement("a");l.href=s,l.download="sharedState.json",l.click(),URL.revokeObjectURL(s)},async importData(t){const s=await t.target.files[0].text(),l=JSON.parse(s);Object.keys(l).forEach(i=>{G.hasOwnProperty(i)&&(G[i]=l[i])})}},mounted(){os(()=>G,t=>{localStorage.setItem("sharedState",JSON.stringify(t))},{deep:!0})}},ca={key:0,class:"container mt-3"},pa={class:"row"},ba={class:"col-md-2"},ka={class:"col-md-2"},wa={class:"col-md-2"},Aa={class:"col-md-2"},Ea={class:"col-md-2"},va={class:"col-md-2 d-flex align-items-center"},ya={class:"row"},Ta={class:"col-md-2 d-flex align-items-center"},Da={class:"col-md-2 d-flex align-items-center"};function Sa(t,e,s,l,i,n){return R(),P(Q,null,[e[15]||(e[15]=h("h4",null,"Local Annotator Options",-1)),n.visibility?(R(),P("div",ca,[h("div",pa,[h("div",ba,[e[8]||(e[8]=h("label",{for:"openaiApiKey"},"OpenAI API Key",-1)),yt(h("input",{type:"password",class:"form-control",id:"openaiApiKey","onUpdate:modelValue":e[0]||(e[0]=r=>t.openaiApiKey=r)},null,512),[[xe,t.openaiApiKey]])]),h("div",ka,[e[9]||(e[9]=h("label",{for:"openaiModel"},"OpenAI Model",-1)),yt(h("input",{type:"text",class:"form-control",id:"openaiModel","onUpdate:modelValue":e[1]||(e[1]=r=>t.openaiModel=r)},null,512),[[xe,t.openaiModel]])]),h("div",wa,[e[10]||(e[10]=h("label",{for:"outerRetry"},"Outer Retry",-1)),yt(h("input",{type:"number",class:"form-control",id:"outerRetry","onUpdate:modelValue":e[2]||(e[2]=r=>t.outerRetry=r),min:"1"},null,512),[[xe,t.outerRetry]])]),h("div",Aa,[e[11]||(e[11]=h("label",{for:"innerRetry"},"Inner Retry",-1)),yt(h("input",{type:"number",class:"form-control",id:"innerRetry","onUpdate:modelValue":e[3]||(e[3]=r=>t.innerRetry=r),min:"1"},null,512),[[xe,t.innerRetry]])]),h("div",Ea,[e[12]||(e[12]=h("label",{for:"maxGloss"},"Max Gloss",-1)),yt(h("input",{type:"number",class:"form-control",id:"maxGloss","onUpdate:modelValue":e[4]||(e[4]=r=>t.maxGloss=r),min:"40"},null,512),[[xe,t.maxGloss]])]),h("div",va,[yt(h("input",{type:"checkbox",class:"form-check-input",id:"fullPrompt","onUpdate:modelValue":e[5]||(e[5]=r=>t.fullPrompt=r)},null,512),[[pn,t.fullPrompt]]),e[13]||(e[13]=h("label",{class:"form-check-label",for:"fullPrompt"},"Full Prompt",-1))])]),h("div",ya,[e[14]||(e[14]=h("div",{class:"col-md-2 d-flex align-items-center"},[h("button",{class:"btn btn-link mt-3"},[h("a",{href:"https://github.com/parkchamchi/GlossySnake/blob/master/docs/design/local.md"},"Info")])],-1)),h("div",Ta,[h("button",{class:"btn btn-link mt-3",onClick:e[6]||(e[6]=(...r)=>n.exportData&&n.exportData(...r))},"Export")]),h("div",Da,[h("input",{type:"file",onChange:e[7]||(e[7]=(...r)=>n.importData&&n.importData(...r)),class:"form-control"},null,32)])])])):It("",!0)],64)}const Na=ft(ha,[["render",Sa]]),oi=[{corpus_id:"Winterreise",corpuses_history:[{paragraphs:[{pstate:"ANNOTATED",tokens:[{txt:"#",is_delimiter:!1,gloss:"#"},{txt:" ",is_delimiter:!0,gloss:null},{txt:"Gute",is_delimiter:!1,gloss:"Good"},{txt:" ",is_delimiter:!0,gloss:null},{txt:"Nacht.",is_delimiter:!1,gloss:"Night."}],is_delimiter:!1,token_delimiters:` +**/let Ys;const Kl=typeof window<"u"&&window.trustedTypes;if(Kl)try{Ys=Kl.createPolicy("vue",{createHTML:t=>t})}catch{}const cn=Ys?t=>Ys.createHTML(t):t=>t,Do="http://www.w3.org/2000/svg",So="http://www.w3.org/1998/Math/MathML",Ft=typeof document<"u"?document:null,Vl=Ft&&Ft.createElement("template"),No={insert:(t,e,s)=>{e.insertBefore(t,s||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,s,l)=>{const i=e==="svg"?Ft.createElementNS(Do,t):e==="mathml"?Ft.createElementNS(So,t):s?Ft.createElement(t,{is:s}):Ft.createElement(t);return t==="select"&&l&&l.multiple!=null&&i.setAttribute("multiple",l.multiple),i},createText:t=>Ft.createTextNode(t),createComment:t=>Ft.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Ft.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,s,l,i,n){const r=s?s.previousSibling:e.lastChild;if(i&&(i===n||i.nextSibling))for(;e.insertBefore(i.cloneNode(!0),s),!(i===n||!(i=i.nextSibling)););else{Vl.innerHTML=cn(l==="svg"?`${t}`:l==="mathml"?`${t}`:t);const o=Vl.content;if(l==="svg"||l==="mathml"){const a=o.firstChild;for(;a.firstChild;)o.appendChild(a.firstChild);o.removeChild(a)}e.insertBefore(o,s)}return[r?r.nextSibling:e.firstChild,s?s.previousSibling:e.lastChild]}},Go=Symbol("_vtc");function jo(t,e,s){const l=t[Go];l&&(e=(e?[e,...l]:[...l]).join(" ")),e==null?t.removeAttribute("class"):s?t.setAttribute("class",e):t.className=e}const Jl=Symbol("_vod"),Oo=Symbol("_vsh"),Co=Symbol(""),Ro=/(^|;)\s*display\s*:/;function Wo(t,e,s){const l=t.style,i=Y(s);let n=!1;if(s&&!i){if(e)if(Y(e))for(const r of e.split(";")){const o=r.slice(0,r.indexOf(":")).trim();s[o]==null&&ds(l,o,"")}else for(const r in e)s[r]==null&&ds(l,r,"");for(const r in s)r==="display"&&(n=!0),ds(l,r,s[r])}else if(i){if(e!==s){const r=l[Co];r&&(s+=";"+r),l.cssText=s,n=Ro.test(s)}}else e&&t.removeAttribute("style");Jl in t&&(t[Jl]=n?l.display:"",t[Oo]&&(l.display="none"))}const Ql=/\s*!important$/;function ds(t,e,s){if(D(s))s.forEach(l=>ds(t,e,l));else if(s==null&&(s=""),e.startsWith("--"))t.setProperty(e,s);else{const l=Io(t,e);Ql.test(s)?t.setProperty(_e(l),s.replace(Ql,""),"important"):t[l]=s}}const Yl=["Webkit","Moz","ms"],zs={};function Io(t,e){const s=zs[e];if(s)return s;let l=Nt(e);if(l!=="filter"&&l in t)return zs[e]=l;l=bs(l);for(let i=0;iLs||(Ho.then(()=>Ls=0),Ls=Date.now());function Uo(t,e){const s=l=>{if(!l._vts)l._vts=Date.now();else if(l._vts<=s.attached)return;zt(qo(l,s.value),e,5,[l])};return s.value=t,s.attached=Mo(),s}function qo(t,e){if(D(e)){const s=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{s.call(t),t._stopped=!0},e.map(l=>i=>!i._stopped&&l&&l(i))}else return e}const si=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,$o=(t,e,s,l,i,n)=>{const r=i==="svg";e==="class"?jo(t,l,r):e==="style"?Wo(t,s,l):cs(e)?tl(e)||Lo(t,e,s,l,n):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):Bo(t,e,l,r))?(Po(t,e,l),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&Xl(t,e,l,r,n,e!=="value")):(e==="true-value"?t._trueValue=l:e==="false-value"&&(t._falseValue=l),Xl(t,e,l,r))};function Bo(t,e,s,l){if(l)return!!(e==="innerHTML"||e==="textContent"||e in t&&si(e)&&C(s));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const i=t.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return si(e)&&Y(s)?!1:!!(e in t||t._isVueCE&&(/[A-Z]/.test(e)||!Y(s)))}const Ee=t=>{const e=t.props["onUpdate:modelValue"]||!1;return D(e)?s=>ns(e,s):e};function Ko(t){t.target.composing=!0}function li(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const qt=Symbol("_assign"),xe={created(t,{modifiers:{lazy:e,trim:s,number:l}},i){t[qt]=Ee(i);const n=l||i.props&&i.props.type==="number";Zt(t,e?"change":"input",r=>{if(r.target.composing)return;let o=t.value;s&&(o=o.trim()),n&&(o=ms(o)),t[qt](o)}),s&&Zt(t,"change",()=>{t.value=t.value.trim()}),e||(Zt(t,"compositionstart",Ko),Zt(t,"compositionend",li),Zt(t,"change",li))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,oldValue:s,modifiers:{lazy:l,trim:i,number:n}},r){if(t[qt]=Ee(r),t.composing)return;const o=(n||t.type==="number")&&!/^0\d/.test(t.value)?ms(t.value):t.value,a=e??"";o!==a&&(document.activeElement===t&&t.type!=="range"&&(l&&e===s||i&&t.value.trim()===a)||(t.value=a))}},pn={deep:!0,created(t,e,s){t[qt]=Ee(s),Zt(t,"change",()=>{const l=t._modelValue,i=Me(t),n=t.checked,r=t[qt];if(D(l)){const o=il(l,i),a=o!==-1;if(n&&!a)r(l.concat(i));else if(!n&&a){const _=[...l];_.splice(o,1),r(_)}}else if(ve(l)){const o=new Set(l);n?o.add(i):o.delete(i),r(o)}else r(bn(t,n))})},mounted:ii,beforeUpdate(t,e,s){t[qt]=Ee(s),ii(t,e,s)}};function ii(t,{value:e,oldValue:s},l){t._modelValue=e;let i;D(e)?i=il(e,l.props.value)>-1:ve(e)?i=e.has(l.props.value):i=qe(e,bn(t,!0)),t.checked!==i&&(t.checked=i)}const Fs={deep:!0,created(t,{value:e,modifiers:{number:s}},l){const i=ve(e);Zt(t,"change",()=>{const n=Array.prototype.filter.call(t.options,r=>r.selected).map(r=>s?ms(Me(r)):Me(r));t[qt](t.multiple?i?new Set(n):n:n[0]),t._assigning=!0,Li(()=>{t._assigning=!1})}),t[qt]=Ee(l)},mounted(t,{value:e,modifiers:{number:s}}){ni(t,e)},beforeUpdate(t,e,s){t[qt]=Ee(s)},updated(t,{value:e,modifiers:{number:s}}){t._assigning||ni(t,e)}};function ni(t,e,s){const l=t.multiple,i=D(e);if(!(l&&!i&&!ve(e))){for(let n=0,r=t.options.length;nString(m)===String(a)):o.selected=il(e,a)>-1}else o.selected=e.has(a);else if(qe(Me(o),e)){t.selectedIndex!==n&&(t.selectedIndex=n);return}}!l&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function Me(t){return"_value"in t?t._value:t.value}function bn(t,e){const s=e?"_trueValue":"_falseValue";return s in t?t[s]:e}const Vo=rt({patchProp:$o},No);let ri;function Jo(){return ri||(ri=Jr(Vo))}const Qo=(...t)=>{const e=Jo().createApp(...t),{mount:s}=e;return e.mount=l=>{const i=Zo(l);if(!i)return;const n=e._component;!C(n)&&!n.render&&!n.template&&(n.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const r=s(i,!1,Yo(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),r},e};function Yo(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function Zo(t){return Y(t)?document.querySelector(t):t}const gt=(t,e)=>{const s=t.__vccOpts||t;for(const[l,i]of e)s[l]=i;return s},Xo={};function ta(t,e){return R(),z(Q,null,[e[0]||(e[0]=h("h1",null,"GlossySnake",-1)),e[1]||(e[1]=h("p",null,[xs("INDEX PAGE | "),h("a",{href:"https://github.com/parkchamchi/GlossySnake"},"Repo")],-1))],64)}const ea=gt(Xo,[["render",ta],["__scopeId","data-v-0f95cfa1"]]),Jt=$e({}),st={on(t,e){Jt[t]||(Jt[t]=[]),Jt[t].push(e)},off(t,e){Jt[t]&&(Jt[t]=Jt[t].filter(s=>s!==e))},emit(t,e){Jt[t]&&Jt[t].forEach(s=>s(e))}};function nt(){}nt.prototype.host="https://api.glossysnake.com";nt.prototype.api="/api/v4";nt.prototype.uri=function(t){return this.host+this.api+t};nt.prototype.jsonHelper=async function(t){try{return await t.json()}catch(e){return console.log(e),{error:JSON.parse(JSON.stringify(e,Object.getOwnPropertyNames(e)))}}};nt.prototype.submit=async function(t,e="GET",s=null,l=!0){const i=this.uri(t);let n={method:e,headers:{"Content-type":"application/json; charset=UTF-8"},credentials:"include"};e!="GET"&&(n.body=JSON.stringify(s)),l&&(n.headers.Authorization="Token "+nt._key);const r=await fetch(i,n);if(!r.ok){const o=await this.jsonHelper(r),a=i+": "+r.statusText+` +> `+JSON.stringify(o);throw st.emit("addAlert",{message:a,alertClass:"alert-warning"}),new Error(a)}return this.emitCorpusesUpdate(t),r};nt.prototype.emitCorpusesUpdate=async function(t){["/corpuses/","/tasks/","/user/check","/user/get-temp-user","/user/logout","/rest-auth/registration/","/rest-auth/login/","/rest-auth/logout/"].some(s=>t.endsWith(s))||(st.emit("updateCorpuses"),st.emit("updateTasks"))};const sa={data(){return{api:new nt,loggedin:!1}},computed:{userinfo(){return this.loggedin?"Guest.":"Log in."}},methods:{meow(){console.log("meow")},async getTempUser(){const e=await(await this.api.submit("/user/get-temp-user","GET",null,!1)).json();return e.success?(nt._key=e.key,!0):(console.error("get-temp-user unsuccessful"),!1)},async updateUser(){if(!nt._key&&!await this.getTempUser()){console.error("could not get the temp user.");return}this.loggedin=!0,st.emit("updateCorpuses"),st.emit("updateTasks")},async logout(){this.api.submit("/user/logout").then(()=>{nt._key=null,this.loggedin=!1,this.updateUser()})}},async created(){await this.updateUser()}},la={id:"frontend_auth_div"},ia={class:"userinfo_p"};function na(t,e,s,l,i,n){return R(),z("div",la,[h("p",ia,At(n.userinfo),1),h("p",{onClick:e[0]||(e[0]=r=>n.logout()),class:"btn logout_button"}," Logout ")])}const ra=gt(sa,[["render",na],["__scopeId","data-v-72d1c363"]]),oa=JSON.parse(localStorage.getItem("sharedState"))||{},G=$e({annotator_name:"chatgpt_ft0",lang_from:"German",lang_to:"English",toRemote:!0,openaiApiKey:null,openaiModel:"gpt-4o-mini",outerRetry:2,innerRetry:3,maxGloss:80,fullPrompt:!0,currentOpenCorpus:"",...oa}),aa={data(){return G},watch:{annotator_name(){this.emitChange()},lang_from(){this.emitChange()},lang_to(){this.emitChange()},toRemote(){this.emitChange()}},methods:{emitChange(){G.annotator_name=this.annotator_name,G.lang_from=this.lang_from,G.lang_to=this.lang_to,G.toRemote=this.toRemote}}},ua={class:"container mt-4"},da={class:"row"},ma={class:"col-md-4"},_a={class:"col-md-4"},ga={class:"col-md-4"};function fa(t,e,s,l,i,n){return R(),z(Q,null,[h("div",ua,[h("div",da,[h("div",ma,[e[5]||(e[5]=h("label",{for:"annotator_name"},"annotator_name:",-1)),Tt(h("select",{"onUpdate:modelValue":e[0]||(e[0]=r=>t.annotator_name=r),name:"annotator_name",id:"annotator_name_select",class:"form-control"},e[4]||(e[4]=[fo('',6)]),512),[[Fs,t.annotator_name]])]),h("div",_a,[e[7]||(e[7]=h("label",{for:"lang_from"},"lang_from:",-1)),Tt(h("select",{"onUpdate:modelValue":e[1]||(e[1]=r=>t.lang_from=r),name:"lang_from",id:"lang_from_select",class:"form-control"},e[6]||(e[6]=[h("option",{value:"French"},"French",-1),h("option",{value:"German"},"German",-1),h("option",{value:"Latin"},"Latin",-1)]),512),[[Fs,t.lang_from]])]),h("div",ga,[e[9]||(e[9]=h("label",{for:"lang_to"},"lang_to:",-1)),Tt(h("select",{"onUpdate:modelValue":e[2]||(e[2]=r=>t.lang_to=r),name:"lang_to",id:"lang_to_select",class:"form-control"},e[8]||(e[8]=[h("option",{value:"English"},"English",-1)]),512),[[Fs,t.lang_to]])])])]),e[11]||(e[11]=h("br",null,null,-1)),h("div",null,[Tt(h("input",{"onUpdate:modelValue":e[3]||(e[3]=r=>t.toRemote=r),type:"checkbox",name:"toRemote",id:"toRemote_input",class:"form-check-input",checked:""},null,512),[[pn,t.toRemote]]),e[10]||(e[10]=h("label",{for:"toRemote_input",class:"form-check-label"},"To the remote server",-1))])],64)}const xa=gt(aa,[["render",fa]]),ha={data(){return G},watch:{openaiApiKey(){this.emitChange()},openaiModel(){this.emitChange()},outerRetry(){this.emitChange()},innerRetry(){this.emitChange()},maxGloss(){this.emitChange()},fullPrompt(){this.emitChange()}},computed:{visibility(){return!G.toRemote}},methods:{emitChange(){G.openaiApiKey=this.openaiApiKey,G.openaiModel=this.openaiModel,G.outerRetry=this.outerRetry,G.innerRetry=this.innerRetry,G.maxGloss=this.maxGloss,G.fullPrompt=this.fullPrompt},exportData(){console.log("test");const t=JSON.stringify(G,null,2),e=new Blob([t],{type:"application/json"}),s=URL.createObjectURL(e),l=document.createElement("a");l.href=s,l.download="sharedState.json",l.click(),URL.revokeObjectURL(s)},async importData(t){const s=await t.target.files[0].text(),l=JSON.parse(s);Object.keys(l).forEach(i=>{G.hasOwnProperty(i)&&(G[i]=l[i])})}},mounted(){os(()=>G,t=>{localStorage.setItem("sharedState",JSON.stringify(t))},{deep:!0})}},ca={key:0,class:"container mt-3"},pa={class:"row"},ba={class:"col-md-2"},ka={class:"col-md-2"},wa={class:"col-md-2"},Aa={class:"col-md-2"},Ea={class:"col-md-2"},va={class:"col-md-2 d-flex align-items-center"},ya={class:"row"},Ta={class:"col-md-2 d-flex align-items-center"},Da={class:"col-md-2 d-flex align-items-center"};function Sa(t,e,s,l,i,n){return R(),z(Q,null,[e[15]||(e[15]=h("h4",null,"Local Annotator Options",-1)),n.visibility?(R(),z("div",ca,[h("div",pa,[h("div",ba,[e[8]||(e[8]=h("label",{for:"openaiApiKey"},"OpenAI API Key",-1)),Tt(h("input",{type:"password",class:"form-control",id:"openaiApiKey","onUpdate:modelValue":e[0]||(e[0]=r=>t.openaiApiKey=r)},null,512),[[xe,t.openaiApiKey]])]),h("div",ka,[e[9]||(e[9]=h("label",{for:"openaiModel"},"OpenAI Model",-1)),Tt(h("input",{type:"text",class:"form-control",id:"openaiModel","onUpdate:modelValue":e[1]||(e[1]=r=>t.openaiModel=r)},null,512),[[xe,t.openaiModel]])]),h("div",wa,[e[10]||(e[10]=h("label",{for:"outerRetry"},"Outer Retry",-1)),Tt(h("input",{type:"number",class:"form-control",id:"outerRetry","onUpdate:modelValue":e[2]||(e[2]=r=>t.outerRetry=r),min:"1"},null,512),[[xe,t.outerRetry]])]),h("div",Aa,[e[11]||(e[11]=h("label",{for:"innerRetry"},"Inner Retry",-1)),Tt(h("input",{type:"number",class:"form-control",id:"innerRetry","onUpdate:modelValue":e[3]||(e[3]=r=>t.innerRetry=r),min:"1"},null,512),[[xe,t.innerRetry]])]),h("div",Ea,[e[12]||(e[12]=h("label",{for:"maxGloss"},"Max Gloss",-1)),Tt(h("input",{type:"number",class:"form-control",id:"maxGloss","onUpdate:modelValue":e[4]||(e[4]=r=>t.maxGloss=r),min:"40"},null,512),[[xe,t.maxGloss]])]),h("div",va,[Tt(h("input",{type:"checkbox",class:"form-check-input",id:"fullPrompt","onUpdate:modelValue":e[5]||(e[5]=r=>t.fullPrompt=r)},null,512),[[pn,t.fullPrompt]]),e[13]||(e[13]=h("label",{class:"form-check-label",for:"fullPrompt"},"Full Prompt",-1))])]),h("div",ya,[e[14]||(e[14]=h("div",{class:"col-md-2 d-flex align-items-center"},[h("button",{class:"btn btn-link mt-3"},[h("a",{href:"https://github.com/parkchamchi/GlossySnake/blob/master/docs/design/local.md"},"Info")])],-1)),h("div",Ta,[h("button",{class:"btn btn-link mt-3",onClick:e[6]||(e[6]=(...r)=>n.exportData&&n.exportData(...r))},"Export")]),h("div",Da,[h("input",{type:"file",onChange:e[7]||(e[7]=(...r)=>n.importData&&n.importData(...r)),class:"form-control"},null,32)])])])):Ut("",!0)],64)}const Na=gt(ha,[["render",Sa]]),oi=[{corpus_id:"Winterreise",corpuses_history:[{paragraphs:[{pstate:"ANNOTATED",tokens:[{txt:"#",is_delimiter:!1,gloss:"#"},{txt:" ",is_delimiter:!0,gloss:null},{txt:"Gute",is_delimiter:!1,gloss:"Good"},{txt:" ",is_delimiter:!0,gloss:null},{txt:"Nacht.",is_delimiter:!1,gloss:"Night."}],is_delimiter:!1,token_delimiters:` \r\v\f`,annotator_info:"ChatGptAnnotator_`German`_`English`",original_text:"# Gute Nacht.",annotator_info_obj:{annotator_name:"chatgpt_ft0",lang_from:"German",lang_to:"English"}},{pstate:"PARSED",tokens:[{txt:` `,is_delimiter:!0,gloss:null}],is_delimiter:!0,token_delimiters:` @@ -2460,9 +2460,9 @@ Sent quelque chose encor palpiter sous un voile... C'est toi qui dors dans l'ombre, ô sacré souvenir! "`,p_div_locs:"[260, 262, 516, 518, 753, 755, 1005, 1007, 1233, 1235, 1480, 1482, 1706, 1708, 1934, 1936, 2129, 2131, 2315, 2317, 2506, 2508, 2697, 2699, 2867, 2869, 3074, 3076, 3263, 3265, 3459, 3461, 3643, 3645, 3838, 3840, 4022, 4024, 4228, 4230, 4420, 4422, 4626, 4628, 4837, 4839, 5017, 5019, 5193, 5195, 5380, 5382, 5587, 5589, 5792, 5794, 6001, 6003, 6191, 6193, 6396, 6398, 6578, 6580, 6764, 6766, 6981, 6983, 7174, 7176, 7383, 7385, 7566, 7568, 7767]"}]}];let ai=class{constructor(e,s,l){this.txt=e,this.gloss=s,this.is_delimiter=l}};class kn{constructor(e,s,l){this.annotator_name=e,this.lang_from=s,this.lang_to=l}}let Ga=class{constructor(e,s,l,i,n,r){this.pstate=e,this.tokens=s,this.is_delimiter=l,this.token_delimiters=i,this.original_text=n,this.annotator_info_obj=r}},ja=class wn{constructor(e,s,l,i){this.paragraphs=e,this.paragraph_delimiters=s,this.original_text=l,this.p_div_locs=i}static init_with_txt(e){return new wn([],null,e,[])}};const ui=` \r\v\f`;function Oa(t,e){const s=e.split("").map(i=>i.replace(/[-\/\\^$.*+?()[\]{}|]/g,"\\$&")).join("|");return t.split(new RegExp(`(${s})`)).filter(i=>i!=="").map(i=>({token:i,is_delimiter:e.includes(i)}))}class di{static divide_into_paragraphs(e,s=[` `]){const l=e.original_text;let i=s.map(r=>r.replace("\\n",` -`)),n=[l];i.sort((r,o)=>o.length-r.length),i.forEach(r=>{for(let o=0;o[_,r]).slice(0,-1),n[o]=a}n=[].concat(...n)}),e.p_div_locs=n.reduce((r,o)=>(r.push((r.length?r[r.length-1]:0)+o.length),r),[]),e.paragraphs=n.map(r=>new Ga("DIVIDED",[],s.includes(r),"",r,new kn)),e.paragraph_delimiters=s}static parse_paragraph(e,s=ui){if(s||(s=ui),e.is_delimiter)e.tokens=[new ai(e.original_text,null,!0)];else{const l=Oa(e.original_text,s);e.tokens=l.map(({token:i,is_delimiter:n})=>new ai(i,null,n))}e.pstate="PARSED",e.token_delimiters=s}}const mi="!UNKNOWN";class An{constructor(){this.annotator_name="DUMMYGLOSS"}async annotate(e,s,l){this.lang_from=s,this.lang_to=l,e.is_delimiter||(e.tokens&&e.tokens.length>0&&await this.put_gloss(e),e.pstate="ANNOTATED",e.annotator_info_obj.lang_from=this.lang_from,e.annotator_info_obj.lang_to=this.lang_to,e.annotator_info_obj.annotator_name=this.annotator_name)}async reannotate(e,s,l,i){this.lang_from=s,this.lang_to=l,!e.is_delimiter&&await this.reput_gloss(e,i)}async put_gloss(e){for(const s of e.tokens)s.is_delimiter||(s.gloss=`${this.annotator_name}(${s.txt})`)}async reput_gloss(e,s){for(const[l,i]of e.tokens.entries())s.includes(l)&&(i.gloss=`${this.annotator_name}_reannotated_\`${this.lang_from}\`_\`${this.lang_to}\``)}}const tt="||",vt="!TO_REANNOTATE",Zs="!TOKEN_TO_IGNORE";function _i(t){return t.replace(/[^a-zA-Z]/g,"")}function Ca(t,e){const s=_i(t),l=_i(e);if(!s)return!0;const i=new Set(s),n=new Set(l),r=new Set([...i].filter(_=>n.has(_))),o=new Set([...i,...n]);return(o.size>0?r.size/o.size:0)>=.5}class Ra extends An{constructor(e){super(),this.annotator_name=e,this.glossFetcher=new Ia(!0)}async put_gloss(e){const s=e.tokens.filter(o=>!o.is_delimiter),l=s.map(o=>o.txt),i=this.chunkize(l);console.log(`Chunks: ${i}`);let n=[],r=-1;for(const o of i){const a=o-r;if(a<=0){console.warn("Warning: length <= 0"),r=o;continue}console.log(`[${r+1}:${o+1}] out of ${l.length} (len: ${a})`);const _=l.slice(r+1,o+1);let m=await this.glossFetcher.tryFetchGloss(_);n=n.concat(m),r=o,console.log(`Chunk: ${m} (len: ${m.length})`)}for(let o=0;oO<_+1&&a+1<=O))throw console.log("Skipping this chunk..."),new Error("chunkize_for_reannotation() returned invalid chunks");const f=l.slice(a+1,_+1),k=f.map(O=>O.txt),S=f.map(O=>O.gloss),W=await this.glossFetcher.tryFetchGloss(k,S);console.log(`Chunk: ${W} (len: ${W.length})`);for(let O=0;Oo.length-r.length),i.forEach(r=>{for(let o=0;o[_,r]).slice(0,-1),n[o]=a}n=[].concat(...n)}),e.p_div_locs=n.reduce((r,o)=>(r.push((r.length?r[r.length-1]:0)+o.length),r),[]),e.paragraphs=n.map(r=>new Ga("DIVIDED",[],s.includes(r),"",r,new kn)),e.paragraph_delimiters=s}static parse_paragraph(e,s=ui){if(s||(s=ui),e.is_delimiter)e.tokens=[new ai(e.original_text,null,!0)];else{const l=Oa(e.original_text,s);e.tokens=l.map(({token:i,is_delimiter:n})=>new ai(i,null,n))}e.pstate="PARSED",e.token_delimiters=s}}const mi="!UNKNOWN";class An{constructor(){this.annotator_name="DUMMYGLOSS"}async annotate(e,s,l){this.lang_from=s,this.lang_to=l,e.is_delimiter||(e.tokens&&e.tokens.length>0&&await this.put_gloss(e),e.pstate="ANNOTATED",e.annotator_info_obj.lang_from=this.lang_from,e.annotator_info_obj.lang_to=this.lang_to,e.annotator_info_obj.annotator_name=this.annotator_name)}async reannotate(e,s,l,i){this.lang_from=s,this.lang_to=l,!e.is_delimiter&&await this.reput_gloss(e,i)}async put_gloss(e){for(const s of e.tokens)s.is_delimiter||(s.gloss=`${this.annotator_name}(${s.txt})`)}async reput_gloss(e,s){for(const[l,i]of e.tokens.entries())s.includes(l)&&(i.gloss=`${this.annotator_name}_reannotated_\`${this.lang_from}\`_\`${this.lang_to}\``)}}const tt="||",vt="!TO_REANNOTATE",Zs="!TOKEN_TO_IGNORE";function _i(t){return t.replace(/[^a-zA-Z]/g,"")}function Ca(t,e){const s=_i(t),l=_i(e);if(!s)return!0;const i=new Set(s),n=new Set(l),r=new Set([...i].filter(_=>n.has(_))),o=new Set([...i,...n]);return(o.size>0?r.size/o.size:0)>=.5}class Ra extends An{constructor(e){super(),this.annotator_name=e,this.glossFetcher=new Ia(!0)}async put_gloss(e){const s=e.tokens.filter(o=>!o.is_delimiter),l=s.map(o=>o.txt),i=this.chunkize(l);console.log(`Chunks: ${i}`);let n=[],r=-1;for(const o of i){const a=o-r;if(a<=0){console.warn("Warning: length <= 0"),r=o;continue}console.log(`[${r+1}:${o+1}] out of ${l.length} (len: ${a})`);const _=l.slice(r+1,o+1);let m=await this.glossFetcher.tryFetchGloss(_);n=n.concat(m),r=o,console.log(`Chunk: ${m} (len: ${m.length})`)}for(let o=0;oO<_+1&&a+1<=O))throw console.log("Skipping this chunk..."),new Error("chunkize_for_reannotation() returned invalid chunks");const f=l.slice(a+1,_+1),k=f.map(O=>O.txt),S=f.map(O=>O.gloss),W=await this.glossFetcher.tryFetchGloss(k,S);console.log(`Chunk: ${W} (len: ${W.length})`);for(let O=0;Oa.includes(_))&&i.push(o)}const n=[0];for(;;){const o=n[n.length-1];if(o+l>e.length)break;i=i.filter(m=>m>l);let a=i.filter(m=>m<=l),_;a.length===0?_=o+l:_=Math.max(...a),n.push(_)}n.shift();const r=e.length-1;return n.includes(r)||n.push(r),n}chunkizeForReannotation(e,s=16,l=4){const i=[];for(let n=0;n0){const _=i[i.length-1][1];if(n<_-l)continue}let o=n-s;o<-1&&(o=-1);let a=n+s;a+1>e.length&&(a=e.length-1),i.push([o,a])}return i}}class Wa{constructor(e=!1){this.dummy=e}async fetchGloss(e){if(!this.dummy)throw new Error("NotImplementedError");const s=e.length;return Array.from({length:s},(l,i)=>[`dummy${i}`])}async tryFetchGloss(e){return await this.fetchGloss(e)}}class Ia extends Wa{async tryFetchGloss(e,s=null){console.log(`Trying to fetch ${e.length} glosses`);const l=G.innerRetry,i=G.outerRetry,n=Array.isArray(s);let r;n?(console.log(`Reannotating: ${s}`),r=this.makeQueryReannotation(e,s)):r=this.makeQuery(e);const o=[...this.getChat(n),{role:"user",content:r}];this.lastResText="";for(let a=0;aa.includes(_))&&i.push(o)}const n=[0];for(;;){const o=n[n.length-1];if(o+l>e.length)break;i=i.filter(m=>m>l);let a=i.filter(m=>m<=l),_;a.length===0?_=o+l:_=Math.max(...a),n.push(_)}n.shift();const r=e.length-1;return n.includes(r)||n.push(r),n}chunkizeForReannotation(e,s=16,l=4){const i=[];for(let n=0;n0){const _=i[i.length-1][1];if(n<_-l)continue}let o=n-s;o<-1&&(o=-1);let a=n+s;a+1>e.length&&(a=e.length-1),i.push([o,a])}return i}}class Wa{constructor(e=!1){this.dummy=e}async fetchGloss(e){if(!this.dummy)throw new Error("NotImplementedError");const s=e.length;return Array.from({length:s},(l,i)=>[`dummy${i}`])}async tryFetchGloss(e){return await this.fetchGloss(e)}}class Ia extends Wa{async tryFetchGloss(e,s=null){console.log(`Trying to fetch ${e.length} glosses`);const l=G.innerRetry,i=G.outerRetry,n=Array.isArray(s);let r;n?(console.log(`Reannotating: ${s}`),r=this.makeQueryReannotation(e,s)):r=this.makeQuery(e);const o=[...this.getChat(n),{role:"user",content:r}];this.lastResText="";for(let a=0;ai.json()).then(i=>{const n=i.usage.total_tokens;console.log("token usage:",n);const r=i.choices[0].message.content;this.lastResText=r;let o=this.parseRes(r);return Object.keys(o).length!=e.length&&console.log("parsed:",o),o=this.validateRes(e,o,l),o})}makeQuery(e){let s="";for(const[l,i]of e.entries())s+=`${l}: ${i} @@ -2567,5 +2567,5 @@ chunkGlosses: ${W}`),Z.gloss=z)}}}chunkize(e){const s=[".","!","?"],l=G.maxGloss Parse this corpus (Interlinear gloss). ${l} `,[{role:"system",content:s}]}}function gi(t,e){return console.log(t),t&&t.startsWith("chatgpt_")?new Ra(t,e):new An}const Pa={props:{t:{type:Object,required:!0},index:{type:Number,required:!0}},data(){return{isSelected:!1}},computed:{is_delimiter(){return this.t.is_delimiter},should_linebreak(){return this.t.txt.includes(` -`)},txt(){return this.t.txt},gloss(){let t=this.t.gloss;return t=="!UNKNOWN"&&(t="-"),t}},methods:{toggle(){this.isSelected=!this.isSelected,this.$emit("selectionChanged",{tIndex:this.index,isSelected:this.isSelected})}}},za={class:"token_ul list-group list-group-flush"},La={class:"list-group-item token_txt"},Fa={class:"list-group-item gloss"},Ha={key:1},Ma={key:2,class:"token_wrapper"};function Ua(t,e,s,l,i,n){return n.is_delimiter?n.should_linebreak?(R(),P("br",Ha)):(R(),P("div",Ma,[h("span",null,gt(n.txt),1)])):(R(),P("div",{key:0,class:Wt(["token_wrapper","card",{"selected-token":i.isSelected}]),onClick:e[0]||(e[0]=r=>n.toggle())},[h("ul",za,[h("li",La,gt(n.txt),1),h("li",Fa,gt(n.gloss),1)])],2))}const qa=ft(Pa,[["render",Ua],["__scopeId","data-v-6dcfb1f3"]]),$a={props:{p:{type:Object,required:!0},index:{type:Number,required:!0},remote:{type:Boolean,default:!1}},components:{Token:qa},computed:{isAnnotateButtonVisible(){return!this.p.is_delimiter&&this.p.tokens&&this.p.tokens.length},shouldShowManipulatorButtons(){return this.remote&&G.toRemote||!this.remote&&!G.toRemote&&G.openaiApiKey}},data(){return{selectedTokens:new Set,showPre:!1}},methods:{annotateP(){this.$emit("annotateP",this.index)},reannotateP(){this.$emit("reannotateP",this.index,Array.from(this.selectedTokens))},onSelectionChanged({tIndex:t,isSelected:e}){e?this.selectedTokens.add(t):this.selectedTokens.delete(t)}}},Ba={class:"paragraph_wrapper"},Ka={key:0,class:"paragraph_annotate_buttons_span"},Va={key:1};function Ja(t,e,s,l,i,n){const r=kt("Token");return R(),P("div",Ba,[n.isAnnotateButtonVisible&&n.shouldShowManipulatorButtons?(R(),P("span",Ka,[h("button",{class:"corpus_button btn btn-light",onClick:e[0]||(e[0]=o=>n.annotateP(s.index))}," Annotate "),h("button",{class:"corpus_button btn btn-light",onClick:e[1]||(e[1]=o=>n.reannotateP(s.index))}," Reannotate "),e[2]||(e[2]=h("br",null,null,-1))])):It("",!0),i.showPre?(R(),P("pre",Va,gt(JSON.stringify(s.p)),1)):It("",!0),(R(!0),P(Q,null,ae(s.p.tokens,(o,a)=>(R(),me(r,{key:a,t:o,index:a,onSelectionChanged:n.onSelectionChanged},null,8,["t","index","onSelectionChanged"]))),128))])}const Qa=ft($a,[["render",Ja],["__scopeId","data-v-d3c29f34"]]),Ya={props:{corpus_id:{required:!0},corpus:{type:Object,required:!0},remote:{type:Boolean,default:!1}},components:{Paragraph:Qa},data(){return{api:new nt,sharedState:G,showPre:!1,mounted:!1,fixedHeader:!1}},computed:{isCorpusVisible(){return this.mounted&&G.currentOpenCorpus==this.corpus_id},pseudoState(){return!this.corpus.paragraphs||this.corpus.paragraphs.length<=0?"PLAIN":this.corpus.paragraphs[0].pstate},divideButtonClass(){const t=this.pseudoState=="PLAIN";return{"btn-primary":t,"btn-light":!t}},parseButtonClass(){const t=this.pseudoState=="DIVIDED";return{"btn-primary":t,"btn-light":!t}},annotateButtonClass(){const t=this.pseudoState=="PARSED";return{"btn-primary":t,"btn-light":!t}},header(){return this.remote?"REMOTE":"LOCAL"},shouldShowManipulatorButtons(){return this.remote&&G.toRemote||!this.remote&&!G.toRemote&&G.openaiApiKey}},methods:{toggleCorpusVisibility(){G.currentOpenCorpus==this.corpus_id?G.currentOpenCorpus="":G.currentOpenCorpus=this.corpus_id,this.fixedHeader&&(this.fixedHeader=!1,setTimeout(()=>this.scrollToOriginalHeader(),500))},download(){const t=JSON.stringify(this.corpus);console.log("Downloading...");let e=document.createElement("a"),s=new Blob([t],{type:"text/plain"});e.download=this.corpus_id+".corpus.json",e.href=URL.createObjectURL(s),e.click()},async divide(t=` -`){return G.toRemote?this.divideRemote(t):this.divideLocal(t)},async parse(){return G.toRemote?this.parseRemote():this.parseLocal()},async annotate(t=null){return G.toRemote?this.annotateRemote(t):this.annotateLocal(t)},async reannotate(t,e){if(!e){console.error("target_tokens is not given");return}if(e.length==0){st.emit("addAlert",{message:"No token selected.",alertClass:"alert-warning"});return}return G.toRemote?this.reannotateRemote(t,e):this.reannotateLocal(t,e)},async divideRemote(t){this.api.submit("/parser/divide","POST",{corpus_id:this.corpus_id,divide_options:{p_delims:[t]}})},async parseRemote(){this.api.submit("/parser/parse","POST",{corpus_id:this.corpus_id,parse_options:{t_delims:null}})},async annotateRemote(t){this.api.submit("/annotator/annotate","POST",{corpus_id:this.corpus_id,annotate_options:{annotator_name:this.sharedState.annotator_name,lang_from:this.sharedState.lang_from,lang_to:this.sharedState.lang_to,target_paragraphs:t}})},async reannotateRemote(t,e){this.api.submit("/annotator/reannotate","POST",{corpus_id:this.corpus_id,annotate_options:{annotator_name:this.sharedState.annotator_name,lang_from:this.sharedState.lang_from,lang_to:this.sharedState.lang_to,target_paragraphs:t},reannotate_options:{target_tokens:e}})},async divideLocal(t){di.divide_into_paragraphs(this.corpus,[t])},async parseLocal(){for(const t of this.corpus.paragraphs)di.parse_paragraph(t)},async annotateLocal(t){const e=gi(G.annotator_name),s=G.lang_from,l=G.lang_to;t&&(t.length==1&&t[0]==-1&&(t=this.corpus.paragraphs.map((i,n)=>({p:i,i:n})).filter(({p:i})=>!i.is_delimiter&&i.pstate!="ANNOTATED").map(({i})=>i)),console.log(t));for(const[i,n]of this.corpus.paragraphs.entries())t&&!t.includes(i)||await e.annotate(n,s,l)},async reannotateLocal(t,e){const s=gi(G.annotator_name),l=G.lang_from,i=G.lang_to,n=t[0],r=this.corpus.paragraphs[n];l||(l=r.annotator_info_obj.lang_from),i||(i=r.annotator_info_obj.lang_to),await s.reannotate(r,l,i,e)},debounce(t,e){let s;return(...l)=>{clearTimeout(s),s=setTimeout(()=>t.apply(this,l),e)}},handleIntersection(t){t.forEach(e=>this.fixedHeader=this.isCorpusVisible&&!e.isIntersecting&&e.boundingClientRect.top<0)},scrollToOriginalHeader(){this.$refs.header.scrollIntoView({behavior:"smooth"})},onAnnotateP(t){this.annotate([t])},onReannotateP(t,e){this.reannotate([t],e)}},mounted(){this.mounted=!0,new IntersectionObserver(this.debounce(this.handleIntersection,100),{threshold:[0]}).observe(this.$refs.header)},beforeDestroy(){this.observer&&this.observer.disconnect()}},Za={class:"corpus_wrapper"},Xa={key:1,class:"corpus"},tu={class:"corpus_buttons_span"},eu={key:0},su={key:0,class:"corpus-pre"};function lu(t,e,s,l,i,n){const r=kt("Paragraph");return R(),P("div",Za,[e[10]||(e[10]=h("hr",null,null,-1)),h("h4",{onClick:e[0]||(e[0]=o=>n.toggleCorpusVisibility()),ref:"header"},gt(n.header+": "+s.corpus_id),513),i.fixedHeader?(R(),P("h4",{key:0,onClick:e[1]||(e[1]=o=>n.toggleCorpusVisibility()),class:"fixedHeader",ref:"fixedHeader"},gt(n.header+": "+s.corpus_id),513)):It("",!0),n.isCorpusVisible?(R(),P("div",Xa,[h("span",tu,[h("button",{class:"corpus_button btn btn-light",onClick:e[2]||(e[2]=o=>n.download())},"Download"),n.shouldShowManipulatorButtons?(R(),P("span",eu,[h("button",{class:Wt(["corpus_button","btn",n.divideButtonClass]),onClick:e[3]||(e[3]=o=>n.divide())},"Divide",2),h("button",{class:Wt(["corpus_button","btn",n.divideButtonClass]),onClick:e[4]||(e[4]=o=>n.divide("\\n\\n"))},"Divide (for poems)",2),h("button",{class:Wt(["corpus_button","btn",n.parseButtonClass]),onClick:e[5]||(e[5]=o=>n.parse())},"Parse",2),h("button",{class:Wt(["corpus_button","btn",n.annotateButtonClass]),onClick:e[6]||(e[6]=o=>n.annotate([-1]))}," Annotate ",2),h("button",{class:Wt(["corpus_button","btn",n.annotateButtonClass]),onClick:e[7]||(e[7]=o=>n.annotate(null))}," Annotate (Reset) ",2)])):It("",!0)]),e[8]||(e[8]=h("br",null,null,-1)),i.showPre?(R(),P("pre",su,gt(JSON.stringify(s.corpus)),1)):It("",!0),e[9]||(e[9]=h("h4",null,"paragraphs",-1)),(R(!0),P(Q,null,ae(s.corpus.paragraphs,(o,a)=>(R(),me(r,{key:a,p:o,index:a,remote:s.remote,onAnnotateP:n.onAnnotateP,onReannotateP:n.onReannotateP},null,8,["p","index","remote","onAnnotateP","onReannotateP"]))),128))])):It("",!0)])}const iu=ft(Ya,[["render",lu],["__scopeId","data-v-6e7e4e53"]]),nu={components:{Corpus:iu},data(){return{api:new nt,sampleHost:"https://parkchamchi.github.io/GlossySnake/samples/v1/",localCorpuses:JSON.parse(localStorage.getItem("localCorpuses"))||[...oi],remoteCorpuses:[],remoteSampleFilenames:[]}},watch:{localCorpuses:{handler(t){localStorage.setItem("localCorpuses",JSON.stringify(t))},deep:!0}},methods:{async updateCorpuses(){const e=await(await this.api.submit("/corpuses/")).json();this.remoteCorpuses=e},async getRemoteSamples(){await fetch(this.sampleHost).then(t=>t.json()).then(t=>{this.remoteSampleFilenames=t.filenames})},async getRemoteSampleCorpus(t){fetch(this.sampleHost+t).then(e=>e.json()).then(e=>{const s=t.replace(".corpus.json","");this.addLocalCorpus({corpus_id:s,corpus:e})})},async addLocalCorpus({corpus_id:t,corpus:e}){let s=t;s==""&&(s="Corpus");const l=new Set(this.localCorpuses.map(n=>n.corpus_id));let i=1;for(;l.has(s);)s=`${t} (${i++})`;this.localCorpuses.push({corpus_id:s,corpuses_history:[e]})},clearCorpuses(){this.localCorpuses=[...oi]}},created(){st.on("updateCorpuses",this.updateCorpuses),st.on("addLocalCorpus",this.addLocalCorpus),this.getRemoteSamples()},mounted(){G.currentOpenCorpus=""},beforeDestroy(){st.off("updateCorpuses",this.updateCorpuses),st.off("addLocalCorpus",this.addLocalCorpus)}},ru={key:0},ou=["onClick"];function au(t,e,s,l,i,n){const r=kt("Corpus");return R(),P(Q,null,[h("p",{onClick:e[0]||(e[0]=(...o)=>n.clearCorpuses&&n.clearCorpuses(...o))},"[Clear data]"),i.remoteSampleFilenames.length>0?(R(),P("div",ru,[e[1]||(e[1]=h("h4",null,"Get a sample:",-1)),(R(!0),P(Q,null,ae(i.remoteSampleFilenames,(o,a)=>(R(),P("p",{class:"sampleLinkP",onClick:_=>n.getRemoteSampleCorpus(o)},gt(o),9,ou))),256))])):It("",!0),h("div",null,[(R(!0),P(Q,null,ae(i.localCorpuses,(o,a)=>(R(),me(r,{key:a,corpus:o.corpuses_history.at(-1),corpus_id:o.corpus_id,remote:!1},null,8,["corpus","corpus_id"]))),128)),(R(!0),P(Q,null,ae(i.remoteCorpuses,(o,a)=>(R(),me(r,{key:a,corpus:o.corpuses_history.at(-1),corpus_id:o.corpus_id,remote:!0},null,8,["corpus","corpus_id"]))),128))])],64)}const uu=ft(nu,[["render",au],["__scopeId","data-v-595ba0a0"]]),du={data(){return{api:new nt,originalText:""}},methods:{async onUploadButtonClicked(){return G.toRemote?this.uploadOriginalTextRemote():this.uploadOriginalTextLocal()},async onJsonFileInput(t){const s=await t.target.files[0].text(),l=JSON.parse(s);return G.toRemote?this.uploadJsonFileRemote(l):this.uploadJsonFileLocal(l)},async uploadOriginalTextRemote(){this.api.submit("/upload","POST",{original_text:this.originalText}).then(t=>t.json()).then(t=>{st.emit("addAlert",{message:"Uploaded corpus "+t.corpus_id})})},async uploadJsonFileRemote(t){this.api.submit("/upload","POST",{corpus:t}).then(e=>e.json()).then(e=>{st.emit("addAlert",{message:"Uploaded corpus "+e.corpus_id})})},async uploadOriginalTextLocal(){const t=this.makeTitle(this.originalText),e=ja.init_with_txt(this.originalText);st.emit("addLocalCorpus",{corpus_id:t,corpus:e})},async uploadJsonFileLocal(t){const e=this.makeTitle(t.original_text);st.emit("addLocalCorpus",{corpus_id:e,corpus:t})},makeTitle(t,e=16){return t.substring(0,e)}}},mu={id:"frontend_upload_div"};function _u(t,e,s,l,i,n){return R(),P("div",mu,[e[3]||(e[3]=h("h3",null,"Upload...",-1)),e[4]||(e[4]=h("label",{for:"frontend_original_text"},"Original Text",-1)),e[5]||(e[5]=h("br",null,null,-1)),yt(h("textarea",{"onUpdate:modelValue":e[0]||(e[0]=r=>i.originalText=r),class:"context_input auto-resize field_input",name:"frontend_original_text",spellcheck:"false",autofocus:"",placeholder:"Original Text",id:"frontend_original_text_textarea"},null,512),[[xe,i.originalText]]),e[6]||(e[6]=h("br",null,null,-1)),h("button",{onClick:e[1]||(e[1]=r=>n.onUploadButtonClicked()),id:"frontend_original_text_button",class:"btn btn-primary"}," Upload "),e[7]||(e[7]=h("br",null,null,-1)),e[8]||(e[8]=h("p",null,"...or the JSON file",-1)),h("input",{type:"file",id:"json_file_input",onChange:e[2]||(e[2]=(...r)=>n.onJsonFileInput&&n.onJsonFileInput(...r))},null,32),e[9]||(e[9]=h("br",null,null,-1))])}const gu=ft(du,[["render",_u],["__scopeId","data-v-969ca212"]]),fu={props:{message:{type:String,required:!0},alertClass:{type:String,default:"alert-warning",validator(t){return["alert-success","alert-warning","alert-info","alert-light"].includes(t)}},timeout:{type:Number,default:5e4}},data(){return{showAlert:!1,alertMessage:this.message}},mounted(){this.showAlert=!0,setTimeout(()=>{this.showAlert=!1},this.timeout)}};function xu(t,e,s,l,i,n){return i.showAlert?(R(),P("div",{key:0,class:Wt(["alert",this.alertClass]),role:"alert"},gt(i.alertMessage),3)):It("",!0)}const hu=ft(fu,[["render",xu]]),cu={components:{Alert:hu},data(){return{alerts:[],maxAlerts:3}},methods:{addAlert({message:t,alertClass:e="alert-light"}){this.alerts.length>=this.maxAlerts&&this.alerts.shift(),this.alerts.push({message:t,alertClass:e})}},created(){st.on("addAlert",this.addAlert)},beforeDestroy(){st.off("addAlert",this.addAlert)}};function pu(t,e,s,l,i,n){const r=kt("Alert");return R(),P("div",null,[(R(!0),P(Q,null,ae(i.alerts,(o,a)=>(R(),me(r,{key:a,message:o.message,timeout:o.timeout,alertClass:o.alertClass},null,8,["message","timeout","alertClass"]))),128))])}const bu=ft(cu,[["render",pu]]),ku={props:{task_id:{required:!0},status:{type:String,required:!0},target_corpus_id:{required:!0}},data(){return{api:new nt}},computed:{isAbortButtonShown(){return["READY","RUNNING"].includes(this.status)}},methods:{async abort(){this.api.submit("/tasks/"+this.task_id+"/abort")}}},wu={class:"task_wrapper"};function Au(t,e,s,l,i,n){return R(),P("div",wu,[e[1]||(e[1]=h("hr",null,null,-1)),h("p",null,[xs(" Task: "+gt(s.task_id)+" ",1),n.isAbortButtonShown?(R(),P("button",{key:0,class:"task_button btn btn-light",onClick:e[0]||(e[0]=r=>n.abort())}," Abort ")):It("",!0),xs(" for corpus: "+gt(s.target_corpus_id)+" ("+gt(s.status)+") ",1)])])}const Eu=ft(ku,[["render",Au]]),vu={components:{Task:Eu},data(){return{api:new nt,tasks:[]}},methods:{async updateTasks(){const e=await(await this.api.submit("/tasks/")).json();this.tasks=e}},created(){st.on("updateTasks",this.updateTasks)},beforeDestroy(){st.off("updateTasks",this.updateTasks)}};function yu(t,e,s,l,i,n){const r=kt("Task");return R(),P(Q,null,[e[0]||(e[0]=h("h3",null,"Tasks",-1)),h("div",null,[(R(!0),P(Q,null,ae(i.tasks,(o,a)=>(R(),me(r,{key:a,task_id:o.task_id,status:o.status,target_corpus_id:o.target_corpus_id},null,8,["task_id","status","target_corpus_id"]))),128))])],64)}const Tu=ft(vu,[["render",yu]]),Du={components:{Header:ea,RestAuth:ra,AnnotatorSelect:xa,LocalAnnotatorOptions:Na,CorpusesView:uu,UploadView:gu,AlertsView:bu,TasksView:Tu},data(){return{}}};function Su(t,e,s,l,i,n){const r=kt("Header"),o=kt("RestAuth"),a=kt("AnnotatorSelect"),_=kt("LocalAnnotatorOptions"),m=kt("CorpusesView"),f=kt("UploadView"),k=kt("AlertsView"),S=kt("TasksView");return R(),P(Q,null,[h("header",null,[et(r)]),h("main",null,[et(o),e[0]||(e[0]=h("hr",null,null,-1)),et(a),e[1]||(e[1]=h("hr",null,null,-1)),et(_),e[2]||(e[2]=h("hr",null,null,-1)),et(m),e[3]||(e[3]=h("hr",null,null,-1)),et(f),e[4]||(e[4]=h("hr",null,null,-1)),et(k),e[5]||(e[5]=h("hr",null,null,-1)),et(S)])],64)}const Nu=ft(Du,[["render",Su],["__scopeId","data-v-26848532"]]);Qo(Nu).mount("#app"); +`)},txt(){return this.t.txt},gloss(){let t=this.t.gloss;return t=="!UNKNOWN"&&(t="-"),t}},methods:{toggle(){this.isSelected=!this.isSelected,this.$emit("selectionChanged",{tIndex:this.index,isSelected:this.isSelected})}}},za={class:"token_ul list-group list-group-flush"},La={class:"list-group-item token_txt"},Fa={class:"list-group-item gloss"},Ha={key:1},Ma={key:2,class:"token_wrapper"};function Ua(t,e,s,l,i,n){return n.is_delimiter?n.should_linebreak?(R(),z("br",Ha)):(R(),z("div",Ma,[h("span",null,At(n.txt),1)])):(R(),z("div",{key:0,class:yt(["token_wrapper","card",{"selected-token":i.isSelected}]),onClick:e[0]||(e[0]=r=>n.toggle())},[h("ul",za,[h("li",La,At(n.txt),1),h("li",Fa,At(n.gloss),1)])],2))}const qa=gt(Pa,[["render",Ua],["__scopeId","data-v-6dcfb1f3"]]),$a={props:{p:{type:Object,required:!0},index:{type:Number,required:!0},remote:{type:Boolean,default:!1}},components:{Token:qa},computed:{isAnnotateButtonVisible(){return!this.p.is_delimiter&&this.p.tokens&&this.p.tokens.length},shouldShowManipulatorButtons(){return this.remote&&G.toRemote||!this.remote&&!G.toRemote&&G.openaiApiKey}},data(){return{selectedTokens:new Set,showPre:!1}},methods:{annotateP(){this.$emit("annotateP",this.index)},reannotateP(){this.$emit("reannotateP",this.index,Array.from(this.selectedTokens))},onSelectionChanged({tIndex:t,isSelected:e}){e?this.selectedTokens.add(t):this.selectedTokens.delete(t)}}},Ba={class:"paragraph_wrapper"},Ka={key:0,class:"paragraph_annotate_buttons_span"},Va={key:1};function Ja(t,e,s,l,i,n){const r=bt("Token");return R(),z("div",Ba,[n.isAnnotateButtonVisible&&n.shouldShowManipulatorButtons?(R(),z("span",Ka,[h("button",{class:"corpus_button btn btn-light",onClick:e[0]||(e[0]=o=>n.annotateP(s.index))}," Annotate "),h("button",{class:"corpus_button btn btn-light",onClick:e[1]||(e[1]=o=>n.reannotateP(s.index))}," Reannotate "),e[2]||(e[2]=h("br",null,null,-1))])):Ut("",!0),i.showPre?(R(),z("pre",Va,At(JSON.stringify(s.p)),1)):Ut("",!0),(R(!0),z(Q,null,ae(s.p.tokens,(o,a)=>(R(),me(r,{key:a,t:o,index:a,onSelectionChanged:n.onSelectionChanged},null,8,["t","index","onSelectionChanged"]))),128))])}const Qa=gt($a,[["render",Ja],["__scopeId","data-v-d3c29f34"]]),Ya={props:{corpus_id:{required:!0},corpus:{type:Object,required:!0},remote:{type:Boolean,default:!1}},components:{Paragraph:Qa},data(){return{api:new nt,sharedState:G,showPre:!1,mounted:!1}},computed:{isCorpusVisible(){return this.mounted&&G.currentOpenCorpus==this.corpus_id},pseudoState(){return!this.corpus.paragraphs||this.corpus.paragraphs.length<=0?"PLAIN":this.corpus.paragraphs[0].pstate},divideButtonClass(){const t=this.pseudoState=="PLAIN";return{"btn-primary":t,"btn-light":!t}},parseButtonClass(){const t=this.pseudoState=="DIVIDED";return{"btn-primary":t,"btn-light":!t}},annotateButtonClass(){const t=this.pseudoState=="PARSED";return{"btn-primary":t,"btn-light":!t}},header(){return this.remote?"REMOTE":"LOCAL"},shouldShowManipulatorButtons(){return this.remote&&G.toRemote||!this.remote&&!G.toRemote&&G.openaiApiKey}},methods:{toggleCorpusVisibility(){G.currentOpenCorpus==this.corpus_id?G.currentOpenCorpus="":G.currentOpenCorpus=this.corpus_id},download(){const t=JSON.stringify(this.corpus);console.log("Downloading...");let e=document.createElement("a"),s=new Blob([t],{type:"text/plain"});e.download=this.corpus_id+".corpus.json",e.href=URL.createObjectURL(s),e.click()},async divide(t=` +`){return G.toRemote?this.divideRemote(t):this.divideLocal(t)},async parse(){return G.toRemote?this.parseRemote():this.parseLocal()},async annotate(t=null){return G.toRemote?this.annotateRemote(t):this.annotateLocal(t)},async reannotate(t,e){if(!e){console.error("target_tokens is not given");return}if(e.length==0){st.emit("addAlert",{message:"No token selected.",alertClass:"alert-warning"});return}return G.toRemote?this.reannotateRemote(t,e):this.reannotateLocal(t,e)},async divideRemote(t){this.api.submit("/parser/divide","POST",{corpus_id:this.corpus_id,divide_options:{p_delims:[t]}})},async parseRemote(){this.api.submit("/parser/parse","POST",{corpus_id:this.corpus_id,parse_options:{t_delims:null}})},async annotateRemote(t){this.api.submit("/annotator/annotate","POST",{corpus_id:this.corpus_id,annotate_options:{annotator_name:this.sharedState.annotator_name,lang_from:this.sharedState.lang_from,lang_to:this.sharedState.lang_to,target_paragraphs:t}})},async reannotateRemote(t,e){this.api.submit("/annotator/reannotate","POST",{corpus_id:this.corpus_id,annotate_options:{annotator_name:this.sharedState.annotator_name,lang_from:this.sharedState.lang_from,lang_to:this.sharedState.lang_to,target_paragraphs:t},reannotate_options:{target_tokens:e}})},async divideLocal(t){di.divide_into_paragraphs(this.corpus,[t])},async parseLocal(){for(const t of this.corpus.paragraphs)di.parse_paragraph(t)},async annotateLocal(t){const e=gi(G.annotator_name),s=G.lang_from,l=G.lang_to;t&&(t.length==1&&t[0]==-1&&(t=this.corpus.paragraphs.map((i,n)=>({p:i,i:n})).filter(({p:i})=>!i.is_delimiter&&i.pstate!="ANNOTATED").map(({i})=>i)),console.log(t));for(const[i,n]of this.corpus.paragraphs.entries())t&&!t.includes(i)||await e.annotate(n,s,l)},async reannotateLocal(t,e){const s=gi(G.annotator_name),l=G.lang_from,i=G.lang_to,n=t[0],r=this.corpus.paragraphs[n];l||(l=r.annotator_info_obj.lang_from),i||(i=r.annotator_info_obj.lang_to),await s.reannotate(r,l,i,e)},scrollToOriginalHeader(){this.$refs.header.scrollIntoView({behavior:"smooth"})},handleResizeOrScroll(){this.isCorpusVisible&&this.scrollToOriginalHeader()},onAnnotateP(t){this.annotate([t])},onReannotateP(t,e){this.reannotate([t],e)}},watch:{isCorpusVisible(t){document.body.style.overflow=t?"hidden":"",this.scrollToOriginalHeader()}},mounted(){this.mounted=!0,window.addEventListener("resize",this.handleResizeOrScroll),window.addEventListener("scroll",this.handleResizeOrScroll)},beforeDestroy(){window.removeEventListener("resize",this.handleResizeOrScroll),window.removeEventListener("scroll",this.handleResizeOrScroll)}},Za={key:0,class:"corpus"},Xa={class:"corpus_buttons_span"},tu={key:0},eu={key:0,class:"corpus-pre"};function su(t,e,s,l,i,n){const r=bt("Paragraph");return R(),z("div",{class:yt(["corpus_wrapper",{"full-screen":n.isCorpusVisible}])},[e[9]||(e[9]=h("hr",null,null,-1)),h("h4",{onClick:e[0]||(e[0]=o=>n.toggleCorpusVisibility()),ref:"header"},At(n.header+": "+s.corpus_id),513),n.isCorpusVisible?(R(),z("div",Za,[h("span",Xa,[h("button",{class:"corpus_button btn btn-light",onClick:e[1]||(e[1]=o=>n.download())},"Download"),n.shouldShowManipulatorButtons?(R(),z("span",tu,[h("button",{class:yt(["corpus_button","btn",n.divideButtonClass]),onClick:e[2]||(e[2]=o=>n.divide())},"Divide",2),h("button",{class:yt(["corpus_button","btn",n.divideButtonClass]),onClick:e[3]||(e[3]=o=>n.divide("\\n\\n"))},"Divide (for poems)",2),h("button",{class:yt(["corpus_button","btn",n.parseButtonClass]),onClick:e[4]||(e[4]=o=>n.parse())},"Parse",2),h("button",{class:yt(["corpus_button","btn",n.annotateButtonClass]),onClick:e[5]||(e[5]=o=>n.annotate([-1]))}," Annotate ",2),h("button",{class:yt(["corpus_button","btn",n.annotateButtonClass]),onClick:e[6]||(e[6]=o=>n.annotate(null))}," Annotate (Reset) ",2)])):Ut("",!0)]),e[7]||(e[7]=h("br",null,null,-1)),i.showPre?(R(),z("pre",eu,At(JSON.stringify(s.corpus)),1)):Ut("",!0),e[8]||(e[8]=h("h4",null,"paragraphs",-1)),(R(!0),z(Q,null,ae(s.corpus.paragraphs,(o,a)=>(R(),me(r,{key:a,p:o,index:a,remote:s.remote,onAnnotateP:n.onAnnotateP,onReannotateP:n.onReannotateP},null,8,["p","index","remote","onAnnotateP","onReannotateP"]))),128))])):Ut("",!0)],2)}const lu=gt(Ya,[["render",su],["__scopeId","data-v-9d6ae32e"]]),iu={components:{Corpus:lu},data(){return{api:new nt,sampleHost:"https://parkchamchi.github.io/GlossySnake/samples/v1/",localCorpuses:JSON.parse(localStorage.getItem("localCorpuses"))||[...oi],remoteCorpuses:[],remoteSampleFilenames:[]}},watch:{localCorpuses:{handler(t){localStorage.setItem("localCorpuses",JSON.stringify(t))},deep:!0}},methods:{async updateCorpuses(){const e=await(await this.api.submit("/corpuses/")).json();this.remoteCorpuses=e},async getRemoteSamples(){await fetch(this.sampleHost).then(t=>t.json()).then(t=>{this.remoteSampleFilenames=t.filenames})},async getRemoteSampleCorpus(t){fetch(this.sampleHost+t).then(e=>e.json()).then(e=>{const s=t.replace(".corpus.json","");this.addLocalCorpus({corpus_id:s,corpus:e})})},async addLocalCorpus({corpus_id:t,corpus:e}){let s=t;s==""&&(s="Corpus");const l=new Set(this.localCorpuses.map(n=>n.corpus_id));let i=1;for(;l.has(s);)s=`${t} (${i++})`;this.localCorpuses.push({corpus_id:s,corpuses_history:[e]})},clearCorpuses(){this.localCorpuses=[...oi]}},created(){st.on("updateCorpuses",this.updateCorpuses),st.on("addLocalCorpus",this.addLocalCorpus),this.getRemoteSamples()},mounted(){G.currentOpenCorpus=""},beforeDestroy(){st.off("updateCorpuses",this.updateCorpuses),st.off("addLocalCorpus",this.addLocalCorpus)}},nu={key:0},ru=["onClick"];function ou(t,e,s,l,i,n){const r=bt("Corpus");return R(),z(Q,null,[h("p",{onClick:e[0]||(e[0]=(...o)=>n.clearCorpuses&&n.clearCorpuses(...o))},"[Clear data]"),i.remoteSampleFilenames.length>0?(R(),z("div",nu,[e[1]||(e[1]=h("h4",null,"Get a sample:",-1)),(R(!0),z(Q,null,ae(i.remoteSampleFilenames,(o,a)=>(R(),z("p",{class:"sampleLinkP",onClick:_=>n.getRemoteSampleCorpus(o)},At(o),9,ru))),256))])):Ut("",!0),h("div",null,[(R(!0),z(Q,null,ae(i.localCorpuses,(o,a)=>(R(),me(r,{key:a,corpus:o.corpuses_history.at(-1),corpus_id:o.corpus_id,remote:!1},null,8,["corpus","corpus_id"]))),128)),(R(!0),z(Q,null,ae(i.remoteCorpuses,(o,a)=>(R(),me(r,{key:a,corpus:o.corpuses_history.at(-1),corpus_id:o.corpus_id,remote:!0},null,8,["corpus","corpus_id"]))),128))])],64)}const au=gt(iu,[["render",ou],["__scopeId","data-v-595ba0a0"]]),uu={data(){return{api:new nt,originalText:""}},methods:{async onUploadButtonClicked(){return G.toRemote?this.uploadOriginalTextRemote():this.uploadOriginalTextLocal()},async onJsonFileInput(t){const s=await t.target.files[0].text(),l=JSON.parse(s);return G.toRemote?this.uploadJsonFileRemote(l):this.uploadJsonFileLocal(l)},async uploadOriginalTextRemote(){this.api.submit("/upload","POST",{original_text:this.originalText}).then(t=>t.json()).then(t=>{st.emit("addAlert",{message:"Uploaded corpus "+t.corpus_id})})},async uploadJsonFileRemote(t){this.api.submit("/upload","POST",{corpus:t}).then(e=>e.json()).then(e=>{st.emit("addAlert",{message:"Uploaded corpus "+e.corpus_id})})},async uploadOriginalTextLocal(){const t=this.makeTitle(this.originalText),e=ja.init_with_txt(this.originalText);st.emit("addLocalCorpus",{corpus_id:t,corpus:e})},async uploadJsonFileLocal(t){const e=this.makeTitle(t.original_text);st.emit("addLocalCorpus",{corpus_id:e,corpus:t})},makeTitle(t,e=16){return t.substring(0,e)}}},du={id:"frontend_upload_div"};function mu(t,e,s,l,i,n){return R(),z("div",du,[e[3]||(e[3]=h("h3",null,"Upload...",-1)),e[4]||(e[4]=h("label",{for:"frontend_original_text"},"Original Text",-1)),e[5]||(e[5]=h("br",null,null,-1)),Tt(h("textarea",{"onUpdate:modelValue":e[0]||(e[0]=r=>i.originalText=r),class:"context_input auto-resize field_input",name:"frontend_original_text",spellcheck:"false",autofocus:"",placeholder:"Original Text",id:"frontend_original_text_textarea"},null,512),[[xe,i.originalText]]),e[6]||(e[6]=h("br",null,null,-1)),h("button",{onClick:e[1]||(e[1]=r=>n.onUploadButtonClicked()),id:"frontend_original_text_button",class:"btn btn-primary"}," Upload "),e[7]||(e[7]=h("br",null,null,-1)),e[8]||(e[8]=h("p",null,"...or the JSON file",-1)),h("input",{type:"file",id:"json_file_input",onChange:e[2]||(e[2]=(...r)=>n.onJsonFileInput&&n.onJsonFileInput(...r))},null,32),e[9]||(e[9]=h("br",null,null,-1))])}const _u=gt(uu,[["render",mu],["__scopeId","data-v-969ca212"]]),gu={props:{message:{type:String,required:!0},alertClass:{type:String,default:"alert-warning",validator(t){return["alert-success","alert-warning","alert-info","alert-light"].includes(t)}},timeout:{type:Number,default:5e4}},data(){return{showAlert:!1,alertMessage:this.message}},mounted(){this.showAlert=!0,setTimeout(()=>{this.showAlert=!1},this.timeout)}};function fu(t,e,s,l,i,n){return i.showAlert?(R(),z("div",{key:0,class:yt(["alert",this.alertClass]),role:"alert"},At(i.alertMessage),3)):Ut("",!0)}const xu=gt(gu,[["render",fu]]),hu={components:{Alert:xu},data(){return{alerts:[],maxAlerts:3}},methods:{addAlert({message:t,alertClass:e="alert-light"}){this.alerts.length>=this.maxAlerts&&this.alerts.shift(),this.alerts.push({message:t,alertClass:e})}},created(){st.on("addAlert",this.addAlert)},beforeDestroy(){st.off("addAlert",this.addAlert)}};function cu(t,e,s,l,i,n){const r=bt("Alert");return R(),z("div",null,[(R(!0),z(Q,null,ae(i.alerts,(o,a)=>(R(),me(r,{key:a,message:o.message,timeout:o.timeout,alertClass:o.alertClass},null,8,["message","timeout","alertClass"]))),128))])}const pu=gt(hu,[["render",cu]]),bu={props:{task_id:{required:!0},status:{type:String,required:!0},target_corpus_id:{required:!0}},data(){return{api:new nt}},computed:{isAbortButtonShown(){return["READY","RUNNING"].includes(this.status)}},methods:{async abort(){this.api.submit("/tasks/"+this.task_id+"/abort")}}},ku={class:"task_wrapper"};function wu(t,e,s,l,i,n){return R(),z("div",ku,[e[1]||(e[1]=h("hr",null,null,-1)),h("p",null,[xs(" Task: "+At(s.task_id)+" ",1),n.isAbortButtonShown?(R(),z("button",{key:0,class:"task_button btn btn-light",onClick:e[0]||(e[0]=r=>n.abort())}," Abort ")):Ut("",!0),xs(" for corpus: "+At(s.target_corpus_id)+" ("+At(s.status)+") ",1)])])}const Au=gt(bu,[["render",wu]]),Eu={components:{Task:Au},data(){return{api:new nt,tasks:[]}},methods:{async updateTasks(){const e=await(await this.api.submit("/tasks/")).json();this.tasks=e}},created(){st.on("updateTasks",this.updateTasks)},beforeDestroy(){st.off("updateTasks",this.updateTasks)}};function vu(t,e,s,l,i,n){const r=bt("Task");return R(),z(Q,null,[e[0]||(e[0]=h("h3",null,"Tasks",-1)),h("div",null,[(R(!0),z(Q,null,ae(i.tasks,(o,a)=>(R(),me(r,{key:a,task_id:o.task_id,status:o.status,target_corpus_id:o.target_corpus_id},null,8,["task_id","status","target_corpus_id"]))),128))])],64)}const yu=gt(Eu,[["render",vu]]),Tu={components:{Header:ea,RestAuth:ra,AnnotatorSelect:xa,LocalAnnotatorOptions:Na,CorpusesView:au,UploadView:_u,AlertsView:pu,TasksView:yu},data(){return{}}};function Du(t,e,s,l,i,n){const r=bt("Header"),o=bt("RestAuth"),a=bt("AnnotatorSelect"),_=bt("LocalAnnotatorOptions"),m=bt("CorpusesView"),f=bt("UploadView"),k=bt("AlertsView"),S=bt("TasksView");return R(),z(Q,null,[h("header",null,[et(r)]),h("main",null,[et(o),e[0]||(e[0]=h("hr",null,null,-1)),et(a),e[1]||(e[1]=h("hr",null,null,-1)),et(_),e[2]||(e[2]=h("hr",null,null,-1)),et(m),e[3]||(e[3]=h("hr",null,null,-1)),et(f),e[4]||(e[4]=h("hr",null,null,-1)),et(k),e[5]||(e[5]=h("hr",null,null,-1)),et(S)])],64)}const Su=gt(Tu,[["render",Du],["__scopeId","data-v-26848532"]]);Qo(Su).mount("#app"); diff --git a/static/index-n5fVG-uR.css b/static/index-DZejbQ9h.css similarity index 76% rename from static/index-n5fVG-uR.css rename to static/index-DZejbQ9h.css index 73318a5..cfe0102 100644 --- a/static/index-n5fVG-uR.css +++ b/static/index-DZejbQ9h.css @@ -1 +1 @@ -:root{--vt-c-white: #ffffff;--vt-c-white-soft: #f8f8f8;--vt-c-white-mute: #f2f2f2;--vt-c-black: #181818;--vt-c-black-soft: #222222;--vt-c-black-mute: #282828;--vt-c-indigo: #2c3e50;--vt-c-divider-light-1: rgba(60, 60, 60, .29);--vt-c-divider-light-2: rgba(60, 60, 60, .12);--vt-c-divider-dark-1: rgba(84, 84, 84, .65);--vt-c-divider-dark-2: rgba(84, 84, 84, .48);--vt-c-text-light-1: var(--vt-c-indigo);--vt-c-text-light-2: rgba(60, 60, 60, .66);--vt-c-text-dark-1: var(--vt-c-white);--vt-c-text-dark-2: rgba(235, 235, 235, .64)}:root{--color-background: var(--vt-c-white);--color-background-soft: var(--vt-c-white-soft);--color-background-mute: var(--vt-c-white-mute);--color-border: var(--vt-c-divider-light-2);--color-border-hover: var(--vt-c-divider-light-1);--color-heading: var(--vt-c-text-light-1);--color-text: var(--vt-c-text-light-1);--section-gap: 160px}@media (prefers-color-scheme: dark){:root{--color-background: var(--vt-c-black);--color-background-soft: var(--vt-c-black-soft);--color-background-mute: var(--vt-c-black-mute);--color-border: var(--vt-c-divider-dark-2);--color-border-hover: var(--vt-c-divider-dark-1);--color-heading: var(--vt-c-text-dark-1);--color-text: var(--vt-c-text-dark-2)}}*,*:before,*:after{box-sizing:border-box;margin:0;font-weight:400}body{min-height:100vh;color:var(--color-text);background:var(--color-background);transition:color .5s,background-color .5s;line-height:1.6;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-size:15px;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#app{max-width:1280px;margin:0 auto;padding:2rem;font-weight:400}a,.green{text-decoration:none;color:#00bd7e;transition:.4s;padding:3px}@media (hover: hover){a:hover{background-color:#00bd7e33}}.index_version_span[data-v-0f95cfa1]{font-size:80%}.userinfo_p[data-v-72d1c363]{font-size:80%;font-style:italic;margin:0}.logout_button[data-v-72d1c363]{font-size:80%}.token_txt[data-v-6dcfb1f3]{font-size:150%;font-family:serif}.gloss[data-v-6dcfb1f3]{font-size:90%;font-family:monospace;text-align:center;padding-top:.1em}.token_txt[data-v-6dcfb1f3],.gloss[data-v-6dcfb1f3]{padding-left:.25em;padding-right:.25em}@media (prefers-color-scheme: dark){.token_txt[data-v-6dcfb1f3],.gloss[data-v-6dcfb1f3]{color:#fff}}li[data-v-6dcfb1f3],.token_wrapper[data-v-6dcfb1f3]{border:none;display:inline}.token_wrapper[data-v-6dcfb1f3]{display:inline-block;margin-right:1px}.token_wrapper[data-v-6dcfb1f3],.token_ul[data-v-6dcfb1f3],.token_txt[data-v-6dcfb1f3],.gloss[data-v-6dcfb1f3]{background:none}.selected-token[data-v-6dcfb1f3]{border:1px solid}.paragraph_annotate_buttons_span[data-v-d3c29f34]{display:flex;justify-content:flex-end}.corpus_button[data-v-d3c29f34]{font-size:80%}.corpus_buttons_span[data-v-6e7e4e53]{display:flex;justify-content:flex-end}.corpus_button[data-v-6e7e4e53]{font-size:90%}.corpus-pre[data-v-6e7e4e53]{max-width:100%;overflow:auto}.fixedHeader[data-v-6e7e4e53]{position:fixed;top:0;left:0;width:100%;background-color:#fff;z-index:1000;//padding: 2%;border-bottom:1px solid lightgray}.sampleLinkP[data-v-595ba0a0]{font-style:italic;text-decoration:underline;cursor:pointer}.disabled[data-v-595ba0a0]{color:gray;text-decoration:none;cursor:default}textarea[data-v-969ca212]{width:90%;height:18em}body[data-v-26848532]{font-family:sans-serif;text-align:center}a[data-v-26848532]:link{color:#d3d3d3}main[data-v-26848532]{text-align:center} +:root{--vt-c-white: #ffffff;--vt-c-white-soft: #f8f8f8;--vt-c-white-mute: #f2f2f2;--vt-c-black: #181818;--vt-c-black-soft: #222222;--vt-c-black-mute: #282828;--vt-c-indigo: #2c3e50;--vt-c-divider-light-1: rgba(60, 60, 60, .29);--vt-c-divider-light-2: rgba(60, 60, 60, .12);--vt-c-divider-dark-1: rgba(84, 84, 84, .65);--vt-c-divider-dark-2: rgba(84, 84, 84, .48);--vt-c-text-light-1: var(--vt-c-indigo);--vt-c-text-light-2: rgba(60, 60, 60, .66);--vt-c-text-dark-1: var(--vt-c-white);--vt-c-text-dark-2: rgba(235, 235, 235, .64)}:root{--color-background: var(--vt-c-white);--color-background-soft: var(--vt-c-white-soft);--color-background-mute: var(--vt-c-white-mute);--color-border: var(--vt-c-divider-light-2);--color-border-hover: var(--vt-c-divider-light-1);--color-heading: var(--vt-c-text-light-1);--color-text: var(--vt-c-text-light-1);--section-gap: 160px}@media (prefers-color-scheme: dark){:root{--color-background: var(--vt-c-black);--color-background-soft: var(--vt-c-black-soft);--color-background-mute: var(--vt-c-black-mute);--color-border: var(--vt-c-divider-dark-2);--color-border-hover: var(--vt-c-divider-dark-1);--color-heading: var(--vt-c-text-dark-1);--color-text: var(--vt-c-text-dark-2)}}*,*:before,*:after{box-sizing:border-box;margin:0;font-weight:400}body{min-height:100vh;color:var(--color-text);background:var(--color-background);transition:color .5s,background-color .5s;line-height:1.6;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-size:15px;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#app{max-width:1280px;margin:0 auto;padding:2rem;font-weight:400}a,.green{text-decoration:none;color:#00bd7e;transition:.4s;padding:3px}@media (hover: hover){a:hover{background-color:#00bd7e33}}.index_version_span[data-v-0f95cfa1]{font-size:80%}.userinfo_p[data-v-72d1c363]{font-size:80%;font-style:italic;margin:0}.logout_button[data-v-72d1c363]{font-size:80%}.token_txt[data-v-6dcfb1f3]{font-size:150%;font-family:serif}.gloss[data-v-6dcfb1f3]{font-size:90%;font-family:monospace;text-align:center;padding-top:.1em}.token_txt[data-v-6dcfb1f3],.gloss[data-v-6dcfb1f3]{padding-left:.25em;padding-right:.25em}@media (prefers-color-scheme: dark){.token_txt[data-v-6dcfb1f3],.gloss[data-v-6dcfb1f3]{color:#fff}}li[data-v-6dcfb1f3],.token_wrapper[data-v-6dcfb1f3]{border:none;display:inline}.token_wrapper[data-v-6dcfb1f3]{display:inline-block;margin-right:1px}.token_wrapper[data-v-6dcfb1f3],.token_ul[data-v-6dcfb1f3],.token_txt[data-v-6dcfb1f3],.gloss[data-v-6dcfb1f3]{background:none}.selected-token[data-v-6dcfb1f3]{border:1px solid}.paragraph_annotate_buttons_span[data-v-d3c29f34]{display:flex;justify-content:flex-end}.corpus_button[data-v-d3c29f34]{font-size:80%}.corpus_wrapper[data-v-9d6ae32e]{display:flex;flex-direction:column;max-height:100vh}.full-screen[data-v-9d6ae32e]{height:100vh}.corpus[data-v-9d6ae32e]{flex:1;overflow-y:auto}.corpus_buttons_span[data-v-9d6ae32e]{display:flex;justify-content:flex-end}.corpus_button[data-v-9d6ae32e]{font-size:90%}.corpus-pre[data-v-9d6ae32e]{max-width:100%;overflow:auto}.fixedHeader[data-v-9d6ae32e]{position:fixed;top:0;left:0;width:100%;background-color:#fff;z-index:1000;//padding: 2%;border-bottom:1px solid lightgray}.sampleLinkP[data-v-595ba0a0]{font-style:italic;text-decoration:underline;cursor:pointer}.disabled[data-v-595ba0a0]{color:gray;text-decoration:none;cursor:default}textarea[data-v-969ca212]{width:90%;height:18em}body[data-v-26848532]{font-family:sans-serif;text-align:center}a[data-v-26848532]:link{color:#d3d3d3}main[data-v-26848532]{text-align:center}