@johnnycubides/catalejo-vue3-desktop-v2 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,7 +10,7 @@
10
10
  * @vue/runtime-core v3.4.27
11
11
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
12
12
  * @license MIT
13
- **/function Ve(e,t,n,s){try{return s?e(...s):e()}catch(r){ln(r,t,n)}}function be(e,t,n,s){if(F(e)){const r=Ve(e,t,n,s);return r&&rr(r)&&r.catch(o=>{ln(o,t,n)}),r}if(O(e)){const r=[];for(let o=0;o<e.length;o++)r.push(be(e[o],t,n,s));return r}}function ln(e,t,n,s=!0){const r=t?t.vnode:null;if(t){let o=t.parent;const i=t.proxy,l=`https://vuejs.org/error-reference/#runtime-${n}`;for(;o;){const a=o.ec;if(a){for(let d=0;d<a.length;d++)if(a[d](e,i,l)===!1)return}o=o.parent}const f=t.appContext.config.errorHandler;if(f){We(),Ve(f,null,10,[e,i,l]),Ge();return}}fi(e,n,r,s)}function fi(e,t,n,s=!0){console.error(e)}let wt=!1,Rn=!1;const le=[];let Ae=0;const lt=[];let $e=null,Xe=0;const Or=Promise.resolve();let Zn=null;function ui(e){const t=Zn||Or;return e?t.then(this?e.bind(this):e):t}function ai(e){let t=Ae+1,n=le.length;for(;t<n;){const s=t+n>>>1,r=le[s],o=St(r);o<e||o===e&&r.pre?t=s+1:n=s}return t}function es(e){(!le.length||!le.includes(e,wt&&e.allowRecurse?Ae+1:Ae))&&(e.id==null?le.push(e):le.splice(ai(e.id),0,e),Mr())}function Mr(){!wt&&!Rn&&(Rn=!0,Zn=Or.then(Pr))}function di(e){const t=le.indexOf(e);t>Ae&&le.splice(t,1)}function hi(e){O(e)?lt.push(...e):(!$e||!$e.includes(e,e.allowRecurse?Xe+1:Xe))&&lt.push(e),Mr()}function Es(e,t,n=wt?Ae+1:0){for(;n<le.length;n++){const s=le[n];if(s&&s.pre){if(e&&s.id!==e.uid)continue;le.splice(n,1),n--,s()}}}function Ir(e){if(lt.length){const t=[...new Set(lt)].sort((n,s)=>St(n)-St(s));if(lt.length=0,$e){$e.push(...t);return}for($e=t,Xe=0;Xe<$e.length;Xe++)$e[Xe]();$e=null,Xe=0}}const St=e=>e.id==null?1/0:e.id,pi=(e,t)=>{const n=St(e)-St(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Pr(e){Rn=!1,wt=!0,le.sort(pi);try{for(Ae=0;Ae<le.length;Ae++){const t=le[Ae];t&&t.active!==!1&&Ve(t,null,14)}}finally{Ae=0,le.length=0,Ir(),wt=!1,Zn=null,(le.length||lt.length)&&Pr()}}function gi(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||z;let r=n;const o=t.startsWith("update:"),i=o&&t.slice(7);if(i&&i in s){const d=`${i==="modelValue"?"model":i}Modifiers`,{number:p,trim:_}=s[d]||z;_&&(r=n.map(T=>Z(T)?T.trim():T)),p&&(r=n.map(On))}let l,f=s[l=mn(t)]||s[l=mn(Oe(t))];!f&&o&&(f=s[l=mn(ft(t))]),f&&be(f,e,6,r);const a=s[l+"Once"];if(a){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,be(a,e,6,r)}}function Fr(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const o=e.emits;let i={},l=!1;if(!F(e)){const f=a=>{const d=Fr(a,t,!0);d&&(l=!0,te(i,d))};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}return!o&&!l?(k(e)&&s.set(e,null),null):(O(o)?o.forEach(f=>i[f]=null):te(i,o),k(e)&&s.set(e,i),i)}function cn(e,t){return!e||!Zt(t)?!1:(t=t.slice(2).replace(/Once$/,""),H(e,t[0].toLowerCase()+t.slice(1))||H(e,ft(t))||H(e,t))}let se=null,fn=null;function zt(e){const t=se;return se=e,fn=e&&e.type.__scopeId||null,t}function ic(e){fn=e}function lc(){fn=null}function mi(e,t=se,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&Hs(-1);const o=zt(t);let i;try{i=e(...r)}finally{zt(o),s._d&&Hs(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function yn(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[o],slots:i,attrs:l,emit:f,render:a,renderCache:d,props:p,data:_,setupState:T,ctx:L,inheritAttrs:R}=e,ne=zt(e);let W,Y;try{if(n.shapeFlag&4){const j=r||s,K=j;W=Se(a.call(K,j,d,p,T,_,L)),Y=l}else{const j=t;W=Se(j.length>1?j(p,{attrs:l,slots:i,emit:f}):j(p,null)),Y=t.props?l:_i(l)}}catch(j){Ct.length=0,ln(j,e,1),W=fe(me)}let $=W;if(Y&&R!==!1){const j=Object.keys(Y),{shapeFlag:K}=$;j.length&&K&7&&(o&&j.some(Un)&&(Y=yi(Y,o)),$=Ke($,Y,!1,!0))}return n.dirs&&($=Ke($,null,!1,!0),$.dirs=$.dirs?$.dirs.concat(n.dirs):n.dirs),n.transition&&($.transition=n.transition),W=$,zt(ne),W}const _i=e=>{let t;for(const n in e)(n==="class"||n==="style"||Zt(n))&&((t||(t={}))[n]=e[n]);return t},yi=(e,t)=>{const n={};for(const s in e)(!Un(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function bi(e,t,n){const{props:s,children:r,component:o}=e,{props:i,children:l,patchFlag:f}=t,a=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&f>=0){if(f&1024)return!0;if(f&16)return s?Ts(s,i,a):!!i;if(f&8){const d=t.dynamicProps;for(let p=0;p<d.length;p++){const _=d[p];if(i[_]!==s[_]&&!cn(a,_))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:s===i?!1:s?i?Ts(s,i,a):!0:!!i;return!1}function Ts(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let r=0;r<s.length;r++){const o=s[r];if(t[o]!==e[o]&&!cn(n,o))return!0}return!1}function vi({vnode:e,parent:t},n){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s===e)(e=t.vnode).el=n,t=t.parent;else break}}const ts="components",xi="directives";function cc(e,t){return ns(ts,e,!0,t)||e}const Rr=Symbol.for("v-ndc");function fc(e){return Z(e)?ns(ts,e,!1)||e:e||Rr}function uc(e){return ns(xi,e)}function ns(e,t,n=!0,s=!1){const r=se||ie;if(r){const o=r.type;if(e===ts){const l=_l(o,!1);if(l&&(l===t||l===Oe(t)||l===nn(Oe(t))))return o}const i=ws(r[e]||o[e],t)||ws(r.appContext[e],t);return!i&&s?o:i}}function ws(e,t){return e&&(e[t]||e[Oe(t)]||e[nn(Oe(t))])}const Ci=e=>e.__isSuspense;function Ei(e,t){t&&t.pendingBranch?O(e)?t.effects.push(...e):t.effects.push(e):hi(e)}const Ti=Symbol.for("v-scx"),wi=()=>Kt(Ti),Dt={};function bn(e,t,n){return Lr(e,t,n)}function Lr(e,t,{immediate:n,deep:s,flush:r,once:o,onTrack:i,onTrigger:l}=z){if(t&&o){const I=t;t=(...q)=>{I(...q),K()}}const f=ie,a=I=>s===!0?I:Ze(I,s===!1?1:void 0);let d,p=!1,_=!1;if(de(e)?(d=()=>e.value,p=qt(e)):_t(e)?(d=()=>a(e),p=!0):O(e)?(_=!0,p=e.some(I=>_t(I)||qt(I)),d=()=>e.map(I=>{if(de(I))return I.value;if(_t(I))return a(I);if(F(I))return Ve(I,f,2)})):F(e)?t?d=()=>Ve(e,f,2):d=()=>(T&&T(),be(e,f,3,[L])):d=ye,t&&s){const I=d;d=()=>Ze(I())}let T,L=I=>{T=$.onStop=()=>{Ve(I,f,4),T=$.onStop=void 0}},R;if(hn)if(L=ye,t?n&&be(t,f,3,[d(),_?[]:void 0,L]):d(),r==="sync"){const I=wi();R=I.__watcherHandles||(I.__watcherHandles=[])}else return ye;let ne=_?new Array(e.length).fill(Dt):Dt;const W=()=>{if(!(!$.active||!$.dirty))if(t){const I=$.run();(s||p||(_?I.some((q,M)=>Ue(q,ne[M])):Ue(I,ne)))&&(T&&T(),be(t,f,3,[I,ne===Dt?void 0:_&&ne[0]===Dt?[]:ne,L]),ne=I)}else $.run()};W.allowRecurse=!!t;let Y;r==="sync"?Y=W:r==="post"?Y=()=>ue(W,f&&f.suspense):(W.pre=!0,f&&(W.id=f.uid),Y=()=>es(W));const $=new Gn(d,ye,Y),j=Ho(),K=()=>{$.stop(),j&&Kn(j.effects,$)};return t?n?W():ne=$.run():r==="post"?ue($.run.bind($),f&&f.suspense):$.run(),R&&R.push(K),K}function Si(e,t,n){const s=this.proxy,r=Z(e)?e.includes(".")?Nr(s,e):()=>s[e]:e.bind(s,s);let o;F(t)?o=t:(o=t.handler,n=t);const i=It(this),l=Lr(r,o.bind(s),n);return i(),l}function Nr(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r<n.length&&s;r++)s=s[n[r]];return s}}function Ze(e,t=1/0,n){if(t<=0||!k(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,de(e))Ze(e.value,t,n);else if(O(e))for(let s=0;s<e.length;s++)Ze(e[s],t,n);else if(sr(e)||it(e))e.forEach(s=>{Ze(s,t,n)});else if(ir(e))for(const s in e)Ze(e[s],t,n);return e}function ac(e,t){if(se===null)return e;const n=pn(se)||se.proxy,s=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[o,i,l,f=z]=t[r];o&&(F(o)&&(o={mounted:o,updated:o}),o.deep&&Ze(i),s.push({dir:o,instance:n,value:i,oldValue:void 0,arg:l,modifiers:f}))}return e}function ke(e,t,n,s){const r=e.dirs,o=t&&t.dirs;for(let i=0;i<r.length;i++){const l=r[i];o&&(l.oldValue=o[i].value);let f=l.dir[s];f&&(We(),be(f,n,8,[e.el,l,e,t]),Ge())}}const He=Symbol("_leaveCb"),jt=Symbol("_enterCb");function $r(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Br(()=>{e.isMounted=!0}),Ur(()=>{e.isUnmounting=!0}),e}const _e=[Function,Array],Hr={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:_e,onEnter:_e,onAfterEnter:_e,onEnterCancelled:_e,onBeforeLeave:_e,onLeave:_e,onAfterLeave:_e,onLeaveCancelled:_e,onBeforeAppear:_e,onAppear:_e,onAfterAppear:_e,onAppearCancelled:_e},Ai={name:"BaseTransition",props:Hr,setup(e,{slots:t}){const n=co(),s=$r();return()=>{const r=t.default&&ss(t.default(),!0);if(!r||!r.length)return;let o=r[0];if(r.length>1){for(const _ of r)if(_.type!==me){o=_;break}}const i=D(e),{mode:l}=i;if(s.isLeaving)return vn(o);const f=Ss(o);if(!f)return vn(o);const a=At(f,i,s,n);Ot(f,a);const d=n.subTree,p=d&&Ss(d);if(p&&p.type!==me&&!Qe(f,p)){const _=At(p,i,s,n);if(Ot(p,_),l==="out-in"&&f.type!==me)return s.isLeaving=!0,_.afterLeave=()=>{s.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},vn(o);l==="in-out"&&f.type!==me&&(_.delayLeave=(T,L,R)=>{const ne=Dr(s,p);ne[String(p.key)]=p,T[He]=()=>{L(),T[He]=void 0,delete a.delayedLeave},a.delayedLeave=R})}return o}}},Oi=Ai;function Dr(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function At(e,t,n,s){const{appear:r,mode:o,persisted:i=!1,onBeforeEnter:l,onEnter:f,onAfterEnter:a,onEnterCancelled:d,onBeforeLeave:p,onLeave:_,onAfterLeave:T,onLeaveCancelled:L,onBeforeAppear:R,onAppear:ne,onAfterAppear:W,onAppearCancelled:Y}=t,$=String(e.key),j=Dr(n,e),K=(M,V)=>{M&&be(M,s,9,V)},I=(M,V)=>{const B=V[1];K(M,V),O(M)?M.every(ee=>ee.length<=1)&&B():M.length<=1&&B()},q={mode:o,persisted:i,beforeEnter(M){let V=l;if(!n.isMounted)if(r)V=R||l;else return;M[He]&&M[He](!0);const B=j[$];B&&Qe(e,B)&&B.el[He]&&B.el[He](),K(V,[M])},enter(M){let V=f,B=a,ee=d;if(!n.isMounted)if(r)V=ne||f,B=W||a,ee=Y||d;else return;let w=!1;const X=M[jt]=he=>{w||(w=!0,he?K(ee,[M]):K(B,[M]),q.delayedLeave&&q.delayedLeave(),M[jt]=void 0)};V?I(V,[M,X]):X()},leave(M,V){const B=String(e.key);if(M[jt]&&M[jt](!0),n.isUnmounting)return V();K(p,[M]);let ee=!1;const w=M[He]=X=>{ee||(ee=!0,V(),X?K(L,[M]):K(T,[M]),M[He]=void 0,j[B]===e&&delete j[B])};j[B]=e,_?I(_,[M,w]):w()},clone(M){return At(M,t,n,s)}};return q}function vn(e){if(un(e))return e=Ke(e),e.children=null,e}function Ss(e){if(!un(e))return e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&F(n.default))return n.default()}}function Ot(e,t){e.shapeFlag&6&&e.component?Ot(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ss(e,t=!1,n){let s=[],r=0;for(let o=0;o<e.length;o++){let i=e[o];const l=n==null?i.key:String(n)+String(i.key!=null?i.key:o);i.type===ge?(i.patchFlag&128&&r++,s=s.concat(ss(i.children,t,l))):(t||i.type!==me)&&s.push(l!=null?Ke(i,{key:l}):i)}if(r>1)for(let o=0;o<s.length;o++)s[o].patchFlag=-2;return s}/*! #__NO_SIDE_EFFECTS__ */function dc(e,t){return F(e)?te({name:e.name},t,{setup:e}):e}const yt=e=>!!e.type.__asyncLoader,un=e=>e.type.__isKeepAlive;function Mi(e,t){jr(e,"a",t)}function Ii(e,t){jr(e,"da",t)}function jr(e,t,n=ie){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(an(t,s,n),n){let r=n.parent;for(;r&&r.parent;)un(r.parent.vnode)&&Pi(s,t,n,r),r=r.parent}}function Pi(e,t,n,s){const r=an(t,e,s,!0);Kr(()=>{Kn(s[t],r)},n)}function an(e,t,n=ie,s=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;We();const l=It(n),f=be(t,n,e,i);return l(),Ge(),f});return s?r.unshift(o):r.push(o),o}}const Fe=e=>(t,n=ie)=>(!hn||e==="sp")&&an(e,(...s)=>t(...s),n),Fi=Fe("bm"),Br=Fe("m"),Ri=Fe("bu"),Vr=Fe("u"),Ur=Fe("bum"),Kr=Fe("um"),Li=Fe("sp"),Ni=Fe("rtg"),$i=Fe("rtc");function Hi(e,t=ie){an("ec",e,t)}function hc(e,t,n,s){let r;const o=n;if(O(e)||Z(e)){r=new Array(e.length);for(let i=0,l=e.length;i<l;i++)r[i]=t(e[i],i,void 0,o)}else if(typeof e=="number"){r=new Array(e);for(let i=0;i<e;i++)r[i]=t(i+1,i,void 0,o)}else if(k(e))if(e[Symbol.iterator])r=Array.from(e,(i,l)=>t(i,l,void 0,o));else{const i=Object.keys(e);r=new Array(i.length);for(let l=0,f=i.length;l<f;l++){const a=i[l];r[l]=t(e[a],a,l,o)}}else r=[];return r}function pc(e,t){for(let n=0;n<t.length;n++){const s=t[n];if(O(s))for(let r=0;r<s.length;r++)e[s[r].name]=s[r].fn;else s&&(e[s.name]=s.key?(...r)=>{const o=s.fn(...r);return o&&(o.key=s.key),o}:s.fn)}return e}function gc(e,t,n={},s,r){if(se.isCE||se.parent&&yt(se.parent)&&se.parent.isCE)return t!=="default"&&(n.name=t),fe("slot",n,s&&s());let o=e[t];o&&o._c&&(o._d=!1),so();const i=o&&Wr(o(n)),l=oo(ge,{key:n.key||i&&i.key||`_${t}`},i||(s?s():[]),i&&e._===1?64:-2);return!r&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),o&&o._c&&(o._d=!0),l}function Wr(e){return e.some(t=>Jt(t)?!(t.type===me||t.type===ge&&!Wr(t.children)):!0)?e:null}const Ln=e=>e?fo(e)?pn(e)||e.proxy:Ln(e.parent):null,bt=te(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Ln(e.parent),$root:e=>Ln(e.root),$emit:e=>e.emit,$options:e=>rs(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,es(e.update)}),$nextTick:e=>e.n||(e.n=ui.bind(e.proxy)),$watch:e=>Si.bind(e)}),xn=(e,t)=>e!==z&&!e.__isScriptSetup&&H(e,t),Di={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:o,accessCache:i,type:l,appContext:f}=e;let a;if(t[0]!=="$"){const T=i[t];if(T!==void 0)switch(T){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return o[t]}else{if(xn(s,t))return i[t]=1,s[t];if(r!==z&&H(r,t))return i[t]=2,r[t];if((a=e.propsOptions[0])&&H(a,t))return i[t]=3,o[t];if(n!==z&&H(n,t))return i[t]=4,n[t];Nn&&(i[t]=0)}}const d=bt[t];let p,_;if(d)return t==="$attrs"&&ae(e.attrs,"get",""),d(e);if((p=l.__cssModules)&&(p=p[t]))return p;if(n!==z&&H(n,t))return i[t]=4,n[t];if(_=f.config.globalProperties,H(_,t))return _[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:o}=e;return xn(r,t)?(r[t]=n,!0):s!==z&&H(s,t)?(s[t]=n,!0):H(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,propsOptions:o}},i){let l;return!!n[i]||e!==z&&H(e,i)||xn(t,i)||(l=o[0])&&H(l,i)||H(s,i)||H(bt,i)||H(r.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:H(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function As(e){return O(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Nn=!0;function ji(e){const t=rs(e),n=e.proxy,s=e.ctx;Nn=!1,t.beforeCreate&&Os(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:i,watch:l,provide:f,inject:a,created:d,beforeMount:p,mounted:_,beforeUpdate:T,updated:L,activated:R,deactivated:ne,beforeDestroy:W,beforeUnmount:Y,destroyed:$,unmounted:j,render:K,renderTracked:I,renderTriggered:q,errorCaptured:M,serverPrefetch:V,expose:B,inheritAttrs:ee,components:w,directives:X,filters:he}=t;if(a&&Bi(a,s,null),i)for(const Q in i){const G=i[Q];F(G)&&(s[Q]=G.bind(n))}if(r){const Q=r.call(n,n);k(Q)&&(e.data=Yn(Q))}if(Nn=!0,o)for(const Q in o){const G=o[Q],qe=F(G)?G.bind(n,n):F(G.get)?G.get.bind(n,n):ye,Pt=!F(G)&&F(G.set)?G.set.bind(n):ye,ze=bl({get:qe,set:Pt});Object.defineProperty(s,Q,{enumerable:!0,configurable:!0,get:()=>ze.value,set:Ee=>ze.value=Ee})}if(l)for(const Q in l)Gr(l[Q],s,n,Q);if(f){const Q=F(f)?f.call(n):f;Reflect.ownKeys(Q).forEach(G=>{qi(G,Q[G])})}d&&Os(d,e,"c");function re(Q,G){O(G)?G.forEach(qe=>Q(qe.bind(n))):G&&Q(G.bind(n))}if(re(Fi,p),re(Br,_),re(Ri,T),re(Vr,L),re(Mi,R),re(Ii,ne),re(Hi,M),re($i,I),re(Ni,q),re(Ur,Y),re(Kr,j),re(Li,V),O(B))if(B.length){const Q=e.exposed||(e.exposed={});B.forEach(G=>{Object.defineProperty(Q,G,{get:()=>n[G],set:qe=>n[G]=qe})})}else e.exposed||(e.exposed={});K&&e.render===ye&&(e.render=K),ee!=null&&(e.inheritAttrs=ee),w&&(e.components=w),X&&(e.directives=X)}function Bi(e,t,n=ye){O(e)&&(e=$n(e));for(const s in e){const r=e[s];let o;k(r)?"default"in r?o=Kt(r.from||s,r.default,!0):o=Kt(r.from||s):o=Kt(r),de(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[s]=o}}function Os(e,t,n){be(O(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Gr(e,t,n,s){const r=s.includes(".")?Nr(n,s):()=>n[s];if(Z(e)){const o=t[e];F(o)&&bn(r,o)}else if(F(e))bn(r,e.bind(n));else if(k(e))if(O(e))e.forEach(o=>Gr(o,t,n,s));else{const o=F(e.handler)?e.handler.bind(n):t[e.handler];F(o)&&bn(r,o,e)}}function rs(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,l=o.get(t);let f;return l?f=l:!r.length&&!n&&!s?f=t:(f={},r.length&&r.forEach(a=>kt(f,a,i,!0)),kt(f,t,i)),k(t)&&o.set(t,f),f}function kt(e,t,n,s=!1){const{mixins:r,extends:o}=t;o&&kt(e,o,n,!0),r&&r.forEach(i=>kt(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const l=Vi[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const Vi={data:Ms,props:Is,emits:Is,methods:gt,computed:gt,beforeCreate:ce,created:ce,beforeMount:ce,mounted:ce,beforeUpdate:ce,updated:ce,beforeDestroy:ce,beforeUnmount:ce,destroyed:ce,unmounted:ce,activated:ce,deactivated:ce,errorCaptured:ce,serverPrefetch:ce,components:gt,directives:gt,watch:Ki,provide:Ms,inject:Ui};function Ms(e,t){return t?e?function(){return te(F(e)?e.call(this,this):e,F(t)?t.call(this,this):t)}:t:e}function Ui(e,t){return gt($n(e),$n(t))}function $n(e){if(O(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function ce(e,t){return e?[...new Set([].concat(e,t))]:t}function gt(e,t){return e?te(Object.create(null),e,t):t}function Is(e,t){return e?O(e)&&O(t)?[...new Set([...e,...t])]:te(Object.create(null),As(e),As(t??{})):t}function Ki(e,t){if(!e)return t;if(!t)return e;const n=te(Object.create(null),e);for(const s in t)n[s]=ce(e[s],t[s]);return n}function qr(){return{app:null,config:{isNativeTag:Eo,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Wi=0;function Gi(e,t){return function(s,r=null){F(s)||(s=te({},s)),r!=null&&!k(r)&&(r=null);const o=qr(),i=new WeakSet;let l=!1;const f=o.app={_uid:Wi++,_component:s,_props:r,_container:null,_context:o,_instance:null,version:xl,get config(){return o.config},set config(a){},use(a,...d){return i.has(a)||(a&&F(a.install)?(i.add(a),a.install(f,...d)):F(a)&&(i.add(a),a(f,...d))),f},mixin(a){return o.mixins.includes(a)||o.mixins.push(a),f},component(a,d){return d?(o.components[a]=d,f):o.components[a]},directive(a,d){return d?(o.directives[a]=d,f):o.directives[a]},mount(a,d,p){if(!l){const _=fe(s,r);return _.appContext=o,p===!0?p="svg":p===!1&&(p=void 0),d&&t?t(_,a):e(_,a,p),l=!0,f._container=a,a.__vue_app__=f,pn(_.component)||_.component.proxy}},unmount(){l&&(e(null,f._container),delete f._container.__vue_app__)},provide(a,d){return o.provides[a]=d,f},runWithContext(a){const d=vt;vt=f;try{return a()}finally{vt=d}}};return f}}let vt=null;function qi(e,t){if(ie){let n=ie.provides;const s=ie.parent&&ie.parent.provides;s===n&&(n=ie.provides=Object.create(s)),n[e]=t}}function Kt(e,t,n=!1){const s=ie||se;if(s||vt){const r=s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:vt._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&F(t)?t.call(s&&s.proxy):t}}const zr={},kr=()=>Object.create(zr),Jr=e=>Object.getPrototypeOf(e)===zr;function zi(e,t,n,s=!1){const r={},o=kr();e.propsDefaults=Object.create(null),Yr(e,t,r,o);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=s?r:si(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function ki(e,t,n,s){const{props:r,attrs:o,vnode:{patchFlag:i}}=e,l=D(r),[f]=e.propsOptions;let a=!1;if((s||i>0)&&!(i&16)){if(i&8){const d=e.vnode.dynamicProps;for(let p=0;p<d.length;p++){let _=d[p];if(cn(e.emitsOptions,_))continue;const T=t[_];if(f)if(H(o,_))T!==o[_]&&(o[_]=T,a=!0);else{const L=Oe(_);r[L]=Hn(f,l,L,T,e,!1)}else T!==o[_]&&(o[_]=T,a=!0)}}}else{Yr(e,t,r,o)&&(a=!0);let d;for(const p in l)(!t||!H(t,p)&&((d=ft(p))===p||!H(t,d)))&&(f?n&&(n[p]!==void 0||n[d]!==void 0)&&(r[p]=Hn(f,l,p,void 0,e,!0)):delete r[p]);if(o!==l)for(const p in o)(!t||!H(t,p))&&(delete o[p],a=!0)}a&&Pe(e.attrs,"set","")}function Yr(e,t,n,s){const[r,o]=e.propsOptions;let i=!1,l;if(t)for(let f in t){if(mt(f))continue;const a=t[f];let d;r&&H(r,d=Oe(f))?!o||!o.includes(d)?n[d]=a:(l||(l={}))[d]=a:cn(e.emitsOptions,f)||(!(f in s)||a!==s[f])&&(s[f]=a,i=!0)}if(o){const f=D(n),a=l||z;for(let d=0;d<o.length;d++){const p=o[d];n[p]=Hn(r,f,p,a[p],e,!H(a,p))}}return i}function Hn(e,t,n,s,r,o){const i=e[n];if(i!=null){const l=H(i,"default");if(l&&s===void 0){const f=i.default;if(i.type!==Function&&!i.skipFactory&&F(f)){const{propsDefaults:a}=r;if(n in a)s=a[n];else{const d=It(r);s=a[n]=f.call(null,t),d()}}else s=f}i[0]&&(o&&!l?s=!1:i[1]&&(s===""||s===ft(n))&&(s=!0))}return s}function Xr(e,t,n=!1){const s=t.propsCache,r=s.get(e);if(r)return r;const o=e.props,i={},l=[];let f=!1;if(!F(e)){const d=p=>{f=!0;const[_,T]=Xr(p,t,!0);te(i,_),T&&l.push(...T)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!o&&!f)return k(e)&&s.set(e,ot),ot;if(O(o))for(let d=0;d<o.length;d++){const p=Oe(o[d]);Ps(p)&&(i[p]=z)}else if(o)for(const d in o){const p=Oe(d);if(Ps(p)){const _=o[d],T=i[p]=O(_)||F(_)?{type:_}:te({},_);if(T){const L=Ls(Boolean,T.type),R=Ls(String,T.type);T[0]=L>-1,T[1]=R<0||L<R,(L>-1||H(T,"default"))&&l.push(p)}}}const a=[i,l];return k(e)&&s.set(e,a),a}function Ps(e){return e[0]!=="$"&&!mt(e)}function Fs(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function Rs(e,t){return Fs(e)===Fs(t)}function Ls(e,t){return O(t)?t.findIndex(n=>Rs(n,e)):F(t)&&Rs(t,e)?0:-1}const Qr=e=>e[0]==="_"||e==="$stable",os=e=>O(e)?e.map(Se):[Se(e)],Ji=(e,t,n)=>{if(t._n)return t;const s=mi((...r)=>os(t(...r)),n);return s._c=!1,s},Zr=(e,t,n)=>{const s=e._ctx;for(const r in e){if(Qr(r))continue;const o=e[r];if(F(o))t[r]=Ji(r,o,s);else if(o!=null){const i=os(o);t[r]=()=>i}}},eo=(e,t)=>{const n=os(t);e.slots.default=()=>n},Yi=(e,t)=>{const n=e.slots=kr();if(e.vnode.shapeFlag&32){const s=t._;s?(te(n,t),lr(n,"_",s,!0)):Zr(t,n)}else t&&eo(e,t)},Xi=(e,t,n)=>{const{vnode:s,slots:r}=e;let o=!0,i=z;if(s.shapeFlag&32){const l=t._;l?n&&l===1?o=!1:(te(r,t),!n&&l===1&&delete r._):(o=!t.$stable,Zr(t,r)),i=t}else t&&(eo(e,t),i={default:1});if(o)for(const l in r)!Qr(l)&&i[l]==null&&delete r[l]};function Dn(e,t,n,s,r=!1){if(O(e)){e.forEach((_,T)=>Dn(_,t&&(O(t)?t[T]:t),n,s,r));return}if(yt(s)&&!r)return;const o=s.shapeFlag&4?pn(s.component)||s.component.proxy:s.el,i=r?null:o,{i:l,r:f}=e,a=t&&t.r,d=l.refs===z?l.refs={}:l.refs,p=l.setupState;if(a!=null&&a!==f&&(Z(a)?(d[a]=null,H(p,a)&&(p[a]=null)):de(a)&&(a.value=null)),F(f))Ve(f,l,12,[i,d]);else{const _=Z(f),T=de(f);if(_||T){const L=()=>{if(e.f){const R=_?H(p,f)?p[f]:d[f]:f.value;r?O(R)&&Kn(R,o):O(R)?R.includes(o)||R.push(o):_?(d[f]=[o],H(p,f)&&(p[f]=d[f])):(f.value=[o],e.k&&(d[e.k]=f.value))}else _?(d[f]=i,H(p,f)&&(p[f]=i)):T&&(f.value=i,e.k&&(d[e.k]=i))};i?(L.id=-1,ue(L,n)):L()}}}const ue=Ei;function Qi(e){return Zi(e)}function Zi(e,t){const n=cr();n.__VUE__=!0;const{insert:s,remove:r,patchProp:o,createElement:i,createText:l,createComment:f,setText:a,setElementText:d,parentNode:p,nextSibling:_,setScopeId:T=ye,insertStaticContent:L}=e,R=(c,u,h,g=null,m=null,v=null,C=void 0,b=null,x=!!u.dynamicChildren)=>{if(c===u)return;c&&!Qe(c,u)&&(g=Ft(c),Ee(c,m,v,!0),c=null),u.patchFlag===-2&&(x=!1,u.dynamicChildren=null);const{type:y,ref:E,shapeFlag:A}=u;switch(y){case dn:ne(c,u,h,g);break;case me:W(c,u,h,g);break;case En:c==null&&Y(u,h,g,C);break;case ge:w(c,u,h,g,m,v,C,b,x);break;default:A&1?K(c,u,h,g,m,v,C,b,x):A&6?X(c,u,h,g,m,v,C,b,x):(A&64||A&128)&&y.process(c,u,h,g,m,v,C,b,x,at)}E!=null&&m&&Dn(E,c&&c.ref,v,u||c,!u)},ne=(c,u,h,g)=>{if(c==null)s(u.el=l(u.children),h,g);else{const m=u.el=c.el;u.children!==c.children&&a(m,u.children)}},W=(c,u,h,g)=>{c==null?s(u.el=f(u.children||""),h,g):u.el=c.el},Y=(c,u,h,g)=>{[c.el,c.anchor]=L(c.children,u,h,g,c.el,c.anchor)},$=({el:c,anchor:u},h,g)=>{let m;for(;c&&c!==u;)m=_(c),s(c,h,g),c=m;s(u,h,g)},j=({el:c,anchor:u})=>{let h;for(;c&&c!==u;)h=_(c),r(c),c=h;r(u)},K=(c,u,h,g,m,v,C,b,x)=>{u.type==="svg"?C="svg":u.type==="math"&&(C="mathml"),c==null?I(u,h,g,m,v,C,b,x):V(c,u,m,v,C,b,x)},I=(c,u,h,g,m,v,C,b)=>{let x,y;const{props:E,shapeFlag:A,transition:S,dirs:P}=c;if(x=c.el=i(c.type,v,E&&E.is,E),A&8?d(x,c.children):A&16&&M(c.children,x,null,g,m,Cn(c,v),C,b),P&&ke(c,null,g,"created"),q(x,c,c.scopeId,C,g),E){for(const U in E)U!=="value"&&!mt(U)&&o(x,U,null,E[U],v,c.children,g,m,Me);"value"in E&&o(x,"value",null,E.value,v),(y=E.onVnodeBeforeMount)&&we(y,g,c)}P&&ke(c,null,g,"beforeMount");const N=el(m,S);N&&S.beforeEnter(x),s(x,u,h),((y=E&&E.onVnodeMounted)||N||P)&&ue(()=>{y&&we(y,g,c),N&&S.enter(x),P&&ke(c,null,g,"mounted")},m)},q=(c,u,h,g,m)=>{if(h&&T(c,h),g)for(let v=0;v<g.length;v++)T(c,g[v]);if(m){let v=m.subTree;if(u===v){const C=m.vnode;q(c,C,C.scopeId,C.slotScopeIds,m.parent)}}},M=(c,u,h,g,m,v,C,b,x=0)=>{for(let y=x;y<c.length;y++){const E=c[y]=b?De(c[y]):Se(c[y]);R(null,E,u,h,g,m,v,C,b)}},V=(c,u,h,g,m,v,C)=>{const b=u.el=c.el;let{patchFlag:x,dynamicChildren:y,dirs:E}=u;x|=c.patchFlag&16;const A=c.props||z,S=u.props||z;let P;if(h&&Je(h,!1),(P=S.onVnodeBeforeUpdate)&&we(P,h,u,c),E&&ke(u,c,h,"beforeUpdate"),h&&Je(h,!0),y?B(c.dynamicChildren,y,b,h,g,Cn(u,m),v):C||G(c,u,b,null,h,g,Cn(u,m),v,!1),x>0){if(x&16)ee(b,u,A,S,h,g,m);else if(x&2&&A.class!==S.class&&o(b,"class",null,S.class,m),x&4&&o(b,"style",A.style,S.style,m),x&8){const N=u.dynamicProps;for(let U=0;U<N.length;U++){const J=N[U],oe=A[J],ve=S[J];(ve!==oe||J==="value")&&o(b,J,oe,ve,m,c.children,h,g,Me)}}x&1&&c.children!==u.children&&d(b,u.children)}else!C&&y==null&&ee(b,u,A,S,h,g,m);((P=S.onVnodeUpdated)||E)&&ue(()=>{P&&we(P,h,u,c),E&&ke(u,c,h,"updated")},g)},B=(c,u,h,g,m,v,C)=>{for(let b=0;b<u.length;b++){const x=c[b],y=u[b],E=x.el&&(x.type===ge||!Qe(x,y)||x.shapeFlag&70)?p(x.el):h;R(x,y,E,null,g,m,v,C,!0)}},ee=(c,u,h,g,m,v,C)=>{if(h!==g){if(h!==z)for(const b in h)!mt(b)&&!(b in g)&&o(c,b,h[b],null,C,u.children,m,v,Me);for(const b in g){if(mt(b))continue;const x=g[b],y=h[b];x!==y&&b!=="value"&&o(c,b,y,x,C,u.children,m,v,Me)}"value"in g&&o(c,"value",h.value,g.value,C)}},w=(c,u,h,g,m,v,C,b,x)=>{const y=u.el=c?c.el:l(""),E=u.anchor=c?c.anchor:l("");let{patchFlag:A,dynamicChildren:S,slotScopeIds:P}=u;P&&(b=b?b.concat(P):P),c==null?(s(y,h,g),s(E,h,g),M(u.children||[],h,E,m,v,C,b,x)):A>0&&A&64&&S&&c.dynamicChildren?(B(c.dynamicChildren,S,h,m,v,C,b),(u.key!=null||m&&u===m.subTree)&&is(c,u,!0)):G(c,u,h,E,m,v,C,b,x)},X=(c,u,h,g,m,v,C,b,x)=>{u.slotScopeIds=b,c==null?u.shapeFlag&512?m.ctx.activate(u,h,g,C,x):he(u,h,g,m,v,C,x):ut(c,u,x)},he=(c,u,h,g,m,v,C)=>{const b=c.component=dl(c,g,m);if(un(c)&&(b.ctx.renderer=at),hl(b),b.asyncDep){if(m&&m.registerDep(b,re),!c.el){const x=b.subTree=fe(me);W(null,x,u,h)}}else re(b,c,u,h,m,v,C)},ut=(c,u,h)=>{const g=u.component=c.component;if(bi(c,u,h))if(g.asyncDep&&!g.asyncResolved){Q(g,u,h);return}else g.next=u,di(g.update),g.effect.dirty=!0,g.update();else u.el=c.el,g.vnode=u},re=(c,u,h,g,m,v,C)=>{const b=()=>{if(c.isMounted){let{next:E,bu:A,u:S,parent:P,vnode:N}=c;{const st=to(c);if(st){E&&(E.el=N.el,Q(c,E,C)),st.asyncDep.then(()=>{c.isUnmounted||b()});return}}let U=E,J;Je(c,!1),E?(E.el=N.el,Q(c,E,C)):E=N,A&&Vt(A),(J=E.props&&E.props.onVnodeBeforeUpdate)&&we(J,P,E,N),Je(c,!0);const oe=yn(c),ve=c.subTree;c.subTree=oe,R(ve,oe,p(ve.el),Ft(ve),c,m,v),E.el=oe.el,U===null&&vi(c,oe.el),S&&ue(S,m),(J=E.props&&E.props.onVnodeUpdated)&&ue(()=>we(J,P,E,N),m)}else{let E;const{el:A,props:S}=u,{bm:P,m:N,parent:U}=c,J=yt(u);if(Je(c,!1),P&&Vt(P),!J&&(E=S&&S.onVnodeBeforeMount)&&we(E,U,u),Je(c,!0),A&&as){const oe=()=>{c.subTree=yn(c),as(A,c.subTree,c,m,null)};J?u.type.__asyncLoader().then(()=>!c.isUnmounted&&oe()):oe()}else{const oe=c.subTree=yn(c);R(null,oe,h,g,c,m,v),u.el=oe.el}if(N&&ue(N,m),!J&&(E=S&&S.onVnodeMounted)){const oe=u;ue(()=>we(E,U,oe),m)}(u.shapeFlag&256||U&&yt(U.vnode)&&U.vnode.shapeFlag&256)&&c.a&&ue(c.a,m),c.isMounted=!0,u=h=g=null}},x=c.effect=new Gn(b,ye,()=>es(y),c.scope),y=c.update=()=>{x.dirty&&x.run()};y.id=c.uid,Je(c,!0),y()},Q=(c,u,h)=>{u.component=c;const g=c.vnode.props;c.vnode=u,c.next=null,ki(c,u.props,g,h),Xi(c,u.children,h),We(),Es(c),Ge()},G=(c,u,h,g,m,v,C,b,x=!1)=>{const y=c&&c.children,E=c?c.shapeFlag:0,A=u.children,{patchFlag:S,shapeFlag:P}=u;if(S>0){if(S&128){Pt(y,A,h,g,m,v,C,b,x);return}else if(S&256){qe(y,A,h,g,m,v,C,b,x);return}}P&8?(E&16&&Me(y,m,v),A!==y&&d(h,A)):E&16?P&16?Pt(y,A,h,g,m,v,C,b,x):Me(y,m,v,!0):(E&8&&d(h,""),P&16&&M(A,h,g,m,v,C,b,x))},qe=(c,u,h,g,m,v,C,b,x)=>{c=c||ot,u=u||ot;const y=c.length,E=u.length,A=Math.min(y,E);let S;for(S=0;S<A;S++){const P=u[S]=x?De(u[S]):Se(u[S]);R(c[S],P,h,null,m,v,C,b,x)}y>E?Me(c,m,v,!0,!1,A):M(u,h,g,m,v,C,b,x,A)},Pt=(c,u,h,g,m,v,C,b,x)=>{let y=0;const E=u.length;let A=c.length-1,S=E-1;for(;y<=A&&y<=S;){const P=c[y],N=u[y]=x?De(u[y]):Se(u[y]);if(Qe(P,N))R(P,N,h,null,m,v,C,b,x);else break;y++}for(;y<=A&&y<=S;){const P=c[A],N=u[S]=x?De(u[S]):Se(u[S]);if(Qe(P,N))R(P,N,h,null,m,v,C,b,x);else break;A--,S--}if(y>A){if(y<=S){const P=S+1,N=P<E?u[P].el:g;for(;y<=S;)R(null,u[y]=x?De(u[y]):Se(u[y]),h,N,m,v,C,b,x),y++}}else if(y>S)for(;y<=A;)Ee(c[y],m,v,!0),y++;else{const P=y,N=y,U=new Map;for(y=N;y<=S;y++){const pe=u[y]=x?De(u[y]):Se(u[y]);pe.key!=null&&U.set(pe.key,y)}let J,oe=0;const ve=S-N+1;let st=!1,ds=0;const dt=new Array(ve);for(y=0;y<ve;y++)dt[y]=0;for(y=P;y<=A;y++){const pe=c[y];if(oe>=ve){Ee(pe,m,v,!0);continue}let Te;if(pe.key!=null)Te=U.get(pe.key);else for(J=N;J<=S;J++)if(dt[J-N]===0&&Qe(pe,u[J])){Te=J;break}Te===void 0?Ee(pe,m,v,!0):(dt[Te-N]=y+1,Te>=ds?ds=Te:st=!0,R(pe,u[Te],h,null,m,v,C,b,x),oe++)}const hs=st?tl(dt):ot;for(J=hs.length-1,y=ve-1;y>=0;y--){const pe=N+y,Te=u[pe],ps=pe+1<E?u[pe+1].el:g;dt[y]===0?R(null,Te,h,ps,m,v,C,b,x):st&&(J<0||y!==hs[J]?ze(Te,h,ps,2):J--)}}},ze=(c,u,h,g,m=null)=>{const{el:v,type:C,transition:b,children:x,shapeFlag:y}=c;if(y&6){ze(c.component.subTree,u,h,g);return}if(y&128){c.suspense.move(u,h,g);return}if(y&64){C.move(c,u,h,at);return}if(C===ge){s(v,u,h);for(let A=0;A<x.length;A++)ze(x[A],u,h,g);s(c.anchor,u,h);return}if(C===En){$(c,u,h);return}if(g!==2&&y&1&&b)if(g===0)b.beforeEnter(v),s(v,u,h),ue(()=>b.enter(v),m);else{const{leave:A,delayLeave:S,afterLeave:P}=b,N=()=>s(v,u,h),U=()=>{A(v,()=>{N(),P&&P()})};S?S(v,N,U):U()}else s(v,u,h)},Ee=(c,u,h,g=!1,m=!1)=>{const{type:v,props:C,ref:b,children:x,dynamicChildren:y,shapeFlag:E,patchFlag:A,dirs:S}=c;if(b!=null&&Dn(b,null,h,c,!0),E&256){u.ctx.deactivate(c);return}const P=E&1&&S,N=!yt(c);let U;if(N&&(U=C&&C.onVnodeBeforeUnmount)&&we(U,u,c),E&6)Co(c.component,h,g);else{if(E&128){c.suspense.unmount(h,g);return}P&&ke(c,null,u,"beforeUnmount"),E&64?c.type.remove(c,u,h,m,at,g):y&&(v!==ge||A>0&&A&64)?Me(y,u,h,!1,!0):(v===ge&&A&384||!m&&E&16)&&Me(x,u,h),g&&cs(c)}(N&&(U=C&&C.onVnodeUnmounted)||P)&&ue(()=>{U&&we(U,u,c),P&&ke(c,null,u,"unmounted")},h)},cs=c=>{const{type:u,el:h,anchor:g,transition:m}=c;if(u===ge){xo(h,g);return}if(u===En){j(c);return}const v=()=>{r(h),m&&!m.persisted&&m.afterLeave&&m.afterLeave()};if(c.shapeFlag&1&&m&&!m.persisted){const{leave:C,delayLeave:b}=m,x=()=>C(h,v);b?b(c.el,v,x):x()}else v()},xo=(c,u)=>{let h;for(;c!==u;)h=_(c),r(c),c=h;r(u)},Co=(c,u,h)=>{const{bum:g,scope:m,update:v,subTree:C,um:b}=c;g&&Vt(g),m.stop(),v&&(v.active=!1,Ee(C,c,u,h)),b&&ue(b,u),ue(()=>{c.isUnmounted=!0},u),u&&u.pendingBranch&&!u.isUnmounted&&c.asyncDep&&!c.asyncResolved&&c.suspenseId===u.pendingId&&(u.deps--,u.deps===0&&u.resolve())},Me=(c,u,h,g=!1,m=!1,v=0)=>{for(let C=v;C<c.length;C++)Ee(c[C],u,h,g,m)},Ft=c=>c.shapeFlag&6?Ft(c.component.subTree):c.shapeFlag&128?c.suspense.next():_(c.anchor||c.el);let gn=!1;const fs=(c,u,h)=>{c==null?u._vnode&&Ee(u._vnode,null,null,!0):R(u._vnode||null,c,u,null,null,null,h),gn||(gn=!0,Es(),Ir(),gn=!1),u._vnode=c},at={p:R,um:Ee,m:ze,r:cs,mt:he,mc:M,pc:G,pbc:B,n:Ft,o:e};let us,as;return{render:fs,hydrate:us,createApp:Gi(fs,us)}}function Cn({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Je({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function el(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function is(e,t,n=!1){const s=e.children,r=t.children;if(O(s)&&O(r))for(let o=0;o<s.length;o++){const i=s[o];let l=r[o];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[o]=De(r[o]),l.el=i.el),n||is(i,l)),l.type===dn&&(l.el=i.el)}}function tl(e){const t=e.slice(),n=[0];let s,r,o,i,l;const f=e.length;for(s=0;s<f;s++){const a=e[s];if(a!==0){if(r=n[n.length-1],e[r]<a){t[s]=r,n.push(s);continue}for(o=0,i=n.length-1;o<i;)l=o+i>>1,e[n[l]]<a?o=l+1:i=l;a<e[n[o]]&&(o>0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}function to(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:to(t)}const nl=e=>e.__isTeleport,xt=e=>e&&(e.disabled||e.disabled===""),Ns=e=>typeof SVGElement<"u"&&e instanceof SVGElement,$s=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,jn=(e,t)=>{const n=e&&e.to;return Z(n)?t?t(n):null:n},sl={name:"Teleport",__isTeleport:!0,process(e,t,n,s,r,o,i,l,f,a){const{mc:d,pc:p,pbc:_,o:{insert:T,querySelector:L,createText:R,createComment:ne}}=a,W=xt(t.props);let{shapeFlag:Y,children:$,dynamicChildren:j}=t;if(e==null){const K=t.el=R(""),I=t.anchor=R("");T(K,n,s),T(I,n,s);const q=t.target=jn(t.props,L),M=t.targetAnchor=R("");q&&(T(M,q),i==="svg"||Ns(q)?i="svg":(i==="mathml"||$s(q))&&(i="mathml"));const V=(B,ee)=>{Y&16&&d($,B,ee,r,o,i,l,f)};W?V(n,I):q&&V(q,M)}else{t.el=e.el;const K=t.anchor=e.anchor,I=t.target=e.target,q=t.targetAnchor=e.targetAnchor,M=xt(e.props),V=M?n:I,B=M?K:q;if(i==="svg"||Ns(I)?i="svg":(i==="mathml"||$s(I))&&(i="mathml"),j?(_(e.dynamicChildren,j,V,r,o,i,l),is(e,t,!0)):f||p(e,t,V,B,r,o,i,l,!1),W)M?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Bt(t,n,K,a,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const ee=t.target=jn(t.props,L);ee&&Bt(t,ee,null,a,0)}else M&&Bt(t,I,q,a,1)}no(t)},remove(e,t,n,s,{um:r,o:{remove:o}},i){const{shapeFlag:l,children:f,anchor:a,targetAnchor:d,target:p,props:_}=e;if(p&&o(d),i&&o(a),l&16){const T=i||!xt(_);for(let L=0;L<f.length;L++){const R=f[L];r(R,t,n,T,!!R.dynamicChildren)}}},move:Bt,hydrate:rl};function Bt(e,t,n,{o:{insert:s},m:r},o=2){o===0&&s(e.targetAnchor,t,n);const{el:i,anchor:l,shapeFlag:f,children:a,props:d}=e,p=o===2;if(p&&s(i,t,n),(!p||xt(d))&&f&16)for(let _=0;_<a.length;_++)r(a[_],t,n,2);p&&s(l,t,n)}function rl(e,t,n,s,r,o,{o:{nextSibling:i,parentNode:l,querySelector:f}},a){const d=t.target=jn(t.props,f);if(d){const p=d._lpa||d.firstChild;if(t.shapeFlag&16)if(xt(t.props))t.anchor=a(i(e),t,l(e),n,s,r,o),t.targetAnchor=p;else{t.anchor=i(e);let _=p;for(;_;)if(_=i(_),_&&_.nodeType===8&&_.data==="teleport anchor"){t.targetAnchor=_,d._lpa=t.targetAnchor&&i(t.targetAnchor);break}a(p,t,d,n,s,r,o)}no(t)}return t.anchor&&i(t.anchor)}const mc=sl;function no(e){const t=e.ctx;if(t&&t.ut){let n=e.children[0].el;for(;n&&n!==e.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}const ge=Symbol.for("v-fgt"),dn=Symbol.for("v-txt"),me=Symbol.for("v-cmt"),En=Symbol.for("v-stc"),Ct=[];let Ce=null;function so(e=!1){Ct.push(Ce=e?null:[])}function ol(){Ct.pop(),Ce=Ct[Ct.length-1]||null}let Mt=1;function Hs(e){Mt+=e}function ro(e){return e.dynamicChildren=Mt>0?Ce||ot:null,ol(),Mt>0&&Ce&&Ce.push(e),e}function _c(e,t,n,s,r,o){return ro(lo(e,t,n,s,r,o,!0))}function oo(e,t,n,s,r){return ro(fe(e,t,n,s,r,!0))}function Jt(e){return e?e.__v_isVNode===!0:!1}function Qe(e,t){return e.type===t.type&&e.key===t.key}const io=({key:e})=>e??null,Wt=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Z(e)||de(e)||F(e)?{i:se,r:e,k:t,f:!!n}:e:null);function lo(e,t=null,n=null,s=0,r=null,o=e===ge?0:1,i=!1,l=!1){const f={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&io(t),ref:t&&Wt(t),scopeId:fn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:se};return l?(ls(f,n),o&128&&e.normalize(f)):n&&(f.shapeFlag|=Z(n)?8:16),Mt>0&&!i&&Ce&&(f.patchFlag>0||o&6)&&f.patchFlag!==32&&Ce.push(f),f}const fe=il;function il(e,t=null,n=null,s=0,r=null,o=!1){if((!e||e===Rr)&&(e=me),Jt(e)){const l=Ke(e,t,!0);return n&&ls(l,n),Mt>0&&!o&&Ce&&(l.shapeFlag&6?Ce[Ce.indexOf(e)]=l:Ce.push(l)),l.patchFlag|=-2,l}if(yl(e)&&(e=e.__vccOpts),t){t=ll(t);let{class:l,style:f}=t;l&&!Z(l)&&(t.class=rn(l)),k(f)&&(Er(f)&&!O(f)&&(f=te({},f)),t.style=sn(f))}const i=Z(e)?1:Ci(e)?128:nl(e)?64:k(e)?4:F(e)?2:0;return lo(e,t,n,s,r,i,o,!0)}function ll(e){return e?Er(e)||Jr(e)?te({},e):e:null}function Ke(e,t,n=!1,s=!1){const{props:r,ref:o,patchFlag:i,children:l,transition:f}=e,a=t?fl(r||{},t):r,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&io(a),ref:t&&t.ref?n&&o?O(o)?o.concat(Wt(t)):[o,Wt(t)]:Wt(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ge?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:f,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ke(e.ssContent),ssFallback:e.ssFallback&&Ke(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return f&&s&&(d.transition=f.clone(d)),d}function cl(e=" ",t=0){return fe(dn,null,e,t)}function yc(e="",t=!1){return t?(so(),oo(me,null,e)):fe(me,null,e)}function Se(e){return e==null||typeof e=="boolean"?fe(me):O(e)?fe(ge,null,e.slice()):typeof e=="object"?De(e):fe(dn,null,String(e))}function De(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ke(e)}function ls(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(O(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),ls(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!Jr(t)?t._ctx=se:r===3&&se&&(se.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else F(t)?(t={default:t,_ctx:se},n=32):(t=String(t),s&64?(n=16,t=[cl(t)]):n=8);e.children=t,e.shapeFlag|=n}function fl(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const r in s)if(r==="class")t.class!==s.class&&(t.class=rn([t.class,s.class]));else if(r==="style")t.style=sn([t.style,s.style]);else if(Zt(r)){const o=t[r],i=s[r];i&&o!==i&&!(O(o)&&o.includes(i))&&(t[r]=o?[].concat(o,i):i)}else r!==""&&(t[r]=s[r])}return t}function we(e,t,n,s=null){be(e,t,7,[n,s])}const ul=qr();let al=0;function dl(e,t,n){const s=e.type,r=(t?t.appContext:e.appContext)||ul,o={uid:al++,vnode:e,type:s,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new No(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Xr(s,r),emitsOptions:Fr(s,r),emit:null,emitted:null,propsDefaults:z,inheritAttrs:s.inheritAttrs,ctx:z,data:z,props:z,attrs:z,slots:z,refs:z,setupState:z,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=gi.bind(null,o),e.ce&&e.ce(o),o}let ie=null;const co=()=>ie||se;let Yt,Bn;{const e=cr(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),o=>{r.length>1?r.forEach(i=>i(o)):r[0](o)}};Yt=t("__VUE_INSTANCE_SETTERS__",n=>ie=n),Bn=t("__VUE_SSR_SETTERS__",n=>hn=n)}const It=e=>{const t=ie;return Yt(e),e.scope.on(),()=>{e.scope.off(),Yt(t)}},Ds=()=>{ie&&ie.scope.off(),Yt(null)};function fo(e){return e.vnode.shapeFlag&4}let hn=!1;function hl(e,t=!1){t&&Bn(t);const{props:n,children:s}=e.vnode,r=fo(e);zi(e,n,r,t),Yi(e,s);const o=r?pl(e,t):void 0;return t&&Bn(!1),o}function pl(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Di);const{setup:s}=n;if(s){const r=e.setupContext=s.length>1?ml(e):null,o=It(e);We();const i=Ve(s,e,0,[e.props,r]);if(Ge(),o(),rr(i)){if(i.then(Ds,Ds),t)return i.then(l=>{js(e,l,t)}).catch(l=>{ln(l,e,0)});e.asyncDep=i}else js(e,i,t)}else uo(e,t)}function js(e,t,n){F(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:k(t)&&(e.setupState=Ar(t)),uo(e,n)}let Bs;function uo(e,t,n){const s=e.type;if(!e.render){if(!t&&Bs&&!s.render){const r=s.template||rs(e).template;if(r){const{isCustomElement:o,compilerOptions:i}=e.appContext.config,{delimiters:l,compilerOptions:f}=s,a=te(te({isCustomElement:o,delimiters:l},i),f);s.render=Bs(r,a)}}e.render=s.render||ye}{const r=It(e);We();try{ji(e)}finally{Ge(),r()}}}const gl={get(e,t){return ae(e,"get",""),e[t]}};function ml(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,gl),slots:e.slots,emit:e.emit,expose:t}}function pn(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Ar(ri(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in bt)return bt[n](e)},has(t,n){return n in t||n in bt}}))}function _l(e,t=!0){return F(e)?e.displayName||e.name:e.name||t&&e.__name}function yl(e){return F(e)&&"__vccOpts"in e}const bl=(e,t)=>oi(e,t,hn);function vl(e,t,n){const s=arguments.length;return s===2?k(t)&&!O(t)?Jt(t)?fe(e,null,[t]):fe(e,t):fe(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Jt(n)&&(n=[n]),fe(e,t,n))}const xl="3.4.27";/**
13
+ **/function Ve(e,t,n,s){try{return s?e(...s):e()}catch(r){ln(r,t,n)}}function be(e,t,n,s){if(F(e)){const r=Ve(e,t,n,s);return r&&rr(r)&&r.catch(o=>{ln(o,t,n)}),r}if(O(e)){const r=[];for(let o=0;o<e.length;o++)r.push(be(e[o],t,n,s));return r}}function ln(e,t,n,s=!0){const r=t?t.vnode:null;if(t){let o=t.parent;const i=t.proxy,l=`https://vuejs.org/error-reference/#runtime-${n}`;for(;o;){const a=o.ec;if(a){for(let d=0;d<a.length;d++)if(a[d](e,i,l)===!1)return}o=o.parent}const f=t.appContext.config.errorHandler;if(f){We(),Ve(f,null,10,[e,i,l]),Ge();return}}fi(e,n,r,s)}function fi(e,t,n,s=!0){console.error(e)}let wt=!1,Rn=!1;const le=[];let Ae=0;const lt=[];let $e=null,Xe=0;const Or=Promise.resolve();let Zn=null;function ui(e){const t=Zn||Or;return e?t.then(this?e.bind(this):e):t}function ai(e){let t=Ae+1,n=le.length;for(;t<n;){const s=t+n>>>1,r=le[s],o=St(r);o<e||o===e&&r.pre?t=s+1:n=s}return t}function es(e){(!le.length||!le.includes(e,wt&&e.allowRecurse?Ae+1:Ae))&&(e.id==null?le.push(e):le.splice(ai(e.id),0,e),Mr())}function Mr(){!wt&&!Rn&&(Rn=!0,Zn=Or.then(Pr))}function di(e){const t=le.indexOf(e);t>Ae&&le.splice(t,1)}function hi(e){O(e)?lt.push(...e):(!$e||!$e.includes(e,e.allowRecurse?Xe+1:Xe))&&lt.push(e),Mr()}function Es(e,t,n=wt?Ae+1:0){for(;n<le.length;n++){const s=le[n];if(s&&s.pre){if(e&&s.id!==e.uid)continue;le.splice(n,1),n--,s()}}}function Ir(e){if(lt.length){const t=[...new Set(lt)].sort((n,s)=>St(n)-St(s));if(lt.length=0,$e){$e.push(...t);return}for($e=t,Xe=0;Xe<$e.length;Xe++)$e[Xe]();$e=null,Xe=0}}const St=e=>e.id==null?1/0:e.id,pi=(e,t)=>{const n=St(e)-St(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Pr(e){Rn=!1,wt=!0,le.sort(pi);try{for(Ae=0;Ae<le.length;Ae++){const t=le[Ae];t&&t.active!==!1&&Ve(t,null,14)}}finally{Ae=0,le.length=0,Ir(),wt=!1,Zn=null,(le.length||lt.length)&&Pr()}}function gi(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||z;let r=n;const o=t.startsWith("update:"),i=o&&t.slice(7);if(i&&i in s){const d=`${i==="modelValue"?"model":i}Modifiers`,{number:p,trim:_}=s[d]||z;_&&(r=n.map(T=>Z(T)?T.trim():T)),p&&(r=n.map(On))}let l,f=s[l=mn(t)]||s[l=mn(Oe(t))];!f&&o&&(f=s[l=mn(ft(t))]),f&&be(f,e,6,r);const a=s[l+"Once"];if(a){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,be(a,e,6,r)}}function Fr(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const o=e.emits;let i={},l=!1;if(!F(e)){const f=a=>{const d=Fr(a,t,!0);d&&(l=!0,te(i,d))};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}return!o&&!l?(k(e)&&s.set(e,null),null):(O(o)?o.forEach(f=>i[f]=null):te(i,o),k(e)&&s.set(e,i),i)}function cn(e,t){return!e||!Zt(t)?!1:(t=t.slice(2).replace(/Once$/,""),H(e,t[0].toLowerCase()+t.slice(1))||H(e,ft(t))||H(e,t))}let se=null,fn=null;function zt(e){const t=se;return se=e,fn=e&&e.type.__scopeId||null,t}function ic(e){fn=e}function lc(){fn=null}function mi(e,t=se,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&Hs(-1);const o=zt(t);let i;try{i=e(...r)}finally{zt(o),s._d&&Hs(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function yn(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[o],slots:i,attrs:l,emit:f,render:a,renderCache:d,props:p,data:_,setupState:T,ctx:L,inheritAttrs:R}=e,ne=zt(e);let W,Y;try{if(n.shapeFlag&4){const j=r||s,K=j;W=Se(a.call(K,j,d,p,T,_,L)),Y=l}else{const j=t;W=Se(j.length>1?j(p,{attrs:l,slots:i,emit:f}):j(p,null)),Y=t.props?l:_i(l)}}catch(j){Ct.length=0,ln(j,e,1),W=fe(me)}let $=W;if(Y&&R!==!1){const j=Object.keys(Y),{shapeFlag:K}=$;j.length&&K&7&&(o&&j.some(Un)&&(Y=yi(Y,o)),$=Ke($,Y,!1,!0))}return n.dirs&&($=Ke($,null,!1,!0),$.dirs=$.dirs?$.dirs.concat(n.dirs):n.dirs),n.transition&&($.transition=n.transition),W=$,zt(ne),W}const _i=e=>{let t;for(const n in e)(n==="class"||n==="style"||Zt(n))&&((t||(t={}))[n]=e[n]);return t},yi=(e,t)=>{const n={};for(const s in e)(!Un(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function bi(e,t,n){const{props:s,children:r,component:o}=e,{props:i,children:l,patchFlag:f}=t,a=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&f>=0){if(f&1024)return!0;if(f&16)return s?Ts(s,i,a):!!i;if(f&8){const d=t.dynamicProps;for(let p=0;p<d.length;p++){const _=d[p];if(i[_]!==s[_]&&!cn(a,_))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:s===i?!1:s?i?Ts(s,i,a):!0:!!i;return!1}function Ts(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let r=0;r<s.length;r++){const o=s[r];if(t[o]!==e[o]&&!cn(n,o))return!0}return!1}function vi({vnode:e,parent:t},n){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s===e)(e=t.vnode).el=n,t=t.parent;else break}}const ts="components",xi="directives";function cc(e,t){return ns(ts,e,!0,t)||e}const Rr=Symbol.for("v-ndc");function fc(e){return Z(e)?ns(ts,e,!1)||e:e||Rr}function uc(e){return ns(xi,e)}function ns(e,t,n=!0,s=!1){const r=se||ie;if(r){const o=r.type;if(e===ts){const l=_l(o,!1);if(l&&(l===t||l===Oe(t)||l===nn(Oe(t))))return o}const i=ws(r[e]||o[e],t)||ws(r.appContext[e],t);return!i&&s?o:i}}function ws(e,t){return e&&(e[t]||e[Oe(t)]||e[nn(Oe(t))])}const Ci=e=>e.__isSuspense;function Ei(e,t){t&&t.pendingBranch?O(e)?t.effects.push(...e):t.effects.push(e):hi(e)}const Ti=Symbol.for("v-scx"),wi=()=>Kt(Ti),Dt={};function bn(e,t,n){return Lr(e,t,n)}function Lr(e,t,{immediate:n,deep:s,flush:r,once:o,onTrack:i,onTrigger:l}=z){if(t&&o){const I=t;t=(...q)=>{I(...q),K()}}const f=ie,a=I=>s===!0?I:Ze(I,s===!1?1:void 0);let d,p=!1,_=!1;if(de(e)?(d=()=>e.value,p=qt(e)):_t(e)?(d=()=>a(e),p=!0):O(e)?(_=!0,p=e.some(I=>_t(I)||qt(I)),d=()=>e.map(I=>{if(de(I))return I.value;if(_t(I))return a(I);if(F(I))return Ve(I,f,2)})):F(e)?t?d=()=>Ve(e,f,2):d=()=>(T&&T(),be(e,f,3,[L])):d=ye,t&&s){const I=d;d=()=>Ze(I())}let T,L=I=>{T=$.onStop=()=>{Ve(I,f,4),T=$.onStop=void 0}},R;if(hn)if(L=ye,t?n&&be(t,f,3,[d(),_?[]:void 0,L]):d(),r==="sync"){const I=wi();R=I.__watcherHandles||(I.__watcherHandles=[])}else return ye;let ne=_?new Array(e.length).fill(Dt):Dt;const W=()=>{if(!(!$.active||!$.dirty))if(t){const I=$.run();(s||p||(_?I.some((q,M)=>Ue(q,ne[M])):Ue(I,ne)))&&(T&&T(),be(t,f,3,[I,ne===Dt?void 0:_&&ne[0]===Dt?[]:ne,L]),ne=I)}else $.run()};W.allowRecurse=!!t;let Y;r==="sync"?Y=W:r==="post"?Y=()=>ue(W,f&&f.suspense):(W.pre=!0,f&&(W.id=f.uid),Y=()=>es(W));const $=new Gn(d,ye,Y),j=Ho(),K=()=>{$.stop(),j&&Kn(j.effects,$)};return t?n?W():ne=$.run():r==="post"?ue($.run.bind($),f&&f.suspense):$.run(),R&&R.push(K),K}function Si(e,t,n){const s=this.proxy,r=Z(e)?e.includes(".")?Nr(s,e):()=>s[e]:e.bind(s,s);let o;F(t)?o=t:(o=t.handler,n=t);const i=It(this),l=Lr(r,o.bind(s),n);return i(),l}function Nr(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r<n.length&&s;r++)s=s[n[r]];return s}}function Ze(e,t=1/0,n){if(t<=0||!k(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,de(e))Ze(e.value,t,n);else if(O(e))for(let s=0;s<e.length;s++)Ze(e[s],t,n);else if(sr(e)||it(e))e.forEach(s=>{Ze(s,t,n)});else if(ir(e))for(const s in e)Ze(e[s],t,n);return e}function ac(e,t){if(se===null)return e;const n=pn(se)||se.proxy,s=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[o,i,l,f=z]=t[r];o&&(F(o)&&(o={mounted:o,updated:o}),o.deep&&Ze(i),s.push({dir:o,instance:n,value:i,oldValue:void 0,arg:l,modifiers:f}))}return e}function ke(e,t,n,s){const r=e.dirs,o=t&&t.dirs;for(let i=0;i<r.length;i++){const l=r[i];o&&(l.oldValue=o[i].value);let f=l.dir[s];f&&(We(),be(f,n,8,[e.el,l,e,t]),Ge())}}const He=Symbol("_leaveCb"),jt=Symbol("_enterCb");function $r(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Br(()=>{e.isMounted=!0}),Ur(()=>{e.isUnmounting=!0}),e}const _e=[Function,Array],Hr={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:_e,onEnter:_e,onAfterEnter:_e,onEnterCancelled:_e,onBeforeLeave:_e,onLeave:_e,onAfterLeave:_e,onLeaveCancelled:_e,onBeforeAppear:_e,onAppear:_e,onAfterAppear:_e,onAppearCancelled:_e},Ai={name:"BaseTransition",props:Hr,setup(e,{slots:t}){const n=co(),s=$r();return()=>{const r=t.default&&ss(t.default(),!0);if(!r||!r.length)return;let o=r[0];if(r.length>1){for(const _ of r)if(_.type!==me){o=_;break}}const i=D(e),{mode:l}=i;if(s.isLeaving)return vn(o);const f=Ss(o);if(!f)return vn(o);const a=At(f,i,s,n);Ot(f,a);const d=n.subTree,p=d&&Ss(d);if(p&&p.type!==me&&!Qe(f,p)){const _=At(p,i,s,n);if(Ot(p,_),l==="out-in"&&f.type!==me)return s.isLeaving=!0,_.afterLeave=()=>{s.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},vn(o);l==="in-out"&&f.type!==me&&(_.delayLeave=(T,L,R)=>{const ne=Dr(s,p);ne[String(p.key)]=p,T[He]=()=>{L(),T[He]=void 0,delete a.delayedLeave},a.delayedLeave=R})}return o}}},Oi=Ai;function Dr(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function At(e,t,n,s){const{appear:r,mode:o,persisted:i=!1,onBeforeEnter:l,onEnter:f,onAfterEnter:a,onEnterCancelled:d,onBeforeLeave:p,onLeave:_,onAfterLeave:T,onLeaveCancelled:L,onBeforeAppear:R,onAppear:ne,onAfterAppear:W,onAppearCancelled:Y}=t,$=String(e.key),j=Dr(n,e),K=(M,V)=>{M&&be(M,s,9,V)},I=(M,V)=>{const B=V[1];K(M,V),O(M)?M.every(ee=>ee.length<=1)&&B():M.length<=1&&B()},q={mode:o,persisted:i,beforeEnter(M){let V=l;if(!n.isMounted)if(r)V=R||l;else return;M[He]&&M[He](!0);const B=j[$];B&&Qe(e,B)&&B.el[He]&&B.el[He](),K(V,[M])},enter(M){let V=f,B=a,ee=d;if(!n.isMounted)if(r)V=ne||f,B=W||a,ee=Y||d;else return;let w=!1;const X=M[jt]=he=>{w||(w=!0,he?K(ee,[M]):K(B,[M]),q.delayedLeave&&q.delayedLeave(),M[jt]=void 0)};V?I(V,[M,X]):X()},leave(M,V){const B=String(e.key);if(M[jt]&&M[jt](!0),n.isUnmounting)return V();K(p,[M]);let ee=!1;const w=M[He]=X=>{ee||(ee=!0,V(),X?K(L,[M]):K(T,[M]),M[He]=void 0,j[B]===e&&delete j[B])};j[B]=e,_?I(_,[M,w]):w()},clone(M){return At(M,t,n,s)}};return q}function vn(e){if(un(e))return e=Ke(e),e.children=null,e}function Ss(e){if(!un(e))return e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&F(n.default))return n.default()}}function Ot(e,t){e.shapeFlag&6&&e.component?Ot(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ss(e,t=!1,n){let s=[],r=0;for(let o=0;o<e.length;o++){let i=e[o];const l=n==null?i.key:String(n)+String(i.key!=null?i.key:o);i.type===ge?(i.patchFlag&128&&r++,s=s.concat(ss(i.children,t,l))):(t||i.type!==me)&&s.push(l!=null?Ke(i,{key:l}):i)}if(r>1)for(let o=0;o<s.length;o++)s[o].patchFlag=-2;return s}/*! #__NO_SIDE_EFFECTS__ */function dc(e,t){return F(e)?te({name:e.name},t,{setup:e}):e}const yt=e=>!!e.type.__asyncLoader,un=e=>e.type.__isKeepAlive;function Mi(e,t){jr(e,"a",t)}function Ii(e,t){jr(e,"da",t)}function jr(e,t,n=ie){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(an(t,s,n),n){let r=n.parent;for(;r&&r.parent;)un(r.parent.vnode)&&Pi(s,t,n,r),r=r.parent}}function Pi(e,t,n,s){const r=an(t,e,s,!0);Kr(()=>{Kn(s[t],r)},n)}function an(e,t,n=ie,s=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;We();const l=It(n),f=be(t,n,e,i);return l(),Ge(),f});return s?r.unshift(o):r.push(o),o}}const Fe=e=>(t,n=ie)=>(!hn||e==="sp")&&an(e,(...s)=>t(...s),n),Fi=Fe("bm"),Br=Fe("m"),Ri=Fe("bu"),Vr=Fe("u"),Ur=Fe("bum"),Kr=Fe("um"),Li=Fe("sp"),Ni=Fe("rtg"),$i=Fe("rtc");function Hi(e,t=ie){an("ec",e,t)}function hc(e,t,n,s){let r;const o=n;if(O(e)||Z(e)){r=new Array(e.length);for(let i=0,l=e.length;i<l;i++)r[i]=t(e[i],i,void 0,o)}else if(typeof e=="number"){r=new Array(e);for(let i=0;i<e;i++)r[i]=t(i+1,i,void 0,o)}else if(k(e))if(e[Symbol.iterator])r=Array.from(e,(i,l)=>t(i,l,void 0,o));else{const i=Object.keys(e);r=new Array(i.length);for(let l=0,f=i.length;l<f;l++){const a=i[l];r[l]=t(e[a],a,l,o)}}else r=[];return r}function pc(e,t){for(let n=0;n<t.length;n++){const s=t[n];if(O(s))for(let r=0;r<s.length;r++)e[s[r].name]=s[r].fn;else s&&(e[s.name]=s.key?(...r)=>{const o=s.fn(...r);return o&&(o.key=s.key),o}:s.fn)}return e}function gc(e,t,n={},s,r){if(se.isCE||se.parent&&yt(se.parent)&&se.parent.isCE)return t!=="default"&&(n.name=t),fe("slot",n,s&&s());let o=e[t];o&&o._c&&(o._d=!1),so();const i=o&&Wr(o(n)),l=oo(ge,{key:n.key||i&&i.key||`_${t}`},i||(s?s():[]),i&&e._===1?64:-2);return l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),o&&o._c&&(o._d=!0),l}function Wr(e){return e.some(t=>Jt(t)?!(t.type===me||t.type===ge&&!Wr(t.children)):!0)?e:null}const Ln=e=>e?fo(e)?pn(e)||e.proxy:Ln(e.parent):null,bt=te(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Ln(e.parent),$root:e=>Ln(e.root),$emit:e=>e.emit,$options:e=>rs(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,es(e.update)}),$nextTick:e=>e.n||(e.n=ui.bind(e.proxy)),$watch:e=>Si.bind(e)}),xn=(e,t)=>e!==z&&!e.__isScriptSetup&&H(e,t),Di={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:o,accessCache:i,type:l,appContext:f}=e;let a;if(t[0]!=="$"){const T=i[t];if(T!==void 0)switch(T){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return o[t]}else{if(xn(s,t))return i[t]=1,s[t];if(r!==z&&H(r,t))return i[t]=2,r[t];if((a=e.propsOptions[0])&&H(a,t))return i[t]=3,o[t];if(n!==z&&H(n,t))return i[t]=4,n[t];Nn&&(i[t]=0)}}const d=bt[t];let p,_;if(d)return t==="$attrs"&&ae(e.attrs,"get",""),d(e);if((p=l.__cssModules)&&(p=p[t]))return p;if(n!==z&&H(n,t))return i[t]=4,n[t];if(_=f.config.globalProperties,H(_,t))return _[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:o}=e;return xn(r,t)?(r[t]=n,!0):s!==z&&H(s,t)?(s[t]=n,!0):H(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,propsOptions:o}},i){let l;return!!n[i]||e!==z&&H(e,i)||xn(t,i)||(l=o[0])&&H(l,i)||H(s,i)||H(bt,i)||H(r.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:H(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function As(e){return O(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Nn=!0;function ji(e){const t=rs(e),n=e.proxy,s=e.ctx;Nn=!1,t.beforeCreate&&Os(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:i,watch:l,provide:f,inject:a,created:d,beforeMount:p,mounted:_,beforeUpdate:T,updated:L,activated:R,deactivated:ne,beforeDestroy:W,beforeUnmount:Y,destroyed:$,unmounted:j,render:K,renderTracked:I,renderTriggered:q,errorCaptured:M,serverPrefetch:V,expose:B,inheritAttrs:ee,components:w,directives:X,filters:he}=t;if(a&&Bi(a,s,null),i)for(const Q in i){const G=i[Q];F(G)&&(s[Q]=G.bind(n))}if(r){const Q=r.call(n,n);k(Q)&&(e.data=Yn(Q))}if(Nn=!0,o)for(const Q in o){const G=o[Q],qe=F(G)?G.bind(n,n):F(G.get)?G.get.bind(n,n):ye,Pt=!F(G)&&F(G.set)?G.set.bind(n):ye,ze=bl({get:qe,set:Pt});Object.defineProperty(s,Q,{enumerable:!0,configurable:!0,get:()=>ze.value,set:Ee=>ze.value=Ee})}if(l)for(const Q in l)Gr(l[Q],s,n,Q);if(f){const Q=F(f)?f.call(n):f;Reflect.ownKeys(Q).forEach(G=>{qi(G,Q[G])})}d&&Os(d,e,"c");function re(Q,G){O(G)?G.forEach(qe=>Q(qe.bind(n))):G&&Q(G.bind(n))}if(re(Fi,p),re(Br,_),re(Ri,T),re(Vr,L),re(Mi,R),re(Ii,ne),re(Hi,M),re($i,I),re(Ni,q),re(Ur,Y),re(Kr,j),re(Li,V),O(B))if(B.length){const Q=e.exposed||(e.exposed={});B.forEach(G=>{Object.defineProperty(Q,G,{get:()=>n[G],set:qe=>n[G]=qe})})}else e.exposed||(e.exposed={});K&&e.render===ye&&(e.render=K),ee!=null&&(e.inheritAttrs=ee),w&&(e.components=w),X&&(e.directives=X)}function Bi(e,t,n=ye){O(e)&&(e=$n(e));for(const s in e){const r=e[s];let o;k(r)?"default"in r?o=Kt(r.from||s,r.default,!0):o=Kt(r.from||s):o=Kt(r),de(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[s]=o}}function Os(e,t,n){be(O(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Gr(e,t,n,s){const r=s.includes(".")?Nr(n,s):()=>n[s];if(Z(e)){const o=t[e];F(o)&&bn(r,o)}else if(F(e))bn(r,e.bind(n));else if(k(e))if(O(e))e.forEach(o=>Gr(o,t,n,s));else{const o=F(e.handler)?e.handler.bind(n):t[e.handler];F(o)&&bn(r,o,e)}}function rs(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,l=o.get(t);let f;return l?f=l:!r.length&&!n&&!s?f=t:(f={},r.length&&r.forEach(a=>kt(f,a,i,!0)),kt(f,t,i)),k(t)&&o.set(t,f),f}function kt(e,t,n,s=!1){const{mixins:r,extends:o}=t;o&&kt(e,o,n,!0),r&&r.forEach(i=>kt(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const l=Vi[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const Vi={data:Ms,props:Is,emits:Is,methods:gt,computed:gt,beforeCreate:ce,created:ce,beforeMount:ce,mounted:ce,beforeUpdate:ce,updated:ce,beforeDestroy:ce,beforeUnmount:ce,destroyed:ce,unmounted:ce,activated:ce,deactivated:ce,errorCaptured:ce,serverPrefetch:ce,components:gt,directives:gt,watch:Ki,provide:Ms,inject:Ui};function Ms(e,t){return t?e?function(){return te(F(e)?e.call(this,this):e,F(t)?t.call(this,this):t)}:t:e}function Ui(e,t){return gt($n(e),$n(t))}function $n(e){if(O(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function ce(e,t){return e?[...new Set([].concat(e,t))]:t}function gt(e,t){return e?te(Object.create(null),e,t):t}function Is(e,t){return e?O(e)&&O(t)?[...new Set([...e,...t])]:te(Object.create(null),As(e),As(t??{})):t}function Ki(e,t){if(!e)return t;if(!t)return e;const n=te(Object.create(null),e);for(const s in t)n[s]=ce(e[s],t[s]);return n}function qr(){return{app:null,config:{isNativeTag:Eo,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Wi=0;function Gi(e,t){return function(s,r=null){F(s)||(s=te({},s)),r!=null&&!k(r)&&(r=null);const o=qr(),i=new WeakSet;let l=!1;const f=o.app={_uid:Wi++,_component:s,_props:r,_container:null,_context:o,_instance:null,version:xl,get config(){return o.config},set config(a){},use(a,...d){return i.has(a)||(a&&F(a.install)?(i.add(a),a.install(f,...d)):F(a)&&(i.add(a),a(f,...d))),f},mixin(a){return o.mixins.includes(a)||o.mixins.push(a),f},component(a,d){return d?(o.components[a]=d,f):o.components[a]},directive(a,d){return d?(o.directives[a]=d,f):o.directives[a]},mount(a,d,p){if(!l){const _=fe(s,r);return _.appContext=o,p===!0?p="svg":p===!1&&(p=void 0),d&&t?t(_,a):e(_,a,p),l=!0,f._container=a,a.__vue_app__=f,pn(_.component)||_.component.proxy}},unmount(){l&&(e(null,f._container),delete f._container.__vue_app__)},provide(a,d){return o.provides[a]=d,f},runWithContext(a){const d=vt;vt=f;try{return a()}finally{vt=d}}};return f}}let vt=null;function qi(e,t){if(ie){let n=ie.provides;const s=ie.parent&&ie.parent.provides;s===n&&(n=ie.provides=Object.create(s)),n[e]=t}}function Kt(e,t,n=!1){const s=ie||se;if(s||vt){const r=s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:vt._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&F(t)?t.call(s&&s.proxy):t}}const zr={},kr=()=>Object.create(zr),Jr=e=>Object.getPrototypeOf(e)===zr;function zi(e,t,n,s=!1){const r={},o=kr();e.propsDefaults=Object.create(null),Yr(e,t,r,o);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=s?r:si(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function ki(e,t,n,s){const{props:r,attrs:o,vnode:{patchFlag:i}}=e,l=D(r),[f]=e.propsOptions;let a=!1;if((s||i>0)&&!(i&16)){if(i&8){const d=e.vnode.dynamicProps;for(let p=0;p<d.length;p++){let _=d[p];if(cn(e.emitsOptions,_))continue;const T=t[_];if(f)if(H(o,_))T!==o[_]&&(o[_]=T,a=!0);else{const L=Oe(_);r[L]=Hn(f,l,L,T,e,!1)}else T!==o[_]&&(o[_]=T,a=!0)}}}else{Yr(e,t,r,o)&&(a=!0);let d;for(const p in l)(!t||!H(t,p)&&((d=ft(p))===p||!H(t,d)))&&(f?n&&(n[p]!==void 0||n[d]!==void 0)&&(r[p]=Hn(f,l,p,void 0,e,!0)):delete r[p]);if(o!==l)for(const p in o)(!t||!H(t,p))&&(delete o[p],a=!0)}a&&Pe(e.attrs,"set","")}function Yr(e,t,n,s){const[r,o]=e.propsOptions;let i=!1,l;if(t)for(let f in t){if(mt(f))continue;const a=t[f];let d;r&&H(r,d=Oe(f))?!o||!o.includes(d)?n[d]=a:(l||(l={}))[d]=a:cn(e.emitsOptions,f)||(!(f in s)||a!==s[f])&&(s[f]=a,i=!0)}if(o){const f=D(n),a=l||z;for(let d=0;d<o.length;d++){const p=o[d];n[p]=Hn(r,f,p,a[p],e,!H(a,p))}}return i}function Hn(e,t,n,s,r,o){const i=e[n];if(i!=null){const l=H(i,"default");if(l&&s===void 0){const f=i.default;if(i.type!==Function&&!i.skipFactory&&F(f)){const{propsDefaults:a}=r;if(n in a)s=a[n];else{const d=It(r);s=a[n]=f.call(null,t),d()}}else s=f}i[0]&&(o&&!l?s=!1:i[1]&&(s===""||s===ft(n))&&(s=!0))}return s}function Xr(e,t,n=!1){const s=t.propsCache,r=s.get(e);if(r)return r;const o=e.props,i={},l=[];let f=!1;if(!F(e)){const d=p=>{f=!0;const[_,T]=Xr(p,t,!0);te(i,_),T&&l.push(...T)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!o&&!f)return k(e)&&s.set(e,ot),ot;if(O(o))for(let d=0;d<o.length;d++){const p=Oe(o[d]);Ps(p)&&(i[p]=z)}else if(o)for(const d in o){const p=Oe(d);if(Ps(p)){const _=o[d],T=i[p]=O(_)||F(_)?{type:_}:te({},_);if(T){const L=Ls(Boolean,T.type),R=Ls(String,T.type);T[0]=L>-1,T[1]=R<0||L<R,(L>-1||H(T,"default"))&&l.push(p)}}}const a=[i,l];return k(e)&&s.set(e,a),a}function Ps(e){return e[0]!=="$"&&!mt(e)}function Fs(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function Rs(e,t){return Fs(e)===Fs(t)}function Ls(e,t){return O(t)?t.findIndex(n=>Rs(n,e)):F(t)&&Rs(t,e)?0:-1}const Qr=e=>e[0]==="_"||e==="$stable",os=e=>O(e)?e.map(Se):[Se(e)],Ji=(e,t,n)=>{if(t._n)return t;const s=mi((...r)=>os(t(...r)),n);return s._c=!1,s},Zr=(e,t,n)=>{const s=e._ctx;for(const r in e){if(Qr(r))continue;const o=e[r];if(F(o))t[r]=Ji(r,o,s);else if(o!=null){const i=os(o);t[r]=()=>i}}},eo=(e,t)=>{const n=os(t);e.slots.default=()=>n},Yi=(e,t)=>{const n=e.slots=kr();if(e.vnode.shapeFlag&32){const s=t._;s?(te(n,t),lr(n,"_",s,!0)):Zr(t,n)}else t&&eo(e,t)},Xi=(e,t,n)=>{const{vnode:s,slots:r}=e;let o=!0,i=z;if(s.shapeFlag&32){const l=t._;l?n&&l===1?o=!1:(te(r,t),!n&&l===1&&delete r._):(o=!t.$stable,Zr(t,r)),i=t}else t&&(eo(e,t),i={default:1});if(o)for(const l in r)!Qr(l)&&i[l]==null&&delete r[l]};function Dn(e,t,n,s,r=!1){if(O(e)){e.forEach((_,T)=>Dn(_,t&&(O(t)?t[T]:t),n,s,r));return}if(yt(s)&&!r)return;const o=s.shapeFlag&4?pn(s.component)||s.component.proxy:s.el,i=r?null:o,{i:l,r:f}=e,a=t&&t.r,d=l.refs===z?l.refs={}:l.refs,p=l.setupState;if(a!=null&&a!==f&&(Z(a)?(d[a]=null,H(p,a)&&(p[a]=null)):de(a)&&(a.value=null)),F(f))Ve(f,l,12,[i,d]);else{const _=Z(f),T=de(f);if(_||T){const L=()=>{if(e.f){const R=_?H(p,f)?p[f]:d[f]:f.value;r?O(R)&&Kn(R,o):O(R)?R.includes(o)||R.push(o):_?(d[f]=[o],H(p,f)&&(p[f]=d[f])):(f.value=[o],e.k&&(d[e.k]=f.value))}else _?(d[f]=i,H(p,f)&&(p[f]=i)):T&&(f.value=i,e.k&&(d[e.k]=i))};i?(L.id=-1,ue(L,n)):L()}}}const ue=Ei;function Qi(e){return Zi(e)}function Zi(e,t){const n=cr();n.__VUE__=!0;const{insert:s,remove:r,patchProp:o,createElement:i,createText:l,createComment:f,setText:a,setElementText:d,parentNode:p,nextSibling:_,setScopeId:T=ye,insertStaticContent:L}=e,R=(c,u,h,g=null,m=null,v=null,C=void 0,b=null,x=!!u.dynamicChildren)=>{if(c===u)return;c&&!Qe(c,u)&&(g=Ft(c),Ee(c,m,v,!0),c=null),u.patchFlag===-2&&(x=!1,u.dynamicChildren=null);const{type:y,ref:E,shapeFlag:A}=u;switch(y){case dn:ne(c,u,h,g);break;case me:W(c,u,h,g);break;case En:c==null&&Y(u,h,g,C);break;case ge:w(c,u,h,g,m,v,C,b,x);break;default:A&1?K(c,u,h,g,m,v,C,b,x):A&6?X(c,u,h,g,m,v,C,b,x):(A&64||A&128)&&y.process(c,u,h,g,m,v,C,b,x,at)}E!=null&&m&&Dn(E,c&&c.ref,v,u||c,!u)},ne=(c,u,h,g)=>{if(c==null)s(u.el=l(u.children),h,g);else{const m=u.el=c.el;u.children!==c.children&&a(m,u.children)}},W=(c,u,h,g)=>{c==null?s(u.el=f(u.children||""),h,g):u.el=c.el},Y=(c,u,h,g)=>{[c.el,c.anchor]=L(c.children,u,h,g,c.el,c.anchor)},$=({el:c,anchor:u},h,g)=>{let m;for(;c&&c!==u;)m=_(c),s(c,h,g),c=m;s(u,h,g)},j=({el:c,anchor:u})=>{let h;for(;c&&c!==u;)h=_(c),r(c),c=h;r(u)},K=(c,u,h,g,m,v,C,b,x)=>{u.type==="svg"?C="svg":u.type==="math"&&(C="mathml"),c==null?I(u,h,g,m,v,C,b,x):V(c,u,m,v,C,b,x)},I=(c,u,h,g,m,v,C,b)=>{let x,y;const{props:E,shapeFlag:A,transition:S,dirs:P}=c;if(x=c.el=i(c.type,v,E&&E.is,E),A&8?d(x,c.children):A&16&&M(c.children,x,null,g,m,Cn(c,v),C,b),P&&ke(c,null,g,"created"),q(x,c,c.scopeId,C,g),E){for(const U in E)U!=="value"&&!mt(U)&&o(x,U,null,E[U],v,c.children,g,m,Me);"value"in E&&o(x,"value",null,E.value,v),(y=E.onVnodeBeforeMount)&&we(y,g,c)}P&&ke(c,null,g,"beforeMount");const N=el(m,S);N&&S.beforeEnter(x),s(x,u,h),((y=E&&E.onVnodeMounted)||N||P)&&ue(()=>{y&&we(y,g,c),N&&S.enter(x),P&&ke(c,null,g,"mounted")},m)},q=(c,u,h,g,m)=>{if(h&&T(c,h),g)for(let v=0;v<g.length;v++)T(c,g[v]);if(m){let v=m.subTree;if(u===v){const C=m.vnode;q(c,C,C.scopeId,C.slotScopeIds,m.parent)}}},M=(c,u,h,g,m,v,C,b,x=0)=>{for(let y=x;y<c.length;y++){const E=c[y]=b?De(c[y]):Se(c[y]);R(null,E,u,h,g,m,v,C,b)}},V=(c,u,h,g,m,v,C)=>{const b=u.el=c.el;let{patchFlag:x,dynamicChildren:y,dirs:E}=u;x|=c.patchFlag&16;const A=c.props||z,S=u.props||z;let P;if(h&&Je(h,!1),(P=S.onVnodeBeforeUpdate)&&we(P,h,u,c),E&&ke(u,c,h,"beforeUpdate"),h&&Je(h,!0),y?B(c.dynamicChildren,y,b,h,g,Cn(u,m),v):C||G(c,u,b,null,h,g,Cn(u,m),v,!1),x>0){if(x&16)ee(b,u,A,S,h,g,m);else if(x&2&&A.class!==S.class&&o(b,"class",null,S.class,m),x&4&&o(b,"style",A.style,S.style,m),x&8){const N=u.dynamicProps;for(let U=0;U<N.length;U++){const J=N[U],oe=A[J],ve=S[J];(ve!==oe||J==="value")&&o(b,J,oe,ve,m,c.children,h,g,Me)}}x&1&&c.children!==u.children&&d(b,u.children)}else!C&&y==null&&ee(b,u,A,S,h,g,m);((P=S.onVnodeUpdated)||E)&&ue(()=>{P&&we(P,h,u,c),E&&ke(u,c,h,"updated")},g)},B=(c,u,h,g,m,v,C)=>{for(let b=0;b<u.length;b++){const x=c[b],y=u[b],E=x.el&&(x.type===ge||!Qe(x,y)||x.shapeFlag&70)?p(x.el):h;R(x,y,E,null,g,m,v,C,!0)}},ee=(c,u,h,g,m,v,C)=>{if(h!==g){if(h!==z)for(const b in h)!mt(b)&&!(b in g)&&o(c,b,h[b],null,C,u.children,m,v,Me);for(const b in g){if(mt(b))continue;const x=g[b],y=h[b];x!==y&&b!=="value"&&o(c,b,y,x,C,u.children,m,v,Me)}"value"in g&&o(c,"value",h.value,g.value,C)}},w=(c,u,h,g,m,v,C,b,x)=>{const y=u.el=c?c.el:l(""),E=u.anchor=c?c.anchor:l("");let{patchFlag:A,dynamicChildren:S,slotScopeIds:P}=u;P&&(b=b?b.concat(P):P),c==null?(s(y,h,g),s(E,h,g),M(u.children||[],h,E,m,v,C,b,x)):A>0&&A&64&&S&&c.dynamicChildren?(B(c.dynamicChildren,S,h,m,v,C,b),(u.key!=null||m&&u===m.subTree)&&is(c,u,!0)):G(c,u,h,E,m,v,C,b,x)},X=(c,u,h,g,m,v,C,b,x)=>{u.slotScopeIds=b,c==null?u.shapeFlag&512?m.ctx.activate(u,h,g,C,x):he(u,h,g,m,v,C,x):ut(c,u,x)},he=(c,u,h,g,m,v,C)=>{const b=c.component=dl(c,g,m);if(un(c)&&(b.ctx.renderer=at),hl(b),b.asyncDep){if(m&&m.registerDep(b,re),!c.el){const x=b.subTree=fe(me);W(null,x,u,h)}}else re(b,c,u,h,m,v,C)},ut=(c,u,h)=>{const g=u.component=c.component;if(bi(c,u,h))if(g.asyncDep&&!g.asyncResolved){Q(g,u,h);return}else g.next=u,di(g.update),g.effect.dirty=!0,g.update();else u.el=c.el,g.vnode=u},re=(c,u,h,g,m,v,C)=>{const b=()=>{if(c.isMounted){let{next:E,bu:A,u:S,parent:P,vnode:N}=c;{const st=to(c);if(st){E&&(E.el=N.el,Q(c,E,C)),st.asyncDep.then(()=>{c.isUnmounted||b()});return}}let U=E,J;Je(c,!1),E?(E.el=N.el,Q(c,E,C)):E=N,A&&Vt(A),(J=E.props&&E.props.onVnodeBeforeUpdate)&&we(J,P,E,N),Je(c,!0);const oe=yn(c),ve=c.subTree;c.subTree=oe,R(ve,oe,p(ve.el),Ft(ve),c,m,v),E.el=oe.el,U===null&&vi(c,oe.el),S&&ue(S,m),(J=E.props&&E.props.onVnodeUpdated)&&ue(()=>we(J,P,E,N),m)}else{let E;const{el:A,props:S}=u,{bm:P,m:N,parent:U}=c,J=yt(u);if(Je(c,!1),P&&Vt(P),!J&&(E=S&&S.onVnodeBeforeMount)&&we(E,U,u),Je(c,!0),A&&as){const oe=()=>{c.subTree=yn(c),as(A,c.subTree,c,m,null)};J?u.type.__asyncLoader().then(()=>!c.isUnmounted&&oe()):oe()}else{const oe=c.subTree=yn(c);R(null,oe,h,g,c,m,v),u.el=oe.el}if(N&&ue(N,m),!J&&(E=S&&S.onVnodeMounted)){const oe=u;ue(()=>we(E,U,oe),m)}(u.shapeFlag&256||U&&yt(U.vnode)&&U.vnode.shapeFlag&256)&&c.a&&ue(c.a,m),c.isMounted=!0,u=h=g=null}},x=c.effect=new Gn(b,ye,()=>es(y),c.scope),y=c.update=()=>{x.dirty&&x.run()};y.id=c.uid,Je(c,!0),y()},Q=(c,u,h)=>{u.component=c;const g=c.vnode.props;c.vnode=u,c.next=null,ki(c,u.props,g,h),Xi(c,u.children,h),We(),Es(c),Ge()},G=(c,u,h,g,m,v,C,b,x=!1)=>{const y=c&&c.children,E=c?c.shapeFlag:0,A=u.children,{patchFlag:S,shapeFlag:P}=u;if(S>0){if(S&128){Pt(y,A,h,g,m,v,C,b,x);return}else if(S&256){qe(y,A,h,g,m,v,C,b,x);return}}P&8?(E&16&&Me(y,m,v),A!==y&&d(h,A)):E&16?P&16?Pt(y,A,h,g,m,v,C,b,x):Me(y,m,v,!0):(E&8&&d(h,""),P&16&&M(A,h,g,m,v,C,b,x))},qe=(c,u,h,g,m,v,C,b,x)=>{c=c||ot,u=u||ot;const y=c.length,E=u.length,A=Math.min(y,E);let S;for(S=0;S<A;S++){const P=u[S]=x?De(u[S]):Se(u[S]);R(c[S],P,h,null,m,v,C,b,x)}y>E?Me(c,m,v,!0,!1,A):M(u,h,g,m,v,C,b,x,A)},Pt=(c,u,h,g,m,v,C,b,x)=>{let y=0;const E=u.length;let A=c.length-1,S=E-1;for(;y<=A&&y<=S;){const P=c[y],N=u[y]=x?De(u[y]):Se(u[y]);if(Qe(P,N))R(P,N,h,null,m,v,C,b,x);else break;y++}for(;y<=A&&y<=S;){const P=c[A],N=u[S]=x?De(u[S]):Se(u[S]);if(Qe(P,N))R(P,N,h,null,m,v,C,b,x);else break;A--,S--}if(y>A){if(y<=S){const P=S+1,N=P<E?u[P].el:g;for(;y<=S;)R(null,u[y]=x?De(u[y]):Se(u[y]),h,N,m,v,C,b,x),y++}}else if(y>S)for(;y<=A;)Ee(c[y],m,v,!0),y++;else{const P=y,N=y,U=new Map;for(y=N;y<=S;y++){const pe=u[y]=x?De(u[y]):Se(u[y]);pe.key!=null&&U.set(pe.key,y)}let J,oe=0;const ve=S-N+1;let st=!1,ds=0;const dt=new Array(ve);for(y=0;y<ve;y++)dt[y]=0;for(y=P;y<=A;y++){const pe=c[y];if(oe>=ve){Ee(pe,m,v,!0);continue}let Te;if(pe.key!=null)Te=U.get(pe.key);else for(J=N;J<=S;J++)if(dt[J-N]===0&&Qe(pe,u[J])){Te=J;break}Te===void 0?Ee(pe,m,v,!0):(dt[Te-N]=y+1,Te>=ds?ds=Te:st=!0,R(pe,u[Te],h,null,m,v,C,b,x),oe++)}const hs=st?tl(dt):ot;for(J=hs.length-1,y=ve-1;y>=0;y--){const pe=N+y,Te=u[pe],ps=pe+1<E?u[pe+1].el:g;dt[y]===0?R(null,Te,h,ps,m,v,C,b,x):st&&(J<0||y!==hs[J]?ze(Te,h,ps,2):J--)}}},ze=(c,u,h,g,m=null)=>{const{el:v,type:C,transition:b,children:x,shapeFlag:y}=c;if(y&6){ze(c.component.subTree,u,h,g);return}if(y&128){c.suspense.move(u,h,g);return}if(y&64){C.move(c,u,h,at);return}if(C===ge){s(v,u,h);for(let A=0;A<x.length;A++)ze(x[A],u,h,g);s(c.anchor,u,h);return}if(C===En){$(c,u,h);return}if(g!==2&&y&1&&b)if(g===0)b.beforeEnter(v),s(v,u,h),ue(()=>b.enter(v),m);else{const{leave:A,delayLeave:S,afterLeave:P}=b,N=()=>s(v,u,h),U=()=>{A(v,()=>{N(),P&&P()})};S?S(v,N,U):U()}else s(v,u,h)},Ee=(c,u,h,g=!1,m=!1)=>{const{type:v,props:C,ref:b,children:x,dynamicChildren:y,shapeFlag:E,patchFlag:A,dirs:S}=c;if(b!=null&&Dn(b,null,h,c,!0),E&256){u.ctx.deactivate(c);return}const P=E&1&&S,N=!yt(c);let U;if(N&&(U=C&&C.onVnodeBeforeUnmount)&&we(U,u,c),E&6)Co(c.component,h,g);else{if(E&128){c.suspense.unmount(h,g);return}P&&ke(c,null,u,"beforeUnmount"),E&64?c.type.remove(c,u,h,m,at,g):y&&(v!==ge||A>0&&A&64)?Me(y,u,h,!1,!0):(v===ge&&A&384||!m&&E&16)&&Me(x,u,h),g&&cs(c)}(N&&(U=C&&C.onVnodeUnmounted)||P)&&ue(()=>{U&&we(U,u,c),P&&ke(c,null,u,"unmounted")},h)},cs=c=>{const{type:u,el:h,anchor:g,transition:m}=c;if(u===ge){xo(h,g);return}if(u===En){j(c);return}const v=()=>{r(h),m&&!m.persisted&&m.afterLeave&&m.afterLeave()};if(c.shapeFlag&1&&m&&!m.persisted){const{leave:C,delayLeave:b}=m,x=()=>C(h,v);b?b(c.el,v,x):x()}else v()},xo=(c,u)=>{let h;for(;c!==u;)h=_(c),r(c),c=h;r(u)},Co=(c,u,h)=>{const{bum:g,scope:m,update:v,subTree:C,um:b}=c;g&&Vt(g),m.stop(),v&&(v.active=!1,Ee(C,c,u,h)),b&&ue(b,u),ue(()=>{c.isUnmounted=!0},u),u&&u.pendingBranch&&!u.isUnmounted&&c.asyncDep&&!c.asyncResolved&&c.suspenseId===u.pendingId&&(u.deps--,u.deps===0&&u.resolve())},Me=(c,u,h,g=!1,m=!1,v=0)=>{for(let C=v;C<c.length;C++)Ee(c[C],u,h,g,m)},Ft=c=>c.shapeFlag&6?Ft(c.component.subTree):c.shapeFlag&128?c.suspense.next():_(c.anchor||c.el);let gn=!1;const fs=(c,u,h)=>{c==null?u._vnode&&Ee(u._vnode,null,null,!0):R(u._vnode||null,c,u,null,null,null,h),gn||(gn=!0,Es(),Ir(),gn=!1),u._vnode=c},at={p:R,um:Ee,m:ze,r:cs,mt:he,mc:M,pc:G,pbc:B,n:Ft,o:e};let us,as;return{render:fs,hydrate:us,createApp:Gi(fs,us)}}function Cn({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Je({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function el(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function is(e,t,n=!1){const s=e.children,r=t.children;if(O(s)&&O(r))for(let o=0;o<s.length;o++){const i=s[o];let l=r[o];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[o]=De(r[o]),l.el=i.el),n||is(i,l)),l.type===dn&&(l.el=i.el)}}function tl(e){const t=e.slice(),n=[0];let s,r,o,i,l;const f=e.length;for(s=0;s<f;s++){const a=e[s];if(a!==0){if(r=n[n.length-1],e[r]<a){t[s]=r,n.push(s);continue}for(o=0,i=n.length-1;o<i;)l=o+i>>1,e[n[l]]<a?o=l+1:i=l;a<e[n[o]]&&(o>0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}function to(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:to(t)}const nl=e=>e.__isTeleport,xt=e=>e&&(e.disabled||e.disabled===""),Ns=e=>typeof SVGElement<"u"&&e instanceof SVGElement,$s=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,jn=(e,t)=>{const n=e&&e.to;return Z(n)?t?t(n):null:n},sl={name:"Teleport",__isTeleport:!0,process(e,t,n,s,r,o,i,l,f,a){const{mc:d,pc:p,pbc:_,o:{insert:T,querySelector:L,createText:R,createComment:ne}}=a,W=xt(t.props);let{shapeFlag:Y,children:$,dynamicChildren:j}=t;if(e==null){const K=t.el=R(""),I=t.anchor=R("");T(K,n,s),T(I,n,s);const q=t.target=jn(t.props,L),M=t.targetAnchor=R("");q&&(T(M,q),i==="svg"||Ns(q)?i="svg":(i==="mathml"||$s(q))&&(i="mathml"));const V=(B,ee)=>{Y&16&&d($,B,ee,r,o,i,l,f)};W?V(n,I):q&&V(q,M)}else{t.el=e.el;const K=t.anchor=e.anchor,I=t.target=e.target,q=t.targetAnchor=e.targetAnchor,M=xt(e.props),V=M?n:I,B=M?K:q;if(i==="svg"||Ns(I)?i="svg":(i==="mathml"||$s(I))&&(i="mathml"),j?(_(e.dynamicChildren,j,V,r,o,i,l),is(e,t,!0)):f||p(e,t,V,B,r,o,i,l,!1),W)M?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Bt(t,n,K,a,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const ee=t.target=jn(t.props,L);ee&&Bt(t,ee,null,a,0)}else M&&Bt(t,I,q,a,1)}no(t)},remove(e,t,n,s,{um:r,o:{remove:o}},i){const{shapeFlag:l,children:f,anchor:a,targetAnchor:d,target:p,props:_}=e;if(p&&o(d),i&&o(a),l&16){const T=i||!xt(_);for(let L=0;L<f.length;L++){const R=f[L];r(R,t,n,T,!!R.dynamicChildren)}}},move:Bt,hydrate:rl};function Bt(e,t,n,{o:{insert:s},m:r},o=2){o===0&&s(e.targetAnchor,t,n);const{el:i,anchor:l,shapeFlag:f,children:a,props:d}=e,p=o===2;if(p&&s(i,t,n),(!p||xt(d))&&f&16)for(let _=0;_<a.length;_++)r(a[_],t,n,2);p&&s(l,t,n)}function rl(e,t,n,s,r,o,{o:{nextSibling:i,parentNode:l,querySelector:f}},a){const d=t.target=jn(t.props,f);if(d){const p=d._lpa||d.firstChild;if(t.shapeFlag&16)if(xt(t.props))t.anchor=a(i(e),t,l(e),n,s,r,o),t.targetAnchor=p;else{t.anchor=i(e);let _=p;for(;_;)if(_=i(_),_&&_.nodeType===8&&_.data==="teleport anchor"){t.targetAnchor=_,d._lpa=t.targetAnchor&&i(t.targetAnchor);break}a(p,t,d,n,s,r,o)}no(t)}return t.anchor&&i(t.anchor)}const mc=sl;function no(e){const t=e.ctx;if(t&&t.ut){let n=e.children[0].el;for(;n&&n!==e.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}const ge=Symbol.for("v-fgt"),dn=Symbol.for("v-txt"),me=Symbol.for("v-cmt"),En=Symbol.for("v-stc"),Ct=[];let Ce=null;function so(e=!1){Ct.push(Ce=e?null:[])}function ol(){Ct.pop(),Ce=Ct[Ct.length-1]||null}let Mt=1;function Hs(e){Mt+=e}function ro(e){return e.dynamicChildren=Mt>0?Ce||ot:null,ol(),Mt>0&&Ce&&Ce.push(e),e}function _c(e,t,n,s,r,o){return ro(lo(e,t,n,s,r,o,!0))}function oo(e,t,n,s,r){return ro(fe(e,t,n,s,r,!0))}function Jt(e){return e?e.__v_isVNode===!0:!1}function Qe(e,t){return e.type===t.type&&e.key===t.key}const io=({key:e})=>e??null,Wt=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Z(e)||de(e)||F(e)?{i:se,r:e,k:t,f:!!n}:e:null);function lo(e,t=null,n=null,s=0,r=null,o=e===ge?0:1,i=!1,l=!1){const f={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&io(t),ref:t&&Wt(t),scopeId:fn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:se};return l?(ls(f,n),o&128&&e.normalize(f)):n&&(f.shapeFlag|=Z(n)?8:16),Mt>0&&!i&&Ce&&(f.patchFlag>0||o&6)&&f.patchFlag!==32&&Ce.push(f),f}const fe=il;function il(e,t=null,n=null,s=0,r=null,o=!1){if((!e||e===Rr)&&(e=me),Jt(e)){const l=Ke(e,t,!0);return n&&ls(l,n),Mt>0&&!o&&Ce&&(l.shapeFlag&6?Ce[Ce.indexOf(e)]=l:Ce.push(l)),l.patchFlag|=-2,l}if(yl(e)&&(e=e.__vccOpts),t){t=ll(t);let{class:l,style:f}=t;l&&!Z(l)&&(t.class=rn(l)),k(f)&&(Er(f)&&!O(f)&&(f=te({},f)),t.style=sn(f))}const i=Z(e)?1:Ci(e)?128:nl(e)?64:k(e)?4:F(e)?2:0;return lo(e,t,n,s,r,i,o,!0)}function ll(e){return e?Er(e)||Jr(e)?te({},e):e:null}function Ke(e,t,n=!1,s=!1){const{props:r,ref:o,patchFlag:i,children:l,transition:f}=e,a=t?fl(r||{},t):r,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&io(a),ref:t&&t.ref?n&&o?O(o)?o.concat(Wt(t)):[o,Wt(t)]:Wt(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ge?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:f,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ke(e.ssContent),ssFallback:e.ssFallback&&Ke(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return f&&s&&(d.transition=f.clone(d)),d}function cl(e=" ",t=0){return fe(dn,null,e,t)}function yc(e="",t=!1){return t?(so(),oo(me,null,e)):fe(me,null,e)}function Se(e){return e==null||typeof e=="boolean"?fe(me):O(e)?fe(ge,null,e.slice()):typeof e=="object"?De(e):fe(dn,null,String(e))}function De(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ke(e)}function ls(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(O(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),ls(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!Jr(t)?t._ctx=se:r===3&&se&&(se.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else F(t)?(t={default:t,_ctx:se},n=32):(t=String(t),s&64?(n=16,t=[cl(t)]):n=8);e.children=t,e.shapeFlag|=n}function fl(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const r in s)if(r==="class")t.class!==s.class&&(t.class=rn([t.class,s.class]));else if(r==="style")t.style=sn([t.style,s.style]);else if(Zt(r)){const o=t[r],i=s[r];i&&o!==i&&!(O(o)&&o.includes(i))&&(t[r]=o?[].concat(o,i):i)}else r!==""&&(t[r]=s[r])}return t}function we(e,t,n,s=null){be(e,t,7,[n,s])}const ul=qr();let al=0;function dl(e,t,n){const s=e.type,r=(t?t.appContext:e.appContext)||ul,o={uid:al++,vnode:e,type:s,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new No(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Xr(s,r),emitsOptions:Fr(s,r),emit:null,emitted:null,propsDefaults:z,inheritAttrs:s.inheritAttrs,ctx:z,data:z,props:z,attrs:z,slots:z,refs:z,setupState:z,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=gi.bind(null,o),e.ce&&e.ce(o),o}let ie=null;const co=()=>ie||se;let Yt,Bn;{const e=cr(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),o=>{r.length>1?r.forEach(i=>i(o)):r[0](o)}};Yt=t("__VUE_INSTANCE_SETTERS__",n=>ie=n),Bn=t("__VUE_SSR_SETTERS__",n=>hn=n)}const It=e=>{const t=ie;return Yt(e),e.scope.on(),()=>{e.scope.off(),Yt(t)}},Ds=()=>{ie&&ie.scope.off(),Yt(null)};function fo(e){return e.vnode.shapeFlag&4}let hn=!1;function hl(e,t=!1){t&&Bn(t);const{props:n,children:s}=e.vnode,r=fo(e);zi(e,n,r,t),Yi(e,s);const o=r?pl(e,t):void 0;return t&&Bn(!1),o}function pl(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Di);const{setup:s}=n;if(s){const r=e.setupContext=s.length>1?ml(e):null,o=It(e);We();const i=Ve(s,e,0,[e.props,r]);if(Ge(),o(),rr(i)){if(i.then(Ds,Ds),t)return i.then(l=>{js(e,l,t)}).catch(l=>{ln(l,e,0)});e.asyncDep=i}else js(e,i,t)}else uo(e,t)}function js(e,t,n){F(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:k(t)&&(e.setupState=Ar(t)),uo(e,n)}let Bs;function uo(e,t,n){const s=e.type;if(!e.render){if(!t&&Bs&&!s.render){const r=s.template||rs(e).template;if(r){const{isCustomElement:o,compilerOptions:i}=e.appContext.config,{delimiters:l,compilerOptions:f}=s,a=te(te({isCustomElement:o,delimiters:l},i),f);s.render=Bs(r,a)}}e.render=s.render||ye}{const r=It(e);We();try{ji(e)}finally{Ge(),r()}}}const gl={get(e,t){return ae(e,"get",""),e[t]}};function ml(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,gl),slots:e.slots,emit:e.emit,expose:t}}function pn(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Ar(ri(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in bt)return bt[n](e)},has(t,n){return n in t||n in bt}}))}function _l(e,t=!0){return F(e)?e.displayName||e.name:e.name||t&&e.__name}function yl(e){return F(e)&&"__vccOpts"in e}const bl=(e,t)=>oi(e,t,hn);function vl(e,t,n){const s=arguments.length;return s===2?k(t)&&!O(t)?Jt(t)?fe(e,null,[t]):fe(e,t):fe(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Jt(n)&&(n=[n]),fe(e,t,n))}const xl="3.4.27";/**
14
14
  * @vue/runtime-dom v3.4.27
15
15
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
16
16
  * @license MIT
@@ -1,4 +1,4 @@
1
- import{N as ge,T as me,t as L,a as Cn,s as Rc,I as gl,P as yl,b as Ic,c as Yi,d as Nc,h as Fc,p as Vc,e as Hc}from"./@lezer-6dgAjmMZ.js";import{c as V}from"./crelt-C8TCjufn.js";import{d as Wc,r as Ti,s as zc,c as Kt,w as Er,o as $c,n as qc,a as Kc,h as jc}from"./@vue-SIJfIzG2.js";import{S as Qe}from"./style-mod-Bc2inJdb.js";import{k as Uc,b as Gc,s as Yc}from"./w3c-keyname-Vcq4gwWv.js";class R{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,i){[e,t]=Ot(this,e,t);let s=[];return this.decompose(0,e,s,2),i.length&&i.decompose(0,i.length,s,3),this.decompose(t,this.length,s,1),Oe.from(s,this.length-(t-e)+i.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=Ot(this,e,t);let i=[];return this.decompose(e,t,i,0),Oe.from(i,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),i=this.length-this.scanIdentical(e,-1),s=new ti(this),r=new ti(e);for(let o=t,l=t;;){if(s.next(o),r.next(o),o=0,s.lineBreak!=r.lineBreak||s.done!=r.done||s.value!=r.value)return!1;if(l+=s.value.length,s.done||l>=i)return!0}}iter(e=1){return new ti(this,e)}iterRange(e,t=this.length){return new bl(this,e,t)}iterLines(e,t){let i;if(e==null)i=this.iter();else{t==null&&(t=this.lines+1);let s=this.line(e).from;i=this.iterRange(s,Math.max(s,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new wl(i)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?R.empty:e.length<=32?new q(e):Oe.from(q.split(e,[]))}}class q extends R{constructor(e,t=Jc(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,i,s){for(let r=0;;r++){let o=this.text[r],l=s+o.length;if((t?i:l)>=e)return new Xc(s,l,i,o);s=l+1,i++}}decompose(e,t,i,s){let r=e<=0&&t>=this.length?this:new q(Br(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(s&1){let o=i.pop(),l=Ji(r.text,o.text.slice(),0,r.length);if(l.length<=32)i.push(new q(l,o.length+r.length));else{let a=l.length>>1;i.push(new q(l.slice(0,a)),new q(l.slice(a)))}}else i.push(r)}replace(e,t,i){if(!(i instanceof q))return super.replace(e,t,i);[e,t]=Ot(this,e,t);let s=Ji(this.text,Ji(i.text,Br(this.text,0,e)),t),r=this.length+i.length-(t-e);return s.length<=32?new q(s,r):Oe.from(q.split(s,[]),r)}sliceString(e,t=this.length,i=`
1
+ import{N as ge,T as me,t as L,a as Cn,s as Rc,I as gl,P as yl,b as Ic,c as Yi,d as Nc,h as Fc,p as Vc,e as Hc}from"./@lezer-6dgAjmMZ.js";import{c as V}from"./crelt-C8TCjufn.js";import{d as Wc,r as Ti,s as zc,c as Kt,w as Er,o as $c,n as qc,a as Kc,h as jc}from"./@vue-CfPxtCWx.js";import{S as Qe}from"./style-mod-Bc2inJdb.js";import{k as Uc,b as Gc,s as Yc}from"./w3c-keyname-Vcq4gwWv.js";class R{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,i){[e,t]=Ot(this,e,t);let s=[];return this.decompose(0,e,s,2),i.length&&i.decompose(0,i.length,s,3),this.decompose(t,this.length,s,1),Oe.from(s,this.length-(t-e)+i.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=Ot(this,e,t);let i=[];return this.decompose(e,t,i,0),Oe.from(i,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),i=this.length-this.scanIdentical(e,-1),s=new ti(this),r=new ti(e);for(let o=t,l=t;;){if(s.next(o),r.next(o),o=0,s.lineBreak!=r.lineBreak||s.done!=r.done||s.value!=r.value)return!1;if(l+=s.value.length,s.done||l>=i)return!0}}iter(e=1){return new ti(this,e)}iterRange(e,t=this.length){return new bl(this,e,t)}iterLines(e,t){let i;if(e==null)i=this.iter();else{t==null&&(t=this.lines+1);let s=this.line(e).from;i=this.iterRange(s,Math.max(s,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new wl(i)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?R.empty:e.length<=32?new q(e):Oe.from(q.split(e,[]))}}class q extends R{constructor(e,t=Jc(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,i,s){for(let r=0;;r++){let o=this.text[r],l=s+o.length;if((t?i:l)>=e)return new Xc(s,l,i,o);s=l+1,i++}}decompose(e,t,i,s){let r=e<=0&&t>=this.length?this:new q(Br(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(s&1){let o=i.pop(),l=Ji(r.text,o.text.slice(),0,r.length);if(l.length<=32)i.push(new q(l,o.length+r.length));else{let a=l.length>>1;i.push(new q(l.slice(0,a)),new q(l.slice(a)))}}else i.push(r)}replace(e,t,i){if(!(i instanceof q))return super.replace(e,t,i);[e,t]=Ot(this,e,t);let s=Ji(this.text,Ji(i.text,Br(this.text,0,e)),t),r=this.length+i.length-(t-e);return s.length<=32?new q(s,r):Oe.from(q.split(s,[]),r)}sliceString(e,t=this.length,i=`
2
2
  `){[e,t]=Ot(this,e,t);let s="";for(let r=0,o=0;r<=t&&o<this.text.length;o++){let l=this.text[o],a=r+l.length;r>e&&o&&(s+=i),e<a&&t>r&&(s+=l.slice(Math.max(0,e-r),t-r)),r=a+1}return s}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let i=[],s=-1;for(let r of e)i.push(r),s+=r.length+1,i.length==32&&(t.push(new q(i,s)),i=[],s=-1);return s>-1&&t.push(new q(i,s)),t}}class Oe extends R{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let i of e)this.lines+=i.lines}lineInner(e,t,i,s){for(let r=0;;r++){let o=this.children[r],l=s+o.length,a=i+o.lines-1;if((t?a:l)>=e)return o.lineInner(e,t,i,s);s=l+1,i=a+1}}decompose(e,t,i,s){for(let r=0,o=0;o<=t&&r<this.children.length;r++){let l=this.children[r],a=o+l.length;if(e<=a&&t>=o){let h=s&((o<=e?1:0)|(a>=t?2:0));o>=e&&a<=t&&!h?i.push(l):l.decompose(e-o,t-o,i,h)}o=a+1}}replace(e,t,i){if([e,t]=Ot(this,e,t),i.lines<this.lines)for(let s=0,r=0;s<this.children.length;s++){let o=this.children[s],l=r+o.length;if(e>=r&&t<=l){let a=o.replace(e-r,t-r,i),h=this.lines-o.lines+a.lines;if(a.lines<h>>4&&a.lines>h>>6){let c=this.children.slice();return c[s]=a,new Oe(c,this.length-(t-e)+i.length)}return super.replace(r,l,a)}r=l+1}return super.replace(e,t,i)}sliceString(e,t=this.length,i=`
3
3
  `){[e,t]=Ot(this,e,t);let s="";for(let r=0,o=0;r<this.children.length&&o<=t;r++){let l=this.children[r],a=o+l.length;o>e&&r&&(s+=i),e<a&&t>o&&(s+=l.sliceString(e-o,t-o,i)),o=a+1}return s}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof Oe))return 0;let i=0,[s,r,o,l]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;s+=t,r+=t){if(s==o||r==l)return i;let a=this.children[s],h=e.children[r];if(a!=h)return i+a.scanIdentical(h,t);i+=a.length+1}}static from(e,t=e.reduce((i,s)=>i+s.length+1,-1)){let i=0;for(let d of e)i+=d.lines;if(i<32){let d=[];for(let p of e)p.flatten(d);return new q(d,t)}let s=Math.max(32,i>>5),r=s<<1,o=s>>1,l=[],a=0,h=-1,c=[];function f(d){let p;if(d.lines>r&&d instanceof Oe)for(let g of d.children)f(g);else d.lines>o&&(a>o||!a)?(u(),l.push(d)):d instanceof q&&a&&(p=c[c.length-1])instanceof q&&d.lines+p.lines<=32?(a+=d.lines,h+=d.length+1,c[c.length-1]=new q(p.text.concat(d.text),p.length+1+d.length)):(a+d.lines>s&&u(),a+=d.lines,h+=d.length+1,c.push(d))}function u(){a!=0&&(l.push(c.length==1?c[0]:Oe.from(c,h)),h=-1,a=c.length=0)}for(let d of e)f(d);return u(),l.length==1?l[0]:new Oe(l,t)}}R.empty=new q([""],0);function Jc(n){let e=-1;for(let t of n)e+=t.length+1;return e}function Ji(n,e,t=0,i=1e9){for(let s=0,r=0,o=!0;r<n.length&&s<=i;r++){let l=n[r],a=s+l.length;a>=t&&(a>i&&(l=l.slice(0,i-s)),s<t&&(l=l.slice(t-s)),o?(e[e.length-1]+=l,o=!1):e.push(l)),s=a+1}return e}function Br(n,e,t){return Ji(n,[""],e,t)}class ti{constructor(e,t=1){this.dir=t,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[t>0?1:(e instanceof q?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let i=this.nodes.length-1,s=this.nodes[i],r=this.offsets[i],o=r>>1,l=s instanceof q?s.text.length:s.children.length;if(o==(t>0?l:0)){if(i==0)return this.done=!0,this.value="",this;t>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((r&1)==(t>0?0:1)){if(this.offsets[i]+=t,e==0)return this.lineBreak=!0,this.value=`
4
4
  `,this;e--}else if(s instanceof q){let a=s.text[o+(t<0?-1:0)];if(this.offsets[i]+=t,a.length>Math.max(0,e))return this.value=e==0?a:t>0?a.slice(e):a.slice(0,a.length-e),this;e-=a.length}else{let a=s.children[o+(t<0?-1:0)];e>a.length?(e-=a.length,this.offsets[i]+=t):(t<0&&this.offsets[i]--,this.nodes.push(a),this.offsets.push(t>0?1:(a instanceof q?a.text.length:a.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class bl{constructor(e,t,i){this.value="",this.done=!1,this.cursor=new ti(e,t>i?-1:1),this.pos=t>i?e.length:0,this.from=Math.min(t,i),this.to=Math.max(t,i)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let i=t<0?this.pos-this.from:this.to-this.pos;e>i&&(e=i),i-=e;let{value:s}=this.cursor.next(e);return this.pos+=(s.length+e)*t,this.value=s.length<=i?s:t<0?s.slice(s.length-i):s.slice(0,i),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class wl{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:i,value:s}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):i?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=s,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(R.prototype[Symbol.iterator]=function(){return this.iter()},ti.prototype[Symbol.iterator]=bl.prototype[Symbol.iterator]=wl.prototype[Symbol.iterator]=function(){return this});class Xc{constructor(e,t,i,s){this.from=e,this.to=t,this.number=i,this.text=s}get length(){return this.to-this.from}}function Ot(n,e,t){return e=Math.max(0,Math.min(n.length,e)),[e,Math.max(e,Math.min(n.length,t))]}let St="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(n=>n?parseInt(n,36):1);for(let n=1;n<St.length;n++)St[n]+=St[n-1];function _c(n){for(let e=1;e<St.length;e+=2)if(St[e]>n)return St[e-1]<=n;return!1}function Lr(n){return n>=127462&&n<=127487}const Pr=8205;function ee(n,e,t=!0,i=!0){return(t?vl:Qc)(n,e,i)}function vl(n,e,t){if(e==n.length)return e;e&&xl(n.charCodeAt(e))&&kl(n.charCodeAt(e-1))&&e--;let i=_(n,e);for(e+=ye(i);e<n.length;){let s=_(n,e);if(i==Pr||s==Pr||t&&_c(s))e+=ye(s),i=s;else if(Lr(s)){let r=0,o=e-2;for(;o>=0&&Lr(_(n,o));)r++,o-=2;if(r%2==0)break;e+=2}else break}return e}function Qc(n,e,t){for(;e>0;){let i=vl(n,e-2,t);if(i<e)return i;e--}return 0}function xl(n){return n>=56320&&n<57344}function kl(n){return n>=55296&&n<56320}function _(n,e){let t=n.charCodeAt(e);if(!kl(t)||e+1==n.length)return t;let i=n.charCodeAt(e+1);return xl(i)?(t-55296<<10)+(i-56320)+65536:t}function Zs(n){return n<=65535?String.fromCharCode(n):(n-=65536,String.fromCharCode((n>>10)+55296,(n&1023)+56320))}function ye(n){return n<65536?1:2}const fs=/\r\n?|\n/;var Q=function(n){return n[n.Simple=0]="Simple",n[n.TrackDel=1]="TrackDel",n[n.TrackBefore=2]="TrackBefore",n[n.TrackAfter=3]="TrackAfter",n}(Q||(Q={}));class Pe{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let i=this.sections[t+1];e+=i<0?this.sections[t]:i}return e}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(e){for(let t=0,i=0,s=0;t<this.sections.length;){let r=this.sections[t++],o=this.sections[t++];o<0?(e(i,s,r),s+=r):s+=o,i+=r}}iterChangedRanges(e,t=!1){us(this,e,t)}get invertedDesc(){let e=[];for(let t=0;t<this.sections.length;){let i=this.sections[t++],s=this.sections[t++];s<0?e.push(i,s):e.push(s,i)}return new Pe(e)}composeDesc(e){return this.empty?e:e.empty?this:Sl(this,e)}mapDesc(e,t=!1){return e.empty?this:ds(this,e,t)}mapPos(e,t=-1,i=Q.Simple){let s=0,r=0;for(let o=0;o<this.sections.length;){let l=this.sections[o++],a=this.sections[o++],h=s+l;if(a<0){if(h>e)return r+(e-s);r+=l}else{if(i!=Q.Simple&&h>=e&&(i==Q.TrackDel&&s<e&&h>e||i==Q.TrackBefore&&s<e||i==Q.TrackAfter&&h>e))return null;if(h>e||h==e&&t<0&&!l)return e==s||t<0?r:r+a;r+=a}s=h}if(e>s)throw new RangeError(`Position ${e} is out of range for changeset of length ${s}`);return r}touchesRange(e,t=e){for(let i=0,s=0;i<this.sections.length&&s<=t;){let r=this.sections[i++],o=this.sections[i++],l=s+r;if(o>=0&&s<=t&&l>=e)return s<e&&l>t?"cover":!0;s=l}return!1}toString(){let e="";for(let t=0;t<this.sections.length;){let i=this.sections[t++],s=this.sections[t++];e+=(e?" ":"")+i+(s>=0?":"+s:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(t=>typeof t!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new Pe(e)}static create(e){return new Pe(e)}}class Y extends Pe{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return us(this,(t,i,s,r,o)=>e=e.replace(s,s+(i-t),o),!1),e}mapDesc(e,t=!1){return ds(this,e,t,!0)}invert(e){let t=this.sections.slice(),i=[];for(let s=0,r=0;s<t.length;s+=2){let o=t[s],l=t[s+1];if(l>=0){t[s]=l,t[s+1]=o;let a=s>>1;for(;i.length<a;)i.push(R.empty);i.push(o?e.slice(r,r+o):R.empty)}r+=o}return new Y(t,i)}compose(e){return this.empty?e:e.empty?this:Sl(this,e,!0)}map(e,t=!1){return e.empty?this:ds(this,e,t,!0)}iterChanges(e,t=!1){us(this,e,t)}get desc(){return Pe.create(this.sections)}filter(e){let t=[],i=[],s=[],r=new oi(this);e:for(let o=0,l=0;;){let a=o==e.length?1e9:e[o++];for(;l<a||l==a&&r.len==0;){if(r.done)break e;let c=Math.min(r.len,a-l);ie(s,c,-1);let f=r.ins==-1?-1:r.off==0?r.ins:0;ie(t,c,f),f>0&&je(i,t,r.text),r.forward(c),l+=c}let h=e[o++];for(;l<h;){if(r.done)break e;let c=Math.min(r.len,h-l);ie(t,c,-1),ie(s,c,r.ins==-1?-1:r.off==0?r.ins:0),r.forward(c),l+=c}}return{changes:new Y(t,i),filtered:Pe.create(s)}}toJSON(){let e=[];for(let t=0;t<this.sections.length;t+=2){let i=this.sections[t],s=this.sections[t+1];s<0?e.push(i):s==0?e.push([i]):e.push([i].concat(this.inserted[t>>1].toJSON()))}return e}static of(e,t,i){let s=[],r=[],o=0,l=null;function a(c=!1){if(!c&&!s.length)return;o<t&&ie(s,t-o,-1);let f=new Y(s,r);l=l?l.compose(f.map(l)):f,s=[],r=[],o=0}function h(c){if(Array.isArray(c))for(let f of c)h(f);else if(c instanceof Y){if(c.length!=t)throw new RangeError(`Mismatched change set length (got ${c.length}, expected ${t})`);a(),l=l?l.compose(c.map(l)):c}else{let{from:f,to:u=f,insert:d}=c;if(f>u||f<0||u>t)throw new RangeError(`Invalid change range ${f} to ${u} (in doc of length ${t})`);let p=d?typeof d=="string"?R.of(d.split(i||fs)):d:R.empty,g=p.length;if(f==u&&g==0)return;f<o&&a(),f>o&&ie(s,f-o,-1),ie(s,u-f,g),je(r,s,p),o=u}}return h(e),a(!l),l}static empty(e){return new Y(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],i=[];for(let s=0;s<e.length;s++){let r=e[s];if(typeof r=="number")t.push(r,-1);else{if(!Array.isArray(r)||typeof r[0]!="number"||r.some((o,l)=>l&&typeof o!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(r.length==1)t.push(r[0],0);else{for(;i.length<s;)i.push(R.empty);i[s]=R.of(r.slice(1)),t.push(r[0],i[s].length)}}}return new Y(t,i)}static createSet(e,t){return new Y(e,t)}}function ie(n,e,t,i=!1){if(e==0&&t<=0)return;let s=n.length-2;s>=0&&t<=0&&t==n[s+1]?n[s]+=e:e==0&&n[s]==0?n[s+1]+=t:i?(n[s]+=e,n[s+1]+=t):n.push(e,t)}function je(n,e,t){if(t.length==0)return;let i=e.length-2>>1;if(i<n.length)n[n.length-1]=n[n.length-1].append(t);else{for(;n.length<i;)n.push(R.empty);n.push(t)}}function us(n,e,t){let i=n.inserted;for(let s=0,r=0,o=0;o<n.sections.length;){let l=n.sections[o++],a=n.sections[o++];if(a<0)s+=l,r+=l;else{let h=s,c=r,f=R.empty;for(;h+=l,c+=a,a&&i&&(f=f.append(i[o-2>>1])),!(t||o==n.sections.length||n.sections[o+1]<0);)l=n.sections[o++],a=n.sections[o++];e(s,h,r,c,f),s=h,r=c}}}function ds(n,e,t,i=!1){let s=[],r=i?[]:null,o=new oi(n),l=new oi(e);for(let a=-1;;)if(o.ins==-1&&l.ins==-1){let h=Math.min(o.len,l.len);ie(s,h,-1),o.forward(h),l.forward(h)}else if(l.ins>=0&&(o.ins<0||a==o.i||o.off==0&&(l.len<o.len||l.len==o.len&&!t))){let h=l.len;for(ie(s,l.ins,-1);h;){let c=Math.min(o.len,h);o.ins>=0&&a<o.i&&o.len<=c&&(ie(s,0,o.ins),r&&je(r,s,o.text),a=o.i),o.forward(c),h-=c}l.next()}else if(o.ins>=0){let h=0,c=o.len;for(;c;)if(l.ins==-1){let f=Math.min(c,l.len);h+=f,c-=f,l.forward(f)}else if(l.ins==0&&l.len<c)c-=l.len,l.next();else break;ie(s,h,a<o.i?o.ins:0),r&&a<o.i&&je(r,s,o.text),a=o.i,o.forward(o.len-c)}else{if(o.done&&l.done)return r?Y.createSet(s,r):Pe.create(s);throw new Error("Mismatched change set lengths")}}function Sl(n,e,t=!1){let i=[],s=t?[]:null,r=new oi(n),o=new oi(e);for(let l=!1;;){if(r.done&&o.done)return s?Y.createSet(i,s):Pe.create(i);if(r.ins==0)ie(i,r.len,0,l),r.next();else if(o.len==0&&!o.done)ie(i,0,o.ins,l),s&&je(s,i,o.text),o.next();else{if(r.done||o.done)throw new Error("Mismatched change set lengths");{let a=Math.min(r.len2,o.len),h=i.length;if(r.ins==-1){let c=o.ins==-1?-1:o.off?0:o.ins;ie(i,a,c,l),s&&c&&je(s,i,o.text)}else o.ins==-1?(ie(i,r.off?0:r.len,a,l),s&&je(s,i,r.textBit(a))):(ie(i,r.off?0:r.len,o.off?0:o.ins,l),s&&!o.off&&je(s,i,o.text));l=(r.ins>a||o.ins>=0&&o.len>a)&&(l||i.length>h),r.forward2(a),o.forward(a)}}}}class oi{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return this.ins==-2}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,t=this.i-2>>1;return t>=e.length?R.empty:e[t]}textBit(e){let{inserted:t}=this.set,i=this.i-2>>1;return i>=t.length&&!e?R.empty:t[i].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class at{constructor(e,t,i){this.from=e,this.to=t,this.flags=i}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}get goalColumn(){let e=this.flags>>6;return e==16777215?void 0:e}map(e,t=-1){let i,s;return this.empty?i=s=e.mapPos(this.from,t):(i=e.mapPos(this.from,1),s=e.mapPos(this.to,-1)),i==this.from&&s==this.to?this:new at(i,s,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return b.range(e,t);let i=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return b.range(this.anchor,i)}eq(e,t=!1){return this.anchor==e.anchor&&this.head==e.head&&(!t||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return b.range(e.anchor,e.head)}static create(e,t,i){return new at(e,t,i)}}class b{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:b.create(this.ranges.map(i=>i.map(e,t)),this.mainIndex)}eq(e,t=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let i=0;i<this.ranges.length;i++)if(!this.ranges[i].eq(e.ranges[i],t))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return this.ranges.length==1?this:new b([this.main],0)}addRange(e,t=!0){return b.create([e].concat(this.ranges),t?0:this.mainIndex+1)}replaceRange(e,t=this.mainIndex){let i=this.ranges.slice();return i[t]=e,b.create(i,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(e=>e.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new b(e.ranges.map(t=>at.fromJSON(t)),e.main)}static single(e,t=e){return new b([b.range(e,t)],0)}static create(e,t=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let i=0,s=0;s<e.length;s++){let r=e[s];if(r.empty?r.from<=i:r.from<i)return b.normalized(e.slice(),t);i=r.to}return new b(e,t)}static cursor(e,t=0,i,s){return at.create(e,e,(t==0?0:t<0?8:16)|(i==null?7:Math.min(6,i))|(s??16777215)<<6)}static range(e,t,i,s){let r=(i??16777215)<<6|(s==null?7:Math.min(6,s));return t<e?at.create(t,e,48|r):at.create(e,t,(t>e?8:0)|r)}static normalized(e,t=0){let i=e[t];e.sort((s,r)=>s.from-r.from),t=e.indexOf(i);for(let s=1;s<e.length;s++){let r=e[s],o=e[s-1];if(r.empty?r.from<=o.to:r.from<o.to){let l=o.from,a=Math.max(r.to,o.to);s<=t&&t--,e.splice(--s,2,r.anchor>r.head?b.range(a,l):b.range(l,a))}}return new b(e,t)}}function Cl(n,e){for(let t of n.ranges)if(t.to>e)throw new RangeError("Selection points outside of document")}let er=0;class k{constructor(e,t,i,s,r){this.combine=e,this.compareInput=t,this.compare=i,this.isStatic=s,this.id=er++,this.default=e([]),this.extensions=typeof r=="function"?r(this):r}get reader(){return this}static define(e={}){return new k(e.combine||(t=>t),e.compareInput||((t,i)=>t===i),e.compare||(e.combine?(t,i)=>t===i:tr),!!e.static,e.enables)}of(e){return new Xi([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new Xi(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new Xi(e,this,2,t)}from(e,t){return t||(t=i=>i),this.compute([e],i=>t(i.field(e)))}}function tr(n,e){return n==e||n.length==e.length&&n.every((t,i)=>t===e[i])}class Xi{constructor(e,t,i,s){this.dependencies=e,this.facet=t,this.type=i,this.value=s,this.id=er++}dynamicSlot(e){var t;let i=this.value,s=this.facet.compareInput,r=this.id,o=e[r]>>1,l=this.type==2,a=!1,h=!1,c=[];for(let f of this.dependencies)f=="doc"?a=!0:f=="selection"?h=!0:((t=e[f.id])!==null&&t!==void 0?t:1)&1||c.push(e[f.id]);return{create(f){return f.values[o]=i(f),1},update(f,u){if(a&&u.docChanged||h&&(u.docChanged||u.selection)||ps(f,c)){let d=i(f);if(l?!Rr(d,f.values[o],s):!s(d,f.values[o]))return f.values[o]=d,1}return 0},reconfigure:(f,u)=>{let d,p=u.config.address[r];if(p!=null){let g=on(u,p);if(this.dependencies.every(m=>m instanceof k?u.facet(m)===f.facet(m):m instanceof j?u.field(m,!1)==f.field(m,!1):!0)||(l?Rr(d=i(f),g,s):s(d=i(f),g)))return f.values[o]=g,0}else d=i(f);return f.values[o]=d,1}}}}function Rr(n,e,t){if(n.length!=e.length)return!1;for(let i=0;i<n.length;i++)if(!t(n[i],e[i]))return!1;return!0}function ps(n,e){let t=!1;for(let i of e)ii(n,i)&1&&(t=!0);return t}function Zc(n,e,t){let i=t.map(a=>n[a.id]),s=t.map(a=>a.type),r=i.filter(a=>!(a&1)),o=n[e.id]>>1;function l(a){let h=[];for(let c=0;c<i.length;c++){let f=on(a,i[c]);if(s[c]==2)for(let u of f)h.push(u);else h.push(f)}return e.combine(h)}return{create(a){for(let h of i)ii(a,h);return a.values[o]=l(a),1},update(a,h){if(!ps(a,r))return 0;let c=l(a);return e.compare(c,a.values[o])?0:(a.values[o]=c,1)},reconfigure(a,h){let c=ps(a,i),f=h.config.facets[e.id],u=h.facet(e);if(f&&!c&&tr(t,f))return a.values[o]=u,0;let d=l(a);return e.compare(d,u)?(a.values[o]=u,0):(a.values[o]=d,1)}}}const Ir=k.define({static:!0});class j{constructor(e,t,i,s,r){this.id=e,this.createF=t,this.updateF=i,this.compareF=s,this.spec=r,this.provides=void 0}static define(e){let t=new j(er++,e.create,e.update,e.compare||((i,s)=>i===s),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(Ir).find(i=>i.field==this);return((t==null?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:i=>(i.values[t]=this.create(i),1),update:(i,s)=>{let r=i.values[t],o=this.updateF(r,s);return this.compareF(r,o)?0:(i.values[t]=o,1)},reconfigure:(i,s)=>s.config.address[this.id]!=null?(i.values[t]=s.field(this),0):(i.values[t]=this.create(i),1)}}init(e){return[this,Ir.of({field:this,create:e})]}get extension(){return this}}const ot={lowest:4,low:3,default:2,high:1,highest:0};function jt(n){return e=>new Al(e,n)}const it={highest:jt(ot.highest),high:jt(ot.high),default:jt(ot.default),low:jt(ot.low),lowest:jt(ot.lowest)};class Al{constructor(e,t){this.inner=e,this.prec=t}}class Et{of(e){return new ms(this,e)}reconfigure(e){return Et.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class ms{constructor(e,t){this.compartment=e,this.inner=t}}class rn{constructor(e,t,i,s,r,o){for(this.base=e,this.compartments=t,this.dynamicSlots=i,this.address=s,this.staticValues=r,this.facets=o,this.statusTemplate=[];this.statusTemplate.length<i.length;)this.statusTemplate.push(0)}staticFacet(e){let t=this.address[e.id];return t==null?e.default:this.staticValues[t>>1]}static resolve(e,t,i){let s=[],r=Object.create(null),o=new Map;for(let u of ef(e,t,o))u instanceof j?s.push(u):(r[u.facet.id]||(r[u.facet.id]=[])).push(u);let l=Object.create(null),a=[],h=[];for(let u of s)l[u.id]=h.length<<1,h.push(d=>u.slot(d));let c=i==null?void 0:i.config.facets;for(let u in r){let d=r[u],p=d[0].facet,g=c&&c[u]||[];if(d.every(m=>m.type==0))if(l[p.id]=a.length<<1|1,tr(g,d))a.push(i.facet(p));else{let m=p.combine(d.map(y=>y.value));a.push(i&&p.compare(m,i.facet(p))?i.facet(p):m)}else{for(let m of d)m.type==0?(l[m.id]=a.length<<1|1,a.push(m.value)):(l[m.id]=h.length<<1,h.push(y=>m.dynamicSlot(y)));l[p.id]=h.length<<1,h.push(m=>Zc(m,p,d))}}let f=h.map(u=>u(l));return new rn(e,o,f,l,a,r)}}function ef(n,e,t){let i=[[],[],[],[],[]],s=new Map;function r(o,l){let a=s.get(o);if(a!=null){if(a<=l)return;let h=i[a].indexOf(o);h>-1&&i[a].splice(h,1),o instanceof ms&&t.delete(o.compartment)}if(s.set(o,l),Array.isArray(o))for(let h of o)r(h,l);else if(o instanceof ms){if(t.has(o.compartment))throw new RangeError("Duplicate use of compartment in extensions");let h=e.get(o.compartment)||o.inner;t.set(o.compartment,h),r(h,l)}else if(o instanceof Al)r(o.inner,o.prec);else if(o instanceof j)i[l].push(o),o.provides&&r(o.provides,l);else if(o instanceof Xi)i[l].push(o),o.facet.extensions&&r(o.facet.extensions,ot.default);else{let h=o.extension;if(!h)throw new Error(`Unrecognized extension value in extension set (${o}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);r(h,l)}}return r(n,ot.default),i.reduce((o,l)=>o.concat(l))}function ii(n,e){if(e&1)return 2;let t=e>>1,i=n.status[t];if(i==4)throw new Error("Cyclic dependency between fields and/or facets");if(i&2)return i;n.status[t]=4;let s=n.computeSlot(n,n.config.dynamicSlots[t]);return n.status[t]=2|s}function on(n,e){return e&1?n.config.staticValues[e>>1]:n.values[e>>1]}const Ml=k.define(),gs=k.define({combine:n=>n.some(e=>e),static:!0}),Dl=k.define({combine:n=>n.length?n[0]:void 0,static:!0}),Tl=k.define(),Ol=k.define(),El=k.define(),Bl=k.define({combine:n=>n.length?n[0]:!1});class qe{constructor(e,t){this.type=e,this.value=t}static define(){return new tf}}class tf{of(e){return new qe(this,e)}}class nf{constructor(e){this.map=e}of(e){return new O(this,e)}}class O{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return t===void 0?void 0:t==this.value?this:new O(this.type,t)}is(e){return this.type==e}static define(e={}){return new nf(e.map||(t=>t))}static mapEffects(e,t){if(!e.length)return e;let i=[];for(let s of e){let r=s.map(t);r&&i.push(r)}return i}}O.reconfigure=O.define();O.appendConfig=O.define();class K{constructor(e,t,i,s,r,o){this.startState=e,this.changes=t,this.selection=i,this.effects=s,this.annotations=r,this.scrollIntoView=o,this._doc=null,this._state=null,i&&Cl(i,t.newLength),r.some(l=>l.type==K.time)||(this.annotations=r.concat(K.time.of(Date.now())))}static create(e,t,i,s,r,o){return new K(e,t,i,s,r,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(K.userEvent);return!!(t&&(t==e||t.length>e.length&&t.slice(0,e.length)==e&&t[e.length]=="."))}}K.time=qe.define();K.userEvent=qe.define();K.addToHistory=qe.define();K.remote=qe.define();function sf(n,e){let t=[];for(let i=0,s=0;;){let r,o;if(i<n.length&&(s==e.length||e[s]>=n[i]))r=n[i++],o=n[i++];else if(s<e.length)r=e[s++],o=e[s++];else return t;!t.length||t[t.length-1]<r?t.push(r,o):t[t.length-1]<o&&(t[t.length-1]=o)}}function Ll(n,e,t){var i;let s,r,o;return t?(s=e.changes,r=Y.empty(e.changes.length),o=n.changes.compose(e.changes)):(s=e.changes.map(n.changes),r=n.changes.mapDesc(e.changes,!0),o=n.changes.compose(s)),{changes:o,selection:e.selection?e.selection.map(r):(i=n.selection)===null||i===void 0?void 0:i.map(s),effects:O.mapEffects(n.effects,s).concat(O.mapEffects(e.effects,r)),annotations:n.annotations.length?n.annotations.concat(e.annotations):e.annotations,scrollIntoView:n.scrollIntoView||e.scrollIntoView}}function ys(n,e,t){let i=e.selection,s=Ct(e.annotations);return e.userEvent&&(s=s.concat(K.userEvent.of(e.userEvent))),{changes:e.changes instanceof Y?e.changes:Y.of(e.changes||[],t,n.facet(Dl)),selection:i&&(i instanceof b?i:b.single(i.anchor,i.head)),effects:Ct(e.effects),annotations:s,scrollIntoView:!!e.scrollIntoView}}function Pl(n,e,t){let i=ys(n,e.length?e[0]:{},n.doc.length);e.length&&e[0].filter===!1&&(t=!1);for(let r=1;r<e.length;r++){e[r].filter===!1&&(t=!1);let o=!!e[r].sequential;i=Ll(i,ys(n,e[r],o?i.changes.newLength:n.doc.length),o)}let s=K.create(n,i.changes,i.selection,i.effects,i.annotations,i.scrollIntoView);return of(t?rf(s):s)}function rf(n){let e=n.startState,t=!0;for(let s of e.facet(Tl)){let r=s(n);if(r===!1){t=!1;break}Array.isArray(r)&&(t=t===!0?r:sf(t,r))}if(t!==!0){let s,r;if(t===!1)r=n.changes.invertedDesc,s=Y.empty(e.doc.length);else{let o=n.changes.filter(t);s=o.changes,r=o.filtered.mapDesc(o.changes).invertedDesc}n=K.create(e,s,n.selection&&n.selection.map(r),O.mapEffects(n.effects,r),n.annotations,n.scrollIntoView)}let i=e.facet(Ol);for(let s=i.length-1;s>=0;s--){let r=i[s](n);r instanceof K?n=r:Array.isArray(r)&&r.length==1&&r[0]instanceof K?n=r[0]:n=Pl(e,Ct(r),!1)}return n}function of(n){let e=n.startState,t=e.facet(El),i=n;for(let s=t.length-1;s>=0;s--){let r=t[s](n);r&&Object.keys(r).length&&(i=Ll(i,ys(e,r,n.changes.newLength),!0))}return i==n?n:K.create(e,n.changes,n.selection,i.effects,i.annotations,i.scrollIntoView)}const lf=[];function Ct(n){return n==null?lf:Array.isArray(n)?n:[n]}var z=function(n){return n[n.Word=0]="Word",n[n.Space=1]="Space",n[n.Other=2]="Other",n}(z||(z={}));const af=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let bs;try{bs=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function hf(n){if(bs)return bs.test(n);for(let e=0;e<n.length;e++){let t=n[e];if(/\w/.test(t)||t>"€"&&(t.toUpperCase()!=t.toLowerCase()||af.test(t)))return!0}return!1}function cf(n){return e=>{if(!/\S/.test(e))return z.Space;if(hf(e))return z.Word;for(let t=0;t<n.length;t++)if(e.indexOf(n[t])>-1)return z.Word;return z.Other}}class E{constructor(e,t,i,s,r,o){this.config=e,this.doc=t,this.selection=i,this.values=s,this.status=e.statusTemplate.slice(),this.computeSlot=r,o&&(o._state=this);for(let l=0;l<this.config.dynamicSlots.length;l++)ii(this,l<<1);this.computeSlot=null}field(e,t=!0){let i=this.config.address[e.id];if(i==null){if(t)throw new RangeError("Field is not present in this state");return}return ii(this,i),on(this,i)}update(...e){return Pl(this,e,!0)}applyTransaction(e){let t=this.config,{base:i,compartments:s}=t;for(let l of e.effects)l.is(Et.reconfigure)?(t&&(s=new Map,t.compartments.forEach((a,h)=>s.set(h,a)),t=null),s.set(l.value.compartment,l.value.extension)):l.is(O.reconfigure)?(t=null,i=l.value):l.is(O.appendConfig)&&(t=null,i=Ct(i).concat(l.value));let r;t?r=e.startState.values.slice():(t=rn.resolve(i,s,this),r=new E(t,this.doc,this.selection,t.dynamicSlots.map(()=>null),(a,h)=>h.reconfigure(a,this),null).values);let o=e.startState.facet(gs)?e.newSelection:e.newSelection.asSingle();new E(t,e.newDoc,o,r,(l,a)=>a.update(l,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:b.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,i=e(t.ranges[0]),s=this.changes(i.changes),r=[i.range],o=Ct(i.effects);for(let l=1;l<t.ranges.length;l++){let a=e(t.ranges[l]),h=this.changes(a.changes),c=h.map(s);for(let u=0;u<l;u++)r[u]=r[u].map(c);let f=s.mapDesc(h,!0);r.push(a.range.map(f)),s=s.compose(c),o=O.mapEffects(o,c).concat(O.mapEffects(Ct(a.effects),f))}return{changes:s,selection:b.create(r,t.mainIndex),effects:o}}changes(e=[]){return e instanceof Y?e:Y.of(e,this.doc.length,this.facet(E.lineSeparator))}toText(e){return R.of(e.split(this.facet(E.lineSeparator)||fs))}sliceDoc(e=0,t=this.doc.length){return this.doc.sliceString(e,t,this.lineBreak)}facet(e){let t=this.config.address[e.id];return t==null?e.default:(ii(this,t),on(this,t))}toJSON(e){let t={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let i in e){let s=e[i];s instanceof j&&this.config.address[s.id]!=null&&(t[i]=s.spec.toJSON(this.field(e[i]),this))}return t}static fromJSON(e,t={},i){if(!e||typeof e.doc!="string")throw new RangeError("Invalid JSON representation for EditorState");let s=[];if(i){for(let r in i)if(Object.prototype.hasOwnProperty.call(e,r)){let o=i[r],l=e[r];s.push(o.init(a=>o.spec.fromJSON(l,a)))}}return E.create({doc:e.doc,selection:b.fromJSON(e.selection),extensions:t.extensions?s.concat([t.extensions]):s})}static create(e={}){let t=rn.resolve(e.extensions||[],new Map),i=e.doc instanceof R?e.doc:R.of((e.doc||"").split(t.staticFacet(E.lineSeparator)||fs)),s=e.selection?e.selection instanceof b?e.selection:b.single(e.selection.anchor,e.selection.head):b.single(0);return Cl(s,i.length),t.staticFacet(gs)||(s=s.asSingle()),new E(t,i,s,t.dynamicSlots.map(()=>null),(r,o)=>o.create(r),null)}get tabSize(){return this.facet(E.tabSize)}get lineBreak(){return this.facet(E.lineSeparator)||`
@@ -0,0 +1 @@
1
+ .main_div{display:flex;padding:0;margin:0;height:100%}.menu_collapse{width:200px;flex:0 0 auto;margin:0;padding:0}.tree_and_commands{width:100%;margin:0;padding:0}.editor{flex:1 0 0 auto;display:flex;flex-direction:column;align-items:stretch;overflow:auto;width:100%}.tabview{max-height:content;overflow-y:auto;width:100%;height:55px}.toolbar{height:55px}.blocklyeditorclass{flex:1;height:100%;max-width:100%;overflow-x:auto;overflow-y:auto}.texteditorclass{flex:1;max-width:100%;overflow-x:auto;overflow-y:auto}@media (max-width: 768px){.main_div{font-size:10px}}[data-v-7d510def] .p-tree{padding:0}.card[data-v-8ef45e55]{background:var(--surface-card);padding:0;border-radius:10px;margin-bottom:0}[data-v-8ef45e55] .p-tabview .p-tabview-panels{padding:0;background:gray}[data-v-8ef45e55] .p-tabview .p-tabview-nav{padding:3px}.card[data-v-dad5592a]{background:var(--surface-card);padding:0rem;border-radius:10px;margin-bottom:0rem}.blocklyWorkspace:hover .blocklyTreeLabel{display:none}.blocklyToolboxContents{flex-wrap:nowrap}.blocklyToolboxDiv{background-color:#63a1d2}.blocklyToolboxDiv:hover{width:auto}.div_blockly{width:100%;height:100%}.blocklyDivClass{height:100%;width:100%;text-align:left;position:relative}.blocklyTreeLabel{display:block-inline;color:#fff}.blocklySvg{width:100%;height:100%}.blocklyAreaClass{height:100%}.container[data-v-e2622354],.container textarea[data-v-e2622354]{width:100%}.main_div[data-v-bf7ed7fe]{display:flex;padding:0;margin:0;height:100%}.menu_collapse[data-v-bf7ed7fe]{width:200px;flex:0 0 auto;margin:0;padding:0}.tree_and_commands[data-v-bf7ed7fe]{width:100%;margin:0;padding:0}.editor[data-v-bf7ed7fe]{flex:1 0 0 auto;display:flex;flex-direction:column;align-items:stretch;overflow:auto;width:100%}.tabview[data-v-bf7ed7fe]{max-height:content;overflow-y:auto;width:100%;height:55px}.toolbar[data-v-bf7ed7fe]{height:55px}.blocklyeditorclass[data-v-bf7ed7fe]{flex:1;height:100%;max-width:100%;overflow-x:auto;overflow-y:auto}.texteditorclass[data-v-bf7ed7fe]{flex:1;max-width:100%;overflow-x:auto;overflow-y:auto}@media (max-width: 768px){.main_div[data-v-bf7ed7fe]{font-size:10px}}
@@ -0,0 +1,18 @@
1
+ /* empty css */import{s as xe,a as Ae,b as Xe,u as we,c as ke,d as ve,e as oe,f as M,g as pe,h as De,i as Me,j as Ke,k as He,P as qe,T as ze,D as Qe}from"./primevue-CEz28wR_.js";import{d as R,r as s,w as N,g as je,P as g,f as x,o as $,q as O,t as v,x as T,C as f,B as ne,F as le,E as ae,e as Je,n as Ge,i as Ze,z as Y,K as ee,Q as Ye,R as et,S as tt}from"./@vue-CfPxtCWx.js";import{p as Ie,S as ot,l as nt,s as lt}from"./codemirror-DYWAmcfC.js";import{b as F,E as at,a as st,B as it,l as rt,p as ct}from"./blockly-C3KDyeBl.js";import"./@lezer-6dgAjmMZ.js";import"./crelt-C8TCjufn.js";import"./style-mod-Bc2inJdb.js";import"./w3c-keyname-Vcq4gwWv.js";(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))n(l);new MutationObserver(l=>{for(const a of l)if(a.type==="childList")for(const r of a.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&n(r)}).observe(document,{childList:!0,subtree:!0});function t(l){const a={};return l.integrity&&(a.integrity=l.integrity),l.referrerPolicy&&(a.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?a.credentials="include":l.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(l){if(l.ep)return;l.ep=!0;const a=t(l);fetch(l.href,a)}})();function ut(e){return e=="py"?Ie():e=="lua"?ot.define(nt):Ie()}const se="py lua json ck",Ce="py lua ck",Pe="json",dt={py:"Python",lua:"Lua",ck:"Chuck",json:"JSON",txt:"Text plain"};var i=(e=>(e[e.OK=0]="OK",e[e.FAILED=1]="FAILED",e[e.CHANGE=2]="CHANGE",e[e.WITHOUTCHANGE=3]="WITHOUTCHANGE",e[e.REQUEST=4]="REQUEST",e[e.REQUEST_SELECT_FILE_IN_TABVIEW=5]="REQUEST_SELECT_FILE_IN_TABVIEW",e[e.EXISTS=6]="EXISTS",e[e.NOEXIST=7]="NOEXIST",e[e.FOUND=8]="FOUND",e[e.NOTFOUND=9]="NOTFOUND",e[e.ADDED=10]="ADDED",e[e.SAVED=11]="SAVED",e[e.UNSAVED=12]="UNSAVED",e[e.SET_WS=13]="SET_WS",e[e.ENABLED=14]="ENABLED",e[e.DESABLED=15]="DESABLED",e))(i||{}),fe=(e=>(e[e.TOAST=0]="TOAST",e[e.TEXT_PRINT=1]="TEXT_PRINT",e[e.TEXT_AREA=2]="TEXT_AREA",e))(fe||{}),j=(e=>(e[e.WELCOME=0]="WELCOME",e[e.CODEMIRROR=1]="CODEMIRROR",e[e.BLOCKLY=2]="BLOCKLY",e[e.FREE=3]="FREE",e))(j||{}),W=(e=>(e[e.EN=0]="EN",e[e.ES=1]="ES",e))(W||{}),k=(e=>(e[e.UNIX=0]="UNIX",e[e.WINDOWS=1]="WINDOWS",e[e.LINUX=2]="LINUX",e[e.MACOS=3]="MACOS",e[e.UNKNOW=4]="UNKNOW",e))(k||{}),X=(e=>(e[e.RELATIVE=0]="RELATIVE",e[e.ABSOLUTE=1]="ABSOLUTE",e[e.UNKNOW=2]="UNKNOW",e))(X||{});const pt=R({__name:"TextEditor",props:["projects","index","update","activate","workspace"],emits:["content-cursor-index"],setup(e,{emit:o}){const t=e,n=o,l=s(""),a=s(),r=s();return N(()=>[t.index,t.update],async()=>{t.projects.length>0&&t.workspace==j.CODEMIRROR&&(r.value.setCursor(0),a.value=ut(t.projects[t.index].extension),l.value=t.projects[t.index].content)}),N(l,u=>{n("content-cursor-index",u,r.value.getCursor(),t.index)}),(u,E)=>(x(),je(g(lt),{ref_key:"cm",ref:r,modelValue:l.value,"onUpdate:modelValue":E[0]||(E[0]=d=>l.value=d),basic:"","tab-size":2,dark:!1,gutter:!0,tab:!0,lang:a.value},null,8,["modelValue","lang"]))}});function Le(e,o){for(let t=0;t<e.length;t++)if(e[t]==o)return{status:i.FOUND,data:t};return{status:i.NOTFOUND}}function me(e){const o=/^[a-zA-Z]:\\/,t=/^\//,n=/^[^\/\\:*?"<>|]+(?:\\|\/|$)/,l=/^[^\/]+(?:\/|$)/;return o.test(e)?{so:k.WINDOWS,pathType:X.ABSOLUTE}:t.test(e)?{so:k.UNIX,pathType:X.ABSOLUTE}:n.test(e)?{so:k.WINDOWS,pathType:X.RELATIVE}:l.test(e)?{so:k.UNIX,pathType:X.RELATIVE}:{so:k.UNKNOW,pathType:X.UNKNOW}}function ft(e){const o=me(e);if(o.so==k.UNIX){const t=e.split("/").pop(),n=e.includes(".")?e.split(".").pop():"";return{path:e,filename:t||"",extension:n||""}}else if(o.so==k.WINDOWS){const t=e.split("\\").pop(),n=e.includes(".")?e.split(".").pop():"";return{path:e,filename:t||"",extension:n||""}}else return{path:"",filename:"",extension:""}}function vt(e){return se.includes(e)?"pi pi-file-edit":""}function mt(e){let o=[];for(let t=0;t<e.length;t++){const n=ft(e[t]);o.push({key:String(t),label:n.filename,leaf:!0,icon:n.extension!=""?vt(n.extension):"",data:n.path,extension:n.extension})}return o}function gt(e){const o=me(e);if(o.so==k.UNIX){const t=e.split("/").pop();return(e.includes(".")?e.split(".").pop():"")!=""?{status:i.FAILED}:{status:i.OK,data:{path:e,dirname:t||"noname"}}}else if(o.so==k.WINDOWS){const t=e.split("\\").pop();return(e.includes(".")?e.split(".").pop():"")!=""?{status:i.FAILED}:{status:i.OK,data:{path:e,dirname:t||"noname"}}}else return{status:i.FAILED}}function Et(e){let o=[];for(let t=0;t<e.length;t++){const n=gt(e[t]);n.status==i.OK&&o.push({key:String(t),label:n.data.dirname,leaf:!0,icon:"pi pi-folder",data:n.data.path})}return o}const Oe={dirTitle:{en:"Directories:",es:"Directorios:"},fileTitle:{en:"Files:",es:"Archivos:"}},te={menu:{en:"",es:""},save:{en:"Save",es:"Guardar"},close:{en:"Close",es:"cerrar"},config:{en:"Config",es:"Configurar"}},w={save:{en:"Save",es:"Guardar"},close:{en:"Close",es:"cerrar"},file:{en:"File",es:"Archivo"},opendir:{en:"Open dir",es:"Abrir directorio"},selectDirPath:{header:{en:"Put dir path.",es:"Poner ruta de directorio"}},newProject:{en:"New project",es:"Nuevo proyecto"},dialogNewProject:{header:{en:"New project",es:"Nuevo proyecto"},labelInput:{en:"1. Insert a file name for project, the extension file will created atomatically.",es:"1. Agregar un nombre de archivo para el proyecto, la extensión será creada automáticamente."},labelDirPath:{en:"The project file will created in the path: ",es:"El proyecto será creado en el path: "},labelSelectPlatform:{en:"2. Select a platform compatible with editor: ",es:"2. Seleccionar una plataforma compatible con el editor: "},labelSelectProjectType:{en:"3. Select project type to create.",es:"3. Selecciona el tipo de proyecto a crear."}},dialogButton:{ok:{en:"Ok",es:"Ok"},close:{en:"Close",es:"Cerrar"}}},A={savefile:{ok:{en:"File save",es:"Archivo guardado"},error:{en:"Don't save file",es:"No se guardó el archivo"}},titleConfigProjectDialog:{en:"Config project",es:"Configuar proyecto"},dialogButton:{ok:{en:"Ok",es:"Ok"},close:{en:"Close",es:"Cerrar"}},toastProccess:{en:"In process",es:"En proceso"}},ht={scrollableTabsDefault:{en:"Projects loaded in workspace",es:"Proyectos cargados en el área de trabajo"}};function b(e,o){return o==W.EN?e.en:o==W.ES?e.es:"noname"}const yt={class:"card flex justify-content-center"},bt={for:"mask",class:"font-bold block mb-2"},_t={for:"mask",class:"font-bold block mb-2"},xt=R({__name:"TreeView",props:["dirPaths","dirPathsLength","filePaths","lang"],emits:["dir-path-selected","file-selected"],setup(e,{emit:o}){const t=e,n=o,l=s(),a=s(),r=s(""),u=s("");$(()=>{r.value=b(Oe.dirTitle,t.lang),u.value=b(Oe.fileTitle,t.lang)});const E=c=>{console.log(c.data),n("dir-path-selected",c.data)},d=c=>{console.log(c.data),n("file-selected",c.data)};return N(()=>t.dirPathsLength,()=>{a.value=Et(t.dirPaths)}),N(()=>t.filePaths,async c=>{l.value=mt(c)}),(c,D)=>(x(),O("div",yt,[v("label",bt,T(r.value),1),f(g(xe),{value:a.value,selectionMode:"single",onNodeSelect:E,class:"w-full md:w-30rem"},null,8,["value"]),v("label",_t,T(u.value),1),f(g(xe),{value:l.value,selectionMode:"single",onNodeSelect:d,class:"w-full md:w-30rem"},null,8,["value"])]))}}),J=(e,o)=>{const t=e.__vccOpts||e;for(const[n,l]of o)t[n]=l;return t},Dt=J(xt,[["__scopeId","data-v-7d510def"]]);function It(e){let o=[];for(let t=0;t<e.length;t++)o.push({title:e[t].filename,indexOfProject:t});return o}const Ot={id:"divTabview",class:"card"},Nt=R({__name:"TabViewEditor",props:["index","update","projects","contentchanges","lang"],emits:["index-of-project-to-load"],setup(e,{emit:o}){const t=o,n=e,l=s([]),a=s(0),r=E=>n.projects.length>0?It(n.projects):[{title:b(ht.scrollableTabsDefault,E),indexOfProject:-1}];N(()=>[n.index,n.update],([E])=>{l.value=r(n.lang),n.projects.length>0?a.value=E:a.value=0}),N(()=>n.lang,E=>{l.value=r(E)}),$(()=>{l.value=r(n.lang)});const u=E=>{t("index-of-project-to-load",E.index)};return(E,d)=>(x(),O("div",Ot,[f(g(Ae),{scrollable:!0,onTabClick:u,activeIndex:a.value,"onUpdate:activeIndex":d[0]||(d[0]=c=>a.value=c)},{default:ne(()=>[(x(!0),O(le,null,ae(l.value,c=>(x(),je(g(Xe),{key:c.title,header:c.title},null,8,["header"]))),128))]),_:1},8,["activeIndex"])]))}}),wt=J(Nt,[["__scopeId","data-v-8ef45e55"]]),ge="http://"+location.hostname,Ee="8080",he="cors";async function kt(e){const t=ge+":"+Ee+"/"+"fs/dirconfig",n={method:"PUT",mode:he,headers:{"Content-Type":"application/json"},body:JSON.stringify({workdir:e})};try{const a=await(await fetch(t,n)).json();return a.status==i.OK?a:{status:i.FAILED}}catch(l){return console.error(l),{status:i.FAILED}}}async function jt(e){const t=ge+":"+Ee+"/"+"fs/readFile",n={method:"PUT",mode:he,headers:{"Content-Type":"application/json"},body:JSON.stringify({file:e})};try{const a=await(await fetch(t,n)).json();if(a.status==i.OK)return a}catch(l){return console.error(l),{status:-1}}}async function Ct(e,o){const n=ge+":"+Ee+"/"+"fs/writeFile",l={method:"PUT",mode:he,headers:{"Content-Type":"application/json"},body:JSON.stringify({file:e,content:o})};try{const r=await(await fetch(n,l)).json();return r.status==i.OK?r:{status:i.FAILED}}catch(a){return console.error(a),{status:i.FAILED}}}const Pt={class:"card"},Lt={class:"flex align-items-center"},Tt=["for"],Ft={class:"flex align-items-center"},Bt=["for"],St=R({__name:"MenubarCommon",props:{lang:{},workDirPath:{},plugins:{}},emits:["dirconfig-update","save-project-request","dir-path-selected","new-project-request"],setup(e,{emit:o}){we(),s("Soltar aquí el directorio de trabajo");const t=e,n=s(!1),l=s(""),a=s(""),r=s(!1),u=s(""),E=s(""),d=s(""),c=s(""),D=s(""),L=s(""),C=s(""),B=s(""),P=s(""),S=o,V=s([]),K=p=>{V.value=[{label:b(w.file,p),icon:"pi pi-file",items:[{label:b(w.newProject,p),icon:"pi pi-file-plus",command:()=>{d.value="",q(t.lang),r.value=!0}},{label:b(w.opendir,p),icon:"pi pi-folder-open",command:()=>{a.value="",n.value=!0}},{label:b(w.save,p),icon:"pi pi-save",command:()=>{S("save-project-request")}}]}]},H=()=>{n.value=!1,S("dir-path-selected",a.value)};N(d,p=>{p.split(".").pop()&&p.split(".").pop()});const G=p=>{l.value=b(w.selectDirPath.header,p)},q=p=>{u.value=b(w.dialogNewProject.header,p),E.value=b(w.dialogNewProject.labelInput,p)+" (."+se.replace(/ /g,", .")+"):",c.value=b(w.dialogNewProject.labelDirPath,p)+'"'+t.workDirPath+'".',D.value=b(w.dialogNewProject.labelSelectPlatform,p),L.value=b(w.dialogNewProject.labelSelectProjectType,p)},re=p=>{C.value=b(w.dialogButton.ok,p),B.value=b(w.dialogButton.close,p)},Z=p=>{G(p),q(p),re(p)},ce=()=>{let p="",h="";z.value=="Blockly"?(p=t.plugins[P.value].blockly_template,h=".json"):(p=t.plugins[P.value].lang_template,h="."+t.plugins[P.value].lang);const _=t.workDirPath+"/"+d.value+h;S("new-project-request",_,p),r.value=!1};N(()=>t.lang,p=>{Z(p),K(p)});const U=s([]),z=s("");return N(P,()=>{U.value=[];const p=t.plugins[P.value].lang,h=dt[p];U.value.push(h),t.plugins[P.value].blockly_template!=null&&U.value.push("Blockly")}),$(()=>{Z(t.lang),K(t.lang)}),(p,h)=>(x(),O("div",Pt,[f(g(ke),{model:V.value},null,8,["model"]),f(g(ve)),f(g(pe),{visible:n.value,"onUpdate:visible":h[2]||(h[2]=_=>n.value=_),modal:"",header:l.value,style:{width:"25rem"}},{default:ne(()=>[v("div",null,[f(g(oe),{type:"text",modelValue:a.value,"onUpdate:modelValue":h[0]||(h[0]=_=>a.value=_)},null,8,["modelValue"])]),v("div",null,[f(g(M),{type:"button",label:B.value,severity:"secondary",onClick:h[1]||(h[1]=_=>n.value=!1)},null,8,["label"]),f(g(M),{type:"button",label:C.value,onClick:H},null,8,["label"])])]),_:1},8,["visible","header"]),f(g(pe),{visible:r.value,"onUpdate:visible":h[7]||(h[7]=_=>r.value=_),modal:"",header:u.value,style:{width:"35rem"}},{default:ne(()=>[v("div",null,[v("p",null,T(E.value),1),f(g(oe),{type:"text",modelValue:d.value,"onUpdate:modelValue":h[3]||(h[3]=_=>d.value=_)},null,8,["modelValue"]),v("p",null,T(c.value),1),v("p",null,T(D.value),1)]),(x(!0),O(le,null,ae(t.plugins,_=>(x(),O("div",Lt,[f(g(De),{modelValue:P.value,"onUpdate:modelValue":h[4]||(h[4]=Q=>P.value=Q),inputId:_.platform,name:"dynamic",value:_.platform},null,8,["modelValue","inputId","value"]),v("label",{for:_.platform,class:"ml-2"},T(_.platform),9,Tt)]))),256)),v("div",null,[v("p",null,T(L.value),1)]),(x(!0),O(le,null,ae(U.value,_=>(x(),O("div",Ft,[f(g(De),{modelValue:z.value,"onUpdate:modelValue":h[5]||(h[5]=Q=>z.value=Q),inputId:_,name:"dynamic",value:_},null,8,["modelValue","inputId","value"]),v("label",{for:_,class:"ml-2"},T(_),9,Bt)]))),256)),v("div",null,[f(g(M),{type:"button",label:B.value,severity:"secondary",onClick:h[6]||(h[6]=_=>r.value=!1)},null,8,["label"]),f(g(M),{type:"button",label:C.value,onClick:ce},null,8,["label"])])]),_:1},8,["visible","header"])]))}}),Vt=J(St,[["__scopeId","data-v-dad5592a"]]),Rt=`
2
+
3
+ <xml id="toolbox" style="display: none">
4
+ <category name="Lógica" colour="%{BKY_LOGIC_HUE}">
5
+ <block type="controls_if"></block>
6
+ </category>
7
+ <category name="Secuencias" colour="%{BKY_LOOPS_HUE}">
8
+ <block type="controls_repeat_ext">
9
+ <value name="TIMES">
10
+ <shadow type="math_number">
11
+ <field name="NUM">10</field>
12
+ </shadow>
13
+ </value>
14
+ </block>
15
+ </category>
16
+ </xml>`;function Wt(){const e=window.innerWidth,o=window.innerHeight;return e<o}const $t={media:"media/",renderer:"geras",toolboxPosition:"start",horizontalLayout:Wt(),zoom:{controls:!0,wheel:!0,startScale:1,maxScale:3,minScale:.3,scaleSpeed:1.2,pinch:!0},trashcan:!0,grid:{spacing:25,length:1,colour:"#ccc",snap:!0},toolbox:Rt};function Ut(e){return F.inject(e.value,$t)}function At(e,o){const t=F.utils.xml.textToDom(e);try{return F.Xml.clearWorkspaceAndLoadFromXml(t,o),{status:i.OK}}catch{return{status:i.FAILED}}}function Xt(e){e==W.ES?F.setLocale(at):F.setLocale(st)}function Mt(e){return e.lang=="lua"?rt.luaGenerator:e.lang=="python"?ct.pythonGenerator:void 0}let Ne=[];function Kt(e,o){Le(Ne,e.platform).status==i.NOTFOUND&&(e.initBlockly(it,Mt(e),o),Ne.push(e.platform))}const Ht={class:"div_blockly"},qt=R({__name:"BlocklyEditor",props:["projects","index","update","workspace","plugin"],emits:["xmltext-index","blockly-mounted"],setup(e,{emit:o}){const t=e,n=o,l=s(),a=s();let r;const u=[F.Events.SELECTED],E=d=>{for(const c in u)if(d.type===u[c]){const D=F.Xml.workspaceToDom(r),L=F.Xml.domToPrettyText(D);n("xmltext-index",L,t.index)}};return $(async()=>{r=Ut(l),Xt(0),r.addChangeListener(E),n("blockly-mounted")}),N(()=>[t.index,t.update],async([d])=>{if(t.projects.length>0&&t.workspace==j.BLOCKLY){await Ge();const c=t.projects[d].config.platform;c!=null&&c!=""&&(Kt(t.plugin,r),r.updateToolbox(t.plugin.toolbox)),At(t.projects[d].blocklycode,r),F.svgResize(r),r.scrollCenter()}}),(d,c)=>(x(),O("div",Ht,[v("div",{class:"blocklyDivClass",id:"blocklyDiv",ref_key:"blocklyDivRef",ref:l},null,512),v("xml",{style:{display:"none"},ref_key:"blocklyToolbox",ref:a},[Je(d.$slots,"default")],512)]))}}),zt={class:"card"},Qt=R({__name:"ToolBar",props:["lang","plugin"],emits:["menu-toggle","save-project-request","close-project","config-project","plugin-command"],setup(e,{emit:o}){const t=e,n=o,l=s([]),a=s(W.EN),r=[{label:b(te.menu,t.lang),icon:"pi pi-arrow-right-arrow-left",command:()=>{n("menu-toggle")}},{label:b(te.save,t.lang),icon:"pi pi-save",command:()=>{n("save-project-request")}},{label:b(te.close,t.lang),icon:"pi pi-times",command:()=>{n("close-project")}},{label:b(te.config,t.lang),icon:"pi pi-cog",command:()=>{n("config-project")}}];function u(d){for(let c=0;c<d.length;c++)if(Array.isArray(d[c].items))u(d[c].items);else{const D=d[c].command;d[c].command=function(){n("plugin-command",D)}}return d}const E=d=>{if(d!=null){let c=d.getItemsToolBarOfPlugin(t.lang);c!=null&&c.length>0?(c=u(c),l.value=[...r,...c]):l.value=r}else l.value=r};return N(()=>t.plugin,d=>{E(d)}),N(()=>t.lang,()=>{a.value=t.lang}),$(()=>{l.value=r}),(d,c)=>(x(),O("div",zt,[f(g(ke),{model:l.value},null,8,["model"]),f(g(ve))]))}}),Jt={class:"container"},Gt=R({__name:"TextareaDialog",setup(e){const o=Ze("dialogRef");let t;const n=s(""),l=s("");return $(()=>{t=o.value.data,n.value=t.description,l.value=t.content}),(a,r)=>(x(),O("div",Jt,[v("p",null,T(n.value),1),f(g(Me),{modelValue:l.value,"onUpdate:modelValue":r[0]||(r[0]=u=>l.value=u),autoResize:""},null,8,["modelValue"])]))}}),Zt=J(Gt,[["__scopeId","data-v-e2622354"]]);function Te(e,o){for(let t=0;t<e.length;t++)if(e[t].path===o)return{status:i.EXISTS,data:t};return{status:i.NOEXIST}}async function Yt(e,o){const t=Fe(o);if(t.extension=="")return{status:i.WITHOUTCHANGE};if(!se.includes(t.extension))return{status:i.WITHOUTCHANGE};const n=Te(e,t.path);if(n.status==i.EXISTS)return{status:i.REQUEST_SELECT_FILE_IN_TABVIEW,data:n.data};{const l=await jt(t.path);if(l.status==0){const a=t.extension=="json"?JSON.parse(l.data):{},r=ye(l.data,t.extension),u={path:t.path,filename:t.filename,extension:t.extension,content:l.data,blocklycode:a.blocklycode||void 0,codemirrorCursor:0,config:r,status:i.ADDED};return e.push(u),{status:i.REQUEST_SELECT_FILE_IN_TABVIEW,data:e.length-1}}else return{status:i.WITHOUTCHANGE}}}async function eo(e,o,t){const n=Fe(o);if(n.extension=="")return{status:i.WITHOUTCHANGE};if(!se.includes(n.extension))return{status:i.WITHOUTCHANGE};const l=Te(e,n.path);if(l.status==i.EXISTS)return{status:i.REQUEST_SELECT_FILE_IN_TABVIEW,data:l.data};if(t!=""){const a=n.extension=="json"?JSON.parse(t):{},r=ye(t,n.extension),u={path:n.path,filename:n.filename,extension:n.extension,content:t,blocklycode:a.blocklycode||void 0,codemirrorCursor:0,config:r,status:i.ADDED};return e.push(u),{status:i.REQUEST_SELECT_FILE_IN_TABVIEW,data:e.length-1}}else return{status:i.WITHOUTCHANGE}}function to(e,o){return e!==void 0&&e.length>o?(e.splice(o,1),{status:i.OK}):{status:i.FAILED}}function oo(e,o,t,n){return e[n].content=o,e[n].codemirrorCursor=t,e[n].status=i.UNSAVED,{status:i.OK}}function no(e,o,t){return e[t].blocklycode=o,e[t].status=i.UNSAVED,{status:i.OK}}function lo(e){return Pe.includes(e.extension)?{status:i.SET_WS,data:j.BLOCKLY}:Ce.includes(e.extension)?{status:i.SET_WS,data:j.CODEMIRROR}:{status:i.SET_WS,data:j.WELCOME}}function ao(e,o){const t=e[o];if(t.extension=="json"&&t.blocklycode!==void 0){const n={config:t.config||"",blocklycode:t.blocklycode};e[o].content=JSON.stringify(n)}return{status:i.OK}}function so(e,o,t){const n=e[o];let l;if(Pe.includes(n.extension)&&t!=null)l=t;else if(Ce.includes(n.extension))l=ye(n.content,n.extension);else return{status:i.FAILED};return e[o].config=l,{status:i.OK}}function ye(e,o){return o=="lua"?ro(e):o=="py"?io(e):o=="json"?co(e):{}}function io(e){const o={},t=e.split(`
17
+ `);for(const n of t){const l=n.match(/# (\w+): (.+)/);if(l){const[,a,r]=l;o[a]=String(r)}}return o}function ro(e){const o={},t=e.split(`
18
+ `);for(const n of t){const l=n.match(/-- (\w+): (.+)/);if(l){const[,a,r]=l;o[a]=String(r)}}return o}function co(e){const o=JSON.parse(e).config;return o===void 0?{}:o}function uo(e){let o=[];return e.config!=null&&(Object.keys(e.config).forEach(t=>{o.push({label:[t],value:e.config[t]})}),o.push({label:"",value:""})),o}function po(e){let o={};for(let t=0;t<e.length;t++){const n=e[t].label;if(n!=""&&n!=null){const l=e[t].value;o[n]=l}}return o}function Fe(e){const o=me(e);if(o.so==k.UNIX){const t=e.split("/").pop(),n=e.includes(".")?e.split(".").pop():"";return{path:e,filename:t||"",extension:n||""}}else if(o.so==k.WINDOWS){const t=e.split("\\").pop(),n=e.includes(".")?e.split(".").pop():"";return{path:e,filename:t||"",extension:n||""}}else return{path:"",filename:"",extension:""}}async function fo(e){return await kt(e)}async function vo(e,o){return ao(e,o),so(e,o),await Ct(e[o].path,e[o].content)}function mo(e,o){if(o.length>0)for(let t=0;t<o.length;t++)e[o[t].platform]=o[t]}let go=[];console.log("here");const be=e=>(Ye("data-v-bf7ed7fe"),e=e(),et(),e),Eo={style:{height:"100%"}},ho={class:"main_div"},yo=be(()=>v("p",null,"Catalejo",-1)),bo={id:"tree_and_commands",class:"tree_and_commands"},_o={id:"treeview",class:"treeview"},xo={id:"editor",class:"editor"},Do={id:"toolbar",class:"toolbar"},Io={id:"tabView",class:"tabview"},Oo={id:"blocklyEditor",class:"blocklyeditorclass"},No={id:"textEditor",class:"texteditorclass"},wo=be(()=>v("span",null,": ",-1)),ko=be(()=>v("div",{id:"log"},null,-1)),jo=R({__name:"App",setup(e){const o=s([]),t=s([]),n=s(""),l=s(0),a=s([]),r=s(),u=s(),E=s(!1),d=s(!1),c=s(W.EN),D=s(j.BLOCKLY),L=s({}),C=s();c.value=W.ES;const B=we(),P=Ke(),S=s(!0),V=s(!1),K=s(""),H=s([{label:"",value:""}]),G=s(""),q=s(""),re=m=>{o.value=m},Z=async m=>{const y=await Yt(a.value,m||"");y.status==i.REQUEST_SELECT_FILE_IN_TABVIEW&&(u.value=y.data)},ce=m=>{u.value=m},U=(m,y,I)=>{d.value=!d.value,oo(a.value,m,y,I)},z=(m,y)=>{d.value=!d.value,no(a.value,m,y)},p=async(m,y)=>{const I=await eo(a.value,m,y);I.status==i.REQUEST_SELECT_FILE_IN_TABVIEW&&(u.value=I.data)},h=async()=>{(await vo(a.value,u.value||0)).status==i.OK?B.add({severity:"success",summary:b(A.savefile.ok,c.value),detail:"",life:3e3}):B.add({severity:"error",summary:b(A.savefile.error,c.value),detail:"",life:3e3})},_=()=>{a.value.length>0&&(to(a.value,u.value||0),a.value.length>0&&u.value!=null?u.value<a.value.length?E.value=!E.value:u.value=u.value-1:(D.value=j.WELCOME,u.value=-1))},Q=()=>{K.value=b(A.titleConfigProjectDialog,c.value),G.value=b(A.dialogButton.ok,c.value),q.value=b(A.dialogButton.close,c.value),u.value!=null&&(H.value=uo(a.value[u.value])),V.value=!0},Be=()=>{D.value=j.WELCOME},ue=async m=>{const y=await fo(m);y.status==i.OK&&(Le(t.value,m).status==i.NOTFOUND&&t.value.push(m),o.value=y.data,n.value=m,l.value=t.value.length)};s(!1),s(""),s();const Se=async m=>{if(B.add({severity:"info",summary:b(A.toastProccess,c.value),detail:"",life:1500}),C.value!=null){const y=await C.value.commandEmit(r.value,m);switch(y.typeResult){case fe.TOAST:B.add(y.data);break;case fe.TEXT_PRINT:P.open(Zt,{data:y.data,props:{maximizable:!0,header:y.data.title}});break}}},_e=m=>{},Ve=()=>{S.value=!S.value,E.value=!E.value},Re=()=>{V.value=!1,u.value!=null&&(a.value[u.value].config=po(H.value))},We=()=>{if(a.value.length>0&&u.value!==void 0){const m=lo(a.value[u.value]);m.status==i.SET_WS&&(D.value=m.data)}},$e=()=>{if(a.value.length>0&&u.value!==void 0){const m=a.value[u.value].config.platform;m!=null&&m!=""?C.value=L.value[m]:C.value=void 0}},Ue=()=>{u.value!=null&&(r.value=a.value[u.value])};return N(u,()=>{We(),$e(),Ue()}),$(async()=>{ue("/home/johnny/projects/catalejo-lua/work"),mo(L.value,go)}),(m,y)=>(x(),O("main",Eo,[v("div",ho,[Y(v("div",{id:"menu_collapse",class:"menu_collapse",onMouseover:y[0]||(y[0]=I=>_e()),onMouseout:y[1]||(y[1]=I=>_e())},[yo,Y(v("div",bo,[v("div",null,[f(Vt,{plugins:L.value,lang:c.value,workDirPath:n.value,onDirconfigUpdate:re,onSaveProjectRequest:h,onNewProjectRequest:p,onDirPathSelected:ue},null,8,["plugins","lang","workDirPath"])]),v("div",_o,[f(Dt,{filePaths:o.value,dirPaths:t.value,dirPathsLength:l.value,lang:c.value,onFileSelected:Z,onDirPathSelected:ue},null,8,["filePaths","dirPaths","dirPathsLength","lang"])])],512),[[ee,S.value]])],544),[[ee,S.value]]),v("div",xo,[v("div",Do,[f(Qt,{lang:c.value,plugin:C.value,onMenuToggle:Ve,onSaveProjectRequest:h,onCloseProject:_,onConfigProject:Q,onPluginCommand:Se},null,8,["lang","plugin"])]),v("div",Io,[f(wt,{index:u.value,projects:a.value,contentchanges:d.value,lang:c.value,update:E.value,onIndexOfProjectToLoad:ce},null,8,["index","projects","contentchanges","lang","update"])]),Y(v("div",Oo,[f(qt,{projects:a.value,index:u.value,workspace:D.value,plugin:C.value,update:E.value,onXmltextIndex:z,onBlocklyMounted:Be},null,8,["projects","index","workspace","plugin","update"])],512),[[ee,D.value==g(j).BLOCKLY]]),Y(v("div",No,[f(pt,{projects:a.value,index:u.value,workspace:D.value,update:E.value,onContentCursorIndex:U},null,8,["projects","index","workspace","update"])],512),[[ee,D.value==g(j).CODEMIRROR]])]),f(g(pe),{visible:V.value,"onUpdate:visible":y[3]||(y[3]=I=>V.value=I),modal:"",header:K.value,style:{width:"32rem"}},{default:ne(()=>[v("div",null,[(x(!0),O(le,null,ae(H.value,I=>(x(),O("div",null,[f(g(oe),{type:"text",size:"small",modelValue:I.label,"onUpdate:modelValue":de=>I.label=de},null,8,["modelValue","onUpdate:modelValue"]),wo,f(g(oe),{type:"text",size:"small",modelValue:I.value,"onUpdate:modelValue":de=>I.value=de},null,8,["modelValue","onUpdate:modelValue"])]))),256)),f(g(M),{type:"button",label:q.value,severity:"secondary",onClick:y[2]||(y[2]=I=>V.value=!1)},null,8,["label"]),f(g(M),{type:"button",label:G.value,onClick:Re},null,8,["label"])])]),_:1},8,["visible","header"]),f(g(ve)),f(g(He))]),ko]))}}),Co=J(jo,[["__scopeId","data-v-bf7ed7fe"]]),ie=tt(Co);ie.use(qe);ie.use(ze);ie.use(Qe);ie.mount("#app");
@@ -1,4 +1,4 @@
1
- import{b as gn,i as Mt,m as vn,e as A,f as d,g as C,T as bn,j as $,r as Oe,k as yn,n as In,w as Cn,l as Sn,o as wn,p as f,q as g,t as I,u as q,v as O,F as _,x as U,y as Ge,z as N,A as M,B as Z,C as re,D as Pn,E as H,G as F,H as xn,I as qe,J as $n,K as Tn,L as On,M as jt,c as kn,N as An,O as En}from"./@vue-SIJfIzG2.js";function ke(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=Ye(t))||e){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(u){throw u},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
1
+ import{b as gn,i as Mt,m as vn,e as A,f as d,g as C,T as bn,j as $,r as Oe,k as yn,n as In,w as Cn,l as Sn,o as wn,p as f,q as g,t as I,u as q,v as O,F as _,x as U,y as Ge,z as N,A as M,B as Z,C as re,D as Pn,E as H,G as F,H as xn,I as qe,J as $n,K as Tn,L as On,M as jt,c as kn,N as An,O as En}from"./@vue-CfPxtCWx.js";function ke(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=Ye(t))||e){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(u){throw u},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,s=!1,l;return{s:function(){n=n.call(t)},n:function(){var u=n.next();return i=u.done,u},e:function(u){s=!0,l=u},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(s)throw l}}}}function Ln(t){return Bn(t)||Dn(t)||Ye(t)||_n()}function _n(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
3
3
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dn(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Bn(t){if(Array.isArray(t))return Me(t)}function te(t){"@babel/helpers - typeof";return te=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},te(t)}function Ae(t,e){return Fn(t)||jn(t,e)||Ye(t,e)||Mn()}function Mn(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
4
4
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ye(t,e){if(t){if(typeof t=="string")return Me(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Me(t,e)}}function Me(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function jn(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,s,l=[],a=!0,u=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(a=(r=i.call(n)).done)&&(l.push(r.value),l.length!==e);a=!0);}catch(c){u=!0,o=c}finally{try{if(!a&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return l}}function Fn(t){if(Array.isArray(t))return t}var h={innerWidth:function(e){if(e){var n=e.offsetWidth,r=getComputedStyle(e);return n+=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),n}return 0},width:function(e){if(e){var n=e.offsetWidth,r=getComputedStyle(e);return n-=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),n}return 0},getWindowScrollTop:function(){var e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)},getWindowScrollLeft:function(){var e=document.documentElement;return(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)},getOuterWidth:function(e,n){if(e){var r=e.offsetWidth;if(n){var o=getComputedStyle(e);r+=parseFloat(o.marginLeft)+parseFloat(o.marginRight)}return r}return 0},getOuterHeight:function(e,n){if(e){var r=e.offsetHeight;if(n){var o=getComputedStyle(e);r+=parseFloat(o.marginTop)+parseFloat(o.marginBottom)}return r}return 0},getClientHeight:function(e,n){if(e){var r=e.clientHeight;if(n){var o=getComputedStyle(e);r+=parseFloat(o.marginTop)+parseFloat(o.marginBottom)}return r}return 0},getViewport:function(){var e=window,n=document,r=n.documentElement,o=n.getElementsByTagName("body")[0],i=e.innerWidth||r.clientWidth||o.clientWidth,s=e.innerHeight||r.clientHeight||o.clientHeight;return{width:i,height:s}},getOffset:function(e){if(e){var n=e.getBoundingClientRect();return{top:n.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:n.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}return{top:"auto",left:"auto"}},index:function(e){if(e)for(var n,r=(n=this.getParentNode(e))===null||n===void 0?void 0:n.childNodes,o=0,i=0;i<r.length;i++){if(r[i]===e)return o;r[i].nodeType===1&&o++}return-1},addMultipleClasses:function(e,n){var r=this;e&&n&&[n].flat().filter(Boolean).forEach(function(o){return o.split(" ").forEach(function(i){return r.addClass(e,i)})})},removeMultipleClasses:function(e,n){var r=this;e&&n&&[n].flat().filter(Boolean).forEach(function(o){return o.split(" ").forEach(function(i){return r.removeClass(e,i)})})},addClass:function(e,n){e&&n&&!this.hasClass(e,n)&&(e.classList?e.classList.add(n):e.className+=" "+n)},removeClass:function(e,n){e&&n&&(e.classList?e.classList.remove(n):e.className=e.className.replace(new RegExp("(^|\\b)"+n.split(" ").join("|")+"(\\b|$)","gi")," "))},hasClass:function(e,n){return e?e.classList?e.classList.contains(n):new RegExp("(^| )"+n+"( |$)","gi").test(e.className):!1},addStyles:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};e&&Object.entries(n).forEach(function(r){var o=Ae(r,2),i=o[0],s=o[1];return e.style[i]=s})},find:function(e,n){return this.isElement(e)?e.querySelectorAll(n):[]},findSingle:function(e,n){return this.isElement(e)?e.querySelector(n):null},createElement:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(e){var r=document.createElement(e);this.setAttributes(r,n);for(var o=arguments.length,i=new Array(o>2?o-2:0),s=2;s<o;s++)i[s-2]=arguments[s];return r.append.apply(r,i),r}},setAttribute:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2?arguments[2]:void 0;this.isElement(e)&&r!==null&&r!==void 0&&e.setAttribute(n,r)},setAttributes:function(e){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.isElement(e)){var o=function i(s,l){var a,u,c=e!=null&&(a=e.$attrs)!==null&&a!==void 0&&a[s]?[e==null||(u=e.$attrs)===null||u===void 0?void 0:u[s]]:[];return[l].flat().reduce(function(p,m){if(m!=null){var v=te(m);if(v==="string"||v==="number")p.push(m);else if(v==="object"){var S=Array.isArray(m)?i(s,m):Object.entries(m).map(function(P){var y=Ae(P,2),w=y[0],E=y[1];return s==="style"&&(E||E===0)?"".concat(w.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),":").concat(E):E?w:void 0});p=S.length?p.concat(S.filter(function(P){return!!P})):p}}return p},c)};Object.entries(r).forEach(function(i){var s=Ae(i,2),l=s[0],a=s[1];if(a!=null){var u=l.match(/^on(.+)/);u?e.addEventListener(u[1].toLowerCase(),a):l==="p-bind"?n.setAttributes(e,a):(a=l==="class"?Ln(new Set(o("class",a))).join(" ").trim():l==="style"?o("style",a).join(";").trim():a,(e.$attrs=e.$attrs||{})&&(e.$attrs[l]=a),e.setAttribute(l,a))}})}},getAttribute:function(e,n){if(this.isElement(e)){var r=e.getAttribute(n);return isNaN(r)?r==="true"||r==="false"?r==="true":r:+r}},isAttributeEquals:function(e,n,r){return this.isElement(e)?this.getAttribute(e,n)===r:!1},isAttributeNotEquals:function(e,n,r){return!this.isAttributeEquals(e,n,r)},getHeight:function(e){if(e){var n=e.offsetHeight,r=getComputedStyle(e);return n-=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom)+parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth),n}return 0},getWidth:function(e){if(e){var n=e.offsetWidth,r=getComputedStyle(e);return n-=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight)+parseFloat(r.borderLeftWidth)+parseFloat(r.borderRightWidth),n}return 0},absolutePosition:function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e){var o=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),i=o.height,s=o.width,l=n.offsetHeight,a=n.offsetWidth,u=n.getBoundingClientRect(),c=this.getWindowScrollTop(),p=this.getWindowScrollLeft(),m=this.getViewport(),v,S,P="top";u.top+l+i>m.height?(v=u.top+c-i,P="bottom",v<0&&(v=c)):v=l+u.top+c,u.left+s>m.width?S=Math.max(0,u.left+p+a-s):S=u.left+p,e.style.top=v+"px",e.style.left=S+"px",e.style.transformOrigin=P,r&&(e.style.marginTop=P==="bottom"?"calc(var(--p-anchor-gutter) * -1)":"calc(var(--p-anchor-gutter))")}},relativePosition:function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e){var o=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),i=n.offsetHeight,s=n.getBoundingClientRect(),l=this.getViewport(),a,u,c="top";s.top+i+o.height>l.height?(a=-1*o.height,c="bottom",s.top+a<0&&(a=-1*s.top)):a=i,o.width>l.width?u=s.left*-1:s.left+o.width>l.width?u=(s.left+o.width-l.width)*-1:u=0,e.style.top=a+"px",e.style.left=u+"px",e.style.transformOrigin=c,r&&(e.style.marginTop=c==="bottom"?"calc(var(--p-anchor-gutter) * -1)":"calc(var(--p-anchor-gutter))")}},nestedPosition:function(e,n){if(e){var r=e.parentElement,o=this.getOffset(r),i=this.getViewport(),s=e.offsetParent?e.offsetWidth:this.getHiddenElementOuterWidth(e),l=this.getOuterWidth(r.children[0]),a;parseInt(o.left,10)+l+s>i.width-this.calculateScrollbarWidth()?parseInt(o.left,10)<s?n%2===1?a=parseInt(o.left,10)?"-"+parseInt(o.left,10)+"px":"100%":n%2===0&&(a=i.width-s-this.calculateScrollbarWidth()+"px"):a="-100%":a="100%",e.style.top="0px",e.style.left=a}},getParentNode:function(e){var n=e==null?void 0:e.parentNode;return n&&n instanceof ShadowRoot&&n.host&&(n=n.host),n},getParents:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=this.getParentNode(e);return r===null?n:this.getParents(r,n.concat([r]))},getScrollableParents:function(e){var n=[];if(e){var r=this.getParents(e),o=/(auto|scroll)/,i=function(y){try{var w=window.getComputedStyle(y,null);return o.test(w.getPropertyValue("overflow"))||o.test(w.getPropertyValue("overflowX"))||o.test(w.getPropertyValue("overflowY"))}catch{return!1}},s=ke(r),l;try{for(s.s();!(l=s.n()).done;){var a=l.value,u=a.nodeType===1&&a.dataset.scrollselectors;if(u){var c=u.split(","),p=ke(c),m;try{for(p.s();!(m=p.n()).done;){var v=m.value,S=this.findSingle(a,v);S&&i(S)&&n.push(S)}}catch(P){p.e(P)}finally{p.f()}}a.nodeType!==9&&i(a)&&n.push(a)}}catch(P){s.e(P)}finally{s.f()}}return n},getHiddenElementOuterHeight:function(e){if(e){e.style.visibility="hidden",e.style.display="block";var n=e.offsetHeight;return e.style.display="none",e.style.visibility="visible",n}return 0},getHiddenElementOuterWidth:function(e){if(e){e.style.visibility="hidden",e.style.display="block";var n=e.offsetWidth;return e.style.display="none",e.style.visibility="visible",n}return 0},getHiddenElementDimensions:function(e){if(e){var n={};return e.style.visibility="hidden",e.style.display="block",n.width=e.offsetWidth,n.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible",n}return 0},fadeIn:function(e,n){if(e){e.style.opacity=0;var r=+new Date,o=0,i=function s(){o=+e.style.opacity+(new Date().getTime()-r)/n,e.style.opacity=o,r=+new Date,+o<1&&(window.requestAnimationFrame&&requestAnimationFrame(s)||setTimeout(s,16))};i()}},fadeOut:function(e,n){if(e)var r=1,o=50,i=n,s=o/i,l=setInterval(function(){r-=s,r<=0&&(r=0,clearInterval(l)),e.style.opacity=r},o)},getUserAgent:function(){return navigator.userAgent},appendChild:function(e,n){if(this.isElement(n))n.appendChild(e);else if(n.el&&n.elElement)n.elElement.appendChild(e);else throw new Error("Cannot append "+n+" to "+e)},isElement:function(e){return(typeof HTMLElement>"u"?"undefined":te(HTMLElement))==="object"?e instanceof HTMLElement:e&&te(e)==="object"&&e!==null&&e.nodeType===1&&typeof e.nodeName=="string"},scrollInView:function(e,n){var r=getComputedStyle(e).getPropertyValue("borderTopWidth"),o=r?parseFloat(r):0,i=getComputedStyle(e).getPropertyValue("paddingTop"),s=i?parseFloat(i):0,l=e.getBoundingClientRect(),a=n.getBoundingClientRect(),u=a.top+document.body.scrollTop-(l.top+document.body.scrollTop)-o-s,c=e.scrollTop,p=e.clientHeight,m=this.getOuterHeight(n);u<0?e.scrollTop=c+u:u+m>p&&(e.scrollTop=c+u-p+m)},clearSelection:function(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch{}},getSelection:function(){return window.getSelection?window.getSelection().toString():document.getSelection?document.getSelection().toString():document.selection?document.selection.createRange().text:null},calculateScrollbarWidth:function(){if(this.calculatedScrollbarWidth!=null)return this.calculatedScrollbarWidth;var e=document.createElement("div");this.addStyles(e,{width:"100px",height:"100px",overflow:"scroll",position:"absolute",top:"-9999px"}),document.body.appendChild(e);var n=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),this.calculatedScrollbarWidth=n,n},calculateBodyScrollbarWidth:function(){return window.innerWidth-document.documentElement.offsetWidth},getBrowser:function(){if(!this.browser){var e=this.resolveUserAgent();this.browser={},e.browser&&(this.browser[e.browser]=!0,this.browser.version=e.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser},resolveUserAgent:function(){var e=navigator.userAgent.toLowerCase(),n=/(chrome)[ ]([\w.]+)/.exec(e)||/(webkit)[ ]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ ]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:n[1]||"",version:n[2]||"0"}},isVisible:function(e){return e&&e.offsetParent!=null},invokeElementMethod:function(e,n,r){e[n].apply(e,r)},isExist:function(e){return!!(e!==null&&typeof e<"u"&&e.nodeName&&this.getParentNode(e))},isClient:function(){return!!(typeof window<"u"&&window.document&&window.document.createElement)},focus:function(e,n){e&&document.activeElement!==e&&e.focus(n)},isFocusableElement:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return this.isElement(e)?e.matches('button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])'.concat(n,`,
@@ -94,4 +94,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
94
94
  width: `).concat(this.breakpoints[r],` !important;
95
95
  }
96
96
  }
97
- `);this.styleElement.innerHTML=n}},destroyStyle:function(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)},initDrag:function(e){e.target.closest("div").getAttribute("data-pc-section")!=="icons"&&this.draggable&&(this.dragging=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,this.container.style.margin="0",document.body.setAttribute("data-p-unselectable-text","true"),!this.isUnstyled&&h.addClass(document.body,"p-unselectable-text"))},bindGlobalListeners:function(){this.draggable&&(this.bindDocumentDragListener(),this.bindDocumentDragEndListener()),this.closeOnEscape&&this.closable&&this.bindDocumentKeyDownListener()},unbindGlobalListeners:function(){this.unbindDocumentDragListener(),this.unbindDocumentDragEndListener(),this.unbindDocumentKeyDownListener()},bindDocumentDragListener:function(){var e=this;this.documentDragListener=function(n){if(e.dragging){var r=h.getOuterWidth(e.container),o=h.getOuterHeight(e.container),i=n.pageX-e.lastPageX,s=n.pageY-e.lastPageY,l=e.container.getBoundingClientRect(),a=l.left+i,u=l.top+s,c=h.getViewport(),p=getComputedStyle(e.container),m=parseFloat(p.marginLeft),v=parseFloat(p.marginTop);e.container.style.position="fixed",e.keepInViewport?(a>=e.minX&&a+r<c.width&&(e.lastPageX=n.pageX,e.container.style.left=a-m+"px"),u>=e.minY&&u+o<c.height&&(e.lastPageY=n.pageY,e.container.style.top=u-v+"px")):(e.lastPageX=n.pageX,e.container.style.left=a-m+"px",e.lastPageY=n.pageY,e.container.style.top=u-v+"px")}},window.document.addEventListener("mousemove",this.documentDragListener)},unbindDocumentDragListener:function(){this.documentDragListener&&(window.document.removeEventListener("mousemove",this.documentDragListener),this.documentDragListener=null)},bindDocumentDragEndListener:function(){var e=this;this.documentDragEndListener=function(n){e.dragging&&(e.dragging=!1,document.body.removeAttribute("data-p-unselectable-text"),!e.isUnstyled&&h.removeClass(document.body,"p-unselectable-text"),e.$emit("dragend",n))},window.document.addEventListener("mouseup",this.documentDragEndListener)},unbindDocumentDragEndListener:function(){this.documentDragEndListener&&(window.document.removeEventListener("mouseup",this.documentDragEndListener),this.documentDragEndListener=null)}},computed:{maximizeIconComponent:function(){return this.maximized?this.minimizeIcon?"span":"WindowMinimizeIcon":this.maximizeIcon?"span":"WindowMaximizeIcon"},ariaLabelledById:function(){return this.header!=null||this.$attrs["aria-labelledby"]!==null?this.id+"_header":null},closeAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.close:void 0},attributeSelector:function(){return R()}},directives:{ripple:X,focustrap:Pa},components:{Portal:Je,WindowMinimizeIcon:sn,WindowMaximizeIcon:an,TimesIcon:Qe}};function Ce(t){"@babel/helpers - typeof";return Ce=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ce(t)}function Bt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function xe(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Bt(Object(n),!0).forEach(function(r){Xa(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Bt(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Xa(t,e,n){return e=Ja(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ja(t){var e=Qa(t,"string");return Ce(e)=="symbol"?e:String(e)}function Qa(t,e){if(Ce(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Ce(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var es=["aria-labelledby","aria-modal"],ts=["id"],ns=["autofocus","tabindex"],rs=["autofocus","aria-label"];function is(t,e,n,r,o,i){var s=M("Portal"),l=q("ripple"),a=q("focustrap");return d(),C(s,{appendTo:t.appendTo},{default:Z(function(){return[o.containerVisible?(d(),g("div",f({key:0,ref:i.maskRef,class:t.cx("mask"),style:t.sx("mask",!0,{position:t.position,modal:t.modal}),onClick:e[3]||(e[3]=function(){return i.onMaskClick&&i.onMaskClick.apply(i,arguments)})},t.ptm("mask")),[re(An,f({name:"p-dialog",onBeforeEnter:i.onBeforeEnter,onEnter:i.onEnter,onBeforeLeave:i.onBeforeLeave,onLeave:i.onLeave,onAfterLeave:i.onAfterLeave,appear:""},t.ptm("transition")),{default:Z(function(){return[t.visible?N((d(),g("div",f({key:0,ref:i.containerRef,class:t.cx("root"),style:t.sx("root"),role:"dialog","aria-labelledby":i.ariaLabelledById,"aria-modal":t.modal},t.ptmi("root")),[t.$slots.container?A(t.$slots,"container",{key:0,onClose:i.close,onMaximize:function(c){return i.maximize(c)},closeCallback:i.close,maximizeCallback:function(c){return i.maximize(c)}}):(d(),g(_,{key:1},[t.showHeader?(d(),g("div",f({key:0,ref:i.headerContainerRef,class:t.cx("header"),onMousedown:e[2]||(e[2]=function(){return i.initDrag&&i.initDrag.apply(i,arguments)})},t.ptm("header")),[A(t.$slots,"header",{class:F(t.cx("title"))},function(){return[t.header?(d(),g("span",f({key:0,id:i.ariaLabelledById,class:t.cx("title")},t.ptm("title")),U(t.header),17,ts)):$("",!0)]}),I("div",f({class:t.cx("icons")},t.ptm("icons")),[t.maximizable?N((d(),g("button",f({key:0,ref:i.maximizableRef,autofocus:o.focusableMax,class:t.cx("maximizableButton"),onClick:e[0]||(e[0]=function(){return i.maximize&&i.maximize.apply(i,arguments)}),type:"button",tabindex:t.maximizable?"0":"-1"},t.ptm("maximizableButton"),{"data-pc-group-section":"headericon"}),[A(t.$slots,"maximizeicon",{maximized:o.maximized,class:F(t.cx("maximizableIcon"))},function(){return[(d(),C(O(i.maximizeIconComponent),f({class:[t.cx("maximizableIcon"),o.maximized?t.minimizeIcon:t.maximizeIcon]},t.ptm("maximizableIcon")),null,16,["class"]))]})],16,ns)),[[l]]):$("",!0),t.closable?N((d(),g("button",f({key:1,ref:i.closeButtonRef,autofocus:o.focusableClose,class:t.cx("closeButton"),onClick:e[1]||(e[1]=function(){return i.close&&i.close.apply(i,arguments)}),"aria-label":i.closeAriaLabel,type:"button"},xe(xe({},t.closeButtonProps),t.ptm("closeButton")),{"data-pc-group-section":"headericon"}),[A(t.$slots,"closeicon",{class:F(t.cx("closeButtonIcon"))},function(){return[(d(),C(O(t.closeIcon?"span":"TimesIcon"),f({class:[t.cx("closeButtonIcon"),t.closeIcon]},t.ptm("closeButtonIcon")),null,16,["class"]))]})],16,rs)),[[l]]):$("",!0)],16)],16)):$("",!0),I("div",f({ref:i.contentRef,class:[t.cx("content"),t.contentClass],style:t.contentStyle},xe(xe({},t.contentProps),t.ptm("content"))),[A(t.$slots,"default")],16),t.footer||t.$slots.footer?(d(),g("div",f({key:1,ref:i.footerContainerRef,class:t.cx("footer")},t.ptm("footer")),[A(t.$slots,"footer",{},function(){return[qe(U(t.footer),1)]})],16)):$("",!0)],64))],16,es)),[[a,{disabled:!t.modal}]]):$("",!0)]}),_:3},16,["onBeforeEnter","onEnter","onBeforeLeave","onLeave","onAfterLeave"])],16)):$("",!0)]}),_:3},8,["appendTo"])}ln.render=is;var os={root:function(e){var n=e.instance,r=e.props;return["p-inputtext p-component",{"p-filled":n.filled,"p-inputtext-sm":r.size==="small","p-inputtext-lg":r.size==="large","p-invalid":r.invalid,"p-variant-filled":r.variant?r.variant==="filled":n.$primevue.config.inputStyle==="filled"}]}},as=L.extend({name:"inputtext",classes:os}),ss={name:"BaseInputText",extends:D,props:{modelValue:null,size:{type:String,default:null},invalid:{type:Boolean,default:!1},variant:{type:String,default:null}},style:as,provide:function(){return{$parentInstance:this}}},ls={name:"InputText",extends:ss,inheritAttrs:!1,emits:["update:modelValue"],methods:{getPTOptions:function(e){var n=e==="root"?this.ptmi:this.ptm;return n(e,{context:{filled:this.filled,disabled:this.$attrs.disabled||this.$attrs.disabled===""}})},onInput:function(e){this.$emit("update:modelValue",e.target.value)}},computed:{filled:function(){return this.modelValue!=null&&this.modelValue.toString().length>0}}},us=["value","aria-invalid"];function cs(t,e,n,r,o,i){return d(),g("input",f({class:t.cx("root"),value:t.modelValue,"aria-invalid":t.invalid||void 0,onInput:e[0]||(e[0]=function(){return i.onInput&&i.onInput.apply(i,arguments)})},i.getPTOptions("root")),null,16,us)}ls.render=cs;var ds={root:function(e){var n=e.instance,r=e.props;return["p-radiobutton p-component",{"p-highlight":n.checked,"p-disabled":r.disabled,"p-invalid":r.invalid,"p-variant-filled":r.variant?r.variant==="filled":n.$primevue.config.inputStyle==="filled"}]},box:"p-radiobutton-box",input:"p-radiobutton-input",icon:"p-radiobutton-icon"},fs=L.extend({name:"radiobutton",classes:ds}),ps={name:"BaseRadioButton",extends:D,props:{value:null,modelValue:null,binary:Boolean,name:{type:String,default:null},variant:{type:String,default:null},invalid:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},tabindex:{type:Number,default:null},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:fs,provide:function(){return{$parentInstance:this}}},ms={name:"RadioButton",extends:ps,inheritAttrs:!1,emits:["update:modelValue","change","focus","blur"],methods:{getPTOptions:function(e){var n=e==="root"?this.ptmi:this.ptm;return n(e,{context:{checked:this.checked,disabled:this.disabled}})},onChange:function(e){if(!this.disabled&&!this.readonly){var n=this.binary?!this.checked:this.value;this.$emit("update:modelValue",n),this.$emit("change",e)}},onFocus:function(e){this.$emit("focus",e)},onBlur:function(e){this.$emit("blur",e)}},computed:{checked:function(){return this.modelValue!=null&&(this.binary?!!this.modelValue:b.equals(this.modelValue,this.value))}}},hs=["data-p-highlight","data-p-disabled"],gs=["id","value","name","checked","tabindex","disabled","readonly","aria-labelledby","aria-label","aria-invalid"];function vs(t,e,n,r,o,i){return d(),g("div",f({class:t.cx("root")},i.getPTOptions("root"),{"data-p-highlight":i.checked,"data-p-disabled":t.disabled}),[I("input",f({id:t.inputId,type:"radio",class:[t.cx("input"),t.inputClass],style:t.inputStyle,value:t.value,name:t.name,checked:i.checked,tabindex:t.tabindex,disabled:t.disabled,readonly:t.readonly,"aria-labelledby":t.ariaLabelledby,"aria-label":t.ariaLabel,"aria-invalid":t.invalid||void 0,onFocus:e[0]||(e[0]=function(){return i.onFocus&&i.onFocus.apply(i,arguments)}),onBlur:e[1]||(e[1]=function(){return i.onBlur&&i.onBlur.apply(i,arguments)}),onChange:e[2]||(e[2]=function(){return i.onChange&&i.onChange.apply(i,arguments)})},i.getPTOptions("input")),null,16,gs),I("div",f({class:t.cx("box")},i.getPTOptions("box")),[I("div",f({class:t.cx("icon")},i.getPTOptions("icon")),null,16)],16)],16,hs)}ms.render=vs;var bs={root:function(e){var n=e.instance,r=e.props;return["p-inputtextarea p-inputtext p-component",{"p-filled":n.filled,"p-inputtextarea-resizable ":r.autoResize,"p-invalid":r.invalid,"p-variant-filled":r.variant?r.variant==="filled":n.$primevue.config.inputStyle==="filled"}]}},ys=L.extend({name:"textarea",classes:bs}),Is={name:"BaseTextarea",extends:D,props:{modelValue:null,autoResize:Boolean,invalid:{type:Boolean,default:!1},variant:{type:String,default:null}},style:ys,provide:function(){return{$parentInstance:this}}},Cs={name:"Textarea",extends:Is,inheritAttrs:!1,emits:["update:modelValue"],mounted:function(){this.$el.offsetParent&&this.autoResize&&this.resize()},updated:function(){this.$el.offsetParent&&this.autoResize&&this.resize()},methods:{resize:function(){this.$el.style.height="auto",this.$el.style.height=this.$el.scrollHeight+"px",parseFloat(this.$el.style.height)>=parseFloat(this.$el.style.maxHeight)?(this.$el.style.overflowY="scroll",this.$el.style.height=this.$el.style.maxHeight):this.$el.style.overflow="hidden"},onInput:function(e){this.autoResize&&this.resize(),this.$emit("update:modelValue",e.target.value)}},computed:{filled:function(){return this.modelValue!=null&&this.modelValue.toString().length>0},ptmParams:function(){return{context:{disabled:this.$attrs.disabled||this.$attrs.disabled===""}}}}},Ss=["value","aria-invalid"];function ws(t,e,n,r,o,i){return d(),g("textarea",f({class:t.cx("root"),value:t.modelValue,"aria-invalid":t.invalid||void 0,onInput:e[0]||(e[0]=function(){return i.onInput&&i.onInput.apply(i,arguments)})},t.ptmi("root",i.ptmParams)),null,16,Ss)}Cs.render=ws;var Ps={},xs={name:"BaseDynamicDialog",extends:D,props:{},style:Ps,provide:function(){return{$parentInstance:this}}},$s={name:"DynamicDialog",extends:xs,inheritAttrs:!1,data:function(){return{instanceMap:{}}},openListener:null,closeListener:null,currentInstance:null,mounted:function(){var e=this;this.openListener=function(n){var r=n.instance,o=R()+"_dynamic_dialog";r.visible=!0,r.key=o,e.instanceMap[o]=r},this.closeListener=function(n){var r=n.instance,o=n.params,i=r.key,s=e.instanceMap[i];s&&(s.visible=!1,s.options.onClose&&s.options.onClose({data:o,type:"config-close"}),e.currentInstance=s)},Y.on("open",this.openListener),Y.on("close",this.closeListener)},beforeUnmount:function(){Y.off("open",this.openListener),Y.off("close",this.closeListener)},methods:{onDialogHide:function(e){!this.currentInstance&&e.options.onClose&&e.options.onClose({type:"dialog-close"})},onDialogAfterHide:function(){this.currentInstance&&delete this.currentInstance,this.currentInstance=null},getTemplateItems:function(e){return Array.isArray(e)?e:[e]}},components:{DDialog:ln}};function Ts(t,e,n,r,o,i){var s=M("DDialog");return d(!0),g(_,null,H(o.instanceMap,function(l,a){return d(),C(s,f({key:a,visible:l.visible,"onUpdate:visible":function(c){return l.visible=c},_instance:l},l.options.props,{onHide:function(c){return i.onDialogHide(l)},onAfterHide:i.onDialogAfterHide}),En({default:Z(function(){return[(d(),C(O(l.content),Ge(jt(l.options.emits)),null,16))]}),_:2},[l.options.templates&&l.options.templates.header?{name:"header",fn:Z(function(){return[(d(!0),g(_,null,H(i.getTemplateItems(l.options.templates.header),function(u,c){return d(),C(O(u),f({key:c+"_header"},l.options.emits),null,16)}),128))]}),key:"0"}:void 0,l.options.templates&&l.options.templates.footer?{name:"footer",fn:Z(function(){return[(d(!0),g(_,null,H(i.getTemplateItems(l.options.templates.footer),function(u,c){return d(),C(O(u),f({key:c+"_footer"},l.options.emits),null,16)}),128))]}),key:"1"}:void 0]),1040,["visible","onUpdate:visible","_instance","onHide","onAfterHide"])}),128)}$s.render=Ts;export{_s as D,ks as P,Es as T,Do as a,Wo as b,pa as c,Ti as d,ls as e,Ba as f,ln as g,ms as h,Cs as i,Ls as j,$s as k,Po as s,As as u};
97
+ `);this.styleElement.innerHTML=n}},destroyStyle:function(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)},initDrag:function(e){e.target.closest("div").getAttribute("data-pc-section")!=="icons"&&this.draggable&&(this.dragging=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,this.container.style.margin="0",document.body.setAttribute("data-p-unselectable-text","true"),!this.isUnstyled&&h.addClass(document.body,"p-unselectable-text"))},bindGlobalListeners:function(){this.draggable&&(this.bindDocumentDragListener(),this.bindDocumentDragEndListener()),this.closeOnEscape&&this.closable&&this.bindDocumentKeyDownListener()},unbindGlobalListeners:function(){this.unbindDocumentDragListener(),this.unbindDocumentDragEndListener(),this.unbindDocumentKeyDownListener()},bindDocumentDragListener:function(){var e=this;this.documentDragListener=function(n){if(e.dragging){var r=h.getOuterWidth(e.container),o=h.getOuterHeight(e.container),i=n.pageX-e.lastPageX,s=n.pageY-e.lastPageY,l=e.container.getBoundingClientRect(),a=l.left+i,u=l.top+s,c=h.getViewport(),p=getComputedStyle(e.container),m=parseFloat(p.marginLeft),v=parseFloat(p.marginTop);e.container.style.position="fixed",e.keepInViewport?(a>=e.minX&&a+r<c.width&&(e.lastPageX=n.pageX,e.container.style.left=a-m+"px"),u>=e.minY&&u+o<c.height&&(e.lastPageY=n.pageY,e.container.style.top=u-v+"px")):(e.lastPageX=n.pageX,e.container.style.left=a-m+"px",e.lastPageY=n.pageY,e.container.style.top=u-v+"px")}},window.document.addEventListener("mousemove",this.documentDragListener)},unbindDocumentDragListener:function(){this.documentDragListener&&(window.document.removeEventListener("mousemove",this.documentDragListener),this.documentDragListener=null)},bindDocumentDragEndListener:function(){var e=this;this.documentDragEndListener=function(n){e.dragging&&(e.dragging=!1,document.body.removeAttribute("data-p-unselectable-text"),!e.isUnstyled&&h.removeClass(document.body,"p-unselectable-text"),e.$emit("dragend",n))},window.document.addEventListener("mouseup",this.documentDragEndListener)},unbindDocumentDragEndListener:function(){this.documentDragEndListener&&(window.document.removeEventListener("mouseup",this.documentDragEndListener),this.documentDragEndListener=null)}},computed:{maximizeIconComponent:function(){return this.maximized?this.minimizeIcon?"span":"WindowMinimizeIcon":this.maximizeIcon?"span":"WindowMaximizeIcon"},ariaLabelledById:function(){return this.header!=null||this.$attrs["aria-labelledby"]!==null?this.id+"_header":null},closeAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.close:void 0},attributeSelector:function(){return R()}},directives:{ripple:X,focustrap:Pa},components:{Portal:Je,WindowMinimizeIcon:sn,WindowMaximizeIcon:an,TimesIcon:Qe}};function Ce(t){"@babel/helpers - typeof";return Ce=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ce(t)}function Bt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function xe(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Bt(Object(n),!0).forEach(function(r){Xa(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Bt(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Xa(t,e,n){return e=Ja(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ja(t){var e=Qa(t,"string");return Ce(e)=="symbol"?e:String(e)}function Qa(t,e){if(Ce(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Ce(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var es=["aria-labelledby","aria-modal"],ts=["id"],ns=["autofocus","tabindex"],rs=["autofocus","aria-label"];function is(t,e,n,r,o,i){var s=M("Portal"),l=q("ripple"),a=q("focustrap");return d(),C(s,{appendTo:t.appendTo},{default:Z(function(){return[o.containerVisible?(d(),g("div",f({key:0,ref:i.maskRef,class:t.cx("mask"),style:t.sx("mask",!0,{position:t.position,modal:t.modal}),onClick:e[3]||(e[3]=function(){return i.onMaskClick&&i.onMaskClick.apply(i,arguments)})},t.ptm("mask")),[re(An,f({name:"p-dialog",onBeforeEnter:i.onBeforeEnter,onEnter:i.onEnter,onBeforeLeave:i.onBeforeLeave,onLeave:i.onLeave,onAfterLeave:i.onAfterLeave,appear:""},t.ptm("transition")),{default:Z(function(){return[t.visible?N((d(),g("div",f({key:0,ref:i.containerRef,class:t.cx("root"),style:t.sx("root"),role:"dialog","aria-labelledby":i.ariaLabelledById,"aria-modal":t.modal},t.ptmi("root")),[t.$slots.container?A(t.$slots,"container",{key:0,onClose:i.close,onMaximize:function(c){return i.maximize(c)},closeCallback:i.close,maximizeCallback:function(c){return i.maximize(c)}}):(d(),g(_,{key:1},[t.showHeader?(d(),g("div",f({key:0,ref:i.headerContainerRef,class:t.cx("header"),onMousedown:e[2]||(e[2]=function(){return i.initDrag&&i.initDrag.apply(i,arguments)})},t.ptm("header")),[A(t.$slots,"header",{class:F(t.cx("title"))},function(){return[t.header?(d(),g("span",f({key:0,id:i.ariaLabelledById,class:t.cx("title")},t.ptm("title")),U(t.header),17,ts)):$("",!0)]}),I("div",f({class:t.cx("icons")},t.ptm("icons")),[t.maximizable?N((d(),g("button",f({key:0,ref:i.maximizableRef,autofocus:o.focusableMax,class:t.cx("maximizableButton"),onClick:e[0]||(e[0]=function(){return i.maximize&&i.maximize.apply(i,arguments)}),type:"button",tabindex:t.maximizable?"0":"-1"},t.ptm("maximizableButton"),{"data-pc-group-section":"headericon"}),[A(t.$slots,"maximizeicon",{maximized:o.maximized,class:F(t.cx("maximizableIcon"))},function(){return[(d(),C(O(i.maximizeIconComponent),f({class:[t.cx("maximizableIcon"),o.maximized?t.minimizeIcon:t.maximizeIcon]},t.ptm("maximizableIcon")),null,16,["class"]))]})],16,ns)),[[l]]):$("",!0),t.closable?N((d(),g("button",f({key:1,ref:i.closeButtonRef,autofocus:o.focusableClose,class:t.cx("closeButton"),onClick:e[1]||(e[1]=function(){return i.close&&i.close.apply(i,arguments)}),"aria-label":i.closeAriaLabel,type:"button"},xe(xe({},t.closeButtonProps),t.ptm("closeButton")),{"data-pc-group-section":"headericon"}),[A(t.$slots,"closeicon",{class:F(t.cx("closeButtonIcon"))},function(){return[(d(),C(O(t.closeIcon?"span":"TimesIcon"),f({class:[t.cx("closeButtonIcon"),t.closeIcon]},t.ptm("closeButtonIcon")),null,16,["class"]))]})],16,rs)),[[l]]):$("",!0)],16)],16)):$("",!0),I("div",f({ref:i.contentRef,class:[t.cx("content"),t.contentClass],style:t.contentStyle},xe(xe({},t.contentProps),t.ptm("content"))),[A(t.$slots,"default")],16),t.footer||t.$slots.footer?(d(),g("div",f({key:1,ref:i.footerContainerRef,class:t.cx("footer")},t.ptm("footer")),[A(t.$slots,"footer",{},function(){return[qe(U(t.footer),1)]})],16)):$("",!0)],64))],16,es)),[[a,{disabled:!t.modal}]]):$("",!0)]}),_:3},16,["onBeforeEnter","onEnter","onBeforeLeave","onLeave","onAfterLeave"])],16)):$("",!0)]}),_:3},8,["appendTo"])}ln.render=is;var os={root:function(e){var n=e.instance,r=e.props;return["p-inputtext p-component",{"p-filled":n.filled,"p-inputtext-sm":r.size==="small","p-inputtext-lg":r.size==="large","p-invalid":r.invalid,"p-variant-filled":r.variant?r.variant==="filled":n.$primevue.config.inputStyle==="filled"}]}},as=L.extend({name:"inputtext",classes:os}),ss={name:"BaseInputText",extends:D,props:{modelValue:null,size:{type:String,default:null},invalid:{type:Boolean,default:!1},variant:{type:String,default:null}},style:as,provide:function(){return{$parentInstance:this}}},ls={name:"InputText",extends:ss,inheritAttrs:!1,emits:["update:modelValue"],methods:{getPTOptions:function(e){var n=e==="root"?this.ptmi:this.ptm;return n(e,{context:{filled:this.filled,disabled:this.$attrs.disabled||this.$attrs.disabled===""}})},onInput:function(e){this.$emit("update:modelValue",e.target.value)}},computed:{filled:function(){return this.modelValue!=null&&this.modelValue.toString().length>0}}},us=["value","aria-invalid"];function cs(t,e,n,r,o,i){return d(),g("input",f({class:t.cx("root"),value:t.modelValue,"aria-invalid":t.invalid||void 0,onInput:e[0]||(e[0]=function(){return i.onInput&&i.onInput.apply(i,arguments)})},i.getPTOptions("root")),null,16,us)}ls.render=cs;var ds={root:function(e){var n=e.instance,r=e.props;return["p-radiobutton p-component",{"p-highlight":n.checked,"p-disabled":r.disabled,"p-invalid":r.invalid,"p-variant-filled":r.variant?r.variant==="filled":n.$primevue.config.inputStyle==="filled"}]},box:"p-radiobutton-box",input:"p-radiobutton-input",icon:"p-radiobutton-icon"},fs=L.extend({name:"radiobutton",classes:ds}),ps={name:"BaseRadioButton",extends:D,props:{value:null,modelValue:null,binary:Boolean,name:{type:String,default:null},variant:{type:String,default:null},invalid:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},tabindex:{type:Number,default:null},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:fs,provide:function(){return{$parentInstance:this}}},ms={name:"RadioButton",extends:ps,inheritAttrs:!1,emits:["update:modelValue","change","focus","blur"],methods:{getPTOptions:function(e){var n=e==="root"?this.ptmi:this.ptm;return n(e,{context:{checked:this.checked,disabled:this.disabled}})},onChange:function(e){if(!this.disabled&&!this.readonly){var n=this.binary?!this.checked:this.value;this.$emit("update:modelValue",n),this.$emit("change",e)}},onFocus:function(e){this.$emit("focus",e)},onBlur:function(e){this.$emit("blur",e)}},computed:{checked:function(){return this.modelValue!=null&&(this.binary?!!this.modelValue:b.equals(this.modelValue,this.value))}}},hs=["data-p-highlight","data-p-disabled"],gs=["id","value","name","checked","tabindex","disabled","readonly","aria-labelledby","aria-label","aria-invalid"];function vs(t,e,n,r,o,i){return d(),g("div",f({class:t.cx("root")},i.getPTOptions("root"),{"data-p-highlight":i.checked,"data-p-disabled":t.disabled}),[I("input",f({id:t.inputId,type:"radio",class:[t.cx("input"),t.inputClass],style:t.inputStyle,value:t.value,name:t.name,checked:i.checked,tabindex:t.tabindex,disabled:t.disabled,readonly:t.readonly,"aria-labelledby":t.ariaLabelledby,"aria-label":t.ariaLabel,"aria-invalid":t.invalid||void 0,onFocus:e[0]||(e[0]=function(){return i.onFocus&&i.onFocus.apply(i,arguments)}),onBlur:e[1]||(e[1]=function(){return i.onBlur&&i.onBlur.apply(i,arguments)}),onChange:e[2]||(e[2]=function(){return i.onChange&&i.onChange.apply(i,arguments)})},i.getPTOptions("input")),null,16,gs),I("div",f({class:t.cx("box")},i.getPTOptions("box")),[I("div",f({class:t.cx("icon")},i.getPTOptions("icon")),null,16)],16)],16,hs)}ms.render=vs;var bs={},ys={name:"BaseDynamicDialog",extends:D,props:{},style:bs,provide:function(){return{$parentInstance:this}}},Is={name:"DynamicDialog",extends:ys,inheritAttrs:!1,data:function(){return{instanceMap:{}}},openListener:null,closeListener:null,currentInstance:null,mounted:function(){var e=this;this.openListener=function(n){var r=n.instance,o=R()+"_dynamic_dialog";r.visible=!0,r.key=o,e.instanceMap[o]=r},this.closeListener=function(n){var r=n.instance,o=n.params,i=r.key,s=e.instanceMap[i];s&&(s.visible=!1,s.options.onClose&&s.options.onClose({data:o,type:"config-close"}),e.currentInstance=s)},Y.on("open",this.openListener),Y.on("close",this.closeListener)},beforeUnmount:function(){Y.off("open",this.openListener),Y.off("close",this.closeListener)},methods:{onDialogHide:function(e){!this.currentInstance&&e.options.onClose&&e.options.onClose({type:"dialog-close"})},onDialogAfterHide:function(){this.currentInstance&&delete this.currentInstance,this.currentInstance=null},getTemplateItems:function(e){return Array.isArray(e)?e:[e]}},components:{DDialog:ln}};function Cs(t,e,n,r,o,i){var s=M("DDialog");return d(!0),g(_,null,H(o.instanceMap,function(l,a){return d(),C(s,f({key:a,visible:l.visible,"onUpdate:visible":function(c){return l.visible=c},_instance:l},l.options.props,{onHide:function(c){return i.onDialogHide(l)},onAfterHide:i.onDialogAfterHide}),En({default:Z(function(){return[(d(),C(O(l.content),Ge(jt(l.options.emits)),null,16))]}),_:2},[l.options.templates&&l.options.templates.header?{name:"header",fn:Z(function(){return[(d(!0),g(_,null,H(i.getTemplateItems(l.options.templates.header),function(u,c){return d(),C(O(u),f({key:c+"_header"},l.options.emits),null,16)}),128))]}),key:"0"}:void 0,l.options.templates&&l.options.templates.footer?{name:"footer",fn:Z(function(){return[(d(!0),g(_,null,H(i.getTemplateItems(l.options.templates.footer),function(u,c){return d(),C(O(u),f({key:c+"_footer"},l.options.emits),null,16)}),128))]}),key:"1"}:void 0]),1040,["visible","onUpdate:visible","_instance","onHide","onAfterHide"])}),128)}Is.render=Cs;var Ss={root:function(e){var n=e.instance,r=e.props;return["p-inputtextarea p-inputtext p-component",{"p-filled":n.filled,"p-inputtextarea-resizable ":r.autoResize,"p-invalid":r.invalid,"p-variant-filled":r.variant?r.variant==="filled":n.$primevue.config.inputStyle==="filled"}]}},ws=L.extend({name:"textarea",classes:Ss}),Ps={name:"BaseTextarea",extends:D,props:{modelValue:null,autoResize:Boolean,invalid:{type:Boolean,default:!1},variant:{type:String,default:null}},style:ws,provide:function(){return{$parentInstance:this}}},xs={name:"Textarea",extends:Ps,inheritAttrs:!1,emits:["update:modelValue"],mounted:function(){this.$el.offsetParent&&this.autoResize&&this.resize()},updated:function(){this.$el.offsetParent&&this.autoResize&&this.resize()},methods:{resize:function(){this.$el.style.height="auto",this.$el.style.height=this.$el.scrollHeight+"px",parseFloat(this.$el.style.height)>=parseFloat(this.$el.style.maxHeight)?(this.$el.style.overflowY="scroll",this.$el.style.height=this.$el.style.maxHeight):this.$el.style.overflow="hidden"},onInput:function(e){this.autoResize&&this.resize(),this.$emit("update:modelValue",e.target.value)}},computed:{filled:function(){return this.modelValue!=null&&this.modelValue.toString().length>0},ptmParams:function(){return{context:{disabled:this.$attrs.disabled||this.$attrs.disabled===""}}}}},$s=["value","aria-invalid"];function Ts(t,e,n,r,o,i){return d(),g("textarea",f({class:t.cx("root"),value:t.modelValue,"aria-invalid":t.invalid||void 0,onInput:e[0]||(e[0]=function(){return i.onInput&&i.onInput.apply(i,arguments)})},t.ptmi("root",i.ptmParams)),null,16,$s)}xs.render=Ts;export{_s as D,ks as P,Es as T,Do as a,Wo as b,pa as c,Ti as d,ls as e,Ba as f,ln as g,ms as h,xs as i,Ls as j,Is as k,Po as s,As as u};
package/dist/index.html CHANGED
@@ -5,17 +5,17 @@
5
5
  <link rel="icon" href="/favicon.ico">
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
7
  <title>Vite App</title>
8
- <script type="module" crossorigin src="/assets/index-CArqcSXB.js"></script>
9
- <link rel="modulepreload" crossorigin href="/assets/@vue-SIJfIzG2.js">
10
- <link rel="modulepreload" crossorigin href="/assets/primevue-Wg_Hf6FJ.js">
8
+ <script type="module" crossorigin src="/assets/index-BVrBQNen.js"></script>
9
+ <link rel="modulepreload" crossorigin href="/assets/@vue-CfPxtCWx.js">
10
+ <link rel="modulepreload" crossorigin href="/assets/primevue-CEz28wR_.js">
11
11
  <link rel="modulepreload" crossorigin href="/assets/@lezer-6dgAjmMZ.js">
12
12
  <link rel="modulepreload" crossorigin href="/assets/crelt-C8TCjufn.js">
13
13
  <link rel="modulepreload" crossorigin href="/assets/style-mod-Bc2inJdb.js">
14
14
  <link rel="modulepreload" crossorigin href="/assets/w3c-keyname-Vcq4gwWv.js">
15
- <link rel="modulepreload" crossorigin href="/assets/codemirror-CPly2f-x.js">
15
+ <link rel="modulepreload" crossorigin href="/assets/codemirror-DYWAmcfC.js">
16
16
  <link rel="modulepreload" crossorigin href="/assets/blockly-C3KDyeBl.js">
17
17
  <link rel="stylesheet" crossorigin href="/assets/primevue-VvdNDlPa.css">
18
- <link rel="stylesheet" crossorigin href="/assets/index-im34rCmI.css">
18
+ <link rel="stylesheet" crossorigin href="/assets/index-3G9hObXW.css">
19
19
  <link rel="stylesheet" crossorigin href="/assets/primeicons-B7yeMe2z.css">
20
20
  </head>
21
21
  <body>
@@ -6,3 +6,5 @@ export let plugins = [];
6
6
  // export let plugins = [
7
7
  // nodemcu
8
8
  // ];
9
+
10
+ console.log("here");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@johnnycubides/catalejo-vue3-desktop-v2",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "repository": {
@@ -1,18 +0,0 @@
1
- /* empty css */import{s as _e,a as He,b as Ke,u as ke,c as je,d as ve,e as te,f as R,g as oe,h as xe,i as we,j as Xe,k as qe,P as Qe,T as Ge,D as ze}from"./primevue-Wg_Hf6FJ.js";import{d as V,r as s,w as k,g as fe,P as f,f as D,o as M,q as O,t as m,x as L,C as v,B as H,F as ne,E as le,e as Je,n as Ye,i as Ze,z as Y,K as Z,I as et,Q as tt,R as ot,S as nt}from"./@vue-SIJfIzG2.js";import{p as De,S as lt,l as at,s as st}from"./codemirror-CPly2f-x.js";import{b as T,E as it,a as rt,B as ct,l as ut,p as dt}from"./blockly-C3KDyeBl.js";import"./@lezer-6dgAjmMZ.js";import"./crelt-C8TCjufn.js";import"./style-mod-Bc2inJdb.js";import"./w3c-keyname-Vcq4gwWv.js";(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))n(l);new MutationObserver(l=>{for(const a of l)if(a.type==="childList")for(const r of a.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&n(r)}).observe(document,{childList:!0,subtree:!0});function t(l){const a={};return l.integrity&&(a.integrity=l.integrity),l.referrerPolicy&&(a.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?a.credentials="include":l.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(l){if(l.ep)return;l.ep=!0;const a=t(l);fetch(l.href,a)}})();function pt(e){return e=="py"?De():e=="lua"?lt.define(at):De()}const ae="py lua json ck",Ce="py lua ck",Ie="json",vt={py:"Python",lua:"Lua",ck:"Chuck",json:"JSON",txt:"Text plain"};var i=(e=>(e[e.OK=0]="OK",e[e.FAILED=1]="FAILED",e[e.CHANGE=2]="CHANGE",e[e.WITHOUTCHANGE=3]="WITHOUTCHANGE",e[e.REQUEST=4]="REQUEST",e[e.REQUEST_SELECT_FILE_IN_TABVIEW=5]="REQUEST_SELECT_FILE_IN_TABVIEW",e[e.EXISTS=6]="EXISTS",e[e.NOEXIST=7]="NOEXIST",e[e.FOUND=8]="FOUND",e[e.NOTFOUND=9]="NOTFOUND",e[e.ADDED=10]="ADDED",e[e.SAVED=11]="SAVED",e[e.UNSAVED=12]="UNSAVED",e[e.SET_WS=13]="SET_WS",e[e.ENABLED=14]="ENABLED",e[e.DESABLED=15]="DESABLED",e))(i||{}),pe=(e=>(e[e.TOAST=0]="TOAST",e[e.TEXT_PRINT=1]="TEXT_PRINT",e))(pe||{}),w=(e=>(e[e.WELCOME=0]="WELCOME",e[e.CODEMIRROR=1]="CODEMIRROR",e[e.BLOCKLY=2]="BLOCKLY",e[e.FREE=3]="FREE",e))(w||{}),$=(e=>(e[e.EN=0]="EN",e[e.ES=1]="ES",e))($||{});const ft=V({__name:"TextEditor",props:["projects","index","update","activate","workspace"],emits:["content-cursor-index"],setup(e,{emit:o}){const t=e,n=o,l=s(""),a=s(),r=s();return k(()=>[t.index,t.update],async()=>{t.projects.length>0&&t.workspace==w.CODEMIRROR&&(r.value.setCursor(0),a.value=pt(t.projects[t.index].extension),l.value=t.projects[t.index].content)}),k(l,u=>{n("content-cursor-index",u,r.value.getCursor(),t.index)}),(u,b)=>(D(),fe(f(st),{ref_key:"cm",ref:r,modelValue:l.value,"onUpdate:modelValue":b[0]||(b[0]=d=>l.value=d),basic:"","tab-size":2,dark:!1,gutter:!0,tab:!0,lang:a.value},null,8,["modelValue","lang"]))}}),Ne=String(navigator.userAgent);function mt(e){if(Ne.indexOf("Linux")!==-1){const o=e.split("/").pop(),t=e.includes(".")?e.split(".").pop():"";return{path:e,filename:o||"",extension:t||""}}else{const o=e.split("\\").pop(),t=e.includes(".")?e.split(".").pop():"";return{path:e,filename:o||"",extension:t||""}}}function gt(e){return ae.includes(e)?"pi pi-file-edit":""}function Et(e){let o=[];for(let t=0;t<e.length;t++){const n=mt(e[t]);o.push({key:String(t),label:n.filename,leaf:!0,icon:n.extension!=""?gt(n.extension):"",data:n.path,extension:n.extension})}return o}function bt(e){if(Ne.indexOf("Linux")!==-1){const o=e.split("/").pop();return(e.includes(".")?e.split(".").pop():"")!=""?{status:i.FAILED}:{status:i.OK,data:{path:e,dirname:o||"noname"}}}else{const o=e.split("\\").pop();return(e.includes(".")?e.split(".").pop():"")!=""?{status:i.FAILED}:{status:i.OK,data:{path:e,dirname:o||"noname"}}}}function yt(e){let o=[];for(let t=0;t<e.length;t++){const n=bt(e[t]);n.status==i.OK&&o.push({key:String(t),label:n.data.dirname,leaf:!0,icon:"pi pi-folder",data:n.data.path})}return o}const Pe={dirTitle:{en:"Directories:",es:"Directorios:"},fileTitle:{en:"Files:",es:"Archivos:"}},ee={menu:{en:"",es:""},save:{en:"Save",es:"Guardar"},close:{en:"Close",es:"cerrar"},config:{en:"Config",es:"Configurar"}},j={save:{en:"Save",es:"Guardar"},close:{en:"Close",es:"cerrar"},file:{en:"File",es:"Archivo"},opendir:{en:"Open dir",es:"Abrir directorio"},selectDirPath:{header:{en:"Put dir path.",es:"Poner ruta de directorio"}},newProject:{en:"New project",es:"Nuevo proyecto"},dialogNewProject:{header:{en:"New project",es:"Nuevo proyecto"},labelInput:{en:"1. Insert a file name for project, the extension file will created atomatically.",es:"1. Agregar un nombre de archivo para el proyecto, la extensión será creada automáticamente."},labelDirPath:{en:"The project file will created in the path: ",es:"El proyecto será creado en el path: "},labelSelectPlatform:{en:"2. Select a platform compatible with editor: ",es:"2. Seleccionar una plataforma compatible con el editor: "},labelSelectProjectType:{en:"3. Select project type to create.",es:"3. Selecciona el tipo de proyecto a crear."}},dialogButton:{ok:{en:"Ok",es:"Ok"},close:{en:"Close",es:"Cerrar"}}},A={savefile:{ok:{en:"File save",es:"Archivo guardado"},error:{en:"Don't save file",es:"No se guardó el archivo"}},titleConfigProjectDialog:{en:"Config project",es:"Configuar proyecto"},dialogButton:{ok:{en:"Ok",es:"Ok"},close:{en:"Close",es:"Cerrar"}},toastProccess:{en:"In process",es:"En proceso"}},ht={scrollableTabsDefault:{en:"Projects loaded in workspace",es:"Proyectos cargados en el área de trabajo"}};function h(e,o){return o==$.EN?e.en:o==$.ES?e.es:"noname"}const _t={class:"card flex justify-content-center"},xt={for:"mask",class:"font-bold block mb-2"},Dt={for:"mask",class:"font-bold block mb-2"},Pt=V({__name:"TreeView",props:["dirPaths","dirPathsLength","filePaths","lang"],emits:["dir-path-selected","file-selected"],setup(e,{emit:o}){const t=e,n=o,l=s(),a=s(),r=s(""),u=s("");M(()=>{r.value=h(Pe.dirTitle,t.lang),u.value=h(Pe.fileTitle,t.lang)});const b=c=>{console.log(c.data),n("dir-path-selected",c.data)},d=c=>{console.log(c.data),n("file-selected",c.data)};return k(()=>t.dirPathsLength,()=>{a.value=yt(t.dirPaths)}),k(()=>t.filePaths,async c=>{l.value=Et(c)}),(c,P)=>(D(),O("div",_t,[m("label",xt,L(r.value),1),v(f(_e),{value:a.value,selectionMode:"single",onNodeSelect:b,class:"w-full md:w-30rem"},null,8,["value"]),m("label",Dt,L(u.value),1),v(f(_e),{value:l.value,selectionMode:"single",onNodeSelect:d,class:"w-full md:w-30rem"},null,8,["value"])]))}}),G=(e,o)=>{const t=e.__vccOpts||e;for(const[n,l]of o)t[n]=l;return t},Ot=G(Pt,[["__scopeId","data-v-7d510def"]]);function kt(e){let o=[];for(let t=0;t<e.length;t++)o.push({title:e[t].filename,indexOfProject:t});return o}const jt={id:"divTabview",class:"card"},wt=V({__name:"TabViewEditor",props:["index","update","projects","contentchanges","lang"],emits:["index-of-project-to-load"],setup(e,{emit:o}){const t=o,n=e,l=s([]),a=s(0),r=b=>n.projects.length>0?kt(n.projects):[{title:h(ht.scrollableTabsDefault,b),indexOfProject:-1}];k(()=>[n.index,n.update],([b])=>{l.value=r(n.lang),n.projects.length>0?a.value=b:a.value=0}),k(()=>n.lang,b=>{l.value=r(b)}),M(()=>{l.value=r(n.lang)});const u=b=>{t("index-of-project-to-load",b.index)};return(b,d)=>(D(),O("div",jt,[v(f(He),{scrollable:!0,onTabClick:u,activeIndex:a.value,"onUpdate:activeIndex":d[0]||(d[0]=c=>a.value=c)},{default:H(()=>[(D(!0),O(ne,null,le(l.value,c=>(D(),fe(f(Ke),{key:c.title,header:c.title},null,8,["header"]))),128))]),_:1},8,["activeIndex"])]))}}),Ct=G(wt,[["__scopeId","data-v-8ef45e55"]]),me="http://"+location.hostname,ge="8080",Ee="cors";async function It(e){const t=me+":"+ge+"/"+"fs/dirconfig",n={method:"PUT",mode:Ee,headers:{"Content-Type":"application/json"},body:JSON.stringify({workdir:e})};try{const a=await(await fetch(t,n)).json();return a.status==i.OK?a:{status:i.FAILED}}catch(l){return console.error(l),{status:i.FAILED}}}async function Nt(e){const t=me+":"+ge+"/"+"fs/readFile",n={method:"PUT",mode:Ee,headers:{"Content-Type":"application/json"},body:JSON.stringify({file:e})};try{const a=await(await fetch(t,n)).json();if(a.status==i.OK)return a}catch(l){return console.error(l),{status:-1}}}async function Lt(e,o){const n=me+":"+ge+"/"+"fs/writeFile",l={method:"PUT",mode:Ee,headers:{"Content-Type":"application/json"},body:JSON.stringify({file:e,content:o})};try{const r=await(await fetch(n,l)).json();return r.status==i.OK?r:{status:i.FAILED}}catch(a){return console.error(a),{status:i.FAILED}}}const Tt={class:"card"},Ft={class:"flex align-items-center"},St=["for"],Bt={class:"flex align-items-center"},Vt=["for"],Rt=V({__name:"MenubarCommon",props:{lang:{},workDirPath:{},plugins:{}},emits:["dirconfig-update","save-project-request","dir-path-selected","new-project-request"],setup(e,{emit:o}){ke(),s("Soltar aquí el directorio de trabajo");const t=e,n=s(!1),l=s(""),a=s(""),r=s(!1),u=s(""),b=s(""),d=s(""),c=s(""),P=s(""),N=s(""),C=s(""),F=s(""),I=s(""),S=o,B=s([]),K=p=>{B.value=[{label:h(j.file,p),icon:"pi pi-file",items:[{label:h(j.newProject,p),icon:"pi pi-file-plus",command:()=>{d.value="",U(t.lang),r.value=!0}},{label:h(j.opendir,p),icon:"pi pi-folder-open",command:()=>{a.value="",n.value=!0}},{label:h(j.save,p),icon:"pi pi-save",command:()=>{S("save-project-request")}}]}]},X=()=>{n.value=!1,S("dir-path-selected",a.value)};k(d,p=>{p.split(".").pop()&&p.split(".").pop()});const z=p=>{l.value=h(j.selectDirPath.header,p)},U=p=>{u.value=h(j.dialogNewProject.header,p),b.value=h(j.dialogNewProject.labelInput,p)+" (."+ae.replace(/ /g,", .")+"):",c.value=h(j.dialogNewProject.labelDirPath,p)+'"'+t.workDirPath+'".',P.value=h(j.dialogNewProject.labelSelectPlatform,p),N.value=h(j.dialogNewProject.labelSelectProjectType,p)},ie=p=>{C.value=h(j.dialogButton.ok,p),F.value=h(j.dialogButton.close,p)},J=p=>{z(p),U(p),ie(p)},re=()=>{let p="",y="";q.value=="Blockly"?(p=t.plugins[I.value].blockly_template,y=".json"):(p=t.plugins[I.value].lang_template,y="."+t.plugins[I.value].lang);const _=t.workDirPath+"/"+d.value+y;S("new-project-request",_,p),r.value=!1};k(()=>t.lang,p=>{J(p),K(p)});const W=s([]),q=s("");return k(I,()=>{W.value=[];const p=t.plugins[I.value].lang,y=vt[p];W.value.push(y),t.plugins[I.value].blockly_template!=null&&W.value.push("Blockly")}),M(()=>{J(t.lang),K(t.lang)}),(p,y)=>(D(),O("div",Tt,[v(f(je),{model:B.value},null,8,["model"]),v(f(ve)),v(f(oe),{visible:n.value,"onUpdate:visible":y[2]||(y[2]=_=>n.value=_),modal:"",header:l.value,style:{width:"25rem"}},{default:H(()=>[m("div",null,[v(f(te),{type:"text",modelValue:a.value,"onUpdate:modelValue":y[0]||(y[0]=_=>a.value=_)},null,8,["modelValue"])]),m("div",null,[v(f(R),{type:"button",label:F.value,severity:"secondary",onClick:y[1]||(y[1]=_=>n.value=!1)},null,8,["label"]),v(f(R),{type:"button",label:C.value,onClick:X},null,8,["label"])])]),_:1},8,["visible","header"]),v(f(oe),{visible:r.value,"onUpdate:visible":y[7]||(y[7]=_=>r.value=_),modal:"",header:u.value,style:{width:"35rem"}},{default:H(()=>[m("div",null,[m("p",null,L(b.value),1),v(f(te),{type:"text",modelValue:d.value,"onUpdate:modelValue":y[3]||(y[3]=_=>d.value=_)},null,8,["modelValue"]),m("p",null,L(c.value),1),m("p",null,L(P.value),1)]),(D(!0),O(ne,null,le(t.plugins,_=>(D(),O("div",Ft,[v(f(xe),{modelValue:I.value,"onUpdate:modelValue":y[4]||(y[4]=Q=>I.value=Q),inputId:_.platform,name:"dynamic",value:_.platform},null,8,["modelValue","inputId","value"]),m("label",{for:_.platform,class:"ml-2"},L(_.platform),9,St)]))),256)),m("div",null,[m("p",null,L(N.value),1)]),(D(!0),O(ne,null,le(W.value,_=>(D(),O("div",Bt,[v(f(xe),{modelValue:q.value,"onUpdate:modelValue":y[5]||(y[5]=Q=>q.value=Q),inputId:_,name:"dynamic",value:_},null,8,["modelValue","inputId","value"]),m("label",{for:_,class:"ml-2"},L(_),9,Vt)]))),256)),m("div",null,[v(f(R),{type:"button",label:F.value,severity:"secondary",onClick:y[6]||(y[6]=_=>r.value=!1)},null,8,["label"]),v(f(R),{type:"button",label:C.value,onClick:re},null,8,["label"])])]),_:1},8,["visible","header"])]))}}),$t=G(Rt,[["__scopeId","data-v-dad5592a"]]);function Le(e,o){for(let t=0;t<e.length;t++)if(e[t]==o)return{status:i.FOUND,data:t};return{status:i.NOTFOUND}}const Mt=`
2
-
3
- <xml id="toolbox" style="display: none">
4
- <category name="Lógica" colour="%{BKY_LOGIC_HUE}">
5
- <block type="controls_if"></block>
6
- </category>
7
- <category name="Secuencias" colour="%{BKY_LOOPS_HUE}">
8
- <block type="controls_repeat_ext">
9
- <value name="TIMES">
10
- <shadow type="math_number">
11
- <field name="NUM">10</field>
12
- </shadow>
13
- </value>
14
- </block>
15
- </category>
16
- </xml>`,Ut={media:"media/",renderer:"geras",toolboxPosition:"start",horizontalLayout:!1,zoom:{controls:!0,wheel:!0,startScale:1,maxScale:3,minScale:.3,scaleSpeed:1.2,pinch:!0},trashcan:!0,grid:{spacing:25,length:1,colour:"#ccc",snap:!0},toolbox:Mt};function Wt(e){return T.inject(e.value,Ut)}function At(e,o){const t=T.utils.xml.textToDom(e);try{return T.Xml.clearWorkspaceAndLoadFromXml(t,o),{status:i.OK}}catch{return{status:i.FAILED}}}function Ht(e){e==$.ES?T.setLocale(it):T.setLocale(rt)}function Kt(e){return e.lang=="lua"?ut.luaGenerator:e.lang=="python"?dt.pythonGenerator:void 0}let Oe=[];function Xt(e,o){Le(Oe,e.platform).status==i.NOTFOUND&&(e.initBlockly(ct,Kt(e),o),Oe.push(e.platform))}const qt={class:"div_blockly"},Qt=V({__name:"BlocklyEditor",props:["projects","index","update","workspace","plugin"],emits:["xmltext-index","blockly-mounted"],setup(e,{emit:o}){const t=e,n=o,l=s(),a=s();let r;const u=[T.Events.SELECTED],b=d=>{for(const c in u)if(d.type===u[c]){const P=T.Xml.workspaceToDom(r),N=T.Xml.domToPrettyText(P);n("xmltext-index",N,t.index)}};return M(async()=>{r=Wt(l),Ht(0),r.addChangeListener(b),n("blockly-mounted")}),k(()=>[t.index,t.update],async([d])=>{if(t.projects.length>0&&t.workspace==w.BLOCKLY){await Ye();const c=t.projects[d].config.platform;c!=null&&c!=""&&(Xt(t.plugin,r),r.updateToolbox(t.plugin.toolbox)),At(t.projects[d].blocklycode,r),T.svgResize(r),r.scrollCenter()}}),(d,c)=>(D(),O("div",qt,[m("div",{class:"blocklyDivClass",id:"blocklyDiv",ref_key:"blocklyDivRef",ref:l},null,512),m("xml",{style:{display:"none"},ref_key:"blocklyToolbox",ref:a},[Je(d.$slots,"default",{},void 0,!0)],512)]))}}),Gt=G(Qt,[["__scopeId","data-v-c029079e"]]),zt={class:"card"},Jt=V({__name:"ToolBar",props:["lang","plugin"],emits:["menu-toggle","save-project-request","close-project","config-project","plugin-command"],setup(e,{emit:o}){const t=e,n=o,l=s([]),a=s($.EN),r=[{label:h(ee.menu,t.lang),icon:"pi pi-arrow-right-arrow-left",command:()=>{n("menu-toggle")}},{label:h(ee.save,t.lang),icon:"pi pi-save",command:()=>{n("save-project-request")}},{label:h(ee.close,t.lang),icon:"pi pi-times",command:()=>{n("close-project")}},{label:h(ee.config,t.lang),icon:"pi pi-cog",command:()=>{n("config-project")}}];function u(d){for(let c=0;c<d.length;c++)if(Array.isArray(d[c].items))u(d[c].items);else{const P=d[c].command;d[c].command=function(){n("plugin-command",P)}}return d}const b=d=>{if(d!=null){let c=d.getItemsToolBarOfPlugin(t.lang);c!=null&&c.length>0?(c=u(c),l.value=[...r,...c]):l.value=r}else l.value=r};return k(()=>t.plugin,d=>{b(d)}),k(()=>t.lang,()=>{a.value=t.lang}),M(()=>{l.value=r}),(d,c)=>(D(),O("div",zt,[v(f(je),{model:l.value},null,8,["model"]),v(f(ve))]))}}),Yt=V({__name:"Textprint",setup(e){const o=Ze("dialogRef");let t;const n=s("");return M(()=>{t=o.value.data,n.value=t.textprint}),(l,a)=>(D(),fe(f(we),{modelValue:n.value,"onUpdate:modelValue":a[0]||(a[0]=r=>n.value=r),autoResize:"",rows:"25",cols:"80"},null,8,["modelValue"]))}}),Zt=String(navigator.userAgent);function Te(e,o){for(let t=0;t<e.length;t++)if(e[t].path===o)return{status:i.EXISTS,data:t};return{status:i.NOEXIST}}async function eo(e,o){const t=Fe(o);if(t.extension=="")return{status:i.WITHOUTCHANGE};if(!ae.includes(t.extension))return{status:i.WITHOUTCHANGE};const n=Te(e,t.path);if(n.status==i.EXISTS)return{status:i.REQUEST_SELECT_FILE_IN_TABVIEW,data:n.data};{const l=await Nt(t.path);if(l.status==0){const a=t.extension=="json"?JSON.parse(l.data):{},r=be(l.data,t.extension),u={path:t.path,filename:t.filename,extension:t.extension,content:l.data,blocklycode:a.blocklycode||void 0,codemirrorCursor:0,config:r,status:i.ADDED};return e.push(u),{status:i.REQUEST_SELECT_FILE_IN_TABVIEW,data:e.length-1}}else return{status:i.WITHOUTCHANGE}}}async function to(e,o,t){const n=Fe(o);if(n.extension=="")return{status:i.WITHOUTCHANGE};if(!ae.includes(n.extension))return{status:i.WITHOUTCHANGE};const l=Te(e,n.path);if(l.status==i.EXISTS)return{status:i.REQUEST_SELECT_FILE_IN_TABVIEW,data:l.data};if(t!=""){const a=n.extension=="json"?JSON.parse(t):{},r=be(t,n.extension),u={path:n.path,filename:n.filename,extension:n.extension,content:t,blocklycode:a.blocklycode||void 0,codemirrorCursor:0,config:r,status:i.ADDED};return e.push(u),{status:i.REQUEST_SELECT_FILE_IN_TABVIEW,data:e.length-1}}else return{status:i.WITHOUTCHANGE}}function oo(e,o){return e!==void 0&&e.length>o?(e.splice(o,1),{status:i.OK}):{status:i.FAILED}}function no(e,o,t,n){return e[n].content=o,e[n].codemirrorCursor=t,e[n].status=i.UNSAVED,{status:i.OK}}function lo(e,o,t){return e[t].blocklycode=o,e[t].status=i.UNSAVED,{status:i.OK}}function ao(e){return Ie.includes(e.extension)?{status:i.SET_WS,data:w.BLOCKLY}:Ce.includes(e.extension)?{status:i.SET_WS,data:w.CODEMIRROR}:{status:i.SET_WS,data:w.WELCOME}}function so(e,o){const t=e[o];if(t.extension=="json"&&t.blocklycode!==void 0){const n={config:t.config||"",blocklycode:t.blocklycode};e[o].content=JSON.stringify(n)}return{status:i.OK}}function io(e,o,t){const n=e[o];let l;if(Ie.includes(n.extension)&&t!=null)l=t;else if(Ce.includes(n.extension))l=be(n.content,n.extension);else return{status:i.FAILED};return e[o].config=l,{status:i.OK}}function be(e,o){return o=="lua"?co(e):o=="py"?ro(e):o=="json"?uo(e):{}}function ro(e){const o={},t=e.split(`
17
- `);for(const n of t){const l=n.match(/# (\w+): (.+)/);if(l){const[,a,r]=l;o[a]=String(r)}}return o}function co(e){const o={},t=e.split(`
18
- `);for(const n of t){const l=n.match(/-- (\w+): (.+)/);if(l){const[,a,r]=l;o[a]=String(r)}}return o}function uo(e){const o=JSON.parse(e).config;return o===void 0?{}:o}function po(e){let o=[];return e.config!=null&&(Object.keys(e.config).forEach(t=>{o.push({label:[t],value:e.config[t]})}),o.push({label:"",value:""})),o}function vo(e){let o={};for(let t=0;t<e.length;t++){const n=e[t].label;if(n!=""&&n!=null){const l=e[t].value;o[n]=l}}return o}function Fe(e){if(Zt.indexOf("Linux")!==-1){const o=e.split("/").pop(),t=e.includes(".")?e.split(".").pop():"";return{path:e,filename:o||"",extension:t||""}}else{const o=e.split("\\").pop(),t=e.includes(".")?e.split(".").pop():"";return{path:e,filename:o||"",extension:t||""}}}async function fo(e){return await It(e)}async function mo(e,o){return so(e,o),io(e,o),await Lt(e[o].path,e[o].content)}function go(e,o){if(o.length>0)for(let t=0;t<o.length;t++)e[o[t].platform]=o[t]}let Eo=[];const ye=e=>(tt("data-v-5af6ff52"),e=e(),ot(),e),bo={style:{height:"100%"}},yo={class:"main_div"},ho=ye(()=>m("p",null,"Catalejo",-1)),_o={id:"tree_and_commands",class:"tree_and_commands"},xo={id:"treeview",class:"treeview"},Do={id:"editor",class:"editor"},Po={id:"toolbar",class:"toolbar"},Oo={id:"tabView",class:"tabview"},ko={id:"blocklyEditor",class:"blocklyeditorclass"},jo={id:"textEditor",class:"texteditorclass"},wo=ye(()=>m("span",null,": ",-1)),Co=ye(()=>m("div",{id:"log"},null,-1)),Io=V({__name:"App",setup(e){const o=s([]),t=s([]),n=s(""),l=s(0),a=s([]),r=s(),u=s(),b=s(!1),d=s(!1),c=s($.EN),P=s(w.BLOCKLY),N=s({}),C=s();c.value=$.ES;const F=ke(),I=Xe(),S=s(!0),B=s(!1),K=s(""),X=s([{label:"",value:""}]),z=s(""),U=s(""),ie=g=>{o.value=g},J=async g=>{const E=await eo(a.value,g||"");E.status==i.REQUEST_SELECT_FILE_IN_TABVIEW&&(u.value=E.data)},re=g=>{u.value=g},W=(g,E,x)=>{d.value=!d.value,no(a.value,g,E,x)},q=(g,E)=>{d.value=!d.value,lo(a.value,g,E)},p=async(g,E)=>{const x=await to(a.value,g,E);x.status==i.REQUEST_SELECT_FILE_IN_TABVIEW&&(u.value=x.data)},y=async()=>{(await mo(a.value,u.value||0)).status==i.OK?F.add({severity:"success",summary:h(A.savefile.ok,c.value),detail:"",life:3e3}):F.add({severity:"error",summary:h(A.savefile.error,c.value),detail:"",life:3e3})},_=()=>{a.value.length>0&&(oo(a.value,u.value||0),a.value.length>0&&u.value!=null?u.value<a.value.length?b.value=!b.value:u.value=u.value-1:(P.value=w.WELCOME,u.value=-1))},Q=()=>{K.value=h(A.titleConfigProjectDialog,c.value),z.value=h(A.dialogButton.ok,c.value),U.value=h(A.dialogButton.close,c.value),u.value!=null&&(X.value=po(a.value[u.value])),B.value=!0},Se=()=>{P.value=w.WELCOME},ce=async g=>{const E=await fo(g);E.status==i.OK&&(Le(t.value,g).status==i.NOTFOUND&&t.value.push(g),o.value=E.data,n.value=g,l.value=t.value.length)},ue=s(!1),Be=s(""),Ve=s(),Re=async g=>{if(F.add({severity:"info",summary:h(A.toastProccess,c.value),detail:"",life:1500}),C.value!=null){const E=await C.value.commandEmit(r.value,g);switch(E.typeResult){case pe.TOAST:F.add(E.data);break;case pe.TEXT_PRINT:I.open(Yt,{data:{textprint:E.data.content}});break}}},he=g=>{},$e=()=>{S.value=!S.value},Me=()=>{B.value=!1,u.value!=null&&(a.value[u.value].config=vo(X.value))},Ue=()=>{if(a.value.length>0&&u.value!==void 0){const g=ao(a.value[u.value]);g.status==i.SET_WS&&(P.value=g.data)}},We=()=>{if(a.value.length>0&&u.value!==void 0){const g=a.value[u.value].config.platform;g!=null&&g!=""?C.value=N.value[g]:C.value=void 0}},Ae=()=>{u.value!=null&&(r.value=a.value[u.value])};return k(u,()=>{Ue(),We(),Ae()}),M(async()=>{ce("/home/johnny/projects/catalejo-lua/work"),go(N.value,Eo)}),(g,E)=>(D(),O("main",bo,[m("div",yo,[Y(m("div",{id:"menu_collapse",class:"menu_collapse",onMouseover:E[0]||(E[0]=x=>he()),onMouseout:E[1]||(E[1]=x=>he())},[ho,Y(m("div",_o,[m("div",null,[v($t,{plugins:N.value,lang:c.value,workDirPath:n.value,onDirconfigUpdate:ie,onSaveProjectRequest:y,onNewProjectRequest:p,onDirPathSelected:ce},null,8,["plugins","lang","workDirPath"])]),m("div",xo,[v(Ot,{filePaths:o.value,dirPaths:t.value,dirPathsLength:l.value,lang:c.value,onFileSelected:J,onDirPathSelected:ce},null,8,["filePaths","dirPaths","dirPathsLength","lang"])])],512),[[Z,S.value]])],544),[[Z,S.value]]),m("div",Do,[m("div",Po,[v(Jt,{lang:c.value,plugin:C.value,onMenuToggle:$e,onSaveProjectRequest:y,onCloseProject:_,onConfigProject:Q,onPluginCommand:Re},null,8,["lang","plugin"])]),m("div",Oo,[v(Ct,{index:u.value,projects:a.value,contentchanges:d.value,lang:c.value,update:b.value,onIndexOfProjectToLoad:re},null,8,["index","projects","contentchanges","lang","update"])]),Y(m("div",ko,[v(Gt,{projects:a.value,index:u.value,workspace:P.value,plugin:C.value,update:b.value,onXmltextIndex:q,onBlocklyMounted:Se},null,8,["projects","index","workspace","plugin","update"])],512),[[Z,P.value==f(w).BLOCKLY]]),Y(m("div",jo,[v(ft,{projects:a.value,index:u.value,workspace:P.value,update:b.value,onContentCursorIndex:W},null,8,["projects","index","workspace","update"])],512),[[Z,P.value==f(w).CODEMIRROR]])]),v(f(oe),{visible:B.value,"onUpdate:visible":E[3]||(E[3]=x=>B.value=x),modal:"",header:K.value,style:{width:"32rem"}},{default:H(()=>[m("div",null,[(D(!0),O(ne,null,le(X.value,x=>(D(),O("div",null,[v(f(te),{type:"text",size:"small",modelValue:x.label,"onUpdate:modelValue":de=>x.label=de},null,8,["modelValue","onUpdate:modelValue"]),wo,v(f(te),{type:"text",size:"small",modelValue:x.value,"onUpdate:modelValue":de=>x.value=de},null,8,["modelValue","onUpdate:modelValue"])]))),256)),v(f(R),{type:"button",label:U.value,severity:"secondary",onClick:E[2]||(E[2]=x=>B.value=!1)},null,8,["label"]),v(f(R),{type:"button",label:z.value,onClick:Me},null,8,["label"])])]),_:1},8,["visible","header"]),v(f(ve)),v(f(oe),{visible:ue.value,"onUpdate:visible":E[5]||(E[5]=x=>ue.value=x),modal:"",header:Be.value},{default:H(()=>[v(f(we),{autoResize:"",rows:"30",cols:"80"},{default:H(()=>[et(L(Ve.value),1)]),_:1}),m("div",null,[v(f(R),{type:"button",label:U.value,severity:"secondary",onClick:E[4]||(E[4]=x=>ue.value=!1)},null,8,["label"])])]),_:1},8,["visible","header"]),v(f(qe))]),Co]))}}),No=G(Io,[["__scopeId","data-v-5af6ff52"]]),se=nt(No);se.use(Qe);se.use(Ge);se.use(ze);se.mount("#app");
@@ -1 +0,0 @@
1
- .main_div{display:flex;padding:0;margin:0;height:100%}.menu_collapse{width:200px;flex:0 0 auto;margin:0;padding:0}.tree_and_commands{width:100%;margin:0;padding:0}.editor{flex:1 0 0 auto;display:flex;flex-direction:column;align-items:stretch;overflow:auto;width:100%}.tabview{max-height:content;overflow-y:auto;width:100%;height:55px}.toolbar{height:55px}.blocklyeditorclass{flex:1;height:100%;max-width:100%;overflow-x:auto;overflow-y:auto}.texteditorclass{flex:1;max-width:100%;overflow-x:auto;overflow-y:auto}[data-v-7d510def] .p-tree{padding:0}.card[data-v-8ef45e55]{background:var(--surface-card);padding:0;border-radius:10px;margin-bottom:0}[data-v-8ef45e55] .p-tabview .p-tabview-panels{padding:0;background:gray}[data-v-8ef45e55] .p-tabview .p-tabview-nav{padding:3px}.card[data-v-dad5592a]{background:var(--surface-card);padding:0rem;border-radius:10px;margin-bottom:0rem}.blocklyWorkspace:hover .blocklyTreeLabel[data-v-c029079e]{display:none}.blocklyToolboxContents[data-v-c029079e]{flex-wrap:inherit}.blocklyToolboxDiv[data-v-c029079e]{background-color:#63a1d2}.blocklyToolboxDiv[data-v-c029079e]:hover{width:auto}.div_blockly[data-v-c029079e]{width:100%;height:100%}.blocklyDivClass[data-v-c029079e]{height:100%;width:100%;text-align:left;position:relative}.blocklyTreeLabel[data-v-c029079e]{display:block-inline;color:#fff}.blocklySvg[data-v-c029079e]{width:100%;height:100%}.blocklyAreaClass[data-v-c029079e]{height:100%}.main_div[data-v-5af6ff52]{display:flex;padding:0;margin:0;height:100%}.menu_collapse[data-v-5af6ff52]{width:200px;flex:0 0 auto;margin:0;padding:0}.tree_and_commands[data-v-5af6ff52]{width:100%;margin:0;padding:0}.editor[data-v-5af6ff52]{flex:1 0 0 auto;display:flex;flex-direction:column;align-items:stretch;overflow:auto;width:100%}.tabview[data-v-5af6ff52]{max-height:content;overflow-y:auto;width:100%;height:55px}.toolbar[data-v-5af6ff52]{height:55px}.blocklyeditorclass[data-v-5af6ff52]{flex:1;height:100%;max-width:100%;overflow-x:auto;overflow-y:auto}.texteditorclass[data-v-5af6ff52]{flex:1;max-width:100%;overflow-x:auto;overflow-y:auto}