diff --git a/.gitignore b/.gitignore index 298dd1d..802c345 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ node_modules/ vendor/ composer.lock -package-lock.json \ No newline at end of file +package-lock.json +dist/ \ No newline at end of file diff --git a/KIToolbox.php b/KIToolbox.php index a412424..0af6802 100644 --- a/KIToolbox.php +++ b/KIToolbox.php @@ -2,17 +2,30 @@ require_once __DIR__ . '/vendor/autoload.php'; -class KIToolbox extends StudIPPlugin implements StandardPlugin +class KIToolbox extends StudIPPlugin implements StandardPlugin, SystemPlugin { public function __construct() { parent::__construct(); + $perm = $GLOBALS['perm']; + if ($perm->have_perm('root')) { + $item = new Navigation($this->_('KI-Toolbox konfigurieren'), PluginEngine::getLink($this, array(), 'admin')); + if (Navigation::hasItem('/admin/config') && !Navigation::hasItem('/admin/config/kitoolbox')) { + Navigation::addItem('/admin/config/kitoolbox', $item); + } + } + PageLayout::addScript($this->getPluginUrl() . '/dist/kitoolbox.js', [ 'type' => 'module', 'rel' => 'preload', ]); + PageLayout::addScript($this->getPluginUrl() . '/dist/kitoolbox-admin.js', [ + 'type' => 'module', + 'rel' => 'preload', + ]); + PageLayout::addStylesheet($this->getPluginUrl() . '/dist/kitoolbox.css'); } diff --git a/app/controllers/admin.php b/app/controllers/admin.php new file mode 100644 index 0000000..a0c673c --- /dev/null +++ b/app/controllers/admin.php @@ -0,0 +1,16 @@ + + \ No newline at end of file diff --git a/dist/kitoolbox.js b/dist/kitoolbox.js index 326a8ad..01cb999 100644 --- a/dist/kitoolbox.js +++ b/dist/kitoolbox.js @@ -1,21 +1 @@ -/** -* @vue/shared v3.4.31 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**//*! #__NO_SIDE_EFFECTS__ */function _n(e,t){const n=new Set(e.split(","));return r=>n.has(r)}const K={},Be=[],ie=()=>{},Fs=()=>!1,Nt=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),mn=e=>e.startsWith("onUpdate:"),J=Object.assign,vn=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Ls=Object.prototype.hasOwnProperty,L=(e,t)=>Ls.call(e,t),P=Array.isArray,ke=e=>$t(e)==="[object Map]",Ns=e=>$t(e)==="[object Set]",R=e=>typeof e=="function",Y=e=>typeof e=="string",ze=e=>typeof e=="symbol",z=e=>e!==null&&typeof e=="object",Mr=e=>(z(e)||R(e))&&R(e.then)&&R(e.catch),$s=Object.prototype.toString,$t=e=>$s.call(e),js=e=>$t(e).slice(8,-1),Hs=e=>$t(e)==="[object Object]",bn=e=>Y(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,et=_n(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),jt=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Us=/-(\w)/g,We=jt(e=>e.replace(Us,(t,n)=>n?n.toUpperCase():"")),Ds=/\B([A-Z])/g,qe=jt(e=>e.replace(Ds,"-$1").toLowerCase()),Fr=jt(e=>e.charAt(0).toUpperCase()+e.slice(1)),Jt=jt(e=>e?`on${Fr(e)}`:""),Se=(e,t)=>!Object.is(e,t),Yt=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Vs=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let zn;const Nr=()=>zn||(zn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function xn(e){if(P(e)){const t={};for(let n=0;n{if(n){const r=n.split(Ks);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function yn(e){let t="";if(Y(e))t=e;else if(P(e))for(let n=0;n=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),Re()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Ie,n=Ue;try{return Ie=!0,Ue=this,this._runnings++,qn(this),this.fn()}finally{Jn(this),this._runnings--,Ue=n,Ie=t}}stop(){this.active&&(qn(this),Jn(this),this.onStop&&this.onStop(),this.active=!1)}}function Zs(e){return e.value}function qn(e){e._trackId++,e._depsLength=0}function Jn(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t{const n=new Map;return n.cleanup=e,n.computed=t,n},sn=new WeakMap,De=Symbol(""),ln=Symbol("");function ne(e,t,n){if(Ie&&Ue){let r=sn.get(e);r||sn.set(e,r=new Map);let s=r.get(n);s||r.set(n,s=Br(()=>r.delete(n))),Dr(Ue,s)}}function we(e,t,n,r,s,i){const l=sn.get(e);if(!l)return;let c=[];if(t==="clear")c=[...l.values()];else if(n==="length"&&P(e)){const f=Number(r);l.forEach((a,d)=>{(d==="length"||!ze(d)&&d>=f)&&c.push(a)})}else switch(n!==void 0&&c.push(l.get(n)),t){case"add":P(e)?bn(n)&&c.push(l.get("length")):(c.push(l.get(De)),ke(e)&&c.push(l.get(ln)));break;case"delete":P(e)||(c.push(l.get(De)),ke(e)&&c.push(l.get(ln)));break;case"set":ke(e)&&c.push(l.get(De));break}En();for(const f of c)f&&Vr(f,4);Tn()}const Qs=_n("__proto__,__v_isRef,__isVue"),Kr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ze)),Yn=ks();function ks(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=H(this);for(let i=0,l=this.length;i{e[t]=function(...n){Ae(),En();const r=H(this)[t].apply(this,n);return Tn(),Re(),r}}),e}function ei(e){ze(e)||(e=String(e));const t=H(this);return ne(t,"has",e),t.hasOwnProperty(e)}class Wr{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){const s=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(s?i?hi:Jr:i?qr:zr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const l=P(t);if(!s){if(l&&L(Yn,n))return Reflect.get(Yn,n,r);if(n==="hasOwnProperty")return ei}const c=Reflect.get(t,n,r);return(ze(n)?Kr.has(n):Qs(n))||(s||ne(t,"get",n),i)?c:re(c)?l&&bn(n)?c:c.value:z(c)?s?Yr(c):Ut(c):c}}class Gr extends Wr{constructor(t=!1){super(!1,t)}set(t,n,r,s){let i=t[n];if(!this._isShallow){const f=lt(i);if(!St(r)&&!lt(r)&&(i=H(i),r=H(r)),!P(t)&&re(i)&&!re(r))return f?!1:(i.value=r,!0)}const l=P(t)&&bn(n)?Number(n)e,Ht=e=>Reflect.getPrototypeOf(e);function vt(e,t,n=!1,r=!1){e=e.__v_raw;const s=H(e),i=H(t);n||(Se(t,i)&&ne(s,"get",t),ne(s,"get",i));const{has:l}=Ht(s),c=r?On:n?Pn:ot;if(l.call(s,t))return c(e.get(t));if(l.call(s,i))return c(e.get(i));e!==s&&e.get(t)}function bt(e,t=!1){const n=this.__v_raw,r=H(n),s=H(e);return t||(Se(e,s)&&ne(r,"has",e),ne(r,"has",s)),e===s?n.has(e):n.has(e)||n.has(s)}function xt(e,t=!1){return e=e.__v_raw,!t&&ne(H(e),"iterate",De),Reflect.get(e,"size",e)}function Xn(e){e=H(e);const t=H(this);return Ht(t).has.call(t,e)||(t.add(e),we(t,"add",e,e)),this}function Zn(e,t){t=H(t);const n=H(this),{has:r,get:s}=Ht(n);let i=r.call(n,e);i||(e=H(e),i=r.call(n,e));const l=s.call(n,e);return n.set(e,t),i?Se(t,l)&&we(n,"set",e,t):we(n,"add",e,t),this}function Qn(e){const t=H(this),{has:n,get:r}=Ht(t);let s=n.call(t,e);s||(e=H(e),s=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return s&&we(t,"delete",e,void 0),i}function kn(){const e=H(this),t=e.size!==0,n=e.clear();return t&&we(e,"clear",void 0,void 0),n}function yt(e,t){return function(r,s){const i=this,l=i.__v_raw,c=H(l),f=t?On:e?Pn:ot;return!e&&ne(c,"iterate",De),l.forEach((a,d)=>r.call(s,f(a),f(d),i))}}function wt(e,t,n){return function(...r){const s=this.__v_raw,i=H(s),l=ke(i),c=e==="entries"||e===Symbol.iterator&&l,f=e==="keys"&&l,a=s[e](...r),d=n?On:t?Pn:ot;return!t&&ne(i,"iterate",f?ln:De),{next(){const{value:v,done:E}=a.next();return E?{value:v,done:E}:{value:c?[d(v[0]),d(v[1])]:d(v),done:E}},[Symbol.iterator](){return this}}}}function Te(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ii(){const e={get(i){return vt(this,i)},get size(){return xt(this)},has:bt,add:Xn,set:Zn,delete:Qn,clear:kn,forEach:yt(!1,!1)},t={get(i){return vt(this,i,!1,!0)},get size(){return xt(this)},has:bt,add:Xn,set:Zn,delete:Qn,clear:kn,forEach:yt(!1,!0)},n={get(i){return vt(this,i,!0)},get size(){return xt(this,!0)},has(i){return bt.call(this,i,!0)},add:Te("add"),set:Te("set"),delete:Te("delete"),clear:Te("clear"),forEach:yt(!0,!1)},r={get(i){return vt(this,i,!0,!0)},get size(){return xt(this,!0)},has(i){return bt.call(this,i,!0)},add:Te("add"),set:Te("set"),delete:Te("delete"),clear:Te("clear"),forEach:yt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=wt(i,!1,!1),n[i]=wt(i,!0,!1),t[i]=wt(i,!1,!0),r[i]=wt(i,!0,!0)}),[e,n,t,r]}const[li,oi,ci,fi]=ii();function Cn(e,t){const n=t?e?fi:ci:e?oi:li;return(r,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(L(n,s)&&s in r?n:r,s,i)}const ui={get:Cn(!1,!1)},ai={get:Cn(!1,!0)},di={get:Cn(!0,!1)};const zr=new WeakMap,qr=new WeakMap,Jr=new WeakMap,hi=new WeakMap;function pi(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function gi(e){return e.__v_skip||!Object.isExtensible(e)?0:pi(js(e))}function Ut(e){return lt(e)?e:In(e,!1,ni,ui,zr)}function _i(e){return In(e,!1,si,ai,qr)}function Yr(e){return In(e,!0,ri,di,Jr)}function In(e,t,n,r,s){if(!z(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=s.get(e);if(i)return i;const l=gi(e);if(l===0)return e;const c=new Proxy(e,l===2?r:n);return s.set(e,c),c}function tt(e){return lt(e)?tt(e.__v_raw):!!(e&&e.__v_isReactive)}function lt(e){return!!(e&&e.__v_isReadonly)}function St(e){return!!(e&&e.__v_isShallow)}function Xr(e){return e?!!e.__v_raw:!1}function H(e){const t=e&&e.__v_raw;return t?H(t):e}function Zr(e){return Object.isExtensible(e)&&Lr(e,"__v_skip",!0),e}const ot=e=>z(e)?Ut(e):e,Pn=e=>z(e)?Yr(e):e;class Qr{constructor(t,n,r,s){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new wn(()=>t(this._value),()=>Tt(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=r}get value(){const t=H(this);return(!t._cacheable||t.effect.dirty)&&Se(t._value,t._value=t.effect.run())&&Tt(t,4),kr(t),t.effect._dirtyLevel>=2&&Tt(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function mi(e,t,n=!1){let r,s;const i=R(e);return i?(r=e,s=ie):(r=e.get,s=e.set),new Qr(r,s,i||!s,n)}function kr(e){var t;Ie&&Ue&&(e=H(e),Dr(Ue,(t=e.dep)!=null?t:e.dep=Br(()=>e.dep=void 0,e instanceof Qr?e:void 0)))}function Tt(e,t=4,n,r){e=H(e);const s=e.dep;s&&Vr(s,t)}function re(e){return!!(e&&e.__v_isRef===!0)}function At(e){return vi(e,!1)}function vi(e,t){return re(e)?e:new bi(e,t)}class bi{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:H(t),this._value=n?t:ot(t)}get value(){return kr(this),this._value}set value(t){const n=this.__v_isShallow||St(t)||lt(t);t=n?t:H(t),Se(t,this._rawValue)&&(this._rawValue,this._rawValue=t,this._value=n?t:ot(t),Tt(this,4))}}function xi(e){return re(e)?e.value:e}const yi={get:(e,t,n)=>xi(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return re(s)&&!re(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function es(e){return tt(e)?e:new Proxy(e,yi)}/** -* @vue/runtime-core v3.4.31 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function Pe(e,t,n,r){try{return r?e(...r):e()}catch(s){Dt(s,t,n)}}function ae(e,t,n,r){if(R(e)){const s=Pe(e,t,n,r);return s&&Mr(s)&&s.catch(i=>{Dt(i,t,n)}),s}if(P(e)){const s=[];for(let i=0;i>>1,s=X[r],i=ft(s);ime&&X.splice(t,1)}function Ci(e){P(e)?Ke.push(...e):(!Oe||!Oe.includes(e,e.allowRecurse?je+1:je))&&Ke.push(e),ns()}function er(e,t,n=ct?me+1:0){for(;nft(n)-ft(r));if(Ke.length=0,Oe){Oe.push(...t);return}for(Oe=t,je=0;jee.id==null?1/0:e.id,Ii=(e,t)=>{const n=ft(e)-ft(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function ss(e){on=!1,ct=!0,X.sort(Ii);try{for(me=0;meY(C)?C.trim():C)),v&&(s=n.map(Vs))}let c,f=r[c=Jt(t)]||r[c=Jt(We(t))];!f&&i&&(f=r[c=Jt(qe(t))]),f&&ae(f,e,6,s);const a=r[c+"Once"];if(a){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,ae(a,e,6,s)}}function is(e,t,n=!1){const r=t.emitsCache,s=r.get(e);if(s!==void 0)return s;const i=e.emits;let l={},c=!1;if(!R(e)){const f=a=>{const d=is(a,t,!0);d&&(c=!0,J(l,d))};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}return!i&&!c?(z(e)&&r.set(e,null),null):(P(i)?i.forEach(f=>l[f]=null):J(l,i),z(e)&&r.set(e,l),l)}function Vt(e,t){return!e||!Nt(t)?!1:(t=t.slice(2).replace(/Once$/,""),L(e,t[0].toLowerCase()+t.slice(1))||L(e,qe(t))||L(e,t))}let ce=null,ls=null;function Rt(e){const t=ce;return ce=e,ls=e&&e.type.__scopeId||null,t}function Si(e,t=ce,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&ar(-1);const i=Rt(t);let l;try{l=e(...s)}finally{Rt(i),r._d&&ar(1)}return l};return r._n=!0,r._c=!0,r._d=!0,r}function Xt(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[i],slots:l,attrs:c,emit:f,render:a,renderCache:d,props:v,data:E,setupState:C,ctx:N,inheritAttrs:A}=e,W=Rt(e);let D,F;try{if(n.shapeFlag&4){const B=s||r,ee=B;D=_e(a.call(ee,B,d,v,C,E,N)),F=c}else{const B=t;D=_e(B.length>1?B(v,{attrs:c,slots:l,emit:f}):B(v,null)),F=t.props?c:Ai(c)}}catch(B){it.length=0,Dt(B,e,1),D=ue(ut)}let S=D;if(F&&A!==!1){const B=Object.keys(F),{shapeFlag:ee}=S;B.length&&ee&7&&(i&&B.some(mn)&&(F=Ri(F,i)),S=Ge(S,F,!1,!0))}return n.dirs&&(S=Ge(S,null,!1,!0),S.dirs=S.dirs?S.dirs.concat(n.dirs):n.dirs),n.transition&&(S.transition=n.transition),D=S,Rt(W),D}const Ai=e=>{let t;for(const n in e)(n==="class"||n==="style"||Nt(n))&&((t||(t={}))[n]=e[n]);return t},Ri=(e,t)=>{const n={};for(const r in e)(!mn(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Mi(e,t,n){const{props:r,children:s,component:i}=e,{props:l,children:c,patchFlag:f}=t,a=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&f>=0){if(f&1024)return!0;if(f&16)return r?tr(r,l,a):!!l;if(f&8){const d=t.dynamicProps;for(let v=0;ve.__isSuspense;function $i(e,t){t&&t.pendingBranch?P(e)?t.effects.push(...e):t.effects.push(e):Ci(e)}function Bt(e,t,n=Z,r=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...l)=>{Ae();const c=dt(n),f=ae(t,n,e,l);return c(),Re(),f});return r?s.unshift(i):s.push(i),i}}const Ee=e=>(t,n=Z)=>{(!Wt||e==="sp")&&Bt(e,(...r)=>t(...r),n)},ji=Ee("bm"),os=Ee("m"),Hi=Ee("bu"),Ui=Ee("u"),Di=Ee("bum"),cs=Ee("um"),Vi=Ee("sp"),Bi=Ee("rtg"),Ki=Ee("rtc");function Wi(e,t=Z){Bt("ec",e,t)}function Ne(e,t,n,r){const s=e.dirs,i=t&&t.dirs;for(let l=0;l!!e.type.__asyncLoader,cn=e=>e?Ps(e)?Ln(e):cn(e.parent):null,nt=J(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=>cn(e.parent),$root:e=>cn(e.root),$emit:e=>e.emit,$options:e=>Rn(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,An(e.update)}),$nextTick:e=>e.n||(e.n=Ei.bind(e.proxy)),$watch:e=>dl.bind(e)}),Zt=(e,t)=>e!==K&&!e.__isScriptSetup&&L(e,t),zi={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:i,accessCache:l,type:c,appContext:f}=e;let a;if(t[0]!=="$"){const C=l[t];if(C!==void 0)switch(C){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(Zt(r,t))return l[t]=1,r[t];if(s!==K&&L(s,t))return l[t]=2,s[t];if((a=e.propsOptions[0])&&L(a,t))return l[t]=3,i[t];if(n!==K&&L(n,t))return l[t]=4,n[t];fn&&(l[t]=0)}}const d=nt[t];let v,E;if(d)return t==="$attrs"&&ne(e.attrs,"get",""),d(e);if((v=c.__cssModules)&&(v=v[t]))return v;if(n!==K&&L(n,t))return l[t]=4,n[t];if(E=f.config.globalProperties,L(E,t))return E[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:i}=e;return Zt(s,t)?(s[t]=n,!0):r!==K&&L(r,t)?(r[t]=n,!0):L(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,propsOptions:i}},l){let c;return!!n[l]||e!==K&&L(e,l)||Zt(t,l)||(c=i[0])&&L(c,l)||L(r,l)||L(nt,l)||L(s.config.globalProperties,l)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:L(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function nr(e){return P(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let fn=!0;function qi(e){const t=Rn(e),n=e.proxy,r=e.ctx;fn=!1,t.beforeCreate&&rr(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:l,watch:c,provide:f,inject:a,created:d,beforeMount:v,mounted:E,beforeUpdate:C,updated:N,activated:A,deactivated:W,beforeDestroy:D,beforeUnmount:F,destroyed:S,unmounted:B,render:ee,renderTracked:$,renderTriggered:ve,errorCaptured:de,serverPrefetch:Gt,expose:Me,inheritAttrs:Je,components:pt,directives:gt,filters:zt}=t;if(a&&Ji(a,r,null),l)for(const G in l){const U=l[G];R(U)&&(r[G]=U.bind(n))}if(s){const G=s.call(n,n);z(G)&&(e.data=Ut(G))}if(fn=!0,i)for(const G in i){const U=i[G],Fe=R(U)?U.bind(n,n):R(U.get)?U.get.bind(n,n):ie,_t=!R(U)&&R(U.set)?U.set.bind(n):ie,Le=Nn({get:Fe,set:_t});Object.defineProperty(r,G,{enumerable:!0,configurable:!0,get:()=>Le.value,set:he=>Le.value=he})}if(c)for(const G in c)fs(c[G],r,n,G);if(f){const G=R(f)?f.call(n):f;Reflect.ownKeys(G).forEach(U=>{el(U,G[U])})}d&&rr(d,e,"c");function Q(G,U){P(U)?U.forEach(Fe=>G(Fe.bind(n))):U&&G(U.bind(n))}if(Q(ji,v),Q(os,E),Q(Hi,C),Q(Ui,N),Q(hl,A),Q(pl,W),Q(Wi,de),Q(Ki,$),Q(Bi,ve),Q(Di,F),Q(cs,B),Q(Vi,Gt),P(Me))if(Me.length){const G=e.exposed||(e.exposed={});Me.forEach(U=>{Object.defineProperty(G,U,{get:()=>n[U],set:Fe=>n[U]=Fe})})}else e.exposed||(e.exposed={});ee&&e.render===ie&&(e.render=ee),Je!=null&&(e.inheritAttrs=Je),pt&&(e.components=pt),gt&&(e.directives=gt)}function Ji(e,t,n=ie){P(e)&&(e=un(e));for(const r in e){const s=e[r];let i;z(s)?"default"in s?i=st(s.from||r,s.default,!0):i=st(s.from||r):i=st(s),re(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:l=>i.value=l}):t[r]=i}}function rr(e,t,n){ae(P(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function fs(e,t,n,r){const s=r.includes(".")?ws(n,r):()=>n[r];if(Y(e)){const i=t[e];R(i)&&Ct(s,i)}else if(R(e))Ct(s,e.bind(n));else if(z(e))if(P(e))e.forEach(i=>fs(i,t,n,r));else{const i=R(e.handler)?e.handler.bind(n):t[e.handler];R(i)&&Ct(s,i,e)}}function Rn(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:l}}=e.appContext,c=i.get(t);let f;return c?f=c:!s.length&&!n&&!r?f=t:(f={},s.length&&s.forEach(a=>Mt(f,a,l,!0)),Mt(f,t,l)),z(t)&&i.set(t,f),f}function Mt(e,t,n,r=!1){const{mixins:s,extends:i}=t;i&&Mt(e,i,n,!0),s&&s.forEach(l=>Mt(e,l,n,!0));for(const l in t)if(!(r&&l==="expose")){const c=Yi[l]||n&&n[l];e[l]=c?c(e[l],t[l]):t[l]}return e}const Yi={data:sr,props:ir,emits:ir,methods:Qe,computed:Qe,beforeCreate:k,created:k,beforeMount:k,mounted:k,beforeUpdate:k,updated:k,beforeDestroy:k,beforeUnmount:k,destroyed:k,unmounted:k,activated:k,deactivated:k,errorCaptured:k,serverPrefetch:k,components:Qe,directives:Qe,watch:Zi,provide:sr,inject:Xi};function sr(e,t){return t?e?function(){return J(R(e)?e.call(this,this):e,R(t)?t.call(this,this):t)}:t:e}function Xi(e,t){return Qe(un(e),un(t))}function un(e){if(P(e)){const t={};for(let n=0;n1)return n&&R(t)?t.call(r&&r.proxy):t}}const as={},ds=()=>Object.create(as),hs=e=>Object.getPrototypeOf(e)===as;function tl(e,t,n,r=!1){const s={},i=ds();e.propsDefaults=Object.create(null),ps(e,t,s,i);for(const l in e.propsOptions[0])l in s||(s[l]=void 0);n?e.props=r?s:_i(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function nl(e,t,n,r){const{props:s,attrs:i,vnode:{patchFlag:l}}=e,c=H(s),[f]=e.propsOptions;let a=!1;if((r||l>0)&&!(l&16)){if(l&8){const d=e.vnode.dynamicProps;for(let v=0;v{f=!0;const[E,C]=gs(v,t,!0);J(l,E),C&&c.push(...C)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!i&&!f)return z(e)&&r.set(e,Be),Be;if(P(i))for(let d=0;d-1,C[1]=A<0||N-1||L(C,"default"))&&c.push(v)}}}const a=[l,c];return z(e)&&r.set(e,a),a}function lr(e){return e[0]!=="$"&&!et(e)}function or(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function cr(e,t){return or(e)===or(t)}function fr(e,t){return P(t)?t.findIndex(n=>cr(n,e)):R(t)&&cr(t,e)?0:-1}const _s=e=>e[0]==="_"||e==="$stable",Mn=e=>P(e)?e.map(_e):[_e(e)],rl=(e,t,n)=>{if(t._n)return t;const r=Si((...s)=>Mn(t(...s)),n);return r._c=!1,r},ms=(e,t,n)=>{const r=e._ctx;for(const s in e){if(_s(s))continue;const i=e[s];if(R(i))t[s]=rl(s,i,r);else if(i!=null){const l=Mn(i);t[s]=()=>l}}},vs=(e,t)=>{const n=Mn(t);e.slots.default=()=>n},sl=(e,t)=>{const n=e.slots=ds();if(e.vnode.shapeFlag&32){const r=t._;r?(J(n,t),Lr(n,"_",r,!0)):ms(t,n)}else t&&vs(e,t)},il=(e,t,n)=>{const{vnode:r,slots:s}=e;let i=!0,l=K;if(r.shapeFlag&32){const c=t._;c?n&&c===1?i=!1:(J(s,t),!n&&c===1&&delete s._):(i=!t.$stable,ms(t,s)),l=t}else t&&(vs(e,t),l={default:1});if(i)for(const c in s)!_s(c)&&l[c]==null&&delete s[c]};function dn(e,t,n,r,s=!1){if(P(e)){e.forEach((E,C)=>dn(E,t&&(P(t)?t[C]:t),n,r,s));return}if(Ot(r)&&!s)return;const i=r.shapeFlag&4?Ln(r.component):r.el,l=s?null:i,{i:c,r:f}=e,a=t&&t.r,d=c.refs===K?c.refs={}:c.refs,v=c.setupState;if(a!=null&&a!==f&&(Y(a)?(d[a]=null,L(v,a)&&(v[a]=null)):re(a)&&(a.value=null)),R(f))Pe(f,c,12,[l,d]);else{const E=Y(f),C=re(f);if(E||C){const N=()=>{if(e.f){const A=E?L(v,f)?v[f]:d[f]:f.value;s?P(A)&&vn(A,i):P(A)?A.includes(i)||A.push(i):E?(d[f]=[i],L(v,f)&&(v[f]=d[f])):(f.value=[i],e.k&&(d[e.k]=f.value))}else E?(d[f]=l,L(v,f)&&(v[f]=l)):C&&(f.value=l,e.k&&(d[e.k]=l))};l?(N.id=-1,te(N,n)):N()}}}const te=$i;function ll(e){return ol(e)}function ol(e,t){const n=Nr();n.__VUE__=!0;const{insert:r,remove:s,patchProp:i,createElement:l,createText:c,createComment:f,setText:a,setElementText:d,parentNode:v,nextSibling:E,setScopeId:C=ie,insertStaticContent:N}=e,A=(o,u,h,p=null,g=null,b=null,y=void 0,m=null,x=!!u.dynamicChildren)=>{if(o===u)return;o&&!Ze(o,u)&&(p=mt(o),he(o,g,b,!0),o=null),u.patchFlag===-2&&(x=!1,u.dynamicChildren=null);const{type:_,ref:w,shapeFlag:O}=u;switch(_){case Kt:W(o,u,h,p);break;case ut:D(o,u,h,p);break;case kt:o==null&&F(u,h,p,y);break;case ye:pt(o,u,h,p,g,b,y,m,x);break;default:O&1?ee(o,u,h,p,g,b,y,m,x):O&6?gt(o,u,h,p,g,b,y,m,x):(O&64||O&128)&&_.process(o,u,h,p,g,b,y,m,x,Ye)}w!=null&&g&&dn(w,o&&o.ref,b,u||o,!u)},W=(o,u,h,p)=>{if(o==null)r(u.el=c(u.children),h,p);else{const g=u.el=o.el;u.children!==o.children&&a(g,u.children)}},D=(o,u,h,p)=>{o==null?r(u.el=f(u.children||""),h,p):u.el=o.el},F=(o,u,h,p)=>{[o.el,o.anchor]=N(o.children,u,h,p,o.el,o.anchor)},S=({el:o,anchor:u},h,p)=>{let g;for(;o&&o!==u;)g=E(o),r(o,h,p),o=g;r(u,h,p)},B=({el:o,anchor:u})=>{let h;for(;o&&o!==u;)h=E(o),s(o),o=h;s(u)},ee=(o,u,h,p,g,b,y,m,x)=>{u.type==="svg"?y="svg":u.type==="math"&&(y="mathml"),o==null?$(u,h,p,g,b,y,m,x):Gt(o,u,g,b,y,m,x)},$=(o,u,h,p,g,b,y,m)=>{let x,_;const{props:w,shapeFlag:O,transition:T,dirs:I}=o;if(x=o.el=l(o.type,b,w&&w.is,w),O&8?d(x,o.children):O&16&&de(o.children,x,null,p,g,Qt(o,b),y,m),I&&Ne(o,null,p,"created"),ve(x,o,o.scopeId,y,p),w){for(const V in w)V!=="value"&&!et(V)&&i(x,V,null,w[V],b,o.children,p,g,be);"value"in w&&i(x,"value",null,w.value,b),(_=w.onVnodeBeforeMount)&&ge(_,p,o)}I&&Ne(o,null,p,"beforeMount");const M=cl(g,T);M&&T.beforeEnter(x),r(x,u,h),((_=w&&w.onVnodeMounted)||M||I)&&te(()=>{_&&ge(_,p,o),M&&T.enter(x),I&&Ne(o,null,p,"mounted")},g)},ve=(o,u,h,p,g)=>{if(h&&C(o,h),p)for(let b=0;b{for(let _=x;_{const m=u.el=o.el;let{patchFlag:x,dynamicChildren:_,dirs:w}=u;x|=o.patchFlag&16;const O=o.props||K,T=u.props||K;let I;if(h&&$e(h,!1),(I=T.onVnodeBeforeUpdate)&&ge(I,h,u,o),w&&Ne(u,o,h,"beforeUpdate"),h&&$e(h,!0),_?Me(o.dynamicChildren,_,m,h,p,Qt(u,g),b):y||U(o,u,m,null,h,p,Qt(u,g),b,!1),x>0){if(x&16)Je(m,u,O,T,h,p,g);else if(x&2&&O.class!==T.class&&i(m,"class",null,T.class,g),x&4&&i(m,"style",O.style,T.style,g),x&8){const M=u.dynamicProps;for(let V=0;V{I&&ge(I,h,u,o),w&&Ne(u,o,h,"updated")},p)},Me=(o,u,h,p,g,b,y)=>{for(let m=0;m{if(h!==p){if(h!==K)for(const m in h)!et(m)&&!(m in p)&&i(o,m,h[m],null,y,u.children,g,b,be);for(const m in p){if(et(m))continue;const x=p[m],_=h[m];x!==_&&m!=="value"&&i(o,m,_,x,y,u.children,g,b,be)}"value"in p&&i(o,"value",h.value,p.value,y)}},pt=(o,u,h,p,g,b,y,m,x)=>{const _=u.el=o?o.el:c(""),w=u.anchor=o?o.anchor:c("");let{patchFlag:O,dynamicChildren:T,slotScopeIds:I}=u;I&&(m=m?m.concat(I):I),o==null?(r(_,h,p),r(w,h,p),de(u.children||[],h,w,g,b,y,m,x)):O>0&&O&64&&T&&o.dynamicChildren?(Me(o.dynamicChildren,T,h,g,b,y,m),(u.key!=null||g&&u===g.subTree)&&bs(o,u,!0)):U(o,u,h,w,g,b,y,m,x)},gt=(o,u,h,p,g,b,y,m,x)=>{u.slotScopeIds=m,o==null?u.shapeFlag&512?g.ctx.activate(u,h,p,y,x):zt(u,h,p,g,b,y,x):Hn(o,u,x)},zt=(o,u,h,p,g,b,y)=>{const m=o.component=Il(o,p,g);if(Es(o)&&(m.ctx.renderer=Ye),Sl(m),m.asyncDep){if(g&&g.registerDep(m,Q,y),!o.el){const x=m.subTree=ue(ut);D(null,x,u,h)}}else Q(m,o,u,h,g,b,y)},Hn=(o,u,h)=>{const p=u.component=o.component;if(Mi(o,u,h))if(p.asyncDep&&!p.asyncResolved){G(p,u,h);return}else p.next=u,Oi(p.update),p.effect.dirty=!0,p.update();else u.el=o.el,p.vnode=u},Q=(o,u,h,p,g,b,y)=>{const m=()=>{if(o.isMounted){let{next:w,bu:O,u:T,parent:I,vnode:M}=o;{const Ve=xs(o);if(Ve){w&&(w.el=M.el,G(o,w,y)),Ve.asyncDep.then(()=>{o.isUnmounted||m()});return}}let V=w,j;$e(o,!1),w?(w.el=M.el,G(o,w,y)):w=M,O&&Yt(O),(j=w.props&&w.props.onVnodeBeforeUpdate)&&ge(j,I,w,M),$e(o,!0);const q=Xt(o),le=o.subTree;o.subTree=q,A(le,q,v(le.el),mt(le),o,g,b),w.el=q.el,V===null&&Fi(o,q.el),T&&te(T,g),(j=w.props&&w.props.onVnodeUpdated)&&te(()=>ge(j,I,w,M),g)}else{let w;const{el:O,props:T}=u,{bm:I,m:M,parent:V}=o,j=Ot(u);if($e(o,!1),I&&Yt(I),!j&&(w=T&&T.onVnodeBeforeMount)&&ge(w,V,u),$e(o,!0),O&&Bn){const q=()=>{o.subTree=Xt(o),Bn(O,o.subTree,o,g,null)};j?u.type.__asyncLoader().then(()=>!o.isUnmounted&&q()):q()}else{const q=o.subTree=Xt(o);A(null,q,h,p,o,g,b),u.el=q.el}if(M&&te(M,g),!j&&(w=T&&T.onVnodeMounted)){const q=u;te(()=>ge(w,V,q),g)}(u.shapeFlag&256||V&&Ot(V.vnode)&&V.vnode.shapeFlag&256)&&o.a&&te(o.a,g),o.isMounted=!0,u=h=p=null}},x=o.effect=new wn(m,ie,()=>An(_),o.scope),_=o.update=()=>{x.dirty&&x.run()};_.id=o.uid,$e(o,!0),_()},G=(o,u,h)=>{u.component=o;const p=o.vnode.props;o.vnode=u,o.next=null,nl(o,u.props,p,h),il(o,u.children,h),Ae(),er(o),Re()},U=(o,u,h,p,g,b,y,m,x=!1)=>{const _=o&&o.children,w=o?o.shapeFlag:0,O=u.children,{patchFlag:T,shapeFlag:I}=u;if(T>0){if(T&128){_t(_,O,h,p,g,b,y,m,x);return}else if(T&256){Fe(_,O,h,p,g,b,y,m,x);return}}I&8?(w&16&&be(_,g,b),O!==_&&d(h,O)):w&16?I&16?_t(_,O,h,p,g,b,y,m,x):be(_,g,b,!0):(w&8&&d(h,""),I&16&&de(O,h,p,g,b,y,m,x))},Fe=(o,u,h,p,g,b,y,m,x)=>{o=o||Be,u=u||Be;const _=o.length,w=u.length,O=Math.min(_,w);let T;for(T=0;Tw?be(o,g,b,!0,!1,O):de(u,h,p,g,b,y,m,x,O)},_t=(o,u,h,p,g,b,y,m,x)=>{let _=0;const w=u.length;let O=o.length-1,T=w-1;for(;_<=O&&_<=T;){const I=o[_],M=u[_]=x?Ce(u[_]):_e(u[_]);if(Ze(I,M))A(I,M,h,null,g,b,y,m,x);else break;_++}for(;_<=O&&_<=T;){const I=o[O],M=u[T]=x?Ce(u[T]):_e(u[T]);if(Ze(I,M))A(I,M,h,null,g,b,y,m,x);else break;O--,T--}if(_>O){if(_<=T){const I=T+1,M=IT)for(;_<=O;)he(o[_],g,b,!0),_++;else{const I=_,M=_,V=new Map;for(_=M;_<=T;_++){const se=u[_]=x?Ce(u[_]):_e(u[_]);se.key!=null&&V.set(se.key,_)}let j,q=0;const le=T-M+1;let Ve=!1,Kn=0;const Xe=new Array(le);for(_=0;_=le){he(se,g,b,!0);continue}let pe;if(se.key!=null)pe=V.get(se.key);else for(j=M;j<=T;j++)if(Xe[j-M]===0&&Ze(se,u[j])){pe=j;break}pe===void 0?he(se,g,b,!0):(Xe[pe-M]=_+1,pe>=Kn?Kn=pe:Ve=!0,A(se,u[pe],h,null,g,b,y,m,x),q++)}const Wn=Ve?fl(Xe):Be;for(j=Wn.length-1,_=le-1;_>=0;_--){const se=M+_,pe=u[se],Gn=se+1{const{el:b,type:y,transition:m,children:x,shapeFlag:_}=o;if(_&6){Le(o.component.subTree,u,h,p);return}if(_&128){o.suspense.move(u,h,p);return}if(_&64){y.move(o,u,h,Ye);return}if(y===ye){r(b,u,h);for(let O=0;Om.enter(b),g);else{const{leave:O,delayLeave:T,afterLeave:I}=m,M=()=>r(b,u,h),V=()=>{O(b,()=>{M(),I&&I()})};T?T(b,M,V):V()}else r(b,u,h)},he=(o,u,h,p=!1,g=!1)=>{const{type:b,props:y,ref:m,children:x,dynamicChildren:_,shapeFlag:w,patchFlag:O,dirs:T,memoIndex:I}=o;if(O===-2&&(g=!1),m!=null&&dn(m,null,h,o,!0),I!=null&&(u.renderCache[I]=void 0),w&256){u.ctx.deactivate(o);return}const M=w&1&&T,V=!Ot(o);let j;if(V&&(j=y&&y.onVnodeBeforeUnmount)&&ge(j,u,o),w&6)Ms(o.component,h,p);else{if(w&128){o.suspense.unmount(h,p);return}M&&Ne(o,null,u,"beforeUnmount"),w&64?o.type.remove(o,u,h,Ye,p):_&&(b!==ye||O>0&&O&64)?be(_,u,h,!1,!0):(b===ye&&O&384||!g&&w&16)&&be(x,u,h),p&&Un(o)}(V&&(j=y&&y.onVnodeUnmounted)||M)&&te(()=>{j&&ge(j,u,o),M&&Ne(o,null,u,"unmounted")},h)},Un=o=>{const{type:u,el:h,anchor:p,transition:g}=o;if(u===ye){Rs(h,p);return}if(u===kt){B(o);return}const b=()=>{s(h),g&&!g.persisted&&g.afterLeave&&g.afterLeave()};if(o.shapeFlag&1&&g&&!g.persisted){const{leave:y,delayLeave:m}=g,x=()=>y(h,b);m?m(o.el,b,x):x()}else b()},Rs=(o,u)=>{let h;for(;o!==u;)h=E(o),s(o),o=h;s(u)},Ms=(o,u,h)=>{const{bum:p,scope:g,update:b,subTree:y,um:m,m:x,a:_}=o;ur(x),ur(_),p&&Yt(p),g.stop(),b&&(b.active=!1,he(y,o,u,h)),m&&te(m,u),te(()=>{o.isUnmounted=!0},u),u&&u.pendingBranch&&!u.isUnmounted&&o.asyncDep&&!o.asyncResolved&&o.suspenseId===u.pendingId&&(u.deps--,u.deps===0&&u.resolve())},be=(o,u,h,p=!1,g=!1,b=0)=>{for(let y=b;yo.shapeFlag&6?mt(o.component.subTree):o.shapeFlag&128?o.suspense.next():E(o.anchor||o.el);let qt=!1;const Dn=(o,u,h)=>{o==null?u._vnode&&he(u._vnode,null,null,!0):A(u._vnode||null,o,u,null,null,null,h),qt||(qt=!0,er(),rs(),qt=!1),u._vnode=o},Ye={p:A,um:he,m:Le,r:Un,mt:zt,mc:de,pc:U,pbc:Me,n:mt,o:e};let Vn,Bn;return{render:Dn,hydrate:Vn,createApp:ki(Dn,Vn)}}function Qt({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 $e({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function cl(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function bs(e,t,n=!1){const r=e.children,s=t.children;if(P(r)&&P(s))for(let i=0;i>1,e[n[c]]0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,l=n[i-1];i-- >0;)n[i]=l,l=t[l];return n}function xs(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:xs(t)}function ur(e){if(e)for(let t=0;tst(ul),Et={};function Ct(e,t,n){return ys(e,t,n)}function ys(e,t,{immediate:n,deep:r,flush:s,once:i,onTrack:l,onTrigger:c}=K){if(t&&i){const $=t;t=(...ve)=>{$(...ve),ee()}}const f=Z,a=$=>r===!0?$:He($,r===!1?1:void 0);let d,v=!1,E=!1;if(re(e)?(d=()=>e.value,v=St(e)):tt(e)?(d=()=>a(e),v=!0):P(e)?(E=!0,v=e.some($=>tt($)||St($)),d=()=>e.map($=>{if(re($))return $.value;if(tt($))return a($);if(R($))return Pe($,f,2)})):R(e)?t?d=()=>Pe(e,f,2):d=()=>(C&&C(),ae(e,f,3,[N])):d=ie,t&&r){const $=d;d=()=>He($())}let C,N=$=>{C=S.onStop=()=>{Pe($,f,4),C=S.onStop=void 0}},A;if(Wt)if(N=ie,t?n&&ae(t,f,3,[d(),E?[]:void 0,N]):d(),s==="sync"){const $=al();A=$.__watcherHandles||($.__watcherHandles=[])}else return ie;let W=E?new Array(e.length).fill(Et):Et;const D=()=>{if(!(!S.active||!S.dirty))if(t){const $=S.run();(r||v||(E?$.some((ve,de)=>Se(ve,W[de])):Se($,W)))&&(C&&C(),ae(t,f,3,[$,W===Et?void 0:E&&W[0]===Et?[]:W,N]),W=$)}else S.run()};D.allowRecurse=!!t;let F;s==="sync"?F=D:s==="post"?F=()=>te(D,f&&f.suspense):(D.pre=!0,f&&(D.id=f.uid),F=()=>An(D));const S=new wn(d,ie,F),B=Xs(),ee=()=>{S.stop(),B&&vn(B.effects,S)};return t?n?D():W=S.run():s==="post"?te(S.run.bind(S),f&&f.suspense):S.run(),A&&A.push(ee),ee}function dl(e,t,n){const r=this.proxy,s=Y(e)?e.includes(".")?ws(r,e):()=>r[e]:e.bind(r,r);let i;R(t)?i=t:(i=t.handler,n=t);const l=dt(this),c=ys(s,i.bind(r),n);return l(),c}function ws(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s{He(r,t,n)});else if(Hs(e)){for(const r in e)He(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&He(e[r],t,n)}return e}const Es=e=>e.type.__isKeepAlive;function hl(e,t){Ts(e,"a",t)}function pl(e,t){Ts(e,"da",t)}function Ts(e,t,n=Z){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Bt(t,r,n),n){let s=n.parent;for(;s&&s.parent;)Es(s.parent.vnode)&&gl(r,t,n,s),s=s.parent}}function gl(e,t,n,r){const s=Bt(t,e,r,!0);cs(()=>{vn(r[t],s)},n)}function Os(e,t){e.shapeFlag&6&&e.component?Os(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}const _l=e=>e.__isTeleport,ye=Symbol.for("v-fgt"),Kt=Symbol.for("v-txt"),ut=Symbol.for("v-cmt"),kt=Symbol.for("v-stc"),it=[];let fe=null;function ml(e=!1){it.push(fe=e?null:[])}function vl(){it.pop(),fe=it[it.length-1]||null}let at=1;function ar(e){at+=e}function bl(e){return e.dynamicChildren=at>0?fe||Be:null,vl(),at>0&&fe&&fe.push(e),e}function xl(e,t,n,r,s,i){return bl(Is(e,t,n,r,s,i,!0))}function hn(e){return e?e.__v_isVNode===!0:!1}function Ze(e,t){return e.type===t.type&&e.key===t.key}const Cs=({key:e})=>e??null,It=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Y(e)||re(e)||R(e)?{i:ce,r:e,k:t,f:!!n}:e:null);function Is(e,t=null,n=null,r=0,s=null,i=e===ye?0:1,l=!1,c=!1){const f={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Cs(t),ref:t&&It(t),scopeId:ls,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:i,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:ce};return c?(Fn(f,n),i&128&&e.normalize(f)):n&&(f.shapeFlag|=Y(n)?8:16),at>0&&!l&&fe&&(f.patchFlag>0||i&6)&&f.patchFlag!==32&&fe.push(f),f}const ue=yl;function yl(e,t=null,n=null,r=0,s=null,i=!1){if((!e||e===Li)&&(e=ut),hn(e)){const c=Ge(e,t,!0);return n&&Fn(c,n),at>0&&!i&&fe&&(c.shapeFlag&6?fe[fe.indexOf(e)]=c:fe.push(c)),c.patchFlag=-2,c}if(Fl(e)&&(e=e.__vccOpts),t){t=wl(t);let{class:c,style:f}=t;c&&!Y(c)&&(t.class=yn(c)),z(f)&&(Xr(f)&&!P(f)&&(f=J({},f)),t.style=xn(f))}const l=Y(e)?1:Ni(e)?128:_l(e)?64:z(e)?4:R(e)?2:0;return Is(e,t,n,r,s,l,i,!0)}function wl(e){return e?Xr(e)||hs(e)?J({},e):e:null}function Ge(e,t,n=!1,r=!1){const{props:s,ref:i,patchFlag:l,children:c,transition:f}=e,a=t?Tl(s||{},t):s,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&Cs(a),ref:t&&t.ref?n&&i?P(i)?i.concat(It(t)):[i,It(t)]:It(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:c,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ye?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:f,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ge(e.ssContent),ssFallback:e.ssFallback&&Ge(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return f&&r&&Os(d,f.clone(d)),d}function El(e=" ",t=0){return ue(Kt,null,e,t)}function _e(e){return e==null||typeof e=="boolean"?ue(ut):P(e)?ue(ye,null,e.slice()):typeof e=="object"?Ce(e):ue(Kt,null,String(e))}function Ce(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ge(e)}function Fn(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(P(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),Fn(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!hs(t)?t._ctx=ce:s===3&&ce&&(ce.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else R(t)?(t={default:t,_ctx:ce},n=32):(t=String(t),r&64?(n=16,t=[El(t)]):n=8);e.children=t,e.shapeFlag|=n}function Tl(...e){const t={};for(let n=0;nZ||ce;let Ft,pn;{const e=Nr(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),i=>{s.length>1?s.forEach(l=>l(i)):s[0](i)}};Ft=t("__VUE_INSTANCE_SETTERS__",n=>Z=n),pn=t("__VUE_SSR_SETTERS__",n=>Wt=n)}const dt=e=>{const t=Z;return Ft(e),e.scope.on(),()=>{e.scope.off(),Ft(t)}},dr=()=>{Z&&Z.scope.off(),Ft(null)};function Ps(e){return e.vnode.shapeFlag&4}let Wt=!1;function Sl(e,t=!1){t&&pn(t);const{props:n,children:r}=e.vnode,s=Ps(e);tl(e,n,s,t),sl(e,r);const i=s?Al(e,t):void 0;return t&&pn(!1),i}function Al(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,zi);const{setup:r}=n;if(r){const s=e.setupContext=r.length>1?Ml(e):null,i=dt(e);Ae();const l=Pe(r,e,0,[e.props,s]);if(Re(),i(),Mr(l)){if(l.then(dr,dr),t)return l.then(c=>{hr(e,c,t)}).catch(c=>{Dt(c,e,0)});e.asyncDep=l}else hr(e,l,t)}else Ss(e,t)}function hr(e,t,n){R(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:z(t)&&(e.setupState=es(t)),Ss(e,n)}let pr;function Ss(e,t,n){const r=e.type;if(!e.render){if(!t&&pr&&!r.render){const s=r.template||Rn(e).template;if(s){const{isCustomElement:i,compilerOptions:l}=e.appContext.config,{delimiters:c,compilerOptions:f}=r,a=J(J({isCustomElement:i,delimiters:c},l),f);r.render=pr(s,a)}}e.render=r.render||ie}{const s=dt(e);Ae();try{qi(e)}finally{Re(),s()}}}const Rl={get(e,t){return ne(e,"get",""),e[t]}};function Ml(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Rl),slots:e.slots,emit:e.emit,expose:t}}function Ln(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(es(Zr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in nt)return nt[n](e)},has(t,n){return n in t||n in nt}})):e.proxy}function Fl(e){return R(e)&&"__vccOpts"in e}const Nn=(e,t)=>mi(e,t,Wt);function gr(e,t,n){const r=arguments.length;return r===2?z(t)&&!P(t)?hn(t)?ue(e,null,[t]):ue(e,t):ue(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&hn(n)&&(n=[n]),ue(e,t,n))}const Ll="3.4.31";/** -* @vue/runtime-dom v3.4.31 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/const Nl="http://www.w3.org/2000/svg",$l="http://www.w3.org/1998/Math/MathML",xe=typeof document<"u"?document:null,_r=xe&&xe.createElement("template"),jl={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t==="svg"?xe.createElementNS(Nl,e):t==="mathml"?xe.createElementNS($l,e):n?xe.createElement(e,{is:n}):xe.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>xe.createTextNode(e),createComment:e=>xe.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>xe.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,i){const l=n?n.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{_r.innerHTML=r==="svg"?`${e}`:r==="mathml"?`${e}`:e;const c=_r.content;if(r==="svg"||r==="mathml"){const f=c.firstChild;for(;f.firstChild;)c.appendChild(f.firstChild);c.removeChild(f)}t.insertBefore(c,n)}return[l?l.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Hl=Symbol("_vtc");function Ul(e,t,n){const r=e[Hl];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const mr=Symbol("_vod"),Dl=Symbol("_vsh"),Vl=Symbol(""),Bl=/(^|;)\s*display\s*:/;function Kl(e,t,n){const r=e.style,s=Y(n);let i=!1;if(n&&!s){if(t)if(Y(t))for(const l of t.split(";")){const c=l.slice(0,l.indexOf(":")).trim();n[c]==null&&Pt(r,c,"")}else for(const l in t)n[l]==null&&Pt(r,l,"");for(const l in n)l==="display"&&(i=!0),Pt(r,l,n[l])}else if(s){if(t!==n){const l=r[Vl];l&&(n+=";"+l),r.cssText=n,i=Bl.test(n)}}else t&&e.removeAttribute("style");mr in e&&(e[mr]=i?r.display:"",e[Dl]&&(r.display="none"))}const vr=/\s*!important$/;function Pt(e,t,n){if(P(n))n.forEach(r=>Pt(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Wl(e,t);vr.test(n)?e.setProperty(qe(r),n.replace(vr,""),"important"):e[r]=n}}const br=["Webkit","Moz","ms"],en={};function Wl(e,t){const n=en[t];if(n)return n;let r=We(t);if(r!=="filter"&&r in e)return en[t]=r;r=Fr(r);for(let s=0;stn||(Xl.then(()=>tn=0),tn=Date.now());function Ql(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;ae(kl(r,n.value),t,5,[r])};return n.value=e,n.attached=Zl(),n}function kl(e,t){if(P(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const Tr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,eo=(e,t,n,r,s,i,l,c,f)=>{const a=s==="svg";t==="class"?Ul(e,r,a):t==="style"?Kl(e,n,r):Nt(t)?mn(t)||Jl(e,t,n,r,l):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):to(e,t,r,a))?(Gl(e,t,r,i,l,c,f),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&yr(e,t,r,a,l,t!=="value")):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),yr(e,t,r,a))};function to(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Tr(t)&&R(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Tr(t)&&Y(n)?!1:t in e}const no=J({patchProp:eo},jl);let Or;function ro(){return Or||(Or=ll(no))}const so=(...e)=>{const t=ro().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=lo(r);if(!s)return;const i=t._component;!R(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.innerHTML="";const l=n(s,!1,io(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),l},t};function io(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function lo(e){return Y(e)?document.querySelector(e):e}const oo=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},co={};function fo(e,t,n,r,s,i){return ml(),xl("h1",null,"the ki toolbox app...")}const uo=oo(co,[["render",fo]]);var Lt=function(){return Lt=Object.assign||function(t){for(var n,r=1,s=arguments.length;r":">",'"':""","'":"'"};function E(N,A){for(var W=A.split(ao).filter(function(D){return D});W.length;)N=N[W.shift()];return N}function C(N,A,W){try{d=E(N,A)}catch{}if(d==null){if(W)return C(W.ctx,A,W.parent);console.warn("Cannot evaluate expression: ".concat(A)),d=A}var D=d.toString();return r?D:D.replace(/[&<>"']/g,function(F){return v[F]})}return C(n,a,s)});return l}};ht.INTERPOLATION_RE=As;ht.INTERPOLATION_PREFIX="%{";var Cr={getTranslationIndex:function(e,t){switch(t=Number(t),t=typeof t=="number"&&isNaN(t)?1:t,e.length>2&&e!=="pt_BR"&&(e=e.split("_")[0]),e){case"ay":case"bo":case"cgg":case"dz":case"fa":case"id":case"ja":case"jbo":case"ka":case"kk":case"km":case"ko":case"ky":case"lo":case"ms":case"my":case"sah":case"su":case"th":case"tt":case"ug":case"vi":case"wo":case"zh":return 0;case"is":return t%10!==1||t%100===11?1:0;case"jv":return t!==0?1:0;case"mk":return t===1||t%10===1?0:1;case"ach":case"ak":case"am":case"arn":case"br":case"fil":case"fr":case"gun":case"ln":case"mfe":case"mg":case"mi":case"oc":case"pt_BR":case"tg":case"ti":case"tr":case"uz":case"wa":return t>1?1:0;case"lv":return t%10===1&&t%100!==11?0:t!==0?1:2;case"lt":return t%10===1&&t%100!==11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2;case"be":case"bs":case"hr":case"ru":case"sr":case"uk":return t%10===1&&t%100!==11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2;case"mnk":return t===0?0:t===1?1:2;case"ro":return t===1?0:t===0||t%100>0&&t%100<20?1:2;case"pl":return t===1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2;case"cs":case"sk":return t===1?0:t>=2&&t<=4?1:2;case"csb":return t===1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2;case"sl":return t%100===1?0:t%100===2?1:t%100===3||t%100===4?2:3;case"mt":return t===1?0:t===0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3;case"gd":return t===1||t===11?0:t===2||t===12?1:t>2&&t<20?2:3;case"cy":return t===1?0:t===2?1:t!==8&&t!==11?2:3;case"kw":return t===1?0:t===2?1:t===3?2:3;case"ga":return t===1?0:t===2?1:t>2&&t<7?2:t>6&&t<11?3:4;case"ar":return t===0?0:t===1?1:t===2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5;default:return t!==1?1:0}}},$n=function(e){return{getTranslation:function(t,n,r,s,i,l,c){n===void 0&&(n=1),r===void 0&&(r=null),s===void 0&&(s=null),c===void 0&&(c=!1),i===void 0&&(i=e.current);var f=function(F,S){return S?e.interpolate(F,S,c):F};if(t=t.trim(),!t)return"";var a=i?e.silent||e.muted.indexOf(i)!==-1:!1,d=i;e.sourceCodeLanguage&&(d=e.sourceCodeLanguage);var v=s&&Cr.getTranslationIndex(d,n)>0?s:t,E=e.translations,C=E[i]||E[i.split("_")[0]];if(!C)return a||console.warn("No translations found for ".concat(i)),f(v,l);var N=function(F){var S=Cr.getTranslationIndex(i,n);F.length===1&&n===1&&(S=0);var B=F[S];if(!B){if(B==="")return f(v,l);throw new Error(t+" "+S+" "+e.current+" "+n)}return f(B,l)},A=function(){if(!a){var F="Untranslated ".concat(i," key found: ").concat(t);r&&(F+=" (with context: ".concat(r,")")),console.warn(F)}return f(v,l)},W=function(F,S){if(S===void 0&&(S=null),F instanceof Object){if(Array.isArray(F))return N(F);var B=S??"",ee=F[B];return W(ee)}return S||!F?A():f(F,l)},D=C[t];return W(D,r)},gettext:function(t,n,r){return r===void 0&&(r=!1),this.getTranslation(t,void 0,void 0,void 0,void 0,n,r)},pgettext:function(t,n,r,s){return s===void 0&&(s=!1),this.getTranslation(n,1,t,void 0,void 0,r,s)},ngettext:function(t,n,r,s,i){return i===void 0&&(i=!1),this.getTranslation(t,r,null,n,void 0,s,i)},npgettext:function(t,n,r,s,i,l){return l===void 0&&(l=!1),this.getTranslation(n,s,t,r,void 0,i,l)}}},gn=Symbol("GETTEXT");function po(e){return e.replace(/\r?\n|\r/,"").replace(/\s\s+/g," ").trim()}function Ir(e){var t={};return Object.keys(e).forEach(function(n){var r=e[n],s={};Object.keys(r).forEach(function(i){s[po(i)]=r[i]}),t[n]=s}),t}var go=function(){var e=st(gn,null);if(!e)throw new Error("Failed to inject gettext. Make sure vue3-gettext is set up properly.");return e},Pr=Gi({name:"translate",props:{tag:{type:String,default:"span"},translateN:{type:Number,default:null},translatePlural:{type:String,default:null},translateContext:{type:String,default:null},translateParams:{type:Object,default:null},translateComment:{type:String,default:null}},setup:function(e,t){var n,r,s,i=e.translateN!==void 0&&e.translatePlural!==void 0;if(!i&&(e.translateN||e.translatePlural))throw new Error("`translate-n` and `translate-plural` attributes must be used together: ".concat((s=(r=(n=t.slots).default)===null||r===void 0?void 0:r.call(n)[0])===null||s===void 0?void 0:s.children,"."));var l=At(),c=go(),f=At(null);os(function(){!f.value&&l.value&&(f.value=l.value.innerHTML.trim())});var a=Nn(function(){var d,v=$n(c).getTranslation(f.value,e.translateN,e.translateContext,i?e.translatePlural:null,c.current);return ht(c)(v,e.translateParams,void 0,(d=Pl())===null||d===void 0?void 0:d.parent)});return function(){return f.value?gr(e.tag,{ref:l,innerHTML:a.value}):gr(e.tag,{ref:l},t.slots.default?t.slots.default():"")}}}),_o=function(e,t,n,r){var s,i=r.props||{},l=t.dataset.msgid,c=i["translate-context"],f=i["translate-n"],a=i["translate-plural"],d=f!==void 0&&a!==void 0,v=i["render-html"]==="true";if(!d&&(f||a))throw new Error("`translate-n` and `translate-plural` attributes must be used together:"+l+".");!e.silent&&i["translate-params"]&&console.warn("`translate-params` is required as an expression for v-translate directive. Please change to `v-translate='params'`: ".concat(l));var E=$n(e).getTranslation(l,f,c,d?a:null,e.current),C=Object.assign((s=n.instance)!==null&&s!==void 0?s:{},n.value),N=ht(e)(E,C,v,null);t.innerHTML=N};function Sr(e){var t=function(n,r,s){n.dataset.currentLanguage=e.current,_o(e,n,r,s)};return{beforeMount:function(n,r,s){n.dataset.msgid||(n.dataset.msgid=n.innerHTML),Ct(e,function(){t(n,r,s)}),t(n,r,s)},updated:function(n,r,s){t(n,r,s)}}}var Ar={availableLanguages:{en:"English"},defaultLanguage:"en",sourceCodeLanguage:void 0,mutedLanguages:[],silent:!1,translations:{},setGlobalProperties:!0,globalProperties:{language:["$language"],gettext:["$gettext"],pgettext:["$pgettext"],ngettext:["$ngettext"],npgettext:["$npgettext"],interpolate:["$gettextInterpolate"]},provideDirective:!0,provideComponent:!0};function mo(e){e===void 0&&(e={}),Object.keys(e).forEach(function(l){if(Object.keys(Ar).indexOf(l)===-1)throw new Error("".concat(l," is an invalid option for the translate plugin."))});var t=Lt(Lt({},Ar),e),n=At(Ir(t.translations)),r=Ut({available:t.availableLanguages,muted:t.mutedLanguages,silent:t.silent,translations:Nn({get:function(){return n.value},set:function(l){n.value=Ir(l)}}),current:t.defaultLanguage,sourceCodeLanguage:t.sourceCodeLanguage,install:function(l){if(l[gn]=r,l.provide(gn,r),t.setGlobalProperties){var c=l.config.globalProperties,f=t.globalProperties.gettext||["$gettext"];f.forEach(function(a){c[a]=r.$gettext}),f=t.globalProperties.pgettext||["$pgettext"],f.forEach(function(a){c[a]=r.$pgettext}),f=t.globalProperties.ngettext||["$ngettext"],f.forEach(function(a){c[a]=r.$ngettext}),f=t.globalProperties.npgettext||["$npgettext"],f.forEach(function(a){c[a]=r.$npgettext}),f=t.globalProperties.interpolate||["$gettextInterpolate"],f.forEach(function(a){c[a]=r.interpolate}),f=t.globalProperties.language||["$language"],f.forEach(function(a){c[a]=r})}t.provideDirective&&l.directive("translate",Sr(r)),t.provideComponent&&l.component("translate",Pr)}}),s=$n(r),i=ht(r);return r.$gettext=s.gettext.bind(s),r.$pgettext=s.pgettext.bind(s),r.$ngettext=s.ngettext.bind(s),r.$npgettext=s.npgettext.bind(s),r.interpolate=i.bind(i),r.directive=Sr(r),r.component=Pr,r}const vo={},bo={en:vo};var xo=!1;/*! - * pinia v2.1.7 - * (c) 2023 Eduardo San Martin Morote - * @license MIT - */const yo=Symbol();var Rr;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Rr||(Rr={}));function wo(){const e=Js(!0),t=e.run(()=>At({}));let n=[],r=[];const s=Zr({install(i){s._a=i,i.provide(yo,s),i.config.globalProperties.$pinia=s,r.forEach(l=>n.push(l)),r=[]},use(i){return!this._a&&!xo?r.push(i):n.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return s}const jn=so(uo),Eo=mo({availableLanguages:{en:"English",de:"Deutsch"},defaultLanguage:"de",translations:bo});jn.use(Eo);const To=wo();jn.use(To);jn.mount("#kitoolbox-app"); +import{_ as e,c as a,o as s,a as n,b as o,d as c,t as p}from"./assets/pinia-DR7XVEpL.js";const r={};function i(d,f,g,x,h,m){return s(),a("h1",null,"the ki toolbox app...")}const l=e(r,[["render",i]]),t=n(l),u=o({availableLanguages:{en:"English",de:"Deutsch"},defaultLanguage:"de",translations:p});t.use(u);const _=c();t.use(_);t.mount("#kitoolbox-app"); diff --git a/src/KIToolboxAdminApp.vue b/src/KIToolboxAdminApp.vue new file mode 100644 index 0000000..98f7a36 --- /dev/null +++ b/src/KIToolboxAdminApp.vue @@ -0,0 +1,8 @@ + + \ No newline at end of file diff --git a/src/kitoolbox-admin.js b/src/kitoolbox-admin.js new file mode 100644 index 0000000..b45fc2c --- /dev/null +++ b/src/kitoolbox-admin.js @@ -0,0 +1,22 @@ +import { createApp } from 'vue' +import App from './KIToolboxAdminApp.vue' +import { createGettext } from 'vue3-gettext'; +import translations from './locales/translations.json'; +import { createPinia } from 'pinia'; + +const app = createApp(App); + +const gettext = createGettext({ + availableLanguages: { + en: "English", + de: "Deutsch", + }, + defaultLanguage: "de", + translations: translations, +}); +app.use(gettext); + +const pinia = createPinia(); +app.use(pinia); + +app.mount('#kitoolbox-admin-app'); \ No newline at end of file diff --git a/src/kitoolbox.js b/src/kitoolbox.js index 5f8cbca..eff9b81 100644 --- a/src/kitoolbox.js +++ b/src/kitoolbox.js @@ -1,6 +1,5 @@ import { createApp } from 'vue' import App from './KIToolboxApp.vue' -import './kitoolbox.css'; import { createGettext } from 'vue3-gettext'; import translations from './locales/translations.json'; import { createPinia } from 'pinia'; diff --git a/vite.config.js b/vite.config.js index f3400d6..a27179a 100644 --- a/vite.config.js +++ b/vite.config.js @@ -10,6 +10,7 @@ export default defineConfig(({ mode }) => { rollupOptions: { input: { kitoolbox: 'src/kitoolbox.js', + 'kitoolbox-admin': 'src/kitoolbox-admin.js', }, output: { entryFileNames: `[name].js`,