@linagora/linid-im-front-corelib 0.0.63 → 0.0.66

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.
@@ -1,17 +1,137 @@
1
- (function(V,k){typeof exports=="object"&&typeof module<"u"?k(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],k):(V=typeof globalThis<"u"?globalThis:V||self,k(V.CoreLib={},V.Vue))})(this,(function(V,k){"use strict";function Bo(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const hn=Bo(k);let wt=null;function Ho(e){if(wt!==null){console.warn("[LinID CoreLib] Module Federation has already been initialized. Re-initialization is ignored.");return}wt=e}function _r(){if(wt===null)throw new Error("[LinID CoreLib] Module Federation is not initialized. Call setModuleFederation() first.");return wt}const hr=e=>k.defineAsyncComponent(()=>_r().loadRemote(e).then(t=>{if(!t?.default)throw new Error(`Failed to load component from ${e}`);return t.default}));const lt=typeof window<"u";let Xe;const kt=e=>Xe=e;process.env.NODE_ENV;const En=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function Je(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var gt;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(gt||(gt={}));function Er(e,t){for(const n in t){const r=t[n];if(!(n in e))continue;const s=e[n];Je(s)&&Je(r)&&!k.isRef(r)&&!k.isReactive(r)?e[n]=Er(s,r):e[n]=r}return e}const gr=()=>{};function yr(e,t,n,r=gr){e.add(t);const s=()=>{e.delete(t)&&r()};return!n&&k.getCurrentScope()&&k.onScopeDispose(s),s}function ut(e,...t){e.forEach(n=>{n(...t)})}const Vo=e=>e(),br=Symbol(),gn=Symbol();function yn(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,r)=>e.set(r,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],s=e[n];Je(s)&&Je(r)&&e.hasOwnProperty(n)&&!k.isRef(r)&&!k.isReactive(r)?e[n]=yn(s,r):e[n]=r}return e}const qo=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function Wo(e){return!Je(e)||!Object.prototype.hasOwnProperty.call(e,qo)}const{assign:Se}=Object;function Or(e){return!!(k.isRef(e)&&e.effect)}function Nr(e,t,n,r){const{state:s,actions:o,getters:i}=t,a=n.state.value[e];let c;function l(){!a&&(process.env.NODE_ENV==="production"||!r)&&(n.state.value[e]=s?s():{});const f=process.env.NODE_ENV!=="production"&&r?k.toRefs(k.ref(s?s():{}).value):k.toRefs(n.state.value[e]);return Se(f,o,Object.keys(i||{}).reduce((m,E)=>(process.env.NODE_ENV!=="production"&&E in f&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${E}" in store "${e}".`),m[E]=k.markRaw(k.computed(()=>{kt(n);const h=n._s.get(e);return i[E].call(h,h)})),m),{}))}return c=bn(e,l,t,n,r,!0),c}function bn(e,t,n={},r,s,o){let i;const a=Se({actions:{}},n);if(process.env.NODE_ENV!=="production"&&!r._e.active)throw new Error("Pinia destroyed");const c={deep:!0};process.env.NODE_ENV!=="production"&&(c.onTrigger=L=>{l?h=L:l==!1&&!g._hotUpdating&&(Array.isArray(h)?h.push(L):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let l,f,m=new Set,E=new Set,h;const p=r.state.value[e];!o&&!p&&(process.env.NODE_ENV==="production"||!s)&&(r.state.value[e]={});const b=k.ref({});let O;function _(L){let R;l=f=!1,process.env.NODE_ENV!=="production"&&(h=[]),typeof L=="function"?(L(r.state.value[e]),R={type:gt.patchFunction,storeId:e,events:h}):(yn(r.state.value[e],L),R={type:gt.patchObject,payload:L,storeId:e,events:h});const B=O=Symbol();k.nextTick().then(()=>{O===B&&(l=!0)}),f=!0,ut(m,R,r.state.value[e])}const S=o?function(){const{state:R}=n,B=R?R():{};this.$patch(te=>{Se(te,B)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`)}:gr;function A(){i.stop(),m.clear(),E.clear(),r._s.delete(e)}const N=(L,R="")=>{if(br in L)return L[gn]=R,L;const B=function(){kt(r);const te=Array.from(arguments),$=new Set,M=new Set;function C(j){$.add(j)}function x(j){M.add(j)}ut(E,{args:te,name:B[gn],store:g,after:C,onError:x});let w;try{w=L.apply(this&&this.$id===e?this:g,te)}catch(j){throw ut(M,j),j}return w instanceof Promise?w.then(j=>(ut($,j),j)).catch(j=>(ut(M,j),Promise.reject(j))):(ut($,w),w)};return B[br]=!0,B[gn]=R,B},P=k.markRaw({actions:{},getters:{},state:[],hotState:b}),D={_p:r,$id:e,$onAction:yr.bind(null,E),$patch:_,$reset:S,$subscribe(L,R={}){const B=yr(m,L,R.detached,()=>te()),te=i.run(()=>k.watch(()=>r.state.value[e],$=>{(R.flush==="sync"?f:l)&&L({storeId:e,type:gt.direct,events:h},$)},Se({},c,R)));return B},$dispose:A},g=k.reactive(process.env.NODE_ENV!=="production"||process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&lt?Se({_hmrPayload:P,_customProperties:k.markRaw(new Set)},D):D);r._s.set(e,g);const q=(r._a&&r._a.runWithContext||Vo)(()=>r._e.run(()=>(i=k.effectScope()).run(()=>t({action:N}))));for(const L in q){const R=q[L];if(k.isRef(R)&&!Or(R)||k.isReactive(R))process.env.NODE_ENV!=="production"&&s?b.value[L]=k.toRef(q,L):o||(p&&Wo(R)&&(k.isRef(R)?R.value=p[L]:yn(R,p[L])),r.state.value[e][L]=R),process.env.NODE_ENV!=="production"&&P.state.push(L);else if(typeof R=="function"){const B=process.env.NODE_ENV!=="production"&&s?R:N(R,L);q[L]=B,process.env.NODE_ENV!=="production"&&(P.actions[L]=R),a.actions[L]=R}else process.env.NODE_ENV!=="production"&&Or(R)&&(P.getters[L]=o?n.getters[L]:R,lt&&(q._getters||(q._getters=k.markRaw([]))).push(L))}if(Se(g,q),Se(k.toRaw(g),q),Object.defineProperty(g,"$state",{get:()=>process.env.NODE_ENV!=="production"&&s?b.value:r.state.value[e],set:L=>{if(process.env.NODE_ENV!=="production"&&s)throw new Error("cannot set hotState");_(R=>{Se(R,L)})}}),process.env.NODE_ENV!=="production"&&(g._hotUpdate=k.markRaw(L=>{g._hotUpdating=!0,L._hmrPayload.state.forEach(R=>{if(R in g.$state){const B=L.$state[R],te=g.$state[R];typeof B=="object"&&Je(B)&&Je(te)?Er(B,te):L.$state[R]=te}g[R]=k.toRef(L.$state,R)}),Object.keys(g.$state).forEach(R=>{R in L.$state||delete g[R]}),l=!1,f=!1,r.state.value[e]=k.toRef(L._hmrPayload,"hotState"),f=!0,k.nextTick().then(()=>{l=!0});for(const R in L._hmrPayload.actions){const B=L[R];g[R]=N(B,R)}for(const R in L._hmrPayload.getters){const B=L._hmrPayload.getters[R],te=o?k.computed(()=>(kt(r),B.call(g,g))):B;g[R]=te}Object.keys(g._hmrPayload.getters).forEach(R=>{R in L._hmrPayload.getters||delete g[R]}),Object.keys(g._hmrPayload.actions).forEach(R=>{R in L._hmrPayload.actions||delete g[R]}),g._hmrPayload=L._hmrPayload,g._getters=L._getters,g._hotUpdating=!1})),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&lt){const L={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(R=>{Object.defineProperty(g,R,Se({value:g[R]},L))})}return r._p.forEach(L=>{if(process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&lt){const R=i.run(()=>L({store:g,app:r._a,pinia:r,options:a}));Object.keys(R||{}).forEach(B=>g._customProperties.add(B)),Se(g,R)}else Se(g,i.run(()=>L({store:g,app:r._a,pinia:r,options:a})))}),process.env.NODE_ENV!=="production"&&g.$state&&typeof g.$state=="object"&&typeof g.$state.constructor=="function"&&!g.$state.constructor.toString().includes("[native code]")&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be
1
+ (function(Ne,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],r):(Ne=typeof globalThis<"u"?globalThis:Ne||self,r(Ne.CoreLib={},Ne.Vue))})(this,(function(Ne,r){"use strict";function Bm(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,a.get?a:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const fl=Bm(r);let Ra=null;function Fm(e){if(Ra!==null){console.warn("[LinID CoreLib] Module Federation has already been initialized. Re-initialization is ignored.");return}Ra=e}function Ps(){if(Ra===null)throw new Error("[LinID CoreLib] Module Federation is not initialized. Call setModuleFederation() first.");return Ra}const Ns=e=>r.defineAsyncComponent(()=>Ps().loadRemote(e).then(t=>{if(!t?.default)throw new Error(`Failed to load component from ${e}`);return t.default}));const Sr=typeof window<"u";let Kn;const Pa=e=>Kn=e;process.env.NODE_ENV;const vl=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function Yn(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var ea;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(ea||(ea={}));function Is(e,t){for(const n in t){const a=t[n];if(!(n in e))continue;const o=e[n];Yn(o)&&Yn(a)&&!r.isRef(a)&&!r.isReactive(a)?e[n]=Is(o,a):e[n]=a}return e}const Ds=()=>{};function $s(e,t,n,a=Ds){e.add(t);const o=()=>{e.delete(t)&&a()};return!n&&r.getCurrentScope()&&r.onScopeDispose(o),o}function wr(e,...t){e.forEach(n=>{n(...t)})}const zm=e=>e(),Bs=Symbol(),ml=Symbol();function hl(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,a)=>e.set(a,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const a=t[n],o=e[n];Yn(o)&&Yn(a)&&e.hasOwnProperty(n)&&!r.isRef(a)&&!r.isReactive(a)?e[n]=hl(o,a):e[n]=a}return e}const Hm=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function jm(e){return!Yn(e)||!Object.prototype.hasOwnProperty.call(e,Hm)}const{assign:Yt}=Object;function Fs(e){return!!(r.isRef(e)&&e.effect)}function zs(e,t,n,a){const{state:o,actions:l,getters:i}=t,s=n.state.value[e];let u;function d(){!s&&(process.env.NODE_ENV==="production"||!a)&&(n.state.value[e]=o?o():{});const c=process.env.NODE_ENV!=="production"&&a?r.toRefs(r.ref(o?o():{}).value):r.toRefs(n.state.value[e]);return Yt(c,l,Object.keys(i||{}).reduce((g,v)=>(process.env.NODE_ENV!=="production"&&v in c&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${v}" in store "${e}".`),g[v]=r.markRaw(r.computed(()=>{Pa(n);const h=n._s.get(e);return i[v].call(h,h)})),g),{}))}return u=gl(e,d,t,n,a,!0),u}function gl(e,t,n={},a,o,l){let i;const s=Yt({actions:{}},n);if(process.env.NODE_ENV!=="production"&&!a._e.active)throw new Error("Pinia destroyed");const u={deep:!0};process.env.NODE_ENV!=="production"&&(u.onTrigger=q=>{d?h=q:d==!1&&!C._hotUpdating&&(Array.isArray(h)?h.push(q):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let d,c,g=new Set,v=new Set,h;const f=a.state.value[e];!l&&!f&&(process.env.NODE_ENV==="production"||!o)&&(a.state.value[e]={});const _=r.ref({});let p;function b(q){let T;d=c=!1,process.env.NODE_ENV!=="production"&&(h=[]),typeof q=="function"?(q(a.state.value[e]),T={type:ea.patchFunction,storeId:e,events:h}):(hl(a.state.value[e],q),T={type:ea.patchObject,payload:q,storeId:e,events:h});const M=p=Symbol();r.nextTick().then(()=>{p===M&&(d=!0)}),c=!0,wr(g,T,a.state.value[e])}const S=l?function(){const{state:T}=n,M=T?T():{};this.$patch(O=>{Yt(O,M)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`)}:Ds;function y(){i.stop(),g.clear(),v.clear(),a._s.delete(e)}const m=(q,T="")=>{if(Bs in q)return q[ml]=T,q;const M=function(){Pa(a);const O=Array.from(arguments),k=new Set,A=new Set;function D(Z){k.add(Z)}function z(Z){A.add(Z)}wr(v,{args:O,name:M[ml],store:C,after:D,onError:z});let F;try{F=q.apply(this&&this.$id===e?this:C,O)}catch(Z){throw wr(A,Z),Z}return F instanceof Promise?F.then(Z=>(wr(k,Z),Z)).catch(Z=>(wr(A,Z),Promise.reject(Z))):(wr(k,F),F)};return M[Bs]=!0,M[ml]=T,M},w=r.markRaw({actions:{},getters:{},state:[],hotState:_}),E={_p:a,$id:e,$onAction:$s.bind(null,v),$patch:b,$reset:S,$subscribe(q,T={}){const M=$s(g,q,T.detached,()=>O()),O=i.run(()=>r.watch(()=>a.state.value[e],k=>{(T.flush==="sync"?c:d)&&q({storeId:e,type:ea.direct,events:h},k)},Yt({},u,T)));return M},$dispose:y},C=r.reactive(process.env.NODE_ENV!=="production"||process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Sr?Yt({_hmrPayload:w,_customProperties:r.markRaw(new Set)},E):E);a._s.set(e,C);const H=(a._a&&a._a.runWithContext||zm)(()=>a._e.run(()=>(i=r.effectScope()).run(()=>t({action:m}))));for(const q in H){const T=H[q];if(r.isRef(T)&&!Fs(T)||r.isReactive(T))process.env.NODE_ENV!=="production"&&o?_.value[q]=r.toRef(H,q):l||(f&&jm(T)&&(r.isRef(T)?T.value=f[q]:hl(T,f[q])),a.state.value[e][q]=T),process.env.NODE_ENV!=="production"&&w.state.push(q);else if(typeof T=="function"){const M=process.env.NODE_ENV!=="production"&&o?T:m(T,q);H[q]=M,process.env.NODE_ENV!=="production"&&(w.actions[q]=T),s.actions[q]=T}else process.env.NODE_ENV!=="production"&&Fs(T)&&(w.getters[q]=l?n.getters[q]:T,Sr&&(H._getters||(H._getters=r.markRaw([]))).push(q))}if(Yt(C,H),Yt(r.toRaw(C),H),Object.defineProperty(C,"$state",{get:()=>process.env.NODE_ENV!=="production"&&o?_.value:a.state.value[e],set:q=>{if(process.env.NODE_ENV!=="production"&&o)throw new Error("cannot set hotState");b(T=>{Yt(T,q)})}}),process.env.NODE_ENV!=="production"&&(C._hotUpdate=r.markRaw(q=>{C._hotUpdating=!0,q._hmrPayload.state.forEach(T=>{if(T in C.$state){const M=q.$state[T],O=C.$state[T];typeof M=="object"&&Yn(M)&&Yn(O)?Is(M,O):q.$state[T]=O}C[T]=r.toRef(q.$state,T)}),Object.keys(C.$state).forEach(T=>{T in q.$state||delete C[T]}),d=!1,c=!1,a.state.value[e]=r.toRef(q._hmrPayload,"hotState"),c=!0,r.nextTick().then(()=>{d=!0});for(const T in q._hmrPayload.actions){const M=q[T];C[T]=m(M,T)}for(const T in q._hmrPayload.getters){const M=q._hmrPayload.getters[T],O=l?r.computed(()=>(Pa(a),M.call(C,C))):M;C[T]=O}Object.keys(C._hmrPayload.getters).forEach(T=>{T in q._hmrPayload.getters||delete C[T]}),Object.keys(C._hmrPayload.actions).forEach(T=>{T in q._hmrPayload.actions||delete C[T]}),C._hmrPayload=q._hmrPayload,C._getters=q._getters,C._hotUpdating=!1})),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Sr){const q={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(T=>{Object.defineProperty(C,T,Yt({value:C[T]},q))})}return a._p.forEach(q=>{if(process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Sr){const T=i.run(()=>q({store:C,app:a._a,pinia:a,options:s}));Object.keys(T||{}).forEach(M=>C._customProperties.add(M)),Yt(C,T)}else Yt(C,i.run(()=>q({store:C,app:a._a,pinia:a,options:s})))}),process.env.NODE_ENV!=="production"&&C.$state&&typeof C.$state=="object"&&typeof C.$state.constructor=="function"&&!C.$state.constructor.toString().includes("[native code]")&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be
2
2
  state: () => new MyClass()
3
- Found in store "${g.$id}".`),p&&o&&n.hydrate&&n.hydrate(g.$state,p),l=!0,f=!0,g}function Mt(e,t,n){let r;const s=typeof t=="function";r=s?n:t;function o(i,a){const c=k.hasInjectionContext();if(i=(process.env.NODE_ENV==="test"&&Xe&&Xe._testing?null:i)||(c?k.inject(En,null):null),i&&kt(i),process.env.NODE_ENV!=="production"&&!Xe)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
3
+ Found in store "${C.$id}".`),f&&l&&n.hydrate&&n.hydrate(C.$state,f),d=!0,c=!0,C}function Na(e,t,n){let a;const o=typeof t=="function";a=o?n:t;function l(i,s){const u=r.hasInjectionContext();if(i=(process.env.NODE_ENV==="test"&&Kn&&Kn._testing?null:i)||(u?r.inject(vl,null):null),i&&Pa(i),process.env.NODE_ENV!=="production"&&!Kn)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
4
4
  See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
5
- This will fail in production.`);i=Xe,i._s.has(e)||(s?bn(e,t,r,i):Nr(e,r,i),process.env.NODE_ENV!=="production"&&(o._pinia=i));const l=i._s.get(e);if(process.env.NODE_ENV!=="production"&&a){const f="__hot:"+e,m=s?bn(f,t,r,i,!0):Nr(f,Se({},r),i,!0);a._hotUpdate(m),delete i.state.value[f],i._s.delete(f)}if(process.env.NODE_ENV!=="production"&&lt){const f=k.getCurrentInstance();if(f&&f.proxy&&!a){const m=f.proxy,E="_pStores"in m?m._pStores:m._pStores={};E[e]=l}}return l}return o.$id=e,o}let Ft=null;function Yo(e){if(Ft!==null){console.warn("[LinID CoreLib] Pinia store has already been initialized. Re-initialization is ignored.");return}Ft=e}function yt(){if(Ft===null)throw new Error("[LinID CoreLib] Pinia store is not initialized. Call setPiniaStore() first.");return Ft}const Sr=()=>Go(yt()),Go=Mt("linidZoneStore",{state:()=>({zones:{}}),actions:{register(e,t){this.zones[e]||(this.zones[e]=[]),this.zones[e].push(t)},registerOnce(e,t){this.zones[e]?.some(({plugin:n})=>n===t.plugin)||this.register(e,t)}}}),Qo=k.defineComponent({inheritAttrs:!1,__name:"LinidZoneRenderer",props:{zone:{}},setup(e){const t=e,r=(Sr().zones[t.zone]||[]).map(s=>({...s,component:hr(s.plugin)}));return(s,o)=>(k.openBlock(),k.createElementBlock(k.Fragment,null,[(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(k.unref(r),(i,a)=>(k.openBlock(),k.createBlock(k.resolveDynamicComponent(i.component),k.mergeProps({key:i.plugin+a},{ref_for:!0},{...s.$attrs,...i.props}),null,16))),128)),k.unref(r).length===0?k.renderSlot(s.$slots,"default",{key:0}):k.createCommentVNode("",!0)],64))}});var On=function(e,t){return On=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[s]=r[s])},On(e,t)};function Ut(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");On(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function Nn(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Sn(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),s,o=[],i;try{for(;(t===void 0||t-- >0)&&!(s=r.next()).done;)o.push(s.value)}catch(a){i={error:a}}finally{try{s&&!s.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return o}function Tn(e,t,n){if(n||arguments.length===2)for(var r=0,s=t.length,o;r<s;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function je(e){return typeof e=="function"}function Tr(e){var t=function(r){Error.call(r),r.stack=new Error().stack},n=e(t);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var An=Tr(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
6
- `+n.map(function(r,s){return s+1+") "+r.toString()}).join(`
7
- `):"",this.name="UnsubscriptionError",this.errors=n}});function Rn(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var $t=(function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,n,r,s,o;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var a=Nn(i),c=a.next();!c.done;c=a.next()){var l=c.value;l.remove(this)}}catch(b){t={error:b}}finally{try{c&&!c.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}else i.remove(this);var f=this.initialTeardown;if(je(f))try{f()}catch(b){o=b instanceof An?b.errors:[b]}var m=this._finalizers;if(m){this._finalizers=null;try{for(var E=Nn(m),h=E.next();!h.done;h=E.next()){var p=h.value;try{vr(p)}catch(b){o=o??[],b instanceof An?o=Tn(Tn([],Sn(o)),Sn(b.errors)):o.push(b)}}}catch(b){r={error:b}}finally{try{h&&!h.done&&(s=E.return)&&s.call(E)}finally{if(r)throw r.error}}}if(o)throw new An(o)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)vr(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&Rn(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&Rn(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})(),Ar=$t.EMPTY;function Rr(e){return e instanceof $t||e&&"closed"in e&&je(e.remove)&&je(e.add)&&je(e.unsubscribe)}function vr(e){je(e)?e():e.unsubscribe()}var Ko={Promise:void 0},Xo={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout.apply(void 0,Tn([e,t],Sn(n)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function Jo(e){Xo.setTimeout(function(){throw e})}function Lr(){}function xt(e){e()}var Pr=(function(e){Ut(t,e);function t(n){var r=e.call(this)||this;return r.isStopped=!1,n?(r.destination=n,Rr(n)&&n.add(r)):r.destination=ei,r}return t.create=function(n,r,s){return new vn(n,r,s)},t.prototype.next=function(n){this.isStopped||this._next(n)},t.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(n){this.destination.next(n)},t.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t})($t),zo=(function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(r){jt(r)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(r){jt(r)}else jt(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){jt(n)}},e})(),vn=(function(e){Ut(t,e);function t(n,r,s){var o=e.call(this)||this,i;return je(n)||!n?i={next:n??void 0,error:r??void 0,complete:s??void 0}:i=n,o.destination=new zo(i),o}return t})(Pr);function jt(e){Jo(e)}function Zo(e){throw e}var ei={closed:!0,next:Lr,error:Zo,complete:Lr},ti=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function ni(e){return e}function ri(e){return e.length===0?ni:e.length===1?e[0]:function(n){return e.reduce(function(r,s){return s(r)},n)}}var Cr=(function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(t,n,r){var s=this,o=oi(t)?t:new vn(t,n,r);return xt(function(){var i=s,a=i.operator,c=i.source;o.add(a?a.call(o,c):c?s._subscribe(o):s._trySubscribe(o))}),o},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},e.prototype.forEach=function(t,n){var r=this;return n=Ir(n),new n(function(s,o){var i=new vn({next:function(a){try{t(a)}catch(c){o(c),i.unsubscribe()}},error:o,complete:s});r.subscribe(i)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[ti]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return ri(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=Ir(t),new t(function(r,s){var o;n.subscribe(function(i){return o=i},function(i){return s(i)},function(){return r(o)})})},e.create=function(t){return new e(t)},e})();function Ir(e){var t;return(t=e??Ko.Promise)!==null&&t!==void 0?t:Promise}function si(e){return e&&je(e.next)&&je(e.error)&&je(e.complete)}function oi(e){return e&&e instanceof Pr||si(e)&&Rr(e)}var ii=Tr(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Dr=(function(e){Ut(t,e);function t(){var n=e.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return t.prototype.lift=function(n){var r=new wr(this,this);return r.operator=n,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new ii},t.prototype.next=function(n){var r=this;xt(function(){var s,o;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var i=Nn(r.currentObservers),a=i.next();!a.done;a=i.next()){var c=a.value;c.next(n)}}catch(l){s={error:l}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(s)throw s.error}}}})},t.prototype.error=function(n){var r=this;xt(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=n;for(var s=r.observers;s.length;)s.shift().error(n)}})},t.prototype.complete=function(){var n=this;xt(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var r=n.observers;r.length;)r.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},t.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},t.prototype._innerSubscribe=function(n){var r=this,s=this,o=s.hasError,i=s.isStopped,a=s.observers;return o||i?Ar:(this.currentObservers=null,a.push(n),new $t(function(){r.currentObservers=null,Rn(a,n)}))},t.prototype._checkFinalizedStatuses=function(n){var r=this,s=r.hasError,o=r.thrownError,i=r.isStopped;s?n.error(o):i&&n.complete()},t.prototype.asObservable=function(){var n=new Cr;return n.source=this,n},t.create=function(n,r){return new wr(n,r)},t})(Cr),wr=(function(e){Ut(t,e);function t(n,r){var s=e.call(this)||this;return s.destination=n,s.source=r,s}return t.prototype.next=function(n){var r,s;(s=(r=this.destination)===null||r===void 0?void 0:r.next)===null||s===void 0||s.call(r,n)},t.prototype.error=function(n){var r,s;(s=(r=this.destination)===null||r===void 0?void 0:r.error)===null||s===void 0||s.call(r,n)},t.prototype.complete=function(){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||r===void 0||r.call(n)},t.prototype._subscribe=function(n){var r,s;return(s=(r=this.source)===null||r===void 0?void 0:r.subscribe(n))!==null&&s!==void 0?s:Ar},t})(Dr);const Ln=new Dr;function ai(e,t){const n=k.ref(!1);let r;function s(o){if(o.key!==e)return;const i=o.data;if(i.type==="close"){n.value=!1;return}n.value=!0,t?.(i)}return k.onMounted(()=>{r=Ln.subscribe(s)}),k.onUnmounted(()=>{r?.unsubscribe()}),{show:n}}function kr(e,t){return function(){return e.apply(t,arguments)}}const{toString:ci}=Object.prototype,{getPrototypeOf:Pn}=Object,{iterator:Bt,toStringTag:Mr}=Symbol,Ht=(e=>t=>{const n=ci.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Pe=e=>(e=e.toLowerCase(),t=>Ht(t)===e),Vt=e=>t=>typeof t===e,{isArray:ft}=Array,dt=Vt("undefined");function bt(e){return e!==null&&!dt(e)&&e.constructor!==null&&!dt(e.constructor)&&be(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Fr=Pe("ArrayBuffer");function li(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Fr(e.buffer),t}const ui=Vt("string"),be=Vt("function"),Ur=Vt("number"),Ot=e=>e!==null&&typeof e=="object",fi=e=>e===!0||e===!1,qt=e=>{if(Ht(e)!=="object")return!1;const t=Pn(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Mr in e)&&!(Bt in e)},di=e=>{if(!Ot(e)||bt(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},pi=Pe("Date"),mi=Pe("File"),_i=e=>!!(e&&typeof e.uri<"u"),hi=e=>e&&typeof e.getParts<"u",Ei=Pe("Blob"),gi=Pe("FileList"),yi=e=>Ot(e)&&be(e.pipe);function bi(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const $r=bi(),xr=typeof $r.FormData<"u"?$r.FormData:void 0,Oi=e=>{let t;return e&&(xr&&e instanceof xr||be(e.append)&&((t=Ht(e))==="formdata"||t==="object"&&be(e.toString)&&e.toString()==="[object FormData]"))},Ni=Pe("URLSearchParams"),[Si,Ti,Ai,Ri]=["ReadableStream","Request","Response","Headers"].map(Pe),vi=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Nt(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),ft(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{if(bt(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function jr(e,t){if(bt(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const ze=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Br=e=>!dt(e)&&e!==ze;function Cn(){const{caseless:e,skipUndefined:t}=Br(this)&&this||{},n={},r=(s,o)=>{if(o==="__proto__"||o==="constructor"||o==="prototype")return;const i=e&&jr(n,o)||o;qt(n[i])&&qt(s)?n[i]=Cn(n[i],s):qt(s)?n[i]=Cn({},s):ft(s)?n[i]=s.slice():(!t||!dt(s))&&(n[i]=s)};for(let s=0,o=arguments.length;s<o;s++)arguments[s]&&Nt(arguments[s],r);return n}const Li=(e,t,n,{allOwnKeys:r}={})=>(Nt(t,(s,o)=>{n&&be(s)?Object.defineProperty(e,o,{value:kr(s,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,o,{value:s,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),Pi=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Ci=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Ii=(e,t,n,r)=>{let s,o,i;const a={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!a[i]&&(t[i]=e[i],a[i]=!0);e=n!==!1&&Pn(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Di=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},wi=e=>{if(!e)return null;if(ft(e))return e;let t=e.length;if(!Ur(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},ki=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Pn(Uint8Array)),Mi=(e,t)=>{const r=(e&&e[Bt]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},Fi=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Ui=Pe("HTMLFormElement"),$i=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Hr=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),xi=Pe("RegExp"),Vr=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Nt(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},ji=e=>{Vr(e,(t,n)=>{if(be(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(be(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Bi=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return ft(e)?r(e):r(String(e).split(t)),n},Hi=()=>{},Vi=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function qi(e){return!!(e&&be(e.append)&&e[Mr]==="FormData"&&e[Bt])}const Wi=e=>{const t=new Array(10),n=(r,s)=>{if(Ot(r)){if(t.indexOf(r)>=0)return;if(bt(r))return r;if(!("toJSON"in r)){t[s]=r;const o=ft(r)?[]:{};return Nt(r,(i,a)=>{const c=n(i,s+1);!dt(c)&&(o[a]=c)}),t[s]=void 0,o}}return r};return n(e,0)},Yi=Pe("AsyncFunction"),Gi=e=>e&&(Ot(e)||be(e))&&be(e.then)&&be(e.catch),qr=((e,t)=>e?setImmediate:t?((n,r)=>(ze.addEventListener("message",({source:s,data:o})=>{s===ze&&o===n&&r.length&&r.shift()()},!1),s=>{r.push(s),ze.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",be(ze.postMessage)),Qi=typeof queueMicrotask<"u"?queueMicrotask.bind(ze):typeof process<"u"&&process.nextTick||qr,y={isArray:ft,isArrayBuffer:Fr,isBuffer:bt,isFormData:Oi,isArrayBufferView:li,isString:ui,isNumber:Ur,isBoolean:fi,isObject:Ot,isPlainObject:qt,isEmptyObject:di,isReadableStream:Si,isRequest:Ti,isResponse:Ai,isHeaders:Ri,isUndefined:dt,isDate:pi,isFile:mi,isReactNativeBlob:_i,isReactNative:hi,isBlob:Ei,isRegExp:xi,isFunction:be,isStream:yi,isURLSearchParams:Ni,isTypedArray:ki,isFileList:gi,forEach:Nt,merge:Cn,extend:Li,trim:vi,stripBOM:Pi,inherits:Ci,toFlatObject:Ii,kindOf:Ht,kindOfTest:Pe,endsWith:Di,toArray:wi,forEachEntry:Mi,matchAll:Fi,isHTMLForm:Ui,hasOwnProperty:Hr,hasOwnProp:Hr,reduceDescriptors:Vr,freezeMethods:ji,toObjectSet:Bi,toCamelCase:$i,noop:Hi,toFiniteNumber:Vi,findKey:jr,global:ze,isContextDefined:Br,isSpecCompliantForm:qi,toJSONObject:Wi,isAsyncFn:Yi,isThenable:Gi,setImmediate:qr,asap:Qi,isIterable:e=>e!=null&&be(e[Bt])};let W=class xo extends Error{static from(t,n,r,s,o,i){const a=new xo(t.message,n||t.code,r,s,o);return a.cause=t,a.name=t.name,t.status!=null&&a.status==null&&(a.status=t.status),i&&Object.assign(a,i),a}constructor(t,n,r,s,o){super(t),Object.defineProperty(this,"message",{value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),s&&(this.request=s),o&&(this.response=o,this.status=o.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:y.toJSONObject(this.config),code:this.code,status:this.status}}};W.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",W.ERR_BAD_OPTION="ERR_BAD_OPTION",W.ECONNABORTED="ECONNABORTED",W.ETIMEDOUT="ETIMEDOUT",W.ERR_NETWORK="ERR_NETWORK",W.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",W.ERR_DEPRECATED="ERR_DEPRECATED",W.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",W.ERR_BAD_REQUEST="ERR_BAD_REQUEST",W.ERR_CANCELED="ERR_CANCELED",W.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",W.ERR_INVALID_URL="ERR_INVALID_URL";const Ki=null;function In(e){return y.isPlainObject(e)||y.isArray(e)}function Wr(e){return y.endsWith(e,"[]")?e.slice(0,-2):e}function Dn(e,t,n){return e?e.concat(t).map(function(s,o){return s=Wr(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function Xi(e){return y.isArray(e)&&!e.some(In)}const Ji=y.toFlatObject(y,{},null,function(t){return/^is[A-Z]/.test(t)});function Wt(e,t,n){if(!y.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=y.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,O){return!y.isUndefined(O[b])});const r=n.metaTokens,s=n.visitor||f,o=n.dots,i=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&y.isSpecCompliantForm(t);if(!y.isFunction(s))throw new TypeError("visitor must be a function");function l(p){if(p===null)return"";if(y.isDate(p))return p.toISOString();if(y.isBoolean(p))return p.toString();if(!c&&y.isBlob(p))throw new W("Blob is not supported. Use a Buffer instead.");return y.isArrayBuffer(p)||y.isTypedArray(p)?c&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function f(p,b,O){let _=p;if(y.isReactNative(t)&&y.isReactNativeBlob(p))return t.append(Dn(O,b,o),l(p)),!1;if(p&&!O&&typeof p=="object"){if(y.endsWith(b,"{}"))b=r?b:b.slice(0,-2),p=JSON.stringify(p);else if(y.isArray(p)&&Xi(p)||(y.isFileList(p)||y.endsWith(b,"[]"))&&(_=y.toArray(p)))return b=Wr(b),_.forEach(function(A,N){!(y.isUndefined(A)||A===null)&&t.append(i===!0?Dn([b],N,o):i===null?b:b+"[]",l(A))}),!1}return In(p)?!0:(t.append(Dn(O,b,o),l(p)),!1)}const m=[],E=Object.assign(Ji,{defaultVisitor:f,convertValue:l,isVisitable:In});function h(p,b){if(!y.isUndefined(p)){if(m.indexOf(p)!==-1)throw Error("Circular reference detected in "+b.join("."));m.push(p),y.forEach(p,function(_,S){(!(y.isUndefined(_)||_===null)&&s.call(t,_,y.isString(S)?S.trim():S,b,E))===!0&&h(_,b?b.concat(S):[S])}),m.pop()}}if(!y.isObject(e))throw new TypeError("data must be an object");return h(e),t}function Yr(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function wn(e,t){this._pairs=[],e&&Wt(e,this,t)}const Gr=wn.prototype;Gr.append=function(t,n){this._pairs.push([t,n])},Gr.toString=function(t){const n=t?function(r){return t.call(this,r,Yr)}:Yr;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function zi(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Qr(e,t,n){if(!t)return e;const r=n&&n.encode||zi,s=y.isFunction(n)?{serialize:n}:n,o=s&&s.serialize;let i;if(o?i=o(t,s):i=y.isURLSearchParams(t)?t.toString():new wn(t,s).toString(r),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Kr{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){y.forEach(this.handlers,function(r){r!==null&&t(r)})}}const kn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Zi={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:wn,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Mn=typeof window<"u"&&typeof document<"u",Fn=typeof navigator=="object"&&navigator||void 0,ea=Mn&&(!Fn||["ReactNative","NativeScript","NS"].indexOf(Fn.product)<0),ta=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",na=Mn&&window.location.href||"http://localhost",Ee={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Mn,hasStandardBrowserEnv:ea,hasStandardBrowserWebWorkerEnv:ta,navigator:Fn,origin:na},Symbol.toStringTag,{value:"Module"})),...Zi};function ra(e,t){return Wt(e,new Ee.classes.URLSearchParams,{visitor:function(n,r,s,o){return Ee.isNode&&y.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function sa(e){return y.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function oa(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],t[o]=e[o];return t}function Xr(e){function t(n,r,s,o){let i=n[o++];if(i==="__proto__")return!0;const a=Number.isFinite(+i),c=o>=n.length;return i=!i&&y.isArray(s)?s.length:i,c?(y.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!a):((!s[i]||!y.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&y.isArray(s[i])&&(s[i]=oa(s[i])),!a)}if(y.isFormData(e)&&y.isFunction(e.entries)){const n={};return y.forEachEntry(e,(r,s)=>{t(sa(r),s,n,0)}),n}return null}function ia(e,t,n){if(y.isString(e))try{return(t||JSON.parse)(e),y.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const St={transitional:kn,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=y.isObject(t);if(o&&y.isHTMLForm(t)&&(t=new FormData(t)),y.isFormData(t))return s?JSON.stringify(Xr(t)):t;if(y.isArrayBuffer(t)||y.isBuffer(t)||y.isStream(t)||y.isFile(t)||y.isBlob(t)||y.isReadableStream(t))return t;if(y.isArrayBufferView(t))return t.buffer;if(y.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return ra(t,this.formSerializer).toString();if((a=y.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Wt(a?{"files[]":t}:t,c&&new c,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),ia(t)):t}],transformResponse:[function(t){const n=this.transitional||St.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(y.isResponse(t)||y.isReadableStream(t))return t;if(t&&y.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t,this.parseReviver)}catch(a){if(i)throw a.name==="SyntaxError"?W.from(a,W.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ee.classes.FormData,Blob:Ee.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};y.forEach(["delete","get","head","post","put","patch"],e=>{St.headers[e]={}});const aa=y.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ca=e=>{const t={};let n,r,s;return e&&e.split(`
8
- `).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&aa[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Jr=Symbol("internals");function Tt(e){return e&&String(e).trim().toLowerCase()}function Yt(e){return e===!1||e==null?e:y.isArray(e)?e.map(Yt):String(e)}function la(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const ua=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Un(e,t,n,r,s){if(y.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!y.isString(t)){if(y.isString(r))return t.indexOf(r)!==-1;if(y.isRegExp(r))return r.test(t)}}function fa(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function da(e,t){const n=y.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,o,i){return this[r].call(this,t,s,o,i)},configurable:!0})})}let Oe=class{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(a,c,l){const f=Tt(c);if(!f)throw new Error("header name must be a non-empty string");const m=y.findKey(s,f);(!m||s[m]===void 0||l===!0||l===void 0&&s[m]!==!1)&&(s[m||c]=Yt(a))}const i=(a,c)=>y.forEach(a,(l,f)=>o(l,f,c));if(y.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(y.isString(t)&&(t=t.trim())&&!ua(t))i(ca(t),n);else if(y.isObject(t)&&y.isIterable(t)){let a={},c,l;for(const f of t){if(!y.isArray(f))throw TypeError("Object iterator must return a key-value pair");a[l=f[0]]=(c=a[l])?y.isArray(c)?[...c,f[1]]:[c,f[1]]:f[1]}i(a,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=Tt(t),t){const r=y.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return la(s);if(y.isFunction(n))return n.call(this,s,r);if(y.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Tt(t),t){const r=y.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Un(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=Tt(i),i){const a=y.findKey(r,i);a&&(!n||Un(r,r[a],a,n))&&(delete r[a],s=!0)}}return y.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||Un(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return y.forEach(this,(s,o)=>{const i=y.findKey(r,o);if(i){n[i]=Yt(s),delete n[o];return}const a=t?fa(o):String(o).trim();a!==o&&delete n[o],n[a]=Yt(s),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return y.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&y.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
9
- `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[Jr]=this[Jr]={accessors:{}}).accessors,s=this.prototype;function o(i){const a=Tt(i);r[a]||(da(s,i),r[a]=!0)}return y.isArray(t)?t.forEach(o):o(t),this}};Oe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),y.reduceDescriptors(Oe.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),y.freezeMethods(Oe);function $n(e,t){const n=this||St,r=t||n,s=Oe.from(r.headers);let o=r.data;return y.forEach(e,function(a){o=a.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function zr(e){return!!(e&&e.__CANCEL__)}let At=class extends W{constructor(t,n,r){super(t??"canceled",W.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function Zr(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new W("Request failed with status code "+n.status,[W.ERR_BAD_REQUEST,W.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function pa(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ma(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(c){const l=Date.now(),f=r[o];i||(i=l),n[s]=c,r[s]=l;let m=o,E=0;for(;m!==s;)E+=n[m++],m=m%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),l-i<t)return;const h=f&&l-f;return h?Math.round(E*1e3/h):void 0}}function _a(e,t){let n=0,r=1e3/t,s,o;const i=(l,f=Date.now())=>{n=f,s=null,o&&(clearTimeout(o),o=null),e(...l)};return[(...l)=>{const f=Date.now(),m=f-n;m>=r?i(l,f):(s=l,o||(o=setTimeout(()=>{o=null,i(s)},r-m)))},()=>s&&i(s)]}const Gt=(e,t,n=3)=>{let r=0;const s=ma(50,250);return _a(o=>{const i=o.loaded,a=o.lengthComputable?o.total:void 0,c=i-r,l=s(c),f=i<=a;r=i;const m={loaded:i,total:a,progress:a?i/a:void 0,bytes:c,rate:l||void 0,estimated:l&&a&&f?(a-i)/l:void 0,event:o,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(m)},n)},es=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},ts=e=>(...t)=>y.asap(()=>e(...t)),ha=Ee.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Ee.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Ee.origin),Ee.navigator&&/(msie|trident)/i.test(Ee.navigator.userAgent)):()=>!0,Ea=Ee.hasStandardBrowserEnv?{write(e,t,n,r,s,o,i){if(typeof document>"u")return;const a=[`${e}=${encodeURIComponent(t)}`];y.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),y.isString(r)&&a.push(`path=${r}`),y.isString(s)&&a.push(`domain=${s}`),o===!0&&a.push("secure"),y.isString(i)&&a.push(`SameSite=${i}`),document.cookie=a.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function ga(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function ya(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function ns(e,t,n){let r=!ga(t);return e&&(r||n==!1)?ya(e,t):t}const rs=e=>e instanceof Oe?{...e}:e;function Ze(e,t){t=t||{};const n={};function r(l,f,m,E){return y.isPlainObject(l)&&y.isPlainObject(f)?y.merge.call({caseless:E},l,f):y.isPlainObject(f)?y.merge({},f):y.isArray(f)?f.slice():f}function s(l,f,m,E){if(y.isUndefined(f)){if(!y.isUndefined(l))return r(void 0,l,m,E)}else return r(l,f,m,E)}function o(l,f){if(!y.isUndefined(f))return r(void 0,f)}function i(l,f){if(y.isUndefined(f)){if(!y.isUndefined(l))return r(void 0,l)}else return r(void 0,f)}function a(l,f,m){if(m in t)return r(l,f);if(m in e)return r(void 0,l)}const c={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(l,f,m)=>s(rs(l),rs(f),m,!0)};return y.forEach(Object.keys({...e,...t}),function(f){if(f==="__proto__"||f==="constructor"||f==="prototype")return;const m=y.hasOwnProp(c,f)?c[f]:s,E=m(e[f],t[f],f);y.isUndefined(E)&&m!==a||(n[f]=E)}),n}const ss=e=>{const t=Ze({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:o,headers:i,auth:a}=t;if(t.headers=i=Oe.from(i),t.url=Qr(ns(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&i.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),y.isFormData(n)){if(Ee.hasStandardBrowserEnv||Ee.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(y.isFunction(n.getHeaders)){const c=n.getHeaders(),l=["content-type","content-length"];Object.entries(c).forEach(([f,m])=>{l.includes(f.toLowerCase())&&i.set(f,m)})}}if(Ee.hasStandardBrowserEnv&&(r&&y.isFunction(r)&&(r=r(t)),r||r!==!1&&ha(t.url))){const c=s&&o&&Ea.read(o);c&&i.set(s,c)}return t},ba=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const s=ss(e);let o=s.data;const i=Oe.from(s.headers).normalize();let{responseType:a,onUploadProgress:c,onDownloadProgress:l}=s,f,m,E,h,p;function b(){h&&h(),p&&p(),s.cancelToken&&s.cancelToken.unsubscribe(f),s.signal&&s.signal.removeEventListener("abort",f)}let O=new XMLHttpRequest;O.open(s.method.toUpperCase(),s.url,!0),O.timeout=s.timeout;function _(){if(!O)return;const A=Oe.from("getAllResponseHeaders"in O&&O.getAllResponseHeaders()),P={data:!a||a==="text"||a==="json"?O.responseText:O.response,status:O.status,statusText:O.statusText,headers:A,config:e,request:O};Zr(function(g){n(g),b()},function(g){r(g),b()},P),O=null}"onloadend"in O?O.onloadend=_:O.onreadystatechange=function(){!O||O.readyState!==4||O.status===0&&!(O.responseURL&&O.responseURL.indexOf("file:")===0)||setTimeout(_)},O.onabort=function(){O&&(r(new W("Request aborted",W.ECONNABORTED,e,O)),O=null)},O.onerror=function(N){const P=N&&N.message?N.message:"Network Error",D=new W(P,W.ERR_NETWORK,e,O);D.event=N||null,r(D),O=null},O.ontimeout=function(){let N=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const P=s.transitional||kn;s.timeoutErrorMessage&&(N=s.timeoutErrorMessage),r(new W(N,P.clarifyTimeoutError?W.ETIMEDOUT:W.ECONNABORTED,e,O)),O=null},o===void 0&&i.setContentType(null),"setRequestHeader"in O&&y.forEach(i.toJSON(),function(N,P){O.setRequestHeader(P,N)}),y.isUndefined(s.withCredentials)||(O.withCredentials=!!s.withCredentials),a&&a!=="json"&&(O.responseType=s.responseType),l&&([E,p]=Gt(l,!0),O.addEventListener("progress",E)),c&&O.upload&&([m,h]=Gt(c),O.upload.addEventListener("progress",m),O.upload.addEventListener("loadend",h)),(s.cancelToken||s.signal)&&(f=A=>{O&&(r(!A||A.type?new At(null,e,O):A),O.abort(),O=null)},s.cancelToken&&s.cancelToken.subscribe(f),s.signal&&(s.signal.aborted?f():s.signal.addEventListener("abort",f)));const S=pa(s.url);if(S&&Ee.protocols.indexOf(S)===-1){r(new W("Unsupported protocol "+S+":",W.ERR_BAD_REQUEST,e));return}O.send(o||null)})},Oa=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,s;const o=function(l){if(!s){s=!0,a();const f=l instanceof Error?l:this.reason;r.abort(f instanceof W?f:new At(f instanceof Error?f.message:f))}};let i=t&&setTimeout(()=>{i=null,o(new W(`timeout of ${t}ms exceeded`,W.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(o):l.removeEventListener("abort",o)}),e=null)};e.forEach(l=>l.addEventListener("abort",o));const{signal:c}=r;return c.unsubscribe=()=>y.asap(a),c}},Na=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,s;for(;r<n;)s=r+t,yield e.slice(r,s),r=s},Sa=async function*(e,t){for await(const n of Ta(e))yield*Na(n,t)},Ta=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},os=(e,t,n,r)=>{const s=Sa(e,t);let o=0,i,a=c=>{i||(i=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:l,value:f}=await s.next();if(l){a(),c.close();return}let m=f.byteLength;if(n){let E=o+=m;n(E)}c.enqueue(new Uint8Array(f))}catch(l){throw a(l),l}},cancel(c){return a(c),s.return()}},{highWaterMark:2})},is=64*1024,{isFunction:Qt}=y,Aa=(({Request:e,Response:t})=>({Request:e,Response:t}))(y.global),{ReadableStream:as,TextEncoder:cs}=y.global,ls=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Ra=e=>{e=y.merge.call({skipUndefined:!0},Aa,e);const{fetch:t,Request:n,Response:r}=e,s=t?Qt(t):typeof fetch=="function",o=Qt(n),i=Qt(r);if(!s)return!1;const a=s&&Qt(as),c=s&&(typeof cs=="function"?(p=>b=>p.encode(b))(new cs):async p=>new Uint8Array(await new n(p).arrayBuffer())),l=o&&a&&ls(()=>{let p=!1;const b=new n(Ee.origin,{body:new as,method:"POST",get duplex(){return p=!0,"half"}}).headers.has("Content-Type");return p&&!b}),f=i&&a&&ls(()=>y.isReadableStream(new r("").body)),m={stream:f&&(p=>p.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(p=>{!m[p]&&(m[p]=(b,O)=>{let _=b&&b[p];if(_)return _.call(b);throw new W(`Response type '${p}' is not supported`,W.ERR_NOT_SUPPORT,O)})});const E=async p=>{if(p==null)return 0;if(y.isBlob(p))return p.size;if(y.isSpecCompliantForm(p))return(await new n(Ee.origin,{method:"POST",body:p}).arrayBuffer()).byteLength;if(y.isArrayBufferView(p)||y.isArrayBuffer(p))return p.byteLength;if(y.isURLSearchParams(p)&&(p=p+""),y.isString(p))return(await c(p)).byteLength},h=async(p,b)=>{const O=y.toFiniteNumber(p.getContentLength());return O??E(b)};return async p=>{let{url:b,method:O,data:_,signal:S,cancelToken:A,timeout:N,onDownloadProgress:P,onUploadProgress:D,responseType:g,headers:G,withCredentials:q="same-origin",fetchOptions:L}=ss(p),R=t||fetch;g=g?(g+"").toLowerCase():"text";let B=Oa([S,A&&A.toAbortSignal()],N),te=null;const $=B&&B.unsubscribe&&(()=>{B.unsubscribe()});let M;try{if(D&&l&&O!=="get"&&O!=="head"&&(M=await h(G,_))!==0){let Q=new n(b,{method:"POST",body:_,duplex:"half"}),K;if(y.isFormData(_)&&(K=Q.headers.get("content-type"))&&G.setContentType(K),Q.body){const[ne,re]=es(M,Gt(ts(D)));_=os(Q.body,is,ne,re)}}y.isString(q)||(q=q?"include":"omit");const C=o&&"credentials"in n.prototype,x={...L,signal:B,method:O.toUpperCase(),headers:G.normalize().toJSON(),body:_,duplex:"half",credentials:C?q:void 0};te=o&&new n(b,x);let w=await(o?R(te,L):R(b,x));const j=f&&(g==="stream"||g==="response");if(f&&(P||j&&$)){const Q={};["status","statusText","headers"].forEach(fe=>{Q[fe]=w[fe]});const K=y.toFiniteNumber(w.headers.get("content-length")),[ne,re]=P&&es(K,Gt(ts(P),!0))||[];w=new r(os(w.body,is,ne,()=>{re&&re(),$&&$()}),Q)}g=g||"text";let H=await m[y.findKey(m,g)||"text"](w,p);return!j&&$&&$(),await new Promise((Q,K)=>{Zr(Q,K,{data:H,headers:Oe.from(w.headers),status:w.status,statusText:w.statusText,config:p,request:te})})}catch(C){throw $&&$(),C&&C.name==="TypeError"&&/Load failed|fetch/i.test(C.message)?Object.assign(new W("Network Error",W.ERR_NETWORK,p,te,C&&C.response),{cause:C.cause||C}):W.from(C,C&&C.code,p,te,C&&C.response)}}},va=new Map,us=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:s}=t,o=[r,s,n];let i=o.length,a=i,c,l,f=va;for(;a--;)c=o[a],l=f.get(c),l===void 0&&f.set(c,l=a?new Map:Ra(t)),f=l;return l};us();const xn={http:Ki,xhr:ba,fetch:{get:us}};y.forEach(xn,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const fs=e=>`- ${e}`,La=e=>y.isFunction(e)||e===null||e===!1;function Pa(e,t){e=y.isArray(e)?e:[e];const{length:n}=e;let r,s;const o={};for(let i=0;i<n;i++){r=e[i];let a;if(s=r,!La(r)&&(s=xn[(a=String(r)).toLowerCase()],s===void 0))throw new W(`Unknown adapter '${a}'`);if(s&&(y.isFunction(s)||(s=s.get(t))))break;o[a||"#"+i]=s}if(!s){const i=Object.entries(o).map(([c,l])=>`adapter ${c} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=n?i.length>1?`since :
10
- `+i.map(fs).join(`
11
- `):" "+fs(i[0]):"as no adapter specified";throw new W("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return s}const ds={getAdapter:Pa,adapters:xn};function jn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new At(null,e)}function ps(e){return jn(e),e.headers=Oe.from(e.headers),e.data=$n.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ds.getAdapter(e.adapter||St.adapter,e)(e).then(function(r){return jn(e),r.data=$n.call(e,e.transformResponse,r),r.headers=Oe.from(r.headers),r},function(r){return zr(r)||(jn(e),r&&r.response&&(r.response.data=$n.call(e,e.transformResponse,r.response),r.response.headers=Oe.from(r.response.headers))),Promise.reject(r)})}const ms="1.13.6",Kt={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Kt[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const _s={};Kt.transitional=function(t,n,r){function s(o,i){return"[Axios v"+ms+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,a)=>{if(t===!1)throw new W(s(i," has been removed"+(n?" in "+n:"")),W.ERR_DEPRECATED);return n&&!_s[i]&&(_s[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,a):!0}},Kt.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Ca(e,t,n){if(typeof e!="object")throw new W("options must be an object",W.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],i=t[o];if(i){const a=e[o],c=a===void 0||i(a,o,e);if(c!==!0)throw new W("option "+o+" must be "+c,W.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new W("Unknown option "+o,W.ERR_BAD_OPTION)}}const Xt={assertOptions:Ca,validators:Kt},Te=Xt.validators;let et=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Kr,response:new Kr}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const o=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
12
- `+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ze(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&Xt.assertOptions(r,{silentJSONParsing:Te.transitional(Te.boolean),forcedJSONParsing:Te.transitional(Te.boolean),clarifyTimeoutError:Te.transitional(Te.boolean),legacyInterceptorReqResOrdering:Te.transitional(Te.boolean)},!1),s!=null&&(y.isFunction(s)?n.paramsSerializer={serialize:s}:Xt.assertOptions(s,{encode:Te.function,serialize:Te.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Xt.assertOptions(n,{baseUrl:Te.spelling("baseURL"),withXsrfToken:Te.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&y.merge(o.common,o[n.method]);o&&y.forEach(["delete","get","head","post","put","patch","common"],p=>{delete o[p]}),n.headers=Oe.concat(i,o);const a=[];let c=!0;this.interceptors.request.forEach(function(b){if(typeof b.runWhen=="function"&&b.runWhen(n)===!1)return;c=c&&b.synchronous;const O=n.transitional||kn;O&&O.legacyInterceptorReqResOrdering?a.unshift(b.fulfilled,b.rejected):a.push(b.fulfilled,b.rejected)});const l=[];this.interceptors.response.forEach(function(b){l.push(b.fulfilled,b.rejected)});let f,m=0,E;if(!c){const p=[ps.bind(this),void 0];for(p.unshift(...a),p.push(...l),E=p.length,f=Promise.resolve(n);m<E;)f=f.then(p[m++],p[m++]);return f}E=a.length;let h=n;for(;m<E;){const p=a[m++],b=a[m++];try{h=p(h)}catch(O){b.call(this,O);break}}try{f=ps.call(this,h)}catch(p){return Promise.reject(p)}for(m=0,E=l.length;m<E;)f=f.then(l[m++],l[m++]);return f}getUri(t){t=Ze(this.defaults,t);const n=ns(t.baseURL,t.url,t.allowAbsoluteUrls);return Qr(n,t.params,t.paramsSerializer)}};y.forEach(["delete","get","head","options"],function(t){et.prototype[t]=function(n,r){return this.request(Ze(r||{},{method:t,url:n,data:(r||{}).data}))}}),y.forEach(["post","put","patch"],function(t){function n(r){return function(o,i,a){return this.request(Ze(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}et.prototype[t]=n(),et.prototype[t+"Form"]=n(!0)});let Ia=class jo{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(s=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(a=>{r.subscribe(a),o=a}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,a){r.reason||(r.reason=new At(o,i,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new jo(function(s){t=s}),cancel:t}}};function Da(e){return function(n){return e.apply(null,n)}}function wa(e){return y.isObject(e)&&e.isAxiosError===!0}const Bn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Bn).forEach(([e,t])=>{Bn[t]=e});function hs(e){const t=new et(e),n=kr(et.prototype.request,t);return y.extend(n,et.prototype,t,{allOwnKeys:!0}),y.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return hs(Ze(e,s))},n}const ae=hs(St);ae.Axios=et,ae.CanceledError=At,ae.CancelToken=Ia,ae.isCancel=zr,ae.VERSION=ms,ae.toFormData=Wt,ae.AxiosError=W,ae.Cancel=ae.CanceledError,ae.all=function(t){return Promise.all(t)},ae.spread=Da,ae.isAxiosError=wa,ae.mergeConfig=Ze,ae.AxiosHeaders=Oe,ae.formToJSON=e=>Xr(y.isHTMLForm(e)?new FormData(e):e),ae.getAdapter=ds.getAdapter,ae.HttpStatusCode=Bn,ae.default=ae;const{Axios:Ru,AxiosError:vu,CanceledError:Lu,isCancel:Pu,CancelToken:Cu,VERSION:Iu,all:Du,Cancel:wu,isAxiosError:ku,spread:Mu,toFormData:Fu,AxiosHeaders:Uu,HttpStatusCode:Es,formToJSON:$u,getAdapter:xu,mergeConfig:ju}=ae;function ka(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Jt={exports:{}},Ma=Jt.exports,gs;function Fa(){return gs||(gs=1,(function(e,t){(function(n,r){e.exports=r()})(Ma,(function(){var n=1e3,r=6e4,s=36e5,o="millisecond",i="second",a="minute",c="hour",l="day",f="week",m="month",E="quarter",h="year",p="date",b="Invalid Date",O=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,_=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,S={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function($){var M=["th","st","nd","rd"],C=$%100;return"["+$+(M[(C-20)%10]||M[C]||M[0])+"]"}},A=function($,M,C){var x=String($);return!x||x.length>=M?$:""+Array(M+1-x.length).join(C)+$},N={s:A,z:function($){var M=-$.utcOffset(),C=Math.abs(M),x=Math.floor(C/60),w=C%60;return(M<=0?"+":"-")+A(x,2,"0")+":"+A(w,2,"0")},m:function $(M,C){if(M.date()<C.date())return-$(C,M);var x=12*(C.year()-M.year())+(C.month()-M.month()),w=M.clone().add(x,m),j=C-w<0,H=M.clone().add(x+(j?-1:1),m);return+(-(x+(C-w)/(j?w-H:H-w))||0)},a:function($){return $<0?Math.ceil($)||0:Math.floor($)},p:function($){return{M:m,y:h,w:f,d:l,D:p,h:c,m:a,s:i,ms:o,Q:E}[$]||String($||"").toLowerCase().replace(/s$/,"")},u:function($){return $===void 0}},P="en",D={};D[P]=S;var g="$isDayjsObject",G=function($){return $ instanceof B||!(!$||!$[g])},q=function $(M,C,x){var w;if(!M)return P;if(typeof M=="string"){var j=M.toLowerCase();D[j]&&(w=j),C&&(D[j]=C,w=j);var H=M.split("-");if(!w&&H.length>1)return $(H[0])}else{var Q=M.name;D[Q]=M,w=Q}return!x&&w&&(P=w),w||!x&&P},L=function($,M){if(G($))return $.clone();var C=typeof M=="object"?M:{};return C.date=$,C.args=arguments,new B(C)},R=N;R.l=q,R.i=G,R.w=function($,M){return L($,{locale:M.$L,utc:M.$u,x:M.$x,$offset:M.$offset})};var B=(function(){function $(C){this.$L=q(C.locale,null,!0),this.parse(C),this.$x=this.$x||C.x||{},this[g]=!0}var M=$.prototype;return M.parse=function(C){this.$d=(function(x){var w=x.date,j=x.utc;if(w===null)return new Date(NaN);if(R.u(w))return new Date;if(w instanceof Date)return new Date(w);if(typeof w=="string"&&!/Z$/i.test(w)){var H=w.match(O);if(H){var Q=H[2]-1||0,K=(H[7]||"0").substring(0,3);return j?new Date(Date.UTC(H[1],Q,H[3]||1,H[4]||0,H[5]||0,H[6]||0,K)):new Date(H[1],Q,H[3]||1,H[4]||0,H[5]||0,H[6]||0,K)}}return new Date(w)})(C),this.init()},M.init=function(){var C=this.$d;this.$y=C.getFullYear(),this.$M=C.getMonth(),this.$D=C.getDate(),this.$W=C.getDay(),this.$H=C.getHours(),this.$m=C.getMinutes(),this.$s=C.getSeconds(),this.$ms=C.getMilliseconds()},M.$utils=function(){return R},M.isValid=function(){return this.$d.toString()!==b},M.isSame=function(C,x){var w=L(C);return this.startOf(x)<=w&&w<=this.endOf(x)},M.isAfter=function(C,x){return L(C)<this.startOf(x)},M.isBefore=function(C,x){return this.endOf(x)<L(C)},M.$g=function(C,x,w){return R.u(C)?this[x]:this.set(w,C)},M.unix=function(){return Math.floor(this.valueOf()/1e3)},M.valueOf=function(){return this.$d.getTime()},M.startOf=function(C,x){var w=this,j=!!R.u(x)||x,H=R.p(C),Q=function(De,de){var ve=R.w(w.$u?Date.UTC(w.$y,de,De):new Date(w.$y,de,De),w);return j?ve:ve.endOf(l)},K=function(De,de){return R.w(w.toDate()[De].apply(w.toDate("s"),(j?[0,0,0,0]:[23,59,59,999]).slice(de)),w)},ne=this.$W,re=this.$M,fe=this.$D,Ye="set"+(this.$u?"UTC":"");switch(H){case h:return j?Q(1,0):Q(31,11);case m:return j?Q(1,re):Q(0,re+1);case f:var Ie=this.$locale().weekStart||0,$e=(ne<Ie?ne+7:ne)-Ie;return Q(j?fe-$e:fe+(6-$e),re);case l:case p:return K(Ye+"Hours",0);case c:return K(Ye+"Minutes",1);case a:return K(Ye+"Seconds",2);case i:return K(Ye+"Milliseconds",3);default:return this.clone()}},M.endOf=function(C){return this.startOf(C,!1)},M.$set=function(C,x){var w,j=R.p(C),H="set"+(this.$u?"UTC":""),Q=(w={},w[l]=H+"Date",w[p]=H+"Date",w[m]=H+"Month",w[h]=H+"FullYear",w[c]=H+"Hours",w[a]=H+"Minutes",w[i]=H+"Seconds",w[o]=H+"Milliseconds",w)[j],K=j===l?this.$D+(x-this.$W):x;if(j===m||j===h){var ne=this.clone().set(p,1);ne.$d[Q](K),ne.init(),this.$d=ne.set(p,Math.min(this.$D,ne.daysInMonth())).$d}else Q&&this.$d[Q](K);return this.init(),this},M.set=function(C,x){return this.clone().$set(C,x)},M.get=function(C){return this[R.p(C)]()},M.add=function(C,x){var w,j=this;C=Number(C);var H=R.p(x),Q=function(re){var fe=L(j);return R.w(fe.date(fe.date()+Math.round(re*C)),j)};if(H===m)return this.set(m,this.$M+C);if(H===h)return this.set(h,this.$y+C);if(H===l)return Q(1);if(H===f)return Q(7);var K=(w={},w[a]=r,w[c]=s,w[i]=n,w)[H]||1,ne=this.$d.getTime()+C*K;return R.w(ne,this)},M.subtract=function(C,x){return this.add(-1*C,x)},M.format=function(C){var x=this,w=this.$locale();if(!this.isValid())return w.invalidDate||b;var j=C||"YYYY-MM-DDTHH:mm:ssZ",H=R.z(this),Q=this.$H,K=this.$m,ne=this.$M,re=w.weekdays,fe=w.months,Ye=w.meridiem,Ie=function(de,ve,Ge,xe){return de&&(de[ve]||de(x,j))||Ge[ve].slice(0,xe)},$e=function(de){return R.s(Q%12||12,de,"0")},De=Ye||function(de,ve,Ge){var xe=de<12?"AM":"PM";return Ge?xe.toLowerCase():xe};return j.replace(_,(function(de,ve){return ve||(function(Ge){switch(Ge){case"YY":return String(x.$y).slice(-2);case"YYYY":return R.s(x.$y,4,"0");case"M":return ne+1;case"MM":return R.s(ne+1,2,"0");case"MMM":return Ie(w.monthsShort,ne,fe,3);case"MMMM":return Ie(fe,ne);case"D":return x.$D;case"DD":return R.s(x.$D,2,"0");case"d":return String(x.$W);case"dd":return Ie(w.weekdaysMin,x.$W,re,2);case"ddd":return Ie(w.weekdaysShort,x.$W,re,3);case"dddd":return re[x.$W];case"H":return String(Q);case"HH":return R.s(Q,2,"0");case"h":return $e(1);case"hh":return $e(2);case"a":return De(Q,K,!0);case"A":return De(Q,K,!1);case"m":return String(K);case"mm":return R.s(K,2,"0");case"s":return String(x.$s);case"ss":return R.s(x.$s,2,"0");case"SSS":return R.s(x.$ms,3,"0");case"Z":return H}return null})(de)||H.replace(":","")}))},M.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},M.diff=function(C,x,w){var j,H=this,Q=R.p(x),K=L(C),ne=(K.utcOffset()-this.utcOffset())*r,re=this-K,fe=function(){return R.m(H,K)};switch(Q){case h:j=fe()/12;break;case m:j=fe();break;case E:j=fe()/3;break;case f:j=(re-ne)/6048e5;break;case l:j=(re-ne)/864e5;break;case c:j=re/s;break;case a:j=re/r;break;case i:j=re/n;break;default:j=re}return w?j:R.a(j)},M.daysInMonth=function(){return this.endOf(m).$D},M.$locale=function(){return D[this.$L]},M.locale=function(C,x){if(!C)return this.$L;var w=this.clone(),j=q(C,x,!0);return j&&(w.$L=j),w},M.clone=function(){return R.w(this.$d,this)},M.toDate=function(){return new Date(this.valueOf())},M.toJSON=function(){return this.isValid()?this.toISOString():null},M.toISOString=function(){return this.$d.toISOString()},M.toString=function(){return this.$d.toUTCString()},$})(),te=B.prototype;return L.prototype=te,[["$ms",o],["$s",i],["$m",a],["$H",c],["$W",l],["$M",m],["$y",h],["$D",p]].forEach((function($){te[$[1]]=function(M){return this.$g(M,$[0],$[1])}})),L.extend=function($,M){return $.$i||($(M,B,L),$.$i=!0),L},L.locale=q,L.isDayjs=G,L.unix=function($){return L(1e3*$)},L.en=D[P],L.Ls=D,L.p={},L}))})(Jt)),Jt.exports}var Ua=Fa();const Hn=ka(Ua);let zt=null;function $a(e){if(zt!==null){console.warn("[LinID CoreLib] HTTP client has already been initialized. Re-initialization is ignored.");return}zt=e}function we(){if(zt===null)throw new Error("[LinID CoreLib] HTTP client is not initialized. Call setHttpClient() first.");return zt}const ys=new Map;function xa(e){ys.set(e.instanceId,e)}function tt(e){const t=ys.get(e);if(!t)throw new Error(`[LinID CoreLib] No module host configuration found for instanceId: ${e}`);return t}async function ja(e,t){const n=tt(e);return we().post(`/${n.apiEndpoint}`,t).then(({data:r})=>r)}async function Ba(e,t,n){const r=tt(e);return we().put(`/${r.apiEndpoint}/${t}`,n).then(({data:s})=>s)}async function Ha(e,t,n){const r=tt(e);return we().get(`/${r.apiEndpoint}`,{params:{...t,...n}}).then(({data:s})=>s)}async function Va(e,t){const n=tt(e);return we().get(`/${n.apiEndpoint}/${t}`).then(({data:r})=>r)}async function qa(e,t){const n=tt(e);return we().delete(`/${n.apiEndpoint}/${t}`)}async function Wa(e,t,n){const r=tt(e);await we().post(`/${r.apiEndpoint}/validate/${t}`,n,{headers:{"Content-Type":"application/json"}})}function bs(e,t){if(!nt(e)||!nt(t))return t;const n={...e};for(const r of Object.keys(t))n[r]=bs(e[r],t[r]);return n}function Ya(e){const t={};for(const[n,r]of Object.entries(e)){const s=n.split(".");let o=t;s.forEach((i,a)=>{a===s.length-1?o[i]=r:(nt(o[i])||(o[i]={}),o=o[i])})}return t}function nt(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function Os(e,t){return typeof e!="object"||e===null?e:Object.fromEntries(Object.entries(e).map(([n,r])=>{const s=t(n),o=nt(r)?Os(r,t):r;return[s,o]}))}function Vn(e,t){if(e===t||typeof e=="number"&&typeof t=="number"&&Number.isNaN(e)&&Number.isNaN(t))return!0;if(e==null||t==null||typeof e!="object"||typeof t!="object"||Array.isArray(e)!==Array.isArray(t))return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const s=e,o=t;return n.every(i=>Object.prototype.hasOwnProperty.call(o,i)&&Vn(s[i],o[i]))}function Zt(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;const n=new Set;return e.every(r=>{const s=t.findIndex((o,i)=>!n.has(i)&&Zt(r,o));return s===-1?!1:(n.add(s),!0)})}if(nt(e)&&nt(t)){const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length?!1:n.every(s=>Object.prototype.hasOwnProperty.call(t,s)&&Zt(e[s],t[s]))}return Vn(e,t)}function ke(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Ns={};function Ga(e){Ns[e]||(Ns[e]=!0,ke(e))}const Be=typeof window<"u";let Ne,rt;if(process.env.NODE_ENV!=="production"){const e=Be&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(Ne=t=>{e.mark(t)},rt=(t,n,r)=>{e.measure(t,n,r),e.clearMarks(n),e.clearMarks(r)})}const Qa=/\{([0-9a-zA-Z]+)\}/g;function en(e,...t){return t.length===1&&z(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(Qa,(n,r)=>t.hasOwnProperty(r)?t[r]:"")}const He=(e,t=!1)=>t?Symbol.for(e):Symbol(e),Ka=(e,t,n)=>Xa({l:e,k:t,s:n}),Xa=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),pe=e=>typeof e=="number"&&isFinite(e),Ss=e=>qn(e)==="[object Date]",tn=e=>qn(e)==="[object RegExp]",nn=e=>Z(e)&&Object.keys(e).length===0,me=Object.assign,Ja=Object.create,ee=(e=null)=>Ja(e);let Ts;const st=()=>Ts||(Ts=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:ee());function As(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/\//g,"&#x2F;").replace(/=/g,"&#x3D;")}function Rs(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function za(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(r,s,o)=>`${s}="${Rs(o)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(r,s,o)=>`${s}='${Rs(o)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(process.env.NODE_ENV!=="production"&&ke("Potentially dangerous event handlers detected in translation. Consider removing onclick, onerror, etc. from your translation messages."),e=e.replace(/(\s+)(on)(\w+\s*=)/gi,"$1&#111;n$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(r=>{e=e.replace(r,"$1javascript&#58;")}),e}const Za=Object.prototype.hasOwnProperty;function Ae(e,t){return Za.call(e,t)}const ce=Array.isArray,oe=e=>typeof e=="function",U=e=>typeof e=="string",le=e=>typeof e=="boolean",z=e=>e!==null&&typeof e=="object",ec=e=>z(e)&&oe(e.then)&&oe(e.catch),vs=Object.prototype.toString,qn=e=>vs.call(e),Z=e=>qn(e)==="[object Object]",tc=e=>e==null?"":ce(e)||Z(e)&&e.toString===vs?JSON.stringify(e,null,2):String(e);function Wn(e,t=""){return e.reduce((n,r,s)=>s===0?n+r:n+t+r,"")}const Ls=2;function nc(e,t=0,n=e.length){const r=e.split(/\r?\n/);let s=0;const o=[];for(let i=0;i<r.length;i++)if(s+=r[i].length+1,s>=t){for(let a=i-Ls;a<=i+Ls||n>s;a++){if(a<0||a>=r.length)continue;const c=a+1;o.push(`${c}${" ".repeat(3-String(c).length)}| ${r[a]}`);const l=r[a].length;if(a===i){const f=t-(s-l)+1,m=Math.max(1,n>s?l-f:n-t);o.push(" | "+" ".repeat(f)+"^".repeat(m))}else if(a>i){if(n>s){const f=Math.max(Math.min(n-s,l),1);o.push(" | "+"^".repeat(f))}s+=l+1}}break}return o.join(`
13
- `)}function rc(){const e=new Map;return{events:e,on(n,r){const s=e.get(n);s&&s.push(r)||e.set(n,[r])},off(n,r){const s=e.get(n);s&&s.splice(s.indexOf(r)>>>0,1)},emit(n,r){(e.get(n)||[]).slice().map(s=>s(r)),(e.get("*")||[]).slice().map(s=>s(n,r))}}}const rn=e=>!z(e)||ce(e);function sn(e,t){if(rn(e)||rn(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:r,des:s}=n.pop();Object.keys(r).forEach(o=>{o!=="__proto__"&&(z(r[o])&&!z(s[o])&&(s[o]=Array.isArray(r[o])?[]:ee()),rn(s[o])||rn(r[o])?s[o]=r[o]:n.push({src:r[o],des:s[o]}))})}}function sc(e,t,n){return{line:e,column:t,offset:n}}function Yn(e,t,n){return{start:e,end:t}}const Y={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16},oc=17,ic={[Y.EXPECTED_TOKEN]:"Expected token: '{0}'",[Y.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[Y.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[Y.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[Y.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[Y.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[Y.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[Y.EMPTY_PLACEHOLDER]:"Empty placeholder",[Y.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[Y.INVALID_LINKED_FORMAT]:"Invalid linked format",[Y.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[Y.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[Y.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[Y.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[Y.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[Y.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function pt(e,t,n={}){const{domain:r,messages:s,args:o}=n,i=process.env.NODE_ENV!=="production"?en((s||ic)[e]||"",...o||[]):e,a=new SyntaxError(String(i));return a.code=e,t&&(a.location=t),a.domain=r,a}function ac(e){throw e}const cc=/<\/?[\w\s="/.':;#-\/]+>/,lc=e=>cc.test(e),Me=" ",uc="\r",ge=`
14
- `,fc="\u2028",dc="\u2029";function pc(e){const t=e;let n=0,r=1,s=1,o=0;const i=g=>t[g]===uc&&t[g+1]===ge,a=g=>t[g]===ge,c=g=>t[g]===dc,l=g=>t[g]===fc,f=g=>i(g)||a(g)||c(g)||l(g),m=()=>n,E=()=>r,h=()=>s,p=()=>o,b=g=>i(g)||c(g)||l(g)?ge:t[g],O=()=>b(n),_=()=>b(n+o);function S(){return o=0,f(n)&&(r++,s=0),i(n)&&n++,n++,s++,t[n]}function A(){return i(n+o)&&o++,o++,t[n+o]}function N(){n=0,r=1,s=1,o=0}function P(g=0){o=g}function D(){const g=n+o;for(;g!==n;)S();o=0}return{index:m,line:E,column:h,peekOffset:p,charAt:b,currentChar:O,currentPeek:_,next:S,peek:A,reset:N,resetPeek:P,skipToPeek:D}}const Ve=void 0,mc=".",Ps="'",_c="tokenizer";function hc(e,t={}){const n=t.location!==!1,r=pc(e),s=()=>r.index(),o=()=>sc(r.line(),r.column(),r.index()),i=o(),a=s(),c={currentType:13,offset:a,startLoc:i,endLoc:i,lastType:13,lastOffset:a,lastStartLoc:i,lastEndLoc:i,braceNest:0,inLinked:!1,text:""},l=()=>c,{onError:f}=t;function m(u,d,v,...F){const se=l();if(d.column+=v,d.offset+=v,f){const ue=n?Yn(se.startLoc,d):null,X=pt(u,ue,{domain:_c,args:F});f(X)}}function E(u,d,v){u.endLoc=o(),u.currentType=d;const F={type:d};return n&&(F.loc=Yn(u.startLoc,u.endLoc)),v!=null&&(F.value=v),F}const h=u=>E(u,13);function p(u,d){return u.currentChar()===d?(u.next(),d):(m(Y.EXPECTED_TOKEN,o(),0,d),"")}function b(u){let d="";for(;u.currentPeek()===Me||u.currentPeek()===ge;)d+=u.currentPeek(),u.peek();return d}function O(u){const d=b(u);return u.skipToPeek(),d}function _(u){if(u===Ve)return!1;const d=u.charCodeAt(0);return d>=97&&d<=122||d>=65&&d<=90||d===95}function S(u){if(u===Ve)return!1;const d=u.charCodeAt(0);return d>=48&&d<=57}function A(u,d){const{currentType:v}=d;if(v!==2)return!1;b(u);const F=_(u.currentPeek());return u.resetPeek(),F}function N(u,d){const{currentType:v}=d;if(v!==2)return!1;b(u);const F=u.currentPeek()==="-"?u.peek():u.currentPeek(),se=S(F);return u.resetPeek(),se}function P(u,d){const{currentType:v}=d;if(v!==2)return!1;b(u);const F=u.currentPeek()===Ps;return u.resetPeek(),F}function D(u,d){const{currentType:v}=d;if(v!==7)return!1;b(u);const F=u.currentPeek()===".";return u.resetPeek(),F}function g(u,d){const{currentType:v}=d;if(v!==8)return!1;b(u);const F=_(u.currentPeek());return u.resetPeek(),F}function G(u,d){const{currentType:v}=d;if(!(v===7||v===11))return!1;b(u);const F=u.currentPeek()===":";return u.resetPeek(),F}function q(u,d){const{currentType:v}=d;if(v!==9)return!1;const F=()=>{const ue=u.currentPeek();return ue==="{"?_(u.peek()):ue==="@"||ue==="|"||ue===":"||ue==="."||ue===Me||!ue?!1:ue===ge?(u.peek(),F()):R(u,!1)},se=F();return u.resetPeek(),se}function L(u){b(u);const d=u.currentPeek()==="|";return u.resetPeek(),d}function R(u,d=!0){const v=(se=!1,ue="")=>{const X=u.currentPeek();return X==="{"||X==="@"||!X?se:X==="|"?!(ue===Me||ue===ge):X===Me?(u.peek(),v(!0,Me)):X===ge?(u.peek(),v(!0,ge)):!0},F=v();return d&&u.resetPeek(),F}function B(u,d){const v=u.currentChar();return v===Ve?Ve:d(v)?(u.next(),v):null}function te(u){const d=u.charCodeAt(0);return d>=97&&d<=122||d>=65&&d<=90||d>=48&&d<=57||d===95||d===36}function $(u){return B(u,te)}function M(u){const d=u.charCodeAt(0);return d>=97&&d<=122||d>=65&&d<=90||d>=48&&d<=57||d===95||d===36||d===45}function C(u){return B(u,M)}function x(u){const d=u.charCodeAt(0);return d>=48&&d<=57}function w(u){return B(u,x)}function j(u){const d=u.charCodeAt(0);return d>=48&&d<=57||d>=65&&d<=70||d>=97&&d<=102}function H(u){return B(u,j)}function Q(u){let d="",v="";for(;d=w(u);)v+=d;return v}function K(u){let d="";for(;;){const v=u.currentChar();if(v==="\\"){const F=u.peek();F==="{"||F==="}"||F==="@"||F==="|"||F==="\\"?(d+=v+F,u.next(),u.next()):(u.resetPeek(),d+=v,u.next())}else{if(v==="{"||v==="}"||v==="@"||v==="|"||!v)break;if(v===Me||v===ge)if(R(u))d+=v,u.next();else{if(L(u))break;d+=v,u.next()}else d+=v,u.next()}}return d}function ne(u){O(u);let d="",v="";for(;d=C(u);)v+=d;const F=u.currentChar();if(F&&F!=="}"&&F!==Ve&&F!==Me&&F!==ge&&F!==" "){const se=de(u);return m(Y.INVALID_TOKEN_IN_PLACEHOLDER,o(),0,v+se),v+se}return u.currentChar()===Ve&&m(Y.UNTERMINATED_CLOSING_BRACE,o(),0),v}function re(u){O(u);let d="";return u.currentChar()==="-"?(u.next(),d+=`-${Q(u)}`):d+=Q(u),u.currentChar()===Ve&&m(Y.UNTERMINATED_CLOSING_BRACE,o(),0),d}function fe(u){return u!==Ps&&u!==ge}function Ye(u){O(u),p(u,"'");let d="",v="";for(;d=B(u,fe);)d==="\\"?v+=Ie(u):v+=d;const F=u.currentChar();return F===ge||F===Ve?(m(Y.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o(),0),F===ge&&(u.next(),p(u,"'")),v):(p(u,"'"),v)}function Ie(u){const d=u.currentChar();switch(d){case"\\":case"'":return u.next(),`\\${d}`;case"u":return $e(u,d,4);case"U":return $e(u,d,6);default:return m(Y.UNKNOWN_ESCAPE_SEQUENCE,o(),0,d),""}}function $e(u,d,v){p(u,d);let F="";for(let se=0;se<v;se++){const ue=H(u);if(!ue){m(Y.INVALID_UNICODE_ESCAPE_SEQUENCE,o(),0,`\\${d}${F}${u.currentChar()}`);break}F+=ue}return`\\${d}${F}`}function De(u){return u!=="{"&&u!=="}"&&u!==Me&&u!==ge}function de(u){O(u);let d="",v="";for(;d=B(u,De);)v+=d;return v}function ve(u){let d="",v="";for(;d=$(u);)v+=d;return v}function Ge(u){const d=v=>{const F=u.currentChar();return F==="{"||F==="@"||F==="|"||F==="("||F===")"||!F||F===Me?v:(v+=F,u.next(),d(v))};return d("")}function xe(u){O(u);const d=p(u,"|");return O(u),d}function It(u,d){let v=null;switch(u.currentChar()){case"{":return d.braceNest>=1&&m(Y.NOT_ALLOW_NEST_PLACEHOLDER,o(),0),u.next(),v=E(d,2,"{"),O(u),d.braceNest++,v;case"}":return d.braceNest>0&&d.currentType===2&&m(Y.EMPTY_PLACEHOLDER,o(),0),u.next(),v=E(d,3,"}"),d.braceNest--,d.braceNest>0&&O(u),d.inLinked&&d.braceNest===0&&(d.inLinked=!1),v;case"@":return d.braceNest>0&&m(Y.UNTERMINATED_CLOSING_BRACE,o(),0),v=ot(u,d)||h(d),d.braceNest=0,v;default:{let se=!0,ue=!0,X=!0;if(L(u))return d.braceNest>0&&m(Y.UNTERMINATED_CLOSING_BRACE,o(),0),v=E(d,1,xe(u)),d.braceNest=0,d.inLinked=!1,v;if(d.braceNest>0&&(d.currentType===4||d.currentType===5||d.currentType===6))return m(Y.UNTERMINATED_CLOSING_BRACE,o(),0),d.braceNest=0,Dt(u,d);if(se=A(u,d))return v=E(d,4,ne(u)),O(u),v;if(ue=N(u,d))return v=E(d,5,re(u)),O(u),v;if(X=P(u,d))return v=E(d,6,Ye(u)),O(u),v;if(!se&&!ue&&!X)return v=E(d,12,de(u)),m(Y.INVALID_TOKEN_IN_PLACEHOLDER,o(),0,v.value),O(u),v;break}}return v}function ot(u,d){const{currentType:v}=d;let F=null;const se=u.currentChar();switch((v===7||v===8||v===11||v===9)&&(se===ge||se===Me)&&m(Y.INVALID_LINKED_FORMAT,o(),0),se){case"@":return u.next(),F=E(d,7,"@"),d.inLinked=!0,F;case".":return O(u),u.next(),E(d,8,".");case":":return O(u),u.next(),E(d,9,":");default:return L(u)?(F=E(d,1,xe(u)),d.braceNest=0,d.inLinked=!1,F):D(u,d)||G(u,d)?(O(u),ot(u,d)):g(u,d)?(O(u),E(d,11,ve(u))):q(u,d)?(O(u),se==="{"?It(u,d)||F:E(d,10,Ge(u))):(v===7&&m(Y.INVALID_LINKED_FORMAT,o(),0),d.braceNest=0,d.inLinked=!1,Dt(u,d))}}function Dt(u,d){let v={type:13};if(d.braceNest>0)return It(u,d)||h(d);if(d.inLinked)return ot(u,d)||h(d);switch(u.currentChar()){case"{":return It(u,d)||h(d);case"}":return m(Y.UNBALANCED_CLOSING_BRACE,o(),0),u.next(),E(d,3,"}");case"@":return ot(u,d)||h(d);default:{if(L(u))return v=E(d,1,xe(u)),d.braceNest=0,d.inLinked=!1,v;if(R(u))return E(d,0,K(u));break}}return v}function mr(){const{currentType:u,offset:d,startLoc:v,endLoc:F}=c;return c.lastType=u,c.lastOffset=d,c.lastStartLoc=v,c.lastEndLoc=F,c.offset=s(),c.startLoc=o(),r.currentChar()===Ve?E(c,13):Dt(r,c)}return{nextToken:mr,currentOffset:s,currentPosition:o,context:l}}const Ec="parser",gc=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g,yc=/\\([\\@{}|])/g;function bc(e,t){return t}function Oc(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function Nc(e={}){const t=e.location!==!1,{onError:n}=e;function r(_,S,A,N,...P){const D=_.currentPosition();if(D.offset+=N,D.column+=N,n){const g=t?Yn(A,D):null,G=pt(S,g,{domain:Ec,args:P});n(G)}}function s(_,S,A){const N={type:_};return t&&(N.start=S,N.end=S,N.loc={start:A,end:A}),N}function o(_,S,A,N){t&&(_.end=S,_.loc&&(_.loc.end=A))}function i(_,S){const A=_.context(),N=s(3,A.offset,A.startLoc);return N.value=S.replace(yc,bc),o(N,_.currentOffset(),_.currentPosition()),N}function a(_,S){const A=_.context(),{lastOffset:N,lastStartLoc:P}=A,D=s(5,N,P);return D.index=parseInt(S,10),_.nextToken(),o(D,_.currentOffset(),_.currentPosition()),D}function c(_,S){const A=_.context(),{lastOffset:N,lastStartLoc:P}=A,D=s(4,N,P);return D.key=S,_.nextToken(),o(D,_.currentOffset(),_.currentPosition()),D}function l(_,S){const A=_.context(),{lastOffset:N,lastStartLoc:P}=A,D=s(9,N,P);return D.value=S.replace(gc,Oc),_.nextToken(),o(D,_.currentOffset(),_.currentPosition()),D}function f(_){const S=_.nextToken(),A=_.context(),{lastOffset:N,lastStartLoc:P}=A,D=s(8,N,P);return S.type!==11?(r(_,Y.UNEXPECTED_EMPTY_LINKED_MODIFIER,A.lastStartLoc,0),D.value="",o(D,N,P),{nextConsumeToken:S,node:D}):(S.value==null&&r(_,Y.UNEXPECTED_LEXICAL_ANALYSIS,A.lastStartLoc,0,Fe(S)),D.value=S.value||"",o(D,_.currentOffset(),_.currentPosition()),{node:D})}function m(_,S){const A=_.context(),N=s(7,A.offset,A.startLoc);return N.value=S,o(N,_.currentOffset(),_.currentPosition()),N}function E(_){const S=_.context(),A=s(6,S.offset,S.startLoc);let N=_.nextToken();if(N.type===8){const P=f(_);A.modifier=P.node,N=P.nextConsumeToken||_.nextToken()}switch(N.type!==9&&r(_,Y.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Fe(N)),N=_.nextToken(),N.type===2&&(N=_.nextToken()),N.type){case 10:N.value==null&&r(_,Y.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Fe(N)),A.key=m(_,N.value||"");break;case 4:N.value==null&&r(_,Y.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Fe(N)),A.key=c(_,N.value||"");break;case 5:N.value==null&&r(_,Y.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Fe(N)),A.key=a(_,N.value||"");break;case 6:N.value==null&&r(_,Y.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Fe(N)),A.key=l(_,N.value||"");break;default:{r(_,Y.UNEXPECTED_EMPTY_LINKED_KEY,S.lastStartLoc,0);const P=_.context(),D=s(7,P.offset,P.startLoc);return D.value="",o(D,P.offset,P.startLoc),A.key=D,o(A,P.offset,P.startLoc),{nextConsumeToken:N,node:A}}}return o(A,_.currentOffset(),_.currentPosition()),{node:A}}function h(_){const S=_.context(),A=S.currentType===1?_.currentOffset():S.offset,N=S.currentType===1?S.endLoc:S.startLoc,P=s(2,A,N);P.items=[];let D=null;do{const q=D||_.nextToken();switch(D=null,q.type){case 0:q.value==null&&r(_,Y.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Fe(q)),P.items.push(i(_,q.value||""));break;case 5:q.value==null&&r(_,Y.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Fe(q)),P.items.push(a(_,q.value||""));break;case 4:q.value==null&&r(_,Y.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Fe(q)),P.items.push(c(_,q.value||""));break;case 6:q.value==null&&r(_,Y.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Fe(q)),P.items.push(l(_,q.value||""));break;case 7:{const L=E(_);P.items.push(L.node),D=L.nextConsumeToken||null;break}}}while(S.currentType!==13&&S.currentType!==1);const g=S.currentType===1?S.lastOffset:_.currentOffset(),G=S.currentType===1?S.lastEndLoc:_.currentPosition();return o(P,g,G),P}function p(_,S,A,N){const P=_.context();let D=N.items.length===0;const g=s(1,S,A);g.cases=[],g.cases.push(N);do{const G=h(_);D||(D=G.items.length===0),g.cases.push(G)}while(P.currentType!==13);return D&&r(_,Y.MUST_HAVE_MESSAGES_IN_PLURAL,A,0),o(g,_.currentOffset(),_.currentPosition()),g}function b(_){const S=_.context(),{offset:A,startLoc:N}=S,P=h(_);return S.currentType===13?P:p(_,A,N,P)}function O(_){const S=hc(_,me({},e)),A=S.context(),N=s(0,A.offset,A.startLoc);return t&&N.loc&&(N.loc.source=_),N.body=b(S),e.onCacheKey&&(N.cacheKey=e.onCacheKey(_)),A.currentType!==13&&r(S,Y.UNEXPECTED_LEXICAL_ANALYSIS,A.lastStartLoc,0,_[A.offset]||""),o(N,S.currentOffset(),S.currentPosition()),N}return{parse:O}}function Fe(e){if(e.type===13)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function Sc(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:o=>(n.helpers.add(o),o)}}function Cs(e,t){for(let n=0;n<e.length;n++)Gn(e[n],t)}function Gn(e,t){switch(e.type){case 1:Cs(e.cases,t),t.helper("plural");break;case 2:Cs(e.items,t);break;case 6:{Gn(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function Tc(e,t={}){const n=Sc(e);n.helper("normalize"),e.body&&Gn(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function Ac(e){const t=e.body;return t.type===2?Is(t):t.cases.forEach(n=>Is(n)),e}function Is(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const r=e.items[n];if(!(r.type===3||r.type===9)||r.value==null)break;t.push(r.value)}if(t.length===e.items.length){e.static=Wn(t);for(let n=0;n<e.items.length;n++){const r=e.items[n];(r.type===3||r.type===9)&&delete r.value}}}}const Rc="minifier";function mt(e){switch(e.t=e.type,e.type){case 0:{const t=e;mt(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let r=0;r<n.length;r++)mt(n[r]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let r=0;r<n.length;r++)mt(n[r]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;mt(t.key),t.k=t.key,delete t.key,t.modifier&&(mt(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}default:if(process.env.NODE_ENV!=="production")throw pt(Y.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:Rc,args:[e.type]})}delete e.type}const vc="parser";function Lc(e,t){const{filename:n,breakLineCode:r,needIndent:s}=t,o=t.location!==!1,i={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:s,indentLevel:0};o&&e.loc&&(i.source=e.loc.source);const a=()=>i;function c(b,O){i.code+=b}function l(b,O=!0){const _=O?r:"";c(s?_+" ".repeat(b):_)}function f(b=!0){const O=++i.indentLevel;b&&l(O)}function m(b=!0){const O=--i.indentLevel;b&&l(O)}function E(){l(i.indentLevel)}return{context:a,push:c,indent:f,deindent:m,newline:E,helper:b=>`_${b}`,needIndent:()=>i.needIndent}}function Pc(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),_t(e,t.key),t.modifier?(e.push(", "),_t(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function Cc(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const s=t.items.length;for(let o=0;o<s&&(_t(e,t.items[o]),o!==s-1);o++)e.push(", ");e.deindent(r()),e.push("])")}function Ic(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const s=t.cases.length;for(let o=0;o<s&&(_t(e,t.cases[o]),o!==s-1);o++)e.push(", ");e.deindent(r()),e.push("])")}}function Dc(e,t){t.body?_t(e,t.body):e.push("null")}function _t(e,t){const{helper:n}=e;switch(t.type){case 0:Dc(e,t);break;case 1:Ic(e,t);break;case 2:Cc(e,t);break;case 6:Pc(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:if(process.env.NODE_ENV!=="production")throw pt(Y.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:vc,args:[t.type]})}}const wc=(e,t={})=>{const n=U(t.mode)?t.mode:"normal",r=U(t.filename)?t.filename:"message.intl";t.sourceMap;const s=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
15
- `,o=t.needIndent?t.needIndent:n!=="arrow",i=e.helpers||[],a=Lc(e,{filename:r,breakLineCode:s,needIndent:o});a.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),a.indent(o),i.length>0&&(a.push(`const { ${Wn(i.map(f=>`${f}: _${f}`),", ")} } = ctx`),a.newline()),a.push("return "),_t(a,e),a.deindent(o),a.push("}"),delete e.helpers;const{code:c,map:l}=a.context();return{ast:e,code:c,map:l?l.toJSON():void 0}};function kc(e,t={}){const n=me({},t),r=!!n.jit,s=!!n.minify,o=n.optimize==null?!0:n.optimize,a=Nc(n).parse(e);return r?(o&&Ac(a),s&&mt(a),{ast:a,code:""}):(Tc(a,n),wc(a,n))}function Mc(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(st().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(st().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function Ce(e){return z(e)&&Qn(e)===0&&(Ae(e,"b")||Ae(e,"body"))}const Ds=["b","body"];function Fc(e){return Qe(e,Ds)}const ws=["c","cases"];function Uc(e){return Qe(e,ws,[])}const ks=["s","static"];function $c(e){return Qe(e,ks)}const Ms=["i","items"];function xc(e){return Qe(e,Ms,[])}const Fs=["t","type"];function Qn(e){return Qe(e,Fs)}const Us=["v","value"];function on(e,t){const n=Qe(e,Us);if(n!=null)return n;throw Rt(t)}const $s=["m","modifier"];function jc(e){return Qe(e,$s)}const xs=["k","key"];function Bc(e){const t=Qe(e,xs);if(t)return t;throw Rt(6)}function Qe(e,t,n){for(let r=0;r<t.length;r++){const s=t[r];if(Ae(e,s)&&e[s]!=null)return e[s]}return n}const js=[...Ds,...ws,...ks,...Ms,...xs,...$s,...Us,...Fs];function Rt(e){return new Error(`unhandled node type: ${e}`)}function Kn(e){return n=>Hc(n,e)}function Hc(e,t){const n=Fc(t);if(n==null)throw Rt(0);if(Qn(n)===1){const o=Uc(n);return e.plural(o.reduce((i,a)=>[...i,Bs(e,a)],[]))}else return Bs(e,n)}function Bs(e,t){const n=$c(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const r=xc(t).reduce((s,o)=>[...s,Xn(e,o)],[]);return e.normalize(r)}}function Xn(e,t){const n=Qn(t);switch(n){case 3:return on(t,n);case 9:return on(t,n);case 4:{const r=t;if(Ae(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(Ae(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw Rt(n)}case 5:{const r=t;if(Ae(r,"i")&&pe(r.i))return e.interpolate(e.list(r.i));if(Ae(r,"index")&&pe(r.index))return e.interpolate(e.list(r.index));throw Rt(n)}case 6:{const r=t,s=jc(r),o=Bc(r);return e.linked(Xn(e,o),s?Xn(e,s):void 0,e.type)}case 7:return on(t,n);case 8:return on(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const Vc="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function qc(e,t){t&&lc(e)&&ke(en(Vc,{source:e}))}const Wc=e=>e;let an=ee();function Yc(e,t={}){let n=!1;const r=t.onError||ac;return t.onError=s=>{n=!0,r(s)},{...kc(e,t),detectError:n}}function Gc(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&U(e)){const n=le(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&qc(e,n);const s=(t.onCacheKey||Wc)(e),o=an[s];if(o)return o;const{ast:i,detectError:a}=Yc(e,{...t,location:process.env.NODE_ENV!=="production",jit:!0}),c=Kn(i);return a?c:an[s]=c}else{if(process.env.NODE_ENV!=="production"&&!Ce(e))return ke(`the message that is resolve with key '${t.key}' is not supported for jit compilation`),(()=>e);const n=e.cacheKey;if(n){const r=an[n];return r||(an[n]=Kn(e))}else return Kn(e)}}let vt=null;function Qc(e){vt=e}function Kc(e,t,n){vt&&vt.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const Xc=Jc("function:translate");function Jc(e){return t=>vt&&vt.emit(e,t)}const ye={INVALID_ARGUMENT:oc,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},zc=24;function qe(e){return pt(e,null,process.env.NODE_ENV!=="production"?{messages:Zc}:void 0)}const Zc={[ye.INVALID_ARGUMENT]:"Invalid arguments",[ye.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[ye.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[ye.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[ye.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[ye.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[ye.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function Jn(e,t){return t.locale!=null?Hs(t.locale):Hs(e.locale)}let zn;function Hs(e){if(U(e))return e;if(oe(e)){if(e.resolvedOnce&&zn!=null)return zn;if(e.constructor.name==="Function"){const t=e();if(ec(t))throw qe(ye.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return zn=t}else throw qe(ye.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw qe(ye.NOT_SUPPORT_LOCALE_TYPE)}function el(e,t,n){return[...new Set([n,...ce(t)?t:z(t)?Object.keys(t):U(t)?[t]:[n]])]}function Zn(e,t,n){const r=U(n)?n:ln,s=e;s.__localeChainCache||(s.__localeChainCache=new Map);let o=s.__localeChainCache.get(r);if(!o){o=[];let i=[n];for(;ce(i);)i=Vs(o,i,t);const a=ce(t)||!Z(t)?t:t.default?t.default:null;i=U(a)?[a]:a,ce(i)&&Vs(o,i,!1),s.__localeChainCache.set(r,o)}return o}function Vs(e,t,n){let r=!0;for(let s=0;s<t.length&&le(r);s++){const o=t[s];U(o)&&(r=tl(e,t[s],n))}return r}function tl(e,t,n){let r;const s=t.split("-");do{const o=s.join("-");r=nl(e,o,n),s.splice(-1,1)}while(s.length&&r===!0);return r}function nl(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!=="!";const s=t.replace(/!/g,"");e.push(s),(ce(n)||Z(n))&&n[s]&&(r=n[s])}return r}const Ke=[];Ke[0]={w:[0],i:[3,0],"[":[4],o:[7]},Ke[1]={w:[1],".":[2],"[":[4],o:[7]},Ke[2]={w:[2],i:[3,0],0:[3,0]},Ke[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Ke[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Ke[5]={"'":[4,0],o:8,l:[5,0]},Ke[6]={'"':[4,0],o:8,l:[6,0]};const rl=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function sl(e){return rl.test(e)}function ol(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function il(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function al(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:sl(t)?ol(t):"*"+t}function cl(e){const t=[];let n=-1,r=0,s=0,o,i,a,c,l,f,m;const E=[];E[0]=()=>{i===void 0?i=a:i+=a},E[1]=()=>{i!==void 0&&(t.push(i),i=void 0)},E[2]=()=>{E[0](),s++},E[3]=()=>{if(s>0)s--,r=4,E[0]();else{if(s=0,i===void 0||(i=al(i),i===!1))return!1;E[1]()}};function h(){const p=e[n+1];if(r===5&&p==="'"||r===6&&p==='"')return n++,a="\\"+p,E[0](),!0}for(;r!==null;)if(n++,o=e[n],!(o==="\\"&&h())){if(c=il(o),m=Ke[r],l=m[c]||m.l||8,l===8||(r=l[0],l[1]!==void 0&&(f=E[l[1]],f&&(a=o,f()===!1))))return;if(r===7)return t}}const qs=new Map;function ll(e,t){return z(e)?e[t]:null}function ul(e,t){if(!z(e))return null;let n=qs.get(t);if(n||(n=cl(t),n&&qs.set(t,n)),!n)return null;const r=n.length;let s=e,o=0;for(;o<r;){const i=n[o];if(js.includes(i)&&Ce(s)||!z(s)||!Ae(s,i))return null;const a=s[i];if(a===void 0||oe(s))return null;s=a,o++}return s}const _e={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7,INVALID_NUMBER_ARGUMENT:8,INVALID_DATE_ARGUMENT:9},ht=10,fl={[_e.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[_e.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[_e.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[_e.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[_e.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[_e.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[_e.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future.",[_e.INVALID_NUMBER_ARGUMENT]:"Invalid argument for number formatting: expected a number but received '{value}'.",[_e.INVALID_DATE_ARGUMENT]:"Invalid argument for datetime formatting: expected a Date, number, or ISO string but received '{value}'."};function We(e,...t){return en(fl[e],...t)}const dl="11.3.0",cn=-1,ln="en-US",Et="",Ws=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function pl(){return{upper:(e,t)=>t==="text"&&U(e)?e.toUpperCase():t==="vnode"&&z(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&U(e)?e.toLowerCase():t==="vnode"&&z(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&U(e)?Ws(e):t==="vnode"&&z(e)&&"__v_isVNode"in e?Ws(e.children):e}}let Ys;function ml(e){Ys=e}let Gs;function _l(e){Gs=e}let Qs;function hl(e){Qs=e}let Ks=null;const El=e=>{Ks=e},gl=()=>Ks;let Xs=null;const Js=e=>{Xs=e},yl=()=>Xs;let zs=0;function bl(e={}){const t=oe(e.onWarn)?e.onWarn:ke,n=U(e.version)?e.version:dl,r=U(e.locale)||oe(e.locale)?e.locale:ln,s=oe(r)?ln:r,o=ce(e.fallbackLocale)||Z(e.fallbackLocale)||U(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s,i=Z(e.messages)?e.messages:er(s),a=Z(e.datetimeFormats)?e.datetimeFormats:er(s),c=Z(e.numberFormats)?e.numberFormats:er(s),l=me(ee(),e.modifiers,pl()),f=e.pluralRules||ee(),m=oe(e.missing)?e.missing:null,E=le(e.missingWarn)||tn(e.missingWarn)?e.missingWarn:!0,h=le(e.fallbackWarn)||tn(e.fallbackWarn)?e.fallbackWarn:!0,p=!!e.fallbackFormat,b=!!e.unresolving,O=oe(e.postTranslation)?e.postTranslation:null,_=Z(e.processor)?e.processor:null,S=le(e.warnHtmlMessage)?e.warnHtmlMessage:!0,A=!!e.escapeParameter,N=oe(e.messageCompiler)?e.messageCompiler:Ys;process.env.NODE_ENV!=="production"&&oe(e.messageCompiler)&&Ga(We(_e.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const P=oe(e.messageResolver)?e.messageResolver:Gs||ll,D=oe(e.localeFallbacker)?e.localeFallbacker:Qs||el,g=z(e.fallbackContext)?e.fallbackContext:void 0,G=e,q=z(G.__datetimeFormatters)?G.__datetimeFormatters:new Map,L=z(G.__numberFormatters)?G.__numberFormatters:new Map,R=z(G.__meta)?G.__meta:{};zs++;const B={version:n,cid:zs,locale:r,fallbackLocale:o,messages:i,modifiers:l,pluralRules:f,missing:m,missingWarn:E,fallbackWarn:h,fallbackFormat:p,unresolving:b,postTranslation:O,processor:_,warnHtmlMessage:S,escapeParameter:A,messageCompiler:N,messageResolver:P,localeFallbacker:D,fallbackContext:g,onWarn:t,__meta:R};return B.datetimeFormats=a,B.numberFormats=c,B.__datetimeFormatters=q,B.__numberFormatters=L,process.env.NODE_ENV!=="production"&&(B.__v_emitter=G.__v_emitter!=null?G.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&Kc(B,n,R),B}const er=e=>({[e]:ee()});function un(e,t){return e instanceof RegExp?e.test(t):e}function Zs(e,t){return e instanceof RegExp?e.test(t):e}function tr(e,t,n,r,s){const{missing:o,onWarn:i}=e;if(process.env.NODE_ENV!=="production"){const a=e.__v_emitter;a&&a.emit("missing",{locale:n,key:t,type:s,groupId:`${s}:${t}`})}if(o!==null){const a=o(e,n,t,s);return U(a)?a:t}else return process.env.NODE_ENV!=="production"&&Zs(r,t)&&i(We(_e.NOT_FOUND_KEY,{key:t,locale:n})),t}function Lt(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function eo(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function Ol(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r<t.length;r++)if(eo(e,t[r]))return!0;return!1}const to=typeof Intl<"u",no={dateTimeFormat:to&&typeof Intl.DateTimeFormat<"u",numberFormat:to&&typeof Intl.NumberFormat<"u"};function ro(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:s,onWarn:o,localeFallbacker:i}=e,{__datetimeFormatters:a}=e;if(process.env.NODE_ENV!=="production"&&!no.dateTimeFormat)return o(We(_e.CANNOT_FORMAT_DATE)),Et;if(!U(t[0])&&!Ss(t[0])&&!pe(t[0]))return process.env.NODE_ENV!=="production"&&o(We(_e.INVALID_DATE_ARGUMENT,{value:String(t[0])})),Et;const[c,l,f,m]=nr(...t),E=le(f.missingWarn)?f.missingWarn:e.missingWarn,h=le(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn,p=!!f.part,b=Jn(e,f),O=i(e,s,b);if(!U(c)||c==="")return new Intl.DateTimeFormat(b.replace(/!/g,""),m).format(l);let _={},S,A=null,N=b,P=null;const D="datetime format";for(let q=0;q<O.length;q++){if(S=P=O[q],process.env.NODE_ENV!=="production"&&b!==S&&un(h,c)&&o(We(_e.FALLBACK_TO_DATE_FORMAT,{key:c,target:S})),process.env.NODE_ENV!=="production"&&b!==S){const L=e.__v_emitter;L&&L.emit("fallback",{type:D,key:c,from:N,to:P,groupId:`${D}:${c}`})}if(_=n[S]||{},A=_[c],Z(A))break;tr(e,c,S,E,D),N=P}if(!Z(A)||!U(S))return r?cn:c;let g=`${S}__${c}`;nn(m)||(g=`${g}__${JSON.stringify(m)}`);let G=a.get(g);return G||(G=new Intl.DateTimeFormat(S,me({},A,m)),a.set(g,G)),p?G.formatToParts(l):G.format(l)}const so=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function nr(...e){const[t,n,r,s]=e,o=ee();let i=ee(),a;if(U(t)){const c=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!c)throw qe(ye.INVALID_ISO_DATE_ARGUMENT);const l=c[3]?c[3].trim().startsWith("T")?`${c[1].trim()}${c[3].trim()}`:`${c[1].trim()}T${c[3].trim()}`:c[1].trim();a=new Date(l);try{a.toISOString()}catch{throw qe(ye.INVALID_ISO_DATE_ARGUMENT)}}else if(Ss(t)){if(isNaN(t.getTime()))throw qe(ye.INVALID_DATE_ARGUMENT);a=t}else if(pe(t))a=t;else throw qe(ye.INVALID_ARGUMENT);return U(n)?o.key=n:Z(n)&&Object.keys(n).forEach(c=>{so.includes(c)?i[c]=n[c]:o[c]=n[c]}),U(r)?o.locale=r:Z(r)&&(i=r),Z(s)&&(i=s),[o.key||"",a,o,i]}function oo(e,t,n){const r=e;for(const s in n){const o=`${t}__${s}`;r.__datetimeFormatters.has(o)&&r.__datetimeFormatters.delete(o)}}function io(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:s,onWarn:o,localeFallbacker:i}=e,{__numberFormatters:a}=e;if(process.env.NODE_ENV!=="production"&&!no.numberFormat)return o(We(_e.CANNOT_FORMAT_NUMBER)),Et;if(!pe(t[0]))return process.env.NODE_ENV!=="production"&&o(We(_e.INVALID_NUMBER_ARGUMENT,{value:String(t[0])})),Et;const[c,l,f,m]=rr(...t),E=le(f.missingWarn)?f.missingWarn:e.missingWarn,h=le(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn,p=!!f.part,b=Jn(e,f),O=i(e,s,b);if(!U(c)||c==="")return new Intl.NumberFormat(b.replace(/!/g,""),m).format(l);let _={},S,A=null,N=b,P=null;const D="number format";for(let q=0;q<O.length;q++){if(S=P=O[q],process.env.NODE_ENV!=="production"&&b!==S&&un(h,c)&&o(We(_e.FALLBACK_TO_NUMBER_FORMAT,{key:c,target:S})),process.env.NODE_ENV!=="production"&&b!==S){const L=e.__v_emitter;L&&L.emit("fallback",{type:D,key:c,from:N,to:P,groupId:`${D}:${c}`})}if(_=n[S]||{},A=_[c],Z(A))break;tr(e,c,S,E,D),N=P}if(!Z(A)||!U(S))return r?cn:c;let g=`${S}__${c}`;nn(m)||(g=`${g}__${JSON.stringify(m)}`);let G=a.get(g);return G||(G=new Intl.NumberFormat(S,me({},A,m)),a.set(g,G)),p?G.formatToParts(l):G.format(l)}const ao=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function rr(...e){const[t,n,r,s]=e,o=ee();let i=ee();if(!pe(t))throw qe(ye.INVALID_ARGUMENT);const a=t;return U(n)?o.key=n:Z(n)&&Object.keys(n).forEach(c=>{ao.includes(c)?i[c]=n[c]:o[c]=n[c]}),U(r)?o.locale=r:Z(r)&&(i=r),Z(s)&&(i=s),[o.key||"",a,o,i]}function co(e,t,n){const r=e;for(const s in n){const o=`${t}__${s}`;r.__numberFormatters.has(o)&&r.__numberFormatters.delete(o)}}const Nl=e=>e,Sl=e=>"",Tl="text",Al=e=>e.length===0?"":Wn(e),Rl=tc;function sr(e,t){return e=Math.abs(e),t===2?e===1?0:1:Math.min(e,2)}function vl(e){const t=pe(e.pluralIndex)?e.pluralIndex:-1;return pe(e.named?.count)?e.named.count:pe(e.named?.n)?e.named.n:t}function Ll(e={}){const t=e.locale,n=vl(e),r=U(t)&&oe(e.pluralRules?.[t])?e.pluralRules[t]:sr,s=r===sr?void 0:sr,o=_=>_[r(n,_.length,s)],i=e.list||[],a=_=>i[_],c=e.named||ee();pe(e.pluralIndex)&&(c.count||=e.pluralIndex,c.n||=e.pluralIndex);const l=_=>c[_];function f(_,S){const A=oe(e.messages)?e.messages(_,!!S):z(e.messages)?e.messages[_]:!1;return A||(e.parent?e.parent.message(_):Sl)}const m=_=>e.modifiers?e.modifiers[_]:Nl,E=oe(e.processor?.normalize)?e.processor.normalize:Al,h=oe(e.processor?.interpolate)?e.processor.interpolate:Rl,p=U(e.processor?.type)?e.processor.type:Tl,O={list:a,named:l,plural:o,linked:(_,...S)=>{const[A,N]=S;let P="text",D="";S.length===1?z(A)?(D=A.modifier||D,P=A.type||P):U(A)&&(D=A||D):S.length===2&&(U(A)&&(D=A||D),U(N)&&(P=N||P));const g=f(_,!0)(O),G=g===""||g===void 0?_:g,q=P==="vnode"&&ce(G)&&D?G[0]:G;return D?m(D)(q,P):q},message:f,type:p,interpolate:h,normalize:E,values:me(ee(),i,c)};return O}const lo=()=>"",Re=e=>oe(e);function uo(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:s,messageCompiler:o,fallbackLocale:i,messages:a}=e,[c,l]=or(...t),f=le(l.missingWarn)?l.missingWarn:e.missingWarn,m=le(l.fallbackWarn)?l.fallbackWarn:e.fallbackWarn,E=le(l.escapeParameter)?l.escapeParameter:e.escapeParameter,h=!!l.resolvedMessage,p=U(l.default)||le(l.default)?le(l.default)?o?c:()=>c:l.default:n?o?c:()=>c:null,b=n||p!=null&&(U(p)||oe(p)),O=Jn(e,l);E&&Pl(l);let[_,S,A]=h?[c,O,a[O]||ee()]:fo(e,c,O,i,m,f),N=_,P=c;if(!h&&!(U(N)||Ce(N)||Re(N))&&b&&(N=p,P=N),!h&&(!(U(N)||Ce(N)||Re(N))||!U(S)))return s?cn:c;if(process.env.NODE_ENV!=="production"&&U(N)&&e.messageCompiler==null)return ke(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${c}'.`),c;let D=!1;const g=()=>{D=!0},G=Re(N)?N:po(e,c,S,N,P,g);if(D)return N;const q=wl(e,S,A,l),L=Ll(q),R=Cl(e,G,L);let B=r?r(R,c):R;if(E&&U(B)&&(B=za(B)),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const te={timestamp:Date.now(),key:U(c)?c:Re(N)?N.key:"",locale:S||(Re(N)?N.locale:""),format:U(N)?N:Re(N)?N.source:"",message:B};te.meta=me({},e.__meta,gl()||{}),Xc(te)}return B}function Pl(e){ce(e.list)?e.list=e.list.map(t=>U(t)?As(t):t):z(e.named)&&Object.keys(e.named).forEach(t=>{U(e.named[t])&&(e.named[t]=As(e.named[t]))})}function fo(e,t,n,r,s,o){const{messages:i,onWarn:a,messageResolver:c,localeFallbacker:l}=e,f=l(e,r,n);let m=ee(),E,h=null,p=n,b=null;const O="translate";for(let _=0;_<f.length;_++){if(E=b=f[_],process.env.NODE_ENV!=="production"&&n!==E&&!eo(n,E)&&un(s,t)&&a(We(_e.FALLBACK_TO_TRANSLATE,{key:t,target:E})),process.env.NODE_ENV!=="production"&&n!==E){const P=e.__v_emitter;P&&P.emit("fallback",{type:O,key:t,from:p,to:b,groupId:`${O}:${t}`})}m=i[E]||ee();let S=null,A,N;if(process.env.NODE_ENV!=="production"&&Be&&(S=window.performance.now(),A="intlify-message-resolve-start",N="intlify-message-resolve-end",Ne&&Ne(A)),(h=c(m,t))===null&&(h=m[t]),process.env.NODE_ENV!=="production"&&Be){const P=window.performance.now(),D=e.__v_emitter;D&&S&&h&&D.emit("message-resolve",{type:"message-resolve",key:t,message:h,time:P-S,groupId:`${O}:${t}`}),A&&N&&Ne&&rt&&(Ne(N),rt("intlify message resolve",A,N))}if(U(h)||Ce(h)||Re(h))break;if(!Ol(E,f)){const P=tr(e,t,E,o,O);P!==t&&(h=P)}p=b}return[h,E,m]}function po(e,t,n,r,s,o){const{messageCompiler:i,warnHtmlMessage:a}=e;if(Re(r)){const E=r;return E.locale=E.locale||n,E.key=E.key||t,E}if(i==null){const E=(()=>r);return E.locale=n,E.key=t,E}let c=null,l,f;process.env.NODE_ENV!=="production"&&Be&&(c=window.performance.now(),l="intlify-message-compilation-start",f="intlify-message-compilation-end",Ne&&Ne(l));const m=i(r,Il(e,n,s,r,a,o));if(process.env.NODE_ENV!=="production"&&Be){const E=window.performance.now(),h=e.__v_emitter;h&&c&&h.emit("message-compilation",{type:"message-compilation",message:r,time:E-c,groupId:`translate:${t}`}),l&&f&&Ne&&rt&&(Ne(f),rt("intlify message compilation",l,f))}return m.locale=n,m.key=t,m.source=r,m}function Cl(e,t,n){let r=null,s,o;process.env.NODE_ENV!=="production"&&Be&&(r=window.performance.now(),s="intlify-message-evaluation-start",o="intlify-message-evaluation-end",Ne&&Ne(s));const i=t(n);if(process.env.NODE_ENV!=="production"&&Be){const a=window.performance.now(),c=e.__v_emitter;c&&r&&c.emit("message-evaluation",{type:"message-evaluation",value:i,time:a-r,groupId:`translate:${t.key}`}),s&&o&&Ne&&rt&&(Ne(o),rt("intlify message evaluation",s,o))}return i}function or(...e){const[t,n,r]=e,s=ee();if(!U(t)&&!pe(t)&&!Re(t)&&!Ce(t))throw qe(ye.INVALID_ARGUMENT);const o=pe(t)?String(t):(Re(t),t);return pe(n)?s.plural=n:U(n)?s.default=n:Z(n)&&!nn(n)?s.named=n:ce(n)&&(s.list=n),pe(r)?s.plural=r:U(r)?s.default=r:Z(r)&&me(s,r),[o,s]}function Il(e,t,n,r,s,o){return{locale:t,key:n,warnHtmlMessage:s,onError:i=>{if(o&&o(i),process.env.NODE_ENV!=="production"){const a=Dl(r),c=i.location&&a&&nc(a,i.location.start.offset,i.location.end.offset),l=e.__v_emitter;l&&a&&l.emit("compile-error",{message:a,error:i.message,start:i.location&&i.location.start.offset,end:i.location&&i.location.end.offset,groupId:`translate:${n}`});const f=`Message compilation error: ${i.message}`;throw new SyntaxError(c?`${f}
16
- ${c}`:f)}throw i},onCacheKey:i=>Ka(t,n,i)}}function Dl(e){if(U(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function wl(e,t,n,r){const{modifiers:s,pluralRules:o,messageResolver:i,fallbackLocale:a,fallbackWarn:c,missingWarn:l,fallbackContext:f}=e,E={locale:t,modifiers:s,pluralRules:o,messages:(h,p)=>{let b=i(n,h);if(b==null&&(f||p)){const[,,O]=fo(f||e,h,t,a,c,l);b=i(O,h)}if(U(b)||Ce(b)){let O=!1;const S=po(e,h,t,b,h,()=>{O=!0});return O?lo:S}else return Re(b)?b:lo}};return e.processor&&(E.processor=e.processor),r.list&&(E.list=r.list),r.named&&(E.named=r.named),pe(r.plural)&&(E.pluralIndex=r.plural),E}Mc();const kl="11.3.0";function Ml(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(st().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(st().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(st().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(st().__INTLIFY_PROD_DEVTOOLS__=!1)}const he={UNEXPECTED_RETURN_TYPE:zc,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function Pt(e,...t){return pt(e,null,process.env.NODE_ENV!=="production"?{messages:Fl,args:t}:void 0)}const Fl={[he.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[he.INVALID_ARGUMENT]:"Invalid argument",[he.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[he.NOT_INSTALLED]:"Need to install with `app.use` function",[he.UNEXPECTED_ERROR]:"Unexpected error",[he.REQUIRED_VALUE]:"Required in value: {0}",[he.INVALID_VALUE]:"Invalid value",[he.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[he.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[he.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[he.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},ir=He("__translateVNode"),ar=He("__datetimeParts"),cr=He("__numberParts"),lr=He("__enableEmitter"),ur=He("__disableEmitter"),Ul=He("__setPluralRules"),mo=He("__injectWithOption"),fr=He("__dispose"),Ue={FALLBACK_TO_ROOT:ht,NOT_FOUND_PARENT_SCOPE:ht+1,IGNORE_OBJ_FLATTEN:ht+2,DEPRECATE_LEGACY_MODE:ht+3,DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE:ht+4,DUPLICATE_USE_I18N_CALLING:ht+5},$l={[Ue.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[Ue.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[Ue.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[Ue.DEPRECATE_LEGACY_MODE]:`Legacy API mode has been deprecated in v11. Use Composition API mode instead.
17
- About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,[Ue.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]:"'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.",[Ue.DUPLICATE_USE_I18N_CALLING]:"Duplicate `useI18n` calling by local scope. Please don't call it on local scope, due to it does not work properly in component."};function fn(e,...t){return en($l[e],...t)}function Ct(e){if(!z(e)||Ce(e))return e;for(const t in e)if(Ae(e,t))if(!t.includes("."))z(e[t])&&Ct(e[t]);else{const n=t.split("."),r=n.length-1;let s=e,o=!1;for(let i=0;i<r;i++){if(n[i]==="__proto__")throw new Error(`unsafe key: ${n[i]}`);if(n[i]in s||(s[n[i]]=ee()),!z(s[n[i]])){process.env.NODE_ENV!=="production"&&ke(fn(Ue.IGNORE_OBJ_FLATTEN,{key:n[i]})),o=!0;break}s=s[n[i]]}if(o||(Ce(s)?js.includes(n[r])||delete e[t]:(s[n[r]]=e[t],delete e[t])),!Ce(s)){const i=s[n[r]];z(i)&&Ct(i)}}return e}function _o(e,t){const{messages:n,__i18n:r,messageResolver:s,flatJson:o}=t,i=Z(n)?n:ce(r)?ee():{[e]:ee()};if(ce(r)&&r.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:c,resource:l}=a;c?(i[c]=i[c]||ee(),sn(l,i[c])):sn(l,i)}else U(a)&&sn(JSON.parse(a),i)}),s==null&&o)for(const a in i)Ae(i,a)&&Ct(i[a]);return i}function ho(e){return e.type}function xl(e,t,n){let r=z(t.messages)?t.messages:ee();"__i18nGlobal"in n&&(r=_o(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const s=Object.keys(r);s.length&&s.forEach(o=>{e.mergeLocaleMessage(o,r[o])});{if(z(t.datetimeFormats)){const o=Object.keys(t.datetimeFormats);o.length&&o.forEach(i=>{e.mergeDateTimeFormat(i,t.datetimeFormats[i])})}if(z(t.numberFormats)){const o=Object.keys(t.numberFormats);o.length&&o.forEach(i=>{e.mergeNumberFormat(i,t.numberFormats[i])})}}}function Eo(e){return k.createVNode(k.Text,null,e,0)}function dr(){const e="currentInstance";return e in hn?hn[e]:hn.getCurrentInstance()}const go="__INTLIFY_META__",yo=()=>[],jl=()=>!1;let bo=0;function Oo(e){return((t,n,r,s)=>e(n,r,dr()||void 0,s))}const Bl=()=>{const e=dr();let t=null;return e&&(t=ho(e)[go])?{[go]:t}:null};function Hl(e={}){const{__root:t,__injectWithOption:n}=e,r=t===void 0,s=e.flatJson,o=Be?k.ref:k.shallowRef;let i=le(e.inheritLocale)?e.inheritLocale:!0;const a=o(t&&i?t.locale.value:U(e.locale)?e.locale:ln),c=o(t&&i?t.fallbackLocale.value:U(e.fallbackLocale)||ce(e.fallbackLocale)||Z(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a.value),l=o(_o(a.value,e)),f=o(Z(e.datetimeFormats)?e.datetimeFormats:{[a.value]:{}}),m=o(Z(e.numberFormats)?e.numberFormats:{[a.value]:{}});let E=t?t.missingWarn:le(e.missingWarn)||tn(e.missingWarn)?e.missingWarn:!0,h=t?t.fallbackWarn:le(e.fallbackWarn)||tn(e.fallbackWarn)?e.fallbackWarn:!0,p=t?t.fallbackRoot:le(e.fallbackRoot)?e.fallbackRoot:!0,b=!!e.fallbackFormat,O=oe(e.missing)?e.missing:null,_=oe(e.missing)?Oo(e.missing):null,S=oe(e.postTranslation)?e.postTranslation:null,A=t?t.warnHtmlMessage:le(e.warnHtmlMessage)?e.warnHtmlMessage:!0,N=!!e.escapeParameter;const P=t?t.modifiers:Z(e.modifiers)?e.modifiers:{};let D=e.pluralRules||t&&t.pluralRules,g;g=(()=>{r&&Js(null);const T={version:kl,locale:a.value,fallbackLocale:c.value,messages:l.value,modifiers:P,pluralRules:D,missing:_===null?void 0:_,missingWarn:E,fallbackWarn:h,fallbackFormat:b,unresolving:!0,postTranslation:S===null?void 0:S,warnHtmlMessage:A,escapeParameter:N,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};T.datetimeFormats=f.value,T.numberFormats=m.value,T.__datetimeFormatters=Z(g)?g.__datetimeFormatters:void 0,T.__numberFormatters=Z(g)?g.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(T.__v_emitter=Z(g)?g.__v_emitter:void 0);const I=bl(T);return r&&Js(I),I})(),Lt(g,a.value,c.value);function q(){return[a.value,c.value,l.value,f.value,m.value]}const L=k.computed({get:()=>a.value,set:T=>{g.locale=T,a.value=T}}),R=k.computed({get:()=>c.value,set:T=>{g.fallbackLocale=T,c.value=T,Lt(g,a.value,T)}}),B=k.computed(()=>l.value),te=k.computed(()=>f.value),$=k.computed(()=>m.value);function M(){return oe(S)?S:null}function C(T){S=T,g.postTranslation=T}function x(){return O}function w(T){T!==null&&(_=Oo(T)),O=T,g.missing=_}function j(T,I){return T!=="translate"||!I.resolvedMessage}const H=(T,I,J,ie,it,at)=>{q();let Le;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(g.fallbackContext=t?yl():void 0),Le=T(g)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(g.fallbackContext=void 0)}if(J!=="translate exists"&&pe(Le)&&Le===cn||J==="translate exists"&&!Le){const[ct,yu]=I();if(process.env.NODE_ENV!=="production"&&t&&U(ct)&&j(J,yu)&&(p&&(un(h,ct)||Zs(E,ct))&&ke(fn(Ue.FALLBACK_TO_ROOT,{key:ct,type:J})),process.env.NODE_ENV!=="production")){const{__v_emitter:$o}=g;$o&&p&&$o.emit("fallback",{type:J,key:ct,to:"global",groupId:`${J}:${ct}`})}return t&&p?ie(t):it(ct)}else{if(at(Le))return Le;throw Pt(he.UNEXPECTED_RETURN_TYPE)}};function Q(...T){return H(I=>Reflect.apply(uo,null,[I,...T]),()=>or(...T),"translate",I=>Reflect.apply(I.t,I,[...T]),I=>I,I=>U(I))}function K(...T){const[I,J,ie]=T;if(ie&&!z(ie))throw Pt(he.INVALID_ARGUMENT);return Q(I,J,me({resolvedMessage:!0},ie||{}))}function ne(...T){return H(I=>Reflect.apply(ro,null,[I,...T]),()=>nr(...T),"datetime format",I=>Reflect.apply(I.d,I,[...T]),()=>Et,I=>U(I)||ce(I))}function re(...T){return H(I=>Reflect.apply(io,null,[I,...T]),()=>rr(...T),"number format",I=>Reflect.apply(I.n,I,[...T]),()=>Et,I=>U(I)||ce(I))}function fe(T){return T.map(I=>U(I)||pe(I)||le(I)?Eo(String(I)):I)}const Ie={normalize:fe,interpolate:T=>T,type:"vnode"};function $e(...T){return H(I=>{let J;const ie=I;try{ie.processor=Ie,J=Reflect.apply(uo,null,[ie,...T])}finally{ie.processor=null}return J},()=>or(...T),"translate",I=>I[ir](...T),I=>[Eo(I)],I=>ce(I))}function De(...T){return H(I=>Reflect.apply(io,null,[I,...T]),()=>rr(...T),"number format",I=>I[cr](...T),yo,I=>U(I)||ce(I))}function de(...T){return H(I=>Reflect.apply(ro,null,[I,...T]),()=>nr(...T),"datetime format",I=>I[ar](...T),yo,I=>U(I)||ce(I))}function ve(T){D=T,g.pluralRules=D}function Ge(T,I){return H(()=>{if(!T)return!1;const J=U(I)?I:a.value,ie=U(I)?[J]:Zn(g,c.value,J);for(let it=0;it<ie.length;it++){const at=ot(ie[it]);let Le=g.messageResolver(at,T);if(Le===null&&(Le=at[T]),Ce(Le)||Re(Le)||U(Le))return!0}return!1},()=>[T],"translate exists",J=>Reflect.apply(J.te,J,[T,I]),jl,J=>le(J))}function xe(T){let I=null;const J=Zn(g,c.value,a.value);for(let ie=0;ie<J.length;ie++){const it=l.value[J[ie]]||{},at=g.messageResolver(it,T);if(at!=null){I=at;break}}return I}function It(T){const I=xe(T);return I??(t?t.tm(T)||{}:{})}function ot(T){return l.value[T]||{}}function Dt(T,I){if(s){const J={[T]:I};for(const ie in J)Ae(J,ie)&&Ct(J[ie]);I=J[T]}l.value[T]=I,g.messages=l.value}function mr(T,I){l.value[T]=l.value[T]||{};const J={[T]:I};if(s)for(const ie in J)Ae(J,ie)&&Ct(J[ie]);I=J[T],sn(I,l.value[T]),g.messages=l.value}function u(T){return f.value[T]||{}}function d(T,I){f.value[T]=I,g.datetimeFormats=f.value,oo(g,T,I)}function v(T,I){f.value[T]=me(f.value[T]||{},I),g.datetimeFormats=f.value,oo(g,T,I)}function F(T){return m.value[T]||{}}function se(T,I){m.value[T]=I,g.numberFormats=m.value,co(g,T,I)}function ue(T,I){m.value[T]=me(m.value[T]||{},I),g.numberFormats=m.value,co(g,T,I)}bo++,t&&Be&&(k.watch(t.locale,T=>{i&&(a.value=T,g.locale=T,Lt(g,a.value,c.value))}),k.watch(t.fallbackLocale,T=>{i&&(c.value=T,g.fallbackLocale=T,Lt(g,a.value,c.value))}));const X={id:bo,locale:L,fallbackLocale:R,get inheritLocale(){return i},set inheritLocale(T){i=T,T&&t&&(a.value=t.locale.value,c.value=t.fallbackLocale.value,Lt(g,a.value,c.value))},get availableLocales(){return Object.keys(l.value).sort()},messages:B,get modifiers(){return P},get pluralRules(){return D||{}},get isGlobal(){return r},get missingWarn(){return E},set missingWarn(T){E=T,g.missingWarn=E},get fallbackWarn(){return h},set fallbackWarn(T){h=T,g.fallbackWarn=h},get fallbackRoot(){return p},set fallbackRoot(T){p=T},get fallbackFormat(){return b},set fallbackFormat(T){b=T,g.fallbackFormat=b},get warnHtmlMessage(){return A},set warnHtmlMessage(T){A=T,g.warnHtmlMessage=T},get escapeParameter(){return N},set escapeParameter(T){N=T,g.escapeParameter=T},t:Q,getLocaleMessage:ot,setLocaleMessage:Dt,mergeLocaleMessage:mr,getPostTranslationHandler:M,setPostTranslationHandler:C,getMissingHandler:x,setMissingHandler:w,[Ul]:ve};return X.datetimeFormats=te,X.numberFormats=$,X.rt=K,X.te=Ge,X.tm=It,X.d=ne,X.n=re,X.getDateTimeFormat=u,X.setDateTimeFormat=d,X.mergeDateTimeFormat=v,X.getNumberFormat=F,X.setNumberFormat=se,X.mergeNumberFormat=ue,X[mo]=n,X[ir]=$e,X[ar]=de,X[cr]=De,process.env.NODE_ENV!=="production"&&(X[lr]=T=>{g.__v_emitter=T},X[ur]=()=>{g.__v_emitter=void 0}),X}function No(e,t){}const pr={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Vl({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,s)=>[...r,...s.type===k.Fragment?s.children:[s]],[]):t.reduce((n,r)=>{const s=e[r];return s&&(n[r]=s()),n},ee())}function So(){return k.Fragment}me({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>pe(e)||!isNaN(e)}},pr);function ql(e){return ce(e)&&!U(e[0])}function To(e,t,n,r){const{slots:s,attrs:o}=t;return()=>{const i={part:!0};let a=ee();e.locale&&(i.locale=e.locale),U(e.format)?i.key=e.format:z(e.format)&&(U(e.format.key)&&(i.key=e.format.key),a=Object.keys(e.format).reduce((E,h)=>n.includes(h)?me(ee(),E,{[h]:e.format[h]}):E,ee()));const c=r(e.value,i,a);let l=[i.key];ce(c)?l=c.map((E,h)=>{const p=s[E.type],b=p?p({[E.type]:E.value,index:h,parts:c}):[E.value];return ql(b)&&(b[0].key=`${E.type}-${h}`),b}):U(c)&&(l=[c]);const f=me(ee(),o),m=U(e.tag)||z(e.tag)?e.tag:So();return k.h(m,f,l)}}me({value:{type:Number,required:!0},format:{type:[String,Object]}},pr);const Wl=He("global-vue-i18n");function dn(e={}){const t=dr();if(t==null)throw Pt(he.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Pt(he.NOT_INSTALLED);const n=Yl(t),r=Ql(n),s=ho(t),o=Gl(e,s);if(o==="global")return xl(r,e,s),r;if(o==="parent"){let c=Kl(n,t,e.__useComponent);return c==null&&(process.env.NODE_ENV!=="production"&&ke(fn(Ue.NOT_FOUND_PARENT_SCOPE)),c=r),c}const i=n;let a=i.__getInstance(t);if(a==null){const c=me({},e);"__i18n"in s&&(c.__i18n=s.__i18n),r&&(c.__root=r),a=Hl(c),i.__composerExtend&&(a[fr]=i.__composerExtend(a)),Jl(i,t,a),i.__setInstance(t,a)}else process.env.NODE_ENV!=="production"&&o==="local"&&ke(fn(Ue.DUPLICATE_USE_I18N_CALLING));return a}function Yl(e){const t=k.inject(e.isCE?Wl:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Pt(e.isCE?he.NOT_INSTALLED_WITH_PROVIDE:he.UNEXPECTED_ERROR);return t}function Gl(e,t){return nn(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function Ql(e){return e.mode==="composition"?e.global:e.global.__composer}function Kl(e,t,n=!1){let r=null;const s=t.root;let o=Xl(t,n);for(;o!=null;){const i=e;if(e.mode==="composition")r=i.__getInstance(o);else if(__VUE_I18N_LEGACY_API__){const a=i.__getInstance(o);a!=null&&(r=a.__composer,n&&r&&!r[mo]&&(r=null))}if(r!=null||s===o)break;o=o.parent}return r}function Xl(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function Jl(e,t,n){let r=null;k.onMounted(()=>{if(process.env.NODE_ENV!=="production"){t.__VUE_I18N__=n,r=rc();const s=n;s[lr]&&s[lr](r),r.on("*",No)}},t),k.onUnmounted(()=>{const s=n;process.env.NODE_ENV!=="production"&&(r&&r.off("*",No),s[ur]&&s[ur](),delete t.__VUE_I18N__),e.__deleteInstance(t);const o=s[fr];o&&(o(),delete s[fr])},t)}if(me({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},pr),Ml(),ml(Gc),_l(ul),hl(Zn),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=st();e.__INTLIFY__=!0,Qc(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;let pn=null;function zl(e){if(pn!==null){console.warn("[LinID CoreLib] I18n has already been initialized. Re-initialization is ignored.");return}pn=e}function Ao(){if(pn===null)throw new Error("[LinID CoreLib] I18n is not initialized. Call setI18nInstance() first.");return pn}function Ro(e){const{t,te:n,tm:r}=dn({useScope:"global",__i18n:Ao().global});function s(...c){const[l,f,m]=c;return t(typeof f=="number"?`${e}.${l}`:`${e}.${l}`,f,m)}function o(c){return n(`${e}.${c}`)}function i(c){return r(`${e}.${c}`)}function a(c,...l){return o(l[0])?s(...l):c}return{t:s,te:o,tm:i,translateOrDefault:a}}const Zl=new Set([Es.BadRequest,Es.NotFound]),vo="YYYY-MM-DD";function eu(e){return ae.isAxiosError(e)&&e.response?.status!=null&&Zl.has(e.response.status)}function Lo(e,t){return typeof e=="string"?Hn(e,t||vo,!0):Hn(e)}function Po(e){const{t}=Ro(e);async function n(h,p,b){try{return await Wa(h,p,b),!0}catch(O){return eu(O)?O.response.data.error:t("validation.unknownError")}}function r(h){return h==null||h===""?t("validation.required"):!0}function s(h){return typeof h!="string"||!/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i.test(h)?t("validation.email"):!0}function o(h,p){return h!=null&&h.length<p?t("validation.minLength",{min:p}):!0}function i(h,p){return h!=null&&h.length>p?t("validation.maxLength",{max:p}):!0}function a(h,p){return p>h?t("validation.min",{min:p}):!0}function c(h,p){return h>p?t("validation.max",{max:p}):!0}function l(h,p){return new RegExp(p).test(h)?!0:t("validation.pattern",{pattern:p.toString()})}function f(h,p){return h==null?!0:(typeof h=="object"?p.some(O=>Zt(h,O)):p.some(O=>O!=null&&String(O)===String(h)))?t("validation.unique"):!0}function m(h,p){return h==null||h===""||Lo(h,p).isValid()?!0:t("validation.invalidDate",{format:p||vo})}function E(h,p){return h==null||h===""?!0:Lo(h,p).isBefore(Hn(),"day")?t("validation.dateInPast"):!0}return{validateFromApi:n,required:r,email:s,minLength:o,maxLength:i,min:a,max:c,pattern:l,unique:f,validDate:m,dateNotInPast:E}}function tu(){function e(t){Ln.next({key:"notify",data:t})}return{Notify:e}}function nu(){function e(n){return{page:(n.page||1)-1,size:n.rowsPerPage||5,sort:n.sortBy||"updateDate",direction:n.descending?"desc":"asc"}}function t(n){return{page:n.number+1,rowsPerPage:n.size,rowsNumber:n.totalElements}}return{toPagination:e,toQuasarPagination:t}}const Co="YYYY/MM/DD";function Io(e){const{validateFromApi:t,required:n,email:r,minLength:s,maxLength:o,min:i,max:a,pattern:c,unique:l,validDate:f,dateNotInPast:m}=Po(e);return{validateFromApi:(E,h)=>p=>t(E,h,p),required:n,email:r,min:E=>h=>i(typeof h=="string"?parseFloat(h):h,E),max:E=>h=>a(typeof h=="string"?parseFloat(h):h,E),minLength:E=>h=>s(h,E),maxLength:E=>h=>o(h,E),pattern:E=>h=>c(h,E),unique:E=>h=>l(h,E),validDate:E=>h=>f(h,E||Co),dateNotInPast:E=>h=>m(h,E||Co)}}function ru(e,t,n,r){const{required:s,email:o,validateFromApi:i,...a}=Io(r),c=t.required?[s]:[];return n.forEach(l=>{if(l==="email")c.push(o);else if(a[l]&&t.inputSettings?.[l]!=null){const f=t.inputSettings[l];c.push(a[l](f))}}),t.hasValidations&&c.push(i(e,t.name)),c}let mn=null;function su(e){if(mn!==null){console.warn("[LinID CoreLib] UI Design has already been initialized. Re-initialization is ignored.");return}mn=e}function Do(){if(mn===null)throw new Error("[LinID CoreLib] UI Design is not initialized. Call setUiDesign() first.");return mn}const wo={"q-avatar":["icon","size","fontSize","color","textColor","square","rounded"],"q-badge":["floating","multiLine","align","color","textColor","transparent","outline","rounded"],"q-banner":["inlineActions","dense","rounded","dark"],"q-btn":["icon","iconRight","noCaps","noWrap","align","stack","stretch","size","outline","flat","unelevated","rounded","push","square","glossy","fab","fabMini","padding","color","textColor","dense","ripple","round"],"q-btn-dropdown":["split","disableMainBtn","disableDropdown","persistent","noEscDismiss","noRouteDismiss","autoClose","noRefocus","noFocus","icon","iconRight","noCaps","noWrap","align","stack","stretch","dropdownIcon","cover","menuAnchor","menuSelf","menuOffset","size","outline","flat","unelevated","rounded","push","square","glossy","fab","fabMini","padding","color","textColor","dense","ripple","noIconAnimation","contentStyle","contentClass","transitionShow","transitionHide","transitionDuration"],"q-card":["dark","square","flat","bordered"],"q-card-actions":["align","vertical"],"q-date":["landscape","yearsInMonthView","todayBtn","minimal","defaultView","color","textColor","dark","square","flat","bordered"],"q-dialog":["persistent","noEscDismiss","noBackdropDismiss","noRouteDismiss","autoClose","noRefocus","noFocus","noShake","allowFocusOutside","seamless","maximized","fullWidth","fullHeight","position","backdropFilter","square","transitionShow","transitionHide","transitionDuration"],"q-file":["autofocus","stackLabel","hideHint","clearable","clearIcon","useChips","labelColor","color","bgColor","dark","filled","outlined","borderless","standout","hideBottomSpace","rounded","square","dense","itemAligned","inputClass","inputStyle","noErrorIcon"],"q-form":["autofocus","noErrorFocus","noResetFocus","greedy"],"q-header":["reveal","revealOffset","elevated","bordered"],"q-icon":["left","right","name","size","color"],"q-img":["loading","loadingShowDelay","noSpinner","noNativeMenu","noTransition","draggable","src","srcset","sizes","placeholderSrc","errorSrc","ratio","initialRatio","width","height","fit","position","imgClass","imgStyle","spinnerColor","spinnerSize"],"q-input":["autofocus","stackLabel","hideHint","clearable","clearIcon","counter","autogrow","fillMask","reverseFillMask","unmaskedValue","debounce","labelColor","color","bgColor","dark","filled","outlined","borderless","standout","hideBottomSpace","rounded","square","dense","itemAligned","noErrorIcon"],"q-item":["insetLevel","tag","activeClass","exactActiveClass","clickable","manualFocus","focused","dark","dense"],"q-item-label":["lines","overline","caption","header"],"q-item-section":["avatar","thumbnail","side","top","noWrap"],"q-list":["separator","padding","tag","bordered","dense","dark"],"q-menu":["contextMenu","touchPosition","persistent","noEscDismiss","noRouteDismiss","autoClose","separateClosePopup","noRefocus","noFocus","fit","cover","anchor","self","offset","dark","square","maxHeight","maxWidth","transitionShow","transitionHide","transitionDuration"],"q-route-tab":["icon","activeClass","exactActiveClass","noCaps","alert","contentClass","ripple"],"q-select":["virtualScrollHorizontal","clearable","autofocus","hideDropdownIcon","popupNoRouteDismiss","fillInput","transitionShow","transitionHide","transitionDuration","behavior","stackLabel","hideHint","clearIcon","counter","dropdownIcon","useInput","inputDebounce","optionsDense","optionsDark","optionsSelectedClass","optionsCover","menuShrink","disableTabSelection","menuAnchor","menuSelf","menuOffset","displayValueHtml","hideSelected","useChips","labelColor","color","bgColor","dark","filled","outlined","borderless","standout","hideBottomSpace","rounded","square","dense","itemAligned","popupContentClass","popupContentStyle","inputClass","inputStyle","noErrorIcon","virtualScrollSliceSize","virtualScrollSliceRatioBefore","virtualScrollSliceRatioAfter","virtualScrollItemSize","virtualScrollStickySizeStart","virtualScrollStickySizeEnd"],"q-spinner":["size","color","thickness"],"q-table":["virtualScrollItemSize","virtualScrollStickySizeStart","virtualScrollStickySizeEnd","color","iconFirstPage","iconPrevPage","iconNextPage","iconLastPage","grid","gridHeader","dense","hideHeader","hideBottom","hideSelectedBanner","hideNoData","hidePagination","flat","bordered","square","separator","wrapCells","tableStyle","tableClass","tableHeaderStyle","tableHeaderClass","cardContainerStyle","cardContainerClass","cardStyle","cardClass","titleClass"],"q-tabs":["vertical","outsideArrows","mobileArrows","align","breakpoint","leftIcon","rightIcon","stretch","shrink","switchIndicator","narrowIndicator","inlineLabel","noCaps","activeColor","activeBgColor","indicatorColor","contentClass","activeClass","dense"],"q-toggle":["toggleOrder","toggleIndeterminate","keepColor","icon","checkedIcon","uncheckedIcon","indeterminateIcon","leftLabel","size","color","dark","dense","iconColor"],"q-toolbar":["inset"],"q-toolbar-title":["shrink"],"q-tree":["tickStrategy","noSelectionUnset","defaultExpandAll","accordion","noTransition","noConnectors","color","controlColor","textColor","selectedColor","dense","dark","duration"]};function ko(e,t){return t.split(".").reduce((n,r)=>{if(n&&typeof n=="object")return n[r]},e)}function ou(e,t,n){let r=ko(e,`${t}.${n}`);if(r===void 0&&(r=ko(e,`default.${n}`)),typeof r=="object")throw new Error(`[UiDesign] Value for '${t}.${n}' is a nested object or null, expected a primitive.`);return r}function iu(e){if(!(e in wo))throw new Error(`[UiDesign] The component '${e}' is not supported for UI design retrieval.`);return wo[e]}function au(){const e=k.computed(()=>Do());function t(n,r,s){const o=iu(r),i={};for(const a of o){const c=s?.[a]??ou(e.value,n,`${r}.${String(a)}`);c!==void 0&&(i[a]=c)}return i}return{ui:t}}function cu(){function e(t){return t.map(n=>({type:n.type,key:n.key,value:n.value,children:e(n.nodes)}))}return{toQTreeNodes:e}}async function Mo(){return(await we().get("/metadata/entities")).data}async function lu(e){return(await we().get(`/metadata/entities/${e}`)).data}async function Fo(){return(await we().get("/metadata/routes")).data}const uu=()=>fu(yt()),fu=Mt("LinidConfigurationStore",{state:()=>({entities:[],apiEndpoints:[],loading:!1,error:null}),getters:{getEntityByName:e=>t=>e.entities.find(n=>n.name===t),getApiEndpointsByEntity:e=>t=>e.apiEndpoints.filter(n=>n.entity===t)},actions:{async fetchConfiguration(){this.loading=!0,this.error=null;try{const[e,t]=await Promise.all([Mo(),Fo()]);this.entities=e,this.apiEndpoints=t}catch(e){this.error=e instanceof Error?e.message:"Failed to fetch configuration",console.error("[Linid CoreLib] Failed to fetch configuration:",e)}finally{this.loading=!1}}}}),du=()=>pu(yt()),pu=Mt("LinidUiStore",{state:()=>({mainNavigationItems:[]}),actions:{addMainNavigationMenuItems(...e){this.mainNavigationItems.push(...e)}}}),mu=()=>_u(yt()),_u=Mt("LinidUserStore",{state:()=>({user:{username:"",email:"",fullName:"",roles:[]},isAuthenticated:!1}),actions:{setUserFromClaims(e){const t=e.roles;this.user={username:e.sub,email:typeof e.email=="string"?e.email:"",fullName:typeof e.name=="string"?e.name:"",roles:Array.isArray(t)?t.filter(n=>typeof n=="string"):[]},this.isAuthenticated=!0}}});let _n=null;function hu(e){if(_n!==null){console.warn("[LinID CoreLib] Nunjucks environment has already been initialized. Re-initialization is ignored.");return}_n=e}function Eu(){if(_n===null)throw new Error("[LinID CoreLib] Nunjucks environment is not initialized. Call setNunjucksEnv() first.");return _n}var Uo=(e=>(e.SETUP="setup",e.CONFIGURE="configure",e.INITIALIZE="initialize",e.READY="ready",e.POST_INIT="postInit",e))(Uo||{});class gu{id;name;version;description;constructor(t,n,r,s){this.id=t,this.name=n,this.version=r,this.description=s}async setup(){return{success:!0}}async configure(t){return{success:!0}}async initialize(t){return{success:!0}}async ready(t){return{success:!0}}async postInit(t){return{success:!0}}}V.BasicRemoteModule=gu,V.LinidZoneRenderer=Qo,V.ModuleLifecyclePhase=Uo,V.deepEqual=Vn,V.deepEqualUnordered=Zt,V.deleteEntityById=qa,V.fromDot=Ya,V.getApiEndpointsConfiguration=Fo,V.getEntities=Ha,V.getEntitiesConfiguration=Mo,V.getEntityById=Va,V.getEntityConfiguration=lu,V.getHttpClient=we,V.getI18nInstance=Ao,V.getModuleFederation=_r,V.getModuleHostConfiguration=tt,V.getNunjucksEnv=Eu,V.getPiniaStore=yt,V.getUiDesign=Do,V.isObject=nt,V.loadAsyncComponent=hr,V.merge=bs,V.registerModuleHostConfiguration=xa,V.renameKeys=Os,V.saveEntity=ja,V.setHttpClient=$a,V.setI18nInstance=zl,V.setModuleFederation=Ho,V.setNunjucksEnv=hu,V.setPiniaStore=Yo,V.setUiDesign=su,V.uiEventSubject=Ln,V.updateEntity=Ba,V.useDialog=ai,V.useFieldValidation=Po,V.useLinidConfigurationStore=uu,V.useLinidUiStore=du,V.useLinidUserStore=mu,V.useLinidZoneStore=Sr,V.useNotify=tu,V.usePagination=nu,V.useQuasarFieldValidation=Io,V.useQuasarRules=ru,V.useScopedI18n=Ro,V.useTree=cu,V.useUiDesign=au,Object.defineProperty(V,Symbol.toStringTag,{value:"Module"})}));
5
+ This will fail in production.`);i=Kn,i._s.has(e)||(o?gl(e,t,a,i):zs(e,a,i),process.env.NODE_ENV!=="production"&&(l._pinia=i));const d=i._s.get(e);if(process.env.NODE_ENV!=="production"&&s){const c="__hot:"+e,g=o?gl(c,t,a,i,!0):zs(c,Yt({},a),i,!0);s._hotUpdate(g),delete i.state.value[c],i._s.delete(c)}if(process.env.NODE_ENV!=="production"&&Sr){const c=r.getCurrentInstance();if(c&&c.proxy&&!s){const g=c.proxy,v="_pStores"in g?g._pStores:g._pStores={};v[e]=d}}return d}return l.$id=e,l}let Ia=null;function Um(e){if(Ia!==null){console.warn("[LinID CoreLib] Pinia store has already been initialized. Re-initialization is ignored.");return}Ia=e}function ta(){if(Ia===null)throw new Error("[LinID CoreLib] Pinia store is not initialized. Call setPiniaStore() first.");return Ia}const Hs=()=>Qm(ta()),Qm=Na("linidZoneStore",{state:()=>({zones:{}}),actions:{register(e,t){this.zones[e]||(this.zones[e]=[]),this.zones[e].push(t)},registerOnce(e,t){this.zones[e]?.some(({plugin:n})=>n===t.plugin)||this.register(e,t)}}}),Wm=r.defineComponent({inheritAttrs:!1,__name:"LinidZoneRenderer",props:{zone:{}},setup(e){const t=e,a=(Hs().zones[t.zone]||[]).map(o=>({...o,component:Ns(o.plugin)}));return(o,l)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(a),(i,s)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(i.component),r.mergeProps({key:i.plugin+s},{ref_for:!0},{...o.$attrs,...i.props}),null,16))),128)),r.unref(a).length===0?r.renderSlot(o.$slots,"default",{key:0}):r.createCommentVNode("",!0)],64))}});let Da=null;function Km(e){if(Da!==null){console.warn("[LinID CoreLib] Dayjs instance has already been initialized. Re-initialization is ignored.");return}Da=e}function js(){if(Da===null)throw new Error("[LinID CoreLib] Dayjs instance is not initialized. Call setDayjsInstance() first.");return Da}const Gn="YYYY-MM-DD";function Us(){const e=js();function t(o,l){return typeof o=="string"?e(o,l||Gn,!0):e(o)}function n(o,l){const i=o.map(s=>t(s,l)).filter(s=>s.isValid());return i.length===0?null:i.reduce((s,u)=>u.isAfter(s)?u:s)}function a(o,l){const i=o.map(s=>t(s,l)).filter(s=>s.isValid());return i.length===0?null:i.reduce((s,u)=>u.isBefore(s)?u:s)}return{maxDate:n,minDate:a,toDayjs:t}}var bl=function(e,t){return bl=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])},bl(e,t)};function $a(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");bl(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function pl(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],a=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function yl(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var a=n.call(e),o,l=[],i;try{for(;(t===void 0||t-- >0)&&!(o=a.next()).done;)l.push(o.value)}catch(s){i={error:s}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return l}function _l(e,t,n){if(n||arguments.length===2)for(var a=0,o=t.length,l;a<o;a++)(l||!(a in t))&&(l||(l=Array.prototype.slice.call(t,0,a)),l[a]=t[a]);return e.concat(l||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function Sn(e){return typeof e=="function"}function Qs(e){var t=function(a){Error.call(a),a.stack=new Error().stack},n=e(t);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Sl=Qs(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
6
+ `+n.map(function(a,o){return o+1+") "+a.toString()}).join(`
7
+ `):"",this.name="UnsubscriptionError",this.errors=n}});function wl(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Ba=(function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,n,a,o,l;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var s=pl(i),u=s.next();!u.done;u=s.next()){var d=u.value;d.remove(this)}}catch(_){t={error:_}}finally{try{u&&!u.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}else i.remove(this);var c=this.initialTeardown;if(Sn(c))try{c()}catch(_){l=_ instanceof Sl?_.errors:[_]}var g=this._finalizers;if(g){this._finalizers=null;try{for(var v=pl(g),h=v.next();!h.done;h=v.next()){var f=h.value;try{Ys(f)}catch(_){l=l??[],_ instanceof Sl?l=_l(_l([],yl(l)),yl(_.errors)):l.push(_)}}}catch(_){a={error:_}}finally{try{h&&!h.done&&(o=v.return)&&o.call(v)}finally{if(a)throw a.error}}}if(l)throw new Sl(l)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)Ys(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&wl(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&wl(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})(),Ws=Ba.EMPTY;function Ks(e){return e instanceof Ba||e&&"closed"in e&&Sn(e.remove)&&Sn(e.add)&&Sn(e.unsubscribe)}function Ys(e){Sn(e)?e():e.unsubscribe()}var Ym={Promise:void 0},Gm={setTimeout:function(e,t){for(var n=[],a=2;a<arguments.length;a++)n[a-2]=arguments[a];return setTimeout.apply(void 0,_l([e,t],yl(n)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function Xm(e){Gm.setTimeout(function(){throw e})}function Gs(){}function Fa(e){e()}var Xs=(function(e){$a(t,e);function t(n){var a=e.call(this)||this;return a.isStopped=!1,n?(a.destination=n,Ks(n)&&n.add(a)):a.destination=Vm,a}return t.create=function(n,a,o){return new Cl(n,a,o)},t.prototype.next=function(n){this.isStopped||this._next(n)},t.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(n){this.destination.next(n)},t.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t})(Ba),Jm=(function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(a){za(a)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(a){za(a)}else za(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){za(n)}},e})(),Cl=(function(e){$a(t,e);function t(n,a,o){var l=e.call(this)||this,i;return Sn(n)||!n?i={next:n??void 0,error:a??void 0,complete:o??void 0}:i=n,l.destination=new Jm(i),l}return t})(Xs);function za(e){Xm(e)}function Zm(e){throw e}var Vm={closed:!0,next:Gs,error:Zm,complete:Gs},eh=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function th(e){return e}function nh(e){return e.length===0?th:e.length===1?e[0]:function(n){return e.reduce(function(a,o){return o(a)},n)}}var Js=(function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(t,n,a){var o=this,l=ah(t)?t:new Cl(t,n,a);return Fa(function(){var i=o,s=i.operator,u=i.source;l.add(s?s.call(l,u):u?o._subscribe(l):o._trySubscribe(l))}),l},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},e.prototype.forEach=function(t,n){var a=this;return n=Zs(n),new n(function(o,l){var i=new Cl({next:function(s){try{t(s)}catch(u){l(u),i.unsubscribe()}},error:l,complete:o});a.subscribe(i)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[eh]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return nh(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=Zs(t),new t(function(a,o){var l;n.subscribe(function(i){return l=i},function(i){return o(i)},function(){return a(l)})})},e.create=function(t){return new e(t)},e})();function Zs(e){var t;return(t=e??Ym.Promise)!==null&&t!==void 0?t:Promise}function rh(e){return e&&Sn(e.next)&&Sn(e.error)&&Sn(e.complete)}function ah(e){return e&&e instanceof Xs||rh(e)&&Ks(e)}var oh=Qs(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Vs=(function(e){$a(t,e);function t(){var n=e.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return t.prototype.lift=function(n){var a=new eu(this,this);return a.operator=n,a},t.prototype._throwIfClosed=function(){if(this.closed)throw new oh},t.prototype.next=function(n){var a=this;Fa(function(){var o,l;if(a._throwIfClosed(),!a.isStopped){a.currentObservers||(a.currentObservers=Array.from(a.observers));try{for(var i=pl(a.currentObservers),s=i.next();!s.done;s=i.next()){var u=s.value;u.next(n)}}catch(d){o={error:d}}finally{try{s&&!s.done&&(l=i.return)&&l.call(i)}finally{if(o)throw o.error}}}})},t.prototype.error=function(n){var a=this;Fa(function(){if(a._throwIfClosed(),!a.isStopped){a.hasError=a.isStopped=!0,a.thrownError=n;for(var o=a.observers;o.length;)o.shift().error(n)}})},t.prototype.complete=function(){var n=this;Fa(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var a=n.observers;a.length;)a.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},t.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},t.prototype._innerSubscribe=function(n){var a=this,o=this,l=o.hasError,i=o.isStopped,s=o.observers;return l||i?Ws:(this.currentObservers=null,s.push(n),new Ba(function(){a.currentObservers=null,wl(s,n)}))},t.prototype._checkFinalizedStatuses=function(n){var a=this,o=a.hasError,l=a.thrownError,i=a.isStopped;o?n.error(l):i&&n.complete()},t.prototype.asObservable=function(){var n=new Js;return n.source=this,n},t.create=function(n,a){return new eu(n,a)},t})(Js),eu=(function(e){$a(t,e);function t(n,a){var o=e.call(this)||this;return o.destination=n,o.source=a,o}return t.prototype.next=function(n){var a,o;(o=(a=this.destination)===null||a===void 0?void 0:a.next)===null||o===void 0||o.call(a,n)},t.prototype.error=function(n){var a,o;(o=(a=this.destination)===null||a===void 0?void 0:a.error)===null||o===void 0||o.call(a,n)},t.prototype.complete=function(){var n,a;(a=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||a===void 0||a.call(n)},t.prototype._subscribe=function(n){var a,o;return(o=(a=this.source)===null||a===void 0?void 0:a.subscribe(n))!==null&&o!==void 0?o:Ws},t})(Vs);const kl=new Vs;function lh(e,t){const n=r.ref(!1);let a;function o(l){if(l.key!==e)return;const i=l.data;if(i.type==="close"){n.value=!1;return}n.value=!0,t?.(i)}return r.onMounted(()=>{a=kl.subscribe(o)}),r.onUnmounted(()=>{a?.unsubscribe()}),{show:n}}function tu(e,t){return function(){return e.apply(t,arguments)}}const{toString:ih}=Object.prototype,{getPrototypeOf:xl}=Object,{iterator:Ha,toStringTag:nu}=Symbol,ja=(e=>t=>{const n=ih.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),on=e=>(e=e.toLowerCase(),t=>ja(t)===e),Ua=e=>t=>typeof t===e,{isArray:Cr}=Array,kr=Ua("undefined");function na(e){return e!==null&&!kr(e)&&e.constructor!==null&&!kr(e.constructor)&&jt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ru=on("ArrayBuffer");function sh(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ru(e.buffer),t}const uh=Ua("string"),jt=Ua("function"),au=Ua("number"),ra=e=>e!==null&&typeof e=="object",ch=e=>e===!0||e===!1,Qa=e=>{if(ja(e)!=="object")return!1;const t=xl(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(nu in e)&&!(Ha in e)},dh=e=>{if(!ra(e)||na(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},fh=on("Date"),vh=on("File"),mh=e=>!!(e&&typeof e.uri<"u"),hh=e=>e&&typeof e.getParts<"u",gh=on("Blob"),bh=on("FileList"),ph=e=>ra(e)&&jt(e.pipe);function yh(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const ou=yh(),lu=typeof ou.FormData<"u"?ou.FormData:void 0,_h=e=>{let t;return e&&(lu&&e instanceof lu||jt(e.append)&&((t=ja(e))==="formdata"||t==="object"&&jt(e.toString)&&e.toString()==="[object FormData]"))},Sh=on("URLSearchParams"),[wh,Ch,kh,xh]=["ReadableStream","Request","Response","Headers"].map(on),Eh=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function aa(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let a,o;if(typeof e!="object"&&(e=[e]),Cr(e))for(a=0,o=e.length;a<o;a++)t.call(null,e[a],a,e);else{if(na(e))return;const l=n?Object.getOwnPropertyNames(e):Object.keys(e),i=l.length;let s;for(a=0;a<i;a++)s=l[a],t.call(null,e[s],s,e)}}function iu(e,t){if(na(e))return null;t=t.toLowerCase();const n=Object.keys(e);let a=n.length,o;for(;a-- >0;)if(o=n[a],t===o.toLowerCase())return o;return null}const Xn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,su=e=>!kr(e)&&e!==Xn;function El(){const{caseless:e,skipUndefined:t}=su(this)&&this||{},n={},a=(o,l)=>{if(l==="__proto__"||l==="constructor"||l==="prototype")return;const i=e&&iu(n,l)||l;Qa(n[i])&&Qa(o)?n[i]=El(n[i],o):Qa(o)?n[i]=El({},o):Cr(o)?n[i]=o.slice():(!t||!kr(o))&&(n[i]=o)};for(let o=0,l=arguments.length;o<l;o++)arguments[o]&&aa(arguments[o],a);return n}const Th=(e,t,n,{allOwnKeys:a}={})=>(aa(t,(o,l)=>{n&&jt(o)?Object.defineProperty(e,l,{value:tu(o,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,l,{value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:a}),e),qh=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Oh=(e,t,n,a)=>{e.prototype=Object.create(t.prototype,a),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Mh=(e,t,n,a)=>{let o,l,i;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),l=o.length;l-- >0;)i=o[l],(!a||a(i,e,t))&&!s[i]&&(t[i]=e[i],s[i]=!0);e=n!==!1&&xl(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Lh=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const a=e.indexOf(t,n);return a!==-1&&a===n},Ah=e=>{if(!e)return null;if(Cr(e))return e;let t=e.length;if(!au(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Rh=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&xl(Uint8Array)),Ph=(e,t)=>{const a=(e&&e[Ha]).call(e);let o;for(;(o=a.next())&&!o.done;){const l=o.value;t.call(e,l[0],l[1])}},Nh=(e,t)=>{let n;const a=[];for(;(n=e.exec(t))!==null;)a.push(n);return a},Ih=on("HTMLFormElement"),Dh=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,a,o){return a.toUpperCase()+o}),uu=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),$h=on("RegExp"),cu=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),a={};aa(n,(o,l)=>{let i;(i=t(o,l,e))!==!1&&(a[l]=i||o)}),Object.defineProperties(e,a)},Bh=e=>{cu(e,(t,n)=>{if(jt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const a=e[n];if(jt(a)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Fh=(e,t)=>{const n={},a=o=>{o.forEach(l=>{n[l]=!0})};return Cr(e)?a(e):a(String(e).split(t)),n},zh=()=>{},Hh=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function jh(e){return!!(e&&jt(e.append)&&e[nu]==="FormData"&&e[Ha])}const Uh=e=>{const t=new Array(10),n=(a,o)=>{if(ra(a)){if(t.indexOf(a)>=0)return;if(na(a))return a;if(!("toJSON"in a)){t[o]=a;const l=Cr(a)?[]:{};return aa(a,(i,s)=>{const u=n(i,o+1);!kr(u)&&(l[s]=u)}),t[o]=void 0,l}}return a};return n(e,0)},Qh=on("AsyncFunction"),Wh=e=>e&&(ra(e)||jt(e))&&jt(e.then)&&jt(e.catch),du=((e,t)=>e?setImmediate:t?((n,a)=>(Xn.addEventListener("message",({source:o,data:l})=>{o===Xn&&l===n&&a.length&&a.shift()()},!1),o=>{a.push(o),Xn.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",jt(Xn.postMessage)),Kh=typeof queueMicrotask<"u"?queueMicrotask.bind(Xn):typeof process<"u"&&process.nextTick||du,ne={isArray:Cr,isArrayBuffer:ru,isBuffer:na,isFormData:_h,isArrayBufferView:sh,isString:uh,isNumber:au,isBoolean:ch,isObject:ra,isPlainObject:Qa,isEmptyObject:dh,isReadableStream:wh,isRequest:Ch,isResponse:kh,isHeaders:xh,isUndefined:kr,isDate:fh,isFile:vh,isReactNativeBlob:mh,isReactNative:hh,isBlob:gh,isRegExp:$h,isFunction:jt,isStream:ph,isURLSearchParams:Sh,isTypedArray:Rh,isFileList:bh,forEach:aa,merge:El,extend:Th,trim:Eh,stripBOM:qh,inherits:Oh,toFlatObject:Mh,kindOf:ja,kindOfTest:on,endsWith:Lh,toArray:Ah,forEachEntry:Ph,matchAll:Nh,isHTMLForm:Ih,hasOwnProperty:uu,hasOwnProp:uu,reduceDescriptors:cu,freezeMethods:Bh,toObjectSet:Fh,toCamelCase:Dh,noop:zh,toFiniteNumber:Hh,findKey:iu,global:Xn,isContextDefined:su,isSpecCompliantForm:jh,toJSONObject:Uh,isAsyncFn:Qh,isThenable:Wh,setImmediate:du,asap:Kh,isIterable:e=>e!=null&&jt(e[Ha])};let Ie=class Dm extends Error{static from(t,n,a,o,l,i){const s=new Dm(t.message,n||t.code,a,o,l);return s.cause=t,s.name=t.name,t.status!=null&&s.status==null&&(s.status=t.status),i&&Object.assign(s,i),s}constructor(t,n,a,o,l){super(t),Object.defineProperty(this,"message",{value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),a&&(this.config=a),o&&(this.request=o),l&&(this.response=l,this.status=l.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ne.toJSONObject(this.config),code:this.code,status:this.status}}};Ie.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",Ie.ERR_BAD_OPTION="ERR_BAD_OPTION",Ie.ECONNABORTED="ECONNABORTED",Ie.ETIMEDOUT="ETIMEDOUT",Ie.ERR_NETWORK="ERR_NETWORK",Ie.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",Ie.ERR_DEPRECATED="ERR_DEPRECATED",Ie.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",Ie.ERR_BAD_REQUEST="ERR_BAD_REQUEST",Ie.ERR_CANCELED="ERR_CANCELED",Ie.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",Ie.ERR_INVALID_URL="ERR_INVALID_URL";const Yh=null;function Tl(e){return ne.isPlainObject(e)||ne.isArray(e)}function fu(e){return ne.endsWith(e,"[]")?e.slice(0,-2):e}function ql(e,t,n){return e?e.concat(t).map(function(o,l){return o=fu(o),!n&&l?"["+o+"]":o}).join(n?".":""):t}function Gh(e){return ne.isArray(e)&&!e.some(Tl)}const Xh=ne.toFlatObject(ne,{},null,function(t){return/^is[A-Z]/.test(t)});function Wa(e,t,n){if(!ne.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ne.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(_,p){return!ne.isUndefined(p[_])});const a=n.metaTokens,o=n.visitor||c,l=n.dots,i=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&ne.isSpecCompliantForm(t);if(!ne.isFunction(o))throw new TypeError("visitor must be a function");function d(f){if(f===null)return"";if(ne.isDate(f))return f.toISOString();if(ne.isBoolean(f))return f.toString();if(!u&&ne.isBlob(f))throw new Ie("Blob is not supported. Use a Buffer instead.");return ne.isArrayBuffer(f)||ne.isTypedArray(f)?u&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function c(f,_,p){let b=f;if(ne.isReactNative(t)&&ne.isReactNativeBlob(f))return t.append(ql(p,_,l),d(f)),!1;if(f&&!p&&typeof f=="object"){if(ne.endsWith(_,"{}"))_=a?_:_.slice(0,-2),f=JSON.stringify(f);else if(ne.isArray(f)&&Gh(f)||(ne.isFileList(f)||ne.endsWith(_,"[]"))&&(b=ne.toArray(f)))return _=fu(_),b.forEach(function(y,m){!(ne.isUndefined(y)||y===null)&&t.append(i===!0?ql([_],m,l):i===null?_:_+"[]",d(y))}),!1}return Tl(f)?!0:(t.append(ql(p,_,l),d(f)),!1)}const g=[],v=Object.assign(Xh,{defaultVisitor:c,convertValue:d,isVisitable:Tl});function h(f,_){if(!ne.isUndefined(f)){if(g.indexOf(f)!==-1)throw Error("Circular reference detected in "+_.join("."));g.push(f),ne.forEach(f,function(b,S){(!(ne.isUndefined(b)||b===null)&&o.call(t,b,ne.isString(S)?S.trim():S,_,v))===!0&&h(b,_?_.concat(S):[S])}),g.pop()}}if(!ne.isObject(e))throw new TypeError("data must be an object");return h(e),t}function vu(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(a){return t[a]})}function Ol(e,t){this._pairs=[],e&&Wa(e,this,t)}const mu=Ol.prototype;mu.append=function(t,n){this._pairs.push([t,n])},mu.toString=function(t){const n=t?function(a){return t.call(this,a,vu)}:vu;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Jh(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function hu(e,t,n){if(!t)return e;const a=n&&n.encode||Jh,o=ne.isFunction(n)?{serialize:n}:n,l=o&&o.serialize;let i;if(l?i=l(t,o):i=ne.isURLSearchParams(t)?t.toString():new Ol(t,o).toString(a),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class gu{constructor(){this.handlers=[]}use(t,n,a){return this.handlers.push({fulfilled:t,rejected:n,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ne.forEach(this.handlers,function(a){a!==null&&t(a)})}}const Ml={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Zh={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Ol,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Ll=typeof window<"u"&&typeof document<"u",Al=typeof navigator=="object"&&navigator||void 0,Vh=Ll&&(!Al||["ReactNative","NativeScript","NS"].indexOf(Al.product)<0),eg=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",tg=Ll&&window.location.href||"http://localhost",Pt={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ll,hasStandardBrowserEnv:Vh,hasStandardBrowserWebWorkerEnv:eg,navigator:Al,origin:tg},Symbol.toStringTag,{value:"Module"})),...Zh};function ng(e,t){return Wa(e,new Pt.classes.URLSearchParams,{visitor:function(n,a,o,l){return Pt.isNode&&ne.isBuffer(n)?(this.append(a,n.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)},...t})}function rg(e){return ne.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function ag(e){const t={},n=Object.keys(e);let a;const o=n.length;let l;for(a=0;a<o;a++)l=n[a],t[l]=e[l];return t}function bu(e){function t(n,a,o,l){let i=n[l++];if(i==="__proto__")return!0;const s=Number.isFinite(+i),u=l>=n.length;return i=!i&&ne.isArray(o)?o.length:i,u?(ne.hasOwnProp(o,i)?o[i]=[o[i],a]:o[i]=a,!s):((!o[i]||!ne.isObject(o[i]))&&(o[i]=[]),t(n,a,o[i],l)&&ne.isArray(o[i])&&(o[i]=ag(o[i])),!s)}if(ne.isFormData(e)&&ne.isFunction(e.entries)){const n={};return ne.forEachEntry(e,(a,o)=>{t(rg(a),o,n,0)}),n}return null}function og(e,t,n){if(ne.isString(e))try{return(t||JSON.parse)(e),ne.trim(e)}catch(a){if(a.name!=="SyntaxError")throw a}return(n||JSON.stringify)(e)}const oa={transitional:Ml,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const a=n.getContentType()||"",o=a.indexOf("application/json")>-1,l=ne.isObject(t);if(l&&ne.isHTMLForm(t)&&(t=new FormData(t)),ne.isFormData(t))return o?JSON.stringify(bu(t)):t;if(ne.isArrayBuffer(t)||ne.isBuffer(t)||ne.isStream(t)||ne.isFile(t)||ne.isBlob(t)||ne.isReadableStream(t))return t;if(ne.isArrayBufferView(t))return t.buffer;if(ne.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(l){if(a.indexOf("application/x-www-form-urlencoded")>-1)return ng(t,this.formSerializer).toString();if((s=ne.isFileList(t))||a.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return Wa(s?{"files[]":t}:t,u&&new u,this.formSerializer)}}return l||o?(n.setContentType("application/json",!1),og(t)):t}],transformResponse:[function(t){const n=this.transitional||oa.transitional,a=n&&n.forcedJSONParsing,o=this.responseType==="json";if(ne.isResponse(t)||ne.isReadableStream(t))return t;if(t&&ne.isString(t)&&(a&&!this.responseType||o)){const i=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(s){if(i)throw s.name==="SyntaxError"?Ie.from(s,Ie.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Pt.classes.FormData,Blob:Pt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ne.forEach(["delete","get","head","post","put","patch"],e=>{oa.headers[e]={}});const lg=ne.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ig=e=>{const t={};let n,a,o;return e&&e.split(`
8
+ `).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),a=i.substring(o+1).trim(),!(!n||t[n]&&lg[n])&&(n==="set-cookie"?t[n]?t[n].push(a):t[n]=[a]:t[n]=t[n]?t[n]+", "+a:a)}),t},pu=Symbol("internals");function la(e){return e&&String(e).trim().toLowerCase()}function Ka(e){return e===!1||e==null?e:ne.isArray(e)?e.map(Ka):String(e)}function sg(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=n.exec(e);)t[a[1]]=a[2];return t}const ug=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Rl(e,t,n,a,o){if(ne.isFunction(a))return a.call(this,t,n);if(o&&(t=n),!!ne.isString(t)){if(ne.isString(a))return t.indexOf(a)!==-1;if(ne.isRegExp(a))return a.test(t)}}function cg(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,a)=>n.toUpperCase()+a)}function dg(e,t){const n=ne.toCamelCase(" "+t);["get","set","has"].forEach(a=>{Object.defineProperty(e,a+n,{value:function(o,l,i){return this[a].call(this,t,o,l,i)},configurable:!0})})}let Ut=class{constructor(t){t&&this.set(t)}set(t,n,a){const o=this;function l(s,u,d){const c=la(u);if(!c)throw new Error("header name must be a non-empty string");const g=ne.findKey(o,c);(!g||o[g]===void 0||d===!0||d===void 0&&o[g]!==!1)&&(o[g||u]=Ka(s))}const i=(s,u)=>ne.forEach(s,(d,c)=>l(d,c,u));if(ne.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(ne.isString(t)&&(t=t.trim())&&!ug(t))i(ig(t),n);else if(ne.isObject(t)&&ne.isIterable(t)){let s={},u,d;for(const c of t){if(!ne.isArray(c))throw TypeError("Object iterator must return a key-value pair");s[d=c[0]]=(u=s[d])?ne.isArray(u)?[...u,c[1]]:[u,c[1]]:c[1]}i(s,n)}else t!=null&&l(n,t,a);return this}get(t,n){if(t=la(t),t){const a=ne.findKey(this,t);if(a){const o=this[a];if(!n)return o;if(n===!0)return sg(o);if(ne.isFunction(n))return n.call(this,o,a);if(ne.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=la(t),t){const a=ne.findKey(this,t);return!!(a&&this[a]!==void 0&&(!n||Rl(this,this[a],a,n)))}return!1}delete(t,n){const a=this;let o=!1;function l(i){if(i=la(i),i){const s=ne.findKey(a,i);s&&(!n||Rl(a,a[s],s,n))&&(delete a[s],o=!0)}}return ne.isArray(t)?t.forEach(l):l(t),o}clear(t){const n=Object.keys(this);let a=n.length,o=!1;for(;a--;){const l=n[a];(!t||Rl(this,this[l],l,t,!0))&&(delete this[l],o=!0)}return o}normalize(t){const n=this,a={};return ne.forEach(this,(o,l)=>{const i=ne.findKey(a,l);if(i){n[i]=Ka(o),delete n[l];return}const s=t?cg(l):String(l).trim();s!==l&&delete n[l],n[s]=Ka(o),a[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ne.forEach(this,(a,o)=>{a!=null&&a!==!1&&(n[o]=t&&ne.isArray(a)?a.join(", "):a)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
9
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const a=new this(t);return n.forEach(o=>a.set(o)),a}static accessor(t){const a=(this[pu]=this[pu]={accessors:{}}).accessors,o=this.prototype;function l(i){const s=la(i);a[s]||(dg(o,i),a[s]=!0)}return ne.isArray(t)?t.forEach(l):l(t),this}};Ut.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ne.reduceDescriptors(Ut.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(a){this[n]=a}}}),ne.freezeMethods(Ut);function Pl(e,t){const n=this||oa,a=t||n,o=Ut.from(a.headers);let l=a.data;return ne.forEach(e,function(s){l=s.call(n,l,o.normalize(),t?t.status:void 0)}),o.normalize(),l}function yu(e){return!!(e&&e.__CANCEL__)}let ia=class extends Ie{constructor(t,n,a){super(t??"canceled",Ie.ERR_CANCELED,n,a),this.name="CanceledError",this.__CANCEL__=!0}};function _u(e,t,n){const a=n.config.validateStatus;!n.status||!a||a(n.status)?e(n):t(new Ie("Request failed with status code "+n.status,[Ie.ERR_BAD_REQUEST,Ie.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function fg(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function vg(e,t){e=e||10;const n=new Array(e),a=new Array(e);let o=0,l=0,i;return t=t!==void 0?t:1e3,function(u){const d=Date.now(),c=a[l];i||(i=d),n[o]=u,a[o]=d;let g=l,v=0;for(;g!==o;)v+=n[g++],g=g%e;if(o=(o+1)%e,o===l&&(l=(l+1)%e),d-i<t)return;const h=c&&d-c;return h?Math.round(v*1e3/h):void 0}}function mg(e,t){let n=0,a=1e3/t,o,l;const i=(d,c=Date.now())=>{n=c,o=null,l&&(clearTimeout(l),l=null),e(...d)};return[(...d)=>{const c=Date.now(),g=c-n;g>=a?i(d,c):(o=d,l||(l=setTimeout(()=>{l=null,i(o)},a-g)))},()=>o&&i(o)]}const Ya=(e,t,n=3)=>{let a=0;const o=vg(50,250);return mg(l=>{const i=l.loaded,s=l.lengthComputable?l.total:void 0,u=i-a,d=o(u),c=i<=s;a=i;const g={loaded:i,total:s,progress:s?i/s:void 0,bytes:u,rate:d||void 0,estimated:d&&s&&c?(s-i)/d:void 0,event:l,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(g)},n)},Su=(e,t)=>{const n=e!=null;return[a=>t[0]({lengthComputable:n,total:e,loaded:a}),t[1]]},wu=e=>(...t)=>ne.asap(()=>e(...t)),hg=Pt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Pt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Pt.origin),Pt.navigator&&/(msie|trident)/i.test(Pt.navigator.userAgent)):()=>!0,gg=Pt.hasStandardBrowserEnv?{write(e,t,n,a,o,l,i){if(typeof document>"u")return;const s=[`${e}=${encodeURIComponent(t)}`];ne.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),ne.isString(a)&&s.push(`path=${a}`),ne.isString(o)&&s.push(`domain=${o}`),l===!0&&s.push("secure"),ne.isString(i)&&s.push(`SameSite=${i}`),document.cookie=s.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function bg(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function pg(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Cu(e,t,n){let a=!bg(t);return e&&(a||n==!1)?pg(e,t):t}const ku=e=>e instanceof Ut?{...e}:e;function Jn(e,t){t=t||{};const n={};function a(d,c,g,v){return ne.isPlainObject(d)&&ne.isPlainObject(c)?ne.merge.call({caseless:v},d,c):ne.isPlainObject(c)?ne.merge({},c):ne.isArray(c)?c.slice():c}function o(d,c,g,v){if(ne.isUndefined(c)){if(!ne.isUndefined(d))return a(void 0,d,g,v)}else return a(d,c,g,v)}function l(d,c){if(!ne.isUndefined(c))return a(void 0,c)}function i(d,c){if(ne.isUndefined(c)){if(!ne.isUndefined(d))return a(void 0,d)}else return a(void 0,c)}function s(d,c,g){if(g in t)return a(d,c);if(g in e)return a(void 0,d)}const u={url:l,method:l,data:l,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s,headers:(d,c,g)=>o(ku(d),ku(c),g,!0)};return ne.forEach(Object.keys({...e,...t}),function(c){if(c==="__proto__"||c==="constructor"||c==="prototype")return;const g=ne.hasOwnProp(u,c)?u[c]:o,v=g(e[c],t[c],c);ne.isUndefined(v)&&g!==s||(n[c]=v)}),n}const xu=e=>{const t=Jn({},e);let{data:n,withXSRFToken:a,xsrfHeaderName:o,xsrfCookieName:l,headers:i,auth:s}=t;if(t.headers=i=Ut.from(i),t.url=hu(Cu(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&i.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),ne.isFormData(n)){if(Pt.hasStandardBrowserEnv||Pt.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(ne.isFunction(n.getHeaders)){const u=n.getHeaders(),d=["content-type","content-length"];Object.entries(u).forEach(([c,g])=>{d.includes(c.toLowerCase())&&i.set(c,g)})}}if(Pt.hasStandardBrowserEnv&&(a&&ne.isFunction(a)&&(a=a(t)),a||a!==!1&&hg(t.url))){const u=o&&l&&gg.read(l);u&&i.set(o,u)}return t},yg=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,a){const o=xu(e);let l=o.data;const i=Ut.from(o.headers).normalize();let{responseType:s,onUploadProgress:u,onDownloadProgress:d}=o,c,g,v,h,f;function _(){h&&h(),f&&f(),o.cancelToken&&o.cancelToken.unsubscribe(c),o.signal&&o.signal.removeEventListener("abort",c)}let p=new XMLHttpRequest;p.open(o.method.toUpperCase(),o.url,!0),p.timeout=o.timeout;function b(){if(!p)return;const y=Ut.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),w={data:!s||s==="text"||s==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:y,config:e,request:p};_u(function(C){n(C),_()},function(C){a(C),_()},w),p=null}"onloadend"in p?p.onloadend=b:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(b)},p.onabort=function(){p&&(a(new Ie("Request aborted",Ie.ECONNABORTED,e,p)),p=null)},p.onerror=function(m){const w=m&&m.message?m.message:"Network Error",E=new Ie(w,Ie.ERR_NETWORK,e,p);E.event=m||null,a(E),p=null},p.ontimeout=function(){let m=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const w=o.transitional||Ml;o.timeoutErrorMessage&&(m=o.timeoutErrorMessage),a(new Ie(m,w.clarifyTimeoutError?Ie.ETIMEDOUT:Ie.ECONNABORTED,e,p)),p=null},l===void 0&&i.setContentType(null),"setRequestHeader"in p&&ne.forEach(i.toJSON(),function(m,w){p.setRequestHeader(w,m)}),ne.isUndefined(o.withCredentials)||(p.withCredentials=!!o.withCredentials),s&&s!=="json"&&(p.responseType=o.responseType),d&&([v,f]=Ya(d,!0),p.addEventListener("progress",v)),u&&p.upload&&([g,h]=Ya(u),p.upload.addEventListener("progress",g),p.upload.addEventListener("loadend",h)),(o.cancelToken||o.signal)&&(c=y=>{p&&(a(!y||y.type?new ia(null,e,p):y),p.abort(),p=null)},o.cancelToken&&o.cancelToken.subscribe(c),o.signal&&(o.signal.aborted?c():o.signal.addEventListener("abort",c)));const S=fg(o.url);if(S&&Pt.protocols.indexOf(S)===-1){a(new Ie("Unsupported protocol "+S+":",Ie.ERR_BAD_REQUEST,e));return}p.send(l||null)})},_g=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let a=new AbortController,o;const l=function(d){if(!o){o=!0,s();const c=d instanceof Error?d:this.reason;a.abort(c instanceof Ie?c:new ia(c instanceof Error?c.message:c))}};let i=t&&setTimeout(()=>{i=null,l(new Ie(`timeout of ${t}ms exceeded`,Ie.ETIMEDOUT))},t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(l):d.removeEventListener("abort",l)}),e=null)};e.forEach(d=>d.addEventListener("abort",l));const{signal:u}=a;return u.unsubscribe=()=>ne.asap(s),u}},Sg=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let a=0,o;for(;a<n;)o=a+t,yield e.slice(a,o),a=o},wg=async function*(e,t){for await(const n of Cg(e))yield*Sg(n,t)},Cg=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:a}=await t.read();if(n)break;yield a}}finally{await t.cancel()}},Eu=(e,t,n,a)=>{const o=wg(e,t);let l=0,i,s=u=>{i||(i=!0,a&&a(u))};return new ReadableStream({async pull(u){try{const{done:d,value:c}=await o.next();if(d){s(),u.close();return}let g=c.byteLength;if(n){let v=l+=g;n(v)}u.enqueue(new Uint8Array(c))}catch(d){throw s(d),d}},cancel(u){return s(u),o.return()}},{highWaterMark:2})},Tu=64*1024,{isFunction:Ga}=ne,kg=(({Request:e,Response:t})=>({Request:e,Response:t}))(ne.global),{ReadableStream:qu,TextEncoder:Ou}=ne.global,Mu=(e,...t)=>{try{return!!e(...t)}catch{return!1}},xg=e=>{e=ne.merge.call({skipUndefined:!0},kg,e);const{fetch:t,Request:n,Response:a}=e,o=t?Ga(t):typeof fetch=="function",l=Ga(n),i=Ga(a);if(!o)return!1;const s=o&&Ga(qu),u=o&&(typeof Ou=="function"?(f=>_=>f.encode(_))(new Ou):async f=>new Uint8Array(await new n(f).arrayBuffer())),d=l&&s&&Mu(()=>{let f=!1;const _=new n(Pt.origin,{body:new qu,method:"POST",get duplex(){return f=!0,"half"}}).headers.has("Content-Type");return f&&!_}),c=i&&s&&Mu(()=>ne.isReadableStream(new a("").body)),g={stream:c&&(f=>f.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(f=>{!g[f]&&(g[f]=(_,p)=>{let b=_&&_[f];if(b)return b.call(_);throw new Ie(`Response type '${f}' is not supported`,Ie.ERR_NOT_SUPPORT,p)})});const v=async f=>{if(f==null)return 0;if(ne.isBlob(f))return f.size;if(ne.isSpecCompliantForm(f))return(await new n(Pt.origin,{method:"POST",body:f}).arrayBuffer()).byteLength;if(ne.isArrayBufferView(f)||ne.isArrayBuffer(f))return f.byteLength;if(ne.isURLSearchParams(f)&&(f=f+""),ne.isString(f))return(await u(f)).byteLength},h=async(f,_)=>{const p=ne.toFiniteNumber(f.getContentLength());return p??v(_)};return async f=>{let{url:_,method:p,data:b,signal:S,cancelToken:y,timeout:m,onDownloadProgress:w,onUploadProgress:E,responseType:C,headers:R,withCredentials:H="same-origin",fetchOptions:q}=xu(f),T=t||fetch;C=C?(C+"").toLowerCase():"text";let M=_g([S,y&&y.toAbortSignal()],m),O=null;const k=M&&M.unsubscribe&&(()=>{M.unsubscribe()});let A;try{if(E&&d&&p!=="get"&&p!=="head"&&(A=await h(R,b))!==0){let $=new n(_,{method:"POST",body:b,duplex:"half"}),x;if(ne.isFormData(b)&&(x=$.headers.get("content-type"))&&R.setContentType(x),$.body){const[Y,B]=Su(A,Ya(wu(E)));b=Eu($.body,Tu,Y,B)}}ne.isString(H)||(H=H?"include":"omit");const D=l&&"credentials"in n.prototype,z={...q,signal:M,method:p.toUpperCase(),headers:R.normalize().toJSON(),body:b,duplex:"half",credentials:D?H:void 0};O=l&&new n(_,z);let F=await(l?T(O,q):T(_,z));const Z=c&&(C==="stream"||C==="response");if(c&&(w||Z&&k)){const $={};["status","statusText","headers"].forEach(le=>{$[le]=F[le]});const x=ne.toFiniteNumber(F.headers.get("content-length")),[Y,B]=w&&Su(x,Ya(wu(w),!0))||[];F=new a(Eu(F.body,Tu,Y,()=>{B&&B(),k&&k()}),$)}C=C||"text";let he=await g[ne.findKey(g,C)||"text"](F,f);return!Z&&k&&k(),await new Promise(($,x)=>{_u($,x,{data:he,headers:Ut.from(F.headers),status:F.status,statusText:F.statusText,config:f,request:O})})}catch(D){throw k&&k(),D&&D.name==="TypeError"&&/Load failed|fetch/i.test(D.message)?Object.assign(new Ie("Network Error",Ie.ERR_NETWORK,f,O,D&&D.response),{cause:D.cause||D}):Ie.from(D,D&&D.code,f,O,D&&D.response)}}},Eg=new Map,Lu=e=>{let t=e&&e.env||{};const{fetch:n,Request:a,Response:o}=t,l=[a,o,n];let i=l.length,s=i,u,d,c=Eg;for(;s--;)u=l[s],d=c.get(u),d===void 0&&c.set(u,d=s?new Map:xg(t)),c=d;return d};Lu();const Nl={http:Yh,xhr:yg,fetch:{get:Lu}};ne.forEach(Nl,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Au=e=>`- ${e}`,Tg=e=>ne.isFunction(e)||e===null||e===!1;function qg(e,t){e=ne.isArray(e)?e:[e];const{length:n}=e;let a,o;const l={};for(let i=0;i<n;i++){a=e[i];let s;if(o=a,!Tg(a)&&(o=Nl[(s=String(a)).toLowerCase()],o===void 0))throw new Ie(`Unknown adapter '${s}'`);if(o&&(ne.isFunction(o)||(o=o.get(t))))break;l[s||"#"+i]=o}if(!o){const i=Object.entries(l).map(([u,d])=>`adapter ${u} `+(d===!1?"is not supported by the environment":"is not available in the build"));let s=n?i.length>1?`since :
10
+ `+i.map(Au).join(`
11
+ `):" "+Au(i[0]):"as no adapter specified";throw new Ie("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return o}const Ru={getAdapter:qg,adapters:Nl};function Il(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ia(null,e)}function Pu(e){return Il(e),e.headers=Ut.from(e.headers),e.data=Pl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ru.getAdapter(e.adapter||oa.adapter,e)(e).then(function(a){return Il(e),a.data=Pl.call(e,e.transformResponse,a),a.headers=Ut.from(a.headers),a},function(a){return yu(a)||(Il(e),a&&a.response&&(a.response.data=Pl.call(e,e.transformResponse,a.response),a.response.headers=Ut.from(a.response.headers))),Promise.reject(a)})}const Nu="1.13.6",Xa={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Xa[e]=function(a){return typeof a===e||"a"+(t<1?"n ":" ")+e}});const Iu={};Xa.transitional=function(t,n,a){function o(l,i){return"[Axios v"+Nu+"] Transitional option '"+l+"'"+i+(a?". "+a:"")}return(l,i,s)=>{if(t===!1)throw new Ie(o(i," has been removed"+(n?" in "+n:"")),Ie.ERR_DEPRECATED);return n&&!Iu[i]&&(Iu[i]=!0,console.warn(o(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(l,i,s):!0}},Xa.spelling=function(t){return(n,a)=>(console.warn(`${a} is likely a misspelling of ${t}`),!0)};function Og(e,t,n){if(typeof e!="object")throw new Ie("options must be an object",Ie.ERR_BAD_OPTION_VALUE);const a=Object.keys(e);let o=a.length;for(;o-- >0;){const l=a[o],i=t[l];if(i){const s=e[l],u=s===void 0||i(s,l,e);if(u!==!0)throw new Ie("option "+l+" must be "+u,Ie.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Ie("Unknown option "+l,Ie.ERR_BAD_OPTION)}}const Ja={assertOptions:Og,validators:Xa},Gt=Ja.validators;let Zn=class{constructor(t){this.defaults=t||{},this.interceptors={request:new gu,response:new gu}}async request(t,n){try{return await this._request(t,n)}catch(a){if(a instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const l=o.stack?o.stack.replace(/^.+\n/,""):"";try{a.stack?l&&!String(a.stack).endsWith(l.replace(/^.+\n.+\n/,""))&&(a.stack+=`
12
+ `+l):a.stack=l}catch{}}throw a}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Jn(this.defaults,n);const{transitional:a,paramsSerializer:o,headers:l}=n;a!==void 0&&Ja.assertOptions(a,{silentJSONParsing:Gt.transitional(Gt.boolean),forcedJSONParsing:Gt.transitional(Gt.boolean),clarifyTimeoutError:Gt.transitional(Gt.boolean),legacyInterceptorReqResOrdering:Gt.transitional(Gt.boolean)},!1),o!=null&&(ne.isFunction(o)?n.paramsSerializer={serialize:o}:Ja.assertOptions(o,{encode:Gt.function,serialize:Gt.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Ja.assertOptions(n,{baseUrl:Gt.spelling("baseURL"),withXsrfToken:Gt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=l&&ne.merge(l.common,l[n.method]);l&&ne.forEach(["delete","get","head","post","put","patch","common"],f=>{delete l[f]}),n.headers=Ut.concat(i,l);const s=[];let u=!0;this.interceptors.request.forEach(function(_){if(typeof _.runWhen=="function"&&_.runWhen(n)===!1)return;u=u&&_.synchronous;const p=n.transitional||Ml;p&&p.legacyInterceptorReqResOrdering?s.unshift(_.fulfilled,_.rejected):s.push(_.fulfilled,_.rejected)});const d=[];this.interceptors.response.forEach(function(_){d.push(_.fulfilled,_.rejected)});let c,g=0,v;if(!u){const f=[Pu.bind(this),void 0];for(f.unshift(...s),f.push(...d),v=f.length,c=Promise.resolve(n);g<v;)c=c.then(f[g++],f[g++]);return c}v=s.length;let h=n;for(;g<v;){const f=s[g++],_=s[g++];try{h=f(h)}catch(p){_.call(this,p);break}}try{c=Pu.call(this,h)}catch(f){return Promise.reject(f)}for(g=0,v=d.length;g<v;)c=c.then(d[g++],d[g++]);return c}getUri(t){t=Jn(this.defaults,t);const n=Cu(t.baseURL,t.url,t.allowAbsoluteUrls);return hu(n,t.params,t.paramsSerializer)}};ne.forEach(["delete","get","head","options"],function(t){Zn.prototype[t]=function(n,a){return this.request(Jn(a||{},{method:t,url:n,data:(a||{}).data}))}}),ne.forEach(["post","put","patch"],function(t){function n(a){return function(l,i,s){return this.request(Jn(s||{},{method:t,headers:a?{"Content-Type":"multipart/form-data"}:{},url:l,data:i}))}}Zn.prototype[t]=n(),Zn.prototype[t+"Form"]=n(!0)});let Mg=class $m{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(l){n=l});const a=this;this.promise.then(o=>{if(!a._listeners)return;let l=a._listeners.length;for(;l-- >0;)a._listeners[l](o);a._listeners=null}),this.promise.then=o=>{let l;const i=new Promise(s=>{a.subscribe(s),l=s}).then(o);return i.cancel=function(){a.unsubscribe(l)},i},t(function(l,i,s){a.reason||(a.reason=new ia(l,i,s),n(a.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=a=>{t.abort(a)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new $m(function(o){t=o}),cancel:t}}};function Lg(e){return function(n){return e.apply(null,n)}}function Ag(e){return ne.isObject(e)&&e.isAxiosError===!0}const Dl={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Dl).forEach(([e,t])=>{Dl[t]=e});function Du(e){const t=new Zn(e),n=tu(Zn.prototype.request,t);return ne.extend(n,Zn.prototype,t,{allOwnKeys:!0}),ne.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Du(Jn(e,o))},n}const yt=Du(oa);yt.Axios=Zn,yt.CanceledError=ia,yt.CancelToken=Mg,yt.isCancel=yu,yt.VERSION=Nu,yt.toFormData=Wa,yt.AxiosError=Ie,yt.Cancel=yt.CanceledError,yt.all=function(t){return Promise.all(t)},yt.spread=Lg,yt.isAxiosError=Ag,yt.mergeConfig=Jn,yt.AxiosHeaders=Ut,yt.formToJSON=e=>bu(ne.isHTMLForm(e)?new FormData(e):e),yt.getAdapter=Ru.getAdapter,yt.HttpStatusCode=Dl,yt.default=yt;const{Axios:n1,AxiosError:r1,CanceledError:a1,isCancel:o1,CancelToken:l1,VERSION:i1,all:s1,Cancel:u1,isAxiosError:c1,spread:d1,toFormData:f1,AxiosHeaders:v1,HttpStatusCode:$u,formToJSON:m1,getAdapter:h1,mergeConfig:g1}=yt;let Za=null;function Rg(e){if(Za!==null){console.warn("[LinID CoreLib] HTTP client has already been initialized. Re-initialization is ignored.");return}Za=e}function vn(){if(Za===null)throw new Error("[LinID CoreLib] HTTP client is not initialized. Call setHttpClient() first.");return Za}const Bu=new Map;function Pg(e){Bu.set(e.instanceId,e)}function Vn(e){const t=Bu.get(e);if(!t)throw new Error(`[LinID CoreLib] No module host configuration found for instanceId: ${e}`);return t}async function Ng(e,t){const n=Vn(e);return vn().post(`/${n.apiEndpoint}`,t).then(({data:a})=>a)}async function Ig(e,t,n){const a=Vn(e);return vn().put(`/${a.apiEndpoint}/${t}`,n).then(({data:o})=>o)}async function Dg(e,t,n){const a=Vn(e);return vn().get(`/${a.apiEndpoint}`,{params:{...t,...n}}).then(({data:o})=>o)}async function $g(e,t){const n=Vn(e);return vn().get(`/${n.apiEndpoint}/${t}`).then(({data:a})=>a)}async function Bg(e,t){const n=Vn(e);return vn().delete(`/${n.apiEndpoint}/${t}`)}async function Fg(e,t,n){const a=Vn(e);await vn().post(`/${a.apiEndpoint}/validate/${t}`,n,{headers:{"Content-Type":"application/json"}})}function Fu(e,t){if(!er(e)||!er(t))return t;const n={...e};for(const a of Object.keys(t))n[a]=Fu(e[a],t[a]);return n}function zg(e){const t={};for(const[n,a]of Object.entries(e)){const o=n.split(".");let l=t;o.forEach((i,s)=>{s===o.length-1?l[i]=a:(er(l[i])||(l[i]={}),l=l[i])})}return t}function er(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function zu(e,t){return typeof e!="object"||e===null?e:Object.fromEntries(Object.entries(e).map(([n,a])=>{const o=t(n),l=er(a)?zu(a,t):a;return[o,l]}))}function $l(e,t){if(e===t||typeof e=="number"&&typeof t=="number"&&Number.isNaN(e)&&Number.isNaN(t))return!0;if(e==null||t==null||typeof e!="object"||typeof t!="object"||Array.isArray(e)!==Array.isArray(t))return!1;const n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;const o=e,l=t;return n.every(i=>Object.prototype.hasOwnProperty.call(l,i)&&$l(o[i],l[i]))}function Va(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;const n=new Set;return e.every(a=>{const o=t.findIndex((l,i)=>!n.has(i)&&Va(a,l));return o===-1?!1:(n.add(o),!0)})}if(er(e)&&er(t)){const n=Object.keys(e),a=Object.keys(t);return n.length!==a.length?!1:n.every(o=>Object.prototype.hasOwnProperty.call(t,o)&&Va(e[o],t[o]))}return $l(e,t)}function mn(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Hu={};function Hg(e){Hu[e]||(Hu[e]=!0,mn(e))}const wn=typeof window<"u";let Qt,tr;if(process.env.NODE_ENV!=="production"){const e=wn&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(Qt=t=>{e.mark(t)},tr=(t,n,a)=>{e.measure(t,n,a),e.clearMarks(n),e.clearMarks(a)})}const jg=/\{([0-9a-zA-Z]+)\}/g;function eo(e,...t){return t.length===1&&tt(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(jg,(n,a)=>t.hasOwnProperty(a)?t[a]:"")}const Cn=(e,t=!1)=>t?Symbol.for(e):Symbol(e),Ug=(e,t,n)=>Qg({l:e,k:t,s:n}),Qg=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Tt=e=>typeof e=="number"&&isFinite(e),ju=e=>Bl(e)==="[object Date]",to=e=>Bl(e)==="[object RegExp]",no=e=>rt(e)&&Object.keys(e).length===0,qt=Object.assign,Wg=Object.create,ot=(e=null)=>Wg(e);let Uu;const nr=()=>Uu||(Uu=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:ot());function Qu(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/\//g,"&#x2F;").replace(/=/g,"&#x3D;")}function Wu(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Kg(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(a,o,l)=>`${o}="${Wu(l)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(a,o,l)=>`${o}='${Wu(l)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(process.env.NODE_ENV!=="production"&&mn("Potentially dangerous event handlers detected in translation. Consider removing onclick, onerror, etc. from your translation messages."),e=e.replace(/(\s+)(on)(\w+\s*=)/gi,"$1&#111;n$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(a=>{e=e.replace(a,"$1javascript&#58;")}),e}const Yg=Object.prototype.hasOwnProperty;function Xt(e,t){return Yg.call(e,t)}const _t=Array.isArray,vt=e=>typeof e=="function",Ee=e=>typeof e=="string",St=e=>typeof e=="boolean",tt=e=>e!==null&&typeof e=="object",Gg=e=>tt(e)&&vt(e.then)&&vt(e.catch),Ku=Object.prototype.toString,Bl=e=>Ku.call(e),rt=e=>Bl(e)==="[object Object]",Xg=e=>e==null?"":_t(e)||rt(e)&&e.toString===Ku?JSON.stringify(e,null,2):String(e);function Fl(e,t=""){return e.reduce((n,a,o)=>o===0?n+a:n+t+a,"")}const Yu=2;function Jg(e,t=0,n=e.length){const a=e.split(/\r?\n/);let o=0;const l=[];for(let i=0;i<a.length;i++)if(o+=a[i].length+1,o>=t){for(let s=i-Yu;s<=i+Yu||n>o;s++){if(s<0||s>=a.length)continue;const u=s+1;l.push(`${u}${" ".repeat(3-String(u).length)}| ${a[s]}`);const d=a[s].length;if(s===i){const c=t-(o-d)+1,g=Math.max(1,n>o?d-c:n-t);l.push(" | "+" ".repeat(c)+"^".repeat(g))}else if(s>i){if(n>o){const c=Math.max(Math.min(n-o,d),1);l.push(" | "+"^".repeat(c))}o+=d+1}}break}return l.join(`
13
+ `)}function Zg(){const e=new Map;return{events:e,on(n,a){const o=e.get(n);o&&o.push(a)||e.set(n,[a])},off(n,a){const o=e.get(n);o&&o.splice(o.indexOf(a)>>>0,1)},emit(n,a){(e.get(n)||[]).slice().map(o=>o(a)),(e.get("*")||[]).slice().map(o=>o(n,a))}}}const ro=e=>!tt(e)||_t(e);function ao(e,t){if(ro(e)||ro(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:a,des:o}=n.pop();Object.keys(a).forEach(l=>{l!=="__proto__"&&(tt(a[l])&&!tt(o[l])&&(o[l]=Array.isArray(a[l])?[]:ot()),ro(o[l])||ro(a[l])?o[l]=a[l]:n.push({src:a[l],des:o[l]}))})}}function Vg(e,t,n){return{line:e,column:t,offset:n}}function zl(e,t,n){return{start:e,end:t}}const De={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16},eb=17,tb={[De.EXPECTED_TOKEN]:"Expected token: '{0}'",[De.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[De.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[De.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[De.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[De.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[De.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[De.EMPTY_PLACEHOLDER]:"Empty placeholder",[De.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[De.INVALID_LINKED_FORMAT]:"Invalid linked format",[De.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[De.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[De.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[De.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[De.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[De.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function xr(e,t,n={}){const{domain:a,messages:o,args:l}=n,i=process.env.NODE_ENV!=="production"?eo((o||tb)[e]||"",...l||[]):e,s=new SyntaxError(String(i));return s.code=e,t&&(s.location=t),s.domain=a,s}function nb(e){throw e}const rb=/<\/?[\w\s="/.':;#-\/]+>/,ab=e=>rb.test(e),hn=" ",ob="\r",Nt=`
14
+ `,lb="\u2028",ib="\u2029";function sb(e){const t=e;let n=0,a=1,o=1,l=0;const i=C=>t[C]===ob&&t[C+1]===Nt,s=C=>t[C]===Nt,u=C=>t[C]===ib,d=C=>t[C]===lb,c=C=>i(C)||s(C)||u(C)||d(C),g=()=>n,v=()=>a,h=()=>o,f=()=>l,_=C=>i(C)||u(C)||d(C)?Nt:t[C],p=()=>_(n),b=()=>_(n+l);function S(){return l=0,c(n)&&(a++,o=0),i(n)&&n++,n++,o++,t[n]}function y(){return i(n+l)&&l++,l++,t[n+l]}function m(){n=0,a=1,o=1,l=0}function w(C=0){l=C}function E(){const C=n+l;for(;C!==n;)S();l=0}return{index:g,line:v,column:h,peekOffset:f,charAt:_,currentChar:p,currentPeek:b,next:S,peek:y,reset:m,resetPeek:w,skipToPeek:E}}const kn=void 0,ub=".",Gu="'",cb="tokenizer";function db(e,t={}){const n=t.location!==!1,a=sb(e),o=()=>a.index(),l=()=>Vg(a.line(),a.column(),a.index()),i=l(),s=o(),u={currentType:13,offset:s,startLoc:i,endLoc:i,lastType:13,lastOffset:s,lastStartLoc:i,lastEndLoc:i,braceNest:0,inLinked:!1,text:""},d=()=>u,{onError:c}=t;function g(L,I,te,...K){const X=d();if(I.column+=te,I.offset+=te,c){const se=n?zl(X.startLoc,I):null,me=xr(L,se,{domain:cb,args:K});c(me)}}function v(L,I,te){L.endLoc=l(),L.currentType=I;const K={type:I};return n&&(K.loc=zl(L.startLoc,L.endLoc)),te!=null&&(K.value=te),K}const h=L=>v(L,13);function f(L,I){return L.currentChar()===I?(L.next(),I):(g(De.EXPECTED_TOKEN,l(),0,I),"")}function _(L){let I="";for(;L.currentPeek()===hn||L.currentPeek()===Nt;)I+=L.currentPeek(),L.peek();return I}function p(L){const I=_(L);return L.skipToPeek(),I}function b(L){if(L===kn)return!1;const I=L.charCodeAt(0);return I>=97&&I<=122||I>=65&&I<=90||I===95}function S(L){if(L===kn)return!1;const I=L.charCodeAt(0);return I>=48&&I<=57}function y(L,I){const{currentType:te}=I;if(te!==2)return!1;_(L);const K=b(L.currentPeek());return L.resetPeek(),K}function m(L,I){const{currentType:te}=I;if(te!==2)return!1;_(L);const K=L.currentPeek()==="-"?L.peek():L.currentPeek(),X=S(K);return L.resetPeek(),X}function w(L,I){const{currentType:te}=I;if(te!==2)return!1;_(L);const K=L.currentPeek()===Gu;return L.resetPeek(),K}function E(L,I){const{currentType:te}=I;if(te!==7)return!1;_(L);const K=L.currentPeek()===".";return L.resetPeek(),K}function C(L,I){const{currentType:te}=I;if(te!==8)return!1;_(L);const K=b(L.currentPeek());return L.resetPeek(),K}function R(L,I){const{currentType:te}=I;if(!(te===7||te===11))return!1;_(L);const K=L.currentPeek()===":";return L.resetPeek(),K}function H(L,I){const{currentType:te}=I;if(te!==9)return!1;const K=()=>{const se=L.currentPeek();return se==="{"?b(L.peek()):se==="@"||se==="|"||se===":"||se==="."||se===hn||!se?!1:se===Nt?(L.peek(),K()):T(L,!1)},X=K();return L.resetPeek(),X}function q(L){_(L);const I=L.currentPeek()==="|";return L.resetPeek(),I}function T(L,I=!0){const te=(X=!1,se="")=>{const me=L.currentPeek();return me==="{"||me==="@"||!me?X:me==="|"?!(se===hn||se===Nt):me===hn?(L.peek(),te(!0,hn)):me===Nt?(L.peek(),te(!0,Nt)):!0},K=te();return I&&L.resetPeek(),K}function M(L,I){const te=L.currentChar();return te===kn?kn:I(te)?(L.next(),te):null}function O(L){const I=L.charCodeAt(0);return I>=97&&I<=122||I>=65&&I<=90||I>=48&&I<=57||I===95||I===36}function k(L){return M(L,O)}function A(L){const I=L.charCodeAt(0);return I>=97&&I<=122||I>=65&&I<=90||I>=48&&I<=57||I===95||I===36||I===45}function D(L){return M(L,A)}function z(L){const I=L.charCodeAt(0);return I>=48&&I<=57}function F(L){return M(L,z)}function Z(L){const I=L.charCodeAt(0);return I>=48&&I<=57||I>=65&&I<=70||I>=97&&I<=102}function he(L){return M(L,Z)}function $(L){let I="",te="";for(;I=F(L);)te+=I;return te}function x(L){let I="";for(;;){const te=L.currentChar();if(te==="\\"){const K=L.peek();K==="{"||K==="}"||K==="@"||K==="|"||K==="\\"?(I+=te+K,L.next(),L.next()):(L.resetPeek(),I+=te,L.next())}else{if(te==="{"||te==="}"||te==="@"||te==="|"||!te)break;if(te===hn||te===Nt)if(T(L))I+=te,L.next();else{if(q(L))break;I+=te,L.next()}else I+=te,L.next()}}return I}function Y(L){p(L);let I="",te="";for(;I=D(L);)te+=I;const K=L.currentChar();if(K&&K!=="}"&&K!==kn&&K!==hn&&K!==Nt&&K!==" "){const X=ve(L);return g(De.INVALID_TOKEN_IN_PLACEHOLDER,l(),0,te+X),te+X}return L.currentChar()===kn&&g(De.UNTERMINATED_CLOSING_BRACE,l(),0),te}function B(L){p(L);let I="";return L.currentChar()==="-"?(L.next(),I+=`-${$(L)}`):I+=$(L),L.currentChar()===kn&&g(De.UNTERMINATED_CLOSING_BRACE,l(),0),I}function le(L){return L!==Gu&&L!==Nt}function N(L){p(L),f(L,"'");let I="",te="";for(;I=M(L,le);)I==="\\"?te+=U(L):te+=I;const K=L.currentChar();return K===Nt||K===kn?(g(De.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,l(),0),K===Nt&&(L.next(),f(L,"'")),te):(f(L,"'"),te)}function U(L){const I=L.currentChar();switch(I){case"\\":case"'":return L.next(),`\\${I}`;case"u":return ue(L,I,4);case"U":return ue(L,I,6);default:return g(De.UNKNOWN_ESCAPE_SEQUENCE,l(),0,I),""}}function ue(L,I,te){f(L,I);let K="";for(let X=0;X<te;X++){const se=he(L);if(!se){g(De.INVALID_UNICODE_ESCAPE_SEQUENCE,l(),0,`\\${I}${K}${L.currentChar()}`);break}K+=se}return`\\${I}${K}`}function W(L){return L!=="{"&&L!=="}"&&L!==hn&&L!==Nt}function ve(L){p(L);let I="",te="";for(;I=M(L,W);)te+=I;return te}function _e(L){let I="",te="";for(;I=k(L);)te+=I;return te}function G(L){const I=te=>{const K=L.currentChar();return K==="{"||K==="@"||K==="|"||K==="("||K===")"||!K||K===hn?te:(te+=K,L.next(),I(te))};return I("")}function ge(L){p(L);const I=f(L,"|");return p(L),I}function pe(L,I){let te=null;switch(L.currentChar()){case"{":return I.braceNest>=1&&g(De.NOT_ALLOW_NEST_PLACEHOLDER,l(),0),L.next(),te=v(I,2,"{"),p(L),I.braceNest++,te;case"}":return I.braceNest>0&&I.currentType===2&&g(De.EMPTY_PLACEHOLDER,l(),0),L.next(),te=v(I,3,"}"),I.braceNest--,I.braceNest>0&&p(L),I.inLinked&&I.braceNest===0&&(I.inLinked=!1),te;case"@":return I.braceNest>0&&g(De.UNTERMINATED_CLOSING_BRACE,l(),0),te=we(L,I)||h(I),I.braceNest=0,te;default:{let X=!0,se=!0,me=!0;if(q(L))return I.braceNest>0&&g(De.UNTERMINATED_CLOSING_BRACE,l(),0),te=v(I,1,ge(L)),I.braceNest=0,I.inLinked=!1,te;if(I.braceNest>0&&(I.currentType===4||I.currentType===5||I.currentType===6))return g(De.UNTERMINATED_CLOSING_BRACE,l(),0),I.braceNest=0,Ae(L,I);if(X=y(L,I))return te=v(I,4,Y(L)),p(L),te;if(se=m(L,I))return te=v(I,5,B(L)),p(L),te;if(me=w(L,I))return te=v(I,6,N(L)),p(L),te;if(!X&&!se&&!me)return te=v(I,12,ve(L)),g(De.INVALID_TOKEN_IN_PLACEHOLDER,l(),0,te.value),p(L),te;break}}return te}function we(L,I){const{currentType:te}=I;let K=null;const X=L.currentChar();switch((te===7||te===8||te===11||te===9)&&(X===Nt||X===hn)&&g(De.INVALID_LINKED_FORMAT,l(),0),X){case"@":return L.next(),K=v(I,7,"@"),I.inLinked=!0,K;case".":return p(L),L.next(),v(I,8,".");case":":return p(L),L.next(),v(I,9,":");default:return q(L)?(K=v(I,1,ge(L)),I.braceNest=0,I.inLinked=!1,K):E(L,I)||R(L,I)?(p(L),we(L,I)):C(L,I)?(p(L),v(I,11,_e(L))):H(L,I)?(p(L),X==="{"?pe(L,I)||K:v(I,10,G(L))):(te===7&&g(De.INVALID_LINKED_FORMAT,l(),0),I.braceNest=0,I.inLinked=!1,Ae(L,I))}}function Ae(L,I){let te={type:13};if(I.braceNest>0)return pe(L,I)||h(I);if(I.inLinked)return we(L,I)||h(I);switch(L.currentChar()){case"{":return pe(L,I)||h(I);case"}":return g(De.UNBALANCED_CLOSING_BRACE,l(),0),L.next(),v(I,3,"}");case"@":return we(L,I)||h(I);default:{if(q(L))return te=v(I,1,ge(L)),I.braceNest=0,I.inLinked=!1,te;if(T(L))return v(I,0,x(L));break}}return te}function fe(){const{currentType:L,offset:I,startLoc:te,endLoc:K}=u;return u.lastType=L,u.lastOffset=I,u.lastStartLoc=te,u.lastEndLoc=K,u.offset=o(),u.startLoc=l(),a.currentChar()===kn?v(u,13):Ae(a,u)}return{nextToken:fe,currentOffset:o,currentPosition:l,context:d}}const fb="parser",vb=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g,mb=/\\([\\@{}|])/g;function hb(e,t){return t}function gb(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const a=parseInt(t||n,16);return a<=55295||a>=57344?String.fromCodePoint(a):"�"}}}function bb(e={}){const t=e.location!==!1,{onError:n}=e;function a(b,S,y,m,...w){const E=b.currentPosition();if(E.offset+=m,E.column+=m,n){const C=t?zl(y,E):null,R=xr(S,C,{domain:fb,args:w});n(R)}}function o(b,S,y){const m={type:b};return t&&(m.start=S,m.end=S,m.loc={start:y,end:y}),m}function l(b,S,y,m){t&&(b.end=S,b.loc&&(b.loc.end=y))}function i(b,S){const y=b.context(),m=o(3,y.offset,y.startLoc);return m.value=S.replace(mb,hb),l(m,b.currentOffset(),b.currentPosition()),m}function s(b,S){const y=b.context(),{lastOffset:m,lastStartLoc:w}=y,E=o(5,m,w);return E.index=parseInt(S,10),b.nextToken(),l(E,b.currentOffset(),b.currentPosition()),E}function u(b,S){const y=b.context(),{lastOffset:m,lastStartLoc:w}=y,E=o(4,m,w);return E.key=S,b.nextToken(),l(E,b.currentOffset(),b.currentPosition()),E}function d(b,S){const y=b.context(),{lastOffset:m,lastStartLoc:w}=y,E=o(9,m,w);return E.value=S.replace(vb,gb),b.nextToken(),l(E,b.currentOffset(),b.currentPosition()),E}function c(b){const S=b.nextToken(),y=b.context(),{lastOffset:m,lastStartLoc:w}=y,E=o(8,m,w);return S.type!==11?(a(b,De.UNEXPECTED_EMPTY_LINKED_MODIFIER,y.lastStartLoc,0),E.value="",l(E,m,w),{nextConsumeToken:S,node:E}):(S.value==null&&a(b,De.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,gn(S)),E.value=S.value||"",l(E,b.currentOffset(),b.currentPosition()),{node:E})}function g(b,S){const y=b.context(),m=o(7,y.offset,y.startLoc);return m.value=S,l(m,b.currentOffset(),b.currentPosition()),m}function v(b){const S=b.context(),y=o(6,S.offset,S.startLoc);let m=b.nextToken();if(m.type===8){const w=c(b);y.modifier=w.node,m=w.nextConsumeToken||b.nextToken()}switch(m.type!==9&&a(b,De.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,gn(m)),m=b.nextToken(),m.type===2&&(m=b.nextToken()),m.type){case 10:m.value==null&&a(b,De.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,gn(m)),y.key=g(b,m.value||"");break;case 4:m.value==null&&a(b,De.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,gn(m)),y.key=u(b,m.value||"");break;case 5:m.value==null&&a(b,De.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,gn(m)),y.key=s(b,m.value||"");break;case 6:m.value==null&&a(b,De.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,gn(m)),y.key=d(b,m.value||"");break;default:{a(b,De.UNEXPECTED_EMPTY_LINKED_KEY,S.lastStartLoc,0);const w=b.context(),E=o(7,w.offset,w.startLoc);return E.value="",l(E,w.offset,w.startLoc),y.key=E,l(y,w.offset,w.startLoc),{nextConsumeToken:m,node:y}}}return l(y,b.currentOffset(),b.currentPosition()),{node:y}}function h(b){const S=b.context(),y=S.currentType===1?b.currentOffset():S.offset,m=S.currentType===1?S.endLoc:S.startLoc,w=o(2,y,m);w.items=[];let E=null;do{const H=E||b.nextToken();switch(E=null,H.type){case 0:H.value==null&&a(b,De.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,gn(H)),w.items.push(i(b,H.value||""));break;case 5:H.value==null&&a(b,De.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,gn(H)),w.items.push(s(b,H.value||""));break;case 4:H.value==null&&a(b,De.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,gn(H)),w.items.push(u(b,H.value||""));break;case 6:H.value==null&&a(b,De.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,gn(H)),w.items.push(d(b,H.value||""));break;case 7:{const q=v(b);w.items.push(q.node),E=q.nextConsumeToken||null;break}}}while(S.currentType!==13&&S.currentType!==1);const C=S.currentType===1?S.lastOffset:b.currentOffset(),R=S.currentType===1?S.lastEndLoc:b.currentPosition();return l(w,C,R),w}function f(b,S,y,m){const w=b.context();let E=m.items.length===0;const C=o(1,S,y);C.cases=[],C.cases.push(m);do{const R=h(b);E||(E=R.items.length===0),C.cases.push(R)}while(w.currentType!==13);return E&&a(b,De.MUST_HAVE_MESSAGES_IN_PLURAL,y,0),l(C,b.currentOffset(),b.currentPosition()),C}function _(b){const S=b.context(),{offset:y,startLoc:m}=S,w=h(b);return S.currentType===13?w:f(b,y,m,w)}function p(b){const S=db(b,qt({},e)),y=S.context(),m=o(0,y.offset,y.startLoc);return t&&m.loc&&(m.loc.source=b),m.body=_(S),e.onCacheKey&&(m.cacheKey=e.onCacheKey(b)),y.currentType!==13&&a(S,De.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,b[y.offset]||""),l(m,S.currentOffset(),S.currentPosition()),m}return{parse:p}}function gn(e){if(e.type===13)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function pb(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:l=>(n.helpers.add(l),l)}}function Xu(e,t){for(let n=0;n<e.length;n++)Hl(e[n],t)}function Hl(e,t){switch(e.type){case 1:Xu(e.cases,t),t.helper("plural");break;case 2:Xu(e.items,t);break;case 6:{Hl(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function yb(e,t={}){const n=pb(e);n.helper("normalize"),e.body&&Hl(e.body,n);const a=n.context();e.helpers=Array.from(a.helpers)}function _b(e){const t=e.body;return t.type===2?Ju(t):t.cases.forEach(n=>Ju(n)),e}function Ju(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const a=e.items[n];if(!(a.type===3||a.type===9)||a.value==null)break;t.push(a.value)}if(t.length===e.items.length){e.static=Fl(t);for(let n=0;n<e.items.length;n++){const a=e.items[n];(a.type===3||a.type===9)&&delete a.value}}}}const Sb="minifier";function Er(e){switch(e.t=e.type,e.type){case 0:{const t=e;Er(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let a=0;a<n.length;a++)Er(n[a]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let a=0;a<n.length;a++)Er(n[a]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;Er(t.key),t.k=t.key,delete t.key,t.modifier&&(Er(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}default:if(process.env.NODE_ENV!=="production")throw xr(De.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:Sb,args:[e.type]})}delete e.type}const wb="parser";function Cb(e,t){const{filename:n,breakLineCode:a,needIndent:o}=t,l=t.location!==!1,i={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:a,needIndent:o,indentLevel:0};l&&e.loc&&(i.source=e.loc.source);const s=()=>i;function u(_,p){i.code+=_}function d(_,p=!0){const b=p?a:"";u(o?b+" ".repeat(_):b)}function c(_=!0){const p=++i.indentLevel;_&&d(p)}function g(_=!0){const p=--i.indentLevel;_&&d(p)}function v(){d(i.indentLevel)}return{context:s,push:u,indent:c,deindent:g,newline:v,helper:_=>`_${_}`,needIndent:()=>i.needIndent}}function kb(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Tr(e,t.key),t.modifier?(e.push(", "),Tr(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function xb(e,t){const{helper:n,needIndent:a}=e;e.push(`${n("normalize")}([`),e.indent(a());const o=t.items.length;for(let l=0;l<o&&(Tr(e,t.items[l]),l!==o-1);l++)e.push(", ");e.deindent(a()),e.push("])")}function Eb(e,t){const{helper:n,needIndent:a}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(a());const o=t.cases.length;for(let l=0;l<o&&(Tr(e,t.cases[l]),l!==o-1);l++)e.push(", ");e.deindent(a()),e.push("])")}}function Tb(e,t){t.body?Tr(e,t.body):e.push("null")}function Tr(e,t){const{helper:n}=e;switch(t.type){case 0:Tb(e,t);break;case 1:Eb(e,t);break;case 2:xb(e,t);break;case 6:kb(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:if(process.env.NODE_ENV!=="production")throw xr(De.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:wb,args:[t.type]})}}const qb=(e,t={})=>{const n=Ee(t.mode)?t.mode:"normal",a=Ee(t.filename)?t.filename:"message.intl";t.sourceMap;const o=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
15
+ `,l=t.needIndent?t.needIndent:n!=="arrow",i=e.helpers||[],s=Cb(e,{filename:a,breakLineCode:o,needIndent:l});s.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),s.indent(l),i.length>0&&(s.push(`const { ${Fl(i.map(c=>`${c}: _${c}`),", ")} } = ctx`),s.newline()),s.push("return "),Tr(s,e),s.deindent(l),s.push("}"),delete e.helpers;const{code:u,map:d}=s.context();return{ast:e,code:u,map:d?d.toJSON():void 0}};function Ob(e,t={}){const n=qt({},t),a=!!n.jit,o=!!n.minify,l=n.optimize==null?!0:n.optimize,s=bb(n).parse(e);return a?(l&&_b(s),o&&Er(s),{ast:s,code:""}):(yb(s,n),qb(s,n))}function Mb(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(nr().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(nr().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function ln(e){return tt(e)&&jl(e)===0&&(Xt(e,"b")||Xt(e,"body"))}const Zu=["b","body"];function Lb(e){return Nn(e,Zu)}const Vu=["c","cases"];function Ab(e){return Nn(e,Vu,[])}const ec=["s","static"];function Rb(e){return Nn(e,ec)}const tc=["i","items"];function Pb(e){return Nn(e,tc,[])}const nc=["t","type"];function jl(e){return Nn(e,nc)}const rc=["v","value"];function oo(e,t){const n=Nn(e,rc);if(n!=null)return n;throw sa(t)}const ac=["m","modifier"];function Nb(e){return Nn(e,ac)}const oc=["k","key"];function Ib(e){const t=Nn(e,oc);if(t)return t;throw sa(6)}function Nn(e,t,n){for(let a=0;a<t.length;a++){const o=t[a];if(Xt(e,o)&&e[o]!=null)return e[o]}return n}const lc=[...Zu,...Vu,...ec,...tc,...oc,...ac,...rc,...nc];function sa(e){return new Error(`unhandled node type: ${e}`)}function Ul(e){return n=>Db(n,e)}function Db(e,t){const n=Lb(t);if(n==null)throw sa(0);if(jl(n)===1){const l=Ab(n);return e.plural(l.reduce((i,s)=>[...i,ic(e,s)],[]))}else return ic(e,n)}function ic(e,t){const n=Rb(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const a=Pb(t).reduce((o,l)=>[...o,Ql(e,l)],[]);return e.normalize(a)}}function Ql(e,t){const n=jl(t);switch(n){case 3:return oo(t,n);case 9:return oo(t,n);case 4:{const a=t;if(Xt(a,"k")&&a.k)return e.interpolate(e.named(a.k));if(Xt(a,"key")&&a.key)return e.interpolate(e.named(a.key));throw sa(n)}case 5:{const a=t;if(Xt(a,"i")&&Tt(a.i))return e.interpolate(e.list(a.i));if(Xt(a,"index")&&Tt(a.index))return e.interpolate(e.list(a.index));throw sa(n)}case 6:{const a=t,o=Nb(a),l=Ib(a);return e.linked(Ql(e,l),o?Ql(e,o):void 0,e.type)}case 7:return oo(t,n);case 8:return oo(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const $b="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function Bb(e,t){t&&ab(e)&&mn(eo($b,{source:e}))}const Fb=e=>e;let lo=ot();function zb(e,t={}){let n=!1;const a=t.onError||nb;return t.onError=o=>{n=!0,a(o)},{...Ob(e,t),detectError:n}}function Hb(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&Ee(e)){const n=St(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&Bb(e,n);const o=(t.onCacheKey||Fb)(e),l=lo[o];if(l)return l;const{ast:i,detectError:s}=zb(e,{...t,location:process.env.NODE_ENV!=="production",jit:!0}),u=Ul(i);return s?u:lo[o]=u}else{if(process.env.NODE_ENV!=="production"&&!ln(e))return mn(`the message that is resolve with key '${t.key}' is not supported for jit compilation`),(()=>e);const n=e.cacheKey;if(n){const a=lo[n];return a||(lo[n]=Ul(e))}else return Ul(e)}}let ua=null;function jb(e){ua=e}function Ub(e,t,n){ua&&ua.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const Qb=Wb("function:translate");function Wb(e){return t=>ua&&ua.emit(e,t)}const It={INVALID_ARGUMENT:eb,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},Kb=24;function xn(e){return xr(e,null,process.env.NODE_ENV!=="production"?{messages:Yb}:void 0)}const Yb={[It.INVALID_ARGUMENT]:"Invalid arguments",[It.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[It.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[It.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[It.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[It.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[It.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function Wl(e,t){return t.locale!=null?sc(t.locale):sc(e.locale)}let Kl;function sc(e){if(Ee(e))return e;if(vt(e)){if(e.resolvedOnce&&Kl!=null)return Kl;if(e.constructor.name==="Function"){const t=e();if(Gg(t))throw xn(It.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Kl=t}else throw xn(It.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw xn(It.NOT_SUPPORT_LOCALE_TYPE)}function Gb(e,t,n){return[...new Set([n,..._t(t)?t:tt(t)?Object.keys(t):Ee(t)?[t]:[n]])]}function Yl(e,t,n){const a=Ee(n)?n:so,o=e;o.__localeChainCache||(o.__localeChainCache=new Map);let l=o.__localeChainCache.get(a);if(!l){l=[];let i=[n];for(;_t(i);)i=uc(l,i,t);const s=_t(t)||!rt(t)?t:t.default?t.default:null;i=Ee(s)?[s]:s,_t(i)&&uc(l,i,!1),o.__localeChainCache.set(a,l)}return l}function uc(e,t,n){let a=!0;for(let o=0;o<t.length&&St(a);o++){const l=t[o];Ee(l)&&(a=Xb(e,t[o],n))}return a}function Xb(e,t,n){let a;const o=t.split("-");do{const l=o.join("-");a=Jb(e,l,n),o.splice(-1,1)}while(o.length&&a===!0);return a}function Jb(e,t,n){let a=!1;if(!e.includes(t)&&(a=!0,t)){a=t[t.length-1]!=="!";const o=t.replace(/!/g,"");e.push(o),(_t(n)||rt(n))&&n[o]&&(a=n[o])}return a}const In=[];In[0]={w:[0],i:[3,0],"[":[4],o:[7]},In[1]={w:[1],".":[2],"[":[4],o:[7]},In[2]={w:[2],i:[3,0],0:[3,0]},In[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},In[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},In[5]={"'":[4,0],o:8,l:[5,0]},In[6]={'"':[4,0],o:8,l:[6,0]};const Zb=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Vb(e){return Zb.test(e)}function ep(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function tp(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function np(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Vb(t)?ep(t):"*"+t}function rp(e){const t=[];let n=-1,a=0,o=0,l,i,s,u,d,c,g;const v=[];v[0]=()=>{i===void 0?i=s:i+=s},v[1]=()=>{i!==void 0&&(t.push(i),i=void 0)},v[2]=()=>{v[0](),o++},v[3]=()=>{if(o>0)o--,a=4,v[0]();else{if(o=0,i===void 0||(i=np(i),i===!1))return!1;v[1]()}};function h(){const f=e[n+1];if(a===5&&f==="'"||a===6&&f==='"')return n++,s="\\"+f,v[0](),!0}for(;a!==null;)if(n++,l=e[n],!(l==="\\"&&h())){if(u=tp(l),g=In[a],d=g[u]||g.l||8,d===8||(a=d[0],d[1]!==void 0&&(c=v[d[1]],c&&(s=l,c()===!1))))return;if(a===7)return t}}const cc=new Map;function ap(e,t){return tt(e)?e[t]:null}function op(e,t){if(!tt(e))return null;let n=cc.get(t);if(n||(n=rp(t),n&&cc.set(t,n)),!n)return null;const a=n.length;let o=e,l=0;for(;l<a;){const i=n[l];if(lc.includes(i)&&ln(o)||!tt(o)||!Xt(o,i))return null;const s=o[i];if(s===void 0||vt(o))return null;o=s,l++}return o}const Ot={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7,INVALID_NUMBER_ARGUMENT:8,INVALID_DATE_ARGUMENT:9},qr=10,lp={[Ot.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[Ot.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[Ot.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[Ot.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[Ot.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[Ot.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[Ot.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future.",[Ot.INVALID_NUMBER_ARGUMENT]:"Invalid argument for number formatting: expected a number but received '{value}'.",[Ot.INVALID_DATE_ARGUMENT]:"Invalid argument for datetime formatting: expected a Date, number, or ISO string but received '{value}'."};function En(e,...t){return eo(lp[e],...t)}const ip="11.3.0",io=-1,so="en-US",Or="",dc=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function sp(){return{upper:(e,t)=>t==="text"&&Ee(e)?e.toUpperCase():t==="vnode"&&tt(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&Ee(e)?e.toLowerCase():t==="vnode"&&tt(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&Ee(e)?dc(e):t==="vnode"&&tt(e)&&"__v_isVNode"in e?dc(e.children):e}}let fc;function up(e){fc=e}let vc;function cp(e){vc=e}let mc;function dp(e){mc=e}let hc=null;const fp=e=>{hc=e},vp=()=>hc;let gc=null;const bc=e=>{gc=e},mp=()=>gc;let pc=0;function hp(e={}){const t=vt(e.onWarn)?e.onWarn:mn,n=Ee(e.version)?e.version:ip,a=Ee(e.locale)||vt(e.locale)?e.locale:so,o=vt(a)?so:a,l=_t(e.fallbackLocale)||rt(e.fallbackLocale)||Ee(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:o,i=rt(e.messages)?e.messages:Gl(o),s=rt(e.datetimeFormats)?e.datetimeFormats:Gl(o),u=rt(e.numberFormats)?e.numberFormats:Gl(o),d=qt(ot(),e.modifiers,sp()),c=e.pluralRules||ot(),g=vt(e.missing)?e.missing:null,v=St(e.missingWarn)||to(e.missingWarn)?e.missingWarn:!0,h=St(e.fallbackWarn)||to(e.fallbackWarn)?e.fallbackWarn:!0,f=!!e.fallbackFormat,_=!!e.unresolving,p=vt(e.postTranslation)?e.postTranslation:null,b=rt(e.processor)?e.processor:null,S=St(e.warnHtmlMessage)?e.warnHtmlMessage:!0,y=!!e.escapeParameter,m=vt(e.messageCompiler)?e.messageCompiler:fc;process.env.NODE_ENV!=="production"&&vt(e.messageCompiler)&&Hg(En(Ot.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const w=vt(e.messageResolver)?e.messageResolver:vc||ap,E=vt(e.localeFallbacker)?e.localeFallbacker:mc||Gb,C=tt(e.fallbackContext)?e.fallbackContext:void 0,R=e,H=tt(R.__datetimeFormatters)?R.__datetimeFormatters:new Map,q=tt(R.__numberFormatters)?R.__numberFormatters:new Map,T=tt(R.__meta)?R.__meta:{};pc++;const M={version:n,cid:pc,locale:a,fallbackLocale:l,messages:i,modifiers:d,pluralRules:c,missing:g,missingWarn:v,fallbackWarn:h,fallbackFormat:f,unresolving:_,postTranslation:p,processor:b,warnHtmlMessage:S,escapeParameter:y,messageCompiler:m,messageResolver:w,localeFallbacker:E,fallbackContext:C,onWarn:t,__meta:T};return M.datetimeFormats=s,M.numberFormats=u,M.__datetimeFormatters=H,M.__numberFormatters=q,process.env.NODE_ENV!=="production"&&(M.__v_emitter=R.__v_emitter!=null?R.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&Ub(M,n,T),M}const Gl=e=>({[e]:ot()});function uo(e,t){return e instanceof RegExp?e.test(t):e}function yc(e,t){return e instanceof RegExp?e.test(t):e}function Xl(e,t,n,a,o){const{missing:l,onWarn:i}=e;if(process.env.NODE_ENV!=="production"){const s=e.__v_emitter;s&&s.emit("missing",{locale:n,key:t,type:o,groupId:`${o}:${t}`})}if(l!==null){const s=l(e,n,t,o);return Ee(s)?s:t}else return process.env.NODE_ENV!=="production"&&yc(a,t)&&i(En(Ot.NOT_FOUND_KEY,{key:t,locale:n})),t}function ca(e,t,n){const a=e;a.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function _c(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function gp(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let a=n+1;a<t.length;a++)if(_c(e,t[a]))return!0;return!1}const Sc=typeof Intl<"u",wc={dateTimeFormat:Sc&&typeof Intl.DateTimeFormat<"u",numberFormat:Sc&&typeof Intl.NumberFormat<"u"};function Cc(e,...t){const{datetimeFormats:n,unresolving:a,fallbackLocale:o,onWarn:l,localeFallbacker:i}=e,{__datetimeFormatters:s}=e;if(process.env.NODE_ENV!=="production"&&!wc.dateTimeFormat)return l(En(Ot.CANNOT_FORMAT_DATE)),Or;if(!Ee(t[0])&&!ju(t[0])&&!Tt(t[0]))return process.env.NODE_ENV!=="production"&&l(En(Ot.INVALID_DATE_ARGUMENT,{value:String(t[0])})),Or;const[u,d,c,g]=Jl(...t),v=St(c.missingWarn)?c.missingWarn:e.missingWarn,h=St(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,f=!!c.part,_=Wl(e,c),p=i(e,o,_);if(!Ee(u)||u==="")return new Intl.DateTimeFormat(_.replace(/!/g,""),g).format(d);let b={},S,y=null,m=_,w=null;const E="datetime format";for(let H=0;H<p.length;H++){if(S=w=p[H],process.env.NODE_ENV!=="production"&&_!==S&&uo(h,u)&&l(En(Ot.FALLBACK_TO_DATE_FORMAT,{key:u,target:S})),process.env.NODE_ENV!=="production"&&_!==S){const q=e.__v_emitter;q&&q.emit("fallback",{type:E,key:u,from:m,to:w,groupId:`${E}:${u}`})}if(b=n[S]||{},y=b[u],rt(y))break;Xl(e,u,S,v,E),m=w}if(!rt(y)||!Ee(S))return a?io:u;let C=`${S}__${u}`;no(g)||(C=`${C}__${JSON.stringify(g)}`);let R=s.get(C);return R||(R=new Intl.DateTimeFormat(S,qt({},y,g)),s.set(C,R)),f?R.formatToParts(d):R.format(d)}const kc=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Jl(...e){const[t,n,a,o]=e,l=ot();let i=ot(),s;if(Ee(t)){const u=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!u)throw xn(It.INVALID_ISO_DATE_ARGUMENT);const d=u[3]?u[3].trim().startsWith("T")?`${u[1].trim()}${u[3].trim()}`:`${u[1].trim()}T${u[3].trim()}`:u[1].trim();s=new Date(d);try{s.toISOString()}catch{throw xn(It.INVALID_ISO_DATE_ARGUMENT)}}else if(ju(t)){if(isNaN(t.getTime()))throw xn(It.INVALID_DATE_ARGUMENT);s=t}else if(Tt(t))s=t;else throw xn(It.INVALID_ARGUMENT);return Ee(n)?l.key=n:rt(n)&&Object.keys(n).forEach(u=>{kc.includes(u)?i[u]=n[u]:l[u]=n[u]}),Ee(a)?l.locale=a:rt(a)&&(i=a),rt(o)&&(i=o),[l.key||"",s,l,i]}function xc(e,t,n){const a=e;for(const o in n){const l=`${t}__${o}`;a.__datetimeFormatters.has(l)&&a.__datetimeFormatters.delete(l)}}function Ec(e,...t){const{numberFormats:n,unresolving:a,fallbackLocale:o,onWarn:l,localeFallbacker:i}=e,{__numberFormatters:s}=e;if(process.env.NODE_ENV!=="production"&&!wc.numberFormat)return l(En(Ot.CANNOT_FORMAT_NUMBER)),Or;if(!Tt(t[0]))return process.env.NODE_ENV!=="production"&&l(En(Ot.INVALID_NUMBER_ARGUMENT,{value:String(t[0])})),Or;const[u,d,c,g]=Zl(...t),v=St(c.missingWarn)?c.missingWarn:e.missingWarn,h=St(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,f=!!c.part,_=Wl(e,c),p=i(e,o,_);if(!Ee(u)||u==="")return new Intl.NumberFormat(_.replace(/!/g,""),g).format(d);let b={},S,y=null,m=_,w=null;const E="number format";for(let H=0;H<p.length;H++){if(S=w=p[H],process.env.NODE_ENV!=="production"&&_!==S&&uo(h,u)&&l(En(Ot.FALLBACK_TO_NUMBER_FORMAT,{key:u,target:S})),process.env.NODE_ENV!=="production"&&_!==S){const q=e.__v_emitter;q&&q.emit("fallback",{type:E,key:u,from:m,to:w,groupId:`${E}:${u}`})}if(b=n[S]||{},y=b[u],rt(y))break;Xl(e,u,S,v,E),m=w}if(!rt(y)||!Ee(S))return a?io:u;let C=`${S}__${u}`;no(g)||(C=`${C}__${JSON.stringify(g)}`);let R=s.get(C);return R||(R=new Intl.NumberFormat(S,qt({},y,g)),s.set(C,R)),f?R.formatToParts(d):R.format(d)}const Tc=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Zl(...e){const[t,n,a,o]=e,l=ot();let i=ot();if(!Tt(t))throw xn(It.INVALID_ARGUMENT);const s=t;return Ee(n)?l.key=n:rt(n)&&Object.keys(n).forEach(u=>{Tc.includes(u)?i[u]=n[u]:l[u]=n[u]}),Ee(a)?l.locale=a:rt(a)&&(i=a),rt(o)&&(i=o),[l.key||"",s,l,i]}function qc(e,t,n){const a=e;for(const o in n){const l=`${t}__${o}`;a.__numberFormatters.has(l)&&a.__numberFormatters.delete(l)}}const bp=e=>e,pp=e=>"",yp="text",_p=e=>e.length===0?"":Fl(e),Sp=Xg;function Vl(e,t){return e=Math.abs(e),t===2?e===1?0:1:Math.min(e,2)}function wp(e){const t=Tt(e.pluralIndex)?e.pluralIndex:-1;return Tt(e.named?.count)?e.named.count:Tt(e.named?.n)?e.named.n:t}function Cp(e={}){const t=e.locale,n=wp(e),a=Ee(t)&&vt(e.pluralRules?.[t])?e.pluralRules[t]:Vl,o=a===Vl?void 0:Vl,l=b=>b[a(n,b.length,o)],i=e.list||[],s=b=>i[b],u=e.named||ot();Tt(e.pluralIndex)&&(u.count||=e.pluralIndex,u.n||=e.pluralIndex);const d=b=>u[b];function c(b,S){const y=vt(e.messages)?e.messages(b,!!S):tt(e.messages)?e.messages[b]:!1;return y||(e.parent?e.parent.message(b):pp)}const g=b=>e.modifiers?e.modifiers[b]:bp,v=vt(e.processor?.normalize)?e.processor.normalize:_p,h=vt(e.processor?.interpolate)?e.processor.interpolate:Sp,f=Ee(e.processor?.type)?e.processor.type:yp,p={list:s,named:d,plural:l,linked:(b,...S)=>{const[y,m]=S;let w="text",E="";S.length===1?tt(y)?(E=y.modifier||E,w=y.type||w):Ee(y)&&(E=y||E):S.length===2&&(Ee(y)&&(E=y||E),Ee(m)&&(w=m||w));const C=c(b,!0)(p),R=C===""||C===void 0?b:C,H=w==="vnode"&&_t(R)&&E?R[0]:R;return E?g(E)(H,w):H},message:c,type:f,interpolate:h,normalize:v,values:qt(ot(),i,u)};return p}const Oc=()=>"",Jt=e=>vt(e);function Mc(e,...t){const{fallbackFormat:n,postTranslation:a,unresolving:o,messageCompiler:l,fallbackLocale:i,messages:s}=e,[u,d]=ei(...t),c=St(d.missingWarn)?d.missingWarn:e.missingWarn,g=St(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn,v=St(d.escapeParameter)?d.escapeParameter:e.escapeParameter,h=!!d.resolvedMessage,f=Ee(d.default)||St(d.default)?St(d.default)?l?u:()=>u:d.default:n?l?u:()=>u:null,_=n||f!=null&&(Ee(f)||vt(f)),p=Wl(e,d);v&&kp(d);let[b,S,y]=h?[u,p,s[p]||ot()]:Lc(e,u,p,i,g,c),m=b,w=u;if(!h&&!(Ee(m)||ln(m)||Jt(m))&&_&&(m=f,w=m),!h&&(!(Ee(m)||ln(m)||Jt(m))||!Ee(S)))return o?io:u;if(process.env.NODE_ENV!=="production"&&Ee(m)&&e.messageCompiler==null)return mn(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${u}'.`),u;let E=!1;const C=()=>{E=!0},R=Jt(m)?m:Ac(e,u,S,m,w,C);if(E)return m;const H=qp(e,S,y,d),q=Cp(H),T=xp(e,R,q);let M=a?a(T,u):T;if(v&&Ee(M)&&(M=Kg(M)),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const O={timestamp:Date.now(),key:Ee(u)?u:Jt(m)?m.key:"",locale:S||(Jt(m)?m.locale:""),format:Ee(m)?m:Jt(m)?m.source:"",message:M};O.meta=qt({},e.__meta,vp()||{}),Qb(O)}return M}function kp(e){_t(e.list)?e.list=e.list.map(t=>Ee(t)?Qu(t):t):tt(e.named)&&Object.keys(e.named).forEach(t=>{Ee(e.named[t])&&(e.named[t]=Qu(e.named[t]))})}function Lc(e,t,n,a,o,l){const{messages:i,onWarn:s,messageResolver:u,localeFallbacker:d}=e,c=d(e,a,n);let g=ot(),v,h=null,f=n,_=null;const p="translate";for(let b=0;b<c.length;b++){if(v=_=c[b],process.env.NODE_ENV!=="production"&&n!==v&&!_c(n,v)&&uo(o,t)&&s(En(Ot.FALLBACK_TO_TRANSLATE,{key:t,target:v})),process.env.NODE_ENV!=="production"&&n!==v){const w=e.__v_emitter;w&&w.emit("fallback",{type:p,key:t,from:f,to:_,groupId:`${p}:${t}`})}g=i[v]||ot();let S=null,y,m;if(process.env.NODE_ENV!=="production"&&wn&&(S=window.performance.now(),y="intlify-message-resolve-start",m="intlify-message-resolve-end",Qt&&Qt(y)),(h=u(g,t))===null&&(h=g[t]),process.env.NODE_ENV!=="production"&&wn){const w=window.performance.now(),E=e.__v_emitter;E&&S&&h&&E.emit("message-resolve",{type:"message-resolve",key:t,message:h,time:w-S,groupId:`${p}:${t}`}),y&&m&&Qt&&tr&&(Qt(m),tr("intlify message resolve",y,m))}if(Ee(h)||ln(h)||Jt(h))break;if(!gp(v,c)){const w=Xl(e,t,v,l,p);w!==t&&(h=w)}f=_}return[h,v,g]}function Ac(e,t,n,a,o,l){const{messageCompiler:i,warnHtmlMessage:s}=e;if(Jt(a)){const v=a;return v.locale=v.locale||n,v.key=v.key||t,v}if(i==null){const v=(()=>a);return v.locale=n,v.key=t,v}let u=null,d,c;process.env.NODE_ENV!=="production"&&wn&&(u=window.performance.now(),d="intlify-message-compilation-start",c="intlify-message-compilation-end",Qt&&Qt(d));const g=i(a,Ep(e,n,o,a,s,l));if(process.env.NODE_ENV!=="production"&&wn){const v=window.performance.now(),h=e.__v_emitter;h&&u&&h.emit("message-compilation",{type:"message-compilation",message:a,time:v-u,groupId:`translate:${t}`}),d&&c&&Qt&&tr&&(Qt(c),tr("intlify message compilation",d,c))}return g.locale=n,g.key=t,g.source=a,g}function xp(e,t,n){let a=null,o,l;process.env.NODE_ENV!=="production"&&wn&&(a=window.performance.now(),o="intlify-message-evaluation-start",l="intlify-message-evaluation-end",Qt&&Qt(o));const i=t(n);if(process.env.NODE_ENV!=="production"&&wn){const s=window.performance.now(),u=e.__v_emitter;u&&a&&u.emit("message-evaluation",{type:"message-evaluation",value:i,time:s-a,groupId:`translate:${t.key}`}),o&&l&&Qt&&tr&&(Qt(l),tr("intlify message evaluation",o,l))}return i}function ei(...e){const[t,n,a]=e,o=ot();if(!Ee(t)&&!Tt(t)&&!Jt(t)&&!ln(t))throw xn(It.INVALID_ARGUMENT);const l=Tt(t)?String(t):(Jt(t),t);return Tt(n)?o.plural=n:Ee(n)?o.default=n:rt(n)&&!no(n)?o.named=n:_t(n)&&(o.list=n),Tt(a)?o.plural=a:Ee(a)?o.default=a:rt(a)&&qt(o,a),[l,o]}function Ep(e,t,n,a,o,l){return{locale:t,key:n,warnHtmlMessage:o,onError:i=>{if(l&&l(i),process.env.NODE_ENV!=="production"){const s=Tp(a),u=i.location&&s&&Jg(s,i.location.start.offset,i.location.end.offset),d=e.__v_emitter;d&&s&&d.emit("compile-error",{message:s,error:i.message,start:i.location&&i.location.start.offset,end:i.location&&i.location.end.offset,groupId:`translate:${n}`});const c=`Message compilation error: ${i.message}`;throw new SyntaxError(u?`${c}
16
+ ${u}`:c)}throw i},onCacheKey:i=>Ug(t,n,i)}}function Tp(e){if(Ee(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function qp(e,t,n,a){const{modifiers:o,pluralRules:l,messageResolver:i,fallbackLocale:s,fallbackWarn:u,missingWarn:d,fallbackContext:c}=e,v={locale:t,modifiers:o,pluralRules:l,messages:(h,f)=>{let _=i(n,h);if(_==null&&(c||f)){const[,,p]=Lc(c||e,h,t,s,u,d);_=i(p,h)}if(Ee(_)||ln(_)){let p=!1;const S=Ac(e,h,t,_,h,()=>{p=!0});return p?Oc:S}else return Jt(_)?_:Oc}};return e.processor&&(v.processor=e.processor),a.list&&(v.list=a.list),a.named&&(v.named=a.named),Tt(a.plural)&&(v.pluralIndex=a.plural),v}Mb();const Op="11.3.0";function Mp(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(nr().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(nr().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(nr().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(nr().__INTLIFY_PROD_DEVTOOLS__=!1)}const Lt={UNEXPECTED_RETURN_TYPE:Kb,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function da(e,...t){return xr(e,null,process.env.NODE_ENV!=="production"?{messages:Lp,args:t}:void 0)}const Lp={[Lt.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[Lt.INVALID_ARGUMENT]:"Invalid argument",[Lt.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[Lt.NOT_INSTALLED]:"Need to install with `app.use` function",[Lt.UNEXPECTED_ERROR]:"Unexpected error",[Lt.REQUIRED_VALUE]:"Required in value: {0}",[Lt.INVALID_VALUE]:"Invalid value",[Lt.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[Lt.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[Lt.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[Lt.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},ti=Cn("__translateVNode"),ni=Cn("__datetimeParts"),ri=Cn("__numberParts"),ai=Cn("__enableEmitter"),oi=Cn("__disableEmitter"),Ap=Cn("__setPluralRules"),Rc=Cn("__injectWithOption"),li=Cn("__dispose"),bn={FALLBACK_TO_ROOT:qr,NOT_FOUND_PARENT_SCOPE:qr+1,IGNORE_OBJ_FLATTEN:qr+2,DEPRECATE_LEGACY_MODE:qr+3,DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE:qr+4,DUPLICATE_USE_I18N_CALLING:qr+5},Rp={[bn.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[bn.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[bn.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[bn.DEPRECATE_LEGACY_MODE]:`Legacy API mode has been deprecated in v11. Use Composition API mode instead.
17
+ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,[bn.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]:"'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.",[bn.DUPLICATE_USE_I18N_CALLING]:"Duplicate `useI18n` calling by local scope. Please don't call it on local scope, due to it does not work properly in component."};function co(e,...t){return eo(Rp[e],...t)}function fa(e){if(!tt(e)||ln(e))return e;for(const t in e)if(Xt(e,t))if(!t.includes("."))tt(e[t])&&fa(e[t]);else{const n=t.split("."),a=n.length-1;let o=e,l=!1;for(let i=0;i<a;i++){if(n[i]==="__proto__")throw new Error(`unsafe key: ${n[i]}`);if(n[i]in o||(o[n[i]]=ot()),!tt(o[n[i]])){process.env.NODE_ENV!=="production"&&mn(co(bn.IGNORE_OBJ_FLATTEN,{key:n[i]})),l=!0;break}o=o[n[i]]}if(l||(ln(o)?lc.includes(n[a])||delete e[t]:(o[n[a]]=e[t],delete e[t])),!ln(o)){const i=o[n[a]];tt(i)&&fa(i)}}return e}function Pc(e,t){const{messages:n,__i18n:a,messageResolver:o,flatJson:l}=t,i=rt(n)?n:_t(a)?ot():{[e]:ot()};if(_t(a)&&a.forEach(s=>{if("locale"in s&&"resource"in s){const{locale:u,resource:d}=s;u?(i[u]=i[u]||ot(),ao(d,i[u])):ao(d,i)}else Ee(s)&&ao(JSON.parse(s),i)}),o==null&&l)for(const s in i)Xt(i,s)&&fa(i[s]);return i}function Nc(e){return e.type}function Pp(e,t,n){let a=tt(t.messages)?t.messages:ot();"__i18nGlobal"in n&&(a=Pc(e.locale.value,{messages:a,__i18n:n.__i18nGlobal}));const o=Object.keys(a);o.length&&o.forEach(l=>{e.mergeLocaleMessage(l,a[l])});{if(tt(t.datetimeFormats)){const l=Object.keys(t.datetimeFormats);l.length&&l.forEach(i=>{e.mergeDateTimeFormat(i,t.datetimeFormats[i])})}if(tt(t.numberFormats)){const l=Object.keys(t.numberFormats);l.length&&l.forEach(i=>{e.mergeNumberFormat(i,t.numberFormats[i])})}}}function Ic(e){return r.createVNode(r.Text,null,e,0)}function ii(){const e="currentInstance";return e in fl?fl[e]:fl.getCurrentInstance()}const Dc="__INTLIFY_META__",$c=()=>[],Np=()=>!1;let Bc=0;function Fc(e){return((t,n,a,o)=>e(n,a,ii()||void 0,o))}const Ip=()=>{const e=ii();let t=null;return e&&(t=Nc(e)[Dc])?{[Dc]:t}:null};function Dp(e={}){const{__root:t,__injectWithOption:n}=e,a=t===void 0,o=e.flatJson,l=wn?r.ref:r.shallowRef;let i=St(e.inheritLocale)?e.inheritLocale:!0;const s=l(t&&i?t.locale.value:Ee(e.locale)?e.locale:so),u=l(t&&i?t.fallbackLocale.value:Ee(e.fallbackLocale)||_t(e.fallbackLocale)||rt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s.value),d=l(Pc(s.value,e)),c=l(rt(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),g=l(rt(e.numberFormats)?e.numberFormats:{[s.value]:{}});let v=t?t.missingWarn:St(e.missingWarn)||to(e.missingWarn)?e.missingWarn:!0,h=t?t.fallbackWarn:St(e.fallbackWarn)||to(e.fallbackWarn)?e.fallbackWarn:!0,f=t?t.fallbackRoot:St(e.fallbackRoot)?e.fallbackRoot:!0,_=!!e.fallbackFormat,p=vt(e.missing)?e.missing:null,b=vt(e.missing)?Fc(e.missing):null,S=vt(e.postTranslation)?e.postTranslation:null,y=t?t.warnHtmlMessage:St(e.warnHtmlMessage)?e.warnHtmlMessage:!0,m=!!e.escapeParameter;const w=t?t.modifiers:rt(e.modifiers)?e.modifiers:{};let E=e.pluralRules||t&&t.pluralRules,C;C=(()=>{a&&bc(null);const J={version:Op,locale:s.value,fallbackLocale:u.value,messages:d.value,modifiers:w,pluralRules:E,missing:b===null?void 0:b,missingWarn:v,fallbackWarn:h,fallbackFormat:_,unresolving:!0,postTranslation:S===null?void 0:S,warnHtmlMessage:y,escapeParameter:m,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};J.datetimeFormats=c.value,J.numberFormats=g.value,J.__datetimeFormatters=rt(C)?C.__datetimeFormatters:void 0,J.__numberFormatters=rt(C)?C.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(J.__v_emitter=rt(C)?C.__v_emitter:void 0);const ae=hp(J);return a&&bc(ae),ae})(),ca(C,s.value,u.value);function H(){return[s.value,u.value,d.value,c.value,g.value]}const q=r.computed({get:()=>s.value,set:J=>{C.locale=J,s.value=J}}),T=r.computed({get:()=>u.value,set:J=>{C.fallbackLocale=J,u.value=J,ca(C,s.value,J)}}),M=r.computed(()=>d.value),O=r.computed(()=>c.value),k=r.computed(()=>g.value);function A(){return vt(S)?S:null}function D(J){S=J,C.postTranslation=J}function z(){return p}function F(J){J!==null&&(b=Fc(J)),p=J,C.missing=b}function Z(J,ae){return J!=="translate"||!ae.resolvedMessage}const he=(J,ae,be,ke,Qe,je)=>{H();let ee;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,a||(C.fallbackContext=t?mp():void 0),ee=J(C)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,a||(C.fallbackContext=void 0)}if(be!=="translate exists"&&Tt(ee)&&ee===io||be==="translate exists"&&!ee){const[ce,V]=ae();if(process.env.NODE_ENV!=="production"&&t&&Ee(ce)&&Z(be,V)&&(f&&(uo(h,ce)||yc(v,ce))&&mn(co(bn.FALLBACK_TO_ROOT,{key:ce,type:be})),process.env.NODE_ENV!=="production")){const{__v_emitter:de}=C;de&&f&&de.emit("fallback",{type:be,key:ce,to:"global",groupId:`${be}:${ce}`})}return t&&f?ke(t):Qe(ce)}else{if(je(ee))return ee;throw da(Lt.UNEXPECTED_RETURN_TYPE)}};function $(...J){return he(ae=>Reflect.apply(Mc,null,[ae,...J]),()=>ei(...J),"translate",ae=>Reflect.apply(ae.t,ae,[...J]),ae=>ae,ae=>Ee(ae))}function x(...J){const[ae,be,ke]=J;if(ke&&!tt(ke))throw da(Lt.INVALID_ARGUMENT);return $(ae,be,qt({resolvedMessage:!0},ke||{}))}function Y(...J){return he(ae=>Reflect.apply(Cc,null,[ae,...J]),()=>Jl(...J),"datetime format",ae=>Reflect.apply(ae.d,ae,[...J]),()=>Or,ae=>Ee(ae)||_t(ae))}function B(...J){return he(ae=>Reflect.apply(Ec,null,[ae,...J]),()=>Zl(...J),"number format",ae=>Reflect.apply(ae.n,ae,[...J]),()=>Or,ae=>Ee(ae)||_t(ae))}function le(J){return J.map(ae=>Ee(ae)||Tt(ae)||St(ae)?Ic(String(ae)):ae)}const U={normalize:le,interpolate:J=>J,type:"vnode"};function ue(...J){return he(ae=>{let be;const ke=ae;try{ke.processor=U,be=Reflect.apply(Mc,null,[ke,...J])}finally{ke.processor=null}return be},()=>ei(...J),"translate",ae=>ae[ti](...J),ae=>[Ic(ae)],ae=>_t(ae))}function W(...J){return he(ae=>Reflect.apply(Ec,null,[ae,...J]),()=>Zl(...J),"number format",ae=>ae[ri](...J),$c,ae=>Ee(ae)||_t(ae))}function ve(...J){return he(ae=>Reflect.apply(Cc,null,[ae,...J]),()=>Jl(...J),"datetime format",ae=>ae[ni](...J),$c,ae=>Ee(ae)||_t(ae))}function _e(J){E=J,C.pluralRules=E}function G(J,ae){return he(()=>{if(!J)return!1;const be=Ee(ae)?ae:s.value,ke=Ee(ae)?[be]:Yl(C,u.value,be);for(let Qe=0;Qe<ke.length;Qe++){const je=we(ke[Qe]);let ee=C.messageResolver(je,J);if(ee===null&&(ee=je[J]),ln(ee)||Jt(ee)||Ee(ee))return!0}return!1},()=>[J],"translate exists",be=>Reflect.apply(be.te,be,[J,ae]),Np,be=>St(be))}function ge(J){let ae=null;const be=Yl(C,u.value,s.value);for(let ke=0;ke<be.length;ke++){const Qe=d.value[be[ke]]||{},je=C.messageResolver(Qe,J);if(je!=null){ae=je;break}}return ae}function pe(J){const ae=ge(J);return ae??(t?t.tm(J)||{}:{})}function we(J){return d.value[J]||{}}function Ae(J,ae){if(o){const be={[J]:ae};for(const ke in be)Xt(be,ke)&&fa(be[ke]);ae=be[J]}d.value[J]=ae,C.messages=d.value}function fe(J,ae){d.value[J]=d.value[J]||{};const be={[J]:ae};if(o)for(const ke in be)Xt(be,ke)&&fa(be[ke]);ae=be[J],ao(ae,d.value[J]),C.messages=d.value}function L(J){return c.value[J]||{}}function I(J,ae){c.value[J]=ae,C.datetimeFormats=c.value,xc(C,J,ae)}function te(J,ae){c.value[J]=qt(c.value[J]||{},ae),C.datetimeFormats=c.value,xc(C,J,ae)}function K(J){return g.value[J]||{}}function X(J,ae){g.value[J]=ae,C.numberFormats=g.value,qc(C,J,ae)}function se(J,ae){g.value[J]=qt(g.value[J]||{},ae),C.numberFormats=g.value,qc(C,J,ae)}Bc++,t&&wn&&(r.watch(t.locale,J=>{i&&(s.value=J,C.locale=J,ca(C,s.value,u.value))}),r.watch(t.fallbackLocale,J=>{i&&(u.value=J,C.fallbackLocale=J,ca(C,s.value,u.value))}));const me={id:Bc,locale:q,fallbackLocale:T,get inheritLocale(){return i},set inheritLocale(J){i=J,J&&t&&(s.value=t.locale.value,u.value=t.fallbackLocale.value,ca(C,s.value,u.value))},get availableLocales(){return Object.keys(d.value).sort()},messages:M,get modifiers(){return w},get pluralRules(){return E||{}},get isGlobal(){return a},get missingWarn(){return v},set missingWarn(J){v=J,C.missingWarn=v},get fallbackWarn(){return h},set fallbackWarn(J){h=J,C.fallbackWarn=h},get fallbackRoot(){return f},set fallbackRoot(J){f=J},get fallbackFormat(){return _},set fallbackFormat(J){_=J,C.fallbackFormat=_},get warnHtmlMessage(){return y},set warnHtmlMessage(J){y=J,C.warnHtmlMessage=J},get escapeParameter(){return m},set escapeParameter(J){m=J,C.escapeParameter=J},t:$,getLocaleMessage:we,setLocaleMessage:Ae,mergeLocaleMessage:fe,getPostTranslationHandler:A,setPostTranslationHandler:D,getMissingHandler:z,setMissingHandler:F,[Ap]:_e};return me.datetimeFormats=O,me.numberFormats=k,me.rt=x,me.te=G,me.tm=pe,me.d=Y,me.n=B,me.getDateTimeFormat=L,me.setDateTimeFormat=I,me.mergeDateTimeFormat=te,me.getNumberFormat=K,me.setNumberFormat=X,me.mergeNumberFormat=se,me[Rc]=n,me[ti]=ue,me[ni]=ve,me[ri]=W,process.env.NODE_ENV!=="production"&&(me[ai]=J=>{C.__v_emitter=J},me[oi]=()=>{C.__v_emitter=void 0}),me}function zc(e,t){}const si={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function $p({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((a,o)=>[...a,...o.type===r.Fragment?o.children:[o]],[]):t.reduce((n,a)=>{const o=e[a];return o&&(n[a]=o()),n},ot())}function Hc(){return r.Fragment}qt({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Tt(e)||!isNaN(e)}},si);function Bp(e){return _t(e)&&!Ee(e[0])}function jc(e,t,n,a){const{slots:o,attrs:l}=t;return()=>{const i={part:!0};let s=ot();e.locale&&(i.locale=e.locale),Ee(e.format)?i.key=e.format:tt(e.format)&&(Ee(e.format.key)&&(i.key=e.format.key),s=Object.keys(e.format).reduce((v,h)=>n.includes(h)?qt(ot(),v,{[h]:e.format[h]}):v,ot()));const u=a(e.value,i,s);let d=[i.key];_t(u)?d=u.map((v,h)=>{const f=o[v.type],_=f?f({[v.type]:v.value,index:h,parts:u}):[v.value];return Bp(_)&&(_[0].key=`${v.type}-${h}`),_}):Ee(u)&&(d=[u]);const c=qt(ot(),l),g=Ee(e.tag)||tt(e.tag)?e.tag:Hc();return r.h(g,c,d)}}qt({value:{type:Number,required:!0},format:{type:[String,Object]}},si);const Fp=Cn("global-vue-i18n");function fo(e={}){const t=ii();if(t==null)throw da(Lt.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw da(Lt.NOT_INSTALLED);const n=zp(t),a=jp(n),o=Nc(t),l=Hp(e,o);if(l==="global")return Pp(a,e,o),a;if(l==="parent"){let u=Up(n,t,e.__useComponent);return u==null&&(process.env.NODE_ENV!=="production"&&mn(co(bn.NOT_FOUND_PARENT_SCOPE)),u=a),u}const i=n;let s=i.__getInstance(t);if(s==null){const u=qt({},e);"__i18n"in o&&(u.__i18n=o.__i18n),a&&(u.__root=a),s=Dp(u),i.__composerExtend&&(s[li]=i.__composerExtend(s)),Wp(i,t,s),i.__setInstance(t,s)}else process.env.NODE_ENV!=="production"&&l==="local"&&mn(co(bn.DUPLICATE_USE_I18N_CALLING));return s}function zp(e){const t=r.inject(e.isCE?Fp:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw da(e.isCE?Lt.NOT_INSTALLED_WITH_PROVIDE:Lt.UNEXPECTED_ERROR);return t}function Hp(e,t){return no(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function jp(e){return e.mode==="composition"?e.global:e.global.__composer}function Up(e,t,n=!1){let a=null;const o=t.root;let l=Qp(t,n);for(;l!=null;){const i=e;if(e.mode==="composition")a=i.__getInstance(l);else if(__VUE_I18N_LEGACY_API__){const s=i.__getInstance(l);s!=null&&(a=s.__composer,n&&a&&!a[Rc]&&(a=null))}if(a!=null||o===l)break;l=l.parent}return a}function Qp(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function Wp(e,t,n){let a=null;r.onMounted(()=>{if(process.env.NODE_ENV!=="production"){t.__VUE_I18N__=n,a=Zg();const o=n;o[ai]&&o[ai](a),a.on("*",zc)}},t),r.onUnmounted(()=>{const o=n;process.env.NODE_ENV!=="production"&&(a&&a.off("*",zc),o[oi]&&o[oi](),delete t.__VUE_I18N__),e.__deleteInstance(t);const l=o[li];l&&(l(),delete o[li])},t)}if(qt({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},si),Mp(),up(Hb),cp(op),dp(Yl),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=nr();e.__INTLIFY__=!0,jb(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;let vo=null;function Kp(e){if(vo!==null){console.warn("[LinID CoreLib] I18n has already been initialized. Re-initialization is ignored.");return}vo=e}function Uc(){if(vo===null)throw new Error("[LinID CoreLib] I18n is not initialized. Call setI18nInstance() first.");return vo}function Qc(e){const{t,te:n,tm:a}=fo({useScope:"global",__i18n:Uc().global});function o(...u){const[d,c,g]=u;return t(typeof c=="number"?`${e}.${d}`:`${e}.${d}`,c,g)}function l(u){return n(`${e}.${u}`)}function i(u){return a(`${e}.${u}`)}function s(u,...d){return l(d[0])?o(...d):u}return{t:o,te:l,tm:i,translateOrDefault:s}}const Yp=new Set([$u.BadRequest,$u.NotFound]);function Gp(e){return yt.isAxiosError(e)&&e.response?.status!=null&&Yp.has(e.response.status)}function Wc(e){const{t}=Qc(e),{toDayjs:n}=Us();async function a(b,S,y){try{return await Fg(b,S,y),!0}catch(m){return Gp(m)?m.response.data.error:t("validation.unknownError")}}function o(b){return b==null||b===""?t("validation.required"):!0}function l(b){return typeof b!="string"||!/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i.test(b)?t("validation.email"):!0}function i(b,S){return b!=null&&b.length<S?t("validation.minLength",{min:S}):!0}function s(b,S){return b!=null&&b.length>S?t("validation.maxLength",{max:S}):!0}function u(b,S){return S>b?t("validation.min",{min:S}):!0}function d(b,S){return b>S?t("validation.max",{max:S}):!0}function c(b,S){return new RegExp(S).test(b)?!0:t("validation.pattern",{pattern:S.toString()})}function g(b,S){return b==null?!0:(typeof b=="object"?S.some(m=>Va(b,m)):S.some(m=>m!=null&&String(m)===String(b)))?t("validation.unique"):!0}function v(b,S){return b==null||b===""||n(b,S).isValid()?!0:t("validation.invalidDate",{format:S||Gn})}function h(b,S,y){if(b==null||b==="")return!0;const m=n(b,y),w=n(S,y);return!m.isValid()||!w.isValid()||m.isAfter(w,"day")?!0:t("validation.afterDate",{compareTo:w.format(y||Gn)})}function f(b,S,y){if(b==null||b==="")return!0;const m=n(b,y),w=n(S,y);return!m.isValid()||!w.isValid()||m.isBefore(w,"day")?!0:t("validation.beforeDate",{compareTo:w.format(y||Gn)})}function _(b,S,y){if(b==null||b==="")return!0;const m=n(b,y),w=n(S,y);return!m.isValid()||!w.isValid()?!0:m.isBefore(w,"day")?t("validation.fromDate",{compareTo:w.format(y||Gn)}):!0}function p(b,S,y){if(b==null||b==="")return!0;const m=n(b,y),w=n(S,y);return!m.isValid()||!w.isValid()?!0:m.isAfter(w,"day")?t("validation.upToDate",{compareTo:w.format(y||Gn)}):!0}return{validateFromApi:a,required:o,email:l,minLength:i,maxLength:s,min:u,max:d,pattern:c,unique:g,validDate:v,afterDate:h,beforeDate:f,fromDate:_,upToDate:p}}function Xp(){function e(t){kl.next({key:"notify",data:t})}return{Notify:e}}let mo=null;function Jp(e){if(mo!==null){console.warn("[LinID CoreLib] Nunjucks environment has already been initialized. Re-initialization is ignored.");return}mo=e}function Kc(){if(mo===null)throw new Error("[LinID CoreLib] Nunjucks environment is not initialized. Call setNunjucksEnv() first.");return mo}function Zp(){const e=Kc();function t(n,a){return typeof n=="string"?e.renderString(n,a):Array.isArray(n)?n.map(o=>t(o,a)):n!==null&&typeof n=="object"&&Object.getPrototypeOf(n)===Object.prototype?Object.fromEntries(Object.entries(n).map(([o,l])=>[o,t(l,a)])):n}return{render:t}}function Vp(){function e(n){return{page:(n.page||1)-1,size:n.rowsPerPage||5,sort:n.sortBy||"updateDate",direction:n.descending?"desc":"asc"}}function t(n){return{page:n.number+1,rowsPerPage:n.size,rowsNumber:n.totalElements}}return{toPagination:e,toQuasarPagination:t}}var ui=null;function ci(){return ui!==null?ui:ui=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}typeof __QUASAR_SSR__!="boolean"&&(ci().__QUASAR_SSR__=!1),typeof __QUASAR_SSR_CLIENT__!="boolean"&&(ci().__QUASAR_SSR_CLIENT__=!1),typeof __QUASAR_SSR_PWA__!="boolean"&&(ci().__QUASAR_SSR_PWA__=!1);function xt(e,t,n,a){return Object.defineProperty(e,t,{get:n,set:a,enumerable:!0}),e}function Yc(e,t){for(const n in t)xt(e,n,t[n]);return e}var Zt=r.ref(__QUASAR_SSR_CLIENT__&&(__QUASAR_SSR_PWA__?document.body.getAttribute("data-server-rendered")!==null:!0)),di;function e0(e,t){const n=/(edg|edge|edga|edgios)\/([\w.]+)/.exec(e)||/(opr)[\/]([\w.]+)/.exec(e)||/(vivaldi)[\/]([\w.]+)/.exec(e)||/(chrome|crios)[\/]([\w.]+)/.exec(e)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e)||/(firefox|fxios)[\/]([\w.]+)/.exec(e)||/(webkit)[\/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[\/]([\w.]+)/.exec(e)||[];return{browser:n[5]||n[3]||n[1]||"",version:n[4]||n[2]||"0",platform:t[0]||""}}function t0(e){return/(ipad)/.exec(e)||/(ipod)/.exec(e)||/(windows phone)/.exec(e)||/(iphone)/.exec(e)||/(kindle)/.exec(e)||/(silk)/.exec(e)||/(android)/.exec(e)||/(win)/.exec(e)||/(mac)/.exec(e)||/(linux)/.exec(e)||/(cros)/.exec(e)||/(playbook)/.exec(e)||/(bb)/.exec(e)||/(blackberry)/.exec(e)||[]}var Gc="ontouchstart"in window||window.navigator.maxTouchPoints>0;function n0(e){const t=e.toLowerCase(),n=t0(t),a=e0(t,n),o={mobile:!1,desktop:!1,cordova:!1,capacitor:!1,nativeMobile:!1,electron:!1,bex:!1,linux:!1,mac:!1,win:!1,cros:!1,chrome:!1,firefox:!1,opera:!1,safari:!1,vivaldi:!1,edge:!1,edgeChromium:!1,ie:!1,webkit:!1,android:!1,ios:!1,ipad:!1,iphone:!1,ipod:!1,kindle:!1,winphone:!1,blackberry:!1,playbook:!1,silk:!1};a.browser&&(o[a.browser]=!0,o.version=a.version,o.versionNumber=parseInt(a.version,10)),a.platform&&(o[a.platform]=!0);const l=o.android||o.ios||o.bb||o.blackberry||o.ipad||o.iphone||o.ipod||o.kindle||o.playbook||o.silk||o["windows phone"];if(l===!0||t.indexOf("mobile")!==-1?o.mobile=!0:o.desktop=!0,o["windows phone"]&&(o.winphone=!0,delete o["windows phone"]),o.edga||o.edgios||o.edg?(o.edge=!0,a.browser="edge"):o.crios?(o.chrome=!0,a.browser="chrome"):o.fxios&&(o.firefox=!0,a.browser="firefox"),(o.ipod||o.ipad||o.iphone)&&(o.ios=!0),o.vivaldi&&(a.browser="vivaldi",o.vivaldi=!0),(o.chrome||o.opr||o.safari||o.vivaldi||o.mobile===!0&&o.ios!==!0&&l!==!0)&&(o.webkit=!0),o.opr&&(a.browser="opera",o.opera=!0),o.safari&&(o.blackberry||o.bb?(a.browser="blackberry",o.blackberry=!0):o.playbook?(a.browser="playbook",o.playbook=!0):o.android?(a.browser="android",o.android=!0):o.kindle?(a.browser="kindle",o.kindle=!0):o.silk&&(a.browser="silk",o.silk=!0)),o.name=a.browser,o.platform=a.platform,t.indexOf("electron")!==-1)o.electron=!0;else if(document.location.href.indexOf("-extension://")!==-1)o.bex=!0;else{if(window.Capacitor!==void 0?(o.capacitor=!0,o.nativeMobile=!0,o.nativeMobileWrapper="capacitor"):(window._cordovaNative!==void 0||window.cordova!==void 0)&&(o.cordova=!0,o.nativeMobile=!0,o.nativeMobileWrapper="cordova"),Zt.value===!0&&(di={is:{...o}}),Gc===!0&&o.mac===!0&&(o.desktop===!0&&o.safari===!0||o.nativeMobile===!0&&o.android!==!0&&o.ios!==!0&&o.ipad!==!0)){delete o.mac,delete o.desktop;const i=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(o,{mobile:!0,ios:!0,platform:i,[i]:!0})}o.mobile!==!0&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete o.desktop,o.mobile=!0)}return o}var Xc=navigator.userAgent||navigator.vendor||window.opera,r0={has:{touch:!1,webStorage:!1},within:{iframe:!1}},He={userAgent:Xc,is:n0(Xc),has:{touch:Gc},within:{iframe:window.self!==window.top}},fi={install(e){const{$q:t}=e;Zt.value===!0?(e.onSSRHydrated.push(()=>{Object.assign(t.platform,He),Zt.value=!1}),t.platform=r.reactive(this)):t.platform=this}};{let e;xt(He.has,"webStorage",()=>{if(e!==void 0)return e;try{if(window.localStorage)return e=!0,!0}catch{}return e=!1,!1}),Object.assign(fi,He),Zt.value===!0&&(Object.assign(fi,di,r0),di=null)}var a0=fi;function ie(e){return r.markRaw(r.defineComponent(e))}function sn(e){return r.markRaw(e)}var Dn=(e,t)=>{const n=r.reactive(e);for(const a in e)xt(t,a,()=>n[a],o=>{n[a]=o});return t},lt={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const e=Object.defineProperty({},"passive",{get(){Object.assign(lt,{hasPassive:!0,passive:{passive:!0},notPassive:{passive:!1},passiveCapture:{passive:!0,capture:!0},notPassiveCapture:{passive:!1,capture:!0}})}});window.addEventListener("qtest",null,e),window.removeEventListener("qtest",null,e)}catch{}function wt(){}function ho(e){return e.button===0}function zt(e){return e.touches&&e.touches[0]?e=e.touches[0]:e.changedTouches&&e.changedTouches[0]?e=e.changedTouches[0]:e.targetTouches&&e.targetTouches[0]&&(e=e.targetTouches[0]),{top:e.clientY,left:e.clientX}}function o0(e){if(e.path)return e.path;if(e.composedPath)return e.composedPath();const t=[];let n=e.target;for(;n;){if(t.push(n),n.tagName==="HTML")return t.push(document),t.push(window),t;n=n.parentElement}}function ft(e){e.stopPropagation()}function Et(e){e.cancelable!==!1&&e.preventDefault()}function Fe(e){e.cancelable!==!1&&e.preventDefault(),e.stopPropagation()}function Mr(e,t){if(e===void 0||t===!0&&e.__dragPrevented===!0)return;const n=t===!0?a=>{a.__dragPrevented=!0,a.addEventListener("dragstart",Et,lt.notPassiveCapture)}:a=>{delete a.__dragPrevented,a.removeEventListener("dragstart",Et,lt.notPassiveCapture)};e.querySelectorAll("a, img").forEach(n)}function mt(e,t,n){const a=`__q_${t}_evt`;e[a]=e[a]!==void 0?e[a].concat(n):n,n.forEach(o=>{o[0].addEventListener(o[1],e[o[2]],lt[o[3]])})}function Dt(e,t){const n=`__q_${t}_evt`;e[n]!==void 0&&(e[n].forEach(a=>{a[0].removeEventListener(a[1],e[a[2]],lt[a[3]])}),e[n]=void 0)}function Lr(e,t=250,n){let a=null;function o(){const l=arguments,i=()=>{a=null,e.apply(this,l)};a!==null&&clearTimeout(a),a=setTimeout(i,t)}return o.cancel=()=>{a!==null&&clearTimeout(a)},o}var vi=["sm","md","lg","xl"],{passive:Jc}=lt;Dn({width:0,height:0,name:"xs",sizes:{sm:600,md:1024,lg:1440,xl:1920},lt:{sm:!0,md:!0,lg:!0,xl:!0},gt:{xs:!1,sm:!1,md:!1,lg:!1},xs:!0,sm:!1,md:!1,lg:!1,xl:!1},{setSizes:wt,setDebounce:wt,install({$q:e,onSSRHydrated:t}){if(e.screen=this,this.__installed===!0){e.config.screen!==void 0&&(e.config.screen.bodyClasses===!1?document.body.classList.remove(`screen--${this.name}`):this.__update(!0));return}const{visualViewport:n}=window,a=n||window,o=document.scrollingElement||document.documentElement,l=n===void 0||He.is.mobile===!0?()=>[Math.max(window.innerWidth,o.clientWidth),Math.max(window.innerHeight,o.clientHeight)]:()=>[n.width*n.scale+window.innerWidth-o.clientWidth,n.height*n.scale+window.innerHeight-o.clientHeight],i=e.config.screen?.bodyClasses===!0;this.__update=g=>{const[v,h]=l();if(h!==this.height&&(this.height=h),v!==this.width)this.width=v;else if(g!==!0)return;let f=this.sizes;this.gt.xs=v>=f.sm,this.gt.sm=v>=f.md,this.gt.md=v>=f.lg,this.gt.lg=v>=f.xl,this.lt.sm=v<f.sm,this.lt.md=v<f.md,this.lt.lg=v<f.lg,this.lt.xl=v<f.xl,this.xs=this.lt.sm,this.sm=this.gt.xs===!0&&this.lt.md===!0,this.md=this.gt.sm===!0&&this.lt.lg===!0,this.lg=this.gt.md===!0&&this.lt.xl===!0,this.xl=this.gt.lg,f=this.xs===!0&&"xs"||this.sm===!0&&"sm"||this.md===!0&&"md"||this.lg===!0&&"lg"||"xl",f!==this.name&&(i===!0&&(document.body.classList.remove(`screen--${this.name}`),document.body.classList.add(`screen--${f}`)),this.name=f)};let s,u={},d=16;this.setSizes=g=>{vi.forEach(v=>{g[v]!==void 0&&(u[v]=g[v])})},this.setDebounce=g=>{d=g};const c=()=>{const g=getComputedStyle(document.body);g.getPropertyValue("--q-size-sm")&&vi.forEach(v=>{this.sizes[v]=parseInt(g.getPropertyValue(`--q-size-${v}`),10)}),this.setSizes=v=>{vi.forEach(h=>{v[h]&&(this.sizes[h]=v[h])}),this.__update(!0)},this.setDebounce=v=>{s!==void 0&&a.removeEventListener("resize",s,Jc),s=v>0?Lr(this.__update,v):this.__update,a.addEventListener("resize",s,Jc)},this.setDebounce(d),Object.keys(u).length!==0?(this.setSizes(u),u=void 0):this.__update(),i===!0&&this.name==="xs"&&document.body.classList.add("screen--xs")};Zt.value===!0?t.push(c):c()}});var Ht=Dn({isActive:!1,mode:!1},{__media:void 0,set(e){Ht.mode=e,e==="auto"?(Ht.__media===void 0&&(Ht.__media=window.matchMedia("(prefers-color-scheme: dark)"),Ht.__updateMedia=()=>{Ht.set("auto")},Ht.__media.addListener(Ht.__updateMedia)),e=Ht.__media.matches):Ht.__media!==void 0&&(Ht.__media.removeListener(Ht.__updateMedia),Ht.__media=void 0),Ht.isActive=e===!0,document.body.classList.remove(`body--${e===!0?"light":"dark"}`),document.body.classList.add(`body--${e===!0?"dark":"light"}`)},toggle(){Ht.set(Ht.isActive===!1)},install({$q:e,ssrContext:t}){const n=__QUASAR_SSR_CLIENT__?document.body.classList.contains("body--dark"):e.config.dark;e.dark=this,this.__installed!==!0&&this.set(n!==void 0?n:!1)}});function rr(e){return e!==Object(e)||e.isComposing===!0||e.qKeyEvent===!0}function Vt(e,t){return rr(e)===!0?!1:[].concat(t).includes(e.keyCode)}var mi={isoName:"en-US",nativeName:"English (US)",label:{clear:"Clear",ok:"OK",cancel:"Cancel",close:"Close",set:"Set",select:"Select",reset:"Reset",remove:"Remove",update:"Update",create:"Create",search:"Search",filter:"Filter",refresh:"Refresh",expand:e=>e?`Expand "${e}"`:"Expand",collapse:e=>e?`Collapse "${e}"`:"Collapse"},date:{days:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),daysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),firstDayOfWeek:0,format24h:!1,pluralDay:"days",prevMonth:"Previous month",nextMonth:"Next month",prevYear:"Previous year",nextYear:"Next year",today:"Today",prevRangeYears:e=>`Previous ${e} years`,nextRangeYears:e=>`Next ${e} years`},table:{noData:"No data available",noResults:"No matching records found",loading:"Loading...",selectedRecords:e=>e===1?"1 record selected.":(e===0?"No":e)+" records selected.",recordsPerPage:"Records per page:",allRows:"All",pagination:(e,t,n)=>e+"-"+t+" of "+n,columns:"Columns"},pagination:{first:"First page",prev:"Previous page",next:"Next page",last:"Last page"},editor:{url:"URL",bold:"Bold",italic:"Italic",strikethrough:"Strikethrough",underline:"Underline",unorderedList:"Unordered List",orderedList:"Ordered List",subscript:"Subscript",superscript:"Superscript",hyperlink:"Hyperlink",toggleFullscreen:"Toggle Fullscreen",quote:"Quote",left:"Left align",center:"Center align",right:"Right align",justify:"Justify align",print:"Print",outdent:"Decrease indentation",indent:"Increase indentation",removeFormat:"Remove formatting",formatting:"Formatting",fontSize:"Font Size",align:"Align",hr:"Insert Horizontal Rule",undo:"Undo",redo:"Redo",heading1:"Heading 1",heading2:"Heading 2",heading3:"Heading 3",heading4:"Heading 4",heading5:"Heading 5",heading6:"Heading 6",paragraph:"Paragraph",code:"Code",size1:"Very small",size2:"A bit small",size3:"Normal",size4:"Medium-large",size5:"Big",size6:"Very big",size7:"Maximum",defaultFont:"Default Font",viewSource:"View Source"},tree:{noNodes:"No nodes available",noResults:"No matching nodes found"}};function Zc(){const e=Array.isArray(navigator.languages)===!0&&navigator.languages.length!==0?navigator.languages[0]:navigator.language;if(typeof e=="string")return e.split(/[-_]/).map((t,n)=>n===0?t.toLowerCase():n>1||t.length<4?t.toUpperCase():t[0].toUpperCase()+t.slice(1).toLowerCase()).join("-")}var ar=Dn({__qLang:{}},{getLocale:Zc,set(e=mi,t){const n={...e,rtl:e.rtl===!0,getLocale:Zc};{if(n.set=ar.set,ar.__langConfig===void 0||ar.__langConfig.noHtmlAttrs!==!0){const a=document.documentElement;a.setAttribute("dir",n.rtl===!0?"rtl":"ltr"),a.setAttribute("lang",n.isoName)}Object.assign(ar.__qLang,n)}},install({$q:e,lang:t,ssrContext:n}){e.lang=ar.__qLang,ar.__langConfig=e.config.lang,this.__installed===!0?t!==void 0&&this.set(t):(this.props=new Proxy(this.__qLang,{get(){return Reflect.get(...arguments)},ownKeys(a){return Reflect.ownKeys(a).filter(o=>o!=="set"&&o!=="getLocale")}}),this.set(t||mi))}}),Vc=ar,l0={name:"material-icons",type:{positive:"check_circle",negative:"warning",info:"info",warning:"priority_high"},arrow:{up:"arrow_upward",right:"arrow_forward",down:"arrow_downward",left:"arrow_back",dropdown:"arrow_drop_down"},chevron:{left:"chevron_left",right:"chevron_right"},colorPicker:{spectrum:"gradient",tune:"tune",palette:"style"},pullToRefresh:{icon:"refresh"},carousel:{left:"chevron_left",right:"chevron_right",up:"keyboard_arrow_up",down:"keyboard_arrow_down",navigationIcon:"lens"},chip:{remove:"cancel",selected:"check"},datetime:{arrowLeft:"chevron_left",arrowRight:"chevron_right",now:"access_time",today:"today"},editor:{bold:"format_bold",italic:"format_italic",strikethrough:"strikethrough_s",underline:"format_underlined",unorderedList:"format_list_bulleted",orderedList:"format_list_numbered",subscript:"vertical_align_bottom",superscript:"vertical_align_top",hyperlink:"link",toggleFullscreen:"fullscreen",quote:"format_quote",left:"format_align_left",center:"format_align_center",right:"format_align_right",justify:"format_align_justify",print:"print",outdent:"format_indent_decrease",indent:"format_indent_increase",removeFormat:"format_clear",formatting:"text_format",fontSize:"format_size",align:"format_align_left",hr:"remove",undo:"undo",redo:"redo",heading:"format_size",code:"code",size:"format_size",font:"font_download",viewSource:"code"},expansionItem:{icon:"keyboard_arrow_down",denseIcon:"arrow_drop_down"},fab:{icon:"add",activeIcon:"close"},field:{clear:"cancel",error:"error"},pagination:{first:"first_page",prev:"keyboard_arrow_left",next:"keyboard_arrow_right",last:"last_page"},rating:{icon:"grade"},stepper:{done:"check",active:"edit",error:"warning"},tabs:{left:"chevron_left",right:"chevron_right",up:"keyboard_arrow_up",down:"keyboard_arrow_down"},table:{arrowUp:"arrow_upward",warning:"warning",firstPage:"first_page",prevPage:"chevron_left",nextPage:"chevron_right",lastPage:"last_page"},tree:{icon:"play_arrow"},uploader:{done:"done",clear:"clear",add:"add_box",upload:"cloud_upload",removeQueue:"clear_all",removeUploaded:"done_all"}},ed=Dn({iconMapFn:null,__qIconSet:{}},{set(e,t){const n={...e};n.set=ed.set,Object.assign(ed.__qIconSet,n)},install({$q:e,iconSet:t,ssrContext:n}){e.config.iconMapFn!==void 0&&(this.iconMapFn=e.config.iconMapFn),e.iconSet=this.__qIconSet,xt(e,"iconMapFn",()=>this.iconMapFn,a=>{this.iconMapFn=a}),this.__installed===!0?t!==void 0&&this.set(t):(this.props=new Proxy(this.__qIconSet,{get(){return Reflect.get(...arguments)},ownKeys(a){return Reflect.ownKeys(a).filter(o=>o!=="set")}}),this.set(t||l0))}}),td="_q_t_",nd="_q_s_",or="_q_l_",rd="_q_pc_",ad="_q_f_",od="_q_fo_",ld="_q_tabs_",id="_q_u_";function et(){}var sd={};function un(e,t){if(e===t)return!0;if(e!==null&&t!==null&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let n,a;if(e.constructor===Array){if(n=e.length,n!==t.length)return!1;for(a=n;a--!==0;)if(un(e[a],t[a])!==!0)return!1;return!0}if(e.constructor===Map){if(e.size!==t.size)return!1;let l=e.entries();for(a=l.next();a.done!==!0;){if(t.has(a.value[0])!==!0)return!1;a=l.next()}for(l=e.entries(),a=l.next();a.done!==!0;){if(un(a.value[1],t.get(a.value[0]))!==!0)return!1;a=l.next()}return!0}if(e.constructor===Set){if(e.size!==t.size)return!1;const l=e.entries();for(a=l.next();a.done!==!0;){if(t.has(a.value[0])!==!0)return!1;a=l.next()}return!0}if(e.buffer!=null&&e.buffer.constructor===ArrayBuffer){if(n=e.length,n!==t.length)return!1;for(a=n;a--!==0;)if(e[a]!==t[a])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const o=Object.keys(e).filter(l=>e[l]!==void 0);if(n=o.length,n!==Object.keys(t).filter(l=>t[l]!==void 0).length)return!1;for(a=n;a--!==0;){const l=o[a];if(un(e[l],t[l])!==!0)return!1}return!0}return e!==e&&t!==t}function $t(e){return e!==null&&typeof e=="object"&&Array.isArray(e)!==!0}function va(e){return Object.prototype.toString.call(e)==="[object Date]"}function i0(e){return Object.prototype.toString.call(e)==="[object RegExp]"}function ma(e){return typeof e=="number"&&isFinite(e)}function ud(e,t){const n=r.createApp(e);n.config.globalProperties=t.config.globalProperties;const{reload:a,...o}=t._context;return Object.assign(n._context,o),n}var cd=["B","KB","MB","GB","TB","PB"];function hi(e,t=1){let n=0;for(;parseInt(e,10)>=1024&&n<cd.length-1;)e/=1024,++n;return`${e.toFixed(t)}${cd[n]}`}function s0(e){return e.charAt(0).toUpperCase()+e.slice(1)}function at(e,t,n){return n<=t?t:Math.min(n,Math.max(t,e))}function go(e,t,n){if(n<=t)return t;const a=n-t+1;let o=t+(e-t)%a;return o<t&&(o=a+o),o===0?0:o}function Je(e,t=2,n="0"){if(e==null)return e;const a=""+e;return a.length>=t?a:new Array(t-a.length+1).join(n)+a}var gi=XMLHttpRequest,dd=gi.prototype.open,u0=["top","right","bottom","left"],bo=[],ha=0;function c0({p:e,pos:t,active:n,horiz:a,reverse:o,dir:l}){let i=1,s=1;return a===!0?(o===!0&&(i=-1),t==="bottom"&&(s=-1),{transform:`translate3d(${i*(e-100)}%,${n?0:s*-200}%,0)`}):(o===!0&&(s=-1),t==="right"&&(i=-1),{transform:`translate3d(${n?0:l*i*-200}%,${s*(e-100)}%,0)`})}function d0(e,t){return typeof t!="number"&&(e<25?t=Math.random()*3+3:e<65?t=Math.random()*3:e<85?t=Math.random()*2:e<99?t=.6:t=0),at(e+t,0,100)}function f0(e){ha++,bo.push(e),!(ha>1)&&(gi.prototype.open=function(t,n){const a=[],o=()=>{bo.forEach(i=>{(i.hijackFilter.value===null||i.hijackFilter.value(n)===!0)&&(i.start(),a.push(i.stop))})},l=()=>{a.forEach(i=>{i()})};this.addEventListener("loadstart",o,{once:!0}),this.addEventListener("loadend",l,{once:!0}),dd.apply(this,arguments)})}function v0(e){bo=bo.filter(t=>t.start!==e),ha=Math.max(0,ha-1),ha===0&&(gi.prototype.open=dd)}var m0=ie({name:"QAjaxBar",props:{position:{type:String,default:"top",validator:e=>u0.includes(e)},size:{type:String,default:"2px"},color:String,skipHijack:Boolean,reverse:Boolean,hijackFilter:Function},emits:["start","stop"],setup(e,{emit:t}){const{proxy:n}=r.getCurrentInstance(),a=r.ref(0),o=r.ref(!1),l=r.ref(!0);let i=0,s=null,u;const d=r.computed(()=>`q-loading-bar q-loading-bar--${e.position}`+(e.color!==void 0?` bg-${e.color}`:"")+(l.value===!0?"":" no-transition")),c=r.computed(()=>e.position==="top"||e.position==="bottom"),g=r.computed(()=>c.value===!0?"height":"width"),v=r.computed(()=>{const y=o.value,m=c0({p:a.value,pos:e.position,active:y,horiz:c.value,reverse:n.$q.lang.rtl===!0&&["top","bottom"].includes(e.position)?e.reverse===!1:e.reverse,dir:n.$q.lang.rtl===!0?-1:1});return m[g.value]=e.size,m.opacity=y?1:0,m}),h=r.computed(()=>o.value===!0?{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":a.value}:{"aria-hidden":"true"});function f(y=300){const m=u;return u=Math.max(0,y)||0,i++,i>1?(m===0&&y>0?b():s!==null&&m>0&&y<=0&&(clearTimeout(s),s=null),i):(s!==null&&clearTimeout(s),t("start"),a.value=0,s=setTimeout(()=>{s=null,l.value=!0,y>0&&b()},o._value===!0?500:1),o._value!==!0&&(o.value=!0,l.value=!1),i)}function _(y){return i>0&&(a.value=d0(a.value,y)),i}function p(){if(i=Math.max(0,i-1),i>0)return i;s!==null&&(clearTimeout(s),s=null),t("stop");const y=()=>{l.value=!0,a.value=100,s=setTimeout(()=>{s=null,o.value=!1},1e3)};return a.value===0?s=setTimeout(y,1):y(),i}function b(){a.value<100&&(s=setTimeout(()=>{s=null,_(),b()},u))}let S;return r.onMounted(()=>{e.skipHijack!==!0&&(S=!0,f0({start:f,stop:p,hijackFilter:r.computed(()=>e.hijackFilter||null)}))}),r.onBeforeUnmount(()=>{s!==null&&clearTimeout(s),S===!0&&v0(f)}),Object.assign(n,{start:f,stop:p,increment:_}),()=>r.h("div",{class:d.value,style:v.value,...h.value})}}),bi={xs:18,sm:24,md:32,lg:38,xl:46},Tn={size:String};function qn(e,t=bi){return r.computed(()=>e.size!==void 0?{fontSize:e.size in t?`${t[e.size]}px`:e.size}:null)}function Te(e,t){return e!==void 0&&e()||t}function ga(e,t){if(e!==void 0){const n=e();if(n!=null)return n.slice()}return t}function ht(e,t){return e!==void 0?t.concat(e()):t}function pi(e,t){return e===void 0?t:t!==void 0?t.concat(e()):e()}function en(e,t,n,a,o,l){t.key=a+o;const i=r.h(e,t,n);return o===!0?r.withDirectives(i,l()):i}var fd="0 0 24 24",yi=e=>e,_i=e=>`ionicons ${e}`,vd={"mdi-":e=>`mdi ${e}`,"icon-":yi,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":_i,"ion-ios":_i,"ion-logo":_i,"iconfont ":yi,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`,"i-":yi},md={o_:"-outlined",r_:"-round",s_:"-sharp"},hd={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},h0=new RegExp("^("+Object.keys(vd).join("|")+")"),g0=new RegExp("^("+Object.keys(md).join("|")+")"),gd=new RegExp("^("+Object.keys(hd).join("|")+")"),b0=/^[Mm]\s?[-+]?\.?\d/,p0=/^img:/,y0=/^svguse:/,_0=/^ion-/,S0=/^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,Xe=ie({name:"QIcon",props:{...Tn,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:t}){const{proxy:{$q:n}}=r.getCurrentInstance(),a=qn(e),o=r.computed(()=>"q-icon"+(e.left===!0?" on-left":"")+(e.right===!0?" on-right":"")+(e.color!==void 0?` text-${e.color}`:"")),l=r.computed(()=>{let i,s=e.name;if(s==="none"||!s)return{none:!0};if(n.iconMapFn!==null){const c=n.iconMapFn(s);if(c!==void 0)if(c.icon!==void 0){if(s=c.icon,s==="none"||!s)return{none:!0}}else return{cls:c.cls,content:c.content!==void 0?c.content:" "}}if(b0.test(s)===!0){const[c,g=fd]=s.split("|");return{svg:!0,viewBox:g,nodes:c.split("&&").map(v=>{const[h,f,_]=v.split("@@");return r.h("path",{style:f,d:h,transform:_})})}}if(p0.test(s)===!0)return{img:!0,src:s.substring(4)};if(y0.test(s)===!0){const[c,g=fd]=s.split("|");return{svguse:!0,src:c.substring(7),viewBox:g}}let u=" ";const d=s.match(h0);if(d!==null)i=vd[d[1]](s);else if(S0.test(s)===!0)i=s;else if(_0.test(s)===!0)i=`ionicons ion-${n.platform.is.ios===!0?"ios":"md"}${s.substring(3)}`;else if(gd.test(s)===!0){i="notranslate material-symbols";const c=s.match(gd);c!==null&&(s=s.substring(6),i+=hd[c[1]]),u=s}else{i="notranslate material-icons";const c=s.match(g0);c!==null&&(s=s.substring(2),i+=md[c[1]]),u=s}return{cls:i,content:u}});return()=>{const i={class:o.value,style:a.value,"aria-hidden":"true"};return l.value.none===!0?r.h(e.tag,i,Te(t.default)):l.value.img===!0?r.h(e.tag,i,ht(t.default,[r.h("img",{src:l.value.src})])):l.value.svg===!0?r.h(e.tag,i,ht(t.default,[r.h("svg",{viewBox:l.value.viewBox||"0 0 24 24"},l.value.nodes)])):l.value.svguse===!0?r.h(e.tag,i,ht(t.default,[r.h("svg",{viewBox:l.value.viewBox},[r.h("use",{"xlink:href":l.value.src})])])):(l.value.cls!==void 0&&(i.class+=" "+l.value.cls),r.h(e.tag,i,ht(t.default,[l.value.content])))}}});ie({name:"QAvatar",props:{...Tn,fontSize:String,color:String,textColor:String,icon:String,square:Boolean,rounded:Boolean},setup(e,{slots:t}){const n=qn(e),a=r.computed(()=>"q-avatar"+(e.color?` bg-${e.color}`:"")+(e.textColor?` text-${e.textColor} q-chip--colored`:"")+(e.square===!0?" q-avatar--square":e.rounded===!0?" rounded-borders":"")),o=r.computed(()=>e.fontSize?{fontSize:e.fontSize}:null);return()=>{const l=e.icon!==void 0?[r.h(Xe,{name:e.icon})]:void 0;return r.h("div",{class:a.value,style:n.value},[r.h("div",{class:"q-avatar__content row flex-center overflow-hidden",style:o.value},pi(t.default,l))])}}});var w0=["top","middle","bottom"];ie({name:"QBadge",props:{color:String,textColor:String,floating:Boolean,transparent:Boolean,multiLine:Boolean,outline:Boolean,rounded:Boolean,label:[Number,String],align:{type:String,validator:e=>w0.includes(e)}},setup(e,{slots:t}){const n=r.computed(()=>e.align!==void 0?{verticalAlign:e.align}:null),a=r.computed(()=>{const o=e.outline===!0&&e.color||e.textColor;return`q-badge flex inline items-center no-wrap q-badge--${e.multiLine===!0?"multi":"single"}-line`+(e.outline===!0?" q-badge--outline":e.color!==void 0?` bg-${e.color}`:"")+(o!==void 0?` text-${o}`:"")+(e.floating===!0?" q-badge--floating":"")+(e.rounded===!0?" q-badge--rounded":"")+(e.transparent===!0?" q-badge--transparent":"")});return()=>r.h("div",{class:a.value,style:n.value,role:"status","aria-label":e.label},ht(t.default,e.label!==void 0?[e.label]:[]))}});var Ye={dark:{type:Boolean,default:null}};function Ge(e,t){return r.computed(()=>e.dark===null?t.dark.isActive:e.dark)}ie({name:"QBanner",props:{...Ye,inlineActions:Boolean,dense:Boolean,rounded:Boolean},setup(e,{slots:t}){const{proxy:{$q:n}}=r.getCurrentInstance(),a=Ge(e,n),o=r.computed(()=>"q-banner row items-center"+(e.dense===!0?" q-banner--dense":"")+(a.value===!0?" q-banner--dark q-dark":"")+(e.rounded===!0?" rounded-borders":"")),l=r.computed(()=>`q-banner__actions row items-center justify-end col-${e.inlineActions===!0?"auto":"all"}`);return()=>{const i=[r.h("div",{class:"q-banner__avatar col-auto row items-center self-start"},Te(t.avatar)),r.h("div",{class:"q-banner__content col text-body2"},Te(t.default))],s=Te(t.action);return s!==void 0&&i.push(r.h("div",{class:l.value},s)),r.h("div",{class:o.value+(e.inlineActions===!1&&s!==void 0?" q-banner--top-padding":""),role:"alert"},i)}}}),ie({name:"QBar",props:{...Ye,dense:Boolean},setup(e,{slots:t}){const{proxy:{$q:n}}=r.getCurrentInstance(),a=Ge(e,n),o=r.computed(()=>`q-bar row no-wrap items-center q-bar--${e.dense===!0?"dense":"standard"} q-bar--${a.value===!0?"dark":"light"}`);return()=>r.h("div",{class:o.value,role:"toolbar"},Te(t.default))}});var bd={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},C0=Object.keys(bd),Si={align:{type:String,validator:e=>C0.includes(e)}};function wi(e){return r.computed(()=>{const t=e.align===void 0?e.vertical===!0?"stretch":"left":e.align;return`${e.vertical===!0?"items":"justify"}-${bd[t]}`})}function po(e){if(Object(e.$parent)===e.$parent)return e.$parent;let{parent:t}=e.$;for(;Object(t)===t;){if(Object(t.proxy)===t.proxy)return t.proxy;t=t.parent}}function pd(e,t){typeof t.type=="symbol"?Array.isArray(t.children)===!0&&t.children.forEach(n=>{pd(e,n)}):e.add(t)}function Ci(e){const t=new Set;return e.forEach(n=>{pd(t,n)}),Array.from(t)}function ki(e){return e.appContext.config.globalProperties.$router!==void 0}function $n(e){return e.isUnmounted===!0||e.isDeactivated===!0}var k0=["",!0];ie({name:"QBreadcrumbs",props:{...Si,separator:{type:String,default:"/"},separatorColor:String,activeColor:{type:String,default:"primary"},gutter:{type:String,validator:e=>["none","xs","sm","md","lg","xl"].includes(e),default:"sm"}},setup(e,{slots:t}){const n=wi(e),a=r.computed(()=>`flex items-center ${n.value}${e.gutter==="none"?"":` q-gutter-${e.gutter}`}`),o=r.computed(()=>e.separatorColor?` text-${e.separatorColor}`:""),l=r.computed(()=>` text-${e.activeColor}`);return()=>{if(t.default===void 0)return;const i=Ci(Te(t.default));if(i.length===0)return;let s=1;const u=[],d=i.filter(g=>g.type?.name==="QBreadcrumbsEl").length,c=t.separator!==void 0?t.separator:()=>e.separator;return i.forEach(g=>{if(g.type?.name==="QBreadcrumbsEl"){const v=s<d,h=g.props!==null&&k0.includes(g.props.disable),f=(v===!0?"":" q-breadcrumbs--last")+(h!==!0&&v===!0?l.value:"");s++,u.push(r.h("div",{class:`flex items-center${f}`},[g])),v===!0&&u.push(r.h("div",{class:"q-breadcrumbs__separator"+o.value},c()))}else u.push(g)}),r.h("div",{class:"q-breadcrumbs"},[r.h("div",{class:a.value},u)])}}});function yd(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function _d(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function x0(e,t){for(const n in t){const a=t[n],o=e[n];if(typeof a=="string"){if(a!==o)return!1}else if(Array.isArray(o)===!1||o.length!==a.length||a.some((l,i)=>l!==o[i]))return!1}return!0}function Sd(e,t){return Array.isArray(t)===!0?e.length===t.length&&e.every((n,a)=>n===t[a]):e.length===1&&e[0]===t}function E0(e,t){return Array.isArray(e)===!0?Sd(e,t):Array.isArray(t)===!0?Sd(t,e):e===t}function T0(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(E0(e[n],t[n])===!1)return!1;return!0}var wd={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},ba={...wd,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function yo({fallbackTag:e,useDisableForRouterLinkProps:t=!0}={}){const n=r.getCurrentInstance(),{props:a,proxy:o,emit:l}=n,i=ki(n),s=r.computed(()=>a.disable!==!0&&a.href!==void 0),u=t===!0?r.computed(()=>i===!0&&a.disable!==!0&&s.value!==!0&&a.to!==void 0&&a.to!==null&&a.to!==""):r.computed(()=>i===!0&&s.value!==!0&&a.to!==void 0&&a.to!==null&&a.to!==""),d=r.computed(()=>u.value===!0?S(a.to):null),c=r.computed(()=>d.value!==null),g=r.computed(()=>s.value===!0||c.value===!0),v=r.computed(()=>a.type==="a"||g.value===!0?"a":a.tag||e||"div"),h=r.computed(()=>s.value===!0?{href:a.href,target:a.target}:c.value===!0?{href:d.value.href,target:a.target}:{}),f=r.computed(()=>{if(c.value===!1)return-1;const{matched:w}=d.value,{length:E}=w,C=w[E-1];if(C===void 0)return-1;const R=o.$route.matched;if(R.length===0)return-1;const H=R.findIndex(_d.bind(null,C));if(H!==-1)return H;const q=yd(w[E-2]);return E>1&&yd(C)===q&&R[R.length-1].path!==q?R.findIndex(_d.bind(null,w[E-2])):H}),_=r.computed(()=>c.value===!0&&f.value!==-1&&x0(o.$route.params,d.value.params)),p=r.computed(()=>_.value===!0&&f.value===o.$route.matched.length-1&&T0(o.$route.params,d.value.params)),b=r.computed(()=>c.value===!0?p.value===!0?` ${a.exactActiveClass} ${a.activeClass}`:a.exact===!0?"":_.value===!0?` ${a.activeClass}`:"":"");function S(w){try{return o.$router.resolve(w)}catch{}return null}function y(w,{returnRouterError:E,to:C=a.to,replace:R=a.replace}={}){if(a.disable===!0)return w.preventDefault(),Promise.resolve(!1);if(w.metaKey||w.altKey||w.ctrlKey||w.shiftKey||w.button!==void 0&&w.button!==0||a.target==="_blank")return Promise.resolve(!1);w.preventDefault();const H=o.$router[R===!0?"replace":"push"](C);return E===!0?H:H.then(()=>{}).catch(()=>{})}function m(w){if(c.value===!0){const E=C=>y(w,C);l("click",w,E),w.defaultPrevented!==!0&&E()}else l("click",w)}return{hasRouterLink:c,hasHrefLink:s,hasLink:g,linkTag:v,resolvedLink:d,linkIsActive:_,linkIsExactActive:p,linkClass:b,linkAttrs:h,getLink:S,navigateToRouterLink:y,navigateOnClick:m}}ie({name:"QBreadcrumbsEl",props:{...ba,label:String,icon:String,tag:{type:String,default:"span"}},emits:["click"],setup(e,{slots:t}){const{linkTag:n,linkAttrs:a,linkClass:o,navigateOnClick:l}=yo(),i=r.computed(()=>({class:"q-breadcrumbs__el q-link flex inline items-center relative-position "+(e.disable!==!0?"q-link--focusable"+o.value:"q-breadcrumbs__el--disable"),...a.value,onClick:l})),s=r.computed(()=>"q-breadcrumbs__el-icon"+(e.label!==void 0?" q-breadcrumbs__el-icon--with-label":""));return()=>{const u=[];return e.icon!==void 0&&u.push(r.h(Xe,{class:s.value,name:e.icon})),e.label!==void 0&&u.push(e.label),r.h(n.value,{...i.value},ht(t.default,u))}}});var gt={size:{type:[String,Number],default:"1em"},color:String};function bt(e){return{cSize:r.computed(()=>e.size in bi?`${bi[e.size]}px`:e.size),classes:r.computed(()=>"q-spinner"+(e.color?` text-${e.color}`:""))}}var cn=ie({name:"QSpinner",props:{...gt,thickness:{type:Number,default:5}},setup(e){const{cSize:t,classes:n}=bt(e);return()=>r.h("svg",{class:n.value+" q-spinner-mat",width:t.value,height:t.value,viewBox:"25 25 50 50"},[r.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":e.thickness,"stroke-miterlimit":"10"})])}});function _o(e){if(e===window)return{top:0,left:0};const{top:t,left:n}=e.getBoundingClientRect();return{top:t,left:n}}function Ar(e){return e===window?window.innerHeight:e.getBoundingClientRect().height}function xi(e,t){const n=e.style;for(const a in t)n[a]=t[a]}function q0(e){if(e==null)return;if(typeof e=="string")try{return document.querySelector(e)||void 0}catch{return}const t=r.unref(e);if(t)return t.$el||t}function Cd(e,t){if(e==null||e.contains(t)===!0)return!0;for(let n=e.nextElementSibling;n!==null;n=n.nextElementSibling)if(n.contains(t))return!0;return!1}function kd(e,t=250){let n=!1,a;return function(){return n===!1&&(n=!0,setTimeout(()=>{n=!1},t),a=e.apply(this,arguments)),a}}function xd(e,t,n,a){n.modifiers.stop===!0&&ft(e);const o=n.modifiers.color;let l=n.modifiers.center;l=l===!0||a===!0;const i=document.createElement("span"),s=document.createElement("span"),u=zt(e),{left:d,top:c,width:g,height:v}=t.getBoundingClientRect(),h=Math.sqrt(g*g+v*v),f=h/2,_=`${(g-h)/2}px`,p=l?_:`${u.left-d-f}px`,b=`${(v-h)/2}px`,S=l?b:`${u.top-c-f}px`;s.className="q-ripple__inner",xi(s,{height:`${h}px`,width:`${h}px`,transform:`translate3d(${p},${S},0) scale3d(.2,.2,1)`,opacity:0}),i.className=`q-ripple${o?" text-"+o:""}`,i.setAttribute("dir","ltr"),i.appendChild(s),t.appendChild(i);const y=()=>{i.remove(),clearTimeout(m)};n.abort.push(y);let m=setTimeout(()=>{s.classList.add("q-ripple__inner--enter"),s.style.transform=`translate3d(${_},${b},0) scale3d(1,1,1)`,s.style.opacity=.2,m=setTimeout(()=>{s.classList.remove("q-ripple__inner--enter"),s.classList.add("q-ripple__inner--leave"),s.style.opacity=0,m=setTimeout(()=>{i.remove(),n.abort.splice(n.abort.indexOf(y),1)},275)},250)},50)}function Ed(e,{modifiers:t,value:n,arg:a}){const o=Object.assign({},e.cfg.ripple,t,n);e.modifiers={early:o.early===!0,stop:o.stop===!0,center:o.center===!0,color:o.color||a,keyCodes:[].concat(o.keyCodes||13)}}var So=sn({name:"ripple",beforeMount(e,t){const n=t.instance.$.appContext.config.globalProperties.$q.config||{};if(n.ripple===!1)return;const a={cfg:n,enabled:t.value!==!1,modifiers:{},abort:[],start(o){a.enabled===!0&&o.qSkipRipple!==!0&&o.type===(a.modifiers.early===!0?"pointerdown":"click")&&xd(o,e,a,o.qKeyEvent===!0)},keystart:kd(o=>{a.enabled===!0&&o.qSkipRipple!==!0&&Vt(o,a.modifiers.keyCodes)===!0&&o.type===`key${a.modifiers.early===!0?"down":"up"}`&&xd(o,e,a,!0)},300)};Ed(a,t),e.__qripple=a,mt(a,"main",[[e,"pointerdown","start","passive"],[e,"click","start","passive"],[e,"keydown","keystart","passive"],[e,"keyup","keystart","passive"]])},updated(e,t){if(t.oldValue!==t.value){const n=e.__qripple;n!==void 0&&(n.enabled=t.value!==!1,n.enabled===!0&&Object(t.value)===t.value&&Ed(n,t))}},beforeUnmount(e){const t=e.__qripple;t!==void 0&&(t.abort.forEach(n=>{n()}),Dt(t,"main"),delete e._qripple)}}),wo={none:0,xs:4,sm:8,md:16,lg:24,xl:32},O0={xs:8,sm:10,md:14,lg:20,xl:24},M0=["button","submit","reset"],L0=/[^\s]\/[^\s]/,Td=["flat","outline","push","unelevated"];function Ei(e,t){return e.flat===!0?"flat":e.outline===!0?"outline":e.push===!0?"push":e.unelevated===!0?"unelevated":t}function qd(e){const t=Ei(e);return t!==void 0?{[t]:!0}:{}}var Ti={...Tn,...wd,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...Td.reduce((e,t)=>(e[t]=Boolean)&&e,{}),square:Boolean,rounded:Boolean,glossy:Boolean,size:String,fab:Boolean,fabMini:Boolean,padding:String,color:String,textColor:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,tabindex:[Number,String],ripple:{type:[Boolean,Object],default:!0},align:{...Si.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},A0={...Ti,round:Boolean};function R0(e){const t=qn(e,O0),n=wi(e),{hasRouterLink:a,hasLink:o,linkTag:l,linkAttrs:i,navigateOnClick:s}=yo({fallbackTag:"button"}),u=r.computed(()=>{const p=e.fab===!1&&e.fabMini===!1?t.value:{};return e.padding!==void 0?Object.assign({},p,{padding:e.padding.split(/\s+/).map(b=>b in wo?wo[b]+"px":b).join(" "),minWidth:"0",minHeight:"0"}):p}),d=r.computed(()=>e.rounded===!0||e.fab===!0||e.fabMini===!0),c=r.computed(()=>e.disable!==!0&&e.loading!==!0),g=r.computed(()=>c.value===!0?e.tabindex||0:-1),v=r.computed(()=>Ei(e,"standard")),h=r.computed(()=>{const p={tabindex:g.value};return o.value===!0?Object.assign(p,i.value):M0.includes(e.type)===!0&&(p.type=e.type),l.value==="a"?(e.disable===!0?p["aria-disabled"]="true":p.href===void 0&&(p.role="button"),a.value!==!0&&L0.test(e.type)===!0&&(p.type=e.type)):e.disable===!0&&(p.disabled="",p["aria-disabled"]="true"),e.loading===!0&&e.percentage!==void 0&&Object.assign(p,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e.percentage}),p}),f=r.computed(()=>{let p;e.color!==void 0?e.flat===!0||e.outline===!0?p=`text-${e.textColor||e.color}`:p=`bg-${e.color} text-${e.textColor||"white"}`:e.textColor&&(p=`text-${e.textColor}`);const b=e.round===!0?"round":`rectangle${d.value===!0?" q-btn--rounded":e.square===!0?" q-btn--square":""}`;return`q-btn--${v.value} q-btn--${b}`+(p!==void 0?" "+p:"")+(c.value===!0?" q-btn--actionable q-focusable q-hoverable":e.disable===!0?" disabled":"")+(e.fab===!0?" q-btn--fab":e.fabMini===!0?" q-btn--fab-mini":"")+(e.noCaps===!0?" q-btn--no-uppercase":"")+(e.dense===!0?" q-btn--dense":"")+(e.stretch===!0?" no-border-radius self-stretch":"")+(e.glossy===!0?" glossy":"")+(e.square?" q-btn--square":"")}),_=r.computed(()=>n.value+(e.stack===!0?" column":" row")+(e.noWrap===!0?" no-wrap text-no-wrap":"")+(e.loading===!0?" q-btn__content--hidden":""));return{classes:f,style:u,innerClasses:_,attributes:h,hasLink:o,linkTag:l,navigateOnClick:s,isActionable:c}}var{passiveCapture:tn}=lt,Rr=null,Pr=null,Nr=null,Ze=ie({name:"QBtn",props:{...A0,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(e,{slots:t,emit:n}){const{proxy:a}=r.getCurrentInstance(),{classes:o,style:l,innerClasses:i,attributes:s,hasLink:u,linkTag:d,navigateOnClick:c,isActionable:g}=R0(e),v=r.ref(null),h=r.ref(null);let f=null,_,p=null;const b=r.computed(()=>e.label!==void 0&&e.label!==null&&e.label!==""),S=r.computed(()=>e.disable===!0||e.ripple===!1?!1:{keyCodes:u.value===!0?[13,32]:[13],...e.ripple===!0?{}:e.ripple}),y=r.computed(()=>({center:e.round})),m=r.computed(()=>{const k=Math.max(0,Math.min(100,e.percentage));return k>0?{transition:"transform 0.6s",transform:`translateX(${k-100}%)`}:{}}),w=r.computed(()=>{if(e.loading===!0)return{onMousedown:O,onTouchstart:O,onClick:O,onKeydown:O,onKeyup:O};if(g.value===!0){const k={onClick:C,onKeydown:R,onMousedown:q};if(a.$q.platform.has.touch===!0){const A=e.onTouchstart!==void 0?"":"Passive";k[`onTouchstart${A}`]=H}return k}return{onClick:Fe}}),E=r.computed(()=>({ref:v,class:"q-btn q-btn-item non-selectable no-outline "+o.value,style:l.value,...s.value,...w.value}));function C(k){if(v.value!==null){if(k!==void 0){if(k.defaultPrevented===!0)return;const A=document.activeElement;if(e.type==="submit"&&A!==document.body&&v.value.contains(A)===!1&&A.contains(v.value)===!1){k.qAvoidFocus!==!0&&v.value.focus();const D=()=>{document.removeEventListener("keydown",Fe,!0),document.removeEventListener("keyup",D,tn),v.value?.removeEventListener("blur",D,tn)};document.addEventListener("keydown",Fe,!0),document.addEventListener("keyup",D,tn),v.value.addEventListener("blur",D,tn)}}c(k)}}function R(k){v.value!==null&&(n("keydown",k),Vt(k,[13,32])===!0&&Pr!==v.value&&(Pr!==null&&M(),k.defaultPrevented!==!0&&(k.qAvoidFocus!==!0&&v.value.focus(),Pr=v.value,v.value.classList.add("q-btn--active"),document.addEventListener("keyup",T,!0),v.value.addEventListener("blur",T,tn)),Fe(k)))}function H(k){v.value!==null&&(n("touchstart",k),k.defaultPrevented!==!0&&(Rr!==v.value&&(Rr!==null&&M(),Rr=v.value,f=k.target,f.addEventListener("touchcancel",T,tn),f.addEventListener("touchend",T,tn)),_=!0,p!==null&&clearTimeout(p),p=setTimeout(()=>{p=null,_=!1},200)))}function q(k){v.value!==null&&(k.qSkipRipple=_===!0,n("mousedown",k),k.defaultPrevented!==!0&&Nr!==v.value&&(Nr!==null&&M(),Nr=v.value,v.value.classList.add("q-btn--active"),document.addEventListener("mouseup",T,tn)))}function T(k){if(v.value!==null&&!(k?.type==="blur"&&document.activeElement===v.value)){if(k?.type==="keyup"){if(Pr===v.value&&Vt(k,[13,32])===!0){const A=new MouseEvent("click",k);A.qKeyEvent=!0,k.defaultPrevented===!0&&Et(A),k.cancelBubble===!0&&ft(A),v.value.dispatchEvent(A),Fe(k),k.qKeyEvent=!0}n("keyup",k)}M()}}function M(k){const A=h.value;k!==!0&&(Rr===v.value||Nr===v.value)&&A!==null&&A!==document.activeElement&&(A.setAttribute("tabindex",-1),A.focus()),Rr===v.value&&(f!==null&&(f.removeEventListener("touchcancel",T,tn),f.removeEventListener("touchend",T,tn)),Rr=f=null),Nr===v.value&&(document.removeEventListener("mouseup",T,tn),Nr=null),Pr===v.value&&(document.removeEventListener("keyup",T,!0),v.value?.removeEventListener("blur",T,tn),Pr=null),v.value?.classList.remove("q-btn--active")}function O(k){Fe(k),k.qSkipRipple=!0}return r.onBeforeUnmount(()=>{M(!0)}),Object.assign(a,{click:k=>{g.value===!0&&C(k)}}),()=>{let k=[];e.icon!==void 0&&k.push(r.h(Xe,{name:e.icon,left:e.stack!==!0&&b.value===!0,role:"img"})),b.value===!0&&k.push(r.h("span",{class:"block"},[e.label])),k=ht(t.default,k),e.iconRight!==void 0&&e.round===!1&&k.push(r.h(Xe,{name:e.iconRight,right:e.stack!==!0&&b.value===!0,role:"img"}));const A=[r.h("span",{class:"q-focus-helper",ref:h})];return e.loading===!0&&e.percentage!==void 0&&A.push(r.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(e.darkPercentage===!0?" q-btn__progress--dark":"")},[r.h("span",{class:"q-btn__progress-indicator fit block",style:m.value})])),A.push(r.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+i.value},k)),e.loading!==null&&A.push(r.h(r.Transition,{name:"q-transition--fade"},()=>e.loading===!0?[r.h("span",{key:"loading",class:"absolute-full flex flex-center"},t.loading!==void 0?t.loading():[r.h(cn)])]:null)),r.withDirectives(r.h(d.value,E.value,A),[[So,S.value,void 0,y.value]])}}}),Od=ie({name:"QBtnGroup",props:{unelevated:Boolean,outline:Boolean,flat:Boolean,rounded:Boolean,square:Boolean,push:Boolean,stretch:Boolean,glossy:Boolean,spread:Boolean},setup(e,{slots:t}){const n=r.computed(()=>{const a=["unelevated","outline","flat","rounded","square","push","stretch","glossy"].filter(o=>e[o]===!0).map(o=>`q-btn-group--${o}`).join(" ");return`q-btn-group row no-wrap${a.length!==0?" "+a:""}`+(e.spread===!0?" q-btn-group--spread":" inline")});return()=>r.h("div",{class:n.value},Te(t.default))}});function dn(){if(window.getSelection!==void 0){const e=window.getSelection();e.empty!==void 0?e.empty():e.removeAllRanges!==void 0&&(e.removeAllRanges(),a0.is.mobile!==!0&&e.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}var Md={target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},Ld={...Md,contextMenu:Boolean};function qi({showing:e,avoidEmit:t,configureAnchorEl:n}){const{props:a,proxy:o,emit:l}=r.getCurrentInstance(),i=r.ref(null);let s=null;function u(h){return i.value===null?!1:h===void 0||h.touches===void 0||h.touches.length<=1}const d={};n===void 0&&(Object.assign(d,{hide(h){o.hide(h)},toggle(h){o.toggle(h),h.qAnchorHandled=!0},toggleKey(h){Vt(h,13)===!0&&d.toggle(h)},contextClick(h){o.hide(h),Et(h),r.nextTick(()=>{o.show(h),h.qAnchorHandled=!0})},prevent:Et,mobileTouch(h){if(d.mobileCleanup(h),u(h)!==!0)return;o.hide(h),i.value.classList.add("non-selectable");const f=h.target;mt(d,"anchor",[[f,"touchmove","mobileCleanup","passive"],[f,"touchend","mobileCleanup","passive"],[f,"touchcancel","mobileCleanup","passive"],[i.value,"contextmenu","prevent","notPassive"]]),s=setTimeout(()=>{s=null,o.show(h),h.qAnchorHandled=!0},300)},mobileCleanup(h){i.value.classList.remove("non-selectable"),s!==null&&(clearTimeout(s),s=null),e.value===!0&&h!==void 0&&dn()}}),n=function(h=a.contextMenu){if(a.noParentEvent===!0||i.value===null)return;let f;h===!0?o.$q.platform.is.mobile===!0?f=[[i.value,"touchstart","mobileTouch","passive"]]:f=[[i.value,"mousedown","hide","passive"],[i.value,"contextmenu","contextClick","notPassive"]]:f=[[i.value,"click","toggle","passive"],[i.value,"keyup","toggleKey","passive"]],mt(d,"anchor",f)});function c(){Dt(d,"anchor")}function g(h){for(i.value=h;i.value.classList.contains("q-anchor--skip");)i.value=i.value.parentNode;n()}function v(){if(a.target===!1||a.target===""||o.$el.parentNode===null)i.value=null;else if(a.target===!0)g(o.$el.parentNode);else{let h=a.target;if(typeof a.target=="string")try{h=document.querySelector(a.target)}catch{h=void 0}h!=null?(i.value=h.$el||h,n()):(i.value=null,console.error(`Anchor: target "${a.target}" not found`))}}return r.watch(()=>a.contextMenu,h=>{i.value!==null&&(c(),n(h))}),r.watch(()=>a.target,()=>{i.value!==null&&c(),v()}),r.watch(()=>a.noParentEvent,h=>{i.value!==null&&(h===!0?c():n())}),r.onMounted(()=>{v(),t!==!0&&a.modelValue===!0&&i.value===null&&l("update:modelValue",!1)}),r.onBeforeUnmount(()=>{s!==null&&clearTimeout(s),c()}),{anchorEl:i,canShow:u,anchorEvents:d}}function Ad(e,t){const n=r.ref(null);let a;function o(s,u){const d=`${u!==void 0?"add":"remove"}EventListener`,c=u!==void 0?u:a;s!==window&&s[d]("scroll",c,lt.passive),window[d]("scroll",c,lt.passive),a=u}function l(){n.value!==null&&(o(n.value),n.value=null)}const i=r.watch(()=>e.noParentEvent,()=>{n.value!==null&&(l(),t())});return r.onBeforeUnmount(i),{localScrollTarget:n,unconfigureScrollTarget:l,changeScrollEvent:o}}var Ir={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},Dr=["beforeShow","show","beforeHide","hide"];function $r({showing:e,canShow:t,hideOnRouteChange:n,handleShow:a,handleHide:o,processOnMount:l}){const i=r.getCurrentInstance(),{props:s,emit:u,proxy:d}=i;let c;function g(S){e.value===!0?f(S):v(S)}function v(S){if(s.disable===!0||S?.qAnchorHandled===!0||t!==void 0&&t(S)!==!0)return;const y=s["onUpdate:modelValue"]!==void 0;y===!0&&(u("update:modelValue",!0),c=S,r.nextTick(()=>{c===S&&(c=void 0)})),(s.modelValue===null||y===!1)&&h(S)}function h(S){e.value!==!0&&(e.value=!0,u("beforeShow",S),a!==void 0?a(S):u("show",S))}function f(S){if(s.disable===!0)return;const y=s["onUpdate:modelValue"]!==void 0;y===!0&&(u("update:modelValue",!1),c=S,r.nextTick(()=>{c===S&&(c=void 0)})),(s.modelValue===null||y===!1)&&_(S)}function _(S){e.value!==!1&&(e.value=!1,u("beforeHide",S),o!==void 0?o(S):u("hide",S))}function p(S){s.disable===!0&&S===!0?s["onUpdate:modelValue"]!==void 0&&u("update:modelValue",!1):S===!0!==e.value&&(S===!0?h:_)(c)}r.watch(()=>s.modelValue,p),n!==void 0&&ki(i)===!0&&r.watch(()=>d.$route.fullPath,()=>{n.value===!0&&e.value===!0&&f()}),l===!0&&r.onMounted(()=>{p(s.modelValue)});const b={show:v,hide:f,toggle:g};return Object.assign(d,b),b}var lr=[],pa=[];function Rd(e){pa=pa.filter(t=>t!==e)}function P0(e){Rd(e),pa.push(e)}function Pd(e){Rd(e),pa.length===0&&lr.length!==0&&(lr[lr.length-1](),lr=[])}function Br(e){pa.length===0?e():lr.push(e)}function N0(e){lr=lr.filter(t=>t!==e)}var Fr=[],ya=[],I0=1,Bn=document.body;function Oi(e,t){const n=document.createElement("div");if(n.id=t!==void 0?`q-portal--${t}--${I0++}`:e,sd.globalNodes!==void 0){const a=sd.globalNodes.class;a!==void 0&&(n.className=a)}return Bn.appendChild(n),Fr.push(n),ya.push(t),n}function Nd(e){const t=Fr.indexOf(e);Fr.splice(t,1),ya.splice(t,1),e.remove()}function D0(e){if(e===Bn)return;if(Bn=e,Bn===document.body||ya.reduce((n,a)=>a==="dialog"?n+1:n,0)<2){Fr.forEach(n=>{n.contains(Bn)===!1&&Bn.appendChild(n)});return}const t=ya.lastIndexOf("dialog");for(let n=0;n<Fr.length;n++){const a=Fr[n];(n===t||ya[n]!=="dialog")&&a.contains(Bn)===!1&&Bn.appendChild(a)}}var zr=[];function $0(e){return zr.find(t=>t.contentEl!==null&&t.contentEl.contains(e))}function Id(e,t){do{if(e.$options.name==="QMenu"){if(e.hide(t),e.$props.separateClosePopup===!0)return po(e)}else if(e.__qPortal===!0){const n=po(e);return n?.$options.name==="QPopupProxy"?(e.hide(t),n):e}e=po(e)}while(e!=null)}function B0(e,t,n){for(;n!==0&&e!==void 0&&e!==null;){if(e.__qPortal===!0){if(n--,e.$options.name==="QMenu"){e=Id(e,t);continue}e.hide(t)}e=po(e)}}var F0=ie({name:"QPortal",setup(e,{slots:t}){return()=>t.default()}});function z0(e){for(e=e.parent;e!=null;){if(e.type.name==="QGlobalDialog")return!0;if(e.type.name==="QDialog"||e.type.name==="QMenu")return!1;e=e.parent}return!1}function Mi(e,t,n,a){const o=r.ref(!1),l=r.ref(!1);let i=null;const s={},u=a==="dialog"&&z0(e);function d(g){if(g===!0){Pd(s),l.value=!0;return}l.value=!1,o.value===!1&&(u===!1&&i===null&&(i=Oi(!1,a)),o.value=!0,zr.push(e.proxy),P0(s))}function c(g){if(l.value=!1,g!==!0)return;Pd(s),o.value=!1;const v=zr.indexOf(e.proxy);v!==-1&&zr.splice(v,1),i!==null&&(Nd(i),i=null)}return r.onUnmounted(()=>{c(!0)}),e.proxy.__qPortal=!0,xt(e.proxy,"contentEl",()=>t.value),{showPortal:d,hidePortal:c,portalIsActive:o,portalIsAccessible:l,renderPortal:()=>u===!0?n():o.value===!0?[r.h(r.Teleport,{to:i},r.h(F0,n))]:void 0}}var ir={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function Co(e,t=()=>{},n=()=>{}){return{transitionProps:r.computed(()=>{const a=`q-transition--${e.transitionShow||t()}`,o=`q-transition--${e.transitionHide||n()}`;return{appear:!0,enterFromClass:`${a}-enter-from`,enterActiveClass:`${a}-enter-active`,enterToClass:`${a}-enter-to`,leaveFromClass:`${o}-leave-from`,leaveActiveClass:`${o}-leave-active`,leaveToClass:`${o}-leave-to`}}),transitionStyle:r.computed(()=>`--q-transition-duration: ${e.transitionDuration}ms`)}}function Hr(){let e;const t=r.getCurrentInstance();function n(){e=void 0}return r.onDeactivated(n),r.onBeforeUnmount(n),{removeTick:n,registerTick(a){e=a,r.nextTick(()=>{e===a&&($n(t)===!1&&e(),e=void 0)})}}}function On(){let e=null;const t=r.getCurrentInstance();function n(){e!==null&&(clearTimeout(e),e=null)}return r.onDeactivated(n),r.onBeforeUnmount(n),{removeTimeout:n,registerTimeout(a,o){n(),$n(t)===!1&&(e=setTimeout(()=>{e=null,a()},o))}}}var sr=[Element,String],H0=[null,document,document.body,document.scrollingElement,document.documentElement];function pn(e,t){let n=q0(t);if(n===void 0){if(e==null)return window;n=e.closest(".scroll,.scroll-y,.overflow-auto")}return H0.includes(n)?window:n}function ko(e){return(e===window?document.body:e).scrollHeight}function Fn(e){return e===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:e.scrollTop}function xo(e){return e===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:e.scrollLeft}function Dd(e,t,n=0){const a=arguments[3]===void 0?performance.now():arguments[3],o=Fn(e);if(n<=0){o!==t&&Li(e,t);return}requestAnimationFrame(l=>{const i=l-a,s=o+(t-o)/Math.max(i,n)*i;Li(e,s),s!==t&&Dd(e,t,n-i,l)})}function $d(e,t,n=0){const a=arguments[3]===void 0?performance.now():arguments[3],o=xo(e);if(n<=0){o!==t&&Ai(e,t);return}requestAnimationFrame(l=>{const i=l-a,s=o+(t-o)/Math.max(i,n)*i;Ai(e,s),s!==t&&$d(e,t,n-i,l)})}function Li(e,t){if(e===window){window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,t);return}e.scrollTop=t}function Ai(e,t){if(e===window){window.scrollTo(t,window.pageYOffset||window.scrollY||document.body.scrollTop||0);return}e.scrollLeft=t}function jr(e,t,n){if(n){Dd(e,t,n);return}Li(e,t)}function Ri(e,t,n){if(n){$d(e,t,n);return}Ai(e,t)}var Eo;function To(){if(Eo!==void 0)return Eo;const e=document.createElement("p"),t=document.createElement("div");xi(e,{width:"100%",height:"200px"}),xi(t,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),t.appendChild(e),document.body.appendChild(t);const n=e.offsetWidth;t.style.overflow="scroll";let a=e.offsetWidth;return n===a&&(a=t.clientWidth),t.remove(),Eo=n-a,Eo}function j0(e,t=!0){return!e||e.nodeType!==Node.ELEMENT_NODE?!1:t?e.scrollHeight>e.clientHeight&&(e.classList.contains("scroll")||e.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(e)["overflow-y"])):e.scrollWidth>e.clientWidth&&(e.classList.contains("scroll")||e.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(e)["overflow-x"]))}var ur=[],Ur;function U0(e){Ur=e.keyCode===27}function Q0(){Ur===!0&&(Ur=!1)}function W0(e){Ur===!0&&(Ur=!1,Vt(e,27)===!0&&ur[ur.length-1](e))}function Bd(e){window[e]("keydown",U0),window[e]("blur",Q0),window[e]("keyup",W0),Ur=!1}function Fd(e){He.is.desktop===!0&&(ur.push(e),ur.length===1&&Bd("addEventListener"))}function qo(e){const t=ur.indexOf(e);t!==-1&&(ur.splice(t,1),ur.length===0&&Bd("removeEventListener"))}var cr=[];function zd(e){cr[cr.length-1](e)}function Hd(e){He.is.desktop===!0&&(cr.push(e),cr.length===1&&document.body.addEventListener("focusin",zd))}function Pi(e){const t=cr.indexOf(e);t!==-1&&(cr.splice(t,1),cr.length===0&&document.body.removeEventListener("focusin",zd))}var{notPassiveCapture:Oo}=lt,dr=[];function Mo(e){const t=e.target;if(t===void 0||t.nodeType===8||t.classList.contains("no-pointer-events")===!0)return;let n=zr.length-1;for(;n>=0;){const a=zr[n].$;if(a.type.name==="QTooltip"){n--;continue}if(a.type.name!=="QDialog")break;if(a.props.seamless!==!0)return;n--}for(let a=dr.length-1;a>=0;a--){const o=dr[a];if((o.anchorEl.value===null||o.anchorEl.value.contains(t)===!1)&&(t===document.body||o.innerRef.value!==null&&o.innerRef.value.contains(t)===!1))e.qClickOutside=!0,o.onClickOutside(e);else return}}function jd(e){dr.push(e),dr.length===1&&(document.addEventListener("mousedown",Mo,Oo),document.addEventListener("touchstart",Mo,Oo))}function Lo(e){const t=dr.findIndex(n=>n===e);t!==-1&&(dr.splice(t,1),dr.length===0&&(document.removeEventListener("mousedown",Mo,Oo),document.removeEventListener("touchstart",Mo,Oo)))}var Ud,Qd;function Ao(e){const t=e.split(" ");return t.length!==2?!1:["top","center","bottom"].includes(t[0])!==!0?(console.error("Anchor/Self position must start with one of top/center/bottom"),!1):["left","middle","right","start","end"].includes(t[1])!==!0?(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1):!0}function Wd(e){return e?!(e.length!==2||typeof e[0]!="number"||typeof e[1]!="number"):!0}var Ni={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(e=>{Ni[`${e}#ltr`]=e,Ni[`${e}#rtl`]=e});function Ro(e,t){const n=e.split(" ");return{vertical:n[0],horizontal:Ni[`${n[1]}#${t===!0?"rtl":"ltr"}`]}}function K0(e,t){let{top:n,left:a,right:o,bottom:l,width:i,height:s}=e.getBoundingClientRect();return t!==void 0&&(n-=t[1],a-=t[0],l+=t[1],o+=t[0],i+=t[0],s+=t[1]),{top:n,bottom:l,height:s,left:a,right:o,width:i,middle:a+(o-a)/2,center:n+(l-n)/2}}function Y0(e,t,n){let{top:a,left:o}=e.getBoundingClientRect();return a+=t.top,o+=t.left,n!==void 0&&(a+=n[1],o+=n[0]),{top:a,bottom:a+1,height:1,left:o,right:o+1,width:1,middle:o,center:a}}function G0(e,t){return{top:0,center:t/2,bottom:t,left:0,middle:e/2,right:e}}function Kd(e,t,n,a){return{top:e[n.vertical]-t[a.vertical],left:e[n.horizontal]-t[a.horizontal]}}function Ii(e,t=0){if(e.targetEl===null||e.anchorEl===null||t>5)return;if(e.targetEl.offsetHeight===0||e.targetEl.offsetWidth===0){setTimeout(()=>{Ii(e,t+1)},10);return}const{targetEl:n,offset:a,anchorEl:o,anchorOrigin:l,selfOrigin:i,absoluteOffset:s,fit:u,cover:d,maxHeight:c,maxWidth:g}=e;if(He.is.ios===!0&&window.visualViewport!==void 0){const E=document.body.style,{offsetLeft:C,offsetTop:R}=window.visualViewport;C!==Ud&&(E.setProperty("--q-pe-left",C+"px"),Ud=C),R!==Qd&&(E.setProperty("--q-pe-top",R+"px"),Qd=R)}const{scrollLeft:v,scrollTop:h}=n,f=s===void 0?K0(o,d===!0?[0,0]:a):Y0(o,s,a);Object.assign(n.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:g,maxHeight:c,visibility:"visible"});const{offsetWidth:_,offsetHeight:p}=n,{elWidth:b,elHeight:S}=u===!0||d===!0?{elWidth:Math.max(f.width,_),elHeight:d===!0?Math.max(f.height,p):p}:{elWidth:_,elHeight:p};let y={maxWidth:g,maxHeight:c};(u===!0||d===!0)&&(y.minWidth=f.width+"px",d===!0&&(y.minHeight=f.height+"px")),Object.assign(n.style,y);const m=G0(b,S);let w=Kd(f,m,l,i);if(s===void 0||a===void 0)Di(w,f,m,l,i);else{const{top:E,left:C}=w;Di(w,f,m,l,i);let R=!1;if(w.top!==E){R=!0;const H=2*a[1];f.center=f.top-=H,f.bottom-=H+2}if(w.left!==C){R=!0;const H=2*a[0];f.middle=f.left-=H,f.right-=H+2}R===!0&&(w=Kd(f,m,l,i),Di(w,f,m,l,i))}y={top:w.top+"px",left:w.left+"px"},w.maxHeight!==void 0&&(y.maxHeight=w.maxHeight+"px",f.height>w.maxHeight&&(y.minHeight=y.maxHeight)),w.maxWidth!==void 0&&(y.maxWidth=w.maxWidth+"px",f.width>w.maxWidth&&(y.minWidth=y.maxWidth)),Object.assign(n.style,y),n.scrollTop!==h&&(n.scrollTop=h),n.scrollLeft!==v&&(n.scrollLeft=v)}function Di(e,t,n,a,o){const l=n.bottom,i=n.right,s=To(),u=window.innerHeight-s,d=document.body.clientWidth;if(e.top<0||e.top+l>u)if(o.vertical==="center")e.top=t[a.vertical]>u/2?Math.max(0,u-l):0,e.maxHeight=Math.min(l,u);else if(t[a.vertical]>u/2){const c=Math.min(u,a.vertical==="center"?t.center:a.vertical===o.vertical?t.bottom:t.top);e.maxHeight=Math.min(l,c),e.top=Math.max(0,c-l)}else e.top=Math.max(0,a.vertical==="center"?t.center:a.vertical===o.vertical?t.top:t.bottom),e.maxHeight=Math.min(l,u-e.top);if(e.left<0||e.left+i>d)if(e.maxWidth=Math.min(i,d),o.horizontal==="middle")e.left=t[a.horizontal]>d/2?Math.max(0,d-i):0;else if(t[a.horizontal]>d/2){const c=Math.min(d,a.horizontal==="middle"?t.middle:a.horizontal===o.horizontal?t.right:t.left);e.maxWidth=Math.min(i,c),e.left=Math.max(0,c-e.maxWidth)}else e.left=Math.max(0,a.horizontal==="middle"?t.middle:a.horizontal===o.horizontal?t.left:t.right),e.maxWidth=Math.min(i,d-e.left)}var Po=ie({name:"QMenu",inheritAttrs:!1,props:{...Ld,...Ir,...Ye,...ir,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noEscDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:Ao},self:{type:String,validator:Ao},offset:{type:Array,validator:Wd},scrollTarget:sr,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...Dr,"click","escapeKey"],setup(e,{slots:t,emit:n,attrs:a}){let o=null,l,i,s;const u=r.getCurrentInstance(),{proxy:d}=u,{$q:c}=d,g=r.ref(null),v=r.ref(!1),h=r.computed(()=>e.persistent!==!0&&e.noRouteDismiss!==!0),f=Ge(e,c),{registerTick:_,removeTick:p}=Hr(),{registerTimeout:b}=On(),{transitionProps:S,transitionStyle:y}=Co(e),{localScrollTarget:m,changeScrollEvent:w,unconfigureScrollTarget:E}=Ad(e,Y),{anchorEl:C,canShow:R}=qi({showing:v}),{hide:H}=$r({showing:v,canShow:R,handleShow:he,handleHide:$,hideOnRouteChange:h,processOnMount:!0}),{showPortal:q,hidePortal:T,renderPortal:M}=Mi(u,g,ue,"menu"),O={anchorEl:C,innerRef:g,onClickOutside(W){if(e.persistent!==!0&&v.value===!0)return H(W),(W.type==="touchstart"||W.target.classList.contains("q-dialog__backdrop"))&&Fe(W),!0}},k=r.computed(()=>Ro(e.anchor||(e.cover===!0?"center middle":"bottom start"),c.lang.rtl)),A=r.computed(()=>e.cover===!0?k.value:Ro(e.self||"top start",c.lang.rtl)),D=r.computed(()=>(e.square===!0?" q-menu--square":"")+(f.value===!0?" q-menu--dark q-dark":"")),z=r.computed(()=>e.autoClose===!0?{onClick:B}:{}),F=r.computed(()=>v.value===!0&&e.persistent!==!0);r.watch(F,W=>{W===!0?(Fd(N),jd(O)):(qo(N),Lo(O))});function Z(){Br(()=>{let W=g.value;W&&W.contains(document.activeElement)!==!0&&(W=W.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||W.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||W.querySelector("[autofocus], [data-autofocus]")||W,W.focus({preventScroll:!0}))})}function he(W){if(o=e.noRefocus===!1?document.activeElement:null,Hd(le),q(),Y(),l=void 0,W!==void 0&&(e.touchPosition||e.contextMenu)){const ve=zt(W);if(ve.left!==void 0){const{top:_e,left:G}=C.value.getBoundingClientRect();l={left:ve.left-G,top:ve.top-_e}}}i===void 0&&(i=r.watch(()=>c.screen.width+"|"+c.screen.height+"|"+e.self+"|"+e.anchor+"|"+c.lang.rtl,U)),e.noFocus!==!0&&document.activeElement.blur(),_(()=>{U(),e.noFocus!==!0&&Z()}),b(()=>{c.platform.is.ios===!0&&(s=e.autoClose,g.value.click()),U(),q(!0),n("show",W)},e.transitionDuration)}function $(W){p(),T(),x(!0),o!==null&&(W===void 0||W.qClickOutside!==!0)&&(((W?.type.indexOf("key")===0?o.closest('[tabindex]:not([tabindex^="-"])'):void 0)||o).focus(),o=null),b(()=>{T(!0),n("hide",W)},e.transitionDuration)}function x(W){l=void 0,i!==void 0&&(i(),i=void 0),(W===!0||v.value===!0)&&(Pi(le),E(),Lo(O),qo(N)),W!==!0&&(o=null)}function Y(){(C.value!==null||e.scrollTarget!==void 0)&&(m.value=pn(C.value,e.scrollTarget),w(m.value,U))}function B(W){s!==!0?(Id(d,W),n("click",W)):s=!1}function le(W){F.value===!0&&e.noFocus!==!0&&Cd(g.value,W.target)!==!0&&Z()}function N(W){e.noEscDismiss!==!0&&(n("escapeKey"),H(W))}function U(){Ii({targetEl:g.value,offset:e.offset,anchorEl:C.value,anchorOrigin:k.value,selfOrigin:A.value,absoluteOffset:l,fit:e.fit,cover:e.cover,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function ue(){return r.h(r.Transition,S.value,()=>v.value===!0?r.h("div",{role:"menu",...a,ref:g,tabindex:-1,class:["q-menu q-position-engine scroll"+D.value,a.class],style:[a.style,y.value],...z.value},Te(t.default)):null)}return r.onBeforeUnmount(x),Object.assign(d,{focus:Z,updatePosition:U}),M}}),$i,No=0,At=new Array(256);for(let e=0;e<256;e++)At[e]=(e+256).toString(16).substring(1);var X0=(()=>{const e=typeof crypto<"u"?crypto:typeof window<"u"?window.crypto||window.msCrypto:void 0;if(e!==void 0){if(e.randomBytes!==void 0)return e.randomBytes;if(e.getRandomValues!==void 0)return t=>{const n=new Uint8Array(t);return e.getRandomValues(n),n}}return t=>{const n=[];for(let a=t;a>0;a--)n.push(Math.floor(Math.random()*256));return n}})(),Yd=4096;function _a(){($i===void 0||No+16>Yd)&&(No=0,$i=X0(Yd));const e=Array.prototype.slice.call($i,No,No+=16);return e[6]=e[6]&15|64,e[8]=e[8]&63|128,At[e[0]]+At[e[1]]+At[e[2]]+At[e[3]]+"-"+At[e[4]]+At[e[5]]+"-"+At[e[6]]+At[e[7]]+"-"+At[e[8]]+At[e[9]]+"-"+At[e[10]]+At[e[11]]+At[e[12]]+At[e[13]]+At[e[14]]+At[e[15]]}function J0(e){return e??null}function Gd(e,t){return e??(t===!0?`f_${_a()}`:null)}function Io({getValue:e,required:t=!0}={}){if(Zt.value===!0){const n=e!==void 0?r.ref(J0(e())):r.ref(null);return t===!0&&n.value===null&&r.onMounted(()=>{n.value=`f_${_a()}`}),e!==void 0&&r.watch(e,a=>{n.value=Gd(a,t)}),n}return e!==void 0?r.computed(()=>Gd(e(),t)):r.ref(`f_${_a()}`)}var Z0=Object.keys(Ti);function V0(e){return Z0.reduce((t,n)=>{const a=e[n];return a!==void 0&&(t[n]=a),t},{})}var ey=ie({name:"QBtnDropdown",props:{...Ti,...ir,modelValue:Boolean,split:Boolean,dropdownIcon:String,contentClass:[Array,String,Object],contentStyle:[Array,String,Object],cover:Boolean,persistent:Boolean,noEscDismiss:Boolean,noRouteDismiss:Boolean,autoClose:Boolean,noRefocus:Boolean,noFocus:Boolean,menuAnchor:{type:String,default:"bottom end"},menuSelf:{type:String,default:"top end"},menuOffset:Array,disableMainBtn:Boolean,disableDropdown:Boolean,noIconAnimation:Boolean,toggleAriaLabel:String},emits:["update:modelValue","click","beforeShow","show","beforeHide","hide"],setup(e,{slots:t,emit:n}){const{proxy:a}=r.getCurrentInstance(),o=r.ref(e.modelValue),l=r.ref(null),i=Io(),s=r.computed(()=>{const m={"aria-expanded":o.value===!0?"true":"false","aria-haspopup":"true","aria-controls":i.value,"aria-label":e.toggleAriaLabel||a.$q.lang.label[o.value===!0?"collapse":"expand"](e.label)};return(e.disable===!0||e.split===!1&&e.disableMainBtn===!0||e.disableDropdown===!0)&&(m["aria-disabled"]="true"),m}),u=r.computed(()=>"q-btn-dropdown__arrow"+(o.value===!0&&e.noIconAnimation===!1?" rotate-180":"")+(e.split===!1?" q-btn-dropdown__arrow-container":"")),d=r.computed(()=>qd(e)),c=r.computed(()=>V0(e));r.watch(()=>e.modelValue,m=>{l.value?.[m?"show":"hide"]()}),r.watch(()=>e.split,y);function g(m){o.value=!0,n("beforeShow",m)}function v(m){n("show",m),n("update:modelValue",!0)}function h(m){o.value=!1,n("beforeHide",m)}function f(m){n("hide",m),n("update:modelValue",!1)}function _(m){n("click",m)}function p(m){ft(m),y(),n("click",m)}function b(m){l.value?.toggle(m)}function S(m){l.value?.show(m)}function y(m){l.value?.hide(m)}return Object.assign(a,{show:S,hide:y,toggle:b}),r.onMounted(()=>{e.modelValue===!0&&S()}),()=>{const m=[r.h(Xe,{class:u.value,name:e.dropdownIcon||a.$q.iconSet.arrow.dropdown})];return e.disableDropdown!==!0&&m.push(r.h(Po,{ref:l,id:i.value,class:e.contentClass,style:e.contentStyle,cover:e.cover,fit:!0,persistent:e.persistent,noEscDismiss:e.noEscDismiss,noRouteDismiss:e.noRouteDismiss,autoClose:e.autoClose,noFocus:e.noFocus,noRefocus:e.noRefocus,anchor:e.menuAnchor,self:e.menuSelf,offset:e.menuOffset,separateClosePopup:!0,transitionShow:e.transitionShow,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,onBeforeShow:g,onShow:v,onBeforeHide:h,onHide:f},t.default)),e.split===!1?r.h(Ze,{class:"q-btn-dropdown q-btn-dropdown--simple",...c.value,...s.value,disable:e.disable===!0||e.disableMainBtn===!0,noWrap:!0,round:!1,onClick:_},{default:()=>Te(t.label,[]).concat(m),loading:t.loading}):r.h(Od,{class:"q-btn-dropdown q-btn-dropdown--split no-wrap q-btn-item",rounded:e.rounded,square:e.square,...d.value,glossy:e.glossy,stretch:e.stretch},()=>[r.h(Ze,{class:"q-btn-dropdown--current",...c.value,disable:e.disable===!0||e.disableMainBtn===!0,noWrap:!0,round:!1,onClick:p},{default:t.label,loading:t.loading}),r.h(Ze,{class:"q-btn-dropdown__arrow-container q-anchor--skip",...s.value,...d.value,disable:e.disable===!0||e.disableDropdown===!0,rounded:e.rounded,color:e.color,textColor:e.textColor,dense:e.dense,size:e.size,padding:e.padding,ripple:e.ripple},()=>m)])}}}),nn={name:String};function Sa(e){return r.computed(()=>({type:"hidden",name:e.name,value:e.modelValue}))}function zn(e={}){return(t,n,a)=>{t[n](r.h("input",{class:"hidden"+(a||""),...e.value}))}}function Bi(e){return r.computed(()=>e.name||e.for)}ie({name:"QBtnToggle",props:{...nn,modelValue:{required:!0},options:{type:Array,required:!0,validator:e=>e.every(t=>("label"in t||"icon"in t||"slot"in t)&&"value"in t)},color:String,textColor:String,toggleColor:{type:String,default:"primary"},toggleTextColor:String,outline:Boolean,flat:Boolean,unelevated:Boolean,rounded:Boolean,push:Boolean,glossy:Boolean,size:String,padding:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,readonly:Boolean,disable:Boolean,stack:Boolean,stretch:Boolean,spread:Boolean,clearable:Boolean,ripple:{type:[Boolean,Object],default:!0}},emits:["update:modelValue","clear","click"],setup(e,{slots:t,emit:n}){const a=r.computed(()=>e.options.find(v=>v.value===e.modelValue)!==void 0),o=r.computed(()=>({type:"hidden",name:e.name,value:e.modelValue})),l=zn(o),i=r.computed(()=>qd(e)),s=r.computed(()=>({rounded:e.rounded,dense:e.dense,...i.value})),u=r.computed(()=>e.options.map((v,h)=>{const{attrs:f,value:_,slot:p,...b}=v;return{slot:p,props:{key:h,"aria-pressed":_===e.modelValue?"true":"false",...f,...b,...s.value,disable:e.disable===!0||b.disable===!0,color:_===e.modelValue?c(b,"toggleColor"):c(b,"color"),textColor:_===e.modelValue?c(b,"toggleTextColor"):c(b,"textColor"),noCaps:c(b,"noCaps")===!0,noWrap:c(b,"noWrap")===!0,size:c(b,"size"),padding:c(b,"padding"),ripple:c(b,"ripple"),stack:c(b,"stack")===!0,stretch:c(b,"stretch")===!0,onClick(S){d(_,v,S)}}}}));function d(v,h,f){e.readonly!==!0&&(e.modelValue===v?e.clearable===!0&&(n("update:modelValue",null,null),n("clear")):n("update:modelValue",v,h),n("click",f))}function c(v,h){return v[h]===void 0?e[h]:v[h]}function g(){const v=u.value.map(h=>r.h(Ze,h.props,h.slot!==void 0?t[h.slot]:void 0));return e.name!==void 0&&e.disable!==!0&&a.value===!0&&l(v,"push"),ht(t.default,v)}return()=>r.h(Od,{class:"q-btn-toggle",...i.value,rounded:e.rounded,stretch:e.stretch,glossy:e.glossy,spread:e.spread},g)}});var Xd=ie({name:"QCard",props:{...Ye,tag:{type:String,default:"div"},square:Boolean,flat:Boolean,bordered:Boolean},setup(e,{slots:t}){const{proxy:{$q:n}}=r.getCurrentInstance(),a=Ge(e,n),o=r.computed(()=>"q-card"+(a.value===!0?" q-card--dark q-dark":"")+(e.bordered===!0?" q-card--bordered":"")+(e.square===!0?" q-card--square no-border-radius":"")+(e.flat===!0?" q-card--flat no-shadow":""));return()=>r.h(e.tag,{class:o.value},Te(t.default))}}),fr=ie({name:"QCardSection",props:{tag:{type:String,default:"div"},horizontal:Boolean},setup(e,{slots:t}){const n=r.computed(()=>`q-card__section q-card__section--${e.horizontal===!0?"horiz row no-wrap":"vert"}`);return()=>r.h(e.tag,{class:n.value},Te(t.default))}}),ty=ie({name:"QCardActions",props:{...Si,vertical:Boolean},setup(e,{slots:t}){const n=wi(e),a=r.computed(()=>`q-card__actions ${n.value} q-card__actions--${e.vertical===!0?"vert column":"horiz row"}`);return()=>r.h("div",{class:a.value},Te(t.default))}}),Fi={left:!0,right:!0,up:!0,down:!0,horizontal:!0,vertical:!0},ny=Object.keys(Fi);Fi.all=!0;function Do(e){const t={};for(const n of ny)e[n]===!0&&(t[n]=!0);return Object.keys(t).length===0?Fi:(t.horizontal===!0?t.left=t.right=!0:t.left===!0&&t.right===!0&&(t.horizontal=!0),t.vertical===!0?t.up=t.down=!0:t.up===!0&&t.down===!0&&(t.vertical=!0),t.horizontal===!0&&t.vertical===!0&&(t.all=!0),t)}var ry=["INPUT","TEXTAREA"];function $o(e,t){return t.event===void 0&&e.target!==void 0&&e.target.draggable!==!0&&typeof t.handler=="function"&&ry.includes(e.target.nodeName.toUpperCase())===!1&&(e.qClonedBy===void 0||e.qClonedBy.indexOf(t.uid)===-1)}function ay(e){const t=[.06,6,50];return typeof e=="string"&&e.length&&e.split(":").forEach((n,a)=>{const o=parseFloat(n);o&&(t[a]=o)}),t}var oy=sn({name:"touch-swipe",beforeMount(e,{value:t,arg:n,modifiers:a}){if(a.mouse!==!0&&He.has.touch!==!0)return;const o=a.mouseCapture===!0?"Capture":"",l={handler:t,sensitivity:ay(n),direction:Do(a),noop:wt,mouseStart(i){$o(i,l)&&ho(i)&&(mt(l,"temp",[[document,"mousemove","move",`notPassive${o}`],[document,"mouseup","end","notPassiveCapture"]]),l.start(i,!0))},touchStart(i){if($o(i,l)){const s=i.target;mt(l,"temp",[[s,"touchmove","move","notPassiveCapture"],[s,"touchcancel","end","notPassiveCapture"],[s,"touchend","end","notPassiveCapture"]]),l.start(i)}},start(i,s){He.is.firefox===!0&&Mr(e,!0);const u=zt(i);l.event={x:u.left,y:u.top,time:Date.now(),mouse:s===!0,dir:!1}},move(i){if(l.event===void 0)return;if(l.event.dir!==!1){Fe(i);return}const s=Date.now()-l.event.time;if(s===0)return;const u=zt(i),d=u.left-l.event.x,c=Math.abs(d),g=u.top-l.event.y,v=Math.abs(g);if(l.event.mouse!==!0){if(c<l.sensitivity[1]&&v<l.sensitivity[1]){l.end(i);return}}else if(window.getSelection().toString()!==""){l.end(i);return}else if(c<l.sensitivity[2]&&v<l.sensitivity[2])return;const h=c/s,f=v/s;l.direction.vertical===!0&&c<v&&c<100&&f>l.sensitivity[0]&&(l.event.dir=g<0?"up":"down"),l.direction.horizontal===!0&&c>v&&v<100&&h>l.sensitivity[0]&&(l.event.dir=d<0?"left":"right"),l.direction.up===!0&&c<v&&g<0&&c<100&&f>l.sensitivity[0]&&(l.event.dir="up"),l.direction.down===!0&&c<v&&g>0&&c<100&&f>l.sensitivity[0]&&(l.event.dir="down"),l.direction.left===!0&&c>v&&d<0&&v<100&&h>l.sensitivity[0]&&(l.event.dir="left"),l.direction.right===!0&&c>v&&d>0&&v<100&&h>l.sensitivity[0]&&(l.event.dir="right"),l.event.dir!==!1?(Fe(i),l.event.mouse===!0&&(document.body.classList.add("no-pointer-events--children"),document.body.classList.add("non-selectable"),dn(),l.styleCleanup=_=>{l.styleCleanup=void 0,document.body.classList.remove("non-selectable");const p=()=>{document.body.classList.remove("no-pointer-events--children")};_===!0?setTimeout(p,50):p()}),l.handler({evt:i,touch:l.event.mouse!==!0,mouse:l.event.mouse,direction:l.event.dir,duration:s,distance:{x:c,y:v}})):l.end(i)},end(i){l.event!==void 0&&(Dt(l,"temp"),He.is.firefox===!0&&Mr(e,!1),l.styleCleanup?.(!0),i!==void 0&&l.event.dir!==!1&&Fe(i),l.event=void 0)}};if(e.__qtouchswipe=l,a.mouse===!0){const i=a.mouseCapture===!0||a.mousecapture===!0?"Capture":"";mt(l,"main",[[e,"mousedown","mouseStart",`passive${i}`]])}He.has.touch===!0&&mt(l,"main",[[e,"touchstart","touchStart",`passive${a.capture===!0?"Capture":""}`],[e,"touchmove","noop","notPassiveCapture"]])},updated(e,t){const n=e.__qtouchswipe;n!==void 0&&(t.oldValue!==t.value&&(typeof t.value!="function"&&n.end(),n.handler=t.value),n.direction=Do(t.modifiers))},beforeUnmount(e){const t=e.__qtouchswipe;t!==void 0&&(Dt(t,"main"),Dt(t,"temp"),He.is.firefox===!0&&Mr(e,!1),t.styleCleanup?.(),delete e.__qtouchswipe)}});function wa(){let e=Object.create(null);return{getCache:(t,n)=>e[t]===void 0?e[t]=typeof n=="function"?n():n:e[t],setCache(t,n){e[t]=n},hasCache(t){return Object.hasOwnProperty.call(e,t)},clearCache(t){t!==void 0?delete e[t]:e=Object.create(null)}}}var zi={name:{required:!0},disable:Boolean},Jd={setup(e,{slots:t}){return()=>r.h("div",{class:"q-panel scroll",role:"tabpanel"},Te(t.default))}},Hi={modelValue:{required:!0},animated:Boolean,infinite:Boolean,swipeable:Boolean,vertical:Boolean,transitionPrev:String,transitionNext:String,transitionDuration:{type:[String,Number],default:300},keepAlive:Boolean,keepAliveInclude:[String,Array,RegExp],keepAliveExclude:[String,Array,RegExp],keepAliveMax:Number},ji=["update:modelValue","beforeTransition","transition"];function Ui(){const{props:e,emit:t,proxy:n}=r.getCurrentInstance(),{getCache:a}=wa(),{registerTimeout:o}=On();let l,i;const s=r.ref(null),u={value:null};function d(k){const A=e.vertical===!0?"up":"left";R((n.$q.lang.rtl===!0?-1:1)*(k.direction===A?1:-1))}const c=r.computed(()=>[[oy,d,void 0,{horizontal:e.vertical!==!0,vertical:e.vertical,mouse:!0}]]),g=r.computed(()=>e.transitionPrev||`slide-${e.vertical===!0?"down":"right"}`),v=r.computed(()=>e.transitionNext||`slide-${e.vertical===!0?"up":"left"}`),h=r.computed(()=>`--q-transition-duration: ${e.transitionDuration}ms`),f=r.computed(()=>typeof e.modelValue=="string"||typeof e.modelValue=="number"?e.modelValue:String(e.modelValue)),_=r.computed(()=>({include:e.keepAliveInclude,exclude:e.keepAliveExclude,max:e.keepAliveMax})),p=r.computed(()=>e.keepAliveInclude!==void 0||e.keepAliveExclude!==void 0);r.watch(()=>e.modelValue,(k,A)=>{const D=m(k)===!0?w(k):-1;i!==!0&&C(D===-1?0:D<w(A)?-1:1),u.value!==D&&(u.value=D,t("beforeTransition",k,A),o(()=>{t("transition",k,A)},e.transitionDuration))});function b(){R(1)}function S(){R(-1)}function y(k){t("update:modelValue",k)}function m(k){return k!=null&&k!==""}function w(k){return l.findIndex(A=>A.props.name===k&&A.props.disable!==""&&A.props.disable!==!0)}function E(){return l.filter(k=>k.props.disable!==""&&k.props.disable!==!0)}function C(k){const A=k!==0&&e.animated===!0&&u.value!==-1?"q-transition--"+(k===-1?g.value:v.value):null;s.value!==A&&(s.value=A)}function R(k,A=u.value){let D=A+k;for(;D!==-1&&D<l.length;){const z=l[D];if(z!==void 0&&z.props.disable!==""&&z.props.disable!==!0){C(k),i=!0,t("update:modelValue",z.props.name),setTimeout(()=>{i=!1});return}D+=k}e.infinite===!0&&l.length!==0&&A!==-1&&A!==l.length&&R(k,k===-1?l.length:-1)}function H(){const k=w(e.modelValue);return u.value!==k&&(u.value=k),!0}function q(){const k=m(e.modelValue)===!0&&H()&&l[u.value];return e.keepAlive===!0?[r.h(r.KeepAlive,_.value,[r.h(p.value===!0?a(f.value,()=>({...Jd,name:f.value})):Jd,{key:f.value,style:h.value},()=>k)])]:[r.h("div",{class:"q-panel scroll",style:h.value,key:f.value,role:"tabpanel"},[k])]}function T(){if(l.length!==0)return e.animated===!0?[r.h(r.Transition,{name:s.value},q)]:q()}function M(k){return l=Ci(Te(k.default,[])).filter(A=>A.props!==null&&A.props.slot===void 0&&m(A.props.name)===!0),l.length}function O(){return l}return Object.assign(n,{next:b,previous:S,goTo:y}),{panelIndex:u,panelDirectives:c,updatePanelsList:M,updatePanelIndex:H,getPanelContent:T,getEnabledPanels:E,getPanels:O,isValidPanelName:m,keepAliveProps:_,needsUniqueKeepAliveWrapper:p,goToPanelByOffset:R,goToPanel:y,nextPanel:b,previousPanel:S}}var Ca=0,Qi={fullscreen:Boolean,noRouteFullscreenExit:Boolean},Wi=["update:fullscreen","fullscreen"];function Ki(){const e=r.getCurrentInstance(),{props:t,emit:n,proxy:a}=e;let o,l;const i=r.ref(!1);ki(e)===!0&&r.watch(()=>a.$route.fullPath,()=>{t.noRouteFullscreenExit!==!0&&d()}),r.watch(()=>t.fullscreen,c=>{i.value!==c&&s()}),r.watch(i,c=>{n("update:fullscreen",c),n("fullscreen",c)});function s(){i.value===!0?d():u()}function u(){i.value!==!0&&(i.value=!0,l=a.$el.parentNode,l.replaceChild(o,a.$el),document.body.appendChild(a.$el),Ca++,Ca===1&&document.body.classList.add("q-body--fullscreen-mixin"))}function d(){i.value===!0&&(l.replaceChild(a.$el,o),i.value=!1,Ca=Math.max(0,Ca-1),Ca===0&&(document.body.classList.remove("q-body--fullscreen-mixin"),a.$el.scrollIntoView!==void 0&&setTimeout(()=>{a.$el.scrollIntoView()})))}return r.onBeforeMount(()=>{o=document.createElement("span")}),r.onMounted(()=>{t.fullscreen===!0&&u()}),r.onBeforeUnmount(d),Object.assign(a,{toggleFullscreen:s,setFullscreen:u,exitFullscreen:d}),{inFullscreen:i,toggleFullscreen:s}}var ly=["top","right","bottom","left"],iy=["regular","flat","outline","push","unelevated"];ie({name:"QCarousel",props:{...Ye,...Hi,...Qi,transitionPrev:{type:String,default:"fade"},transitionNext:{type:String,default:"fade"},height:String,padding:Boolean,controlColor:String,controlTextColor:String,controlType:{type:String,validator:e=>iy.includes(e),default:"flat"},autoplay:[Number,Boolean],arrows:Boolean,prevIcon:String,nextIcon:String,navigation:Boolean,navigationPosition:{type:String,validator:e=>ly.includes(e)},navigationIcon:String,navigationActiveIcon:String,thumbnails:Boolean},emits:[...Wi,...ji],setup(e,{slots:t}){const{proxy:{$q:n}}=r.getCurrentInstance(),a=Ge(e,n);let o=null,l;const{updatePanelsList:i,getPanelContent:s,panelDirectives:u,goToPanel:d,previousPanel:c,nextPanel:g,getEnabledPanels:v,panelIndex:h}=Ui(),{inFullscreen:f}=Ki(),_=r.computed(()=>f.value!==!0&&e.height!==void 0?{height:e.height}:{}),p=r.computed(()=>e.vertical===!0?"vertical":"horizontal"),b=r.computed(()=>e.navigationPosition||(e.vertical===!0?"right":"bottom")),S=r.computed(()=>`q-carousel q-panel-parent q-carousel--with${e.padding===!0?"":"out"}-padding`+(f.value===!0?" fullscreen":"")+(a.value===!0?" q-carousel--dark q-dark":"")+(e.arrows===!0?` q-carousel--arrows-${p.value}`:"")+(e.navigation===!0?` q-carousel--navigation-${b.value}`:"")),y=r.computed(()=>{const q=[e.prevIcon||n.iconSet.carousel[e.vertical===!0?"up":"left"],e.nextIcon||n.iconSet.carousel[e.vertical===!0?"down":"right"]];return e.vertical===!1&&n.lang.rtl===!0?q.reverse():q}),m=r.computed(()=>e.navigationIcon||n.iconSet.carousel.navigationIcon),w=r.computed(()=>e.navigationActiveIcon||m.value),E=r.computed(()=>({color:e.controlColor,textColor:e.controlTextColor,round:!0,[e.controlType]:!0,dense:!0}));r.watch(()=>e.modelValue,()=>{e.autoplay&&C()}),r.watch(()=>e.autoplay,q=>{q?C():o!==null&&(clearTimeout(o),o=null)});function C(){const q=ma(e.autoplay)===!0?Math.abs(e.autoplay):5e3;o!==null&&clearTimeout(o),o=setTimeout(()=>{o=null,q>=0?g():c()},q)}r.onMounted(()=>{e.autoplay&&C()}),r.onBeforeUnmount(()=>{o!==null&&clearTimeout(o)});function R(q,T){return r.h("div",{class:`q-carousel__control q-carousel__navigation no-wrap absolute flex q-carousel__navigation--${q} q-carousel__navigation--${b.value}`+(e.controlColor!==void 0?` text-${e.controlColor}`:"")},[r.h("div",{class:"q-carousel__navigation-inner flex flex-center no-wrap"},v().map(T))])}function H(){const q=[];if(e.navigation===!0){const T=t["navigation-icon"]!==void 0?t["navigation-icon"]:O=>r.h(Ze,{key:"nav"+O.name,class:`q-carousel__navigation-icon q-carousel__navigation-icon--${O.active===!0?"":"in"}active`,...O.btnProps,onClick:O.onClick}),M=l-1;q.push(R("buttons",(O,k)=>{const A=O.props.name,D=h.value===k;return T({index:k,maxIndex:M,name:A,active:D,btnProps:{icon:D===!0?w.value:m.value,size:"sm",...E.value},onClick:()=>{d(A)}})}))}else if(e.thumbnails===!0){const T=e.controlColor!==void 0?` text-${e.controlColor}`:"";q.push(R("thumbnails",M=>{const O=M.props;return r.h("img",{key:"tmb#"+O.name,class:`q-carousel__thumbnail q-carousel__thumbnail--${O.name===e.modelValue?"":"in"}active`+T,src:O.imgSrc||O["img-src"],onClick:()=>{d(O.name)}})}))}return e.arrows===!0&&h.value>=0&&((e.infinite===!0||h.value>0)&&q.push(r.h("div",{key:"prev",class:`q-carousel__control q-carousel__arrow q-carousel__prev-arrow q-carousel__prev-arrow--${p.value} absolute flex flex-center`},[r.h(Ze,{icon:y.value[0],...E.value,onClick:c})])),(e.infinite===!0||h.value<l-1)&&q.push(r.h("div",{key:"next",class:`q-carousel__control q-carousel__arrow q-carousel__next-arrow q-carousel__next-arrow--${p.value} absolute flex flex-center`},[r.h(Ze,{icon:y.value[1],...E.value,onClick:g})]))),ht(t.control,q)}return()=>(l=i(t),r.h("div",{class:S.value,style:_.value},[en("div",{class:"q-carousel__slides-container"},s(),"sl-cont",e.swipeable,()=>u.value)].concat(H())))}}),ie({name:"QCarouselSlide",props:{...zi,imgSrc:String},setup(e,{slots:t}){const n=r.computed(()=>e.imgSrc?{backgroundImage:`url("${e.imgSrc}")`}:{});return()=>r.h("div",{class:"q-carousel__slide",style:n.value},Te(t.default))}}),ie({name:"QCarouselControl",props:{position:{type:String,default:"bottom-right",validator:e=>["top-right","top-left","bottom-right","bottom-left","top","right","bottom","left"].includes(e)},offset:{type:Array,default:()=>[18,18],validator:e=>e.length===2}},setup(e,{slots:t}){const n=r.computed(()=>`q-carousel__control absolute absolute-${e.position}`),a=r.computed(()=>({margin:`${e.offset[1]}px ${e.offset[0]}px`}));return()=>r.h("div",{class:n.value,style:a.value},Te(t.default))}}),ie({name:"QChatMessage",props:{sent:Boolean,label:String,bgColor:String,textColor:String,name:String,avatar:String,text:Array,stamp:String,size:String,labelHtml:Boolean,nameHtml:Boolean,textHtml:Boolean,stampHtml:Boolean},setup(e,{slots:t}){const n=r.computed(()=>e.sent===!0?"sent":"received"),a=r.computed(()=>`q-message-text-content q-message-text-content--${n.value}`+(e.textColor!==void 0?` text-${e.textColor}`:"")),o=r.computed(()=>`q-message-text q-message-text--${n.value}`+(e.bgColor!==void 0?` text-${e.bgColor}`:"")),l=r.computed(()=>"q-message-container row items-end no-wrap"+(e.sent===!0?" reverse":"")),i=r.computed(()=>e.size!==void 0?`col-${e.size}`:""),s=r.computed(()=>({msg:e.textHtml===!0?"innerHTML":"textContent",stamp:e.stampHtml===!0?"innerHTML":"textContent",name:e.nameHtml===!0?"innerHTML":"textContent",label:e.labelHtml===!0?"innerHTML":"textContent"}));function u(c){return t.stamp!==void 0?[c,r.h("div",{class:"q-message-stamp"},t.stamp())]:e.stamp?[c,r.h("div",{class:"q-message-stamp",[s.value.stamp]:e.stamp})]:[c]}function d(c,g){const v=g===!0?c.length>1?h=>h:h=>r.h("div",[h]):h=>r.h("div",{[s.value.msg]:h});return c.map((h,f)=>r.h("div",{key:f,class:o.value},[r.h("div",{class:a.value},u(v(h)))]))}return()=>{const c=[];t.avatar!==void 0?c.push(t.avatar()):e.avatar!==void 0&&c.push(r.h("img",{class:`q-message-avatar q-message-avatar--${n.value}`,src:e.avatar,"aria-hidden":"true"}));const g=[];t.name!==void 0?g.push(r.h("div",{class:`q-message-name q-message-name--${n.value}`},t.name())):e.name!==void 0&&g.push(r.h("div",{class:`q-message-name q-message-name--${n.value}`,[s.value.name]:e.name})),t.default!==void 0?g.push(d(Ci(t.default()),!0)):e.text!==void 0&&g.push(d(e.text)),c.push(r.h("div",{class:i.value},g));const v=[];return t.label!==void 0?v.push(r.h("div",{class:"q-message-label"},t.label())):e.label!==void 0&&v.push(r.h("div",{class:"q-message-label",[s.value.label]:e.label})),v.push(r.h("div",{class:l.value},c)),r.h("div",{class:`q-message q-message-${n.value}`},v)}}});function Zd(e,t){const n=r.ref(null),a=r.computed(()=>e.disable===!0?null:r.h("span",{ref:n,class:"no-outline",tabindex:-1}));function o(l){const i=t.value;l?.qAvoidFocus!==!0&&(l?.type.indexOf("key")===0?document.activeElement!==i&&i?.contains(document.activeElement)===!0&&i.focus():n.value!==null&&(l===void 0||i?.contains(l.target)===!0)&&n.value.focus())}return{refocusTargetEl:a,refocusTarget:o}}var Vd={xs:30,sm:35,md:40,lg:50,xl:60},ef={...Ye,...Tn,...nn,modelValue:{required:!0,default:null},val:{},trueValue:{default:!0},falseValue:{default:!1},indeterminateValue:{default:null},checkedIcon:String,uncheckedIcon:String,indeterminateIcon:String,toggleOrder:{type:String,validator:e=>e==="tf"||e==="ft"},toggleIndeterminate:Boolean,label:String,leftLabel:Boolean,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},tf=["update:modelValue"];function nf(e,t){const{props:n,slots:a,emit:o,proxy:l}=r.getCurrentInstance(),{$q:i}=l,s=Ge(n,i),u=r.ref(null),{refocusTargetEl:d,refocusTarget:c}=Zd(n,u),g=qn(n,Vd),v=r.computed(()=>n.val!==void 0&&Array.isArray(n.modelValue)),h=r.computed(()=>{const M=r.toRaw(n.val);return v.value===!0?n.modelValue.findIndex(O=>r.toRaw(O)===M):-1}),f=r.computed(()=>v.value===!0?h.value!==-1:r.toRaw(n.modelValue)===r.toRaw(n.trueValue)),_=r.computed(()=>v.value===!0?h.value===-1:r.toRaw(n.modelValue)===r.toRaw(n.falseValue)),p=r.computed(()=>f.value===!1&&_.value===!1),b=r.computed(()=>n.disable===!0?-1:n.tabindex||0),S=r.computed(()=>`q-${e} cursor-pointer no-outline row inline no-wrap items-center`+(n.disable===!0?" disabled":"")+(s.value===!0?` q-${e}--dark`:"")+(n.dense===!0?` q-${e}--dense`:"")+(n.leftLabel===!0?" reverse":"")),y=r.computed(()=>{const M=f.value===!0?"truthy":_.value===!0?"falsy":"indet",O=n.color!==void 0&&(n.keepColor===!0||(e==="toggle"?f.value===!0:_.value!==!0))?` text-${n.color}`:"";return`q-${e}__inner relative-position non-selectable q-${e}__inner--${M}${O}`}),m=r.computed(()=>{const M={type:"checkbox"};return n.name!==void 0&&Object.assign(M,{".checked":f.value,"^checked":f.value===!0?"checked":void 0,name:n.name,value:v.value===!0?n.val:n.trueValue}),M}),w=zn(m),E=r.computed(()=>{const M={tabindex:b.value,role:e==="toggle"?"switch":"checkbox","aria-label":n.label,"aria-checked":p.value===!0?"mixed":f.value===!0?"true":"false"};return n.disable===!0&&(M["aria-disabled"]="true"),M});function C(M){M!==void 0&&(Fe(M),c(M)),n.disable!==!0&&o("update:modelValue",R(),M)}function R(){if(v.value===!0){if(f.value===!0){const M=n.modelValue.slice();return M.splice(h.value,1),M}return n.modelValue.concat([n.val])}if(f.value===!0){if(n.toggleOrder!=="ft"||n.toggleIndeterminate===!1)return n.falseValue}else if(_.value===!0){if(n.toggleOrder==="ft"||n.toggleIndeterminate===!1)return n.trueValue}else return n.toggleOrder!=="ft"?n.trueValue:n.falseValue;return n.indeterminateValue}function H(M){(M.keyCode===13||M.keyCode===32)&&Fe(M)}function q(M){(M.keyCode===13||M.keyCode===32)&&C(M)}const T=t(f,p);return Object.assign(l,{toggle:C}),()=>{const M=T();n.disable!==!0&&w(M,"unshift",` q-${e}__native absolute q-ma-none q-pa-none`);const O=[r.h("div",{class:y.value,style:g.value,"aria-hidden":"true"},M)];d.value!==null&&O.push(d.value);const k=n.label!==void 0?ht(a.default,[n.label]):Te(a.default);return k!==void 0&&O.push(r.h("div",{class:`q-${e}__label q-anchor--skip`},k)),r.h("div",{ref:u,class:S.value,...E.value,onClick:C,onKeydown:H,onKeyup:q},O)}}var sy=()=>r.h("div",{key:"svg",class:"q-checkbox__bg absolute"},[r.h("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24"},[r.h("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),r.h("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]),ka=ie({name:"QCheckbox",props:ef,emits:tf,setup(e){const t=sy();function n(a,o){const l=r.computed(()=>(a.value===!0?e.checkedIcon:o.value===!0?e.indeterminateIcon:e.uncheckedIcon)||null);return()=>l.value!==null?[r.h("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[r.h(Xe,{class:"q-checkbox__icon",name:l.value})])]:[t]}return nf("checkbox",n)}}),uy={xs:8,sm:10,md:14,lg:20,xl:24},rf=ie({name:"QChip",props:{...Ye,...Tn,dense:Boolean,icon:String,iconRight:String,iconRemove:String,iconSelected:String,label:[String,Number],color:String,textColor:String,modelValue:{type:Boolean,default:!0},selected:{type:Boolean,default:null},square:Boolean,outline:Boolean,clickable:Boolean,removable:Boolean,removeAriaLabel:String,tabindex:[String,Number],disable:Boolean,ripple:{type:[Boolean,Object],default:!0}},emits:["update:modelValue","update:selected","remove","click"],setup(e,{slots:t,emit:n}){const{proxy:{$q:a}}=r.getCurrentInstance(),o=Ge(e,a),l=qn(e,uy),i=r.computed(()=>e.selected===!0||e.icon!==void 0),s=r.computed(()=>e.selected===!0?e.iconSelected||a.iconSet.chip.selected:e.icon),u=r.computed(()=>e.iconRemove||a.iconSet.chip.remove),d=r.computed(()=>e.disable===!1&&(e.clickable===!0||e.selected!==null)),c=r.computed(()=>{const p=e.outline===!0&&e.color||e.textColor;return"q-chip row inline no-wrap items-center"+(e.outline===!1&&e.color!==void 0?` bg-${e.color}`:"")+(p?` text-${p} q-chip--colored`:"")+(e.disable===!0?" disabled":"")+(e.dense===!0?" q-chip--dense":"")+(e.outline===!0?" q-chip--outline":"")+(e.selected===!0?" q-chip--selected":"")+(d.value===!0?" q-chip--clickable cursor-pointer non-selectable q-hoverable":"")+(e.square===!0?" q-chip--square":"")+(o.value===!0?" q-chip--dark q-dark":"")}),g=r.computed(()=>{const p=e.disable===!0?{tabindex:-1,"aria-disabled":"true"}:{tabindex:e.tabindex||0},b={...p,role:"button","aria-hidden":"false","aria-label":e.removeAriaLabel||a.lang.label.remove};return{chip:p,remove:b}});function v(p){p.keyCode===13&&h(p)}function h(p){e.disable||(n("update:selected",!e.selected),n("click",p))}function f(p){(p.keyCode===void 0||p.keyCode===13)&&(Fe(p),e.disable===!1&&(n("update:modelValue",!1),n("remove")))}function _(){const p=[];d.value===!0&&p.push(r.h("div",{class:"q-focus-helper"})),i.value===!0&&p.push(r.h(Xe,{class:"q-chip__icon q-chip__icon--left",name:s.value}));const b=e.label!==void 0?[r.h("div",{class:"ellipsis"},[e.label])]:void 0;return p.push(r.h("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},pi(t.default,b))),e.iconRight&&p.push(r.h(Xe,{class:"q-chip__icon q-chip__icon--right",name:e.iconRight})),e.removable===!0&&p.push(r.h(Xe,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:u.value,...g.value.remove,onClick:f,onKeyup:f})),p}return()=>{if(e.modelValue===!1)return;const p={class:c.value,style:l.value};return d.value===!0&&Object.assign(p,g.value.chip,{onClick:h,onKeyup:v}),en("div",p,_(),"ripple",e.ripple!==!1&&e.disable!==!0,()=>[[So,e.ripple]])}}}),Yi={...Tn,min:{type:Number,default:0},max:{type:Number,default:100},color:String,centerColor:String,trackColor:String,fontSize:String,rounded:Boolean,thickness:{type:Number,default:.2,validator:e=>e>=0&&e<=1},angle:{type:Number,default:0},showValue:Boolean,reverse:Boolean,instantFeedback:Boolean},Gi=50,af=2*Gi,of=af*Math.PI,cy=Math.round(of*1e3)/1e3,lf=ie({name:"QCircularProgress",props:{...Yi,value:{type:Number,default:0},animationSpeed:{type:[String,Number],default:600},indeterminate:Boolean},setup(e,{slots:t}){const{proxy:{$q:n}}=r.getCurrentInstance(),a=qn(e),o=r.computed(()=>{const h=(n.lang.rtl===!0?-1:1)*e.angle;return{transform:e.reverse!==(n.lang.rtl===!0)?`scale3d(-1, 1, 1) rotate3d(0, 0, 1, ${-90-h}deg)`:`rotate3d(0, 0, 1, ${h-90}deg)`}}),l=r.computed(()=>e.instantFeedback!==!0&&e.indeterminate!==!0?{transition:`stroke-dashoffset ${e.animationSpeed}ms ease 0s, stroke ${e.animationSpeed}ms ease`}:""),i=r.computed(()=>af/(1-e.thickness/2)),s=r.computed(()=>`${i.value/2} ${i.value/2} ${i.value} ${i.value}`),u=r.computed(()=>at(e.value,e.min,e.max)),d=r.computed(()=>e.max-e.min),c=r.computed(()=>e.thickness/2*i.value),g=r.computed(()=>{const h=(e.max-u.value)/d.value,f=e.rounded===!0&&u.value<e.max&&h<.25?c.value/2*(1-h/.25):0;return of*h+f});function v({thickness:h,offset:f,color:_,cls:p,rounded:b}){return r.h("circle",{class:"q-circular-progress__"+p+(_!==void 0?` text-${_}`:""),style:l.value,fill:"transparent",stroke:"currentColor","stroke-width":h,"stroke-dasharray":cy,"stroke-dashoffset":f,"stroke-linecap":b,cx:i.value,cy:i.value,r:Gi})}return()=>{const h=[];e.centerColor!==void 0&&e.centerColor!=="transparent"&&h.push(r.h("circle",{class:`q-circular-progress__center text-${e.centerColor}`,fill:"currentColor",r:Gi-c.value/2,cx:i.value,cy:i.value})),e.trackColor!==void 0&&e.trackColor!=="transparent"&&h.push(v({cls:"track",thickness:c.value,offset:0,color:e.trackColor})),h.push(v({cls:"circle",thickness:c.value,offset:g.value,color:e.color,rounded:e.rounded===!0?"round":void 0}));const f=[r.h("svg",{class:"q-circular-progress__svg",style:o.value,viewBox:s.value,"aria-hidden":"true"},h)];return e.showValue===!0&&f.push(r.h("div",{class:"q-circular-progress__text absolute-full row flex-center content-center",style:{fontSize:e.fontSize}},t.default!==void 0?t.default():[r.h("div",u.value)])),r.h("div",{class:`q-circular-progress q-circular-progress--${e.indeterminate===!0?"in":""}determinate`,style:a.value,role:"progressbar","aria-valuemin":e.min,"aria-valuemax":e.max,"aria-valuenow":e.indeterminate===!0?void 0:u.value},pi(t.internal,f))}}});function Xi(e,t,n){const a=zt(e);let o,l=a.left-t.event.x,i=a.top-t.event.y,s=Math.abs(l),u=Math.abs(i);const d=t.direction;d.horizontal===!0&&d.vertical!==!0?o=l<0?"left":"right":d.horizontal!==!0&&d.vertical===!0?o=i<0?"up":"down":d.up===!0&&i<0?(o="up",s>u&&(d.left===!0&&l<0?o="left":d.right===!0&&l>0&&(o="right"))):d.down===!0&&i>0?(o="down",s>u&&(d.left===!0&&l<0?o="left":d.right===!0&&l>0&&(o="right"))):d.left===!0&&l<0?(o="left",s<u&&(d.up===!0&&i<0?o="up":d.down===!0&&i>0&&(o="down"))):d.right===!0&&l>0&&(o="right",s<u&&(d.up===!0&&i<0?o="up":d.down===!0&&i>0&&(o="down")));let c=!1;if(o===void 0&&n===!1){if(t.event.isFirst===!0||t.event.lastDir===void 0)return{};o=t.event.lastDir,c=!0,o==="left"||o==="right"?(a.left-=l,s=0,l=0):(a.top-=i,u=0,i=0)}return{synthetic:c,payload:{evt:e,touch:t.event.mouse!==!0,mouse:t.event.mouse===!0,position:a,direction:o,isFirst:t.event.isFirst,isFinal:n===!0,duration:Date.now()-t.event.time,distance:{x:s,y:u},offset:{x:l,y:i},delta:{x:a.left-t.event.lastX,y:a.top-t.event.lastY}}}}var dy=0,rn=sn({name:"touch-pan",beforeMount(e,{value:t,modifiers:n}){if(n.mouse!==!0&&He.has.touch!==!0)return;function a(l,i){n.mouse===!0&&i===!0?Fe(l):(n.stop===!0&&ft(l),n.prevent===!0&&Et(l))}const o={uid:"qvtp_"+dy++,handler:t,modifiers:n,direction:Do(n),noop:wt,mouseStart(l){$o(l,o)&&ho(l)&&(mt(o,"temp",[[document,"mousemove","move","notPassiveCapture"],[document,"mouseup","end","passiveCapture"]]),o.start(l,!0))},touchStart(l){if($o(l,o)){const i=l.target;mt(o,"temp",[[i,"touchmove","move","notPassiveCapture"],[i,"touchcancel","end","passiveCapture"],[i,"touchend","end","passiveCapture"]]),o.start(l)}},start(l,i){if(He.is.firefox===!0&&Mr(e,!0),o.lastEvt=l,i===!0||n.stop===!0){if(o.direction.all!==!0&&(i!==!0||o.modifiers.mouseAllDir!==!0&&o.modifiers.mousealldir!==!0)){const d=l.type.indexOf("mouse")!==-1?new MouseEvent(l.type,l):new TouchEvent(l.type,l);l.defaultPrevented===!0&&Et(d),l.cancelBubble===!0&&ft(d),Object.assign(d,{qKeyEvent:l.qKeyEvent,qClickOutside:l.qClickOutside,qAnchorHandled:l.qAnchorHandled,qClonedBy:l.qClonedBy===void 0?[o.uid]:l.qClonedBy.concat(o.uid)}),o.initialEvent={target:l.target,event:d}}ft(l)}const{left:s,top:u}=zt(l);o.event={x:s,y:u,time:Date.now(),mouse:i===!0,detected:!1,isFirst:!0,isFinal:!1,lastX:s,lastY:u}},move(l){if(o.event===void 0)return;const i=zt(l),s=i.left-o.event.x,u=i.top-o.event.y;if(s===0&&u===0)return;o.lastEvt=l;const d=o.event.mouse===!0,c=()=>{a(l,d);let h;n.preserveCursor!==!0&&n.preservecursor!==!0&&(h=document.documentElement.style.cursor||"",document.documentElement.style.cursor="grabbing"),d===!0&&document.body.classList.add("no-pointer-events--children"),document.body.classList.add("non-selectable"),dn(),o.styleCleanup=f=>{if(o.styleCleanup=void 0,h!==void 0&&(document.documentElement.style.cursor=h),document.body.classList.remove("non-selectable"),d===!0){const _=()=>{document.body.classList.remove("no-pointer-events--children")};f!==void 0?setTimeout(()=>{_(),f()},50):_()}else f!==void 0&&f()}};if(o.event.detected===!0){o.event.isFirst!==!0&&a(l,o.event.mouse);const{payload:h,synthetic:f}=Xi(l,o,!1);h!==void 0&&(o.handler(h)===!1?o.end(l):(o.styleCleanup===void 0&&o.event.isFirst===!0&&c(),o.event.lastX=h.position.left,o.event.lastY=h.position.top,o.event.lastDir=f===!0?void 0:h.direction,o.event.isFirst=!1));return}if(o.direction.all===!0||d===!0&&(o.modifiers.mouseAllDir===!0||o.modifiers.mousealldir===!0)){c(),o.event.detected=!0,o.move(l);return}const g=Math.abs(s),v=Math.abs(u);g!==v&&(o.direction.horizontal===!0&&g>v||o.direction.vertical===!0&&g<v||o.direction.up===!0&&g<v&&u<0||o.direction.down===!0&&g<v&&u>0||o.direction.left===!0&&g>v&&s<0||o.direction.right===!0&&g>v&&s>0?(o.event.detected=!0,o.move(l)):o.end(l,!0))},end(l,i){if(o.event!==void 0){if(Dt(o,"temp"),He.is.firefox===!0&&Mr(e,!1),i===!0)o.styleCleanup?.(),o.event.detected!==!0&&o.initialEvent!==void 0&&o.initialEvent.target.dispatchEvent(o.initialEvent.event);else if(o.event.detected===!0){o.event.isFirst===!0&&o.handler(Xi(l===void 0?o.lastEvt:l,o).payload);const{payload:s}=Xi(l===void 0?o.lastEvt:l,o,!0),u=()=>{o.handler(s)};o.styleCleanup!==void 0?o.styleCleanup(u):u()}o.event=void 0,o.initialEvent=void 0,o.lastEvt=void 0}}};if(e.__qtouchpan=o,n.mouse===!0){const l=n.mouseCapture===!0||n.mousecapture===!0?"Capture":"";mt(o,"main",[[e,"mousedown","mouseStart",`passive${l}`]])}He.has.touch===!0&&mt(o,"main",[[e,"touchstart","touchStart",`passive${n.capture===!0?"Capture":""}`],[e,"touchmove","noop","notPassiveCapture"]])},updated(e,t){const n=e.__qtouchpan;n!==void 0&&(t.oldValue!==t.value&&(typeof value!="function"&&n.end(),n.handler=t.value),n.direction=Do(t.modifiers))},beforeUnmount(e){const t=e.__qtouchpan;t!==void 0&&(t.event!==void 0&&t.end(),Dt(t,"main"),Dt(t,"temp"),He.is.firefox===!0&&Mr(e,!1),t.styleCleanup?.(),delete e.__qtouchpan)}}),sf="q-slider__marker-labels",fy=e=>({value:e}),vy=({marker:e})=>r.h("div",{key:e.value,style:e.style,class:e.classes},e.label),Ji=[34,37,40,33,39,38],uf={...Ye,...nn,min:{type:Number,default:0},max:{type:Number,default:100},innerMin:Number,innerMax:Number,step:{type:Number,default:1,validator:e=>e>=0},snap:Boolean,vertical:Boolean,reverse:Boolean,color:String,markerLabelsClass:String,label:Boolean,labelColor:String,labelTextColor:String,labelAlways:Boolean,switchLabelSide:Boolean,markers:[Boolean,Number],markerLabels:[Boolean,Array,Object,Function],switchMarkerLabelsSide:Boolean,trackImg:String,trackColor:String,innerTrackImg:String,innerTrackColor:String,selectionColor:String,selectionImg:String,thumbSize:{type:String,default:"20px"},trackSize:{type:String,default:"4px"},disable:Boolean,readonly:Boolean,dense:Boolean,tabindex:[String,Number],thumbColor:String,thumbPath:{type:String,default:"M 4, 10 a 6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"}},cf=["pan","update:modelValue","change"];function df({updateValue:e,updatePosition:t,getDragging:n,formAttrs:a}){const{props:o,emit:l,slots:i,proxy:{$q:s}}=r.getCurrentInstance(),u=Ge(o,s),d=zn(a),c=r.ref(!1),g=r.ref(!1),v=r.ref(!1),h=r.ref(!1),f=r.computed(()=>o.vertical===!0?"--v":"--h"),_=r.computed(()=>"-"+(o.switchLabelSide===!0?"switched":"standard")),p=r.computed(()=>o.vertical===!0?o.reverse===!0:o.reverse!==(s.lang.rtl===!0)),b=r.computed(()=>isNaN(o.innerMin)===!0||o.innerMin<o.min?o.min:o.innerMin),S=r.computed(()=>isNaN(o.innerMax)===!0||o.innerMax>o.max?o.max:o.innerMax),y=r.computed(()=>o.disable!==!0&&o.readonly!==!0&&b.value<S.value),m=r.computed(()=>{if(o.step===0)return de=>de;const V=(String(o.step).trim().split(".")[1]||"").length;return de=>parseFloat(de.toFixed(V))}),w=r.computed(()=>o.step===0?1:o.step),E=r.computed(()=>y.value===!0?o.tabindex||0:-1),C=r.computed(()=>o.max-o.min),R=r.computed(()=>S.value-b.value),H=r.computed(()=>_e(b.value)),q=r.computed(()=>_e(S.value)),T=r.computed(()=>o.vertical===!0?p.value===!0?"bottom":"top":p.value===!0?"right":"left"),M=r.computed(()=>o.vertical===!0?"height":"width"),O=r.computed(()=>o.vertical===!0?"width":"height"),k=r.computed(()=>o.vertical===!0?"vertical":"horizontal"),A=r.computed(()=>{const V={role:"slider","aria-valuemin":b.value,"aria-valuemax":S.value,"aria-orientation":k.value,"data-step":o.step};return o.disable===!0?V["aria-disabled"]="true":o.readonly===!0&&(V["aria-readonly"]="true"),V}),D=r.computed(()=>`q-slider q-slider${f.value} q-slider--${c.value===!0?"":"in"}active inline no-wrap `+(o.vertical===!0?"row":"column")+(o.disable===!0?" disabled":" q-slider--enabled"+(y.value===!0?" q-slider--editable":""))+(v.value==="both"?" q-slider--focus":"")+(o.label||o.labelAlways===!0?" q-slider--label":"")+(o.labelAlways===!0?" q-slider--label-always":"")+(u.value===!0?" q-slider--dark":"")+(o.dense===!0?" q-slider--dense q-slider--dense"+f.value:""));function z(V){const de="q-slider__"+V;return`${de} ${de}${f.value} ${de}${f.value}${_.value}`}function F(V){const de="q-slider__"+V;return`${de} ${de}${f.value}`}const Z=r.computed(()=>{const V=o.selectionColor||o.color;return"q-slider__selection absolute"+(V!==void 0?` text-${V}`:"")}),he=r.computed(()=>F("markers")+" absolute overflow-hidden"),$=r.computed(()=>F("track-container")),x=r.computed(()=>z("pin")),Y=r.computed(()=>z("label")),B=r.computed(()=>z("text-container")),le=r.computed(()=>z("marker-labels-container")+(o.markerLabelsClass!==void 0?` ${o.markerLabelsClass}`:"")),N=r.computed(()=>"q-slider__track relative-position no-outline"+(o.trackColor!==void 0?` bg-${o.trackColor}`:"")),U=r.computed(()=>{const V={[O.value]:o.trackSize};return o.trackImg!==void 0&&(V.backgroundImage=`url(${o.trackImg}) !important`),V}),ue=r.computed(()=>"q-slider__inner absolute"+(o.innerTrackColor!==void 0?` bg-${o.innerTrackColor}`:"")),W=r.computed(()=>{const V=q.value-H.value,de={[T.value]:`${100*H.value}%`,[M.value]:V===0?"2px":`${100*V}%`};return o.innerTrackImg!==void 0&&(de.backgroundImage=`url(${o.innerTrackImg}) !important`),de});function ve(V){const{min:de,max:xe,step:Be}=o;let Le=de+V*(xe-de);if(Be>0){const Ue=(Le-b.value)%Be;Le+=(Math.abs(Ue)>=Be/2?(Ue<0?-1:1)*Be:0)-Ue}return Le=m.value(Le),at(Le,b.value,S.value)}function _e(V){return C.value===0?0:(V-o.min)/C.value}function G(V,de){const xe=zt(V),Be=o.vertical===!0?at((xe.top-de.top)/de.height,0,1):at((xe.left-de.left)/de.width,0,1);return at(p.value===!0?1-Be:Be,H.value,q.value)}const ge=r.computed(()=>ma(o.markers)===!0?o.markers:w.value),pe=r.computed(()=>{const V=[],de=ge.value,xe=o.max;let Be=o.min;do V.push(Be),Be+=de;while(Be<xe);return V.push(xe),V}),we=r.computed(()=>{const V=` ${sf}${f.value}-`;return sf+`${V}${o.switchMarkerLabelsSide===!0?"switched":"standard"}${V}${p.value===!0?"rtl":"ltr"}`}),Ae=r.computed(()=>o.markerLabels===!1?null:I(o.markerLabels).map((V,de)=>({index:de,value:V.value,label:V.label||V.value,classes:we.value+(V.classes!==void 0?" "+V.classes:""),style:{...te(V.value),...V.style||{}}}))),fe=r.computed(()=>({markerList:Ae.value,markerMap:K.value,classes:we.value,getStyle:te})),L=r.computed(()=>{const V=R.value===0?"2px":100*ge.value/R.value;return{...W.value,backgroundSize:o.vertical===!0?`2px ${V}%`:`${V}% 2px`}});function I(V){if(V===!1)return null;if(V===!0)return pe.value.map(fy);if(typeof V=="function")return pe.value.map(xe=>{const Be=V(xe);return $t(Be)===!0?{...Be,value:xe}:{value:xe,label:Be}});const de=({value:xe})=>xe>=o.min&&xe<=o.max;return Array.isArray(V)===!0?V.map(xe=>$t(xe)===!0?xe:{value:xe}).filter(de):Object.keys(V).map(xe=>{const Be=V[xe],Le=Number(xe);return $t(Be)===!0?{...Be,value:Le}:{value:Le,label:Be}}).filter(de)}function te(V){return{[T.value]:`${100*(V-o.min)/C.value}%`}}const K=r.computed(()=>{if(o.markerLabels===!1)return null;const V={};return Ae.value.forEach(de=>{V[de.value]=de}),V});function X(){if(i["marker-label-group"]!==void 0)return i["marker-label-group"](fe.value);const V=i["marker-label"]||vy;return Ae.value.map(de=>V({marker:de,...fe.value}))}const se=r.computed(()=>[[rn,me,void 0,{[k.value]:!0,prevent:!0,stop:!0,mouse:!0,mouseAllDir:!0}]]);function me(V){V.isFinal===!0?(h.value!==void 0&&(t(V.evt),V.touch===!0&&e(!0),h.value=void 0,l("pan","end")),c.value=!1,v.value=!1):V.isFirst===!0?(h.value=n(V.evt),t(V.evt),e(),c.value=!0,l("pan","start")):(t(V.evt),e())}function J(){v.value=!1}function ae(V){t(V,n(V)),e(),g.value=!0,c.value=!0,document.addEventListener("mouseup",be,!0)}function be(){g.value=!1,c.value=!1,e(!0),J(),document.removeEventListener("mouseup",be,!0)}function ke(V){t(V,n(V)),e(!0)}function Qe(V){Ji.includes(V.keyCode)&&e(!0)}function je(V){if(o.vertical===!0)return null;const de=s.lang.rtl!==o.reverse?1-V:V;return{transform:`translateX(calc(${2*de-1} * ${o.thumbSize} / 2 + ${50-100*de}%))`}}function ee(V){const de=r.computed(()=>g.value===!1&&(v.value===V.focusValue||v.value==="both")?" q-slider--focus":""),xe=r.computed(()=>`q-slider__thumb q-slider__thumb${f.value} q-slider__thumb${f.value}-${p.value===!0?"rtl":"ltr"} absolute non-selectable`+de.value+(V.thumbColor.value!==void 0?` text-${V.thumbColor.value}`:"")),Be=r.computed(()=>({width:o.thumbSize,height:o.thumbSize,[T.value]:`${100*V.ratio.value}%`,zIndex:v.value===V.focusValue?2:void 0})),Le=r.computed(()=>V.labelColor.value!==void 0?` text-${V.labelColor.value}`:""),Ue=r.computed(()=>je(V.ratio.value)),nt=r.computed(()=>"q-slider__text"+(V.labelTextColor.value!==void 0?` text-${V.labelTextColor.value}`:""));return()=>{const pt=[r.h("svg",{class:"q-slider__thumb-shape absolute-full",viewBox:"0 0 20 20","aria-hidden":"true"},[r.h("path",{d:o.thumbPath})]),r.h("div",{class:"q-slider__focus-ring fit"})];return(o.label===!0||o.labelAlways===!0)&&(pt.push(r.h("div",{class:x.value+" absolute fit no-pointer-events"+Le.value},[r.h("div",{class:Y.value,style:{minWidth:o.thumbSize}},[r.h("div",{class:B.value,style:Ue.value},[r.h("span",{class:nt.value},V.label.value)])])])),o.name!==void 0&&o.disable!==!0&&d(pt,"push")),r.h("div",{class:xe.value,style:Be.value,...V.getNodeData()},pt)}}function ce(V,de,xe,Be){const Le=[];o.innerTrackColor!=="transparent"&&Le.push(r.h("div",{key:"inner",class:ue.value,style:W.value})),o.selectionColor!=="transparent"&&Le.push(r.h("div",{key:"selection",class:Z.value,style:V.value})),o.markers!==!1&&Le.push(r.h("div",{key:"marker",class:he.value,style:L.value})),Be(Le);const Ue=[en("div",{key:"trackC",class:$.value,tabindex:de.value,...xe.value},[r.h("div",{class:N.value,style:U.value},Le)],"slide",y.value,()=>se.value)];if(o.markerLabels!==!1){const nt=o.switchMarkerLabelsSide===!0?"unshift":"push";Ue[nt](r.h("div",{key:"markerL",class:le.value},X()))}return Ue}return r.onBeforeUnmount(()=>{document.removeEventListener("mouseup",be,!0)}),{state:{active:c,focus:v,preventFocus:g,dragging:h,editable:y,classes:D,tabindex:E,attributes:A,roundValueFn:m,keyStep:w,trackLen:C,innerMin:b,innerMinRatio:H,innerMax:S,innerMaxRatio:q,positionProp:T,sizeProp:M,isReversed:p},methods:{onActivate:ae,onMobileClick:ke,onBlur:J,onKeyup:Qe,getContent:ce,getThumbRenderFn:ee,convertRatioToModel:ve,convertModelToRatio:_e,getDraggingRatio:G}}}var my=()=>({}),Qr=ie({name:"QSlider",props:{...uf,modelValue:{required:!0,default:null,validator:e=>typeof e=="number"||e===null},labelValue:[String,Number]},emits:cf,setup(e,{emit:t}){const{proxy:{$q:n}}=r.getCurrentInstance(),{state:a,methods:o}=df({updateValue:f,updatePosition:p,getDragging:_,formAttrs:Sa(e)}),l=r.ref(null),i=r.ref(0),s=r.ref(0);function u(){s.value=e.modelValue===null?a.innerMin.value:at(e.modelValue,a.innerMin.value,a.innerMax.value)}r.watch(()=>`${e.modelValue}|${a.innerMin.value}|${a.innerMax.value}`,u),u();const d=r.computed(()=>o.convertModelToRatio(s.value)),c=r.computed(()=>a.active.value===!0?i.value:d.value),g=r.computed(()=>{const y={[a.positionProp.value]:`${100*a.innerMinRatio.value}%`,[a.sizeProp.value]:`${100*(c.value-a.innerMinRatio.value)}%`};return e.selectionImg!==void 0&&(y.backgroundImage=`url(${e.selectionImg}) !important`),y}),v=o.getThumbRenderFn({focusValue:!0,getNodeData:my,ratio:c,label:r.computed(()=>e.labelValue!==void 0?e.labelValue:s.value),thumbColor:r.computed(()=>e.thumbColor||e.color),labelColor:r.computed(()=>e.labelColor),labelTextColor:r.computed(()=>e.labelTextColor)}),h=r.computed(()=>a.editable.value!==!0?{}:n.platform.is.mobile===!0?{onClick:o.onMobileClick}:{onMousedown:o.onActivate,onFocus:b,onBlur:o.onBlur,onKeydown:S,onKeyup:o.onKeyup});function f(y){s.value!==e.modelValue&&t("update:modelValue",s.value),y===!0&&t("change",s.value)}function _(){return l.value.getBoundingClientRect()}function p(y,m=a.dragging.value){const w=o.getDraggingRatio(y,m);s.value=o.convertRatioToModel(w),i.value=e.snap!==!0||e.step===0?w:o.convertModelToRatio(s.value)}function b(){a.focus.value=!0}function S(y){if(Ji.includes(y.keyCode)===!1)return;Fe(y);const m=([34,33].includes(y.keyCode)?10:1)*a.keyStep.value,w=([34,37,40].includes(y.keyCode)?-1:1)*(a.isReversed.value===!0?-1:1)*(e.vertical===!0?-1:1)*m;s.value=at(a.roundValueFn.value(s.value+w),a.innerMin.value,a.innerMax.value),f()}return()=>{const y=o.getContent(g,a.tabindex,h,m=>{m.push(v())});return r.h("div",{ref:l,class:a.classes.value+(e.modelValue===null?" q-slider--no-value":""),...a.attributes.value,"aria-valuenow":e.modelValue},y)}}});function ff(){const e=r.ref(!Zt.value);return e.value===!1&&r.onMounted(()=>{e.value=!0}),{isHydrated:e}}var vf=typeof ResizeObserver<"u",mf=vf===!0?{}:{style:"display:block;position:absolute;top:0;left:0;right:0;bottom:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1;",url:"about:blank"},vr=ie({name:"QResizeObserver",props:{debounce:{type:[String,Number],default:100}},emits:["resize"],setup(e,{emit:t}){let n=null,a,o={width:-1,height:-1};function l(u){u===!0||e.debounce===0||e.debounce==="0"?i():n===null&&(n=setTimeout(i,e.debounce))}function i(){if(n!==null&&(clearTimeout(n),n=null),a){const{offsetWidth:u,offsetHeight:d}=a;(u!==o.width||d!==o.height)&&(o={width:u,height:d},t("resize",o))}}const{proxy:s}=r.getCurrentInstance();if(s.trigger=l,vf===!0){let u;const d=c=>{a=s.$el.parentNode,a?(u=new ResizeObserver(l),u.observe(a),i()):c!==!0&&r.nextTick(()=>{d(!0)})};return r.onMounted(()=>{d()}),r.onBeforeUnmount(()=>{n!==null&&clearTimeout(n),u!==void 0&&(u.disconnect!==void 0?u.disconnect():a&&u.unobserve(a))}),wt}else{let u=function(){n!==null&&(clearTimeout(n),n=null),g!==void 0&&(g.removeEventListener!==void 0&&g.removeEventListener("resize",l,lt.passive),g=void 0)},d=function(){u(),a?.contentDocument&&(g=a.contentDocument.defaultView,g.addEventListener("resize",l,lt.passive),i())};const{isHydrated:c}=ff();let g;return r.onMounted(()=>{r.nextTick(()=>{a=s.$el,a&&d()})}),r.onBeforeUnmount(u),()=>{if(c.value===!0)return r.h("object",{class:"q--avoid-card-border",style:mf.style,tabindex:-1,type:"text/html",data:mf.url,"aria-hidden":"true",onLoad:d})}}}}),xa=!1;if(!__QUASAR_SSR__){const e=document.createElement("div");e.setAttribute("dir","rtl"),Object.assign(e.style,{width:"1px",height:"1px",overflow:"auto"});const t=document.createElement("div");Object.assign(t.style,{width:"1000px",height:"1px"}),document.body.appendChild(e),e.appendChild(t),e.scrollLeft=-1e3,xa=e.scrollLeft>=0,e.remove()}function hy(e,t,n){const a=n===!0?["left","right"]:["top","bottom"];return`absolute-${t===!0?a[0]:a[1]}${e?` text-${e}`:""}`}var gy=["left","center","right","justify"],hf=ie({name:"QTabs",props:{modelValue:[Number,String],align:{type:String,default:"center",validator:e=>gy.includes(e)},breakpoint:{type:[String,Number],default:600},vertical:Boolean,shrink:Boolean,stretch:Boolean,activeClass:String,activeColor:String,activeBgColor:String,indicatorColor:String,leftIcon:String,rightIcon:String,outsideArrows:Boolean,mobileArrows:Boolean,switchIndicator:Boolean,narrowIndicator:Boolean,inlineLabel:Boolean,noCaps:Boolean,dense:Boolean,contentClass:String,"onUpdate:modelValue":[Function,Array]},setup(e,{slots:t,emit:n}){const{proxy:a}=r.getCurrentInstance(),{$q:o}=a,{registerTick:l}=Hr(),{registerTick:i}=Hr(),{registerTick:s}=Hr(),{registerTimeout:u,removeTimeout:d}=On(),{registerTimeout:c,removeTimeout:g}=On(),v=r.ref(null),h=r.ref(null),f=r.ref(e.modelValue),_=r.ref(!1),p=r.ref(!0),b=r.ref(!1),S=r.ref(!1),y=[],m=r.ref(0),w=r.ref(!1);let E=null,C=null,R;const H=r.computed(()=>({activeClass:e.activeClass,activeColor:e.activeColor,activeBgColor:e.activeBgColor,indicatorClass:hy(e.indicatorColor,e.switchIndicator,e.vertical),narrowIndicator:e.narrowIndicator,inlineLabel:e.inlineLabel,noCaps:e.noCaps})),q=r.computed(()=>{const X=m.value,se=f.value;for(let me=0;me<X;me++)if(y[me].name.value===se)return!0;return!1}),T=r.computed(()=>`q-tabs__content--align-${_.value===!0?"left":S.value===!0?"justify":e.align}`),M=r.computed(()=>`q-tabs row no-wrap items-center q-tabs--${_.value===!0?"":"not-"}scrollable q-tabs--${e.vertical===!0?"vertical":"horizontal"} q-tabs__arrows--${e.outsideArrows===!0?"outside":"inside"} q-tabs--mobile-with${e.mobileArrows===!0?"":"out"}-arrows`+(e.dense===!0?" q-tabs--dense":"")+(e.shrink===!0?" col-shrink":"")+(e.stretch===!0?" self-stretch":"")),O=r.computed(()=>"q-tabs__content scroll--mobile row no-wrap items-center self-stretch hide-scrollbar relative-position "+T.value+(e.contentClass!==void 0?` ${e.contentClass}`:"")),k=r.computed(()=>e.vertical===!0?{container:"height",content:"offsetHeight",scroll:"scrollHeight"}:{container:"width",content:"offsetWidth",scroll:"scrollWidth"}),A=r.computed(()=>e.vertical!==!0&&o.lang.rtl===!0),D=r.computed(()=>xa===!1&&A.value===!0);r.watch(A,x),r.watch(()=>e.modelValue,X=>{z({name:X,setCurrent:!0,skipEmit:!0})}),r.watch(()=>e.outsideArrows,F);function z({name:X,setCurrent:se,skipEmit:me}){f.value!==X&&(me!==!0&&e["onUpdate:modelValue"]!==void 0&&n("update:modelValue",X),(se===!0||e["onUpdate:modelValue"]===void 0)&&(he(f.value,X),f.value=X))}function F(){l(()=>{v.value&&Z({width:v.value.offsetWidth,height:v.value.offsetHeight})})}function Z(X){if(k.value===void 0||h.value===null)return;const se=X[k.value.container],me=Math.min(h.value[k.value.scroll],Array.prototype.reduce.call(h.value.children,(ae,be)=>ae+(be[k.value.content]||0),0)),J=se>0&&me>se;_.value=J,J===!0&&i(x),S.value=se<parseInt(e.breakpoint,10)}function he(X,se){const me=X!=null&&X!==""?y.find(ae=>ae.name.value===X):null,J=se!=null&&se!==""?y.find(ae=>ae.name.value===se):null;if(K===!0)K=!1;else if(me&&J){const ae=me.tabIndicatorRef.value,be=J.tabIndicatorRef.value;E!==null&&(clearTimeout(E),E=null),ae.style.transition="none",ae.style.transform="none",be.style.transition="none",be.style.transform="none";const ke=ae.getBoundingClientRect(),Qe=be.getBoundingClientRect();be.style.transform=e.vertical===!0?`translate3d(0,${ke.top-Qe.top}px,0) scale3d(1,${Qe.height?ke.height/Qe.height:1},1)`:`translate3d(${ke.left-Qe.left}px,0,0) scale3d(${Qe.width?ke.width/Qe.width:1},1,1)`,s(()=>{E=setTimeout(()=>{E=null,be.style.transition="transform .25s cubic-bezier(.4, 0, .2, 1)",be.style.transform="none"},70)})}J&&_.value===!0&&$(J.rootRef.value)}function $(X){const{left:se,width:me,top:J,height:ae}=h.value.getBoundingClientRect(),be=X.getBoundingClientRect();let ke=e.vertical===!0?be.top-J:be.left-se;if(ke<0){h.value[e.vertical===!0?"scrollTop":"scrollLeft"]+=Math.floor(ke),x();return}ke+=e.vertical===!0?be.height-ae:be.width-me,ke>0&&(h.value[e.vertical===!0?"scrollTop":"scrollLeft"]+=Math.ceil(ke),x())}function x(){const X=h.value;if(X===null)return;const se=X.getBoundingClientRect(),me=e.vertical===!0?X.scrollTop:Math.abs(X.scrollLeft);A.value===!0?(p.value=Math.ceil(me+se.width)<X.scrollWidth-1,b.value=me>0):(p.value=me>0,b.value=e.vertical===!0?Math.ceil(me+se.height)<X.scrollHeight:Math.ceil(me+se.width)<X.scrollWidth)}function Y(X){C!==null&&clearInterval(C),C=setInterval(()=>{W(X)===!0&&N()},5)}function B(){Y(D.value===!0?Number.MAX_SAFE_INTEGER:0)}function le(){Y(D.value===!0?0:Number.MAX_SAFE_INTEGER)}function N(){C!==null&&(clearInterval(C),C=null)}function U(X,se){const me=Array.prototype.filter.call(h.value.children,Qe=>Qe===se||Qe.matches&&Qe.matches(".q-tab.q-focusable")===!0),J=me.length;if(J===0)return;if(X===36)return $(me[0]),me[0].focus(),!0;if(X===35)return $(me[J-1]),me[J-1].focus(),!0;const ae=X===(e.vertical===!0?38:37),be=X===(e.vertical===!0?40:39),ke=ae===!0?-1:be===!0?1:void 0;if(ke!==void 0){const Qe=A.value===!0?-1:1,je=me.indexOf(se)+ke*Qe;return je>=0&&je<J&&($(me[je]),me[je].focus({preventScroll:!0})),!0}}const ue=r.computed(()=>D.value===!0?{get:X=>Math.abs(X.scrollLeft),set:(X,se)=>{X.scrollLeft=-se}}:e.vertical===!0?{get:X=>X.scrollTop,set:(X,se)=>{X.scrollTop=se}}:{get:X=>X.scrollLeft,set:(X,se)=>{X.scrollLeft=se}});function W(X){const se=h.value,{get:me,set:J}=ue.value;let ae=!1,be=me(se);const ke=X<be?-1:1;return be+=ke*5,be<0?(ae=!0,be=0):(ke===-1&&be<=X||ke===1&&be>=X)&&(ae=!0,be=X),J(se,be),x(),ae}function ve(X,se){for(const me in X)if(X[me]!==se[me])return!1;return!0}function _e(){let X=null,se={matchedLen:0,queryDiff:9999,hrefLen:0};const me=y.filter(ke=>ke.routeData?.hasRouterLink.value===!0),{hash:J,query:ae}=a.$route,be=Object.keys(ae).length;for(const ke of me){const Qe=ke.routeData.exact.value===!0;if(ke.routeData[Qe===!0?"linkIsExactActive":"linkIsActive"].value!==!0)continue;const{hash:je,query:ee,matched:ce,href:V}=ke.routeData.resolvedLink.value,de=Object.keys(ee).length;if(Qe===!0){if(je!==J||de!==be||ve(ae,ee)===!1)continue;X=ke.name.value;break}if(je!==""&&je!==J||de!==0&&ve(ee,ae)===!1)continue;const xe={matchedLen:ce.length,queryDiff:be-de,hrefLen:V.length-je.length};if(xe.matchedLen>se.matchedLen){X=ke.name.value,se=xe;continue}else if(xe.matchedLen!==se.matchedLen)continue;if(xe.queryDiff<se.queryDiff)X=ke.name.value,se=xe;else if(xe.queryDiff!==se.queryDiff)continue;xe.hrefLen>se.hrefLen&&(X=ke.name.value,se=xe)}if(X===null&&y.some(ke=>ke.routeData===void 0&&ke.name.value===f.value)===!0){K=!1;return}z({name:X,setCurrent:!0})}function G(X){if(d(),w.value!==!0&&v.value!==null&&X.target&&typeof X.target.closest=="function"){const se=X.target.closest(".q-tab");se&&v.value.contains(se)===!0&&(w.value=!0,_.value===!0&&$(se))}}function ge(){u(()=>{w.value=!1},30)}function pe(){L.avoidRouteWatcher===!1?c(_e):g()}function we(){if(R===void 0){const X=r.watch(()=>a.$route.fullPath,pe);R=()=>{X(),R=void 0}}}function Ae(X){y.push(X),m.value++,F(),X.routeData===void 0||a.$route===void 0?c(()=>{if(_.value===!0){const se=f.value,me=se!=null&&se!==""?y.find(J=>J.name.value===se):null;me&&$(me.rootRef.value)}}):(we(),X.routeData.hasRouterLink.value===!0&&pe())}function fe(X){y.splice(y.indexOf(X),1),m.value--,F(),R!==void 0&&X.routeData!==void 0&&(y.every(se=>se.routeData===void 0)===!0&&R(),pe())}const L={currentModel:f,tabProps:H,hasFocus:w,hasActiveTab:q,registerTab:Ae,unregisterTab:fe,verifyRouteModel:pe,updateModel:z,onKbdNavigate:U,avoidRouteWatcher:!1};r.provide(ld,L);function I(){E!==null&&clearTimeout(E),N(),R?.()}let te,K;return r.onBeforeUnmount(I),r.onDeactivated(()=>{te=R!==void 0,I()}),r.onActivated(()=>{te===!0&&(we(),K=!0,pe()),F()}),()=>r.h("div",{ref:v,class:M.value,role:"tablist",onFocusin:G,onFocusout:ge},[r.h(vr,{onResize:Z}),r.h("div",{ref:h,class:O.value,onScroll:x},Te(t.default)),r.h(Xe,{class:"q-tabs__arrow q-tabs__arrow--left absolute q-tab__icon"+(p.value===!0?"":" q-tabs__arrow--faded"),name:e.leftIcon||o.iconSet.tabs[e.vertical===!0?"up":"left"],onMousedownPassive:B,onTouchstartPassive:B,onMouseupPassive:N,onMouseleavePassive:N,onTouchendPassive:N}),r.h(Xe,{class:"q-tabs__arrow q-tabs__arrow--right absolute q-tab__icon"+(b.value===!0?"":" q-tabs__arrow--faded"),name:e.rightIcon||o.iconSet.tabs[e.vertical===!0?"down":"right"],onMousedownPassive:le,onTouchstartPassive:le,onMouseupPassive:N,onMouseleavePassive:N,onTouchendPassive:N})])}}),by=0,gf=["click","keydown"],bf={icon:String,label:[Number,String],alert:[Boolean,String],alertIcon:String,name:{type:[Number,String],default:()=>`t_${by++}`},noCaps:Boolean,tabindex:[String,Number],disable:Boolean,contentClass:String,ripple:{type:[Boolean,Object],default:!0}};function pf(e,t,n,a){const o=r.inject(ld,et);if(o===et)return console.error("QTab/QRouteTab component needs to be child of QTabs"),et;const{proxy:l}=r.getCurrentInstance(),i=r.ref(null),s=r.ref(null),u=r.ref(null),d=r.computed(()=>e.disable===!0||e.ripple===!1?!1:Object.assign({keyCodes:[13,32],early:!0},e.ripple===!0?{}:e.ripple)),c=r.computed(()=>o.currentModel.value===e.name),g=r.computed(()=>"q-tab relative-position self-stretch flex flex-center text-center"+(c.value===!0?" q-tab--active"+(o.tabProps.value.activeClass?" "+o.tabProps.value.activeClass:"")+(o.tabProps.value.activeColor?` text-${o.tabProps.value.activeColor}`:"")+(o.tabProps.value.activeBgColor?` bg-${o.tabProps.value.activeBgColor}`:""):" q-tab--inactive")+(e.icon&&e.label&&o.tabProps.value.inlineLabel===!1?" q-tab--full":"")+(e.noCaps===!0||o.tabProps.value.noCaps===!0?" q-tab--no-caps":"")+(e.disable===!0?" disabled":" q-focusable q-hoverable cursor-pointer")+(a!==void 0?a.linkClass.value:"")),v=r.computed(()=>"q-tab__content self-stretch flex-center relative-position q-anchor--skip non-selectable "+(o.tabProps.value.inlineLabel===!0?"row no-wrap q-tab__content--inline":"column")+(e.contentClass!==void 0?` ${e.contentClass}`:"")),h=r.computed(()=>e.disable===!0||o.hasFocus.value===!0||c.value===!1&&o.hasActiveTab.value===!0?-1:e.tabindex||0);function f(y,m){if(m!==!0&&y?.qAvoidFocus!==!0&&i.value?.focus(),e.disable===!0){a?.hasRouterLink.value===!0&&Fe(y);return}if(a===void 0){o.updateModel({name:e.name}),n("click",y);return}if(a.hasRouterLink.value===!0){const w=(E={})=>{let C;const R=E.to===void 0||un(E.to,e.to)===!0?o.avoidRouteWatcher=_a():null;return a.navigateToRouterLink(y,{...E,returnRouterError:!0}).catch(H=>{C=H}).then(H=>{if(R===o.avoidRouteWatcher&&(o.avoidRouteWatcher=!1,C===void 0&&(H===void 0||H.message?.startsWith("Avoided redundant navigation")===!0)&&o.updateModel({name:e.name})),E.returnRouterError===!0)return C!==void 0?Promise.reject(C):H})};n("click",y,w),y.defaultPrevented!==!0&&w();return}n("click",y)}function _(y){Vt(y,[13,32])?f(y,!0):rr(y)!==!0&&y.keyCode>=35&&y.keyCode<=40&&y.altKey!==!0&&y.metaKey!==!0&&o.onKbdNavigate(y.keyCode,l.$el)===!0&&Fe(y),n("keydown",y)}function p(){const y=o.tabProps.value.narrowIndicator,m=[],w=r.h("div",{ref:u,class:["q-tab__indicator",o.tabProps.value.indicatorClass]});e.icon!==void 0&&m.push(r.h(Xe,{class:"q-tab__icon",name:e.icon})),e.label!==void 0&&m.push(r.h("div",{class:"q-tab__label"},e.label)),e.alert!==!1&&m.push(e.alertIcon!==void 0?r.h(Xe,{class:"q-tab__alert-icon",color:e.alert!==!0?e.alert:void 0,name:e.alertIcon}):r.h("div",{class:"q-tab__alert"+(e.alert!==!0?` text-${e.alert}`:"")})),y===!0&&m.push(w);const E=[r.h("div",{class:"q-focus-helper",tabindex:-1,ref:i}),r.h("div",{class:v.value},ht(t.default,m))];return y===!1&&E.push(w),E}const b={name:r.computed(()=>e.name),rootRef:s,tabIndicatorRef:u,routeData:a};r.onBeforeUnmount(()=>{o.unregisterTab(b)}),r.onMounted(()=>{o.registerTab(b)});function S(y,m){const w={ref:s,class:g.value,tabindex:h.value,role:"tab","aria-selected":c.value===!0?"true":"false","aria-disabled":e.disable===!0?"true":void 0,onClick:f,onKeydown:_,...m};return r.withDirectives(r.h(y,w,p()),[[So,d.value]])}return{renderTab:S,$tabs:o}}var Ea=ie({name:"QTab",props:bf,emits:gf,setup(e,{slots:t,emit:n}){const{renderTab:a}=pf(e,t,n);return()=>a("div")}}),py=ie({name:"QTabPanels",props:{...Hi,...Ye},emits:ji,setup(e,{slots:t}){const n=r.getCurrentInstance(),a=Ge(e,n.proxy.$q),{updatePanelsList:o,getPanelContent:l,panelDirectives:i}=Ui(),s=r.computed(()=>"q-tab-panels q-panel-parent"+(a.value===!0?" q-tab-panels--dark q-dark":""));return()=>(o(t),en("div",{class:s.value},l(),"pan",e.swipeable,()=>i.value))}}),Zi=ie({name:"QTabPanel",props:zi,setup(e,{slots:t}){return()=>r.h("div",{class:"q-tab-panel",role:"tabpanel"},Te(t.default))}}),yf=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,_f=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,Sf=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,Bo=/^rgb\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5])\)$/,Fo=/^rgba\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),(0|0\.[0-9]+[1-9]|0\.[1-9]+|1)\)$/,zo={date:e=>/^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(e),time:e=>/^([0-1]?\d|2[0-3]):[0-5]\d$/.test(e),fulltime:e=>/^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/.test(e),timeOrFulltime:e=>/^([0-1]?\d|2[0-3]):[0-5]\d(:[0-5]\d)?$/.test(e),email:e=>/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e),hexColor:e=>yf.test(e),hexaColor:e=>_f.test(e),hexOrHexaColor:e=>Sf.test(e),rgbColor:e=>Bo.test(e),rgbaColor:e=>Fo.test(e),rgbOrRgbaColor:e=>Bo.test(e)||Fo.test(e),hexOrRgbColor:e=>yf.test(e)||Bo.test(e),hexaOrRgbaColor:e=>_f.test(e)||Fo.test(e),anyColor:e=>Sf.test(e)||Bo.test(e)||Fo.test(e)},yy=/^rgb(a)?\((\d{1,3}),(\d{1,3}),(\d{1,3}),?([01]?\.?\d*?)?\)$/;function wf({r:e,g:t,b:n,a}){const o=a!==void 0;if(e=Math.round(e),t=Math.round(t),n=Math.round(n),e>255||t>255||n>255||o&&a>100)throw new TypeError("Expected 3 numbers below 256 (and optionally one below 100)");return a=o?(Math.round(255*a/100)|256).toString(16).slice(1):"","#"+(n|t<<8|e<<16|1<<24).toString(16).slice(1)+a}function Cf({r:e,g:t,b:n,a}){return`rgb${a!==void 0?"a":""}(${e},${t},${n}${a!==void 0?","+a/100:""})`}function kf(e){if(typeof e!="string")throw new TypeError("Expected a string");e=e.replace(/^#/,""),e.length===3?e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]:e.length===4&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]);const t=parseInt(e,16);return e.length>6?{r:t>>24&255,g:t>>16&255,b:t>>8&255,a:Math.round((t&255)/2.55)}:{r:t>>16,g:t>>8&255,b:t&255}}function xf({h:e,s:t,v:n,a}){let o,l,i;t=t/100,n=n/100,e=e/360;const s=Math.floor(e*6),u=e*6-s,d=n*(1-t),c=n*(1-u*t),g=n*(1-(1-u)*t);switch(s%6){case 0:o=n,l=g,i=d;break;case 1:o=c,l=n,i=d;break;case 2:o=d,l=n,i=g;break;case 3:o=d,l=c,i=n;break;case 4:o=g,l=d,i=n;break;case 5:o=n,l=d,i=c;break}return{r:Math.round(o*255),g:Math.round(l*255),b:Math.round(i*255),a}}function Vi({r:e,g:t,b:n,a}){const o=Math.max(e,t,n),l=Math.min(e,t,n),i=o-l,s=o===0?0:i/o,u=o/255;let d;switch(o){case l:d=0;break;case e:d=t-n+i*(t<n?6:0),d/=6*i;break;case t:d=n-e+i*2,d/=6*i;break;case n:d=e-t+i*4,d/=6*i;break}return{h:Math.round(d*360),s:Math.round(s*100),v:Math.round(u*100),a}}function Ef(e){if(typeof e!="string")throw new TypeError("Expected a string");const t=e.replace(/ /g,""),n=yy.exec(t);if(n===null)return kf(t);const a={r:Math.min(255,parseInt(n[2],10)),g:Math.min(255,parseInt(n[3],10)),b:Math.min(255,parseInt(n[4],10))};if(n[1]){const o=parseFloat(n[5]);a.a=Math.min(1,isNaN(o)===!0?1:o)*100}return a}function _y(e){if(typeof e!="string"&&(!e||e.r===void 0))throw new TypeError("Expected a string or a {r, g, b} object as color");const t=typeof e=="string"?Ef(e):e,n=t.r/255,a=t.g/255,o=t.b/255,l=n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4),i=a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4),s=o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4);return .2126*l+.7152*i+.0722*s}var Sy=["rgb(255,204,204)","rgb(255,230,204)","rgb(255,255,204)","rgb(204,255,204)","rgb(204,255,230)","rgb(204,255,255)","rgb(204,230,255)","rgb(204,204,255)","rgb(230,204,255)","rgb(255,204,255)","rgb(255,153,153)","rgb(255,204,153)","rgb(255,255,153)","rgb(153,255,153)","rgb(153,255,204)","rgb(153,255,255)","rgb(153,204,255)","rgb(153,153,255)","rgb(204,153,255)","rgb(255,153,255)","rgb(255,102,102)","rgb(255,179,102)","rgb(255,255,102)","rgb(102,255,102)","rgb(102,255,179)","rgb(102,255,255)","rgb(102,179,255)","rgb(102,102,255)","rgb(179,102,255)","rgb(255,102,255)","rgb(255,51,51)","rgb(255,153,51)","rgb(255,255,51)","rgb(51,255,51)","rgb(51,255,153)","rgb(51,255,255)","rgb(51,153,255)","rgb(51,51,255)","rgb(153,51,255)","rgb(255,51,255)","rgb(255,0,0)","rgb(255,128,0)","rgb(255,255,0)","rgb(0,255,0)","rgb(0,255,128)","rgb(0,255,255)","rgb(0,128,255)","rgb(0,0,255)","rgb(128,0,255)","rgb(255,0,255)","rgb(245,0,0)","rgb(245,123,0)","rgb(245,245,0)","rgb(0,245,0)","rgb(0,245,123)","rgb(0,245,245)","rgb(0,123,245)","rgb(0,0,245)","rgb(123,0,245)","rgb(245,0,245)","rgb(214,0,0)","rgb(214,108,0)","rgb(214,214,0)","rgb(0,214,0)","rgb(0,214,108)","rgb(0,214,214)","rgb(0,108,214)","rgb(0,0,214)","rgb(108,0,214)","rgb(214,0,214)","rgb(163,0,0)","rgb(163,82,0)","rgb(163,163,0)","rgb(0,163,0)","rgb(0,163,82)","rgb(0,163,163)","rgb(0,82,163)","rgb(0,0,163)","rgb(82,0,163)","rgb(163,0,163)","rgb(92,0,0)","rgb(92,46,0)","rgb(92,92,0)","rgb(0,92,0)","rgb(0,92,46)","rgb(0,92,92)","rgb(0,46,92)","rgb(0,0,92)","rgb(46,0,92)","rgb(92,0,92)","rgb(255,255,255)","rgb(205,205,205)","rgb(178,178,178)","rgb(153,153,153)","rgb(127,127,127)","rgb(102,102,102)","rgb(76,76,76)","rgb(51,51,51)","rgb(25,25,25)","rgb(0,0,0)"],Tf="M5 5 h10 v10 h-10 v-10 z",wy="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAH0lEQVQoU2NkYGAwZkAFZ5G5jPRRgOYEVDeB3EBjBQBOZwTVugIGyAAAAABJRU5ErkJggg==";ie({name:"QColor",props:{...Ye,...nn,modelValue:String,defaultValue:String,defaultView:{type:String,default:"spectrum",validator:e=>["spectrum","tune","palette"].includes(e)},formatModel:{type:String,default:"auto",validator:e=>["auto","hex","rgb","hexa","rgba"].includes(e)},palette:Array,noHeader:Boolean,noHeaderTabs:Boolean,noFooter:Boolean,square:Boolean,flat:Boolean,bordered:Boolean,disable:Boolean,readonly:Boolean},emits:["update:modelValue","change"],setup(e,{emit:t}){const{proxy:n}=r.getCurrentInstance(),{$q:a}=n,o=Ge(e,a),{getCache:l}=wa(),i=r.ref(null),s=r.ref(null),u=r.computed(()=>e.formatModel==="auto"?null:e.formatModel.indexOf("hex")!==-1),d=r.computed(()=>e.formatModel==="auto"?null:e.formatModel.indexOf("a")!==-1),c=r.ref(e.formatModel==="auto"?e.modelValue===void 0||e.modelValue===null||e.modelValue===""||e.modelValue.startsWith("#")?"hex":"rgb":e.formatModel.startsWith("hex")?"hex":"rgb"),g=r.ref(e.defaultView),v=r.ref(M(e.modelValue||e.defaultValue)),h=r.computed(()=>e.disable!==!0&&e.readonly!==!0),f=r.computed(()=>e.modelValue===void 0||e.modelValue===null||e.modelValue===""||e.modelValue.startsWith("#")),_=r.computed(()=>u.value!==null?u.value:f.value),p=r.computed(()=>({type:"hidden",name:e.name,value:v.value[_.value===!0?"hex":"rgb"]})),b=zn(p),S=r.computed(()=>d.value!==null?d.value:v.value.a!==void 0),y=r.computed(()=>({backgroundColor:v.value.rgb||"#000"})),m=r.computed(()=>`q-color-picker__header-content q-color-picker__header-content--${(v.value.a!==void 0&&v.value.a<65?!0:_y(v.value)>.4)?"light":"dark"}`),w=r.computed(()=>({background:`hsl(${v.value.h},100%,50%)`})),E=r.computed(()=>({top:`${100-v.value.v}%`,[a.lang.rtl===!0?"right":"left"]:`${v.value.s}%`})),C=r.computed(()=>e.palette!==void 0&&e.palette.length!==0?e.palette:Sy),R=r.computed(()=>"q-color-picker"+(e.bordered===!0?" q-color-picker--bordered":"")+(e.square===!0?" q-color-picker--square no-border-radius":"")+(e.flat===!0?" q-color-picker--flat no-shadow":"")+(e.disable===!0?" disabled":"")+(o.value===!0?" q-color-picker--dark q-dark":"")),H=r.computed(()=>e.disable===!0?{"aria-disabled":"true"}:{}),q=r.computed(()=>[[rn,Z,void 0,{prevent:!0,stop:!0,mouse:!0}]]);r.watch(()=>e.modelValue,G=>{const ge=M(G||e.defaultValue);ge.hex!==v.value.hex&&(v.value=ge)}),r.watch(()=>e.defaultValue,G=>{if(!e.modelValue&&G){const ge=M(G);ge.hex!==v.value.hex&&(v.value=ge)}});function T(G,ge){v.value.hex=wf(G),v.value.rgb=Cf(G),v.value.r=G.r,v.value.g=G.g,v.value.b=G.b,v.value.a=G.a;const pe=v.value[_.value===!0?"hex":"rgb"];t("update:modelValue",pe),ge===!0&&t("change",pe)}function M(G){const ge=d.value!==void 0?d.value:e.formatModel==="auto"?null:e.formatModel.indexOf("a")!==-1;if(typeof G!="string"||G.length===0||zo.anyColor(G.replace(/ /g,""))!==!0)return{h:0,s:0,v:0,r:0,g:0,b:0,a:ge===!0?100:void 0,hex:void 0,rgb:void 0};const pe=Ef(G);return ge===!0&&pe.a===void 0&&(pe.a=100),pe.hex=wf(pe),pe.rgb=Cf(pe),Object.assign(pe,Vi(pe))}function O(G,ge,pe){const we=i.value;if(we===null)return;const Ae=we.clientWidth,fe=we.clientHeight,L=we.getBoundingClientRect();let I=Math.min(Ae,Math.max(0,G-L.left));a.lang.rtl===!0&&(I=Ae-I);const te=Math.min(fe,Math.max(0,ge-L.top)),K=Math.round(100*I/Ae),X=Math.round(100*Math.max(0,Math.min(1,-(te/fe)+1))),se=xf({h:v.value.h,s:K,v:X,a:S.value===!0?v.value.a:void 0});v.value.s=K,v.value.v=X,T(se,pe)}function k(G,ge){const pe=Math.round(G),we=xf({h:pe,s:v.value.s,v:v.value.v,a:S.value===!0?v.value.a:void 0});v.value.h=pe,T(we,ge)}function A(G){k(G,!0)}function D(G,ge,pe,we,Ae){if(we!==void 0&&ft(we),!/^[0-9]+$/.test(G)){Ae===!0&&n.$forceUpdate();return}const fe=Math.floor(Number(G));if(fe<0||fe>pe){Ae===!0&&n.$forceUpdate();return}const L={r:ge==="r"?fe:v.value.r,g:ge==="g"?fe:v.value.g,b:ge==="b"?fe:v.value.b,a:S.value===!0?ge==="a"?fe:v.value.a:void 0};if(ge!=="a"){const I=Vi(L);v.value.h=I.h,v.value.s=I.s,v.value.v=I.v}if(T(L,Ae),Ae!==!0&&we?.target.selectionEnd!==void 0){const I=we.target.selectionEnd;r.nextTick(()=>{we.target.setSelectionRange(I,I)})}}function z(G,ge){let pe;const we=G.target.value;if(ft(G),c.value==="hex"){if(we.length!==(S.value===!0?9:7)||!/^#[0-9A-Fa-f]+$/.test(we))return!0;pe=kf(we)}else{let fe;if(we.endsWith(")"))if(S.value!==!0&&we.startsWith("rgb(")){if(fe=we.substring(4,we.length-1).split(",").map(L=>parseInt(L,10)),fe.length!==3||!/^rgb\([0-9]{1,3},[0-9]{1,3},[0-9]{1,3}\)$/.test(we))return!0}else if(S.value===!0&&we.startsWith("rgba(")){if(fe=we.substring(5,we.length-1).split(","),fe.length!==4||!/^rgba\([0-9]{1,3},[0-9]{1,3},[0-9]{1,3},(0|0\.[0-9]+[1-9]|0\.[1-9]+|1)\)$/.test(we))return!0;for(let I=0;I<3;I++){const te=parseInt(fe[I],10);if(te<0||te>255)return!0;fe[I]=te}const L=parseFloat(fe[3]);if(L<0||L>1)return!0;fe[3]=L}else return!0;else return!0;if(fe[0]<0||fe[0]>255||fe[1]<0||fe[1]>255||fe[2]<0||fe[2]>255||S.value===!0&&(fe[3]<0||fe[3]>1))return!0;pe={r:fe[0],g:fe[1],b:fe[2],a:S.value===!0?fe[3]*100:void 0}}const Ae=Vi(pe);if(v.value.h=Ae.h,v.value.s=Ae.s,v.value.v=Ae.v,T(pe,ge),ge!==!0){const fe=G.target.selectionEnd;r.nextTick(()=>{G.target.setSelectionRange(fe,fe)})}}function F(G){const ge=M(G),pe={r:ge.r,g:ge.g,b:ge.b,a:ge.a};pe.a===void 0&&(pe.a=v.value.a),v.value.h=ge.h,v.value.s=ge.s,v.value.v=ge.v,T(pe,!0)}function Z(G){G.isFinal?O(G.position.left,G.position.top,!0):he(G)}const he=kd(G=>{O(G.position.left,G.position.top)},20);function $(G){O(G.pageX-window.pageXOffset,G.pageY-window.pageYOffset,!0)}function x(G){O(G.pageX-window.pageXOffset,G.pageY-window.pageYOffset)}function Y(G){s.value!==null&&(s.value.$el.style.opacity=G?1:0)}function B(G){c.value=G}function le(){const G=[];return e.noHeaderTabs!==!0&&G.push(r.h(hf,{class:"q-color-picker__header-tabs",modelValue:c.value,dense:!0,align:"justify","onUpdate:modelValue":B},()=>[r.h(Ea,{label:"HEX"+(S.value===!0?"A":""),name:"hex",ripple:!1}),r.h(Ea,{label:"RGB"+(S.value===!0?"A":""),name:"rgb",ripple:!1})])),G.push(r.h("div",{class:"q-color-picker__header-banner row flex-center no-wrap"},[r.h("input",{class:"fit",value:v.value[c.value],...h.value!==!0?{readonly:!0}:{},...l("topIn",{onInput:ge=>{Y(z(ge)===!0)},onChange:ft,onBlur:ge=>{z(ge,!0)===!0&&n.$forceUpdate(),Y(!1)}})}),r.h(Xe,{ref:s,class:"q-color-picker__error-icon absolute no-pointer-events",name:a.iconSet.type.negative})])),r.h("div",{class:"q-color-picker__header relative-position overflow-hidden"},[r.h("div",{class:"q-color-picker__header-bg absolute-full"}),r.h("div",{class:m.value,style:y.value},G)])}function N(){return r.h(py,{modelValue:g.value,animated:!0},()=>[r.h(Zi,{class:"q-color-picker__spectrum-tab overflow-hidden",name:"spectrum"},W),r.h(Zi,{class:"q-pa-md q-color-picker__tune-tab",name:"tune"},ve),r.h(Zi,{class:"q-color-picker__palette-tab",name:"palette"},_e)])}function U(G){g.value=G}function ue(){return r.h("div",{class:"q-color-picker__footer relative-position overflow-hidden"},[r.h(hf,{class:"absolute-full",modelValue:g.value,dense:!0,align:"justify","onUpdate:modelValue":U},()=>[r.h(Ea,{icon:a.iconSet.colorPicker.spectrum,name:"spectrum",ripple:!1}),r.h(Ea,{icon:a.iconSet.colorPicker.tune,name:"tune",ripple:!1}),r.h(Ea,{icon:a.iconSet.colorPicker.palette,name:"palette",ripple:!1})])])}function W(){const G={ref:i,class:"q-color-picker__spectrum non-selectable relative-position cursor-pointer"+(h.value!==!0?" readonly":""),style:w.value,...h.value===!0?{onClick:$,onMousedown:x}:{}},ge=[r.h("div",{style:{paddingBottom:"100%"}}),r.h("div",{class:"q-color-picker__spectrum-white absolute-full"}),r.h("div",{class:"q-color-picker__spectrum-black absolute-full"}),r.h("div",{class:"absolute",style:E.value},[v.value.hex!==void 0?r.h("div",{class:"q-color-picker__spectrum-circle"}):null])],pe=[r.h(Qr,{class:"q-color-picker__hue non-selectable",modelValue:v.value.h,min:0,max:360,trackSize:"8px",innerTrackColor:"transparent",selectionColor:"transparent",readonly:h.value!==!0,thumbPath:Tf,"onUpdate:modelValue":k,onChange:A})];return S.value===!0&&pe.push(r.h(Qr,{class:"q-color-picker__alpha non-selectable",modelValue:v.value.a,min:0,max:100,trackSize:"8px",trackColor:"white",innerTrackColor:"transparent",selectionColor:"transparent",trackImg:wy,readonly:h.value!==!0,hideSelection:!0,thumbPath:Tf,...l("alphaSlide",{"onUpdate:modelValue":we=>D(we,"a",100),onChange:we=>D(we,"a",100,void 0,!0)})})),[en("div",G,ge,"spec",h.value,()=>q.value),r.h("div",{class:"q-color-picker__sliders"},pe)]}function ve(){return[r.h("div",{class:"row items-center no-wrap"},[r.h("div","R"),r.h(Qr,{modelValue:v.value.r,min:0,max:255,color:"red",dark:o.value,readonly:h.value!==!0,...l("rSlide",{"onUpdate:modelValue":G=>D(G,"r",255),onChange:G=>D(G,"r",255,void 0,!0)})}),r.h("input",{value:v.value.r,maxlength:3,readonly:h.value!==!0,onChange:ft,...l("rIn",{onInput:G=>D(G.target.value,"r",255,G),onBlur:G=>D(G.target.value,"r",255,G,!0)})})]),r.h("div",{class:"row items-center no-wrap"},[r.h("div","G"),r.h(Qr,{modelValue:v.value.g,min:0,max:255,color:"green",dark:o.value,readonly:h.value!==!0,...l("gSlide",{"onUpdate:modelValue":G=>D(G,"g",255),onChange:G=>D(G,"g",255,void 0,!0)})}),r.h("input",{value:v.value.g,maxlength:3,readonly:h.value!==!0,onChange:ft,...l("gIn",{onInput:G=>D(G.target.value,"g",255,G),onBlur:G=>D(G.target.value,"g",255,G,!0)})})]),r.h("div",{class:"row items-center no-wrap"},[r.h("div","B"),r.h(Qr,{modelValue:v.value.b,min:0,max:255,color:"blue",readonly:h.value!==!0,dark:o.value,...l("bSlide",{"onUpdate:modelValue":G=>D(G,"b",255),onChange:G=>D(G,"b",255,void 0,!0)})}),r.h("input",{value:v.value.b,maxlength:3,readonly:h.value!==!0,onChange:ft,...l("bIn",{onInput:G=>D(G.target.value,"b",255,G),onBlur:G=>D(G.target.value,"b",255,G,!0)})})]),S.value===!0?r.h("div",{class:"row items-center no-wrap"},[r.h("div","A"),r.h(Qr,{modelValue:v.value.a,color:"grey",readonly:h.value!==!0,dark:o.value,...l("aSlide",{"onUpdate:modelValue":G=>D(G,"a",100),onChange:G=>D(G,"a",100,void 0,!0)})}),r.h("input",{value:v.value.a,maxlength:3,readonly:h.value!==!0,onChange:ft,...l("aIn",{onInput:G=>D(G.target.value,"a",100,G),onBlur:G=>D(G.target.value,"a",100,G,!0)})})]):null]}function _e(){const G=ge=>r.h("div",{class:"q-color-picker__cube col-auto",style:{backgroundColor:ge},...h.value===!0?l("palette#"+ge,{onClick:()=>{F(ge)}}):{}});return[r.h("div",{class:"row items-center q-color-picker__palette-rows"+(h.value===!0?" q-color-picker__palette-rows--editable":"")},C.value.map(G))]}return()=>{const G=[N()];return e.name!==void 0&&e.disable!==!0&&b(G,"push"),e.noHeader!==!0&&G.unshift(le()),e.noFooter!==!0&&G.push(ue()),r.h("div",{class:R.value,...H.value},G)}}});var Hn=[-61,9,38,199,426,686,756,818,1111,1181,1210,1635,2060,2097,2192,2262,2324,2394,2456,3178];function Cy(e,t,n){return Object.prototype.toString.call(e)==="[object Date]"&&(n=e.getDate(),t=e.getMonth()+1,e=e.getFullYear()),Ty(es(e,t,n))}function qf(e,t,n){return Mf(Ey(e,t,n))}function ky(e){return xy(e)===0}function Ho(e,t){return t<=6?31:t<=11||ky(e)?30:29}function xy(e){const t=Hn.length;let n=Hn[0],a,o,l,i,s;if(e<n||e>=Hn[t-1])throw new Error("Invalid Jalaali year "+e);for(s=1;s<t&&(a=Hn[s],o=a-n,!(e<a));s+=1)n=a;return i=e-n,o-i<6&&(i=i-o+ct(o+4,33)*33),l=Wt(Wt(i+1,33)-1,4),l===-1&&(l=4),l}function Of(e,t){const n=Hn.length,a=e+621;let o=-14,l=Hn[0],i,s,u,d,c;if(e<l||e>=Hn[n-1])throw new Error("Invalid Jalaali year "+e);for(c=1;c<n&&(i=Hn[c],s=i-l,!(e<i));c+=1)o=o+ct(s,33)*8+ct(Wt(s,33),4),l=i;d=e-l,o=o+ct(d,33)*8+ct(Wt(d,33)+3,4),Wt(s,33)===4&&s-d===4&&(o+=1);const g=ct(a,4)-ct((ct(a,100)+1)*3,4)-150,v=20+o-g;return t||(s-d<6&&(d=d-s+ct(s+4,33)*33),u=Wt(Wt(d+1,33)-1,4),u===-1&&(u=4)),{leap:u,gy:a,march:v}}function Ey(e,t,n){const a=Of(e,!0);return es(a.gy,3,a.march)+(t-1)*31-ct(t,7)*(t-7)+n-1}function Ty(e){const t=Mf(e).gy;let n=t-621,a,o,l;const i=Of(n,!1),s=es(t,3,i.march);if(l=e-s,l>=0){if(l<=185)return o=1+ct(l,31),a=Wt(l,31)+1,{jy:n,jm:o,jd:a};l-=186}else n-=1,l+=179,i.leap===1&&(l+=1);return o=7+ct(l,30),a=Wt(l,30)+1,{jy:n,jm:o,jd:a}}function es(e,t,n){let a=ct((e+ct(t-8,6)+100100)*1461,4)+ct(153*Wt(t+9,12)+2,5)+n-34840408;return a=a-ct(ct(e+100100+ct(t-8,6),100)*3,4)+752,a}function Mf(e){let t=4*e+139361631;t=t+ct(ct(4*e+183187720,146097)*3,4)*4-3908;const n=ct(Wt(t,1461),4)*5+308,a=ct(Wt(n,153),5)+1,o=Wt(ct(n,153),12)+1;return{gy:ct(t,1461)-100100+ct(8-o,6),gm:o,gd:a}}function ct(e,t){return~~(e/t)}function Wt(e,t){return e-~~(e/t)*t}var qy=["gregorian","persian"],jo={mask:{type:String},locale:Object,calendar:{type:String,validator:e=>qy.includes(e),default:"gregorian"},landscape:Boolean,color:String,textColor:String,square:Boolean,flat:Boolean,bordered:Boolean,readonly:Boolean,disable:Boolean},Lf=["update:modelValue"];function Mn(e){return e.year+"/"+Je(e.month)+"/"+Je(e.day)}function Af(e,t){const n=r.computed(()=>e.disable!==!0&&e.readonly!==!0),a=r.computed(()=>n.value===!0?0:-1),o=r.computed(()=>{const s=[];return e.color!==void 0&&s.push(`bg-${e.color}`),e.textColor!==void 0&&s.push(`text-${e.textColor}`),s.join(" ")});function l(){return e.locale!==void 0?{...t.lang.date,...e.locale}:t.lang.date}function i(s){const u=new Date,d=s===!0?null:0;if(e.calendar==="persian"){const c=Cy(u);return{year:c.jy,month:c.jm,day:c.jd}}return{year:u.getFullYear(),month:u.getMonth()+1,day:u.getDate(),hour:d,minute:d,second:d,millisecond:d}}return{editable:n,tabindex:a,headerClass:o,getLocale:l,getCurrentDate:i}}var Rf=864e5,Oy=36e5,ts=6e4,Pf="YYYY-MM-DDTHH:mm:ss.SSSZ",My=/\[((?:[^\]\\]|\\]|\\)*)\]|do|d{1,4}|Mo|M{1,4}|m{1,2}|wo|w{1,2}|Qo|Do|DDDo|D{1,4}|YY(?:YY)?|H{1,2}|h{1,2}|s{1,2}|S{1,3}|Z{1,2}|a{1,2}|[AQExX]/g,Ly=/(\[[^\]]*\])|do|d{1,4}|Mo|M{1,4}|m{1,2}|wo|w{1,2}|Qo|Do|DDDo|D{1,4}|YY(?:YY)?|H{1,2}|h{1,2}|s{1,2}|S{1,3}|Z{1,2}|a{1,2}|[AQExX]|([.*+:?^,\s${}()|\\]+)/g,ns={};function Ay(e,t){const n="("+t.days.join("|")+")",a=e+n;if(ns[a]!==void 0)return ns[a];const o="("+t.daysShort.join("|")+")",l="("+t.months.join("|")+")",i="("+t.monthsShort.join("|")+")",s={};let u=0;const d=e.replace(Ly,g=>{switch(u++,g){case"YY":return s.YY=u,"(-?\\d{1,2})";case"YYYY":return s.YYYY=u,"(-?\\d{1,4})";case"M":return s.M=u,"(\\d{1,2})";case"Mo":return s.M=u++,"(\\d{1,2}(st|nd|rd|th))";case"MM":return s.M=u,"(\\d{2})";case"MMM":return s.MMM=u,i;case"MMMM":return s.MMMM=u,l;case"D":return s.D=u,"(\\d{1,2})";case"Do":return s.D=u++,"(\\d{1,2}(st|nd|rd|th))";case"DD":return s.D=u,"(\\d{2})";case"H":return s.H=u,"(\\d{1,2})";case"HH":return s.H=u,"(\\d{2})";case"h":return s.h=u,"(\\d{1,2})";case"hh":return s.h=u,"(\\d{2})";case"m":return s.m=u,"(\\d{1,2})";case"mm":return s.m=u,"(\\d{2})";case"s":return s.s=u,"(\\d{1,2})";case"ss":return s.s=u,"(\\d{2})";case"S":return s.S=u,"(\\d{1})";case"SS":return s.S=u,"(\\d{2})";case"SSS":return s.S=u,"(\\d{3})";case"A":return s.A=u,"(AM|PM)";case"a":return s.a=u,"(am|pm)";case"aa":return s.aa=u,"(a\\.m\\.|p\\.m\\.)";case"ddd":return o;case"dddd":return n;case"Q":case"d":case"E":return"(\\d{1})";case"do":return u++,"(\\d{1}(st|nd|rd|th))";case"Qo":return"(1st|2nd|3rd|4th)";case"DDD":case"DDDD":return"(\\d{1,3})";case"DDDo":return u++,"(\\d{1,3}(st|nd|rd|th))";case"w":return"(\\d{1,2})";case"wo":return u++,"(\\d{1,2}(st|nd|rd|th))";case"ww":return"(\\d{2})";case"Z":return s.Z=u,"(Z|[+-]\\d{2}:\\d{2})";case"ZZ":return s.ZZ=u,"(Z|[+-]\\d{2}\\d{2})";case"X":return s.X=u,"(-?\\d+)";case"x":return s.x=u,"(-?\\d{4,})";default:return u--,g[0]==="["&&(g=g.substring(1,g.length-1)),g.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}}),c={map:s,regex:new RegExp("^"+d)};return ns[a]=c,c}function Nf(e,t){return e!==void 0?e:t!==void 0?t.date:mi.date}function If(e,t=""){const n=e>0?"-":"+",a=Math.abs(e),o=Math.floor(a/60),l=a%60;return n+Je(o)+t+Je(l)}function Ry(e,t,n){let a=e.getFullYear(),o=e.getMonth();const l=e.getDate();return t.year!==void 0&&(a+=n*t.year,delete t.year),t.month!==void 0&&(o+=n*t.month,delete t.month),e.setDate(1),e.setMonth(2),e.setFullYear(a),e.setMonth(o),e.setDate(Math.min(l,ls(e))),t.date!==void 0&&(e.setDate(e.getDate()+n*t.date),delete t.date),e}function Py(e,t,n){const a=t.year!==void 0?t.year:e[`get${n}FullYear`](),o=t.month!==void 0?t.month-1:e[`get${n}Month`](),l=new Date(a,o+1,0).getDate(),i=Math.min(l,t.date!==void 0?t.date:e[`get${n}Date`]());return e[`set${n}Date`](1),e[`set${n}Month`](2),e[`set${n}FullYear`](a),e[`set${n}Month`](o),e[`set${n}Date`](i),delete t.year,delete t.month,delete t.date,e}function rs(e,t,n){const a=Df(t),o=new Date(e),l=a.year!==void 0||a.month!==void 0||a.date!==void 0?Ry(o,a,n):o;for(const i in a){const s=s0(i);l[`set${s}`](l[`get${s}`]()+n*a[i])}return l}function Df(e){const t={...e};return e.years!==void 0&&(t.year=e.years,delete t.years),e.months!==void 0&&(t.month=e.months,delete t.months),e.days!==void 0&&(t.date=e.days,delete t.days),e.day!==void 0&&(t.date=e.day,delete t.day),e.hour!==void 0&&(t.hours=e.hour,delete t.hour),e.minute!==void 0&&(t.minutes=e.minute,delete t.minute),e.second!==void 0&&(t.seconds=e.second,delete t.second),e.millisecond!==void 0&&(t.milliseconds=e.millisecond,delete t.millisecond),t}function $f(e,t,n){const a=Df(t),o=n===!0?"UTC":"",l=new Date(e),i=a.year!==void 0||a.month!==void 0||a.date!==void 0?Py(l,a,o):l;for(const s in a){const u=s.charAt(0).toUpperCase()+s.slice(1);i[`set${o}${u}`](a[s])}return i}function Ny(e,t,n){const a=Wr(e,t,n),o=new Date(a.year,a.month===null?null:a.month-1,a.day===null?1:a.day,a.hour,a.minute,a.second,a.millisecond),l=o.getTimezoneOffset();return a.timezoneOffset===null||a.timezoneOffset===l?o:rs(o,{minutes:a.timezoneOffset-l},1)}function Wr(e,t,n,a,o){const l={year:null,month:null,day:null,hour:null,minute:null,second:null,millisecond:null,timezoneOffset:null,dateHash:null,timeHash:null};if(o!==void 0&&Object.assign(l,o),e==null||e===""||typeof e!="string")return l;t===void 0&&(t=Pf);const i=Nf(n,Vc.props),s=i.months,u=i.monthsShort,{regex:d,map:c}=Ay(t,i),g=e.match(d);if(g===null)return l;let v="";if(c.X!==void 0||c.x!==void 0){const h=parseInt(g[c.X!==void 0?c.X:c.x],10);if(isNaN(h)===!0||h<0)return l;const f=new Date(h*(c.X!==void 0?1e3:1));l.year=f.getFullYear(),l.month=f.getMonth()+1,l.day=f.getDate(),l.hour=f.getHours(),l.minute=f.getMinutes(),l.second=f.getSeconds(),l.millisecond=f.getMilliseconds()}else{if(c.YYYY!==void 0)l.year=parseInt(g[c.YYYY],10);else if(c.YY!==void 0){const h=parseInt(g[c.YY],10);l.year=h<0?h:2e3+h}if(c.M!==void 0){if(l.month=parseInt(g[c.M],10),l.month<1||l.month>12)return l}else c.MMM!==void 0?l.month=u.indexOf(g[c.MMM])+1:c.MMMM!==void 0&&(l.month=s.indexOf(g[c.MMMM])+1);if(c.D!==void 0){if(l.day=parseInt(g[c.D],10),l.year===null||l.month===null||l.day<1)return l;const h=a!=="persian"?new Date(l.year,l.month,0).getDate():Ho(l.year,l.month);if(l.day>h)return l}c.H!==void 0?l.hour=parseInt(g[c.H],10)%24:c.h!==void 0&&(l.hour=parseInt(g[c.h],10)%12,(c.A&&g[c.A]==="PM"||c.a&&g[c.a]==="pm"||c.aa&&g[c.aa]==="p.m.")&&(l.hour+=12),l.hour=l.hour%24),c.m!==void 0&&(l.minute=parseInt(g[c.m],10)%60),c.s!==void 0&&(l.second=parseInt(g[c.s],10)%60),c.S!==void 0&&(l.millisecond=parseInt(g[c.S],10)*10**(3-g[c.S].length)),(c.Z!==void 0||c.ZZ!==void 0)&&(v=c.Z!==void 0?g[c.Z].replace(":",""):g[c.ZZ],l.timezoneOffset=(v[0]==="+"?-1:1)*(60*v.slice(1,3)+1*v.slice(3,5)))}return l.dateHash=Je(l.year,4)+"/"+Je(l.month)+"/"+Je(l.day),l.timeHash=Je(l.hour)+":"+Je(l.minute)+":"+Je(l.second)+v,l}function Iy(e){return typeof e=="number"?!0:isNaN(Date.parse(e))===!1}function Dy(e,t){return $f(new Date,e,t)}function $y(e){const t=new Date(e).getDay();return t===0?7:t}function Uo(e){const t=new Date(e.getFullYear(),e.getMonth(),e.getDate());t.setDate(t.getDate()-(t.getDay()+6)%7+3);const n=new Date(t.getFullYear(),0,4);n.setDate(n.getDate()-(n.getDay()+6)%7+3);const a=t.getTimezoneOffset()-n.getTimezoneOffset();t.setHours(t.getHours()-a);const o=(t-n)/(Rf*7);return 1+Math.floor(o)}function By(e){return e.getFullYear()*1e4+e.getMonth()*100+e.getDate()}function as(e,t){const n=new Date(e);return t===!0?By(n):n.getTime()}function Fy(e,t,n,a={}){const o=as(t,a.onlyDate),l=as(n,a.onlyDate),i=as(e,a.onlyDate);return(i>o||a.inclusiveFrom===!0&&i===o)&&(i<l||a.inclusiveTo===!0&&i===l)}function zy(e,t){return rs(e,t,1)}function Hy(e,t){return rs(e,t,-1)}function yn(e,t,n){const a=new Date(e),o=`set${n===!0?"UTC":""}`;switch(t){case"year":case"years":a[`${o}Month`](0);case"month":case"months":a[`${o}Date`](1);case"day":case"days":case"date":a[`${o}Hours`](0);case"hour":case"hours":a[`${o}Minutes`](0);case"minute":case"minutes":a[`${o}Seconds`](0);case"second":case"seconds":a[`${o}Milliseconds`](0)}return a}function jy(e,t,n){const a=new Date(e),o=`set${n===!0?"UTC":""}`;switch(t){case"year":case"years":a[`${o}Month`](11);case"month":case"months":a[`${o}Date`](ls(a));case"day":case"days":case"date":a[`${o}Hours`](23);case"hour":case"hours":a[`${o}Minutes`](59);case"minute":case"minutes":a[`${o}Seconds`](59);case"second":case"seconds":a[`${o}Milliseconds`](999)}return a}function Uy(e){let t=new Date(e);return Array.prototype.slice.call(arguments,1).forEach(n=>{t=Math.max(t,new Date(n))}),t}function Qy(e){let t=new Date(e);return Array.prototype.slice.call(arguments,1).forEach(n=>{t=Math.min(t,new Date(n))}),t}function Qo(e,t,n){return(e.getTime()-e.getTimezoneOffset()*ts-(t.getTime()-t.getTimezoneOffset()*ts))/n}function os(e,t,n="days"){const a=new Date(e),o=new Date(t);switch(n){case"years":case"year":return a.getFullYear()-o.getFullYear();case"months":case"month":return(a.getFullYear()-o.getFullYear())*12+a.getMonth()-o.getMonth();case"days":case"day":case"date":return Qo(yn(a,"day"),yn(o,"day"),Rf);case"hours":case"hour":return Qo(yn(a,"hour"),yn(o,"hour"),Oy);case"minutes":case"minute":return Qo(yn(a,"minute"),yn(o,"minute"),ts);case"seconds":case"second":return Qo(yn(a,"second"),yn(o,"second"),1e3)}}function Wo(e){return os(e,yn(e,"year"),"days")+1}function Wy(e){return va(e)===!0?"date":typeof e=="number"?"number":"string"}function Ky(e,t,n){const a=new Date(e);if(t){const o=new Date(t);if(a<o)return o}if(n){const o=new Date(n);if(a>o)return o}return a}function Yy(e,t,n){const a=new Date(e),o=new Date(t);if(n===void 0)return a.getTime()===o.getTime();switch(n){case"second":case"seconds":if(a.getSeconds()!==o.getSeconds())return!1;case"minute":case"minutes":if(a.getMinutes()!==o.getMinutes())return!1;case"hour":case"hours":if(a.getHours()!==o.getHours())return!1;case"day":case"days":case"date":if(a.getDate()!==o.getDate())return!1;case"month":case"months":if(a.getMonth()!==o.getMonth())return!1;case"year":case"years":if(a.getFullYear()!==o.getFullYear())return!1;break;default:throw new Error(`date isSameDate unknown unit ${n}`)}return!0}function ls(e){return new Date(e.getFullYear(),e.getMonth()+1,0).getDate()}function Kr(e){if(e>=11&&e<=13)return`${e}th`;switch(e%10){case 1:return`${e}st`;case 2:return`${e}nd`;case 3:return`${e}rd`}return`${e}th`}var Bf={YY(e,t,n){const a=this.YYYY(e,t,n)%100;return a>=0?Je(a):"-"+Je(Math.abs(a))},YYYY(e,t,n){return n??e.getFullYear()},M(e){return e.getMonth()+1},Mo(e){return Kr(e.getMonth()+1)},MM(e){return Je(e.getMonth()+1)},MMM(e,t){return t.monthsShort[e.getMonth()]},MMMM(e,t){return t.months[e.getMonth()]},Q(e){return Math.ceil((e.getMonth()+1)/3)},Qo(e){return Kr(this.Q(e))},D(e){return e.getDate()},Do(e){return Kr(e.getDate())},DD(e){return Je(e.getDate())},DDD(e){return Wo(e)},DDDo(e){return Kr(Wo(e))},DDDD(e){return Je(Wo(e),3)},d(e){return e.getDay()},do(e){return Kr(e.getDay())},dd(e,t){return t.days[e.getDay()].slice(0,2)},ddd(e,t){return t.daysShort[e.getDay()]},dddd(e,t){return t.days[e.getDay()]},E(e){return e.getDay()||7},w(e){return Uo(e)},wo(e){return Kr(Uo(e))},ww(e){return Je(Uo(e))},H(e){return e.getHours()},HH(e){return Je(e.getHours())},h(e){const t=e.getHours();return t===0?12:t>12?t%12:t},hh(e){return Je(this.h(e))},m(e){return e.getMinutes()},mm(e){return Je(e.getMinutes())},s(e){return e.getSeconds()},ss(e){return Je(e.getSeconds())},S(e){return Math.floor(e.getMilliseconds()/100)},SS(e){return Je(Math.floor(e.getMilliseconds()/10))},SSS(e){return Je(e.getMilliseconds(),3)},A(e){return e.getHours()<12?"AM":"PM"},a(e){return e.getHours()<12?"am":"pm"},aa(e){return e.getHours()<12?"a.m.":"p.m."},Z(e,t,n,a){const o=a??e.getTimezoneOffset();return If(o,":")},ZZ(e,t,n,a){const o=a??e.getTimezoneOffset();return If(o)},X(e){return Math.floor(e.getTime()/1e3)},x(e){return e.getTime()}};function is(e,t,n,a,o){if(e!==0&&!e||e===1/0||e===-1/0)return;const l=new Date(e);if(isNaN(l))return;t===void 0&&(t=Pf);const i=Nf(n,Vc.props);return t.replace(My,(s,u)=>s in Bf?Bf[s](l,i,a,o):u===void 0?s:u.split("\\]").join("]"))}function Gy(e){return va(e)===!0?new Date(e.getTime()):e}var ss={isValid:Iy,extractDate:Ny,buildDate:Dy,getDayOfWeek:$y,getWeekOfYear:Uo,isBetweenDates:Fy,addToDate:zy,subtractFromDate:Hy,adjustDate:$f,startOfDate:yn,endOfDate:jy,getMaxDate:Uy,getMinDate:Qy,getDateDiff:os,getDayOfYear:Wo,inferDateFormat:Wy,getDateBetween:Ky,isSameDate:Yy,daysInMonth:ls,formatDate:is,clone:Gy},Ln=20,Xy=["Calendar","Years","Months"],Ff=e=>Xy.includes(e),us=e=>/^-?[\d]+\/[0-1]\d$/.test(e),Yr=" — ";function jn(e){return e.year+"/"+Je(e.month)}ie({name:"QDate",props:{...jo,...nn,...Ye,modelValue:{required:!0,validator:e=>typeof e=="string"||Array.isArray(e)===!0||Object(e)===e||e===null},multiple:Boolean,range:Boolean,title:String,subtitle:String,mask:{...jo.mask,default:"YYYY/MM/DD"},defaultYearMonth:{type:String,validator:us},yearsInMonthView:Boolean,events:[Array,Function],eventColor:[String,Function],emitImmediately:Boolean,options:[Array,Function],navigationMinYearMonth:{type:String,validator:us},navigationMaxYearMonth:{type:String,validator:us},noUnset:Boolean,firstDayOfWeek:[String,Number],todayBtn:Boolean,minimal:Boolean,defaultView:{type:String,default:"Calendar",validator:Ff}},emits:[...Lf,"rangeStart","rangeEnd","navigation"],setup(e,{slots:t,emit:n}){const{proxy:a}=r.getCurrentInstance(),{$q:o}=a,l=Ge(e,o),{getCache:i}=wa(),{tabindex:s,headerClass:u,getLocale:d,getCurrentDate:c}=Af(e,o);let g;const v=Sa(e),h=zn(v),f=r.ref(null),_=r.ref(Qe()),p=r.ref(d()),b=r.computed(()=>Qe()),S=r.computed(()=>d()),y=r.computed(()=>c()),m=r.ref(ee(_.value,p.value)),w=r.ref(e.defaultView),E=r.computed(()=>o.lang.rtl===!0?"right":"left"),C=r.ref(E.value),R=r.ref(E.value),H=m.value.year,q=r.ref(H-H%Ln-(H<0?Ln:0)),T=r.ref(null),M=r.computed(()=>{const P=e.landscape===!0?"landscape":"portrait";return`q-date q-date--${P} q-date--${P}-${e.minimal===!0?"minimal":"standard"}`+(l.value===!0?" q-date--dark q-dark":"")+(e.bordered===!0?" q-date--bordered":"")+(e.square===!0?" q-date--square no-border-radius":"")+(e.flat===!0?" q-date--flat no-shadow":"")+(e.disable===!0?" disabled":e.readonly===!0?" q-date--readonly":"")}),O=r.computed(()=>e.color||"primary"),k=r.computed(()=>e.textColor||"white"),A=r.computed(()=>e.emitImmediately===!0&&e.multiple!==!0&&e.range!==!0),D=r.computed(()=>Array.isArray(e.modelValue)===!0?e.modelValue:e.modelValue!==null&&e.modelValue!==void 0?[e.modelValue]:[]),z=r.computed(()=>D.value.filter(P=>typeof P=="string").map(P=>je(P,_.value,p.value)).filter(P=>P.dateHash!==null&&P.day!==null&&P.month!==null&&P.year!==null)),F=r.computed(()=>{const P=j=>je(j,_.value,p.value);return D.value.filter(j=>$t(j)===!0&&j.from!==void 0&&j.to!==void 0).map(j=>({from:P(j.from),to:P(j.to)})).filter(j=>j.from.dateHash!==null&&j.to.dateHash!==null&&j.from.dateHash<j.to.dateHash)}),Z=r.computed(()=>e.calendar!=="persian"?P=>new Date(P.year,P.month-1,P.day):P=>{const j=qf(P.year,P.month,P.day);return new Date(j.gy,j.gm-1,j.gd)}),he=r.computed(()=>e.calendar==="persian"?Mn:(P,j,oe)=>is(new Date(P.year,P.month-1,P.day,P.hour,P.minute,P.second,P.millisecond),j===void 0?_.value:j,oe===void 0?p.value:oe,P.year,P.timezoneOffset)),$=r.computed(()=>z.value.length+F.value.reduce((P,j)=>P+1+os(Z.value(j.to),Z.value(j.from)),0)),x=r.computed(()=>{if(e.title!==void 0&&e.title!==null&&e.title.length!==0)return e.title;if(T.value!==null){const oe=T.value.init,Se=Z.value(oe);return p.value.daysShort[Se.getDay()]+", "+p.value.monthsShort[oe.month-1]+" "+oe.day+Yr+"?"}if($.value===0)return Yr;if($.value>1)return`${$.value} ${p.value.pluralDay}`;const P=z.value[0],j=Z.value(P);return isNaN(j.valueOf())===!0?Yr:p.value.headerTitle!==void 0?p.value.headerTitle(j,P):p.value.daysShort[j.getDay()]+", "+p.value.monthsShort[P.month-1]+" "+P.day}),Y=r.computed(()=>z.value.concat(F.value.map(j=>j.from)).sort((j,oe)=>j.year-oe.year||j.month-oe.month)[0]),B=r.computed(()=>z.value.concat(F.value.map(j=>j.to)).sort((j,oe)=>oe.year-j.year||oe.month-j.month)[0]),le=r.computed(()=>{if(e.subtitle!==void 0&&e.subtitle!==null&&e.subtitle.length!==0)return e.subtitle;if($.value===0)return Yr;if($.value>1){const P=Y.value,j=B.value,oe=p.value.monthsShort;return oe[P.month-1]+(P.year!==j.year?" "+P.year+Yr+oe[j.month-1]+" ":P.month!==j.month?Yr+oe[j.month-1]:"")+" "+j.year}return z.value[0].year}),N=r.computed(()=>{const P=[o.iconSet.datetime.arrowLeft,o.iconSet.datetime.arrowRight];return o.lang.rtl===!0?P.reverse():P}),U=r.computed(()=>e.firstDayOfWeek!==void 0?Number(e.firstDayOfWeek):p.value.firstDayOfWeek),ue=r.computed(()=>{const P=p.value.daysShort,j=U.value;return j>0?P.slice(j,7).concat(P.slice(0,j)):P}),W=r.computed(()=>{const P=m.value;return e.calendar!=="persian"?new Date(P.year,P.month,0).getDate():Ho(P.year,P.month)}),ve=r.computed(()=>typeof e.eventColor=="function"?e.eventColor:()=>e.eventColor),_e=r.computed(()=>{if(e.navigationMinYearMonth===void 0)return null;const P=e.navigationMinYearMonth.split("/");return{year:parseInt(P[0],10),month:parseInt(P[1],10)}}),G=r.computed(()=>{if(e.navigationMaxYearMonth===void 0)return null;const P=e.navigationMaxYearMonth.split("/");return{year:parseInt(P[0],10),month:parseInt(P[1],10)}}),ge=r.computed(()=>{const P={month:{prev:!0,next:!0},year:{prev:!0,next:!0}};return _e.value!==null&&_e.value.year>=m.value.year&&(P.year.prev=!1,_e.value.year===m.value.year&&_e.value.month>=m.value.month&&(P.month.prev=!1)),G.value!==null&&G.value.year<=m.value.year&&(P.year.next=!1,G.value.year===m.value.year&&G.value.month<=m.value.month&&(P.month.next=!1)),P}),pe=r.computed(()=>{const P={};return z.value.forEach(j=>{const oe=jn(j);P[oe]===void 0&&(P[oe]=[]),P[oe].push(j.day)}),P}),we=r.computed(()=>{const P={};return F.value.forEach(j=>{const oe=jn(j.from),Se=jn(j.to);if(P[oe]===void 0&&(P[oe]=[]),P[oe].push({from:j.from.day,to:oe===Se?j.to.day:void 0,range:j}),oe<Se){let Ce;const{year:We,month:Me}=j.from,$e=Me<12?{year:We,month:Me+1}:{year:We+1,month:1};for(;(Ce=jn($e))<=Se;)P[Ce]===void 0&&(P[Ce]=[]),P[Ce].push({from:void 0,to:Ce===Se?j.to.day:void 0,range:j}),$e.month++,$e.month>12&&($e.year++,$e.month=1)}}),P}),Ae=r.computed(()=>{if(T.value===null)return;const{init:P,initHash:j,final:oe,finalHash:Se}=T.value,[Ce,We]=j<=Se?[P,oe]:[oe,P],Me=jn(Ce),$e=jn(We);if(Me!==fe.value&&$e!==fe.value)return;const Ve={};return Me===fe.value?(Ve.from=Ce.day,Ve.includeFrom=!0):Ve.from=1,$e===fe.value?(Ve.to=We.day,Ve.includeTo=!0):Ve.to=W.value,Ve}),fe=r.computed(()=>jn(m.value)),L=r.computed(()=>{const P={};if(e.options===void 0){for(let oe=1;oe<=W.value;oe++)P[oe]=!0;return P}const j=typeof e.options=="function"?e.options:oe=>e.options.includes(oe);for(let oe=1;oe<=W.value;oe++){const Se=fe.value+"/"+Je(oe);P[oe]=j(Se)}return P}),I=r.computed(()=>{const P={};if(e.events===void 0)for(let j=1;j<=W.value;j++)P[j]=!1;else{const j=typeof e.events=="function"?e.events:oe=>e.events.includes(oe);for(let oe=1;oe<=W.value;oe++){const Se=fe.value+"/"+Je(oe);P[oe]=j(Se)===!0&&ve.value(Se)}}return P}),te=r.computed(()=>{let P,j;const{year:oe,month:Se}=m.value;if(e.calendar!=="persian")P=new Date(oe,Se-1,1),j=new Date(oe,Se-1,0).getDate();else{const Ce=qf(oe,Se,1);P=new Date(Ce.gy,Ce.gm-1,Ce.gd);let We=Se-1,Me=oe;We===0&&(We=12,Me--),j=Ho(Me,We)}return{days:P.getDay()-U.value-1,endDay:j}}),K=r.computed(()=>{const P=[],{days:j,endDay:oe}=te.value,Se=j<0?j+7:j;if(Se<6)for(let Me=oe-Se;Me<=oe;Me++)P.push({i:Me,fill:!0});const Ce=P.length;for(let Me=1;Me<=W.value;Me++){const $e={i:Me,event:I.value[Me],classes:[]};L.value[Me]===!0&&($e.in=!0,$e.flat=!0),P.push($e)}if(pe.value[fe.value]!==void 0&&pe.value[fe.value].forEach(Me=>{const $e=Ce+Me-1;Object.assign(P[$e],{selected:!0,unelevated:!0,flat:!1,color:O.value,textColor:k.value})}),we.value[fe.value]!==void 0&&we.value[fe.value].forEach(Me=>{if(Me.from!==void 0){const $e=Ce+Me.from-1,Ve=Ce+(Me.to||W.value)-1;for(let an=$e;an<=Ve;an++)Object.assign(P[an],{range:Me.range,unelevated:!0,color:O.value,textColor:k.value});Object.assign(P[$e],{rangeFrom:!0,flat:!1}),Me.to!==void 0&&Object.assign(P[Ve],{rangeTo:!0,flat:!1})}else if(Me.to!==void 0){const $e=Ce+Me.to-1;for(let Ve=Ce;Ve<=$e;Ve++)Object.assign(P[Ve],{range:Me.range,unelevated:!0,color:O.value,textColor:k.value});Object.assign(P[$e],{flat:!1,rangeTo:!0})}else{const $e=Ce+W.value-1;for(let Ve=Ce;Ve<=$e;Ve++)Object.assign(P[Ve],{range:Me.range,unelevated:!0,color:O.value,textColor:k.value})}}),Ae.value!==void 0){const Me=Ce+Ae.value.from-1,$e=Ce+Ae.value.to-1;for(let Ve=Me;Ve<=$e;Ve++)P[Ve].color=O.value,P[Ve].editRange=!0;Ae.value.includeFrom===!0&&(P[Me].editRangeFrom=!0),Ae.value.includeTo===!0&&(P[$e].editRangeTo=!0)}m.value.year===y.value.year&&m.value.month===y.value.month&&(P[Ce+y.value.day-1].today=!0);const We=P.length%7;if(We>0){const Me=7-We;for(let $e=1;$e<=Me;$e++)P.push({i:$e,fill:!0})}return P.forEach(Me=>{let $e="q-date__calendar-item ";Me.fill===!0?$e+="q-date__calendar-item--fill":($e+=`q-date__calendar-item--${Me.in===!0?"in":"out"}`,Me.range!==void 0&&($e+=` q-date__range${Me.rangeTo===!0?"-to":Me.rangeFrom===!0?"-from":""}`),Me.editRange===!0&&($e+=` q-date__edit-range${Me.editRangeFrom===!0?"-from":""}${Me.editRangeTo===!0?"-to":""}`),(Me.range!==void 0||Me.editRange===!0)&&($e+=` text-${Me.color}`)),Me.classes=$e}),P}),X=r.computed(()=>e.disable===!0?{"aria-disabled":"true"}:{});r.watch(()=>e.modelValue,P=>{if(g===JSON.stringify(P))g=0;else{const j=ee(_.value,p.value);nt(j.year,j.month,j)}}),r.watch(w,()=>{f.value!==null&&a.$el.contains(document.activeElement)===!0&&f.value.focus()}),r.watch(()=>m.value.year+"|"+m.value.month,()=>{n("navigation",{year:m.value.year,month:m.value.month})}),r.watch(b,P=>{ye(P,p.value,"mask"),_.value=P}),r.watch(S,P=>{ye(_.value,P,"locale"),p.value=P});function se(P){g=JSON.stringify(P)}function me(){const{year:P,month:j,day:oe}=y.value,Se={...m.value,year:P,month:j,day:oe},Ce=pe.value[jn(Se)];(Ce===void 0||Ce.includes(Se.day)===!1)&&Pn(Se),be(Se.year,Se.month)}function J(P){Ff(P)===!0&&(w.value=P)}function ae(P,j){["month","year"].includes(P)&&(P==="month"?V:de)(j===!0?-1:1)}function be(P,j){w.value="Calendar",nt(P,j)}function ke(P,j){if(e.range===!1||!P){T.value=null;return}const oe=Object.assign({...m.value},P),Se=j!==void 0?Object.assign({...m.value},j):oe;T.value={init:oe,initHash:Mn(oe),final:Se,finalHash:Mn(Se)},be(oe.year,oe.month)}function Qe(){return e.calendar==="persian"?"YYYY/MM/DD":e.mask}function je(P,j,oe){return Wr(P,j,oe,e.calendar,{hour:0,minute:0,second:0,millisecond:0})}function ee(P,j){const oe=Array.isArray(e.modelValue)===!0?e.modelValue:e.modelValue?[e.modelValue]:[];if(oe.length===0)return ce();const Se=oe[oe.length-1],Ce=je(Se.from!==void 0?Se.from:Se,P,j);return Ce.dateHash===null?ce():Ce}function ce(){let P,j;if(e.defaultYearMonth!==void 0){const oe=e.defaultYearMonth.split("/");P=parseInt(oe[0],10),j=parseInt(oe[1],10)}else{const oe=y.value!==void 0?y.value:c();P=oe.year,j=oe.month}return{year:P,month:j,day:1,hour:0,minute:0,second:0,millisecond:0,dateHash:P+"/"+Je(j)+"/01"}}function V(P){let j=m.value.year,oe=Number(m.value.month)+P;oe===13?(oe=1,j++):oe===0&&(oe=12,j--),nt(j,oe),A.value===!0&&Ft("month")}function de(P){const j=Number(m.value.year)+P;nt(j,m.value.month),A.value===!0&&Ft("year")}function xe(P){nt(P,m.value.month),w.value=e.defaultView==="Years"?"Months":"Calendar",A.value===!0&&Ft("year")}function Be(P){nt(m.value.year,P),w.value="Calendar",A.value===!0&&Ft("month")}function Le(P,j){(pe.value[j]?.includes(P.day)===!0?re:Pn)(P)}function Ue(P){return{year:P.year,month:P.month,day:P.day}}function nt(P,j,oe){if(_e.value!==null&&P<=_e.value.year&&((j<_e.value.month||P<_e.value.year)&&(j=_e.value.month),P=_e.value.year),G.value!==null&&P>=G.value.year&&((j>G.value.month||P>G.value.year)&&(j=G.value.month),P=G.value.year),oe!==void 0){const{hour:Ce,minute:We,second:Me,millisecond:$e,timezoneOffset:Ve,timeHash:an}=oe;Object.assign(m.value,{hour:Ce,minute:We,second:Me,millisecond:$e,timezoneOffset:Ve,timeHash:an})}const Se=P+"/"+Je(j)+"/01";Se!==m.value.dateHash&&(C.value=m.value.dateHash<Se==(o.lang.rtl!==!0)?"left":"right",P!==m.value.year&&(R.value=C.value),r.nextTick(()=>{q.value=P-P%Ln-(P<0?Ln:0),Object.assign(m.value,{year:P,month:j,day:1,dateHash:Se})}))}function pt(P,j,oe){const Se=P!==null&&P.length===1&&e.multiple===!1?P[0]:P,{reason:Ce,details:We}=Wn(j,oe);se(Se),n("update:modelValue",Se,Ce,We)}function Ft(P){const j=z.value[0]!==void 0&&z.value[0].dateHash!==null?{...z.value[0]}:{...m.value};r.nextTick(()=>{j.year=m.value.year,j.month=m.value.month;const oe=e.calendar!=="persian"?new Date(j.year,j.month,0).getDate():Ho(j.year,j.month);j.day=Math.min(Math.max(1,j.day),oe);const Se=Kt(j),{details:Ce}=Wn("",j);se(Se),n("update:modelValue",Se,P,Ce)})}function Wn(P,j){return j.from!==void 0?{reason:`${P}-range`,details:{...Ue(j.target),from:Ue(j.from),to:Ue(j.to)}}:{reason:`${P}-day`,details:Ue(j)}}function Kt(P,j,oe){return P.from!==void 0?{from:he.value(P.from,j,oe),to:he.value(P.to,j,oe)}:he.value(P,j,oe)}function Pn(P){let j;if(e.multiple===!0)if(P.from!==void 0){const oe=Mn(P.from),Se=Mn(P.to),Ce=z.value.filter(Me=>Me.dateHash<oe||Me.dateHash>Se),We=F.value.filter(({from:Me,to:$e})=>$e.dateHash<oe||Me.dateHash>Se);j=Ce.concat(We).concat(P).map(Me=>Kt(Me))}else{const oe=D.value.slice();oe.push(Kt(P)),j=oe}else j=Kt(P);pt(j,"add",P)}function re(P){if(e.noUnset===!0)return;let j=null;if(e.multiple===!0&&Array.isArray(e.modelValue)===!0){const oe=Kt(P);P.from!==void 0?j=e.modelValue.filter(Se=>Se.from!==void 0?Se.from!==oe.from&&Se.to!==oe.to:!0):j=e.modelValue.filter(Se=>Se!==oe),j.length===0&&(j=null)}pt(j,"remove",P)}function ye(P,j,oe){const Se=z.value.concat(F.value).map(We=>Kt(We,P,j)).filter(We=>We.from!==void 0?We.from.dateHash!==null&&We.to.dateHash!==null:We.dateHash!==null),Ce=(e.multiple===!0?Se:Se[0])||null;se(Ce),n("update:modelValue",Ce,oe)}function Pe(){if(e.minimal!==!0)return r.h("div",{class:"q-date__header "+u.value},[r.h("div",{class:"relative-position"},[r.h(r.Transition,{name:"q-transition--fade"},()=>r.h("div",{key:"h-yr-"+le.value,class:"q-date__header-subtitle q-date__header-link "+(w.value==="Years"?"q-date__header-link--active":"cursor-pointer"),tabindex:s.value,...i("vY",{onClick(){w.value="Years"},onKeyup(P){P.keyCode===13&&(w.value="Years")}})},[le.value]))]),r.h("div",{class:"q-date__header-title relative-position flex no-wrap"},[r.h("div",{class:"relative-position col"},[r.h(r.Transition,{name:"q-transition--fade"},()=>r.h("div",{key:"h-sub"+x.value,class:"q-date__header-title-label q-date__header-link "+(w.value==="Calendar"?"q-date__header-link--active":"cursor-pointer"),tabindex:s.value,...i("vC",{onClick(){w.value="Calendar"},onKeyup(P){P.keyCode===13&&(w.value="Calendar")}})},[x.value]))]),e.todayBtn===!0?r.h(Ze,{class:"q-date__header-today self-start",icon:o.iconSet.datetime.today,"aria-label":o.lang.date.today,flat:!0,size:"sm",round:!0,tabindex:s.value,onClick:me}):null])])}function Re({label:P,type:j,key:oe,dir:Se,goTo:Ce,boundaries:We,cls:Me}){return[r.h("div",{class:"row items-center q-date__arrow"},[r.h(Ze,{round:!0,dense:!0,size:"sm",flat:!0,icon:N.value[0],"aria-label":j==="Years"?o.lang.date.prevYear:o.lang.date.prevMonth,tabindex:s.value,disable:We.prev===!1,...i("go-#"+j,{onClick(){Ce(-1)}})})]),r.h("div",{class:"relative-position overflow-hidden flex flex-center"+Me},[r.h(r.Transition,{name:"q-transition--jump-"+Se},()=>r.h("div",{key:oe},[r.h(Ze,{flat:!0,dense:!0,noCaps:!0,label:P,tabindex:s.value,...i("view#"+j,{onClick:()=>{w.value=j}})})]))]),r.h("div",{class:"row items-center q-date__arrow"},[r.h(Ze,{round:!0,dense:!0,size:"sm",flat:!0,icon:N.value[1],"aria-label":j==="Years"?o.lang.date.nextYear:o.lang.date.nextMonth,tabindex:s.value,disable:We.next===!1,...i("go+#"+j,{onClick(){Ce(1)}})})])]}const ze={Calendar:()=>[r.h("div",{key:"calendar-view",class:"q-date__view q-date__calendar"},[r.h("div",{class:"q-date__navigation row items-center no-wrap"},Re({label:p.value.months[m.value.month-1],type:"Months",key:m.value.month,dir:C.value,goTo:V,boundaries:ge.value.month,cls:" col"}).concat(Re({label:m.value.year,type:"Years",key:m.value.year,dir:R.value,goTo:de,boundaries:ge.value.year,cls:""}))),r.h("div",{class:"q-date__calendar-weekdays row items-center no-wrap"},ue.value.map(P=>r.h("div",{class:"q-date__calendar-item"},[r.h("div",P)]))),r.h("div",{class:"q-date__calendar-days-container relative-position overflow-hidden"},[r.h(r.Transition,{name:"q-transition--slide-"+C.value},()=>r.h("div",{key:fe.value,class:"q-date__calendar-days fit"},K.value.map(P=>r.h("div",{class:P.classes},[P.in===!0?r.h(Ze,{class:P.today===!0?"q-date__today":"",dense:!0,flat:P.flat,unelevated:P.unelevated,color:P.color,textColor:P.textColor,label:P.i,tabindex:s.value,...i("day#"+P.i,{onClick:()=>{dt(P.i)},onMouseover:()=>{st(P.i)}})},P.event!==!1?()=>r.h("div",{class:"q-date__event bg-"+P.event}):null):r.h("div",""+P.i)]))))])])],Months(){const P=m.value.year===y.value.year,j=Se=>_e.value!==null&&m.value.year===_e.value.year&&_e.value.month>Se||G.value!==null&&m.value.year===G.value.year&&G.value.month<Se,oe=p.value.monthsShort.map((Se,Ce)=>{const We=m.value.month===Ce+1;return r.h("div",{class:"q-date__months-item flex flex-center"},[r.h(Ze,{class:P===!0&&y.value.month===Ce+1?"q-date__today":null,flat:We!==!0,label:Se,unelevated:We,color:We===!0?O.value:null,textColor:We===!0?k.value:null,tabindex:s.value,disable:j(Ce+1),...i("month#"+Ce,{onClick:()=>{Be(Ce+1)}})})])});return e.yearsInMonthView===!0&&oe.unshift(r.h("div",{class:"row no-wrap full-width"},[Re({label:m.value.year,type:"Years",key:m.value.year,dir:R.value,goTo:de,boundaries:ge.value.year,cls:" col"})])),r.h("div",{key:"months-view",class:"q-date__view q-date__months flex flex-center"},oe)},Years(){const P=q.value,j=P+Ln,oe=[],Se=Ce=>_e.value!==null&&_e.value.year>Ce||G.value!==null&&G.value.year<Ce;for(let Ce=P;Ce<=j;Ce++){const We=m.value.year===Ce;oe.push(r.h("div",{class:"q-date__years-item flex flex-center"},[r.h(Ze,{key:"yr"+Ce,class:y.value.year===Ce?"q-date__today":null,flat:!We,label:Ce,dense:!0,unelevated:We,color:We===!0?O.value:null,textColor:We===!0?k.value:null,tabindex:s.value,disable:Se(Ce),...i("yr#"+Ce,{onClick:()=>{xe(Ce)}})})]))}return r.h("div",{class:"q-date__view q-date__years flex flex-center"},[r.h("div",{class:"col-auto"},[r.h(Ze,{round:!0,dense:!0,flat:!0,icon:N.value[0],"aria-label":o.lang.date.prevRangeYears(Ln),tabindex:s.value,disable:Se(P),...i("y-",{onClick:()=>{q.value-=Ln}})})]),r.h("div",{class:"q-date__years-content col self-stretch row items-center"},oe),r.h("div",{class:"col-auto"},[r.h(Ze,{round:!0,dense:!0,flat:!0,icon:N.value[1],"aria-label":o.lang.date.nextRangeYears(Ln),tabindex:s.value,disable:Se(j),...i("y+",{onClick:()=>{q.value+=Ln}})})])])}};function dt(P){const j={...m.value,day:P};if(e.range===!1){Le(j,fe.value);return}if(T.value===null){const oe=K.value.find(Ce=>Ce.fill!==!0&&Ce.i===P);if(e.noUnset!==!0&&oe.range!==void 0){re({target:j,from:oe.range.from,to:oe.range.to});return}if(oe.selected===!0){re(j);return}const Se=Mn(j);T.value={init:j,initHash:Se,final:j,finalHash:Se},n("rangeStart",Ue(j))}else{const oe=T.value.initHash,Se=Mn(j),Ce=oe<=Se?{from:T.value.init,to:j}:{from:j,to:T.value.init};T.value=null,Pn(oe===Se?j:{target:j,...Ce}),n("rangeEnd",{from:Ue(Ce.from),to:Ue(Ce.to)})}}function st(P){if(T.value!==null){const j={...m.value,day:P};Object.assign(T.value,{final:j,finalHash:Mn(j)})}}return Object.assign(a,{setToday:me,setView:J,offsetCalendar:ae,setCalendarTo:be,setEditingRange:ke}),()=>{const P=[r.h("div",{class:"q-date__content col relative-position"},[r.h(r.Transition,{name:"q-transition--fade"},ze[w.value])])],j=Te(t.default);return j!==void 0&&P.push(r.h("div",{class:"q-date__actions"},j)),e.name!==void 0&&e.disable!==!0&&h(P,"push"),r.h("div",{class:M.value,...X.value},[Pe(),r.h("div",{ref:f,class:"q-date__main col column",tabindex:-1},P)])}}});function zf(e,t,n){function a(){}return r.onBeforeUnmount(()=>{e.value===!0&&void 0}),{removeFromHistory:a,addToHistory(){}}}var Ta=0,cs,ds,qa,fs=!1,Hf,jf,Uf,mr=null;function Jy(e){Zy(e)&&Fe(e)}function Zy(e){if(e.target===document.body||e.target.classList.contains("q-layout__backdrop"))return!0;const t=o0(e),n=e.shiftKey&&!e.deltaX,a=!n&&Math.abs(e.deltaX)<=Math.abs(e.deltaY),o=n||a?e.deltaY:e.deltaX;for(let l=0;l<t.length;l++){const i=t[l];if(j0(i,a))return a?o<0&&i.scrollTop===0?!0:o>0&&i.scrollTop+i.clientHeight===i.scrollHeight:o<0&&i.scrollLeft===0?!0:o>0&&i.scrollLeft+i.clientWidth===i.scrollWidth}return!0}function Qf(e){e.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function Ko(e){fs!==!0&&(fs=!0,requestAnimationFrame(()=>{fs=!1;const{height:t}=e.target,{clientHeight:n,scrollTop:a}=document.scrollingElement;(qa===void 0||t!==window.innerHeight)&&(qa=n-t,document.scrollingElement.scrollTop=a),a>qa&&(document.scrollingElement.scrollTop-=Math.ceil((a-qa)/8))}))}function Wf(e){const t=document.body,n=window.visualViewport!==void 0;if(e==="add"){const{overflowY:a,overflowX:o}=window.getComputedStyle(t);cs=xo(window),ds=Fn(window),Hf=t.style.left,jf=t.style.top,Uf=window.location.href,t.style.left=`-${cs}px`,t.style.top=`-${ds}px`,o!=="hidden"&&(o==="scroll"||t.scrollWidth>window.innerWidth)&&t.classList.add("q-body--force-scrollbar-x"),a!=="hidden"&&(a==="scroll"||t.scrollHeight>window.innerHeight)&&t.classList.add("q-body--force-scrollbar-y"),t.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,He.is.ios===!0&&(n===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",Ko,lt.passiveCapture),window.visualViewport.addEventListener("scroll",Ko,lt.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",Qf,lt.passiveCapture))}He.is.desktop===!0&&He.is.mac===!0&&window[`${e}EventListener`]("wheel",Jy,lt.notPassive),e==="remove"&&(He.is.ios===!0&&(n===!0?(window.visualViewport.removeEventListener("resize",Ko,lt.passiveCapture),window.visualViewport.removeEventListener("scroll",Ko,lt.passiveCapture)):window.removeEventListener("scroll",Qf,lt.passiveCapture)),t.classList.remove("q-body--prevent-scroll"),t.classList.remove("q-body--force-scrollbar-x"),t.classList.remove("q-body--force-scrollbar-y"),document.qScrollPrevented=!1,t.style.left=Hf,t.style.top=jf,window.location.href===Uf&&window.scrollTo(cs,ds),qa=void 0)}function vs(e){let t="add";if(e===!0){if(Ta++,mr!==null){clearTimeout(mr),mr=null;return}if(Ta>1)return}else{if(Ta===0||(Ta--,Ta>0))return;if(t="remove",He.is.ios===!0&&He.is.nativeMobile===!0){mr!==null&&clearTimeout(mr),mr=setTimeout(()=>{Wf(t),mr=null},100);return}}Wf(t)}function Kf(){let e;return{preventBodyScroll(t){t!==e&&(e!==void 0||t===!0)&&(e=t,vs(t))}}}var Yo=0,Vy={standard:"fixed-full flex-center",top:"fixed-top justify-center",bottom:"fixed-bottom justify-center",right:"fixed-right items-center",left:"fixed-left items-center"},Yf={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},Go=ie({name:"QDialog",inheritAttrs:!1,props:{...Ir,...ir,transitionShow:String,transitionHide:String,persistent:Boolean,autoClose:Boolean,allowFocusOutside:Boolean,noEscDismiss:Boolean,noBackdropDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,noShake:Boolean,seamless:Boolean,maximized:Boolean,fullWidth:Boolean,fullHeight:Boolean,square:Boolean,backdropFilter:String,position:{type:String,default:"standard",validator:e=>["standard","top","bottom","left","right"].includes(e)}},emits:[...Dr,"shake","click","escapeKey"],setup(e,{slots:t,emit:n,attrs:a}){const o=r.getCurrentInstance(),l=r.ref(null),i=r.ref(!1),s=r.ref(!1);let u=null,d=null,c,g;const v=r.computed(()=>e.persistent!==!0&&e.noRouteDismiss!==!0&&e.seamless!==!0),{preventBodyScroll:h}=Kf(),{registerTimeout:f}=On(),{registerTick:_,removeTick:p}=Hr(),{transitionProps:b,transitionStyle:S}=Co(e,()=>Yf[e.position][0],()=>Yf[e.position][1]),y=r.computed(()=>S.value+(e.backdropFilter!==void 0?`;backdrop-filter:${e.backdropFilter};-webkit-backdrop-filter:${e.backdropFilter}`:"")),{showPortal:m,hidePortal:w,portalIsAccessible:E,renderPortal:C}=Mi(o,l,Y,"dialog"),{hide:R}=$r({showing:i,hideOnRouteChange:v,handleShow:O,handleHide:k,processOnMount:!0});zf(i);const H=r.computed(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${e.maximized===!0?"maximized":"minimized"} q-dialog__inner--${e.position} ${Vy[e.position]}`+(s.value===!0?" q-dialog__inner--animating":"")+(e.fullWidth===!0?" q-dialog__inner--fullwidth":"")+(e.fullHeight===!0?" q-dialog__inner--fullheight":"")+(e.square===!0?" q-dialog__inner--square":"")),q=r.computed(()=>i.value===!0&&e.seamless!==!0),T=r.computed(()=>e.autoClose===!0?{onClick:he}:{}),M=r.computed(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${q.value===!0?"modal":"seamless"}`,a.class]);r.watch(()=>e.maximized,B=>{i.value===!0&&Z(B)}),r.watch(q,B=>{h(B),B===!0?(Hd(x),Fd(z)):(Pi(x),qo(z))});function O(B){d=e.noRefocus===!1&&document.activeElement!==null?document.activeElement:null,Z(e.maximized),m(),s.value=!0,e.noFocus!==!0?(document.activeElement?.blur(),_(A)):p(),f(()=>{if(o.proxy.$q.platform.is.ios===!0){if(e.seamless!==!0&&document.activeElement){const{top:le,bottom:N}=document.activeElement.getBoundingClientRect(),{innerHeight:U}=window,ue=window.visualViewport!==void 0?window.visualViewport.height:U;le>0&&N>ue/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-ue,N>=U?1/0:Math.ceil(document.scrollingElement.scrollTop+N-ue/2))),document.activeElement.scrollIntoView()}g=!0,l.value.click(),g=!1}m(!0),s.value=!1,n("show",B)},e.transitionDuration)}function k(B){p(),F(!0),s.value=!0,w(),d!==null&&(((B?.type.indexOf("key")===0?d.closest('[tabindex]:not([tabindex^="-"])'):void 0)||d).focus(),d=null),f(()=>{w(!0),s.value=!1,n("hide",B)},e.transitionDuration)}function A(B){Br(()=>{let le=l.value;if(le!==null){if(B!==void 0){const N=le.querySelector(B);if(N!==null){N.focus({preventScroll:!0});return}}le.contains(document.activeElement)!==!0&&(le=le.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||le.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||le.querySelector("[autofocus], [data-autofocus]")||le,le.focus({preventScroll:!0}))}})}function D(B){B&&typeof B.focus=="function"?B.focus({preventScroll:!0}):A(),n("shake");const le=l.value;le!==null&&(le.classList.remove("q-animate--scale"),le.classList.add("q-animate--scale"),u!==null&&clearTimeout(u),u=setTimeout(()=>{u=null,l.value!==null&&(le.classList.remove("q-animate--scale"),A())},170))}function z(){e.seamless!==!0&&(e.persistent===!0||e.noEscDismiss===!0?e.maximized!==!0&&e.noShake!==!0&&D():(n("escapeKey"),R()))}function F(B){u!==null&&(clearTimeout(u),u=null),(B===!0||i.value===!0)&&(Z(!1),e.seamless!==!0&&(h(!1),Pi(x),qo(z))),B!==!0&&(d=null)}function Z(B){B===!0?c!==!0&&(Yo<1&&document.body.classList.add("q-body--dialog"),Yo++,c=!0):c===!0&&(Yo<2&&document.body.classList.remove("q-body--dialog"),Yo--,c=!1)}function he(B){g!==!0&&(R(B),n("click",B))}function $(B){e.persistent!==!0&&e.noBackdropDismiss!==!0?R(B):e.noShake!==!0&&D()}function x(B){e.allowFocusOutside!==!0&&E.value===!0&&Cd(l.value,B.target)!==!0&&A('[tabindex]:not([tabindex="-1"])')}Object.assign(o.proxy,{focus:A,shake:D,__updateRefocusTarget(B){d=B||null}}),r.onBeforeUnmount(F);function Y(){return r.h("div",{role:"dialog","aria-modal":q.value===!0?"true":"false",...a,class:M.value},[r.h(r.Transition,{name:"q-transition--fade",appear:!0},()=>q.value===!0?r.h("div",{class:"q-dialog__backdrop fixed-full",style:y.value,"aria-hidden":"true",tabindex:-1,onClick:$}):null),r.h(r.Transition,b.value,()=>i.value===!0?r.h("div",{ref:l,class:H.value,style:S.value,tabindex:-1,...T.value},Te(t.default)):null)])}return C}}),Gf=150;ie({name:"QDrawer",inheritAttrs:!1,props:{...Ir,...Ye,side:{type:String,default:"left",validator:e=>["left","right"].includes(e)},width:{type:Number,default:300},mini:Boolean,miniToOverlay:Boolean,miniWidth:{type:Number,default:57},noMiniAnimation:Boolean,breakpoint:{type:Number,default:1023},showIfAbove:Boolean,behavior:{type:String,validator:e=>["default","desktop","mobile"].includes(e),default:"default"},bordered:Boolean,elevated:Boolean,overlay:Boolean,persistent:Boolean,noSwipeOpen:Boolean,noSwipeClose:Boolean,noSwipeBackdrop:Boolean},emits:[...Dr,"onLayout","miniState"],setup(e,{slots:t,emit:n,attrs:a}){const o=r.getCurrentInstance(),{proxy:{$q:l}}=o,i=Ge(e,l),{preventBodyScroll:s}=Kf(),{registerTimeout:u,removeTimeout:d}=On(),c=r.inject(or,et);if(c===et)return console.error("QDrawer needs to be child of QLayout"),et;let g,v=null,h;const f=r.ref(e.behavior==="mobile"||e.behavior!=="desktop"&&c.totalWidth.value<=e.breakpoint),_=r.computed(()=>e.mini===!0&&f.value!==!0),p=r.computed(()=>_.value===!0?e.miniWidth:e.width),b=r.ref(e.showIfAbove===!0&&f.value===!1?!0:e.modelValue===!0),S=r.computed(()=>e.persistent!==!0&&(f.value===!0||F.value===!0));function y(K,X){if(K!==!1&&c.animate(),_e(0),f.value===!0){const se=c.instances[k.value];se?.belowBreakpoint===!0&&se.hide(!1),G(1),c.isContainer.value!==!0&&s(!0)}else G(0),K!==!1&&ge(!1);u(()=>{K!==!1&&ge(!0),X!==!0&&n("show",K)},Gf)}function m(K,X){K!==!1&&c.animate(),G(0),_e(H.value*p.value),fe(),X!==!0?u(()=>{n("hide",K)},Gf):d()}const{show:w,hide:E}=$r({showing:b,hideOnRouteChange:S,handleShow:y,handleHide:m});zf(b);const C={belowBreakpoint:f,hide:E},R=r.computed(()=>e.side==="right"),H=r.computed(()=>(l.lang.rtl===!0?-1:1)*(R.value===!0?1:-1)),q=r.ref(0),T=r.ref(!1),M=r.ref(!1),O=r.ref(p.value*H.value),k=r.computed(()=>R.value===!0?"left":"right"),A=r.computed(()=>b.value===!0&&f.value===!1&&e.overlay===!1?e.miniToOverlay===!0?e.miniWidth:p.value:0),D=r.computed(()=>e.overlay===!0||e.miniToOverlay===!0||c.view.value.indexOf(R.value?"R":"L")!==-1||l.platform.is.ios===!0&&c.isContainer.value===!0),z=r.computed(()=>e.overlay===!1&&b.value===!0&&f.value===!1),F=r.computed(()=>e.overlay===!0&&b.value===!0&&f.value===!1),Z=r.computed(()=>"fullscreen q-drawer__backdrop"+(b.value===!1&&T.value===!1?" hidden":"")),he=r.computed(()=>({backgroundColor:`rgba(0,0,0,${q.value*.4})`})),$=r.computed(()=>R.value===!0?c.rows.value.top[2]==="r":c.rows.value.top[0]==="l"),x=r.computed(()=>R.value===!0?c.rows.value.bottom[2]==="r":c.rows.value.bottom[0]==="l"),Y=r.computed(()=>{const K={};return c.header.space===!0&&$.value===!1&&(D.value===!0?K.top=`${c.header.offset}px`:c.header.space===!0&&(K.top=`${c.header.size}px`)),c.footer.space===!0&&x.value===!1&&(D.value===!0?K.bottom=`${c.footer.offset}px`:c.footer.space===!0&&(K.bottom=`${c.footer.size}px`)),K}),B=r.computed(()=>{const K={width:`${p.value}px`,transform:`translateX(${O.value}px)`};return f.value===!0?K:Object.assign(K,Y.value)}),le=r.computed(()=>"q-drawer__content fit "+(c.isContainer.value!==!0?"scroll":"overflow-auto")),N=r.computed(()=>`q-drawer q-drawer--${e.side}`+(M.value===!0?" q-drawer--mini-animate":"")+(e.bordered===!0?" q-drawer--bordered":"")+(i.value===!0?" q-drawer--dark q-dark":"")+(T.value===!0?" no-transition":b.value===!0?"":" q-layout--prevent-focus")+(f.value===!0?" fixed q-drawer--on-top q-drawer--mobile q-drawer--top-padding":` q-drawer--${_.value===!0?"mini":"standard"}`+(D.value===!0||z.value!==!0?" fixed":"")+(e.overlay===!0||e.miniToOverlay===!0?" q-drawer--on-top":"")+($.value===!0?" q-drawer--top-padding":""))),U=r.computed(()=>{const K=l.lang.rtl===!0?e.side:k.value;return[[rn,we,void 0,{[K]:!0,mouse:!0}]]}),ue=r.computed(()=>{const K=l.lang.rtl===!0?k.value:e.side;return[[rn,Ae,void 0,{[K]:!0,mouse:!0}]]}),W=r.computed(()=>{const K=l.lang.rtl===!0?k.value:e.side;return[[rn,Ae,void 0,{[K]:!0,mouse:!0,mouseAllDir:!0}]]});function ve(){I(f,e.behavior==="mobile"||e.behavior!=="desktop"&&c.totalWidth.value<=e.breakpoint)}r.watch(f,K=>{K===!0?(g=b.value,b.value===!0&&E(!1)):e.overlay===!1&&e.behavior!=="mobile"&&g!==!1&&(b.value===!0?(_e(0),G(0),fe()):w(!1))}),r.watch(()=>e.side,(K,X)=>{c.instances[X]===C&&(c.instances[X]=void 0,c[X].space=!1,c[X].offset=0),c.instances[K]=C,c[K].size=p.value,c[K].space=z.value,c[K].offset=A.value}),r.watch(c.totalWidth,()=>{(c.isContainer.value===!0||document.qScrollPrevented!==!0)&&ve()}),r.watch(()=>e.behavior+e.breakpoint,ve),r.watch(c.isContainer,K=>{b.value===!0&&s(K!==!0),K===!0&&ve()}),r.watch(c.scrollbarWidth,()=>{_e(b.value===!0?0:void 0)}),r.watch(A,K=>{L("offset",K)}),r.watch(z,K=>{n("onLayout",K),L("space",K)}),r.watch(R,()=>{_e()}),r.watch(p,K=>{_e(),te(e.miniToOverlay,K)}),r.watch(()=>e.miniToOverlay,K=>{te(K,p.value)}),r.watch(()=>l.lang.rtl,()=>{_e()}),r.watch(()=>e.mini,()=>{e.noMiniAnimation||e.modelValue===!0&&(pe(),c.animate())}),r.watch(_,K=>{n("miniState",K)});function _e(K){K===void 0?r.nextTick(()=>{K=b.value===!0?0:p.value,_e(H.value*K)}):(c.isContainer.value===!0&&R.value===!0&&(f.value===!0||Math.abs(K)===p.value)&&(K+=H.value*c.scrollbarWidth.value),O.value=K)}function G(K){q.value=K}function ge(K){const X=K===!0?"remove":c.isContainer.value!==!0?"add":"";X!==""&&document.body.classList[X]("q-body--drawer-toggle")}function pe(){v!==null&&clearTimeout(v),o.proxy&&o.proxy.$el&&o.proxy.$el.classList.add("q-drawer--mini-animate"),M.value=!0,v=setTimeout(()=>{v=null,M.value=!1,o?.proxy?.$el?.classList.remove("q-drawer--mini-animate")},150)}function we(K){if(b.value!==!1)return;const X=p.value,se=at(K.distance.x,0,X);if(K.isFinal===!0){se>=Math.min(75,X)===!0?w():(c.animate(),G(0),_e(H.value*X)),T.value=!1;return}_e((l.lang.rtl===!0?R.value!==!0:R.value)?Math.max(X-se,0):Math.min(0,se-X)),G(at(se/X,0,1)),K.isFirst===!0&&(T.value=!0)}function Ae(K){if(b.value!==!0)return;const X=p.value,se=K.direction===e.side,me=(l.lang.rtl===!0?se!==!0:se)?at(K.distance.x,0,X):0;if(K.isFinal===!0){Math.abs(me)<Math.min(75,X)===!0?(c.animate(),G(1),_e(0)):E(),T.value=!1;return}_e(H.value*me),G(at(1-me/X,0,1)),K.isFirst===!0&&(T.value=!0)}function fe(){s(!1),ge(!0)}function L(K,X){c.update(e.side,K,X)}function I(K,X){K.value!==X&&(K.value=X)}function te(K,X){L("size",K===!0?e.miniWidth:X)}return c.instances[e.side]=C,te(e.miniToOverlay,p.value),L("space",z.value),L("offset",A.value),e.showIfAbove===!0&&e.modelValue!==!0&&b.value===!0&&e["onUpdate:modelValue"]!==void 0&&n("update:modelValue",!0),r.onMounted(()=>{n("onLayout",z.value),n("miniState",_.value),g=e.showIfAbove===!0;const K=()=>{(b.value===!0?y:m)(!1,!0)};if(c.totalWidth.value!==0){r.nextTick(K);return}h=r.watch(c.totalWidth,()=>{h(),h=void 0,b.value===!1&&e.showIfAbove===!0&&f.value===!1?w(!1):K()})}),r.onBeforeUnmount(()=>{h?.(),v!==null&&(clearTimeout(v),v=null),b.value===!0&&fe(),c.instances[e.side]===C&&(c.instances[e.side]=void 0,L("size",0),L("offset",0),L("space",!1))}),()=>{const K=[];f.value===!0&&(e.noSwipeOpen===!1&&K.push(r.withDirectives(r.h("div",{key:"open",class:`q-drawer__opener fixed-${e.side}`,"aria-hidden":"true"}),U.value)),K.push(en("div",{ref:"backdrop",class:Z.value,style:he.value,"aria-hidden":"true",onClick:E},void 0,"backdrop",e.noSwipeBackdrop!==!0&&b.value===!0,()=>W.value)));const X=_.value===!0&&t.mini!==void 0,se=[r.h("div",{...a,key:""+X,class:[le.value,a.class]},X===!0?t.mini():Te(t.default))];return e.elevated===!0&&b.value===!0&&se.push(r.h("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),K.push(en("aside",{ref:"content",class:N.value,style:B.value},se,"contentclose",e.noSwipeClose!==!0&&f.value===!0,()=>ue.value)),r.h("div",{class:"q-drawer-container"},K)}}});function Xf(e,t){if(t&&e===t)return null;const n=e.nodeName.toLowerCase();if(["div","li","ul","ol","blockquote"].includes(n)===!0)return e;const a=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle,o=a.display;return o==="block"||o==="table"?e:Xf(e.parentNode)}function ms(e,t,n){return!e||e===document.body?!1:n===!0&&e===t||(t===document?document.body:t).contains(e.parentNode)}function Jf(e,t,n){if(n||(n=document.createRange(),n.selectNode(e),n.setStart(e,0)),t.count===0)n.setEnd(e,t.count);else if(t.count>0)if(e.nodeType===Node.TEXT_NODE)e.textContent.length<t.count?t.count-=e.textContent.length:(n.setEnd(e,t.count),t.count=0);else for(let a=0;t.count!==0&&a<e.childNodes.length;a++)n=Jf(e.childNodes[a],t,n);return n}var e_=/^https?:\/\//,t_=class{constructor(e,t){this.el=e,this.eVm=t,this._range=null}get selection(){if(this.el){const e=document.getSelection();if(ms(e.anchorNode,this.el,!0)&&ms(e.focusNode,this.el,!0))return e}return null}get hasSelection(){return this.selection!==null?this.selection.toString().length!==0:!1}get range(){const e=this.selection;return e?.rangeCount?e.getRangeAt(0):this._range}get parent(){const e=this.range;if(e!==null){const t=e.startContainer;return t.nodeType===document.ELEMENT_NODE?t:t.parentNode}return null}get blockParent(){const e=this.parent;return e!==null?Xf(e,this.el):null}save(e=this.range){e!==null&&(this._range=e)}restore(e=this._range){const t=document.createRange(),n=document.getSelection();e!==null?(t.setStart(e.startContainer,e.startOffset),t.setEnd(e.endContainer,e.endOffset),n.removeAllRanges(),n.addRange(t)):(n.selectAllChildren(this.el),n.collapseToEnd())}savePosition(){let e=-1,t;const n=document.getSelection(),a=this.el.parentNode;if(n.focusNode&&ms(n.focusNode,a))for(t=n.focusNode,e=n.focusOffset;t&&t!==a;)t!==this.el&&t.previousSibling?(t=t.previousSibling,e+=t.textContent.length):t=t.parentNode;this.savedPos=e}restorePosition(e=0){if(this.savedPos>0&&this.savedPos<e){const t=window.getSelection(),n=Jf(this.el,{count:this.savedPos});n&&(n.collapse(!1),t.removeAllRanges(),t.addRange(n))}}hasParent(e,t){const n=t?this.parent:this.blockParent;return n!==null?n.nodeName.toLowerCase()===e.toLowerCase():!1}hasParents(e,t,n=this.parent){return n===null?!1:e.includes(n.nodeName.toLowerCase())===!0?!0:t===!0?this.hasParents(e,t,n.parentNode):!1}is(e,t){if(this.selection===null)return!1;switch(e){case"formatBlock":return t==="DIV"&&this.parent===this.el||this.hasParent(t,t==="PRE");case"link":return this.hasParent("A",!0);case"fontSize":return document.queryCommandValue(e)===t;case"fontName":const n=document.queryCommandValue(e);return n===`"${t}"`||n===t;case"fullscreen":return this.eVm.inFullscreen.value;case"viewsource":return this.eVm.isViewingSource.value;case void 0:return!1;default:const a=document.queryCommandState(e);return t!==void 0?a===t:a}}getParentAttribute(e){return this.parent!==null?this.parent.getAttribute(e):null}can(e){if(e==="outdent")return this.hasParents(["blockquote","li"],!0);if(e==="indent")return this.hasParents(["li"],!0);if(e==="link")return this.selection!==null||this.is("link")}apply(e,t,n=wt){if(e==="formatBlock")["BLOCKQUOTE","H1","H2","H3","H4","H5","H6"].includes(t)&&this.is(e,t)&&(e="outdent",t=null),t==="PRE"&&this.is(e,"PRE")&&(t="P");else if(e==="print"){n();const a=window.open();a.document.write(`
18
+ <!doctype html>
19
+ <html>
20
+ <head>
21
+ <title>Print - ${document.title}</title>
22
+ </head>
23
+ <body>
24
+ <div>${this.el.innerHTML}</div>
25
+ </body>
26
+ </html>
27
+ `),a.print(),a.close();return}else if(e==="link"){const a=this.getParentAttribute("href");if(a===null){const o=this.selectWord(this.selection),l=o?o.toString():"";if(!l.length&&(!this.range||!this.range.cloneContents().querySelector("img")))return;this.eVm.editLinkUrl.value=e_.test(l)?l:"https://",document.execCommand("createLink",!1,this.eVm.editLinkUrl.value),this.save(o.getRangeAt(0))}else this.eVm.editLinkUrl.value=a,this.range.selectNodeContents(this.parent),this.save();return}else if(e==="fullscreen"){this.eVm.toggleFullscreen(),n();return}else if(e==="viewsource"){this.eVm.isViewingSource.value=this.eVm.isViewingSource.value===!1,this.eVm.setContent(this.eVm.props.modelValue),n();return}document.execCommand(e,!1,t),n()}selectWord(e){if(e===null||e.isCollapsed!==!0||e.modify===void 0)return e;const t=document.createRange();t.setStart(e.anchorNode,e.anchorOffset),t.setEnd(e.focusNode,e.focusOffset);const n=t.collapsed?["backward","forward"]:["forward","backward"];t.detach();const a=e.focusNode,o=e.focusOffset;return e.collapse(e.anchorNode,e.anchorOffset),e.modify("move",n[0],"character"),e.modify("move",n[1],"word"),e.extend(a,o),e.modify("extend",n[1],"character"),e.modify("extend",n[0],"word"),e}},n_=ie({name:"QTooltip",inheritAttrs:!1,props:{...Md,...Ir,...ir,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null},transitionShow:{...ir.transitionShow,default:"jump-down"},transitionHide:{...ir.transitionHide,default:"jump-up"},anchor:{type:String,default:"bottom middle",validator:Ao},self:{type:String,default:"top middle",validator:Ao},offset:{type:Array,default:()=>[14,14],validator:Wd},scrollTarget:sr,delay:{type:Number,default:0},hideDelay:{type:Number,default:0},persistent:Boolean},emits:[...Dr],setup(e,{slots:t,emit:n,attrs:a}){let o,l;const i=r.getCurrentInstance(),{proxy:{$q:s}}=i,u=r.ref(null),d=r.ref(!1),c=r.computed(()=>Ro(e.anchor,s.lang.rtl)),g=r.computed(()=>Ro(e.self,s.lang.rtl)),v=r.computed(()=>e.persistent!==!0),{registerTick:h,removeTick:f}=Hr(),{registerTimeout:_}=On(),{transitionProps:p,transitionStyle:b}=Co(e),{localScrollTarget:S,changeScrollEvent:y,unconfigureScrollTarget:m}=Ad(e,he),{anchorEl:w,canShow:E,anchorEvents:C}=qi({showing:d,configureAnchorEl:Z}),{show:R,hide:H}=$r({showing:d,canShow:E,handleShow:O,handleHide:k,hideOnRouteChange:v,processOnMount:!0});Object.assign(C,{delayShow:z,delayHide:F});const{showPortal:q,hidePortal:T,renderPortal:M}=Mi(i,u,x,"tooltip");if(s.platform.is.mobile===!0){const Y={anchorEl:w,innerRef:u,onClickOutside(le){return H(le),le.target.classList.contains("q-dialog__backdrop")&&Fe(le),!0}},B=r.computed(()=>e.modelValue===null&&e.persistent!==!0&&d.value===!0);r.watch(B,le=>{(le===!0?jd:Lo)(Y)}),r.onBeforeUnmount(()=>{Lo(Y)})}function O(Y){q(),h(()=>{l=new MutationObserver(()=>D()),l.observe(u.value,{attributes:!1,childList:!0,characterData:!0,subtree:!0}),D(),he()}),o===void 0&&(o=r.watch(()=>s.screen.width+"|"+s.screen.height+"|"+e.self+"|"+e.anchor+"|"+s.lang.rtl,D)),_(()=>{q(!0),n("show",Y)},e.transitionDuration)}function k(Y){f(),T(),A(),_(()=>{T(!0),n("hide",Y)},e.transitionDuration)}function A(){l!==void 0&&(l.disconnect(),l=void 0),o!==void 0&&(o(),o=void 0),m(),Dt(C,"tooltipTemp")}function D(){Ii({targetEl:u.value,offset:e.offset,anchorEl:w.value,anchorOrigin:c.value,selfOrigin:g.value,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function z(Y){if(s.platform.is.mobile===!0){dn(),document.body.classList.add("non-selectable");const B=w.value,le=["touchmove","touchcancel","touchend","click"].map(N=>[B,N,"delayHide","passiveCapture"]);mt(C,"tooltipTemp",le)}_(()=>{R(Y)},e.delay)}function F(Y){s.platform.is.mobile===!0&&(Dt(C,"tooltipTemp"),dn(),setTimeout(()=>{document.body.classList.remove("non-selectable")},10)),_(()=>{H(Y)},e.hideDelay)}function Z(){if(e.noParentEvent===!0||w.value===null)return;const Y=s.platform.is.mobile===!0?[[w.value,"touchstart","delayShow","passive"]]:[[w.value,"mouseenter","delayShow","passive"],[w.value,"mouseleave","delayHide","passive"]];mt(C,"anchor",Y)}function he(){if(w.value!==null||e.scrollTarget!==void 0){S.value=pn(w.value,e.scrollTarget);const Y=e.noParentEvent===!0?D:H;y(S.value,Y)}}function $(){return d.value===!0?r.h("div",{...a,ref:u,class:["q-tooltip q-tooltip--style q-position-engine no-pointer-events",a.class],style:[a.style,b.value],role:"tooltip"},Te(t.default)):null}function x(){return r.h(r.Transition,p.value,$)}return r.onBeforeUnmount(A),Object.assign(i.proxy,{updatePosition:D}),M}}),Xo=ie({name:"QItem",props:{...Ye,...ba,tag:{type:String,default:"div"},active:{type:Boolean,default:null},clickable:Boolean,dense:Boolean,insetLevel:Number,tabindex:[String,Number],focused:Boolean,manualFocus:Boolean},emits:["click","keyup"],setup(e,{slots:t,emit:n}){const{proxy:{$q:a}}=r.getCurrentInstance(),o=Ge(e,a),{hasLink:l,linkAttrs:i,linkClass:s,linkTag:u,navigateOnClick:d}=yo(),c=r.ref(null),g=r.ref(null),v=r.computed(()=>e.clickable===!0||l.value===!0||e.tag==="label"),h=r.computed(()=>e.disable!==!0&&v.value===!0),f=r.computed(()=>"q-item q-item-type row no-wrap"+(e.dense===!0?" q-item--dense":"")+(o.value===!0?" q-item--dark":"")+(l.value===!0&&e.active===null?s.value:e.active===!0?` q-item--active${e.activeClass!==void 0?` ${e.activeClass}`:""}`:"")+(e.disable===!0?" disabled":"")+(h.value===!0?" q-item--clickable q-link cursor-pointer "+(e.manualFocus===!0?"q-manual-focusable":"q-focusable q-hoverable")+(e.focused===!0?" q-manual-focusable--focused":""):"")),_=r.computed(()=>e.insetLevel===void 0?null:{["padding"+(a.lang.rtl===!0?"Right":"Left")]:16+e.insetLevel*56+"px"});function p(y){h.value===!0&&(g.value!==null&&y.qAvoidFocus!==!0&&(y.qKeyEvent!==!0&&document.activeElement===c.value?g.value.focus():document.activeElement===g.value&&c.value.focus()),d(y))}function b(y){if(h.value===!0&&Vt(y,[13,32])===!0){Fe(y),y.qKeyEvent=!0;const m=new MouseEvent("click",y);m.qKeyEvent=!0,c.value.dispatchEvent(m)}n("keyup",y)}function S(){const y=ga(t.default,[]);return h.value===!0&&y.unshift(r.h("div",{class:"q-focus-helper",tabindex:-1,ref:g})),y}return()=>{const y={ref:c,class:f.value,style:_.value,role:"listitem",onClick:p,onKeyup:b};return h.value===!0?(y.tabindex=e.tabindex||"0",Object.assign(y,i.value)):v.value===!0&&(y["aria-disabled"]="true"),r.h(u.value,y,S())}}}),Un=ie({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(e,{slots:t}){const n=r.computed(()=>`q-item__section column q-item__section--${e.avatar===!0||e.side===!0||e.thumbnail===!0?"side":"main"}`+(e.top===!0?" q-item__section--top justify-start":" justify-center")+(e.avatar===!0?" q-item__section--avatar":"")+(e.thumbnail===!0?" q-item__section--thumbnail":"")+(e.noWrap===!0?" q-item__section--nowrap":""));return()=>r.h("div",{class:n.value},Te(t.default))}});function Zf(e,t,n){t.handler?t.handler(e,n,n.caret):n.runCmd(t.cmd,t.param)}function hs(e){return r.h("div",{class:"q-editor__toolbar-group"},e)}function Vf(e,t,n,a=!1){const o=a||(t.type==="toggle"?t.toggled?t.toggled(e):t.cmd&&e.caret.is(t.cmd,t.param):!1),l=[];if(e.$q.platform.is.desktop&&(t.tip||t.htmlTip)){const i=t.key?r.h("div",[r.h("small",`(CTRL + ${String.fromCharCode(t.key)})`)]):null;l.push(r.h(n_,{delay:1e3},()=>[r.h("div",t.htmlTip?{innerHTML:t.htmlTip}:t.tip),i]))}return r.h(Ze,{...e.buttonProps.value,icon:t.icon!==null?t.icon:void 0,color:o?t.toggleColor||e.props.toolbarToggleColor:t.color||e.props.toolbarColor,textColor:o&&!e.props.toolbarPush?null:t.textColor||e.props.toolbarTextColor,label:t.label,"aria-label":t.label==null?t.tip:void 0,disable:t.disable?typeof t.disable=="function"?t.disable(e):!0:!1,size:"sm",onClick(i){n?.(),Zf(i,t,e)}},()=>l)}function r_(e,t){const n=t.list==="only-icons";let a=t.label,o=t.icon!==null?t.icon:void 0,l,i;function s(){d.component.proxy.hide()}if(n)i=t.options.map(c=>{const g=c.type===void 0?e.caret.is(c.cmd,c.param):!1;return g&&(a=c.tip,o=c.icon!==null?c.icon:void 0),Vf(e,c,s,g)}),l=e.toolbarBackgroundClass.value,i=[hs(i)];else{const c=e.props.toolbarToggleColor!==void 0?`text-${e.props.toolbarToggleColor}`:null,g=e.props.toolbarTextColor!==void 0?`text-${e.props.toolbarTextColor}`:null,v=t.list==="no-icons";i=t.options.map(h=>{const f=h.disable?h.disable(e):!1,_=h.type===void 0?e.caret.is(h.cmd,h.param):!1;_&&(a=h.tip,o=h.icon!==null?h.icon:void 0);const p=h.htmlTip;return r.h(Xo,{active:_,activeClass:c,clickable:!0,disable:f,dense:!0,onClick(b){s(),b?.qAvoidFocus!==!0&&e.contentRef.value?.focus(),e.caret.restore(),Zf(b,h,e)}},()=>[v===!0?null:r.h(Un,{class:_?c:g,side:!0},()=>r.h(Xe,{name:h.icon!==null?h.icon:void 0})),r.h(Un,p?()=>r.h("div",{class:"text-no-wrap",innerHTML:h.htmlTip}):h.tip?()=>r.h("div",{class:"text-no-wrap"},h.tip):void 0)])}),l=[e.toolbarBackgroundClass.value,g]}const u=t.highlight&&a!==t.label,d=r.h(ey,{...e.buttonProps.value,noCaps:!0,noWrap:!0,color:u?e.props.toolbarToggleColor:e.props.toolbarColor,textColor:u&&!e.props.toolbarPush?null:e.props.toolbarTextColor,label:t.fixedLabel?t.label:a,icon:t.fixedIcon?t.icon!==null?t.icon:void 0:o,contentClass:l,onShow:c=>e.emit("dropdownShow",c),onHide:c=>e.emit("dropdownHide",c),onBeforeShow:c=>e.emit("dropdownBeforeShow",c),onBeforeHide:c=>e.emit("dropdownBeforeHide",c)},()=>i);return d}function a_(e){if(e.caret)return e.buttons.value.filter(t=>!e.isViewingSource.value||t.find(n=>n.cmd==="viewsource")).map(t=>hs(t.map(n=>e.isViewingSource.value&&n.cmd!=="viewsource"?!1:n.type==="slot"?Te(e.slots[n.slot]):n.type==="dropdown"?r_(e,n):Vf(e,n))))}function o_(e,t,n,a={}){const o=Object.keys(a);if(o.length===0)return{};const l={default_font:{cmd:"fontName",param:e,icon:n,tip:t}};return o.forEach(i=>{const s=a[i];l[i]={cmd:"fontName",param:s,icon:n,tip:s,htmlTip:`<font face="${s}">${s}</font>`}}),l}function l_(e){if(e.caret){const t=e.props.toolbarColor||e.props.toolbarTextColor;let n=e.editLinkUrl.value;const a=()=>{e.caret.restore(),n!==e.editLinkUrl.value&&document.execCommand("createLink",!1,n===""?" ":n),e.editLinkUrl.value=null};return[r.h("div",{class:`q-mx-xs text-${t}`},`${e.$q.lang.editor.url}: `),r.h("input",{key:"qedt_btm_input",class:"col q-editor__link-input",value:n,onInput:o=>{ft(o),n=o.target.value},onKeydown:o=>{if(rr(o)!==!0)switch(o.keyCode){case 13:return Et(o),a();case 27:Et(o),e.caret.restore(),(!e.editLinkUrl.value||e.editLinkUrl.value==="https://")&&document.execCommand("unlink"),e.editLinkUrl.value=null;break}}}),hs([r.h(Ze,{key:"qedt_btm_rem",...e.buttonProps.value,label:e.$q.lang.label.remove,noCaps:!0,onClick:()=>{e.caret.restore(),document.execCommand("unlink"),e.editLinkUrl.value=null}}),r.h(Ze,{key:"qedt_btm_upd",...e.buttonProps.value,label:e.$q.lang.label.update,noCaps:!0,onClick:a})])]}}var ev=/^on[A-Z]/;function tv(){const{attrs:e,vnode:t}=r.getCurrentInstance(),n={listeners:r.ref({}),attributes:r.ref({})};function a(){const o={},l={};for(const i in e)i!=="class"&&i!=="style"&&ev.test(i)===!1&&(o[i]=e[i]);for(const i in t.props)ev.test(i)===!0&&(l[i]=t.props[i]);n.attributes.value=o,n.listeners.value=l}return r.onBeforeUpdate(a),a(),n}var i_=Object.prototype.toString,gs=Object.prototype.hasOwnProperty,s_=new Set(["Boolean","Number","String","Function","Array","Date","RegExp"].map(e=>"[object "+e+"]"));function nv(e){if(e!==Object(e)||s_.has(i_.call(e))===!0||e.constructor&&gs.call(e,"constructor")===!1&&gs.call(e.constructor.prototype,"isPrototypeOf")===!1)return!1;let t;for(t in e);return t===void 0||gs.call(e,t)}function rv(){let e,t,n,a,o,l,i=arguments[0]||{},s=1,u=!1;const d=arguments.length;for(typeof i=="boolean"&&(u=i,i=arguments[1]||{},s=2),Object(i)!==i&&typeof i!="function"&&(i={}),d===s&&(i=this,s--);s<d;s++)if((e=arguments[s])!==null)for(t in e)n=i[t],a=e[t],i!==a&&(u===!0&&a&&((o=Array.isArray(a))||nv(a)===!0)?(o===!0?l=Array.isArray(n)===!0?n:[]:l=nv(n)===!0?n:{},i[t]=rv(u,l,a)):a!==void 0&&(i[t]=a));return i}ie({name:"QEditor",props:{...Ye,...Qi,modelValue:{type:String,required:!0},readonly:Boolean,disable:Boolean,minHeight:{type:String,default:"10rem"},maxHeight:String,height:String,definitions:Object,fonts:Object,placeholder:String,toolbar:{type:Array,validator:e=>e.length===0||e.every(t=>t.length),default:()=>[["left","center","right","justify"],["bold","italic","underline","strike"],["undo","redo"]]},toolbarColor:String,toolbarBg:String,toolbarTextColor:String,toolbarToggleColor:{type:String,default:"primary"},toolbarOutline:Boolean,toolbarPush:Boolean,toolbarRounded:Boolean,paragraphTag:{type:String,validator:e=>["div","p"].includes(e),default:"div"},contentStyle:Object,contentClass:[Object,Array,String],square:Boolean,flat:Boolean,dense:Boolean},emits:[...Wi,"update:modelValue","keydown","click","focus","blur","dropdownShow","dropdownHide","dropdownBeforeShow","dropdownBeforeHide","linkShow","linkHide"],setup(e,{slots:t,emit:n}){const{proxy:a}=r.getCurrentInstance(),{$q:o}=a,l=Ge(e,o),{inFullscreen:i,toggleFullscreen:s}=Ki(),u=tv(),d=r.ref(null),c=r.ref(null),g=r.ref(null),v=r.ref(!1),h=r.computed(()=>!e.readonly&&!e.disable);let f,_,p=e.modelValue;document.execCommand("defaultParagraphSeparator",!1,e.paragraphTag),f=window.getComputedStyle(document.body).fontFamily;const b=r.computed(()=>e.toolbarBg?` bg-${e.toolbarBg}`:""),S=r.computed(()=>({type:"a",flat:e.toolbarOutline!==!0&&e.toolbarPush!==!0,noWrap:!0,outline:e.toolbarOutline,push:e.toolbarPush,rounded:e.toolbarRounded,dense:!0,color:e.toolbarColor,disable:!h.value,size:"sm"})),y=r.computed(()=>{const N=o.lang.editor,U=o.iconSet.editor;return{bold:{cmd:"bold",icon:U.bold,tip:N.bold,key:66},italic:{cmd:"italic",icon:U.italic,tip:N.italic,key:73},strike:{cmd:"strikeThrough",icon:U.strikethrough,tip:N.strikethrough,key:83},underline:{cmd:"underline",icon:U.underline,tip:N.underline,key:85},unordered:{cmd:"insertUnorderedList",icon:U.unorderedList,tip:N.unorderedList},ordered:{cmd:"insertOrderedList",icon:U.orderedList,tip:N.orderedList},subscript:{cmd:"subscript",icon:U.subscript,tip:N.subscript,htmlTip:"x<subscript>2</subscript>"},superscript:{cmd:"superscript",icon:U.superscript,tip:N.superscript,htmlTip:"x<superscript>2</superscript>"},link:{cmd:"link",disable:ue=>ue.caret&&!ue.caret.can("link"),icon:U.hyperlink,tip:N.hyperlink,key:76},fullscreen:{cmd:"fullscreen",icon:U.toggleFullscreen,tip:N.toggleFullscreen,key:70},viewsource:{cmd:"viewsource",icon:U.viewSource,tip:N.viewSource},quote:{cmd:"formatBlock",param:"BLOCKQUOTE",icon:U.quote,tip:N.quote,key:81},left:{cmd:"justifyLeft",icon:U.left,tip:N.left},center:{cmd:"justifyCenter",icon:U.center,tip:N.center},right:{cmd:"justifyRight",icon:U.right,tip:N.right},justify:{cmd:"justifyFull",icon:U.justify,tip:N.justify},print:{type:"no-state",cmd:"print",icon:U.print,tip:N.print,key:80},outdent:{type:"no-state",disable:ue=>ue.caret&&!ue.caret.can("outdent"),cmd:"outdent",icon:U.outdent,tip:N.outdent},indent:{type:"no-state",disable:ue=>ue.caret&&!ue.caret.can("indent"),cmd:"indent",icon:U.indent,tip:N.indent},removeFormat:{type:"no-state",cmd:"removeFormat",icon:U.removeFormat,tip:N.removeFormat},hr:{type:"no-state",cmd:"insertHorizontalRule",icon:U.hr,tip:N.hr},undo:{type:"no-state",cmd:"undo",icon:U.undo,tip:N.undo,key:90},redo:{type:"no-state",cmd:"redo",icon:U.redo,tip:N.redo,key:89},h1:{cmd:"formatBlock",param:"H1",icon:U.heading1||U.heading,tip:N.heading1,htmlTip:`<h1 class="q-ma-none">${N.heading1}</h1>`},h2:{cmd:"formatBlock",param:"H2",icon:U.heading2||U.heading,tip:N.heading2,htmlTip:`<h2 class="q-ma-none">${N.heading2}</h2>`},h3:{cmd:"formatBlock",param:"H3",icon:U.heading3||U.heading,tip:N.heading3,htmlTip:`<h3 class="q-ma-none">${N.heading3}</h3>`},h4:{cmd:"formatBlock",param:"H4",icon:U.heading4||U.heading,tip:N.heading4,htmlTip:`<h4 class="q-ma-none">${N.heading4}</h4>`},h5:{cmd:"formatBlock",param:"H5",icon:U.heading5||U.heading,tip:N.heading5,htmlTip:`<h5 class="q-ma-none">${N.heading5}</h5>`},h6:{cmd:"formatBlock",param:"H6",icon:U.heading6||U.heading,tip:N.heading6,htmlTip:`<h6 class="q-ma-none">${N.heading6}</h6>`},p:{cmd:"formatBlock",param:e.paragraphTag,icon:U.heading,tip:N.paragraph},code:{cmd:"formatBlock",param:"PRE",icon:U.code,htmlTip:`<code>${N.code}</code>`},"size-1":{cmd:"fontSize",param:"1",icon:U.size1||U.size,tip:N.size1,htmlTip:`<font size="1">${N.size1}</font>`},"size-2":{cmd:"fontSize",param:"2",icon:U.size2||U.size,tip:N.size2,htmlTip:`<font size="2">${N.size2}</font>`},"size-3":{cmd:"fontSize",param:"3",icon:U.size3||U.size,tip:N.size3,htmlTip:`<font size="3">${N.size3}</font>`},"size-4":{cmd:"fontSize",param:"4",icon:U.size4||U.size,tip:N.size4,htmlTip:`<font size="4">${N.size4}</font>`},"size-5":{cmd:"fontSize",param:"5",icon:U.size5||U.size,tip:N.size5,htmlTip:`<font size="5">${N.size5}</font>`},"size-6":{cmd:"fontSize",param:"6",icon:U.size6||U.size,tip:N.size6,htmlTip:`<font size="6">${N.size6}</font>`},"size-7":{cmd:"fontSize",param:"7",icon:U.size7||U.size,tip:N.size7,htmlTip:`<font size="7">${N.size7}</font>`}}}),m=r.computed(()=>{const N=e.definitions||{},U=e.definitions||e.fonts?rv(!0,{},y.value,N,o_(f,o.lang.editor.defaultFont,o.iconSet.editor.font,e.fonts)):y.value;return e.toolbar.map(ue=>ue.map(W=>{if(W.options)return{type:"dropdown",icon:W.icon,label:W.label,size:"sm",dense:!0,fixedLabel:W.fixedLabel,fixedIcon:W.fixedIcon,highlight:W.highlight,list:W.list,options:W.options.map(_e=>U[_e])};const ve=U[W];return ve?ve.type==="no-state"||N[W]&&(ve.cmd===void 0||y.value[ve.cmd]&&y.value[ve.cmd].type==="no-state")?ve:Object.assign({type:"toggle"},ve):{type:"slot",slot:W}}))}),w={$q:o,props:e,slots:t,emit:n,inFullscreen:i,toggleFullscreen:s,runCmd:x,isViewingSource:v,editLinkUrl:g,toolbarBackgroundClass:b,buttonProps:S,contentRef:c,buttons:m,setContent:$};r.watch(()=>e.modelValue,N=>{p!==N&&(p=N,$(N,!0))}),r.watch(g,N=>{n(`link${N?"Show":"Hide"}`)});const E=r.computed(()=>e.toolbar&&e.toolbar.length!==0),C=r.computed(()=>{const N={},U=ue=>{ue.key&&(N[ue.key]={cmd:ue.cmd,param:ue.param})};return m.value.forEach(ue=>{ue.forEach(W=>{W.options?W.options.forEach(U):U(W)})}),N}),R=r.computed(()=>i.value?e.contentStyle:[{minHeight:e.minHeight,height:e.height,maxHeight:e.maxHeight},e.contentStyle]),H=r.computed(()=>`q-editor q-editor--${v.value===!0?"source":"default"}`+(e.disable===!0?" disabled":"")+(i.value===!0?" fullscreen column":"")+(e.square===!0?" q-editor--square no-border-radius":"")+(e.flat===!0?" q-editor--flat":"")+(e.dense===!0?" q-editor--dense":"")+(l.value===!0?" q-editor--dark q-dark":"")),q=r.computed(()=>[e.contentClass,"q-editor__content",{col:i.value,"overflow-auto":i.value||e.maxHeight}]),T=r.computed(()=>e.disable===!0?{"aria-disabled":"true"}:{});function M(){if(c.value!==null){const N=`inner${v.value===!0?"Text":"HTML"}`,U=c.value[N];U!==e.modelValue&&(p=U,n("update:modelValue",U))}}function O(N){if(n("keydown",N),N.ctrlKey!==!0||rr(N)===!0){Y();return}const U=N.keyCode,ue=C.value[U];if(ue!==void 0){const{cmd:W,param:ve}=ue;Fe(N),x(W,ve,!1)}}function k(N){Y(),n("click",N)}function A(N){if(c.value!==null){const{scrollTop:U,scrollHeight:ue}=c.value;_=ue-U}w.caret.save(),n("blur",N)}function D(N){r.nextTick(()=>{c.value!==null&&_!==void 0&&(c.value.scrollTop=c.value.scrollHeight-_)}),n("focus",N)}function z(N){const U=d.value;if(U!==null&&U.contains(N.target)===!0&&(N.relatedTarget===null||U.contains(N.relatedTarget)!==!0)){const ue=`inner${v.value===!0?"Text":"HTML"}`;w.caret.restorePosition(c.value[ue].length),Y()}}function F(N){const U=d.value;U!==null&&U.contains(N.target)===!0&&(N.relatedTarget===null||U.contains(N.relatedTarget)!==!0)&&(w.caret.savePosition(),Y())}function Z(){_=void 0}function he(N){w.caret.save()}function $(N,U){if(c.value!==null){U===!0&&w.caret.savePosition();const ue=`inner${v.value===!0?"Text":"HTML"}`;c.value[ue]=N,U===!0&&(w.caret.restorePosition(c.value[ue].length),Y())}}function x(N,U,ue=!0){B(),w.caret.restore(),w.caret.apply(N,U,()=>{B(),w.caret.save(),ue&&Y()})}function Y(){setTimeout(()=>{g.value=null,a.$forceUpdate()},1)}function B(){Br(()=>{c.value?.focus({preventScroll:!0})})}function le(){return c.value}return r.onMounted(()=>{w.caret=a.caret=new t_(c.value,w),$(e.modelValue),Y(),document.addEventListener("selectionchange",he)}),r.onBeforeUnmount(()=>{document.removeEventListener("selectionchange",he)}),Object.assign(a,{runCmd:x,refreshToolbar:Y,focus:B,getContentEl:le}),()=>{let N;if(E.value){const U=[r.h("div",{key:"qedt_top",class:"q-editor__toolbar row no-wrap scroll-x"+b.value},a_(w))];g.value!==null&&U.push(r.h("div",{key:"qedt_btm",class:"q-editor__toolbar row no-wrap items-center scroll-x"+b.value},l_(w))),N=r.h("div",{key:"toolbar_ctainer",class:"q-editor__toolbars-container"},U)}return r.h("div",{ref:d,class:H.value,style:{height:i.value===!0?"100%":null},...T.value,onFocusin:z,onFocusout:F},[N,r.h("div",{ref:c,style:R.value,class:q.value,contenteditable:h.value,placeholder:e.placeholder,...u.listeners.value,onInput:M,onKeydown:O,onClick:k,onBlur:A,onFocus:D,onMousedown:Z,onTouchstartPassive:Z})])}}});var bs=ie({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(e,{slots:t}){const n=r.computed(()=>parseInt(e.lines,10)),a=r.computed(()=>"q-item__label"+(e.overline===!0?" q-item__label--overline text-overline":"")+(e.caption===!0?" q-item__label--caption text-caption":"")+(e.header===!0?" q-item__label--header":"")+(n.value===1?" ellipsis":"")),o=r.computed(()=>e.lines!==void 0&&n.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":n.value}:null);return()=>r.h("div",{style:o.value,class:a.value},Te(t.default))}}),ps=ie({name:"QSlideTransition",props:{appear:Boolean,duration:{type:Number,default:300}},emits:["show","hide"],setup(e,{slots:t,emit:n}){let a=!1,o,l,i=null,s=null,u,d;function c(){o?.(),o=null,a=!1,i!==null&&(clearTimeout(i),i=null),s!==null&&(clearTimeout(s),s=null),l?.removeEventListener("transitionend",u),u=null}function g(_,p,b){p!==void 0&&(_.style.height=`${p}px`),_.style.transition=`height ${e.duration}ms cubic-bezier(.25, .8, .50, 1)`,a=!0,o=b}function v(_,p){_.style.overflowY=null,_.style.height=null,_.style.transition=null,c(),p!==d&&n(p)}function h(_,p){let b=0;l=_,a===!0?(c(),b=_.offsetHeight===_.scrollHeight?0:void 0):(d="hide",_.style.overflowY="hidden"),g(_,b,p),i=setTimeout(()=>{i=null,_.style.height=`${_.scrollHeight}px`,u=S=>{s=null,(Object(S)!==S||S.target===_)&&v(_,"show")},_.addEventListener("transitionend",u),s=setTimeout(u,e.duration*1.1)},100)}function f(_,p){let b;l=_,a===!0?c():(d="show",_.style.overflowY="hidden",b=_.scrollHeight),g(_,b,p),i=setTimeout(()=>{i=null,_.style.height=0,u=S=>{s=null,(Object(S)!==S||S.target===_)&&v(_,"hide")},_.addEventListener("transitionend",u),s=setTimeout(u,e.duration*1.1)},100)}return r.onBeforeUnmount(()=>{a===!0&&c()}),()=>r.h(r.Transition,{css:!1,appear:e.appear,onEnter:h,onLeave:f},t.default)}}),u_={true:"inset",item:"item-inset","item-thumbnail":"item-thumbnail-inset"},ys={xs:2,sm:4,md:8,lg:16,xl:24},hr=ie({name:"QSeparator",props:{...Ye,spaced:[Boolean,String],inset:[Boolean,String],vertical:Boolean,color:String,size:String},setup(e){const t=r.getCurrentInstance(),n=Ge(e,t.proxy.$q),a=r.computed(()=>e.vertical===!0?"vertical":"horizontal"),o=r.computed(()=>` q-separator--${a.value}`),l=r.computed(()=>e.inset!==!1?`${o.value}-${u_[e.inset]}`:""),i=r.computed(()=>`q-separator${o.value}${l.value}`+(e.color!==void 0?` bg-${e.color}`:"")+(n.value===!0?" q-separator--dark":"")),s=r.computed(()=>{const u={};if(e.size!==void 0&&(u[e.vertical===!0?"width":"height"]=e.size),e.spaced!==!1){const d=e.spaced===!0?`${ys.md}px`:e.spaced in ys?`${ys[e.spaced]}px`:e.spaced,c=e.vertical===!0?["Left","Right"]:["Top","Bottom"];u[`margin${c[0]}`]=u[`margin${c[1]}`]=d}return u});return()=>r.h("hr",{class:i.value,style:s.value,"aria-orientation":a.value})}}),gr=r.shallowReactive({}),c_=Object.keys(ba);ie({name:"QExpansionItem",props:{...ba,...Ir,...Ye,icon:String,label:String,labelLines:[Number,String],caption:String,captionLines:[Number,String],dense:Boolean,toggleAriaLabel:String,expandIcon:String,expandedIcon:String,expandIconClass:[Array,String,Object],duration:{},headerInsetLevel:Number,contentInsetLevel:Number,expandSeparator:Boolean,defaultOpened:Boolean,hideExpandIcon:Boolean,expandIconToggle:Boolean,switchToggleSide:Boolean,denseToggle:Boolean,group:String,popup:Boolean,headerStyle:[Array,String,Object],headerClass:[Array,String,Object]},emits:[...Dr,"click","afterShow","afterHide"],setup(e,{slots:t,emit:n}){const{proxy:{$q:a}}=r.getCurrentInstance(),o=Ge(e,a),l=r.ref(e.modelValue!==null?e.modelValue:e.defaultOpened),i=r.ref(null),s=Io(),{show:u,hide:d,toggle:c}=$r({showing:l});let g,v;const h=r.computed(()=>`q-expansion-item q-item-type q-expansion-item--${l.value===!0?"expanded":"collapsed"} q-expansion-item--${e.popup===!0?"popup":"standard"}`),f=r.computed(()=>e.contentInsetLevel===void 0?null:{["padding"+(a.lang.rtl===!0?"Right":"Left")]:e.contentInsetLevel*56+"px"}),_=r.computed(()=>e.disable!==!0&&(e.href!==void 0||e.to!==void 0&&e.to!==null&&e.to!=="")),p=r.computed(()=>{const z={};return c_.forEach(F=>{z[F]=e[F]}),z}),b=r.computed(()=>_.value===!0||e.expandIconToggle!==!0),S=r.computed(()=>e.expandedIcon!==void 0&&l.value===!0?e.expandedIcon:e.expandIcon||a.iconSet.expansionItem[e.denseToggle===!0?"denseIcon":"icon"]),y=r.computed(()=>e.disable!==!0&&(_.value===!0||e.expandIconToggle===!0)),m=r.computed(()=>({expanded:l.value===!0,detailsId:s.value,toggle:c,show:u,hide:d})),w=r.computed(()=>{const z=e.toggleAriaLabel!==void 0?e.toggleAriaLabel:a.lang.label[l.value===!0?"collapse":"expand"](e.label);return{role:"button","aria-expanded":l.value===!0?"true":"false","aria-controls":s.value,"aria-label":z}});r.watch(()=>e.group,z=>{v?.(),z!==void 0&&T()});function E(z){_.value!==!0&&c(z),n("click",z)}function C(z){z.keyCode===13&&R(z,!0)}function R(z,F){F!==!0&&z.qAvoidFocus!==!0&&i.value?.focus(),c(z),Fe(z)}function H(){n("afterShow")}function q(){n("afterHide")}function T(){g===void 0&&(g=_a()),l.value===!0&&(gr[e.group]=g);const z=r.watch(l,Z=>{Z===!0?gr[e.group]=g:gr[e.group]===g&&delete gr[e.group]}),F=r.watch(()=>gr[e.group],(Z,he)=>{he===g&&Z!==void 0&&Z!==g&&d()});v=()=>{z(),F(),gr[e.group]===g&&delete gr[e.group],v=void 0}}function M(){const z={class:[`q-focusable relative-position cursor-pointer${e.denseToggle===!0&&e.switchToggleSide===!0?" items-end":""}`,e.expandIconClass],side:e.switchToggleSide!==!0,avatar:e.switchToggleSide},F=[r.h(Xe,{class:"q-expansion-item__toggle-icon"+(e.expandedIcon===void 0&&l.value===!0?" q-expansion-item__toggle-icon--rotated":""),name:S.value})];return y.value===!0&&(Object.assign(z,{tabindex:0,...w.value,onClick:R,onKeyup:C}),F.unshift(r.h("div",{ref:i,class:"q-expansion-item__toggle-focus q-icon q-focus-helper q-focus-helper--rounded",tabindex:-1}))),r.h(Un,z,()=>F)}function O(){let z;return t.header!==void 0?z=[].concat(t.header(m.value)):(z=[r.h(Un,()=>[r.h(bs,{lines:e.labelLines},()=>e.label||""),e.caption?r.h(bs,{lines:e.captionLines,caption:!0},()=>e.caption):null])],e.icon&&z[e.switchToggleSide===!0?"push":"unshift"](r.h(Un,{side:e.switchToggleSide===!0,avatar:e.switchToggleSide!==!0},()=>r.h(Xe,{name:e.icon})))),e.disable!==!0&&e.hideExpandIcon!==!0&&z[e.switchToggleSide===!0?"unshift":"push"](M()),z}function k(){const z={ref:"item",style:e.headerStyle,class:e.headerClass,dark:o.value,disable:e.disable,dense:e.dense,insetLevel:e.headerInsetLevel};return b.value===!0&&(z.clickable=!0,z.onClick=E,Object.assign(z,_.value===!0?p.value:w.value)),r.h(Xo,z,O)}function A(){return r.withDirectives(r.h("div",{key:"e-content",class:"q-expansion-item__content relative-position",style:f.value,id:s.value},Te(t.default)),[[r.vShow,l.value]])}function D(){const z=[k(),r.h(ps,{duration:e.duration,onShow:H,onHide:q},A)];return e.expandSeparator===!0&&z.push(r.h(hr,{class:"q-expansion-item__border q-expansion-item__border--top absolute-top",dark:o.value}),r.h(hr,{class:"q-expansion-item__border q-expansion-item__border--bottom absolute-bottom",dark:o.value})),z}return e.group!==void 0&&T(),r.onBeforeUnmount(()=>{v?.()}),()=>r.h("div",{class:h.value},[r.h("div",{class:"q-expansion-item__container relative-position"},D())])}});var d_=["top","right","bottom","left"],_s={type:{type:String,default:"a"},outline:Boolean,push:Boolean,flat:Boolean,unelevated:Boolean,color:String,textColor:String,glossy:Boolean,square:Boolean,padding:String,label:{type:[String,Number],default:""},labelPosition:{type:String,default:"right",validator:e=>d_.includes(e)},externalLabel:Boolean,hideLabel:{type:Boolean},labelClass:[Array,String,Object],labelStyle:[Array,String,Object],disable:Boolean,tabindex:[Number,String]};function av(e,t){return{formClass:r.computed(()=>`q-fab--form-${e.square===!0?"square":"rounded"}`),stacked:r.computed(()=>e.externalLabel===!1&&["top","bottom"].includes(e.labelPosition)),labelProps:r.computed(()=>{if(e.externalLabel===!0){const n=e.hideLabel===null?t.value===!1:e.hideLabel;return{action:"push",data:{class:[e.labelClass,`q-fab__label q-tooltip--style q-fab__label--external q-fab__label--external-${e.labelPosition}`+(n===!0?" q-fab__label--external-hidden":"")],style:e.labelStyle}}}return{action:["left","top"].includes(e.labelPosition)?"unshift":"push",data:{class:[e.labelClass,`q-fab__label q-fab__label--internal q-fab__label--internal-${e.labelPosition}`+(e.hideLabel===!0?" q-fab__label--internal-hidden":"")],style:e.labelStyle}}})}}var f_=["up","right","down","left"],v_=["left","center","right"];ie({name:"QFab",props:{..._s,...Ir,icon:String,activeIcon:String,hideIcon:Boolean,hideLabel:{..._s.hideLabel,default:null},direction:{type:String,default:"right",validator:e=>f_.includes(e)},persistent:Boolean,verticalActionsAlign:{type:String,default:"center",validator:e=>v_.includes(e)}},emits:Dr,setup(e,{slots:t}){const n=r.ref(null),a=r.ref(e.modelValue===!0),o=Io(),{proxy:{$q:l}}=r.getCurrentInstance(),{formClass:i,labelProps:s}=av(e,a),u=r.computed(()=>e.persistent!==!0),{hide:d,toggle:c}=$r({showing:a,hideOnRouteChange:u}),g=r.computed(()=>({opened:a.value})),v=r.computed(()=>`q-fab z-fab row inline justify-center q-fab--align-${e.verticalActionsAlign} ${i.value}`+(a.value===!0?" q-fab--opened":" q-fab--closed")),h=r.computed(()=>`q-fab__actions flex no-wrap inline q-fab__actions--${e.direction} q-fab__actions--${a.value===!0?"opened":"closed"}`),f=r.computed(()=>{const S={id:o.value,role:"menu"};return a.value!==!0&&(S["aria-hidden"]="true"),S}),_=r.computed(()=>`q-fab__icon-holder q-fab__icon-holder--${a.value===!0?"opened":"closed"}`);function p(S,y){const m=t[S],w=`q-fab__${S} absolute-full`;return m===void 0?r.h(Xe,{class:w,name:e[y]||l.iconSet.fab[y]}):r.h("div",{class:w},m(g.value))}function b(){const S=[];return e.hideIcon!==!0&&S.push(r.h("div",{class:_.value},[p("icon","icon"),p("active-icon","activeIcon")])),(e.label!==""||t.label!==void 0)&&S[s.value.action](r.h("div",s.value.data,t.label!==void 0?t.label(g.value):[e.label])),ht(t.tooltip,S)}return r.provide(ad,{showing:a,onChildClick(S){d(S),S?.qAvoidFocus!==!0&&n.value?.$el.focus()}}),()=>r.h("div",{class:v.value},[r.h(Ze,{ref:n,class:i.value,...e,noWrap:!0,stack:e.stacked,align:void 0,icon:void 0,label:void 0,noCaps:!0,fab:!0,"aria-expanded":a.value===!0?"true":"false","aria-haspopup":"true","aria-controls":o.value,onClick:c},b),r.h("div",{class:h.value,...f.value},Te(t.default))])}});var ov={start:"self-end",center:"self-center",end:"self-start"},m_=Object.keys(ov);ie({name:"QFabAction",props:{..._s,icon:{type:String,default:""},anchor:{type:String,validator:e=>m_.includes(e)},to:[String,Object],replace:Boolean},emits:["click"],setup(e,{slots:t,emit:n}){const a=r.inject(ad,()=>({showing:{value:!0},onChildClick:wt})),{formClass:o,labelProps:l}=av(e,a.showing),i=r.computed(()=>{const g=ov[e.anchor];return o.value+(g!==void 0?` ${g}`:"")}),s=r.computed(()=>e.disable===!0||a.showing.value!==!0);function u(g){a.onChildClick(g),n("click",g)}function d(){const g=[];return t.icon!==void 0?g.push(t.icon()):e.icon!==""&&g.push(r.h(Xe,{name:e.icon})),(e.label!==""||t.label!==void 0)&&g[l.value.action](r.h("div",l.value.data,t.label!==void 0?t.label():[e.label])),ht(t.default,g)}const c=r.getCurrentInstance();return Object.assign(c.proxy,{click:u}),()=>r.h(Ze,{class:i.value,...e,noWrap:!0,stack:e.stacked,icon:void 0,label:void 0,noCaps:!0,fabMini:!0,disable:s.value,onClick:u},d)}});function h_({validate:e,resetValidation:t,requiresQForm:n}){const a=r.inject(od,!1);if(a!==!1){const{props:o,proxy:l}=r.getCurrentInstance();Object.assign(l,{validate:e,resetValidation:t}),r.watch(()=>o.disable,i=>{i===!0?(typeof t=="function"&&t(),a.unbindComponent(l)):a.bindComponent(l)}),r.onMounted(()=>{o.disable!==!0&&a.bindComponent(l)}),r.onBeforeUnmount(()=>{o.disable!==!0&&a.unbindComponent(l)})}else n===!0&&console.error("Parent QForm not found on useFormChild()!")}var g_=[!0,!1,"ondemand"],b_={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:e=>g_.includes(e)}};function p_(e,t){const{props:n,proxy:a}=r.getCurrentInstance(),o=r.ref(!1),l=r.ref(null),i=r.ref(!1);h_({validate:_,resetValidation:f});let s=0,u;const d=r.computed(()=>n.rules!==void 0&&n.rules!==null&&n.rules.length!==0),c=r.computed(()=>n.disable!==!0&&d.value===!0&&t.value===!1),g=r.computed(()=>n.error===!0||o.value===!0),v=r.computed(()=>typeof n.errorMessage=="string"&&n.errorMessage.length!==0?n.errorMessage:l.value);r.watch(()=>n.modelValue,()=>{i.value=!0,c.value===!0&&n.lazyRules===!1&&p()});function h(){n.lazyRules!=="ondemand"&&c.value===!0&&i.value===!0&&p()}r.watch(()=>n.reactiveRules,b=>{b===!0?u===void 0&&(u=r.watch(()=>n.rules,h,{immediate:!0,deep:!0})):u!==void 0&&(u(),u=void 0)},{immediate:!0}),r.watch(()=>n.lazyRules,h),r.watch(e,b=>{b===!0?i.value=!0:c.value===!0&&n.lazyRules!=="ondemand"&&p()});function f(){s++,t.value=!1,i.value=!1,o.value=!1,l.value=null,p.cancel()}function _(b=n.modelValue){if(n.disable===!0||d.value===!1)return!0;const S=++s,y=t.value!==!0?()=>{i.value=!0}:()=>{},m=(E,C)=>{E===!0&&y(),o.value=E,l.value=C||null,t.value=!1},w=[];for(let E=0;E<n.rules.length;E++){const C=n.rules[E];let R;if(typeof C=="function"?R=C(b,zo):typeof C=="string"&&zo[C]!==void 0&&(R=zo[C](b)),R===!1||typeof R=="string")return m(!0,R),!1;R!==!0&&R!==void 0&&w.push(R)}return w.length===0?(m(!1),!0):(t.value=!0,Promise.all(w).then(E=>{if(E===void 0||Array.isArray(E)===!1||E.length===0)return S===s&&m(!1),!0;const C=E.find(R=>R===!1||typeof R=="string");return S===s&&m(C!==void 0,C),C===void 0},E=>(S===s&&(console.error(E),m(!0)),!1)))}const p=Lr(_,0);return r.onBeforeUnmount(()=>{u?.(),p.cancel()}),Object.assign(a,{resetValidation:f,validate:_}),xt(a,"hasError",()=>g.value),{isDirtyModel:i,hasRules:d,hasError:g,errorMessage:v,validate:_,resetValidation:f}}function br(e){return e!=null&&(""+e).length!==0}var lv={...Ye,...b_,label:String,stackLabel:Boolean,hint:String,hideHint:Boolean,prefix:String,suffix:String,labelColor:String,color:String,bgColor:String,filled:Boolean,outlined:Boolean,borderless:Boolean,standout:[Boolean,String],square:Boolean,loading:Boolean,labelSlot:Boolean,bottomSlots:Boolean,hideBottomSpace:Boolean,rounded:Boolean,dense:Boolean,itemAligned:Boolean,counter:Boolean,clearable:Boolean,clearIcon:String,disable:Boolean,readonly:Boolean,autofocus:Boolean,for:String},Jo={...lv,maxlength:[Number,String]},Zo=["update:modelValue","clear","focus","blur"];function Vo({requiredForAttr:e=!0,tagProp:t,changeEvent:n=!1}={}){const{props:a,proxy:o}=r.getCurrentInstance(),l=Ge(a,o.$q),i=Io({required:e,getValue:()=>a.for});return{requiredForAttr:e,changeEvent:n,tag:t===!0?r.computed(()=>a.tag):{value:"label"},isDark:l,editable:r.computed(()=>a.disable!==!0&&a.readonly!==!0),innerLoading:r.ref(!1),focused:r.ref(!1),hasPopupOpen:!1,splitAttrs:tv(),targetUid:i,rootRef:r.ref(null),targetRef:r.ref(null),controlRef:r.ref(null)}}function el(e){const{props:t,emit:n,slots:a,attrs:o,proxy:l}=r.getCurrentInstance(),{$q:i}=l;let s=null;e.hasValue===void 0&&(e.hasValue=r.computed(()=>br(t.modelValue))),e.emitValue===void 0&&(e.emitValue=F=>{n("update:modelValue",F)}),e.controlEvents===void 0&&(e.controlEvents={onFocusin:H,onFocusout:q}),Object.assign(e,{clearValue:T,onControlFocusin:H,onControlFocusout:q,focus:C}),e.computedCounter===void 0&&(e.computedCounter=r.computed(()=>{if(t.counter!==!1){const F=typeof t.modelValue=="string"||typeof t.modelValue=="number"?(""+t.modelValue).length:Array.isArray(t.modelValue)===!0?t.modelValue.length:0,Z=t.maxlength!==void 0?t.maxlength:t.maxValues;return F+(Z!==void 0?" / "+Z:"")}}));const{isDirtyModel:u,hasRules:d,hasError:c,errorMessage:g,resetValidation:v}=p_(e.focused,e.innerLoading),h=e.floatingLabel!==void 0?r.computed(()=>t.stackLabel===!0||e.focused.value===!0||e.floatingLabel.value===!0):r.computed(()=>t.stackLabel===!0||e.focused.value===!0||e.hasValue.value===!0),f=r.computed(()=>t.bottomSlots===!0||t.hint!==void 0||d.value===!0||t.counter===!0||t.error!==null),_=r.computed(()=>t.filled===!0?"filled":t.outlined===!0?"outlined":t.borderless===!0?"borderless":t.standout?"standout":"standard"),p=r.computed(()=>`q-field row no-wrap items-start q-field--${_.value}`+(e.fieldClass!==void 0?` ${e.fieldClass.value}`:"")+(t.rounded===!0?" q-field--rounded":"")+(t.square===!0?" q-field--square":"")+(h.value===!0?" q-field--float":"")+(S.value===!0?" q-field--labeled":"")+(t.dense===!0?" q-field--dense":"")+(t.itemAligned===!0?" q-field--item-aligned q-item-type":"")+(e.isDark.value===!0?" q-field--dark":"")+(e.getControl===void 0?" q-field--auto-height":"")+(e.focused.value===!0?" q-field--focused":"")+(c.value===!0?" q-field--error":"")+(c.value===!0||e.focused.value===!0?" q-field--highlighted":"")+(t.hideBottomSpace!==!0&&f.value===!0?" q-field--with-bottom":"")+(t.disable===!0?" q-field--disabled":t.readonly===!0?" q-field--readonly":"")),b=r.computed(()=>"q-field__control relative-position row no-wrap"+(t.bgColor!==void 0?` bg-${t.bgColor}`:"")+(c.value===!0?" text-negative":typeof t.standout=="string"&&t.standout.length!==0&&e.focused.value===!0?` ${t.standout}`:t.color!==void 0?` text-${t.color}`:"")),S=r.computed(()=>t.labelSlot===!0||t.label!==void 0),y=r.computed(()=>"q-field__label no-pointer-events absolute ellipsis"+(t.labelColor!==void 0&&c.value!==!0?` text-${t.labelColor}`:"")),m=r.computed(()=>({id:e.targetUid.value,editable:e.editable.value,focused:e.focused.value,floatingLabel:h.value,modelValue:t.modelValue,emitValue:e.emitValue})),w=r.computed(()=>{const F={};return e.targetUid.value&&(F.for=e.targetUid.value),t.disable===!0&&(F["aria-disabled"]="true"),F});function E(){const F=document.activeElement;let Z=e.targetRef?.value;Z&&(F===null||F.id!==e.targetUid.value)&&(Z.hasAttribute("tabindex")===!0||(Z=Z.querySelector("[tabindex]")),Z!==F&&Z?.focus({preventScroll:!0}))}function C(){Br(E)}function R(){N0(E);const F=document.activeElement;F!==null&&e.rootRef.value.contains(F)&&F.blur()}function H(F){s!==null&&(clearTimeout(s),s=null),e.editable.value===!0&&e.focused.value===!1&&(e.focused.value=!0,n("focus",F))}function q(F,Z){s!==null&&clearTimeout(s),s=setTimeout(()=>{s=null,!(document.hasFocus()===!0&&(e.hasPopupOpen===!0||e.controlRef===void 0||e.controlRef.value===null||e.controlRef.value.contains(document.activeElement)!==!1))&&(e.focused.value===!0&&(e.focused.value=!1,n("blur",F)),Z?.())})}function T(F){Fe(F),i.platform.is.mobile!==!0?(e.targetRef?.value||e.rootRef.value).focus():e.rootRef.value.contains(document.activeElement)===!0&&document.activeElement.blur(),t.type==="file"&&(e.inputRef.value.value=null),n("update:modelValue",null),e.changeEvent===!0&&n("change",null),n("clear",t.modelValue),r.nextTick(()=>{const Z=u.value;v(),u.value=Z})}function M(F){[13,32].includes(F.keyCode)&&T(F)}function O(){const F=[];return a.prepend!==void 0&&F.push(r.h("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:Et},a.prepend())),F.push(r.h("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},k())),c.value===!0&&t.noErrorIcon===!1&&F.push(D("error",[r.h(Xe,{name:i.iconSet.field.error,color:"negative"})])),t.loading===!0||e.innerLoading.value===!0?F.push(D("inner-loading-append",a.loading!==void 0?a.loading():[r.h(cn,{color:t.color})])):t.clearable===!0&&e.hasValue.value===!0&&e.editable.value===!0&&F.push(D("inner-clearable-append",[r.h(Xe,{class:"q-field__focusable-action",name:t.clearIcon||i.iconSet.field.clear,tabindex:0,role:"button","aria-hidden":"false","aria-label":i.lang.label.clear,onKeyup:M,onClick:T})])),a.append!==void 0&&F.push(r.h("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:Et},a.append())),e.getInnerAppend!==void 0&&F.push(D("inner-append",e.getInnerAppend())),e.getControlChild!==void 0&&F.push(e.getControlChild()),F}function k(){const F=[];return t.prefix!==void 0&&t.prefix!==null&&F.push(r.h("div",{class:"q-field__prefix no-pointer-events row items-center"},t.prefix)),e.getShadowControl!==void 0&&e.hasShadow.value===!0&&F.push(e.getShadowControl()),S.value===!0&&F.push(r.h("div",{class:y.value},Te(a.label,t.label))),e.getControl!==void 0?F.push(e.getControl()):a.rawControl!==void 0?F.push(a.rawControl()):a.control!==void 0&&F.push(r.h("div",{ref:e.targetRef,class:"q-field__native row",tabindex:-1,...e.splitAttrs.attributes.value,"data-autofocus":t.autofocus===!0||void 0},a.control(m.value))),t.suffix!==void 0&&t.suffix!==null&&F.push(r.h("div",{class:"q-field__suffix no-pointer-events row items-center"},t.suffix)),F.concat(Te(a.default))}function A(){let F,Z;c.value===!0?g.value!==null?(F=[r.h("div",{role:"alert"},g.value)],Z=`q--slot-error-${g.value}`):(F=Te(a.error),Z="q--slot-error"):(t.hideHint!==!0||e.focused.value===!0)&&(t.hint!==void 0?(F=[r.h("div",t.hint)],Z=`q--slot-hint-${t.hint}`):(F=Te(a.hint),Z="q--slot-hint"));const he=t.counter===!0||a.counter!==void 0;if(t.hideBottomSpace===!0&&he===!1&&F===void 0)return;const $=r.h("div",{key:Z,class:"q-field__messages col"},F);return r.h("div",{class:"q-field__bottom row items-start q-field__bottom--"+(t.hideBottomSpace!==!0?"animated":"stale"),onClick:Et},[t.hideBottomSpace===!0?$:r.h(r.Transition,{name:"q-transition--field-message"},()=>$),he===!0?r.h("div",{class:"q-field__counter"},a.counter!==void 0?a.counter():e.computedCounter.value):null])}function D(F,Z){return Z===null?null:r.h("div",{key:F,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},Z)}let z=!1;return r.onDeactivated(()=>{z=!0}),r.onActivated(()=>{z===!0&&t.autofocus===!0&&l.focus()}),t.autofocus===!0&&r.onMounted(()=>{l.focus()}),r.onBeforeUnmount(()=>{s!==null&&clearTimeout(s)}),Object.assign(l,{focus:C,blur:R}),function(){const Z=e.getControl===void 0&&a.control===void 0?{...e.splitAttrs.attributes.value,"data-autofocus":t.autofocus===!0||void 0,...w.value}:w.value;return r.h(e.tag.value,{ref:e.rootRef,class:[p.value,o.class],style:o.style,...Z},[a.before!==void 0?r.h("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:Et},a.before()):null,r.h("div",{class:"q-field__inner relative-position col self-stretch"},[r.h("div",{ref:e.controlRef,class:b.value,tabindex:-1,...e.controlEvents},O()),f.value===!0?A():null]),a.after!==void 0?r.h("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:Et},a.after()):null])}}var y_=ie({name:"QField",inheritAttrs:!1,props:{...Jo,tag:{type:String,default:"label"}},emits:Zo,setup(){return el(Vo({tagProp:!0}))}});function Gr(e,t,n,a){const o=[];return e.forEach(l=>{a(l)===!0?o.push(l):t.push({failedPropValidation:n,file:l})}),o}function tl(e){e?.dataTransfer&&(e.dataTransfer.dropEffect="copy"),Fe(e)}var iv={multiple:Boolean,accept:String,capture:String,maxFileSize:[Number,String],maxTotalSize:[Number,String],maxFiles:[Number,String],filter:Function},sv=["rejected"];function uv({editable:e,dnd:t,getFileInput:n,addFilesToQueue:a}){const{props:o,emit:l,proxy:i}=r.getCurrentInstance(),s=r.ref(null),u=r.computed(()=>o.accept!==void 0?o.accept.split(",").map(S=>(S=S.trim(),S==="*"?"*/":(S.endsWith("/*")&&(S=S.slice(0,S.length-1)),S.toUpperCase()))):null),d=r.computed(()=>parseInt(o.maxFiles,10)),c=r.computed(()=>parseInt(o.maxTotalSize,10));function g(S){if(e.value)if(S!==Object(S)&&(S={target:null}),S.target?.matches('input[type="file"]')===!0)S.clientX===0&&S.clientY===0&&ft(S);else{const y=n();y!==S.target&&y?.click(S)}}function v(S){e.value&&S&&a(null,S)}function h(S,y,m,w){let E=Array.from(y||S.target.files);const C=[],R=()=>{C.length!==0&&l("rejected",C)};if(o.accept!==void 0&&u.value.indexOf("*/")===-1&&(E=Gr(E,C,"accept",H=>u.value.some(q=>H.type.toUpperCase().startsWith(q)||H.name.toUpperCase().endsWith(q))),E.length===0))return R();if(o.maxFileSize!==void 0){const H=parseInt(o.maxFileSize,10);if(E=Gr(E,C,"max-file-size",q=>q.size<=H),E.length===0)return R()}if(o.multiple!==!0&&E.length!==0&&(E=[E[0]]),E.forEach(H=>{H.__key=H.webkitRelativePath+H.lastModified+H.name+H.size}),w===!0){const H=m.map(q=>q.__key);E=Gr(E,C,"duplicate",q=>H.includes(q.__key)===!1)}if(E.length===0)return R();if(o.maxTotalSize!==void 0){let H=w===!0?m.reduce((q,T)=>q+T.size,0):0;if(E=Gr(E,C,"max-total-size",q=>(H+=q.size,H<=c.value)),E.length===0)return R()}if(typeof o.filter=="function"){const H=o.filter(E);E=Gr(E,C,"filter",q=>H.includes(q))}if(o.maxFiles!==void 0){let H=w===!0?m.length:0;if(E=Gr(E,C,"max-files",()=>(H++,H<=d.value)),E.length===0)return R()}if(R(),E.length!==0)return E}function f(S){tl(S),t.value!==!0&&(t.value=!0)}function _(S){Fe(S),(S.relatedTarget!==null||He.is.safari!==!0?S.relatedTarget!==s.value:document.elementsFromPoint(S.clientX,S.clientY).includes(s.value)===!1)===!0&&(t.value=!1)}function p(S){tl(S);const y=S.dataTransfer.files;y.length!==0&&a(null,y),t.value=!1}function b(S){if(t.value===!0)return r.h("div",{ref:s,class:`q-${S}__dnd absolute-full`,onDragenter:tl,onDragover:tl,onDragleave:_,onDrop:p})}return Object.assign(i,{pickFiles:g,addFiles:v}),{pickFiles:g,addFiles:v,onDragover:f,onDragleave:_,processFiles:h,getDndNode:b,maxFilesNumber:d,maxTotalSizeNumber:c}}function cv(e,t){function n(){const a=e.modelValue;try{const o="DataTransfer"in window?new DataTransfer:"ClipboardEvent"in window?new ClipboardEvent("").clipboardData:void 0;return Object(a)===a&&("length"in a?Array.from(a):[a]).forEach(l=>{o.items.add(l)}),{files:o.files}}catch{return{files:void 0}}}return t===!0?r.computed(()=>{if(e.type==="file")return n()}):r.computed(n)}ie({name:"QFile",inheritAttrs:!1,props:{...lv,...nn,...iv,modelValue:[File,FileList,Array],append:Boolean,useChips:Boolean,displayValue:[String,Number],tabindex:{type:[String,Number],default:0},counterLabel:Function,inputClass:[Array,String,Object],inputStyle:[Array,String,Object]},emits:[...Zo,...sv],setup(e,{slots:t,emit:n,attrs:a}){const{proxy:o}=r.getCurrentInstance(),l=Vo(),i=r.ref(null),s=r.ref(!1),u=Bi(e),{pickFiles:d,onDragover:c,onDragleave:g,processFiles:v,getDndNode:h}=uv({editable:l.editable,dnd:s,getFileInput:M,addFilesToQueue:O}),f=cv(e),_=r.computed(()=>Object(e.modelValue)===e.modelValue?"length"in e.modelValue?Array.from(e.modelValue):[e.modelValue]:[]),p=r.computed(()=>br(_.value)),b=r.computed(()=>_.value.map(z=>z.name).join(", ")),S=r.computed(()=>hi(_.value.reduce((z,F)=>z+F.size,0))),y=r.computed(()=>({totalSize:S.value,filesNumber:_.value.length,maxFiles:e.maxFiles})),m=r.computed(()=>({tabindex:-1,type:"file",title:"",accept:e.accept,capture:e.capture,name:u.value,...a,id:l.targetUid.value,disabled:l.editable.value!==!0})),w=r.computed(()=>"q-file q-field--auto-height"+(s.value===!0?" q-file--dnd":"")),E=r.computed(()=>e.multiple===!0&&e.append===!0);function C(z){const F=_.value.slice();F.splice(z,1),H(F)}function R(z){const F=_.value.indexOf(z);F!==-1&&C(F)}function H(z){n("update:modelValue",e.multiple===!0?z:z[0])}function q(z){z.keyCode===13&&Et(z)}function T(z){(z.keyCode===13||z.keyCode===32)&&d(z)}function M(){return i.value}function O(z,F){const Z=v(z,F,_.value,E.value),he=M();he!=null&&(he.value=""),Z!==void 0&&((e.multiple===!0?e.modelValue&&Z.every($=>_.value.includes($)):e.modelValue===Z[0])||H(E.value===!0?_.value.concat(Z):Z))}function k(){return[r.h("input",{class:[e.inputClass,"q-file__filler"],style:e.inputStyle})]}function A(){if(t.file!==void 0)return _.value.length===0?k():_.value.map((F,Z)=>t.file({index:Z,file:F,ref:this}));if(t.selected!==void 0)return _.value.length===0?k():t.selected({files:_.value,ref:this});if(e.useChips===!0)return _.value.length===0?k():_.value.map((F,Z)=>r.h(rf,{key:"file-"+Z,removable:l.editable.value,dense:!0,textColor:e.color,tabindex:e.tabindex,onRemove:()=>{C(Z)}},()=>r.h("span",{class:"ellipsis",textContent:F.name})));const z=e.displayValue!==void 0?e.displayValue:b.value;return z.length!==0?[r.h("div",{class:e.inputClass,style:e.inputStyle,textContent:z})]:k()}function D(){const z={ref:i,...m.value,...f.value,class:"q-field__input fit absolute-full cursor-pointer",onChange:O};return e.multiple===!0&&(z.multiple=!0),r.h("input",z)}return Object.assign(l,{fieldClass:w,emitValue:H,hasValue:p,inputRef:i,innerValue:_,floatingLabel:r.computed(()=>p.value===!0||br(e.displayValue)),computedCounter:r.computed(()=>{if(e.counterLabel!==void 0)return e.counterLabel(y.value);const z=e.maxFiles;return`${_.value.length}${z!==void 0?" / "+z:""} (${S.value})`}),getControlChild:()=>h("file"),getControl:()=>{const z={ref:l.targetRef,class:"q-field__native row items-center cursor-pointer",tabindex:e.tabindex};return l.editable.value===!0&&Object.assign(z,{onDragover:c,onDragleave:g,onKeydown:q,onKeyup:T}),r.h("div",z,[D()].concat(A()))}}),Object.assign(o,{removeAtIndex:C,removeFile:R,getNativeElement:()=>i.value}),xt(o,"nativeEl",()=>i.value),el(l)}}),ie({name:"QFooter",props:{modelValue:{type:Boolean,default:!0},reveal:Boolean,bordered:Boolean,elevated:Boolean,heightHint:{type:[String,Number],default:50}},emits:["reveal","focusin"],setup(e,{slots:t,emit:n}){const{proxy:{$q:a}}=r.getCurrentInstance(),o=r.inject(or,et);if(o===et)return console.error("QFooter needs to be child of QLayout"),et;const l=r.ref(parseInt(e.heightHint,10)),i=r.ref(!0),s=r.ref(Zt.value===!0||o.isContainer.value===!0?0:window.innerHeight),u=r.computed(()=>e.reveal===!0||o.view.value.indexOf("F")!==-1||a.platform.is.ios&&o.isContainer.value===!0),d=r.computed(()=>o.isContainer.value===!0?o.containerHeight.value:s.value),c=r.computed(()=>{if(e.modelValue!==!0)return 0;if(u.value===!0)return i.value===!0?l.value:0;const w=o.scroll.value.position+d.value+l.value-o.height.value;return w>0?w:0}),g=r.computed(()=>e.modelValue!==!0||u.value===!0&&i.value!==!0),v=r.computed(()=>e.modelValue===!0&&g.value===!0&&e.reveal===!0),h=r.computed(()=>"q-footer q-layout__section--marginal "+(u.value===!0?"fixed":"absolute")+"-bottom"+(e.bordered===!0?" q-footer--bordered":"")+(g.value===!0?" q-footer--hidden":"")+(e.modelValue!==!0?" q-layout--prevent-focus"+(u.value!==!0?" hidden":""):"")),f=r.computed(()=>{const w=o.rows.value.bottom,E={};return w[0]==="l"&&o.left.space===!0&&(E[a.lang.rtl===!0?"right":"left"]=`${o.left.size}px`),w[2]==="r"&&o.right.space===!0&&(E[a.lang.rtl===!0?"left":"right"]=`${o.right.size}px`),E});function _(w,E){o.update("footer",w,E)}function p(w,E){w.value!==E&&(w.value=E)}function b({height:w}){p(l,w),_("size",w)}function S(){if(e.reveal!==!0)return;const{direction:w,position:E,inflectionPoint:C}=o.scroll.value;p(i,w==="up"||E-C<100||o.height.value-d.value-E-l.value<300)}function y(w){v.value===!0&&p(i,!0),n("focusin",w)}r.watch(()=>e.modelValue,w=>{_("space",w),p(i,!0),o.animate()}),r.watch(c,w=>{_("offset",w)}),r.watch(()=>e.reveal,w=>{w===!1&&p(i,e.modelValue)}),r.watch(i,w=>{o.animate(),n("reveal",w)}),r.watch([l,o.scroll,o.height],S),r.watch(()=>a.screen.height,w=>{o.isContainer.value!==!0&&p(s,w)});const m={};return o.instances.footer=m,e.modelValue===!0&&_("size",l.value),_("space",e.modelValue),_("offset",c.value),r.onBeforeUnmount(()=>{o.instances.footer===m&&(o.instances.footer=void 0,_("size",0),_("offset",0),_("space",!1))}),()=>{const w=ht(t.default,[r.h(vr,{debounce:0,onResize:b})]);return e.elevated===!0&&w.push(r.h("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),r.h("footer",{class:h.value,style:f.value,onFocusin:y},w)}}}),ie({name:"QForm",props:{autofocus:Boolean,noErrorFocus:Boolean,noResetFocus:Boolean,greedy:Boolean,onSubmit:Function},emits:["reset","validationSuccess","validationError"],setup(e,{slots:t,emit:n}){const a=r.getCurrentInstance(),o=r.ref(null);let l=0;const i=[];function s(h){const f=typeof h=="boolean"?h:e.noErrorFocus!==!0,_=++l,p=(y,m)=>{n(`validation${y===!0?"Success":"Error"}`,m)},b=y=>{const m=y.validate();return typeof m.then=="function"?m.then(w=>({valid:w,comp:y}),w=>({valid:!1,comp:y,err:w})):Promise.resolve({valid:m,comp:y})};return(e.greedy===!0?Promise.all(i.map(b)).then(y=>y.filter(m=>m.valid!==!0)):i.reduce((y,m)=>y.then(()=>b(m).then(w=>{if(w.valid===!1)return Promise.reject(w)})),Promise.resolve()).catch(y=>[y])).then(y=>{if(y===void 0||y.length===0)return _===l&&p(!0),!0;if(_===l){const{comp:m,err:w}=y[0];if(w!==void 0&&console.error(w),p(!1,m),f===!0){const E=y.find(({comp:C})=>typeof C.focus=="function"&&$n(C.$)===!1);E!==void 0&&E.comp.focus()}}return!1})}function u(){l++,i.forEach(h=>{typeof h.resetValidation=="function"&&h.resetValidation()})}function d(h){h!==void 0&&Fe(h);const f=l+1;s().then(_=>{f===l&&_===!0&&(e.onSubmit!==void 0?n("submit",h):h?.target!==void 0&&typeof h.target.submit=="function"&&h.target.submit())})}function c(h){h!==void 0&&Fe(h),n("reset"),r.nextTick(()=>{u(),e.autofocus===!0&&e.noResetFocus!==!0&&g()})}function g(){Br(()=>{if(o.value===null)return;(o.value.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||o.value.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||o.value.querySelector("[autofocus], [data-autofocus]")||Array.prototype.find.call(o.value.querySelectorAll("[tabindex]"),f=>f.tabIndex!==-1))?.focus({preventScroll:!0})})}r.provide(od,{bindComponent(h){i.push(h)},unbindComponent(h){const f=i.indexOf(h);f!==-1&&i.splice(f,1)}});let v=!1;return r.onDeactivated(()=>{v=!0}),r.onActivated(()=>{v===!0&&e.autofocus===!0&&g()}),r.onMounted(()=>{e.autofocus===!0&&g()}),Object.assign(a.proxy,{validate:s,resetValidation:u,submit:d,reset:c,focus:g,getValidationComponents:()=>i}),()=>r.h("form",{class:"q-form",ref:o,onSubmit:d,onReset:c},Te(t.default))}}),ie({name:"QHeader",props:{modelValue:{type:Boolean,default:!0},reveal:Boolean,revealOffset:{type:Number,default:250},bordered:Boolean,elevated:Boolean,heightHint:{type:[String,Number],default:50}},emits:["reveal","focusin"],setup(e,{slots:t,emit:n}){const{proxy:{$q:a}}=r.getCurrentInstance(),o=r.inject(or,et);if(o===et)return console.error("QHeader needs to be child of QLayout"),et;const l=r.ref(parseInt(e.heightHint,10)),i=r.ref(!0),s=r.computed(()=>e.reveal===!0||o.view.value.indexOf("H")!==-1||a.platform.is.ios&&o.isContainer.value===!0),u=r.computed(()=>{if(e.modelValue!==!0)return 0;if(s.value===!0)return i.value===!0?l.value:0;const S=l.value-o.scroll.value.position;return S>0?S:0}),d=r.computed(()=>e.modelValue!==!0||s.value===!0&&i.value!==!0),c=r.computed(()=>e.modelValue===!0&&d.value===!0&&e.reveal===!0),g=r.computed(()=>"q-header q-layout__section--marginal "+(s.value===!0?"fixed":"absolute")+"-top"+(e.bordered===!0?" q-header--bordered":"")+(d.value===!0?" q-header--hidden":"")+(e.modelValue!==!0?" q-layout--prevent-focus":"")),v=r.computed(()=>{const S=o.rows.value.top,y={};return S[0]==="l"&&o.left.space===!0&&(y[a.lang.rtl===!0?"right":"left"]=`${o.left.size}px`),S[2]==="r"&&o.right.space===!0&&(y[a.lang.rtl===!0?"left":"right"]=`${o.right.size}px`),y});function h(S,y){o.update("header",S,y)}function f(S,y){S.value!==y&&(S.value=y)}function _({height:S}){f(l,S),h("size",S)}function p(S){c.value===!0&&f(i,!0),n("focusin",S)}r.watch(()=>e.modelValue,S=>{h("space",S),f(i,!0),o.animate()}),r.watch(u,S=>{h("offset",S)}),r.watch(()=>e.reveal,S=>{S===!1&&f(i,e.modelValue)}),r.watch(i,S=>{o.animate(),n("reveal",S)}),r.watch(o.scroll,S=>{e.reveal===!0&&f(i,S.direction==="up"||S.position<=e.revealOffset||S.position-S.inflectionPoint<100)});const b={};return o.instances.header=b,e.modelValue===!0&&h("size",l.value),h("space",e.modelValue),h("offset",u.value),r.onBeforeUnmount(()=>{o.instances.header===b&&(o.instances.header=void 0,h("size",0),h("offset",0),h("space",!1))}),()=>{const S=ga(t.default,[]);return e.elevated===!0&&S.push(r.h("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),S.push(r.h(vr,{debounce:0,onResize:_})),r.h("header",{class:g.value,style:v.value,onFocusin:p},S)}}});var Ss={ratio:[String,Number]};function ws(e,t){return r.computed(()=>{const n=Number(e.ratio||(t!==void 0?t.value:void 0));return isNaN(n)!==!0&&n>0?{paddingBottom:`${100/n}%`}:null})}var __=1.7778;ie({name:"QImg",props:{...Ss,src:String,srcset:String,sizes:String,alt:String,crossorigin:String,decoding:String,referrerpolicy:String,draggable:Boolean,loading:{type:String,default:"lazy"},loadingShowDelay:{type:[Number,String],default:0},fetchpriority:{type:String,default:"auto"},width:String,height:String,initialRatio:{type:[Number,String],default:__},placeholderSrc:String,errorSrc:String,fit:{type:String,default:"cover"},position:{type:String,default:"50% 50%"},imgClass:String,imgStyle:Object,noSpinner:Boolean,noNativeMenu:Boolean,noTransition:Boolean,spinnerColor:String,spinnerSize:String},emits:["load","error"],setup(e,{slots:t,emit:n}){const a=r.ref(e.initialRatio),o=ws(e,a),l=r.getCurrentInstance(),{registerTimeout:i,removeTimeout:s}=On(),{registerTimeout:u,removeTimeout:d}=On(),c=r.computed(()=>e.placeholderSrc!==void 0?{src:e.placeholderSrc}:null),g=r.computed(()=>e.errorSrc!==void 0?{src:e.errorSrc,__qerror:!0}:null),v=[r.ref(null),r.ref(c.value)],h=r.ref(0),f=r.ref(!1),_=r.ref(!1),p=r.computed(()=>`q-img q-img--${e.noNativeMenu===!0?"no-":""}menu`),b=r.computed(()=>({width:e.width,height:e.height})),S=r.computed(()=>`q-img__image ${e.imgClass!==void 0?e.imgClass+" ":""}q-img__image--with${e.noTransition===!0?"out":""}-transition q-img__image--`),y=r.computed(()=>({...e.imgStyle,objectFit:e.fit,objectPosition:e.position}));function m(){if(d(),e.loadingShowDelay===0){f.value=!0;return}u(()=>{f.value=!0},e.loadingShowDelay)}function w(){d(),f.value=!1}function E({target:M}){$n(l)===!1&&(s(),a.value=M.naturalHeight===0?.5:M.naturalWidth/M.naturalHeight,C(M,1))}function C(M,O){O===1e3||$n(l)===!0||(M.complete===!0?R(M):i(()=>{C(M,O+1)},50))}function R(M){$n(l)!==!0&&(h.value=h.value^1,v[h.value].value=null,w(),M.getAttribute("__qerror")!=="true"&&(_.value=!1),n("load",M.currentSrc||M.src))}function H(M){s(),w(),_.value=!0,v[h.value].value=g.value,v[h.value^1].value=c.value,n("error",M)}function q(M){const O=v[M].value,k={key:"img_"+M,class:S.value,style:y.value,alt:e.alt,crossorigin:e.crossorigin,decoding:e.decoding,referrerpolicy:e.referrerpolicy,height:e.height,width:e.width,loading:e.loading,fetchpriority:e.fetchpriority,"aria-hidden":"true",draggable:e.draggable,...O};return h.value===M?Object.assign(k,{class:k.class+"current",onLoad:E,onError:H}):k.class+="loaded",r.h("div",{class:"q-img__container absolute-full",key:"img"+M},r.h("img",k))}function T(){return f.value===!1?r.h("div",{key:"content",class:"q-img__content absolute-full q-anchor--skip"},Te(t[_.value===!0?"error":"default"])):r.h("div",{key:"loading",class:"q-img__loading absolute-full flex flex-center"},t.loading!==void 0?t.loading():e.noSpinner===!0?void 0:[r.h(cn,{color:e.spinnerColor,size:e.spinnerSize})])}{let M=function(){r.watch(()=>e.src||e.srcset||e.sizes?{src:e.src,srcset:e.srcset,sizes:e.sizes}:null,O=>{s(),_.value=!1,O===null?(w(),v[h.value^1].value=c.value):m(),v[h.value].value=O},{immediate:!0})};Zt.value===!0?r.onMounted(M):M()}return()=>{const M=[];return o.value!==null&&M.push(r.h("div",{key:"filler",style:o.value})),v[0].value!==null&&M.push(q(0)),v[1].value!==null&&M.push(q(1)),M.push(r.h(r.Transition,{name:"q-transition--fade"},T)),r.h("div",{key:"main",class:p.value,style:b.value,role:"img","aria-label":e.alt},M)}}});var{passive:pr}=lt;ie({name:"QInfiniteScroll",props:{offset:{type:Number,default:500},debounce:{type:[String,Number],default:100},scrollTarget:sr,initialIndex:{type:Number,default:0},disable:Boolean,reverse:Boolean},emits:["load"],setup(e,{slots:t,emit:n}){const a=r.ref(!1),o=r.ref(!0),l=r.ref(null),i=r.ref(null);let s=e.initialIndex,u,d;const c=r.computed(()=>"q-infinite-scroll__loading"+(a.value===!0?"":" invisible"));function g(){if(e.disable===!0||a.value===!0||o.value===!1)return;const C=ko(u),R=Fn(u),H=Ar(u);e.reverse===!1?Math.round(R+H+e.offset)>=Math.round(C)&&v():Math.round(R)<=e.offset&&v()}function v(){if(e.disable===!0||a.value===!0||o.value===!1)return;s++,a.value=!0;const C=ko(u);n("load",s,R=>{o.value===!0&&(a.value=!1,r.nextTick(()=>{if(e.reverse===!0){const H=ko(u),q=Fn(u),T=H-C;jr(u,q+T)}R===!0?_():l.value&&l.value.closest("body")&&d()}))})}function h(){s=0}function f(){o.value===!1&&(o.value=!0,u.addEventListener("scroll",d,pr)),g()}function _(){o.value===!0&&(o.value=!1,a.value=!1,u.removeEventListener("scroll",d,pr),d?.cancel?.())}function p(){if(u&&o.value===!0&&u.removeEventListener("scroll",d,pr),u=pn(l.value,e.scrollTarget),o.value===!0){if(u.addEventListener("scroll",d,pr),e.reverse===!0){const C=ko(u),R=Ar(u);jr(u,C-R)}g()}}function b(C){s=C}function S(C){C=parseInt(C,10);const R=d;d=C<=0?g:Lr(g,isNaN(C)===!0?100:C),u&&o.value===!0&&(R!==void 0&&u.removeEventListener("scroll",R,pr),u.addEventListener("scroll",d,pr))}function y(C){if(m.value===!0){if(i.value===null){C!==!0&&r.nextTick(()=>{y(!0)});return}const R=`${a.value===!0?"un":""}pauseAnimations`;Array.from(i.value.getElementsByTagName("svg")).forEach(H=>{H[R]()})}}const m=r.computed(()=>e.disable!==!0&&o.value===!0);r.watch([a,m],()=>{y()}),r.watch(()=>e.disable,C=>{C===!0?_():f()}),r.watch(()=>e.reverse,()=>{a.value===!1&&o.value===!0&&g()}),r.watch(()=>e.scrollTarget,p),r.watch(()=>e.debounce,S);let w=!1;r.onActivated(()=>{w!==!1&&u&&jr(u,w)}),r.onDeactivated(()=>{w=u?Fn(u):!1}),r.onBeforeUnmount(()=>{o.value===!0&&u.removeEventListener("scroll",d,pr)}),r.onMounted(()=>{S(e.debounce),p(),a.value===!1&&y()});const E=r.getCurrentInstance();return Object.assign(E.proxy,{poll:()=>{d?.()},trigger:v,stop:_,reset:h,resume:f,setIndex:b,updateScrollTarget:p}),()=>{const C=ga(t.default,[]);return m.value===!0&&C[e.reverse===!1?"push":"unshift"](r.h("div",{ref:i,class:c.value},Te(t.loading))),r.h("div",{class:"q-infinite-scroll",ref:l},C)}}}),ie({name:"QInnerLoading",props:{...Ye,...ir,showing:Boolean,color:String,size:{type:[String,Number],default:"42px"},label:String,labelClass:String,labelStyle:[String,Array,Object]},setup(e,{slots:t}){const n=r.getCurrentInstance(),a=Ge(e,n.proxy.$q),{transitionProps:o,transitionStyle:l}=Co(e),i=r.computed(()=>"q-inner-loading q--avoid-card-border absolute-full column flex-center"+(a.value===!0?" q-inner-loading--dark":"")),s=r.computed(()=>"q-inner-loading__label"+(e.labelClass!==void 0?` ${e.labelClass}`:""));function u(){const c=[r.h(cn,{size:e.size,color:e.color})];return e.label!==void 0&&c.push(r.h("div",{class:s.value,style:e.labelStyle},[e.label])),c}function d(){return e.showing===!0?r.h("div",{class:i.value,style:l.value},t.default!==void 0?t.default():u()):null}return()=>r.h(r.Transition,o.value,d)}});var dv={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},{tokenMap:fv,tokenKeys:S_}=vv({"#":{pattern:"[\\d]",negate:"[^\\d]"},S:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]"},N:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]"},A:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:e=>e.toLocaleUpperCase()},a:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:e=>e.toLocaleLowerCase()},X:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:e=>e.toLocaleUpperCase()},x:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:e=>e.toLocaleLowerCase()}});function vv(e){const t=Object.keys(e),n={};return t.forEach(a=>{const o=e[a];n[a]={...o,regex:new RegExp(o.pattern)}}),{tokenMap:n,tokenKeys:t}}function mv(e){return new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+e.join("")+"])|(.)","g")}var hv=/[.*+?^${}()|[\]\\]/g,w_=mv(S_),kt="",C_={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean,maskTokens:Object};function k_(e,t,n,a){let o,l,i,s,u,d;const c=r.computed(()=>{if(e.maskTokens===void 0||e.maskTokens===null)return{tokenMap:fv,tokenRegexMask:w_};const{tokenMap:q}=vv(e.maskTokens),T={...fv,...q};return{tokenMap:T,tokenRegexMask:mv(Object.keys(T))}}),g=r.ref(null),v=r.ref(f());function h(){return e.autogrow===!0||["textarea","text","search","url","tel","password"].includes(e.type)}r.watch(()=>e.type+e.autogrow,p),r.watch(()=>e.mask,q=>{if(q!==void 0)b(v.value,!0);else{const T=R(v.value);p(),e.modelValue!==T&&t("update:modelValue",T)}}),r.watch(()=>e.fillMask+e.reverseFillMask,()=>{g.value===!0&&b(v.value,!0)}),r.watch(()=>e.unmaskedValue,()=>{g.value===!0&&b(v.value)});function f(){if(p(),g.value===!0){const q=E(R(e.modelValue));return e.fillMask!==!1?H(q):q}return e.modelValue}function _(q){if(q<o.length)return o.slice(-q);let T="",M=o;const O=M.indexOf(kt);if(O!==-1){for(let k=q-M.length;k>0;k--)T+=kt;M=M.slice(0,O)+T+M.slice(O)}return M}function p(){if(g.value=e.mask!==void 0&&e.mask.length!==0&&h(),g.value===!1){s=void 0,o="",l="";return}const q=dv[e.mask]===void 0?e.mask:dv[e.mask],T=typeof e.fillMask=="string"&&e.fillMask.length!==0?e.fillMask.slice(0,1):"_",M=T.replace(hv,"\\$&"),O=[],k=[],A=[];let D=e.reverseFillMask===!0,z="",F="";q.replace(c.value.tokenRegexMask,(x,Y,B,le,N)=>{if(le!==void 0){const U=c.value.tokenMap[le];A.push(U),F=U.negate,D===!0&&(k.push("(?:"+F+"+)?("+U.pattern+"+)?(?:"+F+"+)?("+U.pattern+"+)?"),D=!1),k.push("(?:"+F+"+)?("+U.pattern+")?")}else if(B!==void 0)z="\\"+(B==="\\"?"":B),A.push(B),O.push("([^"+z+"]+)?"+z+"?");else{const U=Y!==void 0?Y:N;z=U==="\\"?"\\\\\\\\":U.replace(hv,"\\\\$&"),A.push(U),O.push("([^"+z+"]+)?"+z+"?")}});const Z=new RegExp("^"+O.join("")+"("+(z===""?".":"[^"+z+"]")+"+)?"+(z===""?"":"["+z+"]*")+"$"),he=k.length-1,$=k.map((x,Y)=>Y===0&&e.reverseFillMask===!0?new RegExp("^"+M+"*"+x):Y===he?new RegExp("^"+x+"("+(F===""?".":F)+"+)?"+(e.reverseFillMask===!0?"$":M+"*")):new RegExp("^"+x));i=A,s=x=>{const Y=Z.exec(e.reverseFillMask===!0?x:x.slice(0,A.length+1));Y!==null&&(x=Y.slice(1).join(""));const B=[],le=$.length;for(let N=0,U=x;N<le;N++){const ue=$[N].exec(U);if(ue===null)break;U=U.slice(ue.shift().length),B.push(...ue)}return B.length!==0?B.join(""):x},o=A.map(x=>typeof x=="string"?x:kt).join(""),l=o.split(kt).join(T)}function b(q,T,M){const O=a.value,k=O.selectionEnd,A=O.value.length-k,D=R(q);T===!0&&p();const z=E(D,T),F=e.fillMask!==!1?H(z):z,Z=v.value!==F;O.value!==F&&(O.value=F),Z===!0&&(v.value=F),document.activeElement===O&&r.nextTick(()=>{if(F===l){const $=e.reverseFillMask===!0?l.length:0;O.setSelectionRange($,$,"forward");return}if(M==="insertFromPaste"&&e.reverseFillMask!==!0){const $=O.selectionEnd;let x=k-1;for(let Y=u;Y<=x&&Y<$;Y++)o[Y]!==kt&&x++;y.right(O,x);return}if(["deleteContentBackward","deleteContentForward"].indexOf(M)!==-1){const $=e.reverseFillMask===!0?k===0?F.length>z.length?1:0:Math.max(0,F.length-(F===l?0:Math.min(z.length,A)+1))+1:k;O.setSelectionRange($,$,"forward");return}if(e.reverseFillMask===!0)if(Z===!0){const $=Math.max(0,F.length-(F===l?0:Math.min(z.length,A+1)));$===1&&k===1?O.setSelectionRange($,$,"forward"):y.rightReverse(O,$)}else{const $=F.length-A;O.setSelectionRange($,$,"backward")}else if(Z===!0){const $=Math.max(0,o.indexOf(kt),Math.min(z.length,k)-1);y.right(O,$)}else{const $=k-1;y.right(O,$)}});const he=e.unmaskedValue===!0?R(F):F;String(e.modelValue)!==he&&(e.modelValue!==null||he!=="")&&n(he,!0)}function S(q,T,M){const O=E(R(q.value));T=Math.max(0,o.indexOf(kt),Math.min(O.length,T)),u=T,q.setSelectionRange(T,M,"forward")}const y={left(q,T){const M=o.slice(T-1).indexOf(kt)===-1;let O=Math.max(0,T-1);for(;O>=0;O--)if(o[O]===kt){T=O,M===!0&&T++;break}if(O<0&&o[T]!==void 0&&o[T]!==kt)return y.right(q,0);T>=0&&q.setSelectionRange(T,T,"backward")},right(q,T){const M=q.value.length;let O=Math.min(M,T+1);for(;O<=M;O++)if(o[O]===kt){T=O;break}else o[O-1]===kt&&(T=O);if(O>M&&o[T-1]!==void 0&&o[T-1]!==kt)return y.left(q,M);q.setSelectionRange(T,T,"forward")},leftReverse(q,T){const M=_(q.value.length);let O=Math.max(0,T-1);for(;O>=0;O--)if(M[O-1]===kt){T=O;break}else if(M[O]===kt&&(T=O,O===0))break;if(O<0&&M[T]!==void 0&&M[T]!==kt)return y.rightReverse(q,0);T>=0&&q.setSelectionRange(T,T,"backward")},rightReverse(q,T){const M=q.value.length,O=_(M),k=O.slice(0,T+1).indexOf(kt)===-1;let A=Math.min(M,T+1);for(;A<=M;A++)if(O[A-1]===kt){T=A,T>0&&k===!0&&T--;break}if(A>M&&O[T-1]!==void 0&&O[T-1]!==kt)return y.leftReverse(q,M);q.setSelectionRange(T,T,"forward")}};function m(q){t("click",q),d=void 0}function w(q){if(t("keydown",q),rr(q)===!0||q.altKey===!0)return;const T=a.value,M=T.selectionStart,O=T.selectionEnd;if(q.shiftKey||(d=void 0),q.keyCode===37||q.keyCode===39){q.shiftKey&&d===void 0&&(d=T.selectionDirection==="forward"?M:O);const k=y[(q.keyCode===39?"right":"left")+(e.reverseFillMask===!0?"Reverse":"")];if(q.preventDefault(),k(T,d===M?O:M),q.shiftKey){const A=T.selectionStart;T.setSelectionRange(Math.min(d,A),Math.max(d,A),"forward")}}else q.keyCode===8&&e.reverseFillMask!==!0&&M===O?(y.left(T,M),T.setSelectionRange(T.selectionStart,O,"backward")):q.keyCode===46&&e.reverseFillMask===!0&&M===O&&(y.rightReverse(T,O),T.setSelectionRange(M,T.selectionEnd,"forward"))}function E(q,T){if(q==null||q==="")return"";if(e.reverseFillMask===!0)return C(q,T);const M=i;let O=0,k="";for(let A=0;A<M.length;A++){const D=q[O],z=M[A];if(typeof z=="string")k+=z,T===!0&&D===z&&O++;else if(D!==void 0&&z.regex.test(D))k+=z.transform!==void 0?z.transform(D):D,O++;else return k}return k}function C(q,T){const M=i,O=o.indexOf(kt);let k=q.length-1,A="";for(let D=M.length-1;D>=0&&k!==-1;D--){const z=M[D];let F=q[k];if(typeof z=="string")A=z+A,T===!0&&F===z&&k--;else if(F!==void 0&&z.regex.test(F))do A=(z.transform!==void 0?z.transform(F):F)+A,k--,F=q[k];while(O===D&&F!==void 0&&z.regex.test(F));else return A}return A}function R(q){return typeof q!="string"||s===void 0?typeof q=="number"?s(""+q):q:s(q)}function H(q){return l.length-q.length<=0?q:e.reverseFillMask===!0&&q.length!==0?l.slice(0,-q.length)+q:q+l.slice(q.length)}return{innerValue:v,hasMask:g,moveCursorForPaste:S,updateMaskValue:b,onMaskedKeydown:w,onMaskedClick:m}}var x_=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,E_=/[\u4e00-\u9fff\u3400-\u4dbf\u{20000}-\u{2a6df}\u{2a700}-\u{2b73f}\u{2b740}-\u{2b81f}\u{2b820}-\u{2ceaf}\uf900-\ufaff\u3300-\u33ff\ufe30-\ufe4f\uf900-\ufaff\u{2f800}-\u{2fa1f}]/u,T_=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,q_=/[a-z0-9_ -]$/i;function gv(e){return function(n){if(n.type==="compositionend"||n.type==="change"){if(n.target.qComposing!==!0)return;n.target.qComposing=!1,e(n)}else n.type==="compositionupdate"&&n.target.qComposing!==!0&&typeof n.data=="string"&&(He.is.firefox===!0?q_.test(n.data)===!1:x_.test(n.data)===!0||E_.test(n.data)===!0||T_.test(n.data)===!0)===!0&&(n.target.qComposing=!0)}}var bv=ie({name:"QInput",inheritAttrs:!1,props:{...Jo,...C_,...nn,modelValue:[String,Number,FileList],shadowText:String,type:{type:String,default:"text"},debounce:[String,Number],autogrow:Boolean,inputClass:[Array,String,Object],inputStyle:[Array,String,Object]},emits:[...Zo,"paste","change","keydown","click","animationend"],setup(e,{emit:t,attrs:n}){const{proxy:a}=r.getCurrentInstance(),{$q:o}=a,l={};let i=NaN,s,u,d=null,c;const g=r.ref(null),v=Bi(e),{innerValue:h,hasMask:f,moveCursorForPaste:_,updateMaskValue:p,onMaskedKeydown:b,onMaskedClick:S}=k_(e,t,D,g),y=cv(e,!0),m=r.computed(()=>br(h.value)),w=gv(k),E=Vo({changeEvent:!0}),C=r.computed(()=>e.type==="textarea"||e.autogrow===!0),R=r.computed(()=>C.value===!0||["text","search","url","tel","password"].includes(e.type)),H=r.computed(()=>{const x={...E.splitAttrs.listeners.value,onInput:k,onPaste:O,onChange:F,onBlur:Z,onFocus:ft};return x.onCompositionstart=x.onCompositionupdate=x.onCompositionend=w,f.value===!0&&(x.onKeydown=b,x.onClick=S),e.autogrow===!0&&(x.onAnimationend=A),x}),q=r.computed(()=>{const x={tabindex:0,"data-autofocus":e.autofocus===!0||void 0,rows:e.type==="textarea"?6:void 0,"aria-label":e.label,name:v.value,...E.splitAttrs.attributes.value,id:E.targetUid.value,maxlength:e.maxlength,disabled:e.disable===!0,readonly:e.readonly===!0};return C.value===!1&&(x.type=e.type),e.autogrow===!0&&(x.rows=1),x});r.watch(()=>e.type,()=>{g.value&&(g.value.value=e.modelValue)}),r.watch(()=>e.modelValue,x=>{if(f.value===!0){if(u===!0&&(u=!1,String(x)===i))return;p(x)}else h.value!==x&&(h.value=x,e.type==="number"&&l.hasOwnProperty("value")===!0&&(s===!0?s=!1:delete l.value));e.autogrow===!0&&r.nextTick(z)}),r.watch(()=>e.autogrow,x=>{x===!0?r.nextTick(z):g.value!==null&&n.rows>0&&(g.value.style.height="auto")}),r.watch(()=>e.dense,()=>{e.autogrow===!0&&r.nextTick(z)});function T(){Br(()=>{const x=document.activeElement;g.value!==null&&g.value!==x&&(x===null||x.id!==E.targetUid.value)&&g.value.focus({preventScroll:!0})})}function M(){g.value?.select()}function O(x){if(f.value===!0&&e.reverseFillMask!==!0){const Y=x.target;_(Y,Y.selectionStart,Y.selectionEnd)}t("paste",x)}function k(x){if(!x||!x.target)return;if(e.type==="file"){t("update:modelValue",x.target.files);return}const Y=x.target.value;if(x.target.qComposing===!0){l.value=Y;return}if(f.value===!0)p(Y,!1,x.inputType);else if(D(Y),R.value===!0&&x.target===document.activeElement){const{selectionStart:B,selectionEnd:le}=x.target;B!==void 0&&le!==void 0&&r.nextTick(()=>{x.target===document.activeElement&&Y.indexOf(x.target.value)===0&&x.target.setSelectionRange(B,le)})}e.autogrow===!0&&z()}function A(x){t("animationend",x),z()}function D(x,Y){c=()=>{d=null,e.type!=="number"&&l.hasOwnProperty("value")===!0&&delete l.value,e.modelValue!==x&&i!==x&&(i=x,Y===!0&&(u=!0),t("update:modelValue",x),r.nextTick(()=>{i===x&&(i=NaN)})),c=void 0},e.type==="number"&&(s=!0,l.value=x),e.debounce!==void 0?(d!==null&&clearTimeout(d),l.value=x,d=setTimeout(c,e.debounce)):c()}function z(){requestAnimationFrame(()=>{const x=g.value;if(x!==null){const Y=x.parentNode.style,{scrollTop:B}=x,{overflowY:le,maxHeight:N}=o.platform.is.firefox===!0?{}:window.getComputedStyle(x),U=le!==void 0&&le!=="scroll";U===!0&&(x.style.overflowY="hidden"),Y.marginBottom=x.scrollHeight-1+"px",x.style.height="1px",x.style.height=x.scrollHeight+"px",U===!0&&(x.style.overflowY=parseInt(N,10)<x.scrollHeight?"auto":"hidden"),Y.marginBottom="",x.scrollTop=B}})}function F(x){w(x),d!==null&&(clearTimeout(d),d=null),c?.(),t("change",x.target.value)}function Z(x){x!==void 0&&ft(x),d!==null&&(clearTimeout(d),d=null),c?.(),s=!1,u=!1,delete l.value,e.type!=="file"&&setTimeout(()=>{g.value!==null&&(g.value.value=h.value!==void 0?h.value:"")})}function he(){return l.hasOwnProperty("value")===!0?l.value:h.value!==void 0?h.value:""}r.onBeforeUnmount(()=>{Z()}),r.onMounted(()=>{e.autogrow===!0&&z()}),Object.assign(E,{innerValue:h,fieldClass:r.computed(()=>`q-${C.value===!0?"textarea":"input"}`+(e.autogrow===!0?" q-textarea--autogrow":"")),hasShadow:r.computed(()=>e.type!=="file"&&typeof e.shadowText=="string"&&e.shadowText.length!==0),inputRef:g,emitValue:D,hasValue:m,floatingLabel:r.computed(()=>m.value===!0&&(e.type!=="number"||isNaN(h.value)===!1)||br(e.displayValue)),getControl:()=>r.h(C.value===!0?"textarea":"input",{ref:g,class:["q-field__native q-placeholder",e.inputClass],style:e.inputStyle,...q.value,...H.value,...e.type!=="file"?{value:he()}:y.value}),getShadowControl:()=>r.h("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(C.value===!0?"":" text-no-wrap")},[r.h("span",{class:"invisible"},he()),r.h("span",e.shadowText)])});const $=el(E);return Object.assign(a,{focus:T,select:M,getNativeElement:()=>g.value}),xt(a,"nativeEl",()=>g.value),$}}),pv={threshold:0,root:null,rootMargin:"0px"};function yv(e,t,n){let a,o,l;typeof n=="function"?(a=n,o=pv,l=t.cfg===void 0):(a=n.handler,o=Object.assign({},pv,n.cfg),l=t.cfg===void 0||un(t.cfg,o)===!1),t.handler!==a&&(t.handler=a),l===!0&&(t.cfg=o,t.observer?.unobserve(e),t.observer=new IntersectionObserver(([i])=>{if(typeof t.handler=="function"){if(i.rootBounds===null&&document.body.contains(e)===!0){t.observer.unobserve(e),t.observer.observe(e);return}(t.handler(i,t.observer)===!1||t.once===!0&&i.isIntersecting===!0)&&_v(e)}},o),t.observer.observe(e))}function _v(e){const t=e.__qvisible;t!==void 0&&(t.observer?.unobserve(e),delete e.__qvisible)}var O_=sn({name:"intersection",mounted(e,{modifiers:t,value:n}){const a={once:t.once===!0};yv(e,a,n),e.__qvisible=a},updated(e,t){const n=e.__qvisible;n!==void 0&&yv(e,n,t.value)},beforeUnmount:_v});ie({name:"QIntersection",props:{tag:{type:String,default:"div"},once:Boolean,transition:String,transitionDuration:{type:[String,Number],default:300},ssrPrerender:Boolean,margin:String,threshold:[Number,Array],root:{default:null},disable:Boolean,onVisibility:Function},setup(e,{slots:t,emit:n}){const a=r.ref(Zt.value===!0?e.ssrPrerender:!1),o=r.computed(()=>e.root!==void 0||e.margin!==void 0||e.threshold!==void 0?{handler:u,cfg:{root:e.root,rootMargin:e.margin,threshold:e.threshold}}:u),l=r.computed(()=>e.disable!==!0&&(Zt.value!==!0||e.once!==!0||e.ssrPrerender!==!0)),i=r.computed(()=>[[O_,o.value,void 0,{once:e.once}]]),s=r.computed(()=>`--q-transition-duration: ${e.transitionDuration}ms`);function u(c){a.value!==c.isIntersecting&&(a.value=c.isIntersecting,e.onVisibility!==void 0&&n("visibility",a.value))}function d(){if(a.value===!0)return[r.h("div",{key:"content",style:s.value},Te(t.default))];if(t.hidden!==void 0)return[r.h("div",{key:"hidden",style:s.value},t.hidden())]}return()=>{const c=e.transition?[r.h(r.Transition,{name:"q-transition--"+e.transition},d)]:d();return en(e.tag,{class:"q-intersection"},c,"main",l.value,()=>i.value)}}});var M_=["ul","ol"],L_=ie({name:"QList",props:{...Ye,bordered:Boolean,dense:Boolean,separator:Boolean,padding:Boolean,tag:{type:String,default:"div"}},setup(e,{slots:t}){const n=r.getCurrentInstance(),a=Ge(e,n.proxy.$q),o=r.computed(()=>M_.includes(e.tag)?null:"list"),l=r.computed(()=>"q-list"+(e.bordered===!0?" q-list--bordered":"")+(e.dense===!0?" q-list--dense":"")+(e.separator===!0?" q-list--separator":"")+(a.value===!0?" q-list--dark":"")+(e.padding===!0?" q-list--padding":""));return()=>r.h(e.tag,{class:l.value,role:o.value},Te(t.default))}}),Sv=[34,37,40,33,39,38],A_=Object.keys(Yi);ie({name:"QKnob",props:{...nn,...Yi,modelValue:{type:Number,required:!0},innerMin:Number,innerMax:Number,step:{type:Number,default:1,validator:e=>e>=0},tabindex:{type:[Number,String],default:0},disable:Boolean,readonly:Boolean},emits:["update:modelValue","change","dragValue"],setup(e,{slots:t,emit:n}){const{proxy:a}=r.getCurrentInstance(),{$q:o}=a,l=r.ref(e.modelValue),i=r.ref(!1),s=r.computed(()=>isNaN(e.innerMin)===!0||e.innerMin<e.min?e.min:e.innerMin),u=r.computed(()=>isNaN(e.innerMax)===!0||e.innerMax>e.max?e.max:e.innerMax);let d;function c(){l.value=e.modelValue===null?s.value:at(e.modelValue,s.value,u.value),T(!0)}r.watch(()=>`${e.modelValue}|${s.value}|${u.value}`,c),c();const g=r.computed(()=>e.disable===!1&&e.readonly===!1),v=r.computed(()=>"q-knob non-selectable"+(g.value===!0?" q-knob--editable":e.disable===!0?" disabled":"")),h=r.computed(()=>(String(e.step).trim().split(".")[1]||"").length),f=r.computed(()=>e.step===0?1:e.step),_=r.computed(()=>e.instantFeedback===!0||i.value===!0),p=o.platform.is.mobile===!0?r.computed(()=>g.value===!0?{onClick:C}:{}):r.computed(()=>g.value===!0?{onMousedown:E,onClick:C,onKeydown:R,onKeyup:q}:{}),b=r.computed(()=>g.value===!0?{tabindex:e.tabindex}:{[`aria-${e.disable===!0?"disabled":"readonly"}`]:"true"}),S=r.computed(()=>{const k={};return A_.forEach(A=>{k[A]=e[A]}),k});function y(k){k.isFinal?(H(k.evt,!0),i.value=!1):(k.isFirst&&(w(),i.value=!0),H(k.evt))}const m=r.computed(()=>[[rn,y,void 0,{prevent:!0,stop:!0,mouse:!0}]]);function w(){const{top:k,left:A,width:D,height:z}=a.$el.getBoundingClientRect();d={top:k+z/2,left:A+D/2}}function E(k){w(),H(k)}function C(k){w(),H(k,!0)}function R(k){if(Sv.includes(k.keyCode)===!1)return;Fe(k);const A=([34,33].includes(k.keyCode)?10:1)*f.value,D=[34,37,40].includes(k.keyCode)?-A:A;l.value=at(parseFloat((l.value+D).toFixed(h.value)),s.value,u.value),T()}function H(k,A){const D=zt(k),z=Math.abs(D.top-d.top),F=Math.sqrt(z**2+Math.abs(D.left-d.left)**2);let Z=Math.asin(z/F)*(180/Math.PI);D.top<d.top?Z=d.left<D.left?90-Z:270+Z:Z=d.left<D.left?Z+90:270-Z,o.lang.rtl===!0?Z=go(-Z-e.angle,0,360):e.angle&&(Z=go(Z-e.angle,0,360)),e.reverse===!0&&(Z=360-Z);let he=e.min+Z/360*(e.max-e.min);if(f.value!==0){const $=he%f.value;he=he-$+(Math.abs($)>=f.value/2?($<0?-1:1)*f.value:0),he=parseFloat(he.toFixed(h.value))}he=at(he,s.value,u.value),n("dragValue",he),l.value!==he&&(l.value=he),T(A)}function q(k){Sv.includes(k.keyCode)&&T(!0)}function T(k){e.modelValue!==l.value&&n("update:modelValue",l.value),k===!0&&n("change",l.value)}const M=Sa(e);function O(){return r.h("input",M.value)}return()=>{const k={class:v.value,role:"slider","aria-valuemin":s.value,"aria-valuemax":u.value,"aria-valuenow":e.modelValue,...b.value,...S.value,value:l.value,instantFeedback:_.value,...p.value},A={default:t.default};return g.value===!0&&e.name!==void 0&&(A.internal=O),en(lf,k,A,"knob",g.value,()=>m.value)}}});var{passive:wv}=lt,R_=["both","horizontal","vertical"],Cv=ie({name:"QScrollObserver",props:{axis:{type:String,validator:e=>R_.includes(e),default:"vertical"},debounce:[String,Number],scrollTarget:sr},emits:["scroll"],setup(e,{emit:t}){const n={position:{top:0,left:0},direction:"down",directionChanged:!1,delta:{top:0,left:0},inflectionPoint:{top:0,left:0}};let a=null,o,l;r.watch(()=>e.scrollTarget,()=>{u(),s()});function i(){a?.();const g=Math.max(0,Fn(o)),v=xo(o),h={top:g-n.position.top,left:v-n.position.left};if(e.axis==="vertical"&&h.top===0||e.axis==="horizontal"&&h.left===0)return;const f=Math.abs(h.top)>=Math.abs(h.left)?h.top<0?"up":"down":h.left<0?"left":"right";n.position={top:g,left:v},n.directionChanged=n.direction!==f,n.delta=h,n.directionChanged===!0&&(n.direction=f,n.inflectionPoint=n.position),t("scroll",{...n})}function s(){o=pn(l,e.scrollTarget),o.addEventListener("scroll",d,wv),d(!0)}function u(){o!==void 0&&(o.removeEventListener("scroll",d,wv),o=void 0)}function d(g){if(g===!0||e.debounce===0||e.debounce==="0")i();else if(a===null){const[v,h]=e.debounce?[setTimeout(i,e.debounce),clearTimeout]:[requestAnimationFrame(i),cancelAnimationFrame];a=()=>{h(v),a=null}}}const{proxy:c}=r.getCurrentInstance();return r.watch(()=>c.$q.lang.rtl,i),r.onMounted(()=>{l=c.$el.parentNode,s()}),r.onBeforeUnmount(()=>{a?.(),u()}),Object.assign(c,{trigger:d,getPosition:()=>n}),wt}});ie({name:"QLayout",props:{container:Boolean,view:{type:String,default:"hhh lpr fff",validator:e=>/^(h|l)h(h|r) lpr (f|l)f(f|r)$/.test(e.toLowerCase())},onScroll:Function,onScrollHeight:Function,onResize:Function},setup(e,{slots:t,emit:n}){const{proxy:{$q:a}}=r.getCurrentInstance(),o=r.ref(null),l=r.ref(a.screen.height),i=r.ref(e.container===!0?0:a.screen.width),s=r.ref({position:0,direction:"down",inflectionPoint:0}),u=r.ref(0),d=r.ref(Zt.value===!0?0:To()),c=r.computed(()=>"q-layout q-layout--"+(e.container===!0?"containerized":"standard")),g=r.computed(()=>e.container===!1?{minHeight:a.screen.height+"px"}:null),v=r.computed(()=>d.value!==0?{[a.lang.rtl===!0?"left":"right"]:`${d.value}px`}:null),h=r.computed(()=>d.value!==0?{[a.lang.rtl===!0?"right":"left"]:0,[a.lang.rtl===!0?"left":"right"]:`-${d.value}px`,width:`calc(100% + ${d.value}px)`}:null);function f(m){if(e.container===!0||document.qScrollPrevented!==!0){const w={position:m.position.top,direction:m.direction,directionChanged:m.directionChanged,inflectionPoint:m.inflectionPoint.top,delta:m.delta.top};s.value=w,e.onScroll!==void 0&&n("scroll",w)}}function _(m){const{height:w,width:E}=m;let C=!1;l.value!==w&&(C=!0,l.value=w,e.onScrollHeight!==void 0&&n("scrollHeight",w),b()),i.value!==E&&(C=!0,i.value=E),C===!0&&e.onResize!==void 0&&n("resize",m)}function p({height:m}){u.value!==m&&(u.value=m,b())}function b(){if(e.container===!0){const m=l.value>u.value?To():0;d.value!==m&&(d.value=m)}}let S=null;const y={instances:{},view:r.computed(()=>e.view),isContainer:r.computed(()=>e.container),rootRef:o,height:l,containerHeight:u,scrollbarWidth:d,totalWidth:r.computed(()=>i.value+d.value),rows:r.computed(()=>{const m=e.view.toLowerCase().split(" ");return{top:m[0].split(""),middle:m[1].split(""),bottom:m[2].split("")}}),header:r.reactive({size:0,offset:0,space:!1}),right:r.reactive({size:300,offset:0,space:!1}),footer:r.reactive({size:0,offset:0,space:!1}),left:r.reactive({size:300,offset:0,space:!1}),scroll:s,animate(){S!==null?clearTimeout(S):document.body.classList.add("q-body--layout-animate"),S=setTimeout(()=>{S=null,document.body.classList.remove("q-body--layout-animate")},155)},update(m,w,E){y[m][w]=E}};if(r.provide(or,y),To()>0){let m=function(){C=null,R.classList.remove("hide-scrollbar")},w=function(){if(C===null){if(R.scrollHeight>a.screen.height)return;R.classList.add("hide-scrollbar")}else clearTimeout(C);C=setTimeout(m,300)},E=function(H){C!==null&&H==="remove"&&(clearTimeout(C),m()),window[`${H}EventListener`]("resize",w)},C=null;const R=document.body;r.watch(()=>e.container!==!0?"add":"remove",E),e.container!==!0&&E("add"),r.onUnmounted(()=>{E("remove")})}return()=>{const m=ht(t.default,[r.h(Cv,{onScroll:f}),r.h(vr,{onResize:_})]),w=r.h("div",{class:c.value,style:g.value,ref:e.container===!0?void 0:o,tabindex:-1},m);return e.container===!0?r.h("div",{class:"q-layout-container overflow-hidden",ref:o},[r.h(vr,{onResize:p}),r.h("div",{class:"absolute-full",style:v.value},[r.h("div",{class:"scroll",style:h.value},[w])])]):w}}});var P_=["horizontal","vertical","cell","none"],N_=ie({name:"QMarkupTable",props:{...Ye,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,wrapCells:Boolean,separator:{type:String,default:"horizontal",validator:e=>P_.includes(e)}},setup(e,{slots:t}){const n=r.getCurrentInstance(),a=Ge(e,n.proxy.$q),o=r.computed(()=>`q-markup-table q-table__container q-table__card q-table--${e.separator}-separator`+(a.value===!0?" q-table--dark q-table__card--dark q-dark":"")+(e.dense===!0?" q-table--dense":"")+(e.flat===!0?" q-table--flat":"")+(e.bordered===!0?" q-table--bordered":"")+(e.square===!0?" q-table--square":"")+(e.wrapCells===!1?" q-table--no-wrap":""));return()=>r.h("div",{class:o.value},[r.h("table",{class:"q-table"},Te(t.default))])}});ie({name:"QNoSsr",props:{tag:{type:String,default:"div"},placeholder:String},setup(e,{slots:t}){const{isHydrated:n}=ff();return()=>{if(n.value===!0){const l=Te(t.default);return l===void 0?l:l.length>1?r.h(e.tag,{},l):l[0]}const a={class:"q-no-ssr-placeholder"},o=Te(t.placeholder);if(o!==void 0)return o.length>1?r.h(e.tag,a,o):o[0];if(e.placeholder!==void 0)return r.h(e.tag,a,e.placeholder)}}});var I_=()=>r.h("svg",{key:"svg",class:"q-radio__bg absolute non-selectable",viewBox:"0 0 24 24"},[r.h("path",{d:"M12,22a10,10 0 0 1 -10,-10a10,10 0 0 1 10,-10a10,10 0 0 1 10,10a10,10 0 0 1 -10,10m0,-22a12,12 0 0 0 -12,12a12,12 0 0 0 12,12a12,12 0 0 0 12,-12a12,12 0 0 0 -12,-12"}),r.h("path",{class:"q-radio__check",d:"M12,6a6,6 0 0 0 -6,6a6,6 0 0 0 6,6a6,6 0 0 0 6,-6a6,6 0 0 0 -6,-6"})]),D_=ie({name:"QRadio",props:{...Ye,...Tn,...nn,modelValue:{required:!0},val:{required:!0},label:String,leftLabel:Boolean,checkedIcon:String,uncheckedIcon:String,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},emits:["update:modelValue"],setup(e,{slots:t,emit:n}){const{proxy:a}=r.getCurrentInstance(),o=Ge(e,a.$q),l=qn(e,Vd),i=r.ref(null),{refocusTargetEl:s,refocusTarget:u}=Zd(e,i),d=r.computed(()=>r.toRaw(e.modelValue)===r.toRaw(e.val)),c=r.computed(()=>"q-radio cursor-pointer no-outline row inline no-wrap items-center"+(e.disable===!0?" disabled":"")+(o.value===!0?" q-radio--dark":"")+(e.dense===!0?" q-radio--dense":"")+(e.leftLabel===!0?" reverse":"")),g=r.computed(()=>{const m=e.color!==void 0&&(e.keepColor===!0||d.value===!0)?` text-${e.color}`:"";return`q-radio__inner relative-position q-radio__inner--${d.value===!0?"truthy":"falsy"}${m}`}),v=r.computed(()=>(d.value===!0?e.checkedIcon:e.uncheckedIcon)||null),h=r.computed(()=>e.disable===!0?-1:e.tabindex||0),f=r.computed(()=>{const m={type:"radio"};return e.name!==void 0&&Object.assign(m,{".checked":d.value===!0,"^checked":d.value===!0?"checked":void 0,name:e.name,value:e.val}),m}),_=zn(f);function p(m){m!==void 0&&(Fe(m),u(m)),e.disable!==!0&&d.value!==!0&&n("update:modelValue",e.val,m)}function b(m){(m.keyCode===13||m.keyCode===32)&&Fe(m)}function S(m){(m.keyCode===13||m.keyCode===32)&&p(m)}Object.assign(a,{set:p});const y=I_();return()=>{const m=v.value!==null?[r.h("div",{key:"icon",class:"q-radio__icon-container absolute-full flex flex-center no-wrap"},[r.h(Xe,{class:"q-radio__icon",name:v.value})])]:[y];e.disable!==!0&&_(m,"unshift"," q-radio__native q-ma-none q-pa-none");const w=[r.h("div",{class:g.value,style:l.value,"aria-hidden":"true"},m)];s.value!==null&&w.push(s.value);const E=e.label!==void 0?ht(t.default,[e.label]):Te(t.default);return E!==void 0&&w.push(r.h("div",{class:"q-radio__label q-anchor--skip"},E)),r.h("div",{ref:i,class:c.value,tabindex:h.value,role:"radio","aria-label":e.label,"aria-checked":d.value===!0?"true":"false","aria-disabled":e.disable===!0?"true":void 0,onClick:p,onKeydown:b,onKeyup:S},w)}}}),$_=ie({name:"QToggle",props:{...ef,icon:String,iconColor:String},emits:tf,setup(e){function t(n,a){const o=r.computed(()=>(n.value===!0?e.checkedIcon:a.value===!0?e.indeterminateIcon:e.uncheckedIcon)||e.icon),l=r.computed(()=>n.value===!0?e.iconColor:null);return()=>[r.h("div",{class:"q-toggle__track"}),r.h("div",{class:"q-toggle__thumb absolute flex flex-center no-wrap"},o.value!==void 0?[r.h(Xe,{name:o.value,color:l.value})]:void 0)]}return nf("toggle",t)}}),kv={radio:D_,checkbox:ka,toggle:$_},B_=Object.keys(kv);function Cs(e,t){if(typeof e=="function")return e;const n=e!==void 0?e:t;return a=>a[n]}var F_=ie({name:"QOptionGroup",props:{...Ye,modelValue:{required:!0},options:{type:Array,validator:e=>e.every($t),default:()=>[]},optionValue:[Function,String],optionLabel:[Function,String],optionDisable:[Function,String],name:String,type:{type:String,default:"radio",validator:e=>B_.includes(e)},color:String,keepColor:Boolean,dense:Boolean,size:String,leftLabel:Boolean,inline:Boolean,disable:Boolean},emits:["update:modelValue"],setup(e,{emit:t,slots:n}){const{proxy:{$q:a}}=r.getCurrentInstance(),o=Array.isArray(e.modelValue);e.type==="radio"?o===!0&&console.error("q-option-group: model should not be array"):o===!1&&console.error("q-option-group: model should be array in your case");const l=Ge(e,a),i=r.computed(()=>kv[e.type]),s=r.computed(()=>Cs(e.optionValue,"value")),u=r.computed(()=>Cs(e.optionLabel,"label")),d=r.computed(()=>Cs(e.optionDisable,"disable")),c=r.computed(()=>e.options.map(f=>({val:s.value(f),name:f.name===void 0?e.name:f.name,disable:e.disable||d.value(f),leftLabel:f.leftLabel===void 0?e.leftLabel:f.leftLabel,color:f.color===void 0?e.color:f.color,checkedIcon:f.checkedIcon,uncheckedIcon:f.uncheckedIcon,dark:f.dark===void 0?l.value:f.dark,size:f.size===void 0?e.size:f.size,dense:e.dense,keepColor:f.keepColor===void 0?e.keepColor:f.keepColor}))),g=r.computed(()=>"q-option-group q-gutter-x-sm"+(e.inline===!0?" q-option-group--inline":"")),v=r.computed(()=>{const f={role:"group"};return e.type==="radio"&&(f.role="radiogroup",e.disable===!0&&(f["aria-disabled"]="true")),f});function h(f){t("update:modelValue",f)}return()=>r.h("div",{class:g.value,...v.value},e.options.map((f,_)=>{const p=n["label-"+_]!==void 0?()=>n["label-"+_](f):n.label!==void 0?()=>n.label(f):void 0;return r.h("div",[r.h(i.value,{label:p===void 0?u.value(f):null,modelValue:e.modelValue,"onUpdate:modelValue":h,...c.value[_]},p)])}))}});ie({name:"QPage",props:{padding:Boolean,styleFn:Function},setup(e,{slots:t}){const{proxy:{$q:n}}=r.getCurrentInstance(),a=r.inject(or,et);if(a===et)return console.error("QPage needs to be a deep child of QLayout"),et;if(r.inject(rd,et)===et)return console.error("QPage needs to be child of QPageContainer"),et;const l=r.computed(()=>{const s=(a.header.space===!0?a.header.size:0)+(a.footer.space===!0?a.footer.size:0);if(typeof e.styleFn=="function"){const u=a.isContainer.value===!0?a.containerHeight.value:n.screen.height;return e.styleFn(s,u)}return{minHeight:a.isContainer.value===!0?a.containerHeight.value-s+"px":n.screen.height===0?s!==0?`calc(100vh - ${s}px)`:"100vh":n.screen.height-s+"px"}}),i=r.computed(()=>`q-page${e.padding===!0?" q-layout-padding":""}`);return()=>r.h("main",{class:i.value,style:l.value},Te(t.default))}}),ie({name:"QPageContainer",setup(e,{slots:t}){const{proxy:{$q:n}}=r.getCurrentInstance(),a=r.inject(or,et);if(a===et)return console.error("QPageContainer needs to be child of QLayout"),et;r.provide(rd,!0);const o=r.computed(()=>{const l={};return a.header.space===!0&&(l.paddingTop=`${a.header.size}px`),a.right.space===!0&&(l[`padding${n.lang.rtl===!0?"Left":"Right"}`]=`${a.right.size}px`),a.footer.space===!0&&(l.paddingBottom=`${a.footer.size}px`),a.left.space===!0&&(l[`padding${n.lang.rtl===!0?"Right":"Left"}`]=`${a.left.size}px`),l});return()=>r.h("div",{class:"q-page-container",style:o.value},Te(t.default))}});var ks={position:{type:String,default:"bottom-right",validator:e=>["top-right","top-left","bottom-right","bottom-left","top","right","bottom","left"].includes(e)},offset:{type:Array,validator:e=>e.length===2},expand:Boolean};function xv(){const{props:e,proxy:{$q:t}}=r.getCurrentInstance(),n=r.inject(or,et);if(n===et)return console.error("QPageSticky needs to be child of QLayout"),et;const a=r.computed(()=>{const g=e.position;return{top:g.indexOf("top")!==-1,right:g.indexOf("right")!==-1,bottom:g.indexOf("bottom")!==-1,left:g.indexOf("left")!==-1,vertical:g==="top"||g==="bottom",horizontal:g==="left"||g==="right"}}),o=r.computed(()=>n.header.offset),l=r.computed(()=>n.right.offset),i=r.computed(()=>n.footer.offset),s=r.computed(()=>n.left.offset),u=r.computed(()=>{let g=0,v=0;const h=a.value,f=t.lang.rtl===!0?-1:1;h.top===!0&&o.value!==0?v=`${o.value}px`:h.bottom===!0&&i.value!==0&&(v=`${-i.value}px`),h.left===!0&&s.value!==0?g=`${f*s.value}px`:h.right===!0&&l.value!==0&&(g=`${-f*l.value}px`);const _={transform:`translate(${g}, ${v})`};return e.offset&&(_.margin=`${e.offset[1]}px ${e.offset[0]}px`),h.vertical===!0?(s.value!==0&&(_[t.lang.rtl===!0?"right":"left"]=`${s.value}px`),l.value!==0&&(_[t.lang.rtl===!0?"left":"right"]=`${l.value}px`)):h.horizontal===!0&&(o.value!==0&&(_.top=`${o.value}px`),i.value!==0&&(_.bottom=`${i.value}px`)),_}),d=r.computed(()=>`q-page-sticky row flex-center fixed-${e.position} q-page-sticky--${e.expand===!0?"expand":"shrink"}`);function c(g){const v=Te(g.default);return r.h("div",{class:d.value,style:u.value},e.expand===!0?v:[r.h("div",v)])}return{$layout:n,getStickyContent:c}}ie({name:"QPageScroller",props:{...ks,scrollOffset:{type:Number,default:1e3},reverse:Boolean,duration:{type:Number,default:300},offset:{...ks.offset,default:()=>[18,18]}},emits:["click"],setup(e,{slots:t,emit:n}){const{proxy:{$q:a}}=r.getCurrentInstance(),{$layout:o,getStickyContent:l}=xv(),i=r.ref(null);let s;const u=r.computed(()=>o.height.value-(o.isContainer.value===!0?o.containerHeight.value:a.screen.height));function d(){return e.reverse===!0?u.value-o.scroll.value.position>e.scrollOffset:o.scroll.value.position>e.scrollOffset}const c=r.ref(d());function g(){const p=d();c.value!==p&&(c.value=p)}function v(){e.reverse===!0?s===void 0&&(s=r.watch(u,g)):h()}r.watch(o.scroll,g),r.watch(()=>e.reverse,v);function h(){s!==void 0&&(s(),s=void 0)}function f(p){const b=pn(o.isContainer.value===!0?i.value:o.rootRef.value);jr(b,e.reverse===!0?o.height.value:0,e.duration),n("click",p)}function _(){return c.value===!0?r.h("div",{ref:i,class:"q-page-scroller",onClick:f},l(t)):null}return v(),r.onBeforeUnmount(h),()=>r.h(r.Transition,{name:"q-transition--fade"},_)}}),ie({name:"QPageSticky",props:ks,setup(e,{slots:t}){const{getStickyContent:n}=xv();return()=>n(t)}});function nl(e,t){return[!0,!1].includes(e)?e:t}ie({name:"QPagination",props:{...Ye,modelValue:{type:Number,required:!0},min:{type:[Number,String],default:1},max:{type:[Number,String],required:!0},maxPages:{type:[Number,String],default:0,validator:e=>(typeof e=="string"?parseInt(e,10):e)>=0},inputStyle:[Array,String,Object],inputClass:[Array,String,Object],size:String,disable:Boolean,input:Boolean,iconPrev:String,iconNext:String,iconFirst:String,iconLast:String,toFn:Function,boundaryLinks:{type:Boolean,default:null},boundaryNumbers:{type:Boolean,default:null},directionLinks:{type:Boolean,default:null},ellipses:{type:Boolean,default:null},ripple:{type:[Boolean,Object],default:null},round:Boolean,rounded:Boolean,flat:Boolean,outline:Boolean,unelevated:Boolean,push:Boolean,glossy:Boolean,color:{type:String,default:"primary"},textColor:String,activeDesign:{type:String,default:"",values:e=>e===""||Td.includes(e)},activeColor:String,activeTextColor:String,gutter:String,padding:{type:String,default:"3px 2px"}},emits:["update:modelValue"],setup(e,{emit:t}){const{proxy:n}=r.getCurrentInstance(),{$q:a}=n,o=Ge(e,a),l=r.computed(()=>parseInt(e.min,10)),i=r.computed(()=>parseInt(e.max,10)),s=r.computed(()=>parseInt(e.maxPages,10)),u=r.computed(()=>f.value+" / "+i.value),d=r.computed(()=>nl(e.boundaryLinks,e.input)),c=r.computed(()=>nl(e.boundaryNumbers,!e.input)),g=r.computed(()=>nl(e.directionLinks,e.input)),v=r.computed(()=>nl(e.ellipses,!e.input)),h=r.ref(null),f=r.computed({get:()=>e.modelValue,set:A=>{if(A=parseInt(A,10),e.disable||isNaN(A))return;const D=at(A,l.value,i.value);e.modelValue!==D&&t("update:modelValue",D)}});r.watch(()=>`${l.value}|${i.value}`,()=>{f.value=e.modelValue});const _=r.computed(()=>"q-pagination row no-wrap items-center"+(e.disable===!0?" disabled":"")),p=r.computed(()=>e.gutter in wo?`${wo[e.gutter]}px`:e.gutter||null),b=r.computed(()=>p.value!==null?`--q-pagination-gutter-parent:-${p.value};--q-pagination-gutter-child:${p.value}`:null),S=r.computed(()=>{const A=[e.iconFirst||a.iconSet.pagination.first,e.iconPrev||a.iconSet.pagination.prev,e.iconNext||a.iconSet.pagination.next,e.iconLast||a.iconSet.pagination.last];return a.lang.rtl===!0?A.reverse():A}),y=r.computed(()=>({"aria-disabled":e.disable===!0?"true":"false",role:"navigation"})),m=r.computed(()=>Ei(e,"flat")),w=r.computed(()=>({[m.value]:!0,round:e.round,rounded:e.rounded,padding:e.padding,color:e.color,textColor:e.textColor,size:e.size,ripple:e.ripple!==null?e.ripple:!0})),E=r.computed(()=>{const A={[m.value]:!1};return e.activeDesign!==""&&(A[e.activeDesign]=!0),A}),C=r.computed(()=>({...E.value,color:e.activeColor||e.color,textColor:e.activeTextColor||e.textColor})),R=r.computed(()=>{let A=Math.max(s.value,1+(v.value?2:0)+(c.value?2:0));const D={pgFrom:l.value,pgTo:i.value,ellipsesStart:!1,ellipsesEnd:!1,boundaryStart:!1,boundaryEnd:!1,marginalStyle:{minWidth:`${Math.max(2,String(i.value).length)}em`}};return s.value&&A<i.value-l.value+1&&(A=1+Math.floor(A/2)*2,D.pgFrom=Math.max(l.value,Math.min(i.value-A+1,e.modelValue-Math.floor(A/2))),D.pgTo=Math.min(i.value,D.pgFrom+A-1),c.value&&(D.boundaryStart=!0,D.pgFrom++),v.value&&D.pgFrom>l.value+(c.value?1:0)&&(D.ellipsesStart=!0,D.pgFrom++),c.value&&(D.boundaryEnd=!0,D.pgTo--),v.value&&D.pgTo<i.value-(c.value?1:0)&&(D.ellipsesEnd=!0,D.pgTo--)),D});function H(A){f.value=A}function q(A){f.value=f.value+A}function T(){f.value=h.value,h.value=null,a.platform.is.mobile===!0&&document.activeElement.blur()}function M(A){h.value=A}function O(A){Vt(A,13)===!0&&T()}function k(A,D,z){const F={"aria-label":D,"aria-current":"false",...w.value,...A};return z===!0&&Object.assign(F,{"aria-current":"true",...C.value}),D!==void 0&&(e.toFn!==void 0?F.to=e.toFn(D):F.onClick=()=>{H(D)}),r.h(Ze,F)}return Object.assign(n,{set:H,setByOffset:q}),()=>{const A=[],D=[];let z;if(d.value===!0&&(A.push(k({key:"bls",disable:e.disable||e.modelValue<=l.value,icon:S.value[0],"aria-label":a.lang.pagination.first},l.value)),D.unshift(k({key:"ble",disable:e.disable||e.modelValue>=i.value,icon:S.value[3],"aria-label":a.lang.pagination.last},i.value))),g.value===!0&&(A.push(k({key:"bdp",disable:e.disable||e.modelValue<=l.value,icon:S.value[1],"aria-label":a.lang.pagination.prev},e.modelValue-1)),D.unshift(k({key:"bdn",disable:e.disable||e.modelValue>=i.value,icon:S.value[2],"aria-label":a.lang.pagination.next},e.modelValue+1))),e.input!==!0){z=[];const{pgFrom:F,pgTo:Z,marginalStyle:he}=R.value;if(R.value.boundaryStart===!0){const $=l.value===e.modelValue;A.push(k({key:"bns",style:he,disable:e.disable,label:l.value},l.value,$))}if(R.value.boundaryEnd===!0){const $=i.value===e.modelValue;D.unshift(k({key:"bne",style:he,disable:e.disable,label:i.value},i.value,$))}R.value.ellipsesStart===!0&&A.push(k({key:"bes",style:he,disable:e.disable,label:"…",ripple:!1},F-1)),R.value.ellipsesEnd===!0&&D.unshift(k({key:"bee",style:he,disable:e.disable,label:"…",ripple:!1},Z+1));for(let $=F;$<=Z;$++)z.push(k({key:`bpg${$}`,style:he,disable:e.disable,label:$},$,$===e.modelValue))}return r.h("div",{class:_.value,...y.value},[r.h("div",{class:"q-pagination__content row no-wrap items-center",style:b.value},[...A,e.input===!0?r.h(bv,{class:"inline",style:{width:`${u.value.length/1.5}em`},type:"number",dense:!0,value:h.value,disable:e.disable,dark:o.value,borderless:!0,inputClass:e.inputClass,inputStyle:e.inputStyle,placeholder:u.value,min:l.value,max:i.value,"onUpdate:modelValue":M,onKeyup:O,onBlur:T}):r.h("div",{class:"q-pagination__middle row justify-center"},z),...D])])}}});function xs(e){let t=!1,n,a;function o(){a=arguments,t!==!0&&(t=!0,n=window.requestAnimationFrame(()=>{e.apply(this,a),a=void 0,t=!1}))}return o.cancel=()=>{window.cancelAnimationFrame(n),t=!1},o}var{passive:rl}=lt;ie({name:"QParallax",props:{src:String,height:{type:Number,default:500},speed:{type:Number,default:1,validator:e=>e>=0&&e<=1},scrollTarget:sr,onScroll:Function},setup(e,{slots:t,emit:n}){const a=r.ref(0),o=r.ref(null),l=r.ref(null),i=r.ref(null);let s,u,d,c,g,v;r.watch(()=>e.height,()=>{s===!0&&f()}),r.watch(()=>e.scrollTarget,()=>{s===!0&&(S(),b())});let h=y=>{a.value=y,e.onScroll!==void 0&&n("scroll",y)};function f(){let y,m,w;v===window?(y=0,w=m=window.innerHeight):(y=_o(v).top,m=Ar(v),w=y+m);const E=_o(o.value).top,C=E+e.height;if(g!==void 0||C>y&&E<w){const R=(w-E)/(e.height+m);_((d-e.height)*R*e.speed),h(R)}}let _=y=>{u.style.transform=`translate3d(-50%,${Math.round(y)}px,0)`};function p(){d=u.naturalHeight||u.videoHeight||Ar(u),s===!0&&f()}function b(){s=!0,v=pn(o.value,e.scrollTarget),v.addEventListener("scroll",f,rl),window.addEventListener("resize",c,rl),f()}function S(){s===!0&&(s=!1,v.removeEventListener("scroll",f,rl),window.removeEventListener("resize",c,rl),v=void 0,_.cancel(),h.cancel(),c.cancel())}return r.onMounted(()=>{_=xs(_),h=xs(h),c=xs(p),u=t.media!==void 0?l.value.children[0]:i.value,u.onload=u.onloadstart=u.loadedmetadata=p,p(),u.style.display="initial",window.IntersectionObserver!==void 0?(g=new IntersectionObserver(y=>{(y[0].isIntersecting===!0?b:S)()}),g.observe(o.value)):b()}),r.onBeforeUnmount(()=>{S(),g?.disconnect(),u.onload=u.onloadstart=u.loadedmetadata=null}),()=>r.h("div",{ref:o,class:"q-parallax",style:{height:`${e.height}px`}},[r.h("div",{ref:l,class:"q-parallax__media absolute-full"},t.media!==void 0?t.media():[r.h("img",{ref:i,src:e.src})]),r.h("div",{class:"q-parallax__content absolute-full column flex-center"},t.content!==void 0?t.content({percentScrolled:a.value}):Te(t.default))])}});function Oa(e,t=new WeakMap){if(Object(e)!==e)return e;if(t.has(e))return t.get(e);const n=e instanceof Date?new Date(e):e instanceof RegExp?new RegExp(e.source,e.flags):e instanceof Set?new Set:e instanceof Map?new Map:typeof e.constructor!="function"?Object.create(null):e.prototype!==void 0&&typeof e.prototype.constructor=="function"?e:new e.constructor;if(typeof e.constructor=="function"&&typeof e.valueOf=="function"){const a=e.valueOf();if(Object(a)!==a){const o=new e.constructor(a);return t.set(e,o),o}}return t.set(e,n),e instanceof Set?e.forEach(a=>{n.add(Oa(a,t))}):e instanceof Map&&e.forEach((a,o)=>{n.set(o,Oa(a,t))}),Object.assign(n,...Object.keys(e).map(a=>({[a]:Oa(e[a],t)})))}ie({name:"QPopupEdit",props:{modelValue:{required:!0},title:String,buttons:Boolean,labelSet:String,labelCancel:String,color:{type:String,default:"primary"},validate:{type:Function,default:()=>!0},autoSave:Boolean,cover:{type:Boolean,default:!0},disable:Boolean},emits:["update:modelValue","save","cancel","beforeShow","show","beforeHide","hide"],setup(e,{slots:t,emit:n}){const{proxy:a}=r.getCurrentInstance(),{$q:o}=a,l=r.ref(null),i=r.ref(""),s=r.ref("");let u=!1;const d=r.computed(()=>xt({initialValue:i.value,validate:e.validate,set:c,cancel:g,updatePosition:v},"value",()=>s.value,m=>{s.value=m}));function c(){e.validate(s.value)!==!1&&(h()===!0&&(n("save",s.value,i.value),n("update:modelValue",s.value)),f())}function g(){h()===!0&&n("cancel",s.value,i.value),f()}function v(){r.nextTick(()=>{l.value.updatePosition()})}function h(){return un(s.value,i.value)===!1}function f(){u=!0,l.value.hide()}function _(){u=!1,i.value=Oa(e.modelValue),s.value=Oa(e.modelValue),n("beforeShow")}function p(){n("show")}function b(){u===!1&&h()===!0&&(e.autoSave===!0&&e.validate(s.value)===!0?(n("save",s.value,i.value),n("update:modelValue",s.value)):n("cancel",s.value,i.value)),n("beforeHide")}function S(){n("hide")}function y(){const m=t.default!==void 0?[].concat(t.default(d.value)):[];return e.title&&m.unshift(r.h("div",{class:"q-dialog__title q-mt-sm q-mb-sm"},e.title)),e.buttons===!0&&m.push(r.h("div",{class:"q-popup-edit__buttons row justify-center no-wrap"},[r.h(Ze,{flat:!0,color:e.color,label:e.labelCancel||o.lang.label.cancel,onClick:g}),r.h(Ze,{flat:!0,color:e.color,label:e.labelSet||o.lang.label.set,onClick:c})])),m}return Object.assign(a,{set:c,cancel:g,show(m){l.value?.show(m)},hide(m){l.value?.hide(m)},updatePosition:v}),()=>{if(e.disable!==!0)return r.h(Po,{ref:l,class:"q-popup-edit",cover:e.cover,onBeforeShow:_,onShow:p,onBeforeHide:b,onHide:S,onEscapeKey:g},y)}}}),ie({name:"QPopupProxy",props:{...Ld,breakpoint:{type:[String,Number],default:450}},emits:["show","hide"],setup(e,{slots:t,emit:n,attrs:a}){const{proxy:o}=r.getCurrentInstance(),{$q:l}=o,i=r.ref(!1),s=r.ref(null),u=r.computed(()=>parseInt(e.breakpoint,10)),{canShow:d}=qi({showing:i});function c(){return l.screen.width<u.value||l.screen.height<u.value?"dialog":"menu"}const g=r.ref(c()),v=r.computed(()=>g.value==="menu"?{maxHeight:"99vh"}:{});r.watch(()=>c(),_=>{i.value!==!0&&(g.value=_)});function h(_){i.value=!0,n("show",_)}function f(_){i.value=!1,g.value=c(),n("hide",_)}return Object.assign(o,{show(_){d(_)===!0&&s.value.show(_)},hide(_){s.value.hide(_)},toggle(_){s.value.toggle(_)}}),xt(o,"currentComponent",()=>({type:g.value,ref:s.value})),()=>{const _={ref:s,...v.value,...a,onShow:h,onHide:f};let p;return g.value==="dialog"?p=Go:(p=Po,Object.assign(_,{target:e.target,contextMenu:e.contextMenu,noParentEvent:!0,separateClosePopup:!0})),r.h(p,_,t.default)}}});var z_={xs:2,sm:4,md:6,lg:10,xl:14};function Ev(e,t,n){return{transform:t===!0?`translateX(${n.lang.rtl===!0?"-":""}100%) scale3d(${-e},1,1)`:`scale3d(${e},1,1)`}}var H_=ie({name:"QLinearProgress",props:{...Ye,...Tn,value:{type:Number,default:0},buffer:Number,color:String,trackColor:String,reverse:Boolean,stripe:Boolean,indeterminate:Boolean,query:Boolean,rounded:Boolean,animationSpeed:{type:[String,Number],default:2100},instantFeedback:Boolean},setup(e,{slots:t}){const{proxy:n}=r.getCurrentInstance(),a=Ge(e,n.$q),o=qn(e,z_),l=r.computed(()=>e.indeterminate===!0||e.query===!0),i=r.computed(()=>e.reverse!==e.query),s=r.computed(()=>({...o.value!==null?o.value:{},"--q-linear-progress-speed":`${e.animationSpeed}ms`})),u=r.computed(()=>"q-linear-progress"+(e.color!==void 0?` text-${e.color}`:"")+(e.reverse===!0||e.query===!0?" q-linear-progress--reverse":"")+(e.rounded===!0?" rounded-borders":"")),d=r.computed(()=>Ev(e.buffer!==void 0?e.buffer:1,i.value,n.$q)),c=r.computed(()=>`with${e.instantFeedback===!0?"out":""}-transition`),g=r.computed(()=>`q-linear-progress__track absolute-full q-linear-progress__track--${c.value} q-linear-progress__track--${a.value===!0?"dark":"light"}`+(e.trackColor!==void 0?` bg-${e.trackColor}`:"")),v=r.computed(()=>Ev(l.value===!0?1:e.value,i.value,n.$q)),h=r.computed(()=>`q-linear-progress__model absolute-full q-linear-progress__model--${c.value} q-linear-progress__model--${l.value===!0?"in":""}determinate`),f=r.computed(()=>({width:`${e.value*100}%`})),_=r.computed(()=>`q-linear-progress__stripe absolute-${e.reverse===!0?"right":"left"} q-linear-progress__stripe--${c.value}`);return()=>{const p=[r.h("div",{class:g.value,style:d.value}),r.h("div",{class:h.value,style:v.value})];return e.stripe===!0&&l.value===!1&&p.push(r.h("div",{class:_.value,style:f.value})),r.h("div",{class:u.value,style:s.value,role:"progressbar","aria-valuemin":0,"aria-valuemax":1,"aria-valuenow":e.indeterminate===!0?void 0:e.value},ht(t.default,p))}}}),Xr=40,Es=20;ie({name:"QPullToRefresh",props:{color:String,bgColor:String,icon:String,noMouse:Boolean,disable:Boolean,scrollTarget:sr},emits:["refresh"],setup(e,{slots:t,emit:n}){const{proxy:a}=r.getCurrentInstance(),{$q:o}=a,l=r.ref("pull"),i=r.ref(0),s=r.ref(!1),u=r.ref(-Xr),d=r.ref(!1),c=r.ref({}),g=r.computed(()=>({opacity:i.value,transform:`translateY(${u.value}px) rotate(${i.value*360}deg)`})),v=r.computed(()=>"q-pull-to-refresh__puller row flex-center"+(d.value===!0?" q-pull-to-refresh__puller--animating":"")+(e.bgColor!==void 0?` bg-${e.bgColor}`:""));function h(w){if(w.isFinal===!0){s.value===!0&&(s.value=!1,l.value==="pulled"?(l.value="refreshing",y({pos:Es}),p()):l.value==="pull"&&y({pos:-Xr,ratio:0}));return}if(d.value===!0||l.value==="refreshing")return!1;if(w.isFirst===!0){if(Fn(b)!==0||w.direction!=="down")return s.value===!0&&(s.value=!1,l.value="pull",y({pos:-Xr,ratio:0})),!1;s.value=!0;const{top:R,left:H}=a.$el.getBoundingClientRect();c.value={top:R+"px",left:H+"px",width:window.getComputedStyle(a.$el).getPropertyValue("width")}}Et(w.evt);const E=Math.min(140,Math.max(0,w.distance.y));u.value=E-Xr,i.value=at(E/(Es+Xr),0,1);const C=u.value>Es?"pulled":"pull";l.value!==C&&(l.value=C)}const f=r.computed(()=>{const w={down:!0};return e.noMouse!==!0&&(w.mouse=!0),[[rn,h,void 0,w]]}),_=r.computed(()=>`q-pull-to-refresh__content${s.value===!0?" no-pointer-events":""}`);function p(){n("refresh",()=>{y({pos:-Xr,ratio:0},()=>{l.value="pull"})})}let b,S=null;function y({pos:w,ratio:E},C){d.value=!0,u.value=w,E!==void 0&&(i.value=E),S!==null&&clearTimeout(S),S=setTimeout(()=>{S=null,d.value=!1,C?.()},300)}function m(){b=pn(a.$el,e.scrollTarget)}return r.watch(()=>e.scrollTarget,m),r.onMounted(m),r.onBeforeUnmount(()=>{S!==null&&clearTimeout(S)}),Object.assign(a,{trigger:p,updateScrollTarget:m}),()=>{const w=[r.h("div",{class:_.value},Te(t.default)),r.h("div",{class:"q-pull-to-refresh__puller-container fixed row flex-center no-pointer-events z-top",style:c.value},[r.h("div",{class:v.value,style:g.value},[l.value!=="refreshing"?r.h(Xe,{name:e.icon||o.iconSet.pullToRefresh.icon,color:e.color,size:"32px"}):r.h(cn,{size:"24px",color:e.color})])])];return en("div",{class:"q-pull-to-refresh"},w,"main",e.disable===!1,()=>f.value)}}});var Qn={MIN:0,RANGE:1,MAX:2};ie({name:"QRange",props:{...uf,modelValue:{type:Object,default:()=>({min:null,max:null}),validator:e=>"min"in e&&"max"in e},dragRange:Boolean,dragOnlyRange:Boolean,leftLabelColor:String,leftLabelTextColor:String,rightLabelColor:String,rightLabelTextColor:String,leftLabelValue:[String,Number],rightLabelValue:[String,Number],leftThumbColor:String,rightThumbColor:String},emits:cf,setup(e,{emit:t}){const{proxy:{$q:n}}=r.getCurrentInstance(),{state:a,methods:o}=df({updateValue:R,updatePosition:q,getDragging:H,formAttrs:r.computed(()=>({type:"hidden",name:e.name,value:`${e.modelValue.min}|${e.modelValue.max}`}))}),l=r.ref(null),i=r.ref(0),s=r.ref(0),u=r.ref({min:0,max:0});function d(){u.value.min=e.modelValue.min===null?a.innerMin.value:at(e.modelValue.min,a.innerMin.value,a.innerMax.value),u.value.max=e.modelValue.max===null?a.innerMax.value:at(e.modelValue.max,a.innerMin.value,a.innerMax.value)}r.watch(()=>`${e.modelValue.min}|${e.modelValue.max}|${a.innerMin.value}|${a.innerMax.value}`,d),d();const c=r.computed(()=>o.convertModelToRatio(u.value.min)),g=r.computed(()=>o.convertModelToRatio(u.value.max)),v=r.computed(()=>a.active.value===!0?i.value:c.value),h=r.computed(()=>a.active.value===!0?s.value:g.value),f=r.computed(()=>{const M={[a.positionProp.value]:`${100*v.value}%`,[a.sizeProp.value]:`${100*(h.value-v.value)}%`};return e.selectionImg!==void 0&&(M.backgroundImage=`url(${e.selectionImg}) !important`),M}),_=r.computed(()=>{if(a.editable.value!==!0)return{};if(n.platform.is.mobile===!0)return{onClick:o.onMobileClick};const M={onMousedown:o.onActivate};return(e.dragRange===!0||e.dragOnlyRange===!0)&&Object.assign(M,{onFocus:()=>{a.focus.value="both"},onBlur:o.onBlur,onKeydown:T,onKeyup:o.onKeyup}),M});function p(M){return n.platform.is.mobile!==!0&&a.editable.value===!0&&e.dragOnlyRange!==!0?{onFocus:()=>{a.focus.value=M},onBlur:o.onBlur,onKeydown:T,onKeyup:o.onKeyup}:{}}const b=r.computed(()=>e.dragOnlyRange!==!0?a.tabindex.value:null),S=r.computed(()=>n.platform.is.mobile!==!0&&(e.dragRange||e.dragOnlyRange===!0)?a.tabindex.value:null),y=r.ref(null),m=r.computed(()=>p("min")),w=o.getThumbRenderFn({focusValue:"min",getNodeData:()=>({ref:y,key:"tmin",...m.value,tabindex:b.value}),ratio:v,label:r.computed(()=>e.leftLabelValue!==void 0?e.leftLabelValue:u.value.min),thumbColor:r.computed(()=>e.leftThumbColor||e.thumbColor||e.color),labelColor:r.computed(()=>e.leftLabelColor||e.labelColor),labelTextColor:r.computed(()=>e.leftLabelTextColor||e.labelTextColor)}),E=r.computed(()=>p("max")),C=o.getThumbRenderFn({focusValue:"max",getNodeData:()=>({...E.value,key:"tmax",tabindex:b.value}),ratio:h,label:r.computed(()=>e.rightLabelValue!==void 0?e.rightLabelValue:u.value.max),thumbColor:r.computed(()=>e.rightThumbColor||e.thumbColor||e.color),labelColor:r.computed(()=>e.rightLabelColor||e.labelColor),labelTextColor:r.computed(()=>e.rightLabelTextColor||e.labelTextColor)});function R(M){(u.value.min!==e.modelValue.min||u.value.max!==e.modelValue.max)&&t("update:modelValue",{...u.value}),M===!0&&t("change",{...u.value})}function H(M){const{left:O,top:k,width:A,height:D}=l.value.getBoundingClientRect(),z=e.dragOnlyRange===!0?0:e.vertical===!0?y.value.offsetHeight/(2*D):y.value.offsetWidth/(2*A),F={left:O,top:k,width:A,height:D,valueMin:u.value.min,valueMax:u.value.max,ratioMin:c.value,ratioMax:g.value},Z=o.getDraggingRatio(M,F);return e.dragOnlyRange!==!0&&Z<F.ratioMin+z?F.type=Qn.MIN:e.dragOnlyRange===!0||Z<F.ratioMax-z?e.dragRange===!0||e.dragOnlyRange===!0?(F.type=Qn.RANGE,Object.assign(F,{offsetRatio:Z,offsetModel:o.convertRatioToModel(Z),rangeValue:F.valueMax-F.valueMin,rangeRatio:F.ratioMax-F.ratioMin})):F.type=F.ratioMax-Z<Z-F.ratioMin?Qn.MAX:Qn.MIN:F.type=Qn.MAX,F}function q(M,O=a.dragging.value){let k;const A=o.getDraggingRatio(M,O),D=o.convertRatioToModel(A);switch(O.type){case Qn.MIN:A<=O.ratioMax?(k={minR:A,maxR:O.ratioMax,min:D,max:O.valueMax},a.focus.value="min"):(k={minR:O.ratioMax,maxR:A,min:O.valueMax,max:D},a.focus.value="max");break;case Qn.MAX:A>=O.ratioMin?(k={minR:O.ratioMin,maxR:A,min:O.valueMin,max:D},a.focus.value="max"):(k={minR:A,maxR:O.ratioMin,min:D,max:O.valueMin},a.focus.value="min");break;case Qn.RANGE:const z=A-O.offsetRatio,F=at(O.ratioMin+z,a.innerMinRatio.value,a.innerMaxRatio.value-O.rangeRatio),Z=D-O.offsetModel,he=at(O.valueMin+Z,a.innerMin.value,a.innerMax.value-O.rangeValue);k={minR:F,maxR:F+O.rangeRatio,min:a.roundValueFn.value(he),max:a.roundValueFn.value(he+O.rangeValue)},a.focus.value="both";break}u.value=u.value.min===null||u.value.max===null?{min:k.min||e.min,max:k.max||e.max}:{min:k.min,max:k.max},e.snap!==!0||e.step===0?(i.value=k.minR,s.value=k.maxR):(i.value=o.convertModelToRatio(u.value.min),s.value=o.convertModelToRatio(u.value.max))}function T(M){if(Ji.includes(M.keyCode)===!1)return;Fe(M);const O=([34,33].includes(M.keyCode)?10:1)*a.keyStep.value,k=([34,37,40].includes(M.keyCode)?-1:1)*(a.isReversed.value===!0?-1:1)*(e.vertical===!0?-1:1)*O;if(a.focus.value==="both"){const A=u.value.max-u.value.min,D=at(a.roundValueFn.value(u.value.min+k),a.innerMin.value,a.innerMax.value-A);u.value={min:D,max:a.roundValueFn.value(D+A)}}else{if(a.focus.value===!1)return;{const A=a.focus.value;u.value={...u.value,[A]:at(a.roundValueFn.value(u.value[A]+k),A==="min"?a.innerMin.value:u.value.min,A==="max"?a.innerMax.value:u.value.max)}}}R()}return()=>{const M=o.getContent(f,S,_,O=>{O.push(w(),C())});return r.h("div",{ref:l,class:"q-range "+a.classes.value+(e.modelValue.min===null||e.modelValue.max===null?" q-slider--no-value":""),...a.attributes.value,"aria-valuenow":e.modelValue.min+"|"+e.modelValue.max},M)}}}),ie({name:"QRating",props:{...Tn,...nn,modelValue:{type:Number,required:!0},max:{type:[String,Number],default:5},icon:[String,Array],iconHalf:[String,Array],iconSelected:[String,Array],iconAriaLabel:[String,Array],color:[String,Array],colorHalf:[String,Array],colorSelected:[String,Array],noReset:Boolean,noDimming:Boolean,readonly:Boolean,disable:Boolean},emits:["update:modelValue"],setup(e,{slots:t,emit:n}){const{proxy:{$q:a}}=r.getCurrentInstance(),o=qn(e),l=Sa(e),i=zn(l),s=r.ref(0);let u={};const d=r.computed(()=>e.readonly!==!0&&e.disable!==!0),c=r.computed(()=>`q-rating row inline items-center q-rating--${d.value===!0?"":"non-"}editable`+(e.noDimming===!0?" q-rating--no-dimming":"")+(e.disable===!0?" disabled":"")+(e.color!==void 0&&Array.isArray(e.color)===!1?` text-${e.color}`:"")),g=r.computed(()=>{const y=Array.isArray(e.icon)===!0?e.icon.length:0,m=Array.isArray(e.iconSelected)===!0?e.iconSelected.length:0,w=Array.isArray(e.iconHalf)===!0?e.iconHalf.length:0,E=Array.isArray(e.color)===!0?e.color.length:0,C=Array.isArray(e.colorSelected)===!0?e.colorSelected.length:0,R=Array.isArray(e.colorHalf)===!0?e.colorHalf.length:0;return{iconLen:y,icon:y>0?e.icon[y-1]:e.icon,selIconLen:m,selIcon:m>0?e.iconSelected[m-1]:e.iconSelected,halfIconLen:w,halfIcon:w>0?e.iconHalf[m-1]:e.iconHalf,colorLen:E,color:E>0?e.color[E-1]:e.color,selColorLen:C,selColor:C>0?e.colorSelected[C-1]:e.colorSelected,halfColorLen:R,halfColor:R>0?e.colorHalf[R-1]:e.colorHalf}}),v=r.computed(()=>{if(typeof e.iconAriaLabel=="string"){const y=e.iconAriaLabel.length!==0?`${e.iconAriaLabel} `:"";return m=>`${y}${m}`}if(Array.isArray(e.iconAriaLabel)===!0){const y=e.iconAriaLabel.length;if(y>0)return m=>e.iconAriaLabel[Math.min(m,y)-1]}return(y,m)=>`${m} ${y}`}),h=r.computed(()=>{const y=[],m=g.value,w=Math.ceil(e.modelValue),E=d.value===!0?0:null,C=e.iconHalf===void 0||w===e.modelValue?-1:w;for(let R=1;R<=e.max;R++){const H=s.value===0&&e.modelValue>=R||s.value>0&&s.value>=R,q=C===R&&s.value<R,T=s.value>0&&(q===!0?w:e.modelValue)>=R&&s.value<R,M=q===!0?R<=m.halfColorLen?e.colorHalf[R-1]:m.halfColor:m.selColor!==void 0&&H===!0?R<=m.selColorLen?e.colorSelected[R-1]:m.selColor:R<=m.colorLen?e.color[R-1]:m.color,O=(q===!0?R<=m.halfIconLen?e.iconHalf[R-1]:m.halfIcon:m.selIcon!==void 0&&(H===!0||T===!0)?R<=m.selIconLen?e.iconSelected[R-1]:m.selIcon:R<=m.iconLen?e.icon[R-1]:m.icon)||a.iconSet.rating.icon;y.push({name:(q===!0?R<=m.halfIconLen?e.iconHalf[R-1]:m.halfIcon:m.selIcon!==void 0&&(H===!0||T===!0)?R<=m.selIconLen?e.iconSelected[R-1]:m.selIcon:R<=m.iconLen?e.icon[R-1]:m.icon)||a.iconSet.rating.icon,attrs:{tabindex:E,role:"radio","aria-checked":e.modelValue===R?"true":"false","aria-label":v.value(R,O)},iconClass:"q-rating__icon"+(H===!0||q===!0?" q-rating__icon--active":"")+(T===!0?" q-rating__icon--exselected":"")+(s.value===R?" q-rating__icon--hovered":"")+(M!==void 0?` text-${M}`:"")})}return y}),f=r.computed(()=>{const y={role:"radiogroup"};return e.disable===!0&&(y["aria-disabled"]="true"),e.readonly===!0&&(y["aria-readonly"]="true"),y});function _(y){if(d.value===!0){const m=at(parseInt(y,10),1,parseInt(e.max,10)),w=e.noReset!==!0&&e.modelValue===m?0:m;w!==e.modelValue&&n("update:modelValue",w),s.value=0}}function p(y){d.value===!0&&(s.value=y)}function b(y,m){switch(y.keyCode){case 13:case 32:return _(m),Fe(y);case 37:case 40:return u[`rt${m-1}`]&&u[`rt${m-1}`].focus(),Fe(y);case 39:case 38:return u[`rt${m+1}`]&&u[`rt${m+1}`].focus(),Fe(y)}}function S(){s.value=0}return r.onBeforeUpdate(()=>{u={}}),()=>{const y=[];return h.value.forEach(({iconClass:m,name:w,attrs:E},C)=>{const R=C+1;y.push(r.h("div",{key:R,ref:H=>{u[`rt${R}`]=H},class:"q-rating__icon-container flex flex-center",...E,onClick(){_(R)},onMouseover(){p(R)},onMouseout:S,onFocus(){p(R)},onBlur:S,onKeyup(H){b(H,R)}},ht(t[`tip-${R}`],[r.h(Xe,{class:m,name:w})])))}),e.name!==void 0&&e.disable!==!0&&i(y,"push"),r.h("div",{class:c.value,style:o.value,...f.value},y)}}}),ie({name:"QResponsive",props:Ss,setup(e,{slots:t}){const n=ws(e);return()=>r.h("div",{class:"q-responsive"},[r.h("div",{class:"q-responsive__filler overflow-hidden"},[r.h("div",{style:n.value})]),r.h("div",{class:"q-responsive__content absolute-full fit"},Te(t.default))])}});var j_=ie({props:["store","barStyle","verticalBarStyle","horizontalBarStyle"],setup(e){return()=>[r.h("div",{class:e.store.scroll.vertical.barClass.value,style:[e.barStyle,e.verticalBarStyle],"aria-hidden":"true",onMousedown:e.store.onVerticalMousedown}),r.h("div",{class:e.store.scroll.horizontal.barClass.value,style:[e.barStyle,e.horizontalBarStyle],"aria-hidden":"true",onMousedown:e.store.onHorizontalMousedown}),r.withDirectives(r.h("div",{ref:e.store.scroll.vertical.ref,class:e.store.scroll.vertical.thumbClass.value,style:e.store.scroll.vertical.style.value,"aria-hidden":"true"}),e.store.thumbVertDir),r.withDirectives(r.h("div",{ref:e.store.scroll.horizontal.ref,class:e.store.scroll.horizontal.thumbClass.value,style:e.store.scroll.horizontal.style.value,"aria-hidden":"true"}),e.store.thumbHorizDir)]}}),Tv=["vertical","horizontal"],Ts={vertical:{offset:"offsetY",scroll:"scrollTop",dir:"down",dist:"y"},horizontal:{offset:"offsetX",scroll:"scrollLeft",dir:"right",dist:"x"}},qv={prevent:!0,mouse:!0,mouseAllDir:!0},Ov=e=>e>=250?50:Math.ceil(e/5);ie({name:"QScrollArea",props:{...Ye,thumbStyle:Object,verticalThumbStyle:Object,horizontalThumbStyle:Object,barStyle:[Array,String,Object],verticalBarStyle:[Array,String,Object],horizontalBarStyle:[Array,String,Object],verticalOffset:{type:Array,default:[0,0]},horizontalOffset:{type:Array,default:[0,0]},contentStyle:[Array,String,Object],contentActiveStyle:[Array,String,Object],delay:{type:[String,Number],default:1e3},visible:{type:Boolean,default:null},tabindex:[String,Number],onScroll:Function},setup(e,{slots:t,emit:n}){const a=r.ref(!1),o=r.ref(!1),l=r.ref(!1),i={vertical:r.ref(0),horizontal:r.ref(0)},s={vertical:{ref:r.ref(null),position:r.ref(0),size:r.ref(0)},horizontal:{ref:r.ref(null),position:r.ref(0),size:r.ref(0)}},{proxy:u}=r.getCurrentInstance(),d=Ge(e,u.$q);let c=null,g;const v=r.ref(null),h=r.computed(()=>"q-scrollarea"+(d.value===!0?" q-scrollarea--dark":""));Object.assign(i,{verticalInner:r.computed(()=>i.vertical.value-e.verticalOffset[0]-e.verticalOffset[1]),horizontalInner:r.computed(()=>i.horizontal.value-e.horizontalOffset[0]-e.horizontalOffset[1])}),s.vertical.percentage=r.computed(()=>{const k=s.vertical.size.value-i.vertical.value;if(k<=0)return 0;const A=at(s.vertical.position.value/k,0,1);return Math.round(A*1e4)/1e4}),s.vertical.thumbHidden=r.computed(()=>(e.visible===null?l.value:e.visible)!==!0&&a.value===!1&&o.value===!1||s.vertical.size.value<=i.vertical.value+1),s.vertical.thumbStart=r.computed(()=>e.verticalOffset[0]+s.vertical.percentage.value*(i.verticalInner.value-s.vertical.thumbSize.value)),s.vertical.thumbSize=r.computed(()=>Math.round(at(i.verticalInner.value*i.verticalInner.value/s.vertical.size.value,Ov(i.verticalInner.value),i.verticalInner.value))),s.vertical.style=r.computed(()=>({...e.thumbStyle,...e.verticalThumbStyle,top:`${s.vertical.thumbStart.value}px`,height:`${s.vertical.thumbSize.value}px`,right:`${e.horizontalOffset[1]}px`})),s.vertical.thumbClass=r.computed(()=>"q-scrollarea__thumb q-scrollarea__thumb--v absolute-right"+(s.vertical.thumbHidden.value===!0?" q-scrollarea__thumb--invisible":"")),s.vertical.barClass=r.computed(()=>"q-scrollarea__bar q-scrollarea__bar--v absolute-right"+(s.vertical.thumbHidden.value===!0?" q-scrollarea__bar--invisible":"")),s.horizontal.percentage=r.computed(()=>{const k=s.horizontal.size.value-i.horizontal.value;if(k<=0)return 0;const A=at(Math.abs(s.horizontal.position.value)/k,0,1);return Math.round(A*1e4)/1e4}),s.horizontal.thumbHidden=r.computed(()=>(e.visible===null?l.value:e.visible)!==!0&&a.value===!1&&o.value===!1||s.horizontal.size.value<=i.horizontal.value+1),s.horizontal.thumbStart=r.computed(()=>e.horizontalOffset[0]+s.horizontal.percentage.value*(i.horizontalInner.value-s.horizontal.thumbSize.value)),s.horizontal.thumbSize=r.computed(()=>Math.round(at(i.horizontalInner.value*i.horizontalInner.value/s.horizontal.size.value,Ov(i.horizontalInner.value),i.horizontalInner.value))),s.horizontal.style=r.computed(()=>({...e.thumbStyle,...e.horizontalThumbStyle,[u.$q.lang.rtl===!0?"right":"left"]:`${s.horizontal.thumbStart.value}px`,width:`${s.horizontal.thumbSize.value}px`,bottom:`${e.verticalOffset[1]}px`})),s.horizontal.thumbClass=r.computed(()=>"q-scrollarea__thumb q-scrollarea__thumb--h absolute-bottom"+(s.horizontal.thumbHidden.value===!0?" q-scrollarea__thumb--invisible":"")),s.horizontal.barClass=r.computed(()=>"q-scrollarea__bar q-scrollarea__bar--h absolute-bottom"+(s.horizontal.thumbHidden.value===!0?" q-scrollarea__bar--invisible":""));const f=r.computed(()=>s.vertical.thumbHidden.value===!0&&s.horizontal.thumbHidden.value===!0?e.contentStyle:e.contentActiveStyle);function _(){const k={};return Tv.forEach(A=>{const D=s[A];Object.assign(k,{[A+"Position"]:D.position.value,[A+"Percentage"]:D.percentage.value,[A+"Size"]:D.size.value,[A+"ContainerSize"]:i[A].value,[A+"ContainerInnerSize"]:i[A+"Inner"].value})}),k}const p=Lr(()=>{const k=_();k.ref=u,n("scroll",k)},0);function b(k,A,D){if(Tv.includes(k)===!1){console.error("[QScrollArea]: wrong first param of setScrollPosition (vertical/horizontal)");return}(k==="vertical"?jr:Ri)(v.value,A,D)}function S({height:k,width:A}){let D=!1;i.vertical.value!==k&&(i.vertical.value=k,D=!0),i.horizontal.value!==A&&(i.horizontal.value=A,D=!0),D===!0&&C()}function y({position:k}){let A=!1;s.vertical.position.value!==k.top&&(s.vertical.position.value=k.top,A=!0),s.horizontal.position.value!==k.left&&(s.horizontal.position.value=k.left,A=!0),A===!0&&C()}function m({height:k,width:A}){s.horizontal.size.value!==A&&(s.horizontal.size.value=A,C()),s.vertical.size.value!==k&&(s.vertical.size.value=k,C())}function w(k,A){const D=s[A];if(k.isFirst===!0){if(D.thumbHidden.value===!0)return;g=D.position.value,o.value=!0}else if(o.value!==!0)return;k.isFinal===!0&&(o.value=!1);const z=Ts[A],F=(D.size.value-i[A].value)/(i[A+"Inner"].value-D.thumbSize.value),Z=k.distance[z.dist],he=g+(k.direction===z.dir?1:-1)*Z*F;R(he,A)}function E(k,A){const D=s[A];if(D.thumbHidden.value!==!0){const z=A==="vertical"?e.verticalOffset[0]:e.horizontalOffset[0],F=k[Ts[A].offset]-z,Z=D.thumbStart.value-z;if(F<Z||F>Z+D.thumbSize.value){const he=F-D.thumbSize.value/2,$=at(he/(i[A+"Inner"].value-D.thumbSize.value),0,1);R($*Math.max(0,D.size.value-i[A].value),A)}D.ref.value!==null&&D.ref.value.dispatchEvent(new MouseEvent(k.type,k))}}function C(){a.value=!0,c!==null&&clearTimeout(c),c=setTimeout(()=>{c=null,a.value=!1},e.delay),e.onScroll!==void 0&&p()}function R(k,A){v.value[Ts[A].scroll]=k}let H=null;function q(){H!==null&&clearTimeout(H),H=setTimeout(()=>{H=null,l.value=!0},u.$q.platform.is.ios?50:0)}function T(){H!==null&&(clearTimeout(H),H=null),l.value=!1}let M=null;r.watch(()=>u.$q.lang.rtl,k=>{v.value!==null&&Ri(v.value,Math.abs(s.horizontal.position.value)*(k===!0?-1:1))}),r.onDeactivated(()=>{M={top:s.vertical.position.value,left:s.horizontal.position.value}}),r.onActivated(()=>{if(M===null)return;const k=v.value;k!==null&&(Ri(k,M.left),jr(k,M.top))}),r.onBeforeUnmount(p.cancel),Object.assign(u,{getScrollTarget:()=>v.value,getScroll:_,getScrollPosition:()=>({top:s.vertical.position.value,left:s.horizontal.position.value}),getScrollPercentage:()=>({top:s.vertical.percentage.value,left:s.horizontal.percentage.value}),setScrollPosition:b,setScrollPercentage(k,A,D){b(k,A*(s[k].size.value-i[k].value)*(k==="horizontal"&&u.$q.lang.rtl===!0?-1:1),D)}});const O={scroll:s,thumbVertDir:[[rn,k=>{w(k,"vertical")},void 0,{vertical:!0,...qv}]],thumbHorizDir:[[rn,k=>{w(k,"horizontal")},void 0,{horizontal:!0,...qv}]],onVerticalMousedown(k){E(k,"vertical")},onHorizontalMousedown(k){E(k,"horizontal")}};return()=>r.h("div",{class:h.value,onMouseenter:q,onMouseleave:T},[r.h("div",{ref:v,class:"q-scrollarea__container scroll relative-position fit hide-scrollbar",tabindex:e.tabindex!==void 0?e.tabindex:void 0},[r.h("div",{class:"q-scrollarea__content absolute",style:f.value},ht(t.default,[r.h(vr,{debounce:0,onResize:m})])),r.h(Cv,{axis:"both",onScroll:y})]),r.h(vr,{debounce:0,onResize:S}),r.h(j_,{store:O,barStyle:e.barStyle,verticalBarStyle:e.verticalBarStyle,horizontalBarStyle:e.horizontalBarStyle})])}});var fn=1e3,U_=["start","center","end","start-force","center-force","end-force"],Mv=Array.prototype.filter,Q_=__QUASAR_SSR__||window.getComputedStyle(document.body).overflowAnchor===void 0?wt:function(e,t){e!==null&&(e._qOverflowAnimationFrame!==void 0&&cancelAnimationFrame(e._qOverflowAnimationFrame),e._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(e===null)return;e._qOverflowAnimationFrame=void 0;const n=e.children||[];Mv.call(n,o=>o.dataset&&o.dataset.qVsAnchor!==void 0).forEach(o=>{delete o.dataset.qVsAnchor});const a=n[t];a?.dataset&&(a.dataset.qVsAnchor="")}))};function Jr(e,t){return e+t}function qs(e,t,n,a,o,l,i,s){const u=e===window?document.scrollingElement||document.documentElement:e,d=o===!0?"offsetWidth":"offsetHeight",c={scrollStart:0,scrollViewSize:-i-s,scrollMaxSize:0,offsetStart:-i,offsetEnd:-s};if(o===!0?(e===window?(c.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,c.scrollViewSize+=document.documentElement.clientWidth):(c.scrollStart=u.scrollLeft,c.scrollViewSize+=u.clientWidth),c.scrollMaxSize=u.scrollWidth,l===!0&&(c.scrollStart=(xa===!0?c.scrollMaxSize-c.scrollViewSize:0)-c.scrollStart)):(e===window?(c.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,c.scrollViewSize+=document.documentElement.clientHeight):(c.scrollStart=u.scrollTop,c.scrollViewSize+=u.clientHeight),c.scrollMaxSize=u.scrollHeight),n!==null)for(let g=n.previousElementSibling;g!==null;g=g.previousElementSibling)g.classList.contains("q-virtual-scroll--skip")===!1&&(c.offsetStart+=g[d]);if(a!==null)for(let g=a.nextElementSibling;g!==null;g=g.nextElementSibling)g.classList.contains("q-virtual-scroll--skip")===!1&&(c.offsetEnd+=g[d]);if(t!==e){const g=u.getBoundingClientRect(),v=t.getBoundingClientRect();o===!0?(c.offsetStart+=v.left-g.left,c.offsetEnd-=v.width):(c.offsetStart+=v.top-g.top,c.offsetEnd-=v.height),e!==window&&(c.offsetStart+=c.scrollStart),c.offsetEnd+=c.scrollMaxSize-c.offsetStart}return c}function Lv(e,t,n,a){t==="end"&&(t=(e===window?document.body:e)[n===!0?"scrollWidth":"scrollHeight"]),e===window?n===!0?(a===!0&&(t=(xa===!0?document.body.scrollWidth-document.documentElement.clientWidth:0)-t),window.scrollTo(t,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,t):n===!0?(a===!0&&(t=(xa===!0?e.scrollWidth-e.offsetWidth:0)-t),e.scrollLeft=t):e.scrollTop=t}function Ma(e,t,n,a){if(n>=a)return 0;const o=t.length,l=Math.floor(n/fn),i=Math.floor((a-1)/fn)+1;let s=e.slice(l,i).reduce(Jr,0);return n%fn!==0&&(s-=t.slice(l*fn,n).reduce(Jr,0)),a%fn!==0&&a!==o&&(s-=t.slice(a,i*fn).reduce(Jr,0)),s}var Av={virtualScrollSliceSize:{type:[Number,String],default:10},virtualScrollSliceRatioBefore:{type:[Number,String],default:1},virtualScrollSliceRatioAfter:{type:[Number,String],default:1},virtualScrollItemSize:{type:[Number,String],default:24},virtualScrollStickySizeStart:{type:[Number,String],default:0},virtualScrollStickySizeEnd:{type:[Number,String],default:0},tableColspan:[Number,String]},Rv=Object.keys(Av),Os={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,...Av};function Pv({virtualScrollLength:e,getVirtualScrollTarget:t,getVirtualScrollEl:n,virtualScrollItemSizeComputed:a}){const o=r.getCurrentInstance(),{props:l,emit:i,proxy:s}=o,{$q:u}=s;let d,c,g,v=[],h;const f=r.ref(0),_=r.ref(0),p=r.ref({}),b=r.ref(null),S=r.ref(null),y=r.ref(null),m=r.ref({from:0,to:0}),w=r.computed(()=>l.tableColspan!==void 0?l.tableColspan:100);a===void 0&&(a=r.computed(()=>l.virtualScrollItemSize));const E=r.computed(()=>a.value+";"+l.virtualScrollHorizontal),C=r.computed(()=>E.value+";"+l.virtualScrollSliceRatioBefore+";"+l.virtualScrollSliceRatioAfter);r.watch(C,()=>{D()}),r.watch(E,R);function R(){A(c,!0)}function H($){A($===void 0?c:$)}function q($,x){const Y=t();if(Y==null||Y.nodeType===8)return;const B=qs(Y,n(),b.value,S.value,l.virtualScrollHorizontal,u.lang.rtl,l.virtualScrollStickySizeStart,l.virtualScrollStickySizeEnd);g!==B.scrollViewSize&&D(B.scrollViewSize),M(Y,B,Math.min(e.value-1,Math.max(0,parseInt($,10)||0)),0,U_.indexOf(x)!==-1?x:c!==-1&&$>c?"end":"start")}function T(){const $=t();if($==null||$.nodeType===8)return;const x=qs($,n(),b.value,S.value,l.virtualScrollHorizontal,u.lang.rtl,l.virtualScrollStickySizeStart,l.virtualScrollStickySizeEnd),Y=e.value-1,B=x.scrollMaxSize-x.offsetStart-x.offsetEnd-_.value;if(d===x.scrollStart)return;if(x.scrollMaxSize<=0){M($,x,0,0);return}g!==x.scrollViewSize&&D(x.scrollViewSize),O(m.value.from);const le=Math.floor(x.scrollMaxSize-Math.max(x.scrollViewSize,x.offsetEnd)-Math.min(h[Y],x.scrollViewSize/2));if(le>0&&Math.ceil(x.scrollStart)>=le){M($,x,Y,x.scrollMaxSize-x.offsetEnd-v.reduce(Jr,0));return}let N=0,U=x.scrollStart-x.offsetStart,ue=U;if(U<=B&&U+x.scrollViewSize>=f.value)U-=f.value,N=m.value.from,ue=U;else for(let W=0;U>=v[W]&&N<Y;W++)U-=v[W],N+=fn;for(;U>0&&N<Y;)U-=h[N],U>-x.scrollViewSize?(N++,ue=U):ue=h[N]+U;M($,x,N,ue)}function M($,x,Y,B,le){const N=typeof le=="string"&&le.indexOf("-force")!==-1,U=N===!0?le.replace("-force",""):le,ue=U!==void 0?U:"start";let W=Math.max(0,Y-p.value[ue]),ve=W+p.value.total;ve>e.value&&(ve=e.value,W=Math.max(0,ve-p.value.total)),d=x.scrollStart;const _e=W!==m.value.from||ve!==m.value.to;if(_e===!1&&U===void 0){F(Y);return}const{activeElement:G}=document,ge=y.value;_e===!0&&ge!==null&&ge!==G&&ge.contains(G)===!0&&(ge.addEventListener("focusout",k),setTimeout(()=>{ge?.removeEventListener("focusout",k)})),Q_(ge,Y-W);const pe=U!==void 0?h.slice(W,Y).reduce(Jr,0):0;if(_e===!0){const we=ve>=m.value.from&&W<=m.value.to?m.value.to:ve;m.value={from:W,to:we},f.value=Ma(v,h,0,W),_.value=Ma(v,h,ve,e.value),requestAnimationFrame(()=>{m.value.to!==ve&&d===x.scrollStart&&(m.value={from:m.value.from,to:ve},_.value=Ma(v,h,ve,e.value))})}requestAnimationFrame(()=>{if(d!==x.scrollStart)return;_e===!0&&O(W);const we=h.slice(W,Y).reduce(Jr,0),Ae=we+x.offsetStart+f.value,fe=Ae+h[Y];let L=Ae+B;if(U!==void 0){const I=we-pe,te=x.scrollStart+I;L=N!==!0&&te<Ae&&fe<te+x.scrollViewSize?te:U==="end"?fe-x.scrollViewSize:Ae-(U==="start"?0:Math.round((x.scrollViewSize-h[Y])/2))}d=L,Lv($,L,l.virtualScrollHorizontal,u.lang.rtl),F(Y)})}function O($){const x=y.value;if(x){const Y=Mv.call(x.children,W=>W.classList&&W.classList.contains("q-virtual-scroll--skip")===!1),B=Y.length,le=l.virtualScrollHorizontal===!0?W=>W.getBoundingClientRect().width:W=>W.offsetHeight;let N=$,U,ue;for(let W=0;W<B;){for(U=le(Y[W]),W++;W<B&&Y[W].classList.contains("q-virtual-scroll--with-prev")===!0;)U+=le(Y[W]),W++;ue=U-h[N],ue!==0&&(h[N]+=ue,v[Math.floor(N/fn)]+=ue),N++}}}function k(){y.value?.focus()}function A($,x){const Y=1*a.value;(x===!0||Array.isArray(h)===!1)&&(h=[]);const B=h.length;h.length=e.value;for(let N=e.value-1;N>=B;N--)h[N]=Y;const le=Math.floor((e.value-1)/fn);v=[];for(let N=0;N<=le;N++){let U=0;const ue=Math.min((N+1)*fn,e.value);for(let W=N*fn;W<ue;W++)U+=h[W];v.push(U)}c=-1,d=void 0,f.value=Ma(v,h,0,m.value.from),_.value=Ma(v,h,m.value.to,e.value),$>=0?(O(m.value.from),r.nextTick(()=>{q($)})):Z()}function D($){if($===void 0&&typeof window<"u"){const U=t();U!=null&&U.nodeType!==8&&($=qs(U,n(),b.value,S.value,l.virtualScrollHorizontal,u.lang.rtl,l.virtualScrollStickySizeStart,l.virtualScrollStickySizeEnd).scrollViewSize)}g=$;const x=parseFloat(l.virtualScrollSliceRatioBefore)||0,Y=parseFloat(l.virtualScrollSliceRatioAfter)||0,B=1+x+Y,le=$===void 0||$<=0?1:Math.ceil($/a.value),N=Math.max(1,le,Math.ceil((l.virtualScrollSliceSize>0?l.virtualScrollSliceSize:10)/B));p.value={total:Math.ceil(N*B),start:Math.ceil(N*x),center:Math.ceil(N*(.5+x)),end:Math.ceil(N*(1+x)),view:le}}function z($,x){const Y=l.virtualScrollHorizontal===!0?"width":"height",B={["--q-virtual-scroll-item-"+Y]:a.value+"px"};return[$==="tbody"?r.h($,{class:"q-virtual-scroll__padding",key:"before",ref:b},[r.h("tr",[r.h("td",{style:{[Y]:`${f.value}px`,...B},colspan:w.value})])]):r.h($,{class:"q-virtual-scroll__padding",key:"before",ref:b,style:{[Y]:`${f.value}px`,...B}}),r.h($,{class:"q-virtual-scroll__content",key:"content",ref:y,tabindex:-1},x.flat()),$==="tbody"?r.h($,{class:"q-virtual-scroll__padding",key:"after",ref:S},[r.h("tr",[r.h("td",{style:{[Y]:`${_.value}px`,...B},colspan:w.value})])]):r.h($,{class:"q-virtual-scroll__padding",key:"after",ref:S,style:{[Y]:`${_.value}px`,...B}})]}function F($){c!==$&&(l.onVirtualScroll!==void 0&&i("virtualScroll",{index:$,from:m.value.from,to:m.value.to-1,direction:$<c?"decrease":"increase",ref:s}),c=$)}D();const Z=Lr(T,u.platform.is.ios===!0?120:35);r.onBeforeMount(()=>{D()});let he=!1;return r.onDeactivated(()=>{he=!0}),r.onActivated(()=>{if(he!==!0)return;const $=t();d!==void 0&&$!==void 0&&$!==null&&$.nodeType!==8?Lv($,d,l.virtualScrollHorizontal,u.lang.rtl):q(c)}),__QUASAR_SSR__||r.onBeforeUnmount(()=>{Z.cancel()}),Object.assign(s,{scrollTo:q,reset:R,refresh:H}),{virtualScrollSliceRange:m,virtualScrollSliceSizeComputed:p,setVirtualScrollSize:D,onVirtualScrollEvt:Z,localResetVirtualScroll:A,padVirtualScroll:z,scrollTo:q,reset:R,refresh:H}}var Nv=e=>["add","add-unique","toggle"].includes(e),W_=".*+?^${}()|[]\\",K_=Object.keys(Jo);function Ms(e,t){if(typeof e=="function")return e;const n=e!==void 0?e:t;return a=>a!==null&&typeof a=="object"&&n in a?a[n]:a}var Y_=ie({name:"QSelect",inheritAttrs:!1,props:{...Os,...nn,...Jo,modelValue:{required:!0},multiple:Boolean,displayValue:[String,Number],displayValueHtml:Boolean,dropdownIcon:String,options:{type:Array,default:()=>[]},optionValue:[Function,String],optionLabel:[Function,String],optionDisable:[Function,String],hideSelected:Boolean,hideDropdownIcon:Boolean,fillInput:Boolean,maxValues:[Number,String],optionsDense:Boolean,optionsDark:{type:Boolean,default:null},optionsSelectedClass:String,optionsHtml:Boolean,optionsCover:Boolean,menuShrink:Boolean,menuAnchor:String,menuSelf:String,menuOffset:Array,popupContentClass:String,popupContentStyle:[String,Array,Object],popupNoRouteDismiss:Boolean,useInput:Boolean,useChips:Boolean,newValueMode:{type:String,validator:Nv},mapOptions:Boolean,emitValue:Boolean,disableTabSelection:Boolean,inputDebounce:{type:[Number,String],default:500},inputClass:[Array,String,Object],inputStyle:[Array,String,Object],tabindex:{type:[String,Number],default:0},autocomplete:String,transitionShow:{},transitionHide:{},transitionDuration:{},behavior:{type:String,validator:e=>["default","menu","dialog"].includes(e),default:"default"},virtualScrollItemSize:Os.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...Zo,"add","remove","inputValue","keyup","keypress","keydown","popupShow","popupHide","filterAbort"],setup(e,{slots:t,emit:n}){const{proxy:a}=r.getCurrentInstance(),{$q:o}=a,l=r.ref(!1),i=r.ref(!1),s=r.ref(-1),u=r.ref(""),d=r.ref(!1),c=r.ref(!1);let g=null,v=null,h,f,_,p=null,b,S,y,m;const w=r.ref(null),E=r.ref(null),C=r.ref(null),R=r.ref(null),H=r.ref(null),q=Bi(e),T=gv(re),M=r.computed(()=>Array.isArray(e.options)?e.options.length:0),O=r.computed(()=>e.virtualScrollItemSize===void 0?e.optionsDense===!0?24:48:e.virtualScrollItemSize),{virtualScrollSliceRange:k,virtualScrollSliceSizeComputed:A,localResetVirtualScroll:D,padVirtualScroll:z,onVirtualScrollEvt:F,scrollTo:Z,setVirtualScrollSize:he}=Pv({virtualScrollLength:M,getVirtualScrollTarget:Ft,getVirtualScrollEl:pt,virtualScrollItemSizeComputed:O}),$=Vo(),x=r.computed(()=>{const Q=e.mapOptions===!0&&e.multiple!==!0,qe=e.modelValue!==void 0&&(e.modelValue!==null||Q===!0)?e.multiple===!0&&Array.isArray(e.modelValue)?e.modelValue:[e.modelValue]:[];if(e.mapOptions===!0&&Array.isArray(e.options)===!0){const Oe=e.mapOptions===!0&&h!==void 0?h:[],Ke=qe.map(ut=>V(ut,Oe));return e.modelValue===null&&Q===!0?Ke.filter(ut=>ut!==null):Ke}return qe}),Y=r.computed(()=>{const Q={};return K_.forEach(qe=>{const Oe=e[qe];Oe!==void 0&&(Q[qe]=Oe)}),Q}),B=r.computed(()=>e.optionsDark===null?$.isDark.value:e.optionsDark),le=r.computed(()=>br(x.value)),N=r.computed(()=>{let Q="q-field__input q-placeholder col";return e.hideSelected===!0||x.value.length===0?[Q,e.inputClass]:(Q+=" q-field__input--padding",e.inputClass===void 0?Q:[Q,e.inputClass])}),U=r.computed(()=>(e.virtualScrollHorizontal===!0?"q-virtual-scroll--horizontal":"")+(e.popupContentClass?" "+e.popupContentClass:"")),ue=r.computed(()=>M.value===0),W=r.computed(()=>x.value.map(Q=>X.value(Q)).join(", ")),ve=r.computed(()=>e.displayValue!==void 0?e.displayValue:W.value),_e=r.computed(()=>e.optionsHtml===!0?()=>!0:Q=>Q?.html===!0),G=r.computed(()=>e.displayValueHtml===!0||e.displayValue===void 0&&(e.optionsHtml===!0||x.value.some(_e.value))),ge=r.computed(()=>$.focused.value===!0?e.tabindex:-1),pe=r.computed(()=>{const Q={tabindex:e.tabindex,role:"combobox","aria-label":e.label,"aria-readonly":e.readonly===!0?"true":"false","aria-autocomplete":e.useInput===!0?"list":"none","aria-expanded":l.value===!0?"true":"false","aria-controls":`${$.targetUid.value}_lb`};return s.value>=0&&(Q["aria-activedescendant"]=`${$.targetUid.value}_${s.value}`),Q}),we=r.computed(()=>({id:`${$.targetUid.value}_lb`,role:"listbox","aria-multiselectable":e.multiple===!0?"true":"false"})),Ae=r.computed(()=>x.value.map((Q,qe)=>({index:qe,opt:Q,html:_e.value(Q),selected:!0,removeAtIndex:ke,toggleOption:je,tabindex:ge.value}))),fe=r.computed(()=>{if(M.value===0)return[];const{from:Q,to:qe}=k.value;return e.options.slice(Q,qe).map((Oe,Ke)=>{const ut=se.value(Oe)===!0,it=de(Oe)===!0,Rt=Q+Ke,Ct={clickable:!0,active:it,activeClass:te.value,manualFocus:!0,focused:!1,disable:ut,tabindex:-1,dense:e.optionsDense,dark:B.value,role:"option","aria-selected":it===!0?"true":"false",id:`${$.targetUid.value}_${Rt}`,onClick:()=>{je(Oe)}};return ut!==!0&&(s.value===Rt&&(Ct.focused=!0),o.platform.is.desktop===!0&&(Ct.onMousemove=()=>{l.value===!0&&ee(Rt)})),{index:Rt,opt:Oe,html:_e.value(Oe),label:X.value(Oe),selected:Ct.active,focused:Ct.focused,toggleOption:je,setOptionIndex:ee,itemProps:Ct}})}),L=r.computed(()=>e.dropdownIcon!==void 0?e.dropdownIcon:o.iconSet.arrow.dropdown),I=r.computed(()=>e.optionsCover===!1&&e.outlined!==!0&&e.standout!==!0&&e.borderless!==!0&&e.rounded!==!0),te=r.computed(()=>e.optionsSelectedClass!==void 0?e.optionsSelectedClass:e.color!==void 0?`text-${e.color}`:""),K=r.computed(()=>Ms(e.optionValue,"value")),X=r.computed(()=>Ms(e.optionLabel,"label")),se=r.computed(()=>Ms(e.optionDisable,"disable")),me=r.computed(()=>x.value.map(K.value)),J=r.computed(()=>{const Q={onInput:re,onChange:T,onKeydown:nt,onKeyup:Le,onKeypress:Ue,onFocus:xe,onClick(qe){f===!0&&ft(qe)}};return Q.onCompositionstart=Q.onCompositionupdate=Q.onCompositionend=T,Q});r.watch(x,Q=>{h=Q,e.useInput===!0&&e.fillInput===!0&&e.multiple!==!0&&$.innerLoading.value!==!0&&(i.value!==!0&&l.value!==!0||le.value!==!0)&&(_!==!0&&an(),(i.value===!0||l.value===!0)&&Re(""))},{immediate:!0}),r.watch(()=>e.fillInput,an),r.watch(l,As),r.watch(M,Gw);function ae(Q){return e.emitValue===!0?K.value(Q):Q}function be(Q){if(Q!==-1&&Q<x.value.length)if(e.multiple===!0){const qe=e.modelValue.slice();n("remove",{index:Q,value:qe.splice(Q,1)[0]}),n("update:modelValue",qe)}else n("update:modelValue",null)}function ke(Q){be(Q),$.focus()}function Qe(Q,qe){const Oe=ae(Q);if(e.multiple!==!0){e.fillInput===!0&&Pe(X.value(Q),!0,!0),n("update:modelValue",Oe);return}if(x.value.length===0){n("add",{index:0,value:Oe}),n("update:modelValue",e.multiple===!0?[Oe]:Oe);return}if(qe===!0&&de(Q)===!0||e.maxValues!==void 0&&e.modelValue.length>=e.maxValues)return;const Ke=e.modelValue.slice();n("add",{index:Ke.length,value:Oe}),Ke.push(Oe),n("update:modelValue",Ke)}function je(Q,qe){if($.editable.value!==!0||Q===void 0||se.value(Q)===!0)return;const Oe=K.value(Q);if(e.multiple!==!0){qe!==!0&&(Pe(e.fillInput===!0?X.value(Q):"",!0,!0),Ve()),E.value?.focus(),(x.value.length===0||un(K.value(x.value[0]),Oe)!==!0)&&n("update:modelValue",e.emitValue===!0?Oe:Q);return}if((f!==!0||d.value===!0)&&$.focus(),xe(),x.value.length===0){const it=e.emitValue===!0?Oe:Q;n("add",{index:0,value:it}),n("update:modelValue",e.multiple===!0?[it]:it);return}const Ke=e.modelValue.slice(),ut=me.value.findIndex(it=>un(it,Oe));if(ut!==-1)n("remove",{index:ut,value:Ke.splice(ut,1)[0]});else{if(e.maxValues!==void 0&&Ke.length>=e.maxValues)return;const it=e.emitValue===!0?Oe:Q;n("add",{index:Ke.length,value:it}),Ke.push(it)}n("update:modelValue",Ke)}function ee(Q){if(o.platform.is.desktop!==!0)return;const qe=Q!==-1&&Q<M.value?Q:-1;s.value!==qe&&(s.value=qe)}function ce(Q=1,qe){if(l.value===!0){let Oe=s.value;do Oe=go(Oe+Q,-1,M.value-1);while(Oe!==-1&&Oe!==s.value&&se.value(e.options[Oe])===!0);s.value!==Oe&&(ee(Oe),Z(Oe),qe!==!0&&e.useInput===!0&&e.fillInput===!0&&ye(Oe>=0?X.value(e.options[Oe]):b,!0))}}function V(Q,qe){const Oe=Ke=>un(K.value(Ke),Q);return e.options.find(Oe)||qe.find(Oe)||Q}function de(Q){const qe=K.value(Q);return me.value.find(Oe=>un(Oe,qe))!==void 0}function xe(Q){e.useInput===!0&&E.value!==null&&(Q===void 0||E.value===Q.target&&Q.target.value===W.value)&&E.value.select()}function Be(Q){Vt(Q,27)===!0&&l.value===!0&&(ft(Q),Ve(),an()),n("keyup",Q)}function Le(Q){const{value:qe}=Q.target;if(Q.keyCode!==void 0){Be(Q);return}if(Q.target.value="",g!==null&&(clearTimeout(g),g=null),v!==null&&(clearTimeout(v),v=null),an(),typeof qe=="string"&&qe.length!==0){const Oe=qe.toLocaleLowerCase(),Ke=it=>{const Rt=e.options.find(Ct=>String(it.value(Ct)).toLocaleLowerCase()===Oe);return Rt===void 0?!1:(x.value.indexOf(Rt)===-1?je(Rt):Ve(),!0)},ut=it=>{Ke(K)!==!0&&it!==!0&&Ke(X)!==!0&&Re(qe,!0,()=>ut(!0))};ut()}else $.clearValue(Q)}function Ue(Q){n("keypress",Q)}function nt(Q){if(n("keydown",Q),rr(Q)===!0)return;const qe=u.value.length!==0&&(e.newValueMode!==void 0||e.onNewValue!==void 0),Oe=Q.shiftKey!==!0&&e.disableTabSelection!==!0&&e.multiple!==!0&&(s.value!==-1||qe===!0);if(Q.keyCode===27){Et(Q);return}if(Q.keyCode===9&&Oe===!1){Me();return}if(Q.target===void 0||Q.target.id!==$.targetUid.value||$.editable.value!==!0)return;if(Q.keyCode===40&&$.innerLoading.value!==!0&&l.value===!1){Fe(Q),$e();return}if(Q.keyCode===8&&(e.useChips===!0||e.clearable===!0)&&e.hideSelected!==!0&&u.value.length===0){e.multiple===!0&&Array.isArray(e.modelValue)===!0?be(e.modelValue.length-1):e.multiple!==!0&&e.modelValue!==null&&n("update:modelValue",null);return}(Q.keyCode===35||Q.keyCode===36)&&(typeof u.value!="string"||u.value.length===0)&&(Fe(Q),s.value=-1,ce(Q.keyCode===36?1:-1,e.multiple)),(Q.keyCode===33||Q.keyCode===34)&&A.value!==void 0&&(Fe(Q),s.value=Math.max(-1,Math.min(M.value,s.value+(Q.keyCode===33?-1:1)*A.value.view)),ce(Q.keyCode===33?1:-1,e.multiple)),(Q.keyCode===38||Q.keyCode===40)&&(Fe(Q),ce(Q.keyCode===38?-1:1,e.multiple));const Ke=M.value;if((y===void 0||m<Date.now())&&(y=""),Ke>0&&e.useInput!==!0&&Q.key!==void 0&&Q.key.length===1&&Q.altKey===!1&&Q.ctrlKey===!1&&Q.metaKey===!1&&(Q.keyCode!==32||y.length!==0)){l.value!==!0&&$e(Q);const ut=Q.key.toLocaleLowerCase(),it=y.length===1&&y[0]===ut;m=Date.now()+1500,it===!1&&(Fe(Q),y+=ut);const Rt=new RegExp("^"+y.split("").map(Rs=>W_.indexOf(Rs)!==-1?"\\"+Rs:Rs).join(".*"),"i");let Ct=s.value;if(it===!0||Ct<0||Rt.test(X.value(e.options[Ct]))!==!0)do Ct=go(Ct+1,-1,Ke-1);while(Ct!==s.value&&(se.value(e.options[Ct])===!0||Rt.test(X.value(e.options[Ct]))!==!0));s.value!==Ct&&r.nextTick(()=>{ee(Ct),Z(Ct),Ct>=0&&e.useInput===!0&&e.fillInput===!0&&ye(X.value(e.options[Ct]),!0)});return}if(!(Q.keyCode!==13&&(Q.keyCode!==32||e.useInput===!0||y!=="")&&(Q.keyCode!==9||Oe===!1))){if(Q.keyCode!==9&&Fe(Q),s.value!==-1&&s.value<Ke){je(e.options[s.value]);return}if(qe===!0){const ut=(it,Rt)=>{if(Rt){if(Nv(Rt)!==!0)return}else Rt=e.newValueMode;if(Pe("",e.multiple!==!0,!0),it==null)return;(Rt==="toggle"?je:Qe)(it,Rt==="add-unique"),e.multiple!==!0&&(E.value?.focus(),Ve())};if(e.onNewValue!==void 0?n("newValue",u.value,ut):ut(u.value),e.multiple!==!0)return}l.value===!0?Me():$.innerLoading.value!==!0&&$e()}}function pt(){return f===!0?H.value:C.value!==null&&C.value.contentEl!==null?C.value.contentEl:void 0}function Ft(){return pt()}function Wn(){return e.hideSelected===!0?[]:t["selected-item"]!==void 0?Ae.value.map(Q=>t["selected-item"](Q)).slice():t.selected!==void 0?[].concat(t.selected()):e.useChips===!0?Ae.value.map((Q,qe)=>r.h(rf,{key:"option-"+qe,removable:$.editable.value===!0&&se.value(Q.opt)!==!0,dense:!0,textColor:e.color,tabindex:ge.value,onRemove(){Q.removeAtIndex(qe)}},()=>r.h("span",{class:"ellipsis",[Q.html===!0?"innerHTML":"textContent"]:X.value(Q.opt)}))):[r.h("span",{class:"ellipsis",[G.value===!0?"innerHTML":"textContent"]:ve.value})]}function Kt(){if(ue.value===!0)return t["no-option"]!==void 0?t["no-option"]({inputValue:u.value}):void 0;const Q=t.option!==void 0?t.option:Oe=>r.h(Xo,{key:Oe.index,...Oe.itemProps},()=>r.h(Un,()=>r.h(bs,()=>r.h("span",{[Oe.html===!0?"innerHTML":"textContent"]:Oe.label}))));let qe=z("div",fe.value.map(Q));return t["before-options"]!==void 0&&(qe=t["before-options"]().concat(qe)),ht(t["after-options"],qe)}function Pn(Q,qe){const Oe=qe===!0?{...pe.value,...$.splitAttrs.attributes.value}:void 0,Ke={ref:qe===!0?E:void 0,key:"i_t",class:N.value,style:e.inputStyle,value:u.value!==void 0?u.value:"",type:"search",...Oe,id:qe===!0?$.targetUid.value:void 0,maxlength:e.maxlength,autocomplete:e.autocomplete,"data-autofocus":Q===!0||e.autofocus===!0||void 0,disabled:e.disable===!0,readonly:e.readonly===!0,...J.value};return Q!==!0&&f===!0&&(Array.isArray(Ke.class)===!0?Ke.class=[...Ke.class,"no-pointer-events"]:Ke.class+=" no-pointer-events"),r.h("input",Ke)}function re(Q){g!==null&&(clearTimeout(g),g=null),v!==null&&(clearTimeout(v),v=null),!(Q&&Q.target&&Q.target.qComposing===!0)&&(ye(Q.target.value||""),_=!0,b=u.value,$.focused.value!==!0&&(f!==!0||d.value===!0)&&$.focus(),e.onFilter!==void 0&&(g=setTimeout(()=>{g=null,Re(u.value)},e.inputDebounce)))}function ye(Q,qe){u.value!==Q&&(u.value=Q,qe===!0||e.inputDebounce===0||e.inputDebounce==="0"?n("inputValue",Q):v=setTimeout(()=>{v=null,n("inputValue",Q)},e.inputDebounce))}function Pe(Q,qe,Oe){_=Oe!==!0,e.useInput===!0&&(ye(Q,!0),(qe===!0||Oe!==!0)&&(b=Q),qe!==!0&&Re(Q))}function Re(Q,qe,Oe){if(e.onFilter===void 0||qe!==!0&&$.focused.value!==!0)return;$.innerLoading.value===!0?n("filterAbort"):($.innerLoading.value=!0,c.value=!0),Q!==""&&e.multiple!==!0&&x.value.length!==0&&_!==!0&&Q===X.value(x.value[0])&&(Q="");const Ke=setTimeout(()=>{l.value===!0&&(l.value=!1)},10);p!==null&&clearTimeout(p),p=Ke,n("filter",Q,(ut,it)=>{(qe===!0||$.focused.value===!0)&&p===Ke&&(clearTimeout(p),typeof ut=="function"&&ut(),c.value=!1,r.nextTick(()=>{$.innerLoading.value=!1,$.editable.value===!0&&(qe===!0?l.value===!0&&Ve():l.value===!0?As(!0):l.value=!0),typeof it=="function"&&r.nextTick(()=>{it(a)}),typeof Oe=="function"&&r.nextTick(()=>{Oe(a)})}))},()=>{$.focused.value===!0&&p===Ke&&(clearTimeout(p),$.innerLoading.value=!1,c.value=!1),l.value===!0&&(l.value=!1)})}function ze(){return r.h(Po,{ref:C,class:U.value,style:e.popupContentStyle,modelValue:l.value,fit:e.menuShrink!==!0,cover:e.optionsCover===!0&&ue.value!==!0&&e.useInput!==!0,anchor:e.menuAnchor,self:e.menuSelf,offset:e.menuOffset,dark:B.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,noRouteDismiss:e.popupNoRouteDismiss,square:I.value,transitionShow:e.transitionShow,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,separateClosePopup:!0,...we.value,onScrollPassive:F,onBeforeShow:Pm,onBeforeHide:dt,onShow:st},Kt)}function dt(Q){Nm(Q),Me()}function st(){he()}function P(Q){ft(Q),E.value?.focus(),d.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function j(Q){ft(Q),r.nextTick(()=>{d.value=!1})}function oe(){const Q=[r.h(y_,{class:`col-auto ${$.fieldClass.value}`,...Y.value,for:$.targetUid.value,dark:B.value,square:!0,loading:c.value,itemAligned:!1,filled:!0,stackLabel:u.value.length!==0,...$.splitAttrs.listeners.value,onFocus:P,onBlur:j},{...t,rawControl:()=>$.getControl(!0),before:void 0,after:void 0})];return l.value===!0&&Q.push(r.h("div",{ref:H,class:U.value+" scroll",style:e.popupContentStyle,...we.value,onClick:Et,onScrollPassive:F},Kt())),r.h(Go,{ref:R,modelValue:i.value,position:e.useInput===!0?"top":void 0,transitionShow:S,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,noRouteDismiss:e.popupNoRouteDismiss,onBeforeShow:Pm,onBeforeHide:Se,onHide:Ce,onShow:We},()=>r.h("div",{class:"q-select__dialog"+(B.value===!0?" q-select__dialog--dark q-dark":"")+(d.value===!0?" q-select__dialog--focused":"")},Q))}function Se(Q){Nm(Q),R.value!==null&&R.value.__updateRefocusTarget($.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),$.focused.value=!1}function Ce(Q){Ve(),$.focused.value===!1&&n("blur",Q),an()}function We(){const Q=document.activeElement;(Q===null||Q.id!==$.targetUid.value)&&E.value!==null&&E.value!==Q&&E.value.focus(),he()}function Me(){i.value!==!0&&(s.value=-1,l.value===!0&&(l.value=!1),$.focused.value===!1&&(p!==null&&(clearTimeout(p),p=null),$.innerLoading.value===!0&&(n("filterAbort"),$.innerLoading.value=!1,c.value=!1)))}function $e(Q){$.editable.value===!0&&(f===!0?($.onControlFocusin(Q),i.value=!0,r.nextTick(()=>{$.focus()})):$.focus(),e.onFilter!==void 0?Re(u.value):(ue.value!==!0||t["no-option"]!==void 0)&&(l.value=!0))}function Ve(){i.value=!1,Me()}function an(){e.useInput===!0&&Pe(e.multiple!==!0&&e.fillInput===!0&&x.value.length!==0&&X.value(x.value[0])||"",!0,!0)}function As(Q){let qe=-1;if(Q===!0){if(x.value.length!==0){const Oe=K.value(x.value[0]);qe=e.options.findIndex(Ke=>un(K.value(Ke),Oe))}D(qe)}ee(qe)}function Gw(Q,qe){l.value===!0&&$.innerLoading.value===!1&&(D(-1,!0),r.nextTick(()=>{l.value===!0&&$.innerLoading.value===!1&&(Q>qe?D():As(!0))}))}function Rm(){i.value===!1&&C.value!==null&&C.value.updatePosition()}function Pm(Q){Q!==void 0&&ft(Q),n("popupShow",Q),$.hasPopupOpen=!0,$.onControlFocusin(Q)}function Nm(Q){Q!==void 0&&ft(Q),n("popupHide",Q),$.hasPopupOpen=!1,$.onControlFocusout(Q)}function Im(){f=o.platform.is.mobile!==!0&&e.behavior!=="dialog"?!1:e.behavior!=="menu"&&(e.useInput===!0?t["no-option"]!==void 0||e.onFilter!==void 0||ue.value===!1:!0),S=o.platform.is.ios===!0&&f===!0&&e.useInput===!0?"fade":e.transitionShow}return r.onBeforeUpdate(Im),r.onUpdated(Rm),Im(),r.onBeforeUnmount(()=>{g!==null&&clearTimeout(g),v!==null&&clearTimeout(v)}),Object.assign(a,{showPopup:$e,hidePopup:Ve,removeAtIndex:be,add:Qe,toggleOption:je,getOptionIndex:()=>s.value,setOptionIndex:ee,moveOptionSelection:ce,filter:Re,updateMenuPosition:Rm,updateInputValue:Pe,isOptionSelected:de,getEmittingOptionValue:ae,isOptionDisabled:(...Q)=>se.value.apply(null,Q)===!0,getOptionValue:(...Q)=>K.value.apply(null,Q),getOptionLabel:(...Q)=>X.value.apply(null,Q)}),Object.assign($,{innerValue:x,fieldClass:r.computed(()=>`q-select q-field--auto-height q-select--with${e.useInput!==!0?"out":""}-input q-select--with${e.useChips!==!0?"out":""}-chips q-select--${e.multiple===!0?"multiple":"single"}`),inputRef:w,targetRef:E,hasValue:le,showPopup:$e,floatingLabel:r.computed(()=>e.hideSelected!==!0&&le.value===!0||typeof u.value=="number"||u.value.length!==0||br(e.displayValue)),getControlChild:()=>{if($.editable.value!==!1&&(i.value===!0||ue.value!==!0||t["no-option"]!==void 0))return f===!0?oe():ze();$.hasPopupOpen===!0&&($.hasPopupOpen=!1)},controlEvents:{onFocusin(Q){$.onControlFocusin(Q)},onFocusout(Q){$.onControlFocusout(Q,()=>{an(),Me()})},onClick(Q){if(Et(Q),f!==!0&&l.value===!0){Me(),E.value?.focus();return}$e(Q)}},getControl:Q=>{const qe=Wn(),Oe=Q===!0||i.value!==!0||f!==!0;if(e.useInput===!0)qe.push(Pn(Q,Oe));else if($.editable.value===!0){const ut=Oe===!0?pe.value:void 0;qe.push(r.h("input",{ref:Oe===!0?E:void 0,key:"d_t",class:"q-select__focus-target",id:Oe===!0?$.targetUid.value:void 0,value:ve.value,readonly:!0,"data-autofocus":Q===!0||e.autofocus===!0||void 0,...ut,onKeydown:nt,onKeyup:Be,onKeypress:Ue})),Oe===!0&&typeof e.autocomplete=="string"&&e.autocomplete.length!==0&&qe.push(r.h("input",{class:"q-select__autocomplete-input",autocomplete:e.autocomplete,tabindex:-1,onKeyup:Le}))}if(q.value!==void 0&&e.disable!==!0&&me.value.length!==0){const ut=me.value.map(it=>r.h("option",{value:it,selected:!0}));qe.push(r.h("select",{class:"hidden",name:q.value,multiple:e.multiple},ut))}const Ke=e.useInput===!0||Oe!==!0?void 0:$.splitAttrs.attributes.value;return r.h("div",{class:"q-field__native row items-center",...Ke,...$.splitAttrs.listeners.value},qe)},getInnerAppend:()=>e.loading!==!0&&c.value!==!0&&e.hideDropdownIcon!==!0?[r.h(Xe,{class:"q-select__dropdown-icon"+(l.value===!0?" rotate-180":""),name:L.value})]:null}),el($)}}),G_=["text","rect","circle","QBtn","QBadge","QChip","QToolbar","QCheckbox","QRadio","QToggle","QSlider","QRange","QInput","QAvatar"],X_=["wave","pulse","pulse-x","pulse-y","fade","blink","none"];ie({name:"QSkeleton",props:{...Ye,tag:{type:String,default:"div"},type:{type:String,validator:e=>G_.includes(e),default:"rect"},animation:{type:String,validator:e=>X_.includes(e),default:"wave"},animationSpeed:{type:[String,Number],default:1500},square:Boolean,bordered:Boolean,size:String,width:String,height:String},setup(e,{slots:t}){const n=r.getCurrentInstance(),a=Ge(e,n.proxy.$q),o=r.computed(()=>{const i=e.size!==void 0?[e.size,e.size]:[e.width,e.height];return{"--q-skeleton-speed":`${e.animationSpeed}ms`,width:i[0],height:i[1]}}),l=r.computed(()=>`q-skeleton q-skeleton--${a.value===!0?"dark":"light"} q-skeleton--type-${e.type}`+(e.animation!=="none"?` q-skeleton--anim q-skeleton--anim-${e.animation}`:"")+(e.square===!0?" q-skeleton--square":"")+(e.bordered===!0?" q-skeleton--bordered":""));return()=>r.h(e.tag,{class:l.value,style:o.value},Te(t.default))}});var Iv=[["left","center","start","width"],["right","center","end","width"],["top","start","center","height"],["bottom","end","center","height"]];ie({name:"QSlideItem",props:{...Ye,leftColor:String,rightColor:String,topColor:String,bottomColor:String,onSlide:Function},emits:["action","top","right","bottom","left"],setup(e,{slots:t,emit:n}){const{proxy:a}=r.getCurrentInstance(),{$q:o}=a,l=Ge(e,o),{getCache:i}=wa(),s=r.ref(null);let u=null,d={},c={},g={};const v=r.computed(()=>o.lang.rtl===!0?{left:"right",right:"left"}:{left:"left",right:"right"}),h=r.computed(()=>"q-slide-item q-item-type overflow-hidden"+(l.value===!0?" q-slide-item--dark q-dark":""));function f(){s.value.style.transform="translate(0,0)"}function _(b,S,y){e.onSlide!==void 0&&n("slide",{side:b,ratio:S,isReset:y})}function p(b){const S=s.value;if(b.isFirst)d={dir:null,size:{left:0,right:0,top:0,bottom:0},scale:0},S.classList.add("no-transition"),Iv.forEach(E=>{if(t[E[0]]!==void 0){const C=g[E[0]];C.style.transform="scale(1)",d.size[E[0]]=C.getBoundingClientRect()[E[3]]}}),d.axis=b.direction==="up"||b.direction==="down"?"Y":"X";else if(b.isFinal){S.classList.remove("no-transition"),d.scale===1?(S.style.transform=`translate${d.axis}(${d.dir*100}%)`,u!==null&&clearTimeout(u),u=setTimeout(()=>{u=null,n(d.showing,{reset:f}),n("action",{side:d.showing,reset:f})},230)):(S.style.transform="translate(0,0)",_(d.showing,0,!0));return}else b.direction=d.axis==="X"?b.offset.x<0?"left":"right":b.offset.y<0?"up":"down";if(t.left===void 0&&b.direction===v.value.right||t.right===void 0&&b.direction===v.value.left||t.top===void 0&&b.direction==="down"||t.bottom===void 0&&b.direction==="up"){S.style.transform="translate(0,0)";return}let y,m,w;d.axis==="X"?(m=b.direction==="left"?-1:1,y=m===1?v.value.left:v.value.right,w=b.distance.x):(m=b.direction==="up"?-2:2,y=m===2?"top":"bottom",w=b.distance.y),!(d.dir!==null&&Math.abs(m)!==Math.abs(d.dir))&&(d.dir!==m&&(["left","right","top","bottom"].forEach(E=>{c[E]&&(c[E].style.visibility=y===E?"visible":"hidden")}),d.showing=y,d.dir=m),d.scale=Math.max(0,Math.min(1,(w-40)/d.size[y])),S.style.transform=`translate${d.axis}(${w*m/Math.abs(m)}px)`,g[y].style.transform=`scale(${d.scale})`,_(y,d.scale,!1))}return r.onBeforeUpdate(()=>{c={},g={}}),r.onBeforeUnmount(()=>{u!==null&&clearTimeout(u)}),Object.assign(a,{reset:f}),()=>{const b=[],S={left:t[v.value.right]!==void 0,right:t[v.value.left]!==void 0,up:t.bottom!==void 0,down:t.top!==void 0},y=Object.keys(S).filter(w=>S[w]===!0);Iv.forEach(w=>{const E=w[0];t[E]!==void 0&&b.push(r.h("div",{key:E,ref:C=>{c[E]=C},class:`q-slide-item__${E} absolute-full row no-wrap items-${w[1]} justify-${w[2]}`+(e[E+"Color"]!==void 0?` bg-${e[E+"Color"]}`:"")},[r.h("div",{ref:C=>{g[E]=C}},t[E]())]))});const m=r.h("div",{key:`${y.length===0?"only-":""} content`,ref:s,class:"q-slide-item__content"},Te(t.default));return y.length===0?b.push(m):b.push(r.withDirectives(m,i("dir#"+y.join(""),()=>{const w={prevent:!0,stop:!0,mouse:!0};return y.forEach(E=>{w[E]=!0}),[[rn,p,void 0,w]]}))),r.h("div",{class:h.value},b)}}}),ie({name:"QSpace",setup(){const e=r.h("div",{class:"q-space"});return()=>e}});var J_='<g transform="matrix(1 0 0 -1 0 80)"><rect width="10" height="20" rx="3"><animate attributeName="height" begin="0s" dur="4.3s" values="20;45;57;80;64;32;66;45;64;23;66;13;64;56;34;34;2;23;76;79;20" calcMode="linear" repeatCount="indefinite"></animate></rect><rect x="15" width="10" height="80" rx="3"><animate attributeName="height" begin="0s" dur="2s" values="80;55;33;5;75;23;73;33;12;14;60;80" calcMode="linear" repeatCount="indefinite"></animate></rect><rect x="30" width="10" height="50" rx="3"><animate attributeName="height" begin="0s" dur="1.4s" values="50;34;78;23;56;23;34;76;80;54;21;50" calcMode="linear" repeatCount="indefinite"></animate></rect><rect x="45" width="10" height="30" rx="3"><animate attributeName="height" begin="0s" dur="2s" values="30;45;13;80;56;72;45;76;34;23;67;30" calcMode="linear" repeatCount="indefinite"></animate></rect></g>';ie({name:"QSpinnerAudio",props:gt,setup(e){const{cSize:t,classes:n}=bt(e);return()=>r.h("svg",{class:n.value,fill:"currentColor",width:t.value,height:t.value,viewBox:"0 0 55 80",xmlns:"http://www.w3.org/2000/svg",innerHTML:J_})}});var Z_='<g transform="translate(1 1)" stroke-width="2" fill="none" fill-rule="evenodd"><circle cx="5" cy="50" r="5"><animate attributeName="cy" begin="0s" dur="2.2s" values="50;5;50;50" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="cx" begin="0s" dur="2.2s" values="5;27;49;5" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="27" cy="5" r="5"><animate attributeName="cy" begin="0s" dur="2.2s" from="5" to="5" values="5;50;50;5" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="cx" begin="0s" dur="2.2s" from="27" to="27" values="27;49;5;27" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="49" cy="50" r="5"><animate attributeName="cy" begin="0s" dur="2.2s" values="50;50;5;50" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="cx" from="49" to="49" begin="0s" dur="2.2s" values="49;5;27;49" calcMode="linear" repeatCount="indefinite"></animate></circle></g>';ie({name:"QSpinnerBall",props:gt,setup(e){const{cSize:t,classes:n}=bt(e);return()=>r.h("svg",{class:n.value,stroke:"currentColor",width:t.value,height:t.value,viewBox:"0 0 57 57",xmlns:"http://www.w3.org/2000/svg",innerHTML:Z_})}});var V_='<rect y="10" width="15" height="120" rx="6"><animate attributeName="height" begin="0.5s" dur="1s" values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="y" begin="0.5s" dur="1s" values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear" repeatCount="indefinite"></animate></rect><rect x="30" y="10" width="15" height="120" rx="6"><animate attributeName="height" begin="0.25s" dur="1s" values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="y" begin="0.25s" dur="1s" values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear" repeatCount="indefinite"></animate></rect><rect x="60" width="15" height="140" rx="6"><animate attributeName="height" begin="0s" dur="1s" values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="y" begin="0s" dur="1s" values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear" repeatCount="indefinite"></animate></rect><rect x="90" y="10" width="15" height="120" rx="6"><animate attributeName="height" begin="0.25s" dur="1s" values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="y" begin="0.25s" dur="1s" values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear" repeatCount="indefinite"></animate></rect><rect x="120" y="10" width="15" height="120" rx="6"><animate attributeName="height" begin="0.5s" dur="1s" values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="y" begin="0.5s" dur="1s" values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear" repeatCount="indefinite"></animate></rect>';ie({name:"QSpinnerBars",props:gt,setup(e){const{cSize:t,classes:n}=bt(e);return()=>r.h("svg",{class:n.value,fill:"currentColor",width:t.value,height:t.value,viewBox:"0 0 135 140",xmlns:"http://www.w3.org/2000/svg",innerHTML:V_})}});var eS='<rect x="25" y="25" width="50" height="50" fill="none" stroke-width="4" stroke="currentColor"><animateTransform id="spinnerBox" attributeName="transform" type="rotate" from="0 50 50" to="180 50 50" dur="0.5s" begin="rectBox.end"></animateTransform></rect><rect x="27" y="27" width="46" height="50" fill="currentColor"><animate id="rectBox" attributeName="height" begin="0s;spinnerBox.end" dur="1.3s" from="50" to="0" fill="freeze"></animate></rect>';ie({name:"QSpinnerBox",props:gt,setup(e){const{cSize:t,classes:n}=bt(e);return()=>r.h("svg",{class:n.value,width:t.value,height:t.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg",innerHTML:eS})}});var tS='<circle cx="50" cy="50" r="48" fill="none" stroke-width="4" stroke-miterlimit="10" stroke="currentColor"></circle><line stroke-linecap="round" stroke-width="4" stroke-miterlimit="10" stroke="currentColor" x1="50" y1="50" x2="85" y2="50.5"><animateTransform attributeName="transform" type="rotate" from="0 50 50" to="360 50 50" dur="2s" repeatCount="indefinite"></animateTransform></line><line stroke-linecap="round" stroke-width="4" stroke-miterlimit="10" stroke="currentColor" x1="50" y1="50" x2="49.5" y2="74"><animateTransform attributeName="transform" type="rotate" from="0 50 50" to="360 50 50" dur="15s" repeatCount="indefinite"></animateTransform></line>';ie({name:"QSpinnerClock",props:gt,setup(e){const{cSize:t,classes:n}=bt(e);return()=>r.h("svg",{class:n.value,width:t.value,height:t.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg",innerHTML:tS})}});var nS='<rect x="0" y="0" width="100" height="100" fill="none"></rect><path d="M78,19H22c-6.6,0-12,5.4-12,12v31c0,6.6,5.4,12,12,12h37.2c0.4,3,1.8,5.6,3.7,7.6c2.4,2.5,5.1,4.1,9.1,4 c-1.4-2.1-2-7.2-2-10.3c0-0.4,0-0.8,0-1.3h8c6.6,0,12-5.4,12-12V31C90,24.4,84.6,19,78,19z" fill="currentColor"></path><circle cx="30" cy="47" r="5" fill="#fff"><animate attributeName="opacity" from="0" to="1" values="0;1;1" keyTimes="0;0.2;1" dur="1s" repeatCount="indefinite"></animate></circle><circle cx="50" cy="47" r="5" fill="#fff"><animate attributeName="opacity" from="0" to="1" values="0;0;1;1" keyTimes="0;0.2;0.4;1" dur="1s" repeatCount="indefinite"></animate></circle><circle cx="70" cy="47" r="5" fill="#fff"><animate attributeName="opacity" from="0" to="1" values="0;0;1;1" keyTimes="0;0.4;0.6;1" dur="1s" repeatCount="indefinite"></animate></circle>';ie({name:"QSpinnerComment",props:gt,setup(e){const{cSize:t,classes:n}=bt(e);return()=>r.h("svg",{class:n.value,width:t.value,height:t.value,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",innerHTML:nS})}});var rS='<rect x="0" y="0" width="100" height="100" fill="none"></rect><g transform="translate(25 25)"><rect x="-20" y="-20" width="40" height="40" fill="currentColor" opacity="0.9"><animateTransform attributeName="transform" type="scale" from="1.5" to="1" repeatCount="indefinite" begin="0s" dur="1s" calcMode="spline" keySplines="0.2 0.8 0.2 0.8" keyTimes="0;1"></animateTransform></rect></g><g transform="translate(75 25)"><rect x="-20" y="-20" width="40" height="40" fill="currentColor" opacity="0.8"><animateTransform attributeName="transform" type="scale" from="1.5" to="1" repeatCount="indefinite" begin="0.1s" dur="1s" calcMode="spline" keySplines="0.2 0.8 0.2 0.8" keyTimes="0;1"></animateTransform></rect></g><g transform="translate(25 75)"><rect x="-20" y="-20" width="40" height="40" fill="currentColor" opacity="0.7"><animateTransform attributeName="transform" type="scale" from="1.5" to="1" repeatCount="indefinite" begin="0.3s" dur="1s" calcMode="spline" keySplines="0.2 0.8 0.2 0.8" keyTimes="0;1"></animateTransform></rect></g><g transform="translate(75 75)"><rect x="-20" y="-20" width="40" height="40" fill="currentColor" opacity="0.6"><animateTransform attributeName="transform" type="scale" from="1.5" to="1" repeatCount="indefinite" begin="0.2s" dur="1s" calcMode="spline" keySplines="0.2 0.8 0.2 0.8" keyTimes="0;1"></animateTransform></rect></g>';ie({name:"QSpinnerCube",props:gt,setup(e){const{cSize:t,classes:n}=bt(e);return()=>r.h("svg",{class:n.value,width:t.value,height:t.value,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",innerHTML:rS})}});var aS='<circle cx="15" cy="15" r="15"><animate attributeName="r" from="15" to="15" begin="0s" dur="0.8s" values="15;9;15" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="fill-opacity" from="1" to="1" begin="0s" dur="0.8s" values="1;.5;1" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="60" cy="15" r="9" fill-opacity=".3"><animate attributeName="r" from="9" to="9" begin="0s" dur="0.8s" values="9;15;9" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="fill-opacity" from=".5" to=".5" begin="0s" dur="0.8s" values=".5;1;.5" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="105" cy="15" r="15"><animate attributeName="r" from="15" to="15" begin="0s" dur="0.8s" values="15;9;15" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="fill-opacity" from="1" to="1" begin="0s" dur="0.8s" values="1;.5;1" calcMode="linear" repeatCount="indefinite"></animate></circle>';ie({name:"QSpinnerDots",props:gt,setup(e){const{cSize:t,classes:n}=bt(e);return()=>r.h("svg",{class:n.value,fill:"currentColor",width:t.value,height:t.value,viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg",innerHTML:aS})}});var oS='<g transform="translate(20 50)"><rect x="-10" y="-30" width="20" height="60" fill="currentColor" opacity="0.6"><animateTransform attributeName="transform" type="scale" from="2" to="1" begin="0s" repeatCount="indefinite" dur="1s" calcMode="spline" keySplines="0.1 0.9 0.4 1" keyTimes="0;1" values="2;1"></animateTransform></rect></g><g transform="translate(50 50)"><rect x="-10" y="-30" width="20" height="60" fill="currentColor" opacity="0.8"><animateTransform attributeName="transform" type="scale" from="2" to="1" begin="0.1s" repeatCount="indefinite" dur="1s" calcMode="spline" keySplines="0.1 0.9 0.4 1" keyTimes="0;1" values="2;1"></animateTransform></rect></g><g transform="translate(80 50)"><rect x="-10" y="-30" width="20" height="60" fill="currentColor" opacity="0.9"><animateTransform attributeName="transform" type="scale" from="2" to="1" begin="0.2s" repeatCount="indefinite" dur="1s" calcMode="spline" keySplines="0.1 0.9 0.4 1" keyTimes="0;1" values="2;1"></animateTransform></rect></g>';ie({name:"QSpinnerFacebook",props:gt,setup(e){const{cSize:t,classes:n}=bt(e);return()=>r.h("svg",{class:n.value,width:t.value,height:t.value,viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid",innerHTML:oS})}});var lS='<g transform="translate(-20,-20)"><path d="M79.9,52.6C80,51.8,80,50.9,80,50s0-1.8-0.1-2.6l-5.1-0.4c-0.3-2.4-0.9-4.6-1.8-6.7l4.2-2.9c-0.7-1.6-1.6-3.1-2.6-4.5 L70,35c-1.4-1.9-3.1-3.5-4.9-4.9l2.2-4.6c-1.4-1-2.9-1.9-4.5-2.6L59.8,27c-2.1-0.9-4.4-1.5-6.7-1.8l-0.4-5.1C51.8,20,50.9,20,50,20 s-1.8,0-2.6,0.1l-0.4,5.1c-2.4,0.3-4.6,0.9-6.7,1.8l-2.9-4.1c-1.6,0.7-3.1,1.6-4.5,2.6l2.1,4.6c-1.9,1.4-3.5,3.1-5,4.9l-4.5-2.1 c-1,1.4-1.9,2.9-2.6,4.5l4.1,2.9c-0.9,2.1-1.5,4.4-1.8,6.8l-5,0.4C20,48.2,20,49.1,20,50s0,1.8,0.1,2.6l5,0.4 c0.3,2.4,0.9,4.7,1.8,6.8l-4.1,2.9c0.7,1.6,1.6,3.1,2.6,4.5l4.5-2.1c1.4,1.9,3.1,3.5,5,4.9l-2.1,4.6c1.4,1,2.9,1.9,4.5,2.6l2.9-4.1 c2.1,0.9,4.4,1.5,6.7,1.8l0.4,5.1C48.2,80,49.1,80,50,80s1.8,0,2.6-0.1l0.4-5.1c2.3-0.3,4.6-0.9,6.7-1.8l2.9,4.2 c1.6-0.7,3.1-1.6,4.5-2.6L65,69.9c1.9-1.4,3.5-3,4.9-4.9l4.6,2.2c1-1.4,1.9-2.9,2.6-4.5L73,59.8c0.9-2.1,1.5-4.4,1.8-6.7L79.9,52.6 z M50,65c-8.3,0-15-6.7-15-15c0-8.3,6.7-15,15-15s15,6.7,15,15C65,58.3,58.3,65,50,65z" fill="currentColor"><animateTransform attributeName="transform" type="rotate" from="90 50 50" to="0 50 50" dur="1s" repeatCount="indefinite"></animateTransform></path></g><g transform="translate(20,20) rotate(15 50 50)"><path d="M79.9,52.6C80,51.8,80,50.9,80,50s0-1.8-0.1-2.6l-5.1-0.4c-0.3-2.4-0.9-4.6-1.8-6.7l4.2-2.9c-0.7-1.6-1.6-3.1-2.6-4.5 L70,35c-1.4-1.9-3.1-3.5-4.9-4.9l2.2-4.6c-1.4-1-2.9-1.9-4.5-2.6L59.8,27c-2.1-0.9-4.4-1.5-6.7-1.8l-0.4-5.1C51.8,20,50.9,20,50,20 s-1.8,0-2.6,0.1l-0.4,5.1c-2.4,0.3-4.6,0.9-6.7,1.8l-2.9-4.1c-1.6,0.7-3.1,1.6-4.5,2.6l2.1,4.6c-1.9,1.4-3.5,3.1-5,4.9l-4.5-2.1 c-1,1.4-1.9,2.9-2.6,4.5l4.1,2.9c-0.9,2.1-1.5,4.4-1.8,6.8l-5,0.4C20,48.2,20,49.1,20,50s0,1.8,0.1,2.6l5,0.4 c0.3,2.4,0.9,4.7,1.8,6.8l-4.1,2.9c0.7,1.6,1.6,3.1,2.6,4.5l4.5-2.1c1.4,1.9,3.1,3.5,5,4.9l-2.1,4.6c1.4,1,2.9,1.9,4.5,2.6l2.9-4.1 c2.1,0.9,4.4,1.5,6.7,1.8l0.4,5.1C48.2,80,49.1,80,50,80s1.8,0,2.6-0.1l0.4-5.1c2.3-0.3,4.6-0.9,6.7-1.8l2.9,4.2 c1.6-0.7,3.1-1.6,4.5-2.6L65,69.9c1.9-1.4,3.5-3,4.9-4.9l4.6,2.2c1-1.4,1.9-2.9,2.6-4.5L73,59.8c0.9-2.1,1.5-4.4,1.8-6.7L79.9,52.6 z M50,65c-8.3,0-15-6.7-15-15c0-8.3,6.7-15,15-15s15,6.7,15,15C65,58.3,58.3,65,50,65z" fill="currentColor"><animateTransform attributeName="transform" type="rotate" from="0 50 50" to="90 50 50" dur="1s" repeatCount="indefinite"></animateTransform></path></g>';ie({name:"QSpinnerGears",props:gt,setup(e){const{cSize:t,classes:n}=bt(e);return()=>r.h("svg",{class:n.value,width:t.value,height:t.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg",innerHTML:lS})}});var iS='<circle cx="12.5" cy="12.5" r="12.5"><animate attributeName="fill-opacity" begin="0s" dur="1s" values="1;.2;1" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="12.5" cy="52.5" r="12.5" fill-opacity=".5"><animate attributeName="fill-opacity" begin="100ms" dur="1s" values="1;.2;1" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="52.5" cy="12.5" r="12.5"><animate attributeName="fill-opacity" begin="300ms" dur="1s" values="1;.2;1" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="52.5" cy="52.5" r="12.5"><animate attributeName="fill-opacity" begin="600ms" dur="1s" values="1;.2;1" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="92.5" cy="12.5" r="12.5"><animate attributeName="fill-opacity" begin="800ms" dur="1s" values="1;.2;1" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="92.5" cy="52.5" r="12.5"><animate attributeName="fill-opacity" begin="400ms" dur="1s" values="1;.2;1" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="12.5" cy="92.5" r="12.5"><animate attributeName="fill-opacity" begin="700ms" dur="1s" values="1;.2;1" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="52.5" cy="92.5" r="12.5"><animate attributeName="fill-opacity" begin="500ms" dur="1s" values="1;.2;1" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="92.5" cy="92.5" r="12.5"><animate attributeName="fill-opacity" begin="200ms" dur="1s" values="1;.2;1" calcMode="linear" repeatCount="indefinite"></animate></circle>';ie({name:"QSpinnerGrid",props:gt,setup(e){const{cSize:t,classes:n}=bt(e);return()=>r.h("svg",{class:n.value,fill:"currentColor",width:t.value,height:t.value,viewBox:"0 0 105 105",xmlns:"http://www.w3.org/2000/svg",innerHTML:iS})}});var sS='<path d="M30.262 57.02L7.195 40.723c-5.84-3.976-7.56-12.06-3.842-18.063 3.715-6 11.467-7.65 17.306-3.68l4.52 3.76 2.6-5.274c3.716-6.002 11.47-7.65 17.304-3.68 5.84 3.97 7.56 12.054 3.842 18.062L34.49 56.118c-.897 1.512-2.793 1.915-4.228.9z" fill-opacity=".5"><animate attributeName="fill-opacity" begin="0s" dur="1.4s" values="0.5;1;0.5" calcMode="linear" repeatCount="indefinite"></animate></path><path d="M105.512 56.12l-14.44-24.272c-3.716-6.008-1.996-14.093 3.843-18.062 5.835-3.97 13.588-2.322 17.306 3.68l2.6 5.274 4.52-3.76c5.84-3.97 13.593-2.32 17.308 3.68 3.718 6.003 1.998 14.088-3.842 18.064L109.74 57.02c-1.434 1.014-3.33.61-4.228-.9z" fill-opacity=".5"><animate attributeName="fill-opacity" begin="0.7s" dur="1.4s" values="0.5;1;0.5" calcMode="linear" repeatCount="indefinite"></animate></path><path d="M67.408 57.834l-23.01-24.98c-5.864-6.15-5.864-16.108 0-22.248 5.86-6.14 15.37-6.14 21.234 0L70 16.168l4.368-5.562c5.863-6.14 15.375-6.14 21.235 0 5.863 6.14 5.863 16.098 0 22.247l-23.007 24.98c-1.43 1.556-3.757 1.556-5.188 0z"></path>';ie({name:"QSpinnerHearts",props:gt,setup(e){const{cSize:t,classes:n}=bt(e);return()=>r.h("svg",{class:n.value,fill:"currentColor",width:t.value,height:t.value,viewBox:"0 0 140 64",xmlns:"http://www.w3.org/2000/svg",innerHTML:sS})}});var uS='<g><path fill="none" stroke="currentColor" stroke-width="5" stroke-miterlimit="10" d="M58.4,51.7c-0.9-0.9-1.4-2-1.4-2.3s0.5-0.4,1.4-1.4 C70.8,43.8,79.8,30.5,80,15.5H70H30H20c0.2,15,9.2,28.1,21.6,32.3c0.9,0.9,1.4,1.2,1.4,1.5s-0.5,1.6-1.4,2.5 C29.2,56.1,20.2,69.5,20,85.5h10h40h10C79.8,69.5,70.8,55.9,58.4,51.7z"></path><clipPath id="uil-hourglass-clip1"><rect x="15" y="20" width="70" height="25"><animate attributeName="height" from="25" to="0" dur="1s" repeatCount="indefinite" values="25;0;0" keyTimes="0;0.5;1"></animate><animate attributeName="y" from="20" to="45" dur="1s" repeatCount="indefinite" values="20;45;45" keyTimes="0;0.5;1"></animate></rect></clipPath><clipPath id="uil-hourglass-clip2"><rect x="15" y="55" width="70" height="25"><animate attributeName="height" from="0" to="25" dur="1s" repeatCount="indefinite" values="0;25;25" keyTimes="0;0.5;1"></animate><animate attributeName="y" from="80" to="55" dur="1s" repeatCount="indefinite" values="80;55;55" keyTimes="0;0.5;1"></animate></rect></clipPath><path d="M29,23c3.1,11.4,11.3,19.5,21,19.5S67.9,34.4,71,23H29z" clip-path="url(#uil-hourglass-clip1)" fill="currentColor"></path><path d="M71.6,78c-3-11.6-11.5-20-21.5-20s-18.5,8.4-21.5,20H71.6z" clip-path="url(#uil-hourglass-clip2)" fill="currentColor"></path><animateTransform attributeName="transform" type="rotate" from="0 50 50" to="180 50 50" repeatCount="indefinite" dur="1s" values="0 50 50;0 50 50;180 50 50" keyTimes="0;0.7;1"></animateTransform></g>';ie({name:"QSpinnerHourglass",props:gt,setup(e){const{cSize:t,classes:n}=bt(e);return()=>r.h("svg",{class:n.value,width:t.value,height:t.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg",innerHTML:uS})}});var cS='<path d="M24.3,30C11.4,30,5,43.3,5,50s6.4,20,19.3,20c19.3,0,32.1-40,51.4-40C88.6,30,95,43.3,95,50s-6.4,20-19.3,20C56.4,70,43.6,30,24.3,30z" fill="none" stroke="currentColor" stroke-width="8" stroke-dasharray="10.691205342610678 10.691205342610678" stroke-dashoffset="0"><animate attributeName="stroke-dashoffset" from="0" to="21.382410685221355" begin="0" dur="2s" repeatCount="indefinite" fill="freeze"></animate></path>';ie({name:"QSpinnerInfinity",props:gt,setup(e){const{cSize:t,classes:n}=bt(e);return()=>r.h("svg",{class:n.value,width:t.value,height:t.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",innerHTML:cS})}});var dS='<g stroke-width="4" stroke-linecap="round"><line y1="17" y2="29" transform="translate(32,32) rotate(180)"><animate attributeName="stroke-opacity" dur="750ms" values="1;.85;.7;.65;.55;.45;.35;.25;.15;.1;0;1" repeatCount="indefinite"></animate></line><line y1="17" y2="29" transform="translate(32,32) rotate(210)"><animate attributeName="stroke-opacity" dur="750ms" values="0;1;.85;.7;.65;.55;.45;.35;.25;.15;.1;0" repeatCount="indefinite"></animate></line><line y1="17" y2="29" transform="translate(32,32) rotate(240)"><animate attributeName="stroke-opacity" dur="750ms" values=".1;0;1;.85;.7;.65;.55;.45;.35;.25;.15;.1" repeatCount="indefinite"></animate></line><line y1="17" y2="29" transform="translate(32,32) rotate(270)"><animate attributeName="stroke-opacity" dur="750ms" values=".15;.1;0;1;.85;.7;.65;.55;.45;.35;.25;.15" repeatCount="indefinite"></animate></line><line y1="17" y2="29" transform="translate(32,32) rotate(300)"><animate attributeName="stroke-opacity" dur="750ms" values=".25;.15;.1;0;1;.85;.7;.65;.55;.45;.35;.25" repeatCount="indefinite"></animate></line><line y1="17" y2="29" transform="translate(32,32) rotate(330)"><animate attributeName="stroke-opacity" dur="750ms" values=".35;.25;.15;.1;0;1;.85;.7;.65;.55;.45;.35" repeatCount="indefinite"></animate></line><line y1="17" y2="29" transform="translate(32,32) rotate(0)"><animate attributeName="stroke-opacity" dur="750ms" values=".45;.35;.25;.15;.1;0;1;.85;.7;.65;.55;.45" repeatCount="indefinite"></animate></line><line y1="17" y2="29" transform="translate(32,32) rotate(30)"><animate attributeName="stroke-opacity" dur="750ms" values=".55;.45;.35;.25;.15;.1;0;1;.85;.7;.65;.55" repeatCount="indefinite"></animate></line><line y1="17" y2="29" transform="translate(32,32) rotate(60)"><animate attributeName="stroke-opacity" dur="750ms" values=".65;.55;.45;.35;.25;.15;.1;0;1;.85;.7;.65" repeatCount="indefinite"></animate></line><line y1="17" y2="29" transform="translate(32,32) rotate(90)"><animate attributeName="stroke-opacity" dur="750ms" values=".7;.65;.55;.45;.35;.25;.15;.1;0;1;.85;.7" repeatCount="indefinite"></animate></line><line y1="17" y2="29" transform="translate(32,32) rotate(120)"><animate attributeName="stroke-opacity" dur="750ms" values=".85;.7;.65;.55;.45;.35;.25;.15;.1;0;1;.85" repeatCount="indefinite"></animate></line><line y1="17" y2="29" transform="translate(32,32) rotate(150)"><animate attributeName="stroke-opacity" dur="750ms" values="1;.85;.7;.65;.55;.45;.35;.25;.15;.1;0;1" repeatCount="indefinite"></animate></line></g>';ie({name:"QSpinnerIos",props:gt,setup(e){const{cSize:t,classes:n}=bt(e);return()=>r.h("svg",{class:n.value,width:t.value,height:t.value,stroke:"currentColor",fill:"currentColor",viewBox:"0 0 64 64",innerHTML:dS})}});var fS='<circle cx="50" cy="50" r="44" fill="none" stroke-width="4" stroke-opacity=".5" stroke="currentColor"></circle><circle cx="8" cy="54" r="6" fill="currentColor" stroke-width="3" stroke="currentColor"><animateTransform attributeName="transform" type="rotate" from="0 50 48" to="360 50 52" dur="2s" repeatCount="indefinite"></animateTransform></circle>';ie({name:"QSpinnerOrbit",props:gt,setup(e){const{cSize:t,classes:n}=bt(e);return()=>r.h("svg",{class:n.value,width:t.value,height:t.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg",innerHTML:fS})}});var vS='<g transform="translate(1 1)" stroke-width="2" fill="none" fill-rule="evenodd"><circle stroke-opacity=".5" cx="18" cy="18" r="18"></circle><path d="M36 18c0-9.94-8.06-18-18-18"><animateTransform attributeName="transform" type="rotate" from="0 18 18" to="360 18 18" dur="1s" repeatCount="indefinite"></animateTransform></path></g>';ie({name:"QSpinnerOval",props:gt,setup(e){const{cSize:t,classes:n}=bt(e);return()=>r.h("svg",{class:n.value,stroke:"currentColor",width:t.value,height:t.value,viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg",innerHTML:vS})}});var mS='<path d="M0 50A50 50 0 0 1 50 0L50 50L0 50" fill="currentColor" opacity="0.5"><animateTransform attributeName="transform" type="rotate" from="0 50 50" to="360 50 50" dur="0.8s" repeatCount="indefinite"></animateTransform></path><path d="M50 0A50 50 0 0 1 100 50L50 50L50 0" fill="currentColor" opacity="0.5"><animateTransform attributeName="transform" type="rotate" from="0 50 50" to="360 50 50" dur="1.6s" repeatCount="indefinite"></animateTransform></path><path d="M100 50A50 50 0 0 1 50 100L50 50L100 50" fill="currentColor" opacity="0.5"><animateTransform attributeName="transform" type="rotate" from="0 50 50" to="360 50 50" dur="2.4s" repeatCount="indefinite"></animateTransform></path><path d="M50 100A50 50 0 0 1 0 50L50 50L50 100" fill="currentColor" opacity="0.5"><animateTransform attributeName="transform" type="rotate" from="0 50 50" to="360 50 50" dur="3.2s" repeatCount="indefinite"></animateTransform></path>';ie({name:"QSpinnerPie",props:gt,setup(e){const{cSize:t,classes:n}=bt(e);return()=>r.h("svg",{class:n.value,width:t.value,height:t.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg",innerHTML:mS})}});var hS='<g fill="none" fill-rule="evenodd" stroke-width="2"><circle cx="22" cy="22" r="1"><animate attributeName="r" begin="0s" dur="1.8s" values="1; 20" calcMode="spline" keyTimes="0; 1" keySplines="0.165, 0.84, 0.44, 1" repeatCount="indefinite"></animate><animate attributeName="stroke-opacity" begin="0s" dur="1.8s" values="1; 0" calcMode="spline" keyTimes="0; 1" keySplines="0.3, 0.61, 0.355, 1" repeatCount="indefinite"></animate></circle><circle cx="22" cy="22" r="1"><animate attributeName="r" begin="-0.9s" dur="1.8s" values="1; 20" calcMode="spline" keyTimes="0; 1" keySplines="0.165, 0.84, 0.44, 1" repeatCount="indefinite"></animate><animate attributeName="stroke-opacity" begin="-0.9s" dur="1.8s" values="1; 0" calcMode="spline" keyTimes="0; 1" keySplines="0.3, 0.61, 0.355, 1" repeatCount="indefinite"></animate></circle></g>';ie({name:"QSpinnerPuff",props:gt,setup(e){const{cSize:t,classes:n}=bt(e);return()=>r.h("svg",{class:n.value,stroke:"currentColor",width:t.value,height:t.value,viewBox:"0 0 44 44",xmlns:"http://www.w3.org/2000/svg",innerHTML:hS})}});var gS='<g transform="scale(0.55)"><circle cx="30" cy="150" r="30" fill="currentColor"><animate attributeName="opacity" from="0" to="1" dur="1s" begin="0" repeatCount="indefinite" keyTimes="0;0.5;1" values="0;1;1"></animate></circle><path d="M90,150h30c0-49.7-40.3-90-90-90v30C63.1,90,90,116.9,90,150z" fill="currentColor"><animate attributeName="opacity" from="0" to="1" dur="1s" begin="0.1" repeatCount="indefinite" keyTimes="0;0.5;1" values="0;1;1"></animate></path><path d="M150,150h30C180,67.2,112.8,0,30,0v30C96.3,30,150,83.7,150,150z" fill="currentColor"><animate attributeName="opacity" from="0" to="1" dur="1s" begin="0.2" repeatCount="indefinite" keyTimes="0;0.5;1" values="0;1;1"></animate></path></g>';ie({name:"QSpinnerRadio",props:gt,setup(e){const{cSize:t,classes:n}=bt(e);return()=>r.h("svg",{class:n.value,width:t.value,height:t.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg",innerHTML:gS})}});var bS='<g fill="none" fill-rule="evenodd" transform="translate(1 1)" stroke-width="2"><circle cx="22" cy="22" r="6"><animate attributeName="r" begin="1.5s" dur="3s" values="6;22" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="stroke-opacity" begin="1.5s" dur="3s" values="1;0" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="stroke-width" begin="1.5s" dur="3s" values="2;0" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="22" cy="22" r="6"><animate attributeName="r" begin="3s" dur="3s" values="6;22" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="stroke-opacity" begin="3s" dur="3s" values="1;0" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="stroke-width" begin="3s" dur="3s" values="2;0" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="22" cy="22" r="8"><animate attributeName="r" begin="0s" dur="1.5s" values="6;1;2;3;4;5;6" calcMode="linear" repeatCount="indefinite"></animate></circle></g>';ie({name:"QSpinnerRings",props:gt,setup(e){const{cSize:t,classes:n}=bt(e);return()=>r.h("svg",{class:n.value,stroke:"currentColor",width:t.value,height:t.value,viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg",innerHTML:bS})}});var pS='<defs><linearGradient x1="8.042%" y1="0%" x2="65.682%" y2="23.865%" id="a"><stop stop-color="currentColor" stop-opacity="0" offset="0%"></stop><stop stop-color="currentColor" stop-opacity=".631" offset="63.146%"></stop><stop stop-color="currentColor" offset="100%"></stop></linearGradient></defs><g transform="translate(1 1)" fill="none" fill-rule="evenodd"><path d="M36 18c0-9.94-8.06-18-18-18" stroke="url(#a)" stroke-width="2"><animateTransform attributeName="transform" type="rotate" from="0 18 18" to="360 18 18" dur="0.9s" repeatCount="indefinite"></animateTransform></path><circle fill="currentColor" cx="36" cy="18" r="1"><animateTransform attributeName="transform" type="rotate" from="0 18 18" to="360 18 18" dur="0.9s" repeatCount="indefinite"></animateTransform></circle></g>';ie({name:"QSpinnerTail",props:gt,setup(e){const{cSize:t,classes:n}=bt(e);return()=>r.h("svg",{class:n.value,width:t.value,height:t.value,viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg",innerHTML:pS})}}),ie({name:"QSplitter",props:{...Ye,modelValue:{type:Number,required:!0},reverse:Boolean,unit:{type:String,default:"%",validator:e=>["%","px"].includes(e)},limits:{type:Array,validator:e=>e.length!==2||typeof e[0]!="number"||typeof e[1]!="number"?!1:e[0]>=0&&e[0]<=e[1]},emitImmediately:Boolean,horizontal:Boolean,disable:Boolean,beforeClass:[Array,String,Object],afterClass:[Array,String,Object],separatorClass:[Array,String,Object],separatorStyle:[Array,String,Object]},emits:["update:modelValue"],setup(e,{slots:t,emit:n}){const{proxy:{$q:a}}=r.getCurrentInstance(),o=Ge(e,a),l=r.ref(null),i={before:r.ref(null),after:r.ref(null)},s=r.computed(()=>`q-splitter no-wrap ${e.horizontal===!0?"q-splitter--horizontal column":"q-splitter--vertical row"} q-splitter--${e.disable===!0?"disabled":"workable"}`+(o.value===!0?" q-splitter--dark":"")),u=r.computed(()=>e.horizontal===!0?"height":"width"),d=r.computed(()=>e.reverse!==!0?"before":"after"),c=r.computed(()=>e.limits!==void 0?e.limits:e.unit==="%"?[10,90]:[50,1/0]);function g(w){return(e.unit==="%"?w:Math.round(w))+e.unit}const v=r.computed(()=>({[d.value]:{[u.value]:g(e.modelValue)}}));let h,f,_,p,b;function S(w){if(w.isFirst===!0){const C=l.value.getBoundingClientRect()[u.value];h=e.horizontal===!0?"up":"left",f=e.unit==="%"?100:C,_=Math.min(f,c.value[1],Math.max(c.value[0],e.modelValue)),p=(e.reverse!==!0?1:-1)*(e.horizontal===!0?1:a.lang.rtl===!0?-1:1)*(e.unit==="%"?C===0?0:100/C:1),l.value.classList.add("q-splitter--active");return}if(w.isFinal===!0){b!==e.modelValue&&n("update:modelValue",b),l.value.classList.remove("q-splitter--active");return}const E=_+p*(w.direction===h?-1:1)*w.distance[e.horizontal===!0?"y":"x"];b=Math.min(f,c.value[1],Math.max(c.value[0],E)),i[d.value].value.style[u.value]=g(b),e.emitImmediately===!0&&e.modelValue!==b&&n("update:modelValue",b)}const y=r.computed(()=>[[rn,S,void 0,{[e.horizontal===!0?"vertical":"horizontal"]:!0,prevent:!0,stop:!0,mouse:!0,mouseAllDir:!0}]]);function m(w,E){w<E[0]?n("update:modelValue",E[0]):w>E[1]&&n("update:modelValue",E[1])}return r.watch(()=>e.modelValue,w=>{m(w,c.value)}),r.watch(()=>e.limits,()=>{r.nextTick(()=>{m(e.modelValue,c.value)})}),()=>{const w=[r.h("div",{ref:i.before,class:["q-splitter__panel q-splitter__before"+(e.reverse===!0?" col":""),e.beforeClass],style:v.value.before},Te(t.before)),r.h("div",{class:["q-splitter__separator",e.separatorClass],style:e.separatorStyle,"aria-disabled":e.disable===!0?"true":void 0},[en("div",{class:"q-splitter__separator-area absolute-full"},Te(t.separator),"sep",e.disable!==!0,()=>y.value)]),r.h("div",{ref:i.after,class:["q-splitter__panel q-splitter__after"+(e.reverse===!0?"":" col"),e.afterClass],style:v.value.after},Te(t.after))];return r.h("div",{class:s.value,ref:l},ht(t.default,w))}}});var Dv=ie({name:"StepHeader",props:{stepper:{},step:{},goToPanel:Function},setup(e,{attrs:t}){const{proxy:{$q:n}}=r.getCurrentInstance(),a=r.ref(null),o=r.computed(()=>e.stepper.modelValue===e.step.name),l=r.computed(()=>{const p=e.step.disable;return p===!0||p===""}),i=r.computed(()=>{const p=e.step.error;return p===!0||p===""}),s=r.computed(()=>{const p=e.step.done;return l.value===!1&&(p===!0||p==="")}),u=r.computed(()=>{const p=e.step.headerNav,b=p===!0||p===""||p===void 0;return l.value===!1&&e.stepper.headerNav&&b}),d=r.computed(()=>e.step.prefix&&(o.value===!1||e.stepper.activeIcon==="none")&&(i.value===!1||e.stepper.errorIcon==="none")&&(s.value===!1||e.stepper.doneIcon==="none")),c=r.computed(()=>{const p=e.step.icon||e.stepper.inactiveIcon;if(o.value===!0){const b=e.step.activeIcon||e.stepper.activeIcon;return b==="none"?p:b||n.iconSet.stepper.active}if(i.value===!0){const b=e.step.errorIcon||e.stepper.errorIcon;return b==="none"?p:b||n.iconSet.stepper.error}if(l.value===!1&&s.value===!0){const b=e.step.doneIcon||e.stepper.doneIcon;return b==="none"?p:b||n.iconSet.stepper.done}return p}),g=r.computed(()=>{const p=i.value===!0?e.step.errorColor||e.stepper.errorColor:void 0;if(o.value===!0){const b=e.step.activeColor||e.stepper.activeColor||e.step.color;return b!==void 0?b:p}return p!==void 0?p:l.value===!1&&s.value===!0?e.step.doneColor||e.stepper.doneColor||e.step.color||e.stepper.inactiveColor:e.step.color||e.stepper.inactiveColor}),v=r.computed(()=>"q-stepper__tab col-grow flex items-center no-wrap relative-position"+(g.value!==void 0?` text-${g.value}`:"")+(i.value===!0?" q-stepper__tab--error q-stepper__tab--error-with-"+(d.value===!0?"prefix":"icon"):"")+(o.value===!0?" q-stepper__tab--active":"")+(s.value===!0?" q-stepper__tab--done":"")+(u.value===!0?" q-stepper__tab--navigation q-focusable q-hoverable":"")+(l.value===!0?" q-stepper__tab--disabled":"")),h=r.computed(()=>e.stepper.headerNav!==!0?!1:u.value);function f(){a.value?.focus(),o.value===!1&&e.goToPanel(e.step.name)}function _(p){p.keyCode===13&&o.value===!1&&e.goToPanel(e.step.name)}return()=>{const p={class:v.value};u.value===!0&&(p.onClick=f,p.onKeyup=_,Object.assign(p,l.value===!0?{tabindex:-1,"aria-disabled":"true"}:{tabindex:t.tabindex||0}));const b=[r.h("div",{class:"q-focus-helper",tabindex:-1,ref:a}),r.h("div",{class:"q-stepper__dot row flex-center q-stepper__line relative-position"},[r.h("span",{class:"row flex-center"},[d.value===!0?e.step.prefix:r.h(Xe,{name:c.value})])])];if(e.step.title!==void 0&&e.step.title!==null){const S=[r.h("div",{class:"q-stepper__title"},e.step.title)];e.step.caption!==void 0&&e.step.caption!==null&&S.push(r.h("div",{class:"q-stepper__caption"},e.step.caption)),b.push(r.h("div",{class:"q-stepper__label q-stepper__line relative-position"},S))}return r.withDirectives(r.h("div",p,b),[[So,h.value]])}}});function $v(e){return r.h("div",{class:"q-stepper__step-content"},[r.h("div",{class:"q-stepper__step-inner"},Te(e.default))])}var Bv={setup(e,{slots:t}){return()=>$v(t)}};ie({name:"QStep",props:{...zi,icon:String,color:String,title:{type:String,required:!0},caption:String,prefix:[String,Number],doneIcon:String,doneColor:String,activeIcon:String,activeColor:String,errorIcon:String,errorColor:String,headerNav:{type:Boolean,default:!0},done:Boolean,error:Boolean,onScroll:[Function,Array]},setup(e,{slots:t,emit:n}){const{proxy:{$q:a}}=r.getCurrentInstance(),o=r.inject(nd,et);if(o===et)return console.error("QStep needs to be a child of QStepper"),et;const{getCache:l}=wa(),i=r.ref(null),s=r.computed(()=>o.value.modelValue===e.name),u=r.computed(()=>a.platform.is.ios!==!0&&a.platform.is.chrome===!0||s.value!==!0||o.value.vertical!==!0?{}:{onScroll(g){const{target:v}=g;v.scrollTop>0&&(v.scrollTop=0),e.onScroll!==void 0&&n("scroll",g)}}),d=r.computed(()=>typeof e.name=="string"||typeof e.name=="number"?e.name:String(e.name));function c(){const g=o.value.vertical;return g===!0&&o.value.keepAlive===!0?r.h(r.KeepAlive,o.value.keepAliveProps.value,s.value===!0?[r.h(o.value.needsUniqueKeepAliveWrapper.value===!0?l(d.value,()=>({...Bv,name:d.value})):Bv,{key:d.value},t.default)]:void 0):g!==!0||s.value===!0?$v(t):void 0}return()=>r.h("div",{ref:i,class:"q-stepper__step",role:"tabpanel",...u.value},o.value.vertical===!0?[r.h(Dv,{stepper:o.value,step:e,goToPanel:o.value.goToPanel}),o.value.animated===!0?r.h(ps,c):c()]:[c()])}});var yS=/(-\w)/g;function _S(e){const t={};for(const n in e){const a=n.replace(yS,o=>o[1].toUpperCase());t[a]=e[n]}return t}ie({name:"QStepper",props:{...Ye,...Hi,flat:Boolean,bordered:Boolean,alternativeLabels:Boolean,headerNav:Boolean,contracted:Boolean,headerClass:String,inactiveColor:String,inactiveIcon:String,doneIcon:String,doneColor:String,activeIcon:String,activeColor:String,errorIcon:String,errorColor:String},emits:ji,setup(e,{slots:t}){const n=r.getCurrentInstance(),a=Ge(e,n.proxy.$q),{updatePanelsList:o,isValidPanelName:l,updatePanelIndex:i,getPanelContent:s,getPanels:u,panelDirectives:d,goToPanel:c,keepAliveProps:g,needsUniqueKeepAliveWrapper:v}=Ui();r.provide(nd,r.computed(()=>({goToPanel:c,keepAliveProps:g,needsUniqueKeepAliveWrapper:v,...e})));const h=r.computed(()=>`q-stepper q-stepper--${e.vertical===!0?"vertical":"horizontal"}`+(e.flat===!0?" q-stepper--flat":"")+(e.bordered===!0?" q-stepper--bordered":"")+(a.value===!0?" q-stepper--dark q-dark":"")),f=r.computed(()=>`q-stepper__header row items-stretch justify-between q-stepper__header--${e.alternativeLabels===!0?"alternative":"standard"}-labels`+(e.flat===!1||e.bordered===!0?" q-stepper__header--border":"")+(e.contracted===!0?" q-stepper__header--contracted":"")+(e.headerClass!==void 0?` ${e.headerClass}`:""));function _(){const p=Te(t.message,[]);if(e.vertical===!0){l(e.modelValue)&&i();const b=r.h("div",{class:"q-stepper__content"},Te(t.default));return p===void 0?[b]:p.concat(b)}return[r.h("div",{class:f.value},u().map(b=>{const S=_S(b.props);return r.h(Dv,{key:S.name,stepper:e,step:S,goToPanel:c})})),p,en("div",{class:"q-stepper__content q-panel-parent"},s(),"cont",e.swipeable,()=>d.value)]}return()=>(o(t),r.h("div",{class:h.value},ht(t.navigation,_())))}}),ie({name:"QStepperNavigation",setup(e,{slots:t}){return()=>r.h("div",{class:"q-stepper__nav"},Te(t.default))}});var SS=ie({name:"QTh",props:{props:Object,autoWidth:Boolean},emits:["click"],setup(e,{slots:t,emit:n}){const a=r.getCurrentInstance(),{proxy:{$q:o}}=a,l=i=>{n("click",i)};return()=>{if(e.props===void 0)return r.h("th",{class:e.autoWidth===!0?"q-table--col-auto-width":"",onClick:l},Te(t.default));let i,s;const u=a.vnode.key;if(u){if(i=e.props.colsMap[u],i===void 0)return}else i=e.props.col;if(i.sortable===!0){const c=i.align==="right"?"unshift":"push";s=ga(t.default,[]),s[c](r.h(Xe,{class:i.__iconClass,name:o.iconSet.table.arrowUp}))}else s=Te(t.default);const d={class:i.__thClass+(e.autoWidth===!0?" q-table--col-auto-width":""),style:i.headerStyle,onClick:c=>{i.sortable===!0&&e.props.sort(i),l(c)}};return r.h("th",d,s)}}});function Fv(e,t){return r.h("div",e,[r.h("table",{class:"q-table"},t)])}var wS={list:L_,table:N_},CS=["list","table","__qtable"],kS=ie({name:"QVirtualScroll",props:{...Os,type:{type:String,default:"list",validator:e=>CS.includes(e)},items:{type:Array,default:()=>[]},itemsFn:Function,itemsSize:Number,scrollTarget:sr},setup(e,{slots:t,attrs:n}){let a;const o=r.ref(null),l=r.computed(()=>e.itemsSize>=0&&e.itemsFn!==void 0?parseInt(e.itemsSize,10):Array.isArray(e.items)?e.items.length:0),{virtualScrollSliceRange:i,localResetVirtualScroll:s,padVirtualScroll:u,onVirtualScrollEvt:d}=Pv({virtualScrollLength:l,getVirtualScrollTarget:f,getVirtualScrollEl:h}),c=r.computed(()=>{if(l.value===0)return[];const S=(y,m)=>({index:i.value.from+m,item:y});return e.itemsFn===void 0?e.items.slice(i.value.from,i.value.to).map(S):e.itemsFn(i.value.from,i.value.to-i.value.from).map(S)}),g=r.computed(()=>"q-virtual-scroll q-virtual-scroll"+(e.virtualScrollHorizontal===!0?"--horizontal":"--vertical")+(e.scrollTarget!==void 0?"":" scroll")),v=r.computed(()=>e.scrollTarget!==void 0?{}:{tabindex:0});r.watch(l,()=>{s()}),r.watch(()=>e.scrollTarget,()=>{p(),_()});function h(){return o.value.$el||o.value}function f(){return a}function _(){a=pn(h(),e.scrollTarget),a.addEventListener("scroll",d,lt.passive)}function p(){a!==void 0&&(a.removeEventListener("scroll",d,lt.passive),a=void 0)}function b(){let S=u(e.type==="list"?"div":"tbody",c.value.map(t.default));return t.before!==void 0&&(S=t.before().concat(S)),ht(t.after,S)}return r.onBeforeMount(()=>{s()}),r.onMounted(()=>{_()}),r.onActivated(()=>{_()}),r.onDeactivated(()=>{p()}),r.onBeforeUnmount(()=>{p()}),()=>{if(t.default===void 0){console.error("QVirtualScroll: default scoped slot is required for rendering");return}return e.type==="__qtable"?Fv({ref:o,class:"q-table__middle "+g.value},b()):r.h(wS[e.type],{...n,ref:o,class:[n.class,g.value],...v.value},b)}}});function xS(e,t){return new Date(e)-new Date(t)}var ES={sortMethod:Function,binaryStateSort:Boolean,columnSortOrder:{type:String,validator:e=>e==="ad"||e==="da",default:"ad"}};function TS(e,t,n,a){const o=r.computed(()=>{const{sortBy:s}=t.value;return s&&n.value.find(u=>u.name===s)||null}),l=r.computed(()=>e.sortMethod!==void 0?e.sortMethod:(s,u,d)=>{const c=n.value.find(h=>h.name===u);if(c===void 0||c.field===void 0)return s;const g=d===!0?-1:1,v=typeof c.field=="function"?h=>c.field(h):h=>h[c.field];return s.sort((h,f)=>{let _=v(h),p=v(f);return c.rawSort!==void 0?c.rawSort(_,p,h,f)*g:_==null?-1*g:p==null?1*g:c.sort!==void 0?c.sort(_,p,h,f)*g:ma(_)===!0&&ma(p)===!0?(_-p)*g:va(_)===!0&&va(p)===!0?xS(_,p)*g:typeof _=="boolean"&&typeof p=="boolean"?(_-p)*g:([_,p]=[_,p].map(b=>(b+"").toLocaleString().toLowerCase()),_<p?-1*g:_===p?0:g)})});function i(s){let u=e.columnSortOrder;if($t(s)===!0)s.sortOrder&&(u=s.sortOrder),s=s.name;else{const g=n.value.find(v=>v.name===s);g?.sortOrder&&(u=g.sortOrder)}let{sortBy:d,descending:c}=t.value;d!==s?(d=s,c=u==="da"):e.binaryStateSort===!0?c=!c:c===!0?u==="ad"?d=null:c=!1:u==="ad"?c=!0:d=null,a({sortBy:d,descending:c,page:1})}return{columnToSort:o,computedSortMethod:l,sort:i}}var qS={filter:[String,Object],filterMethod:Function};function OS(e,t){const n=r.computed(()=>e.filterMethod!==void 0?e.filterMethod:(a,o,l,i)=>{const s=o?o.toLowerCase():"";return a.filter(u=>l.some(d=>{const c=i(d,u)+"";return(c==="undefined"||c==="null"?"":c.toLowerCase()).indexOf(s)!==-1}))});return r.watch(()=>e.filter,()=>{r.nextTick(()=>{t({page:1},!0)})},{deep:!0}),{computedFilterMethod:n}}function MS(e,t){for(const n in t)if(t[n]!==e[n])return!1;return!0}function zv(e){return e.page<1&&(e.page=1),e.rowsPerPage!==void 0&&e.rowsPerPage<1&&(e.rowsPerPage=0),e}var LS={pagination:Object,rowsPerPageOptions:{type:Array,default:()=>[5,7,10,15,20,25,50,0]},"onUpdate:pagination":[Function,Array]};function AS(e,t){const{props:n,emit:a}=e,o=r.ref(Object.assign({sortBy:null,descending:!1,page:1,rowsPerPage:n.rowsPerPageOptions.length!==0?n.rowsPerPageOptions[0]:5},n.pagination)),l=r.computed(()=>{const c=n["onUpdate:pagination"]!==void 0?{...o.value,...n.pagination}:o.value;return zv(c)}),i=r.computed(()=>l.value.rowsNumber!==void 0);function s(c){u({pagination:c,filter:n.filter})}function u(c={}){r.nextTick(()=>{a("request",{pagination:c.pagination||l.value,filter:c.filter||n.filter,getCellValue:t})})}function d(c,g){const v=zv({...l.value,...c});if(MS(l.value,v)===!0){i.value===!0&&g===!0&&s(v);return}if(i.value===!0){s(v);return}n.pagination!==void 0&&n["onUpdate:pagination"]!==void 0?a("update:pagination",v):o.value=v}return{innerPagination:o,computedPagination:l,isServerSide:i,requestServerInteraction:u,setPagination:d}}function RS(e,t,n,a,o,l){const{props:i,emit:s,proxy:{$q:u}}=e,d=r.computed(()=>a.value===!0?n.value.rowsNumber||0:l.value),c=r.computed(()=>{const{page:m,rowsPerPage:w}=n.value;return(m-1)*w}),g=r.computed(()=>{const{page:m,rowsPerPage:w}=n.value;return m*w}),v=r.computed(()=>n.value.page===1),h=r.computed(()=>n.value.rowsPerPage===0?1:Math.max(1,Math.ceil(d.value/n.value.rowsPerPage))),f=r.computed(()=>g.value===0?!0:n.value.page>=h.value),_=r.computed(()=>(i.rowsPerPageOptions.includes(t.value.rowsPerPage)?i.rowsPerPageOptions:[t.value.rowsPerPage].concat(i.rowsPerPageOptions)).map(w=>({label:w===0?u.lang.table.allRows:""+w,value:w})));r.watch(h,(m,w)=>{if(m===w)return;const E=n.value.page;m&&!E?o({page:1}):m<E&&o({page:m})});function p(){o({page:1})}function b(){const{page:m}=n.value;m>1&&o({page:m-1})}function S(){const{page:m,rowsPerPage:w}=n.value;g.value>0&&m*w<d.value&&o({page:m+1})}function y(){o({page:h.value})}return i["onUpdate:pagination"]!==void 0&&s("update:pagination",{...n.value}),{firstRowIndex:c,lastRowIndex:g,isFirstPage:v,isLastPage:f,pagesNumber:h,computedRowsPerPageOptions:_,computedRowsNumber:d,firstPage:p,prevPage:b,nextPage:S,lastPage:y}}var PS={selection:{type:String,default:"none",validator:e=>["single","multiple","none"].includes(e)},selected:{type:Array,default:()=>[]}},NS=["update:selected","selection"];function IS(e,t,n,a){const o=r.computed(()=>{const f={};return e.selected.map(a.value).forEach(_=>{f[_]=!0}),f}),l=r.computed(()=>e.selection!=="none"),i=r.computed(()=>e.selection==="single"),s=r.computed(()=>e.selection==="multiple"),u=r.computed(()=>n.value.length!==0&&n.value.every(f=>o.value[a.value(f)]===!0)),d=r.computed(()=>u.value!==!0&&n.value.some(f=>o.value[a.value(f)]===!0)),c=r.computed(()=>e.selected.length);function g(f){return o.value[f]===!0}function v(){t("update:selected",[])}function h(f,_,p,b){t("selection",{rows:_,added:p,keys:f,evt:b});const S=i.value===!0?p===!0?_:[]:p===!0?e.selected.concat(_):e.selected.filter(y=>f.includes(a.value(y))===!1);t("update:selected",S)}return{hasSelectionMode:l,singleSelection:i,multipleSelection:s,allRowsSelected:u,someRowsSelected:d,rowsSelectedNumber:c,isRowSelected:g,clearSelection:v,updateSelection:h}}function Hv(e){return Array.isArray(e)?e.slice():[]}var DS={expanded:Array},$S=["update:expanded"];function BS(e,t){const n=r.ref(Hv(e.expanded));r.watch(()=>e.expanded,i=>{n.value=Hv(i)});function a(i){return n.value.includes(i)}function o(i){e.expanded!==void 0?t("update:expanded",i):n.value=i}function l(i,s){const u=n.value.slice(),d=u.indexOf(i);s===!0?d===-1&&(u.push(i),o(u)):d!==-1&&(u.splice(d,1),o(u))}return{isRowExpanded:a,setExpanded:o,updateExpanded:l}}var FS={visibleColumns:Array};function zS(e,t,n){const a=r.computed(()=>{if(e.columns!==void 0)return e.columns;const s=e.rows[0];return s!==void 0?Object.keys(s).map(u=>({name:u,label:u.toUpperCase(),field:u,align:ma(s[u])?"right":"left",sortable:!0})):[]}),o=r.computed(()=>{const{sortBy:s,descending:u}=t.value;return(e.visibleColumns!==void 0?a.value.filter(c=>c.required===!0||e.visibleColumns.includes(c.name)===!0):a.value).map(c=>{const g=c.align||"right",v=`text-${g}`;return{...c,align:g,__iconClass:`q-table__sort-icon q-table__sort-icon--${g}`,__thClass:v+(c.headerClasses!==void 0?" "+c.headerClasses:"")+(c.sortable===!0?" sortable":"")+(c.name===s?` sorted ${u===!0?"sort-desc":""}`:""),__tdStyle:c.style!==void 0?typeof c.style!="function"?()=>c.style:c.style:()=>null,__tdClass:c.classes!==void 0?typeof c.classes!="function"?()=>v+" "+c.classes:h=>v+" "+c.classes(h):()=>v}})}),l=r.computed(()=>{const s={};return o.value.forEach(u=>{s[u.name]=u}),s}),i=r.computed(()=>e.tableColspan!==void 0?e.tableColspan:o.value.length+(n.value===!0?1:0));return{colList:a,computedCols:o,computedColsMap:l,computedColspan:i}}var al="q-table__bottom row items-center",jv={};Rv.forEach(e=>{jv[e]={}}),ie({name:"QTable",props:{rows:{type:Array,required:!0},rowKey:{type:[String,Function],default:"id"},columns:Array,loading:Boolean,iconFirstPage:String,iconPrevPage:String,iconNextPage:String,iconLastPage:String,title:String,hideHeader:Boolean,grid:Boolean,gridHeader:Boolean,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,separator:{type:String,default:"horizontal",validator:e=>["horizontal","vertical","cell","none"].includes(e)},wrapCells:Boolean,virtualScroll:Boolean,virtualScrollTarget:{},...jv,noDataLabel:String,noResultsLabel:String,loadingLabel:String,selectedRowsLabel:Function,rowsPerPageLabel:String,paginationLabel:Function,color:{type:String,default:"grey-8"},titleClass:[String,Array,Object],tableStyle:[String,Array,Object],tableClass:[String,Array,Object],tableHeaderStyle:[String,Array,Object],tableHeaderClass:[String,Array,Object],tableRowStyleFn:Function,tableRowClassFn:Function,cardContainerClass:[String,Array,Object],cardContainerStyle:[String,Array,Object],cardStyle:[String,Array,Object],cardClass:[String,Array,Object],cardStyleFn:Function,cardClassFn:Function,hideBottom:Boolean,hideSelectedBanner:Boolean,hideNoData:Boolean,hidePagination:Boolean,onRowClick:Function,onRowDblclick:Function,onRowContextmenu:Function,...Ye,...Qi,...FS,...qS,...LS,...DS,...PS,...ES},emits:["request","virtualScroll",...Wi,...$S,...NS],setup(e,{slots:t,emit:n}){const a=r.getCurrentInstance(),{proxy:{$q:o}}=a,l=Ge(e,o),{inFullscreen:i,toggleFullscreen:s}=Ki(),u=r.computed(()=>typeof e.rowKey=="function"?e.rowKey:re=>re[e.rowKey]),d=r.ref(null),c=r.ref(null),g=r.computed(()=>e.grid!==!0&&e.virtualScroll===!0),v=r.computed(()=>" q-table__card"+(l.value===!0?" q-table__card--dark q-dark":"")+(e.square===!0?" q-table--square":"")+(e.flat===!0?" q-table--flat":"")+(e.bordered===!0?" q-table--bordered":"")),h=r.computed(()=>`q-table__container q-table--${e.separator}-separator column no-wrap`+(e.grid===!0?" q-table--grid":v.value)+(l.value===!0?" q-table--dark":"")+(e.dense===!0?" q-table--dense":"")+(e.wrapCells===!1?" q-table--no-wrap":"")+(i.value===!0?" fullscreen scroll":"")),f=r.computed(()=>h.value+(e.loading===!0?" q-table--loading":""));r.watch(()=>e.tableStyle+e.tableClass+e.tableHeaderStyle+e.tableHeaderClass+h.value,()=>{g.value===!0&&c.value?.reset()});const{innerPagination:_,computedPagination:p,isServerSide:b,requestServerInteraction:S,setPagination:y}=AS(a,ee),{computedFilterMethod:m}=OS(e,y),{isRowExpanded:w,setExpanded:E,updateExpanded:C}=BS(e,n),R=r.computed(()=>{let re=e.rows;if(b.value===!0||re.length===0)return re;const{sortBy:ye,descending:Pe}=p.value;return e.filter&&(re=m.value(re,e.filter,$.value,ee)),B.value!==null&&(re=le.value(e.rows===re?re.slice():re,ye,Pe)),re}),H=r.computed(()=>R.value.length),q=r.computed(()=>{let re=R.value;if(b.value===!0)return re;const{rowsPerPage:ye}=p.value;return ye!==0&&(U.value===0&&e.rows!==re?re.length>ue.value&&(re=re.slice(0,ue.value)):re=re.slice(U.value,ue.value)),re}),{hasSelectionMode:T,singleSelection:M,multipleSelection:O,allRowsSelected:k,someRowsSelected:A,rowsSelectedNumber:D,isRowSelected:z,clearSelection:F,updateSelection:Z}=IS(e,n,q,u),{colList:he,computedCols:$,computedColsMap:x,computedColspan:Y}=zS(e,p,T),{columnToSort:B,computedSortMethod:le,sort:N}=TS(e,p,he,y),{firstRowIndex:U,lastRowIndex:ue,isFirstPage:W,isLastPage:ve,pagesNumber:_e,computedRowsPerPageOptions:G,computedRowsNumber:ge,firstPage:pe,prevPage:we,nextPage:Ae,lastPage:fe}=RS(a,_,p,b,y,H),L=r.computed(()=>q.value.length===0),I=r.computed(()=>{const re={};return Rv.forEach(ye=>{re[ye]=e[ye]}),re.virtualScrollItemSize===void 0&&(re.virtualScrollItemSize=e.dense===!0?28:48),re});function te(){g.value===!0&&c.value.reset()}function K(){if(e.grid===!0)return Pn();const re=e.hideHeader!==!0?xe:null;if(g.value===!0){const Pe=t["top-row"],Re=t["bottom-row"],ze={default:dt=>J(dt.item,t.body,dt.index)};if(Pe!==void 0){const dt=r.h("tbody",Pe({cols:$.value}));ze.before=re===null?()=>dt:()=>[re()].concat(dt)}else re!==null&&(ze.before=re);return Re!==void 0&&(ze.after=()=>r.h("tbody",Re({cols:$.value}))),r.h(kS,{ref:c,class:e.tableClass,style:e.tableStyle,...I.value,scrollTarget:e.virtualScrollTarget,items:q.value,type:"__qtable",tableColspan:Y.value,onVirtualScroll:se},ze)}const ye=[ae()];return re!==null&&ye.unshift(re()),Fv({class:["q-table__middle scroll",e.tableClass],style:e.tableStyle},ye)}function X(re,ye){if(c.value!==null){c.value.scrollTo(re,ye);return}re=parseInt(re,10);const Pe=d.value.querySelector(`tbody tr:nth-of-type(${re+1})`);if(Pe!==null){const Re=d.value.querySelector(".q-table__middle.scroll"),ze=Pe.offsetTop-e.virtualScrollStickySizeStart,dt=ze<Re.scrollTop?"decrease":"increase";Re.scrollTop=ze,n("virtualScroll",{index:re,from:0,to:_.value.rowsPerPage-1,direction:dt})}}function se(re){n("virtualScroll",re)}function me(){return[r.h(H_,{class:"q-table__linear-progress",color:e.color,dark:l.value,indeterminate:!0,trackColor:"transparent"})]}function J(re,ye,Pe){const Re=u.value(re),ze=z(Re);if(ye!==void 0){const j={key:Re,row:re,pageIndex:Pe,__trClass:ze?"selected":""};if(e.tableRowStyleFn!==void 0&&(j.__trStyle=e.tableRowStyleFn(re)),e.tableRowClassFn!==void 0){const oe=e.tableRowClassFn(re);oe&&(j.__trClass=`${oe} ${j.__trClass}`)}return ye(be(j))}const dt=t["body-cell"],st=$.value.map(j=>{const oe=t[`body-cell-${j.name}`],Se=oe!==void 0?oe:dt;return Se!==void 0?Se(ke({key:Re,row:re,pageIndex:Pe,col:j})):r.h("td",{class:j.__tdClass(re),style:j.__tdStyle(re)},ee(j,re))});if(T.value===!0){const j=t["body-selection"],oe=j!==void 0?j(Qe({key:Re,row:re,pageIndex:Pe})):[r.h(ka,{modelValue:ze,color:e.color,dark:l.value,dense:e.dense,"onUpdate:modelValue":(Se,Ce)=>{Z([Re],[re],Se,Ce)}})];st.unshift(r.h("td",{class:"q-table--col-auto-width"},oe))}const P={key:Re,class:{selected:ze}};if(e.onRowClick!==void 0&&(P.class["cursor-pointer"]=!0,P.onClick=j=>{n("rowClick",j,re,Pe)}),e.onRowDblclick!==void 0&&(P.class["cursor-pointer"]=!0,P.onDblclick=j=>{n("rowDblclick",j,re,Pe)}),e.onRowContextmenu!==void 0&&(P.class["cursor-pointer"]=!0,P.onContextmenu=j=>{n("rowContextmenu",j,re,Pe)}),e.tableRowStyleFn!==void 0&&(P.style=e.tableRowStyleFn(re)),e.tableRowClassFn!==void 0){const j=e.tableRowClassFn(re);j&&(P.class[j]=!0)}return r.h("tr",P,st)}function ae(){const re=t.body,ye=t["top-row"],Pe=t["bottom-row"];let Re=q.value.map((ze,dt)=>J(ze,re,dt));return ye!==void 0&&(Re=ye({cols:$.value}).concat(Re)),Pe!==void 0&&(Re=Re.concat(Pe({cols:$.value}))),r.h("tbody",Re)}function be(re){return je(re),re.cols=re.cols.map(ye=>xt({...ye},"value",()=>ee(ye,re.row))),re}function ke(re){return je(re),xt(re,"value",()=>ee(re.col,re.row)),re}function Qe(re){return je(re),re}function je(re){Object.assign(re,{cols:$.value,colsMap:x.value,sort:N,rowIndex:U.value+re.pageIndex,color:e.color,dark:l.value,dense:e.dense}),T.value===!0&&xt(re,"selected",()=>z(re.key),(ye,Pe)=>{Z([re.key],[re.row],ye,Pe)}),xt(re,"expand",()=>w(re.key),ye=>{C(re.key,ye)})}function ee(re,ye){const Pe=typeof re.field=="function"?re.field(ye):ye[re.field];return re.format!==void 0?re.format(Pe,ye):Pe}const ce=r.computed(()=>({pagination:p.value,pagesNumber:_e.value,isFirstPage:W.value,isLastPage:ve.value,firstPage:pe,prevPage:we,nextPage:Ae,lastPage:fe,inFullscreen:i.value,toggleFullscreen:s}));function V(){const re=t.top,ye=t["top-left"],Pe=t["top-right"],Re=t["top-selection"],ze=T.value===!0&&Re!==void 0&&D.value>0,dt="q-table__top relative-position row items-center";if(re!==void 0)return r.h("div",{class:dt},[re(ce.value)]);let st;if(ze===!0?st=Re(ce.value).slice():(st=[],ye!==void 0?st.push(r.h("div",{class:"q-table__control"},[ye(ce.value)])):e.title&&st.push(r.h("div",{class:"q-table__control"},[r.h("div",{class:["q-table__title",e.titleClass]},e.title)]))),Pe!==void 0&&(st.push(r.h("div",{class:"q-table__separator col"})),st.push(r.h("div",{class:"q-table__control"},[Pe(ce.value)]))),st.length!==0)return r.h("div",{class:dt},st)}const de=r.computed(()=>A.value===!0?null:k.value);function xe(){const re=Be();return e.loading===!0&&t.loading===void 0&&re.push(r.h("tr",{class:"q-table__progress"},[r.h("th",{class:"relative-position",colspan:Y.value},me())])),r.h("thead",re)}function Be(){const re=t.header,ye=t["header-cell"];if(re!==void 0)return re(Le({header:!0})).slice();const Pe=$.value.map(Re=>{const ze=t[`header-cell-${Re.name}`],dt=ze!==void 0?ze:ye,st=Le({col:Re});return dt!==void 0?dt(st):r.h(SS,{key:Re.name,props:st},()=>Re.label)});if(M.value===!0&&e.grid!==!0)Pe.unshift(r.h("th",{class:"q-table--col-auto-width"}," "));else if(O.value===!0){const Re=t["header-selection"],ze=Re!==void 0?Re(Le({})):[r.h(ka,{color:e.color,modelValue:de.value,dark:l.value,dense:e.dense,"onUpdate:modelValue":Ue})];Pe.unshift(r.h("th",{class:"q-table--col-auto-width"},ze))}return[r.h("tr",{class:e.tableHeaderClass,style:e.tableHeaderStyle},Pe)]}function Le(re){return Object.assign(re,{cols:$.value,sort:N,colsMap:x.value,color:e.color,dark:l.value,dense:e.dense}),O.value===!0&&xt(re,"selected",()=>de.value,Ue),re}function Ue(re){A.value===!0&&(re=!1),Z(q.value.map(u.value),q.value,re)}const nt=r.computed(()=>{const re=[e.iconFirstPage||o.iconSet.table.firstPage,e.iconPrevPage||o.iconSet.table.prevPage,e.iconNextPage||o.iconSet.table.nextPage,e.iconLastPage||o.iconSet.table.lastPage];return o.lang.rtl===!0?re.reverse():re});function pt(){if(e.hideBottom===!0)return;if(L.value===!0){if(e.hideNoData===!0)return;const Pe=e.loading===!0?e.loadingLabel||o.lang.table.loading:e.filter?e.noResultsLabel||o.lang.table.noResults:e.noDataLabel||o.lang.table.noData,Re=t["no-data"],ze=Re!==void 0?[Re({message:Pe,icon:o.iconSet.table.warning,filter:e.filter})]:[r.h(Xe,{class:"q-table__bottom-nodata-icon",name:o.iconSet.table.warning}),Pe];return r.h("div",{class:al+" q-table__bottom--nodata"},ze)}const re=t.bottom;if(re!==void 0)return r.h("div",{class:al},[re(ce.value)]);const ye=e.hideSelectedBanner!==!0&&T.value===!0&&D.value>0?[r.h("div",{class:"q-table__control"},[r.h("div",[(e.selectedRowsLabel||o.lang.table.selectedRecords)(D.value)])])]:[];if(e.hidePagination!==!0)return r.h("div",{class:al+" justify-end"},Wn(ye));if(ye.length!==0)return r.h("div",{class:al},ye)}function Ft(re){y({page:1,rowsPerPage:re.value})}function Wn(re){let ye;const{rowsPerPage:Pe}=p.value,Re=e.paginationLabel||o.lang.table.pagination,ze=t.pagination,dt=e.rowsPerPageOptions.length>1;if(re.push(r.h("div",{class:"q-table__separator col"})),dt===!0&&re.push(r.h("div",{class:"q-table__control"},[r.h("span",{class:"q-table__bottom-item"},[e.rowsPerPageLabel||o.lang.table.recordsPerPage]),r.h(Y_,{class:"q-table__select inline q-table__bottom-item",color:e.color,modelValue:Pe,options:G.value,displayValue:Pe===0?o.lang.table.allRows:Pe,dark:l.value,borderless:!0,dense:!0,optionsDense:!0,optionsCover:!0,"onUpdate:modelValue":Ft})])),ze!==void 0)ye=ze(ce.value);else if(ye=[r.h("span",Pe!==0?{class:"q-table__bottom-item"}:{},[Pe?Re(U.value+1,Math.min(ue.value,ge.value),ge.value):Re(1,H.value,ge.value)])],Pe!==0&&_e.value>1){const st={color:e.color,round:!0,dense:!0,flat:!0};e.dense===!0&&(st.size="sm"),_e.value>2&&ye.push(r.h(Ze,{key:"pgFirst",...st,icon:nt.value[0],disable:W.value,"aria-label":o.lang.pagination.first,onClick:pe})),ye.push(r.h(Ze,{key:"pgPrev",...st,icon:nt.value[1],disable:W.value,"aria-label":o.lang.pagination.prev,onClick:we}),r.h(Ze,{key:"pgNext",...st,icon:nt.value[2],disable:ve.value,"aria-label":o.lang.pagination.next,onClick:Ae})),_e.value>2&&ye.push(r.h(Ze,{key:"pgLast",...st,icon:nt.value[3],disable:ve.value,"aria-label":o.lang.pagination.last,onClick:fe}))}return re.push(r.h("div",{class:"q-table__control"},ye)),re}function Kt(){const re=e.gridHeader===!0?[r.h("table",{class:"q-table"},[xe()])]:e.loading===!0&&t.loading===void 0?me():void 0;return r.h("div",{class:"q-table__middle"},re)}function Pn(){const re=t.item!==void 0?t.item:ye=>{const Pe=ye.cols.map(ze=>r.h("div",{class:"q-table__grid-item-row"},[r.h("div",{class:"q-table__grid-item-title"},[ze.label]),r.h("div",{class:"q-table__grid-item-value"},[ze.value])]));if(T.value===!0){const ze=t["body-selection"],dt=ze!==void 0?ze(ye):[r.h(ka,{modelValue:ye.selected,color:e.color,dark:l.value,dense:e.dense,"onUpdate:modelValue":(st,P)=>{Z([ye.key],[ye.row],st,P)}})];Pe.unshift(r.h("div",{class:"q-table__grid-item-row"},dt),r.h(hr,{dark:l.value}))}const Re={class:["q-table__grid-item-card"+v.value,e.cardClass],style:e.cardStyle};if(e.cardStyleFn!==void 0&&(Re.style=[Re.style,e.cardStyleFn(ye.row)]),e.cardClassFn!==void 0){const ze=e.cardClassFn(ye.row);ze&&(Re.class[0]+=` ${ze}`)}return(e.onRowClick!==void 0||e.onRowDblclick!==void 0||e.onRowContextmenu!==void 0)&&(Re.class[0]+=" cursor-pointer",e.onRowClick!==void 0&&(Re.onClick=ze=>{n("RowClick",ze,ye.row,ye.pageIndex)}),e.onRowDblclick!==void 0&&(Re.onDblclick=ze=>{n("RowDblclick",ze,ye.row,ye.pageIndex)}),e.onRowContextmenu!==void 0&&(Re.onContextmenu=ze=>{n("rowContextmenu",ze,ye.row,ye.pageIndex)})),r.h("div",{class:"q-table__grid-item col-xs-12 col-sm-6 col-md-4 col-lg-3"+(ye.selected===!0?" q-table__grid-item--selected":"")},[r.h("div",Re,Pe)])};return r.h("div",{class:["q-table__grid-content row",e.cardContainerClass],style:e.cardContainerStyle},q.value.map((ye,Pe)=>re(be({key:u.value(ye),row:ye,pageIndex:Pe}))))}return Object.assign(a.proxy,{requestServerInteraction:S,setPagination:y,firstPage:pe,prevPage:we,nextPage:Ae,lastPage:fe,isRowSelected:z,clearSelection:F,isRowExpanded:w,setExpanded:E,sort:N,resetVirtualScroll:te,scrollTo:X,getCellValue:ee}),Yc(a.proxy,{filteredSortedRows:()=>R.value,computedRows:()=>q.value,computedRowsNumber:()=>ge.value}),()=>{const re=[V()],ye={ref:d,class:f.value};return e.grid===!0?re.push(Kt()):Object.assign(ye,{class:[ye.class,e.cardClass],style:e.cardStyle}),re.push(K(),pt()),e.loading===!0&&t.loading!==void 0&&re.push(t.loading()),r.h("div",ye,re)}}}),ie({name:"QTr",props:{props:Object,noHover:Boolean},setup(e,{slots:t}){const n=r.computed(()=>"q-tr"+(e.props===void 0||e.props.header===!0?"":" "+e.props.__trClass)+(e.noHover===!0?" q-tr--no-hover":""));return()=>r.h("tr",{style:e.props?.__trStyle,class:n.value},Te(t.default))}}),ie({name:"QTd",props:{props:Object,autoWidth:Boolean,noHover:Boolean},setup(e,{slots:t}){const n=r.getCurrentInstance(),a=r.computed(()=>"q-td"+(e.autoWidth===!0?" q-table--col-auto-width":"")+(e.noHover===!0?" q-td--no-hover":"")+" ");return()=>{if(e.props===void 0)return r.h("td",{class:a.value},Te(t.default));const o=n.vnode.key,l=(e.props.colsMap!==void 0?e.props.colsMap[o]:null)||e.props.col;if(l===void 0)return;const{row:i}=e.props;return r.h("td",{class:a.value+l.__tdClass(i),style:l.__tdStyle(i)},Te(t.default))}}}),ie({name:"QRouteTab",props:{...ba,...bf},emits:gf,setup(e,{slots:t,emit:n}){const a=yo({useDisableForRouterLinkProps:!1}),{renderTab:o,$tabs:l}=pf(e,t,n,{exact:r.computed(()=>e.exact),...a});return r.watch(()=>`${e.name} | ${e.exact} | ${(a.resolvedLink.value||{}).href}`,l.verifyRouteModel),()=>o(a.linkTag.value,a.linkAttrs.value)}});function HS(e,t){return e.hour!==null&&e.minute===null?"minute":"hour"}function jS(){const e=new Date;return{hour:e.getHours(),minute:e.getMinutes(),second:e.getSeconds(),millisecond:e.getMilliseconds()}}ie({name:"QTime",props:{...Ye,...nn,...jo,modelValue:{required:!0,validator:e=>typeof e=="string"||e===null},mask:{...jo.mask,default:null},format24h:{type:Boolean,default:null},defaultDate:{type:String,validator:e=>/^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(e)},options:Function,hourOptions:Array,minuteOptions:Array,secondOptions:Array,withSeconds:Boolean,nowBtn:Boolean},emits:Lf,setup(e,{slots:t,emit:n}){const a=r.getCurrentInstance(),{$q:o}=a.proxy,l=Ge(e,o),{tabindex:i,headerClass:s,getLocale:u,getCurrentDate:d}=Af(e,o),c=Sa(e),g=zn(c);let v,h;const f=r.ref(null),_=r.computed(()=>le()),p=r.computed(()=>u()),b=r.computed(()=>N()),S=Wr(e.modelValue,_.value,p.value,e.calendar,b.value),y=r.ref(HS(S)),m=r.ref(S),w=r.ref(S.hour===null||S.hour<12),E=r.computed(()=>`q-time q-time--${e.landscape===!0?"landscape":"portrait"}`+(l.value===!0?" q-time--dark q-dark":"")+(e.disable===!0?" disabled":e.readonly===!0?" q-time--readonly":"")+(e.bordered===!0?" q-time--bordered":"")+(e.square===!0?" q-time--square no-border-radius":"")+(e.flat===!0?" q-time--flat no-shadow":"")),C=r.computed(()=>{const ee=m.value;return{hour:ee.hour===null?"--":R.value===!0?Je(ee.hour):String(w.value===!0?ee.hour===0?12:ee.hour:ee.hour>12?ee.hour-12:ee.hour),minute:ee.minute===null?"--":Je(ee.minute),second:ee.second===null?"--":Je(ee.second)}}),R=r.computed(()=>e.format24h!==null?e.format24h:o.lang.date.format24h),H=r.computed(()=>{const ee=y.value==="hour",ce=ee===!0?12:60,V=m.value[y.value];let xe=`rotate(${Math.round(V*(360/ce))-180}deg) translateX(-50%)`;return ee===!0&&R.value===!0&&m.value.hour>=12&&(xe+=" scale(.7)"),{transform:xe}}),q=r.computed(()=>m.value.hour!==null),T=r.computed(()=>q.value===!0&&m.value.minute!==null),M=r.computed(()=>e.hourOptions!==void 0?ee=>e.hourOptions.includes(ee):e.options!==void 0?ee=>e.options(ee,null,null):null),O=r.computed(()=>e.minuteOptions!==void 0?ee=>e.minuteOptions.includes(ee):e.options!==void 0?ee=>e.options(m.value.hour,ee,null):null),k=r.computed(()=>e.secondOptions!==void 0?ee=>e.secondOptions.includes(ee):e.options!==void 0?ee=>e.options(m.value.hour,m.value.minute,ee):null),A=r.computed(()=>{if(M.value===null)return null;const ee=x(0,11,M.value),ce=x(12,11,M.value);return{am:ee,pm:ce,values:ee.values.concat(ce.values)}}),D=r.computed(()=>O.value!==null?x(0,59,O.value):null),z=r.computed(()=>k.value!==null?x(0,59,k.value):null),F=r.computed(()=>{switch(y.value){case"hour":return A.value;case"minute":return D.value;case"second":return z.value}}),Z=r.computed(()=>{let ee,ce,V=0,de=1;const xe=F.value!==null?F.value.values:void 0;y.value==="hour"?R.value===!0?(ee=0,ce=23):(ee=0,ce=11,w.value===!1&&(V=12)):(ee=0,ce=55,de=5);const Be=[];for(let Le=ee,Ue=ee;Le<=ce;Le+=de,Ue++){const nt=Le+V,pt=xe?.includes(nt)===!1,Ft=y.value==="hour"&&Le===0?R.value===!0?"00":"12":Le;Be.push({val:nt,index:Ue,disable:pt,label:Ft})}return Be}),he=r.computed(()=>[[rn,W,void 0,{stop:!0,prevent:!0,mouse:!0}]]);r.watch(()=>e.modelValue,ee=>{const ce=Wr(ee,_.value,p.value,e.calendar,b.value);(ce.dateHash!==m.value.dateHash||ce.timeHash!==m.value.timeHash)&&(m.value=ce,ce.hour===null?y.value="hour":w.value=ce.hour<12)}),r.watch([_,p],()=>{r.nextTick(()=>{ke()})});function $(){const ee={...d(),...jS()};ke(ee),Object.assign(m.value,ee),y.value="hour"}function x(ee,ce,V){const de=Array.apply(null,{length:ce+1}).map((xe,Be)=>{const Le=Be+ee;return{index:Le,val:V(Le)===!0}}).filter(xe=>xe.val===!0).map(xe=>xe.index);return{min:de[0],max:de[de.length-1],values:de,threshold:ce+1}}function Y(ee,ce,V){const de=Math.abs(ee-ce);return Math.min(de,V-de)}function B(ee,{min:ce,max:V,values:de,threshold:xe}){if(ee===ce)return ce;if(ee<ce||ee>V)return Y(ee,ce,xe)<=Y(ee,V,xe)?ce:V;const Be=de.findIndex(nt=>ee<=nt),Le=de[Be-1],Ue=de[Be];return ee-Le<=Ue-ee?Le:Ue}function le(){return e.calendar!=="persian"&&e.mask!==null?e.mask:`HH:mm${e.withSeconds===!0?":ss":""}`}function N(){if(typeof e.defaultDate!="string"){const ee=d(!0);return ee.dateHash=Mn(ee),ee}return Wr(e.defaultDate,"YYYY/MM/DD",void 0,e.calendar)}function U(){return $n(a)===!0||F.value!==null&&(F.value.values.length===0||y.value==="hour"&&R.value!==!0&&A.value[w.value===!0?"am":"pm"].values.length===0)}function ue(){const ee=f.value,{top:ce,left:V,width:de}=ee.getBoundingClientRect(),xe=de/2;return{top:ce+xe,left:V+xe,dist:xe*.7}}function W(ee){if(U()!==!0){if(ee.isFirst===!0){v=ue(),h=_e(ee.evt,v);return}h=_e(ee.evt,v,h),ee.isFinal===!0&&(v=!1,h=null,ve())}}function ve(){y.value==="hour"?y.value="minute":e.withSeconds&&y.value==="minute"&&(y.value="second")}function _e(ee,ce,V){const de=zt(ee),xe=Math.abs(de.top-ce.top),Be=Math.sqrt(Math.pow(Math.abs(de.top-ce.top),2)+Math.pow(Math.abs(de.left-ce.left),2));let Le,Ue=Math.asin(xe/Be)*(180/Math.PI);if(de.top<ce.top?Ue=ce.left<de.left?90-Ue:270+Ue:Ue=ce.left<de.left?Ue+90:270-Ue,y.value==="hour"){if(Le=Ue/30,A.value!==null){const nt=R.value!==!0?w.value===!0:A.value.am.values.length!==0&&A.value.pm.values.length!==0?Be>=ce.dist:A.value.am.values.length!==0;Le=B(Le+(nt===!0?0:12),A.value[nt===!0?"am":"pm"])}else Le=Math.round(Le),R.value===!0?Be<ce.dist?Le<12&&(Le+=12):Le===12&&(Le=0):w.value===!0&&Le===12?Le=0:w.value===!1&&Le!==12&&(Le+=12);R.value===!0&&(w.value=Le<12)}else Le=Math.round(Ue/6)%60,y.value==="minute"&&D.value!==null?Le=B(Le,D.value):y.value==="second"&&z.value!==null&&(Le=B(Le,z.value));return V!==Le&&se[y.value](Le),Le}const G={hour(){y.value="hour"},minute(){y.value="minute"},second(){y.value="second"}};function ge(ee){ee.keyCode===13&&me()}function pe(ee){ee.keyCode===13&&J()}function we(ee){U()!==!0&&(o.platform.is.desktop!==!0&&_e(ee,ue()),ve())}function Ae(ee){U()!==!0&&_e(ee,ue())}function fe(ee){if(ee.keyCode===13)y.value="hour";else if([37,39].includes(ee.keyCode)){const ce=ee.keyCode===37?-1:1;if(A.value!==null){const V=R.value===!0?A.value.values:A.value[w.value===!0?"am":"pm"].values;if(V.length===0)return;if(m.value.hour===null)te(V[0]);else{const de=(V.length+V.indexOf(m.value.hour)+ce)%V.length;te(V[de])}}else{const V=R.value===!0?24:12,de=R.value!==!0&&w.value===!1?12:0,xe=m.value.hour===null?-ce:m.value.hour;te(de+(24+xe+ce)%V)}}}function L(ee){if(ee.keyCode===13)y.value="minute";else if([37,39].includes(ee.keyCode)){const ce=ee.keyCode===37?-1:1;if(D.value!==null){const V=D.value.values;if(V.length===0)return;if(m.value.minute===null)K(V[0]);else{const de=(V.length+V.indexOf(m.value.minute)+ce)%V.length;K(V[de])}}else{const V=m.value.minute===null?-ce:m.value.minute;K((60+V+ce)%60)}}}function I(ee){if(ee.keyCode===13)y.value="second";else if([37,39].includes(ee.keyCode)){const ce=ee.keyCode===37?-1:1;if(z.value!==null){const V=z.value.values;if(V.length===0)return;if(m.value.seconds===null)X(V[0]);else{const de=(V.length+V.indexOf(m.value.second)+ce)%V.length;X(V[de])}}else{const V=m.value.second===null?-ce:m.value.second;X((60+V+ce)%60)}}}function te(ee){m.value.hour!==ee&&(m.value.hour=ee,be())}function K(ee){m.value.minute!==ee&&(m.value.minute=ee,be())}function X(ee){m.value.second!==ee&&(m.value.second=ee,be())}const se={hour:te,minute:K,second:X};function me(){w.value===!1&&(w.value=!0,m.value.hour!==null&&(m.value.hour-=12,be()))}function J(){w.value===!0&&(w.value=!1,m.value.hour!==null&&(m.value.hour+=12,be()))}function ae(ee){const ce=e.modelValue;y.value!==ee&&ce!==void 0&&ce!==null&&ce!==""&&typeof ce!="string"&&(y.value=ee)}function be(){if(M.value!==null&&M.value(m.value.hour)!==!0){m.value=Wr(),ae("hour");return}if(O.value!==null&&O.value(m.value.minute)!==!0){m.value.minute=null,m.value.second=null,ae("minute");return}if(e.withSeconds===!0&&k.value!==null&&k.value(m.value.second)!==!0){m.value.second=null,ae("second");return}m.value.hour===null||m.value.minute===null||e.withSeconds===!0&&m.value.second===null||ke()}function ke(ee){const ce=Object.assign({...m.value},ee),V=e.calendar==="persian"?Je(ce.hour)+":"+Je(ce.minute)+(e.withSeconds===!0?":"+Je(ce.second):""):is(new Date(ce.year,ce.month===null?null:ce.month-1,ce.day,ce.hour,ce.minute,ce.second,ce.millisecond),_.value,p.value,ce.year,ce.timezoneOffset);ce.changed=V!==e.modelValue,n("update:modelValue",V,ce)}function Qe(){const ee=[r.h("div",{class:"q-time__link "+(y.value==="hour"?"q-time__link--active":"cursor-pointer"),tabindex:i.value,onClick:G.hour,onKeyup:fe},C.value.hour),r.h("div",":"),r.h("div",q.value===!0?{class:"q-time__link "+(y.value==="minute"?"q-time__link--active":"cursor-pointer"),tabindex:i.value,onKeyup:L,onClick:G.minute}:{class:"q-time__link"},C.value.minute)];e.withSeconds===!0&&ee.push(r.h("div",":"),r.h("div",T.value===!0?{class:"q-time__link "+(y.value==="second"?"q-time__link--active":"cursor-pointer"),tabindex:i.value,onKeyup:I,onClick:G.second}:{class:"q-time__link"},C.value.second));const ce=[r.h("div",{class:"q-time__header-label row items-center no-wrap",dir:"ltr"},ee)];return R.value===!1&&ce.push(r.h("div",{class:"q-time__header-ampm column items-between no-wrap"},[r.h("div",{class:"q-time__link "+(w.value===!0?"q-time__link--active":"cursor-pointer"),tabindex:i.value,onClick:me,onKeyup:ge},"AM"),r.h("div",{class:"q-time__link "+(w.value!==!0?"q-time__link--active":"cursor-pointer"),tabindex:i.value,onClick:J,onKeyup:pe},"PM")])),r.h("div",{class:"q-time__header flex flex-center no-wrap "+s.value},ce)}function je(){const ee=m.value[y.value];return r.h("div",{class:"q-time__content col relative-position"},[r.h(r.Transition,{name:"q-transition--scale"},()=>r.h("div",{key:"clock"+y.value,class:"q-time__container-parent absolute-full"},[r.h("div",{ref:f,class:"q-time__container-child fit overflow-hidden"},[r.withDirectives(r.h("div",{class:"q-time__clock cursor-pointer non-selectable",onClick:we,onMousedown:Ae},[r.h("div",{class:"q-time__clock-circle fit"},[r.h("div",{class:"q-time__clock-pointer"+(m.value[y.value]===null?" hidden":e.color!==void 0?` text-${e.color}`:""),style:H.value}),Z.value.map(ce=>r.h("div",{class:`q-time__clock-position row flex-center q-time__clock-pos-${ce.index}`+(ce.val===ee?" q-time__clock-position--active "+s.value:ce.disable===!0?" q-time__clock-position--disable":"")},[r.h("span",ce.label)]))])]),he.value)])])),e.nowBtn===!0?r.h(Ze,{class:"q-time__now-button absolute",icon:o.iconSet.datetime.now,unelevated:!0,size:"sm",round:!0,color:e.color,textColor:e.textColor,tabindex:i.value,onClick:$}):null])}return a.proxy.setNow=$,()=>{const ee=[je()],ce=Te(t.default);return ce!==void 0&&ee.push(r.h("div",{class:"q-time__actions"},ce)),e.name!==void 0&&e.disable!==!0&&g(ee,"push"),r.h("div",{class:E.value,tabindex:-1},[Qe(),r.h("div",{class:"q-time__main col overflow-auto"},ee)])}}}),ie({name:"QTimeline",props:{...Ye,color:{type:String,default:"primary"},side:{type:String,default:"right",validator:e=>["left","right"].includes(e)},layout:{type:String,default:"dense",validator:e=>["dense","comfortable","loose"].includes(e)}},setup(e,{slots:t}){const n=r.getCurrentInstance(),a=Ge(e,n.proxy.$q);r.provide(td,e);const o=r.computed(()=>`q-timeline q-timeline--${e.layout} q-timeline--${e.layout}--${e.side}`+(a.value===!0?" q-timeline--dark":""));return()=>r.h("ul",{class:o.value},Te(t.default))}}),ie({name:"QTimelineEntry",props:{heading:Boolean,tag:{type:String,default:"h3"},side:{type:String,default:"right",validator:e=>["left","right"].includes(e)},icon:String,avatar:String,color:String,title:String,subtitle:String,body:String},setup(e,{slots:t}){const n=r.inject(td,et);if(n===et)return console.error("QTimelineEntry needs to be child of QTimeline"),et;const a=r.computed(()=>`q-timeline__entry q-timeline__entry--${e.side}`+(e.icon!==void 0||e.avatar!==void 0?" q-timeline__entry--icon":"")),o=r.computed(()=>`q-timeline__dot text-${e.color||n.color}`),l=r.computed(()=>n.layout==="comfortable"&&n.side==="left");return()=>{const i=ga(t.default,[]);if(e.body!==void 0&&i.unshift(e.body),e.heading===!0){const d=[r.h("div"),r.h("div"),r.h(e.tag,{class:"q-timeline__heading-title"},i)];return r.h("div",{class:"q-timeline__heading"},l.value===!0?d.reverse():d)}let s;e.icon!==void 0?s=[r.h(Xe,{class:"row items-center justify-center",name:e.icon})]:e.avatar!==void 0&&(s=[r.h("img",{class:"q-timeline__dot-img",src:e.avatar})]);const u=[r.h("div",{class:"q-timeline__subtitle"},[r.h("span",{},Te(t.subtitle,[e.subtitle]))]),r.h("div",{class:o.value},s),r.h("div",{class:"q-timeline__content"},[r.h("h6",{class:"q-timeline__title"},Te(t.title,[e.title]))].concat(i))];return r.h("li",{class:a.value},l.value===!0?u.reverse():u)}}}),ie({name:"QToolbar",props:{inset:Boolean},setup(e,{slots:t}){const n=r.computed(()=>"q-toolbar row no-wrap items-center"+(e.inset===!0?" q-toolbar--inset":""));return()=>r.h("div",{class:n.value,role:"toolbar"},Te(t.default))}}),ie({name:"QToolbarTitle",props:{shrink:Boolean},setup(e,{slots:t}){const n=r.computed(()=>"q-toolbar__title ellipsis"+(e.shrink===!0?" col-shrink":""));return()=>r.h("div",{class:n.value},Te(t.default))}});var US=["none","strict","leaf","leaf-filtered"];ie({name:"QTree",props:{...Ye,nodes:{type:Array,required:!0},nodeKey:{type:String,required:!0},labelKey:{type:String,default:"label"},childrenKey:{type:String,default:"children"},dense:Boolean,color:String,controlColor:String,textColor:String,selectedColor:String,icon:String,tickStrategy:{type:String,default:"none",validator:e=>US.includes(e)},ticked:Array,expanded:Array,selected:{},noSelectionUnset:Boolean,defaultExpandAll:Boolean,accordion:Boolean,filter:String,filterMethod:Function,duration:{},noConnectors:Boolean,noTransition:Boolean,noNodesLabel:String,noResultsLabel:String},emits:["update:expanded","update:ticked","update:selected","lazyLoad","afterShow","afterHide"],setup(e,{slots:t,emit:n}){const{proxy:a}=r.getCurrentInstance(),{$q:o}=a,l=Ge(e,o),i=r.ref({}),s=r.ref(e.ticked||[]),u=r.ref(e.expanded||[]);let d={};r.onBeforeUpdate(()=>{d={}});const c=r.computed(()=>`q-tree q-tree--${e.dense===!0?"dense":"standard"}`+(e.noConnectors===!0?" q-tree--no-connectors":"")+(l.value===!0?" q-tree--dark":"")+(e.color!==void 0?` text-${e.color}`:"")),g=r.computed(()=>e.selected!==void 0),v=r.computed(()=>e.icon||o.iconSet.tree.icon),h=r.computed(()=>e.controlColor||e.color),f=r.computed(()=>e.textColor!==void 0?` text-${e.textColor}`:""),_=r.computed(()=>{const x=e.selectedColor||e.color;return x?` text-${x}`:""}),p=r.computed(()=>e.filterMethod!==void 0?e.filterMethod:(x,Y)=>{const B=Y.toLowerCase();return x[e.labelKey]&&x[e.labelKey].toLowerCase().indexOf(B)!==-1}),b=r.computed(()=>{const x={},Y=(B,le)=>{const N=B.tickStrategy||(le?le.tickStrategy:e.tickStrategy),U=B[e.nodeKey],ue=B[e.childrenKey]&&Array.isArray(B[e.childrenKey])&&B[e.childrenKey].length!==0,W=B.disabled!==!0&&g.value===!0&&B.selectable!==!1,ve=B.disabled!==!0&&B.expandable!==!1,_e=N!=="none",G=N==="strict",ge=N==="leaf-filtered",pe=N==="leaf"||N==="leaf-filtered";let we=B.disabled!==!0&&B.tickable!==!1;pe===!0&&we===!0&&le&&le.tickable!==!0&&(we=!1);let Ae=B.lazy;Ae===!0&&i.value[U]!==void 0&&Array.isArray(B[e.childrenKey])===!0&&(Ae=i.value[U]);const fe={key:U,parent:le,isParent:ue,lazy:Ae,disabled:B.disabled,link:B.disabled!==!0&&(W===!0||ve===!0&&(ue===!0||Ae===!0)),children:[],matchesFilter:e.filter?p.value(B,e.filter):!0,selected:U===e.selected&&W===!0,selectable:W,expanded:ue===!0?u.value.includes(U):!1,expandable:ve,noTick:B.noTick===!0||G!==!0&&Ae&&Ae!=="loaded",tickable:we,tickStrategy:N,hasTicking:_e,strictTicking:G,leafFilteredTicking:ge,leafTicking:pe,ticked:G===!0?s.value.includes(U):ue===!0?!1:s.value.includes(U)};if(x[U]=fe,ue===!0&&(fe.children=B[e.childrenKey].map(L=>Y(L,fe)),e.filter&&(fe.matchesFilter!==!0?fe.matchesFilter=fe.children.some(L=>L.matchesFilter):fe.noTick!==!0&&fe.disabled!==!0&&fe.tickable===!0&&ge===!0&&fe.children.every(L=>L.matchesFilter!==!0||L.noTick===!0||L.tickable!==!0)===!0&&(fe.tickable=!1)),fe.matchesFilter===!0&&(fe.noTick!==!0&&G!==!0&&fe.children.every(L=>L.noTick)===!0&&(fe.noTick=!0),pe))){if(fe.ticked=!1,fe.indeterminate=fe.children.some(L=>L.indeterminate===!0),fe.tickable=fe.tickable===!0&&fe.children.some(L=>L.tickable),fe.indeterminate!==!0){const L=fe.children.reduce((I,te)=>te.ticked===!0?I+1:I,0);L===fe.children.length?fe.ticked=!0:L>0&&(fe.indeterminate=!0)}fe.indeterminate===!0&&(fe.indeterminateNextState=fe.children.every(L=>L.tickable!==!0||L.ticked!==!0))}return fe};return e.nodes.forEach(B=>Y(B,null)),x});r.watch(()=>e.ticked,x=>{s.value=x}),r.watch(()=>e.expanded,x=>{u.value=x});function S(x){const Y=[].reduce,B=(le,N)=>{if(le||!N)return le;if(Array.isArray(N)===!0)return Y.call(Object(N),B,le);if(N[e.nodeKey]===x)return N;if(N[e.childrenKey])return B(null,N[e.childrenKey])};return B(null,e.nodes)}function y(){return s.value.map(x=>S(x))}function m(){return u.value.map(x=>S(x))}function w(x){return x&&b.value[x]?b.value[x].expanded:!1}function E(){e.expanded!==void 0?n("update:expanded",[]):u.value=[]}function C(){const x=[],Y=B=>{B[e.childrenKey]&&B[e.childrenKey].length!==0&&B.expandable!==!1&&B.disabled!==!0&&(x.push(B[e.nodeKey]),B[e.childrenKey].forEach(Y))};e.nodes.forEach(Y),e.expanded!==void 0?n("update:expanded",x):u.value=x}function R(x,Y,B=S(x),le=b.value[x]){if(le.lazy&&le.lazy!=="loaded"){if(le.lazy==="loading")return;i.value[x]="loading",Array.isArray(B[e.childrenKey])!==!0&&(B[e.childrenKey]=[]),n("lazyLoad",{node:B,key:x,done:N=>{i.value[x]="loaded",B[e.childrenKey]=Array.isArray(N)===!0?N:[],r.nextTick(()=>{b.value[x]?.isParent===!0&&H(x,!0)})},fail:()=>{delete i.value[x],B[e.childrenKey].length===0&&delete B[e.childrenKey]}})}else le.isParent===!0&&le.expandable===!0&&H(x,Y)}function H(x,Y){let B=u.value;const le=e.expanded!==void 0;if(le===!0&&(B=B.slice()),Y){if(e.accordion&&b.value[x]){const N=[];b.value[x].parent?b.value[x].parent.children.forEach(U=>{U.key!==x&&U.expandable===!0&&N.push(U.key)}):e.nodes.forEach(U=>{const ue=U[e.nodeKey];ue!==x&&N.push(ue)}),N.length!==0&&(B=B.filter(U=>N.includes(U)===!1))}B=B.concat([x]).filter((N,U,ue)=>ue.indexOf(N)===U)}else B=B.filter(N=>N!==x);le===!0?n("update:expanded",B):u.value=B}function q(x){return x&&b.value[x]?b.value[x].ticked:!1}function T(x,Y){let B=s.value;const le=e.ticked!==void 0;le===!0&&(B=B.slice()),Y?B=B.concat(x).filter((N,U,ue)=>ue.indexOf(N)===U):B=B.filter(N=>x.includes(N)===!1),le===!0&&n("update:ticked",B)}function M(x,Y,B){const le={tree:a,node:x,key:B,color:e.color,dark:l.value};return xt(le,"expanded",()=>Y.expanded,N=>{N!==Y.expanded&&R(B,N)}),xt(le,"ticked",()=>Y.ticked,N=>{N!==Y.ticked&&T([B],N)}),le}function O(x){return(e.filter?x.filter(Y=>b.value[Y[e.nodeKey]].matchesFilter):x).map(Y=>z(Y))}function k(x){if(x.icon!==void 0)return r.h(Xe,{class:"q-tree__icon q-mr-sm",name:x.icon,color:x.iconColor});const Y=x.img||x.avatar;if(Y)return r.h("img",{class:`q-tree__${x.img?"img":"avatar"} q-mr-sm`,src:Y})}function A(){n("afterShow")}function D(){n("afterHide")}function z(x){const Y=x[e.nodeKey],B=b.value[Y],le=x.header&&t[`header-${x.header}`]||t["default-header"],N=B.isParent===!0?O(x[e.childrenKey]):[],U=N.length!==0||B.lazy&&B.lazy!=="loaded";let ue=x.body&&t[`body-${x.body}`]||t["default-body"];const W=le!==void 0||ue!==void 0?M(x,B,Y):null;return ue!==void 0&&(ue=r.h("div",{class:"q-tree__node-body relative-position"},[r.h("div",{class:f.value},[ue(W)])])),r.h("div",{key:Y,class:`q-tree__node relative-position q-tree__node--${U===!0?"parent":"child"}`},[r.h("div",{class:"q-tree__node-header relative-position row no-wrap items-center"+(B.link===!0?" q-tree__node--link q-hoverable q-focusable":"")+(B.selected===!0?" q-tree__node--selected":"")+(B.disabled===!0?" q-tree__node--disabled":""),tabindex:B.link===!0?0:-1,ariaExpanded:N.length>0?B.expanded:null,role:"treeitem",onClick:ve=>{Z(x,B,ve)},onKeypress(ve){rr(ve)!==!0&&(ve.keyCode===13?Z(x,B,ve,!0):ve.keyCode===32&&he(x,B,ve,!0))}},[r.h("div",{class:"q-focus-helper",tabindex:-1,ref:ve=>{d[B.key]=ve}}),B.lazy==="loading"?r.h(cn,{class:"q-tree__spinner",color:h.value}):U===!0?r.h(Xe,{class:"q-tree__arrow"+(B.expanded===!0?" q-tree__arrow--rotate":""),name:v.value,onClick(ve){he(x,B,ve)}}):null,B.hasTicking===!0&&B.noTick!==!0?r.h(ka,{class:"q-tree__tickbox",modelValue:B.indeterminate===!0?null:B.ticked,color:h.value,dark:l.value,dense:!0,keepColor:!0,disable:B.tickable!==!0,onKeydown:Fe,"onUpdate:modelValue":ve=>{$(B,ve)}}):null,r.h("div",{class:"q-tree__node-header-content col row no-wrap items-center"+(B.selected===!0?_.value:f.value)},[le?le(W):[k(x),r.h("div",x[e.labelKey])]])]),U===!0?e.noTransition===!0?B.expanded===!0?r.h("div",{class:"q-tree__node-collapsible"+f.value,key:`${Y}__q`},[ue,r.h("div",{class:"q-tree__children"+(B.disabled===!0?" q-tree__node--disabled":""),role:"group"},N)]):null:r.h(ps,{duration:e.duration,onShow:A,onHide:D},()=>r.withDirectives(r.h("div",{class:"q-tree__node-collapsible"+f.value,key:`${Y}__q`},[ue,r.h("div",{class:"q-tree__children"+(B.disabled===!0?" q-tree__node--disabled":""),role:"group"},N)]),[[r.vShow,B.expanded]])):ue])}function F(x){d[x]?.focus()}function Z(x,Y,B,le){le!==!0&&Y.selectable!==!1&&F(Y.key),g.value&&Y.selectable?e.noSelectionUnset===!1?n("update:selected",Y.key!==e.selected?Y.key:null):Y.key!==e.selected&&n("update:selected",Y.key===void 0?null:Y.key):he(x,Y,B,le),typeof x.handler=="function"&&x.handler(x)}function he(x,Y,B,le){B!==void 0&&Fe(B),le!==!0&&Y.selectable!==!1&&F(Y.key),R(Y.key,!Y.expanded,x,Y)}function $(x,Y){if(x.indeterminate===!0&&(Y=x.indeterminateNextState),x.strictTicking)T([x.key],Y);else if(x.leafTicking){const B=[],le=N=>{N.isParent?(Y!==!0&&N.noTick!==!0&&N.tickable===!0&&B.push(N.key),N.leafTicking===!0&&N.children.forEach(le)):N.noTick!==!0&&N.tickable===!0&&(N.leafFilteredTicking!==!0||N.matchesFilter===!0)&&B.push(N.key)};le(x),T(B,Y)}}return e.defaultExpandAll===!0&&C(),Object.assign(a,{getNodeByKey:S,getTickedNodes:y,getExpandedNodes:m,isExpanded:w,collapseAll:E,expandAll:C,setExpanded:R,isTicked:q,setTicked:T}),()=>{const x=O(e.nodes);return r.h("div",{class:c.value,role:"tree"},x.length===0?e.filter?e.noResultsLabel||o.lang.tree.noResults:e.noNodesLabel||o.lang.tree.noNodes:x)}}});function Uv(e){return(e*100).toFixed(2)+"%"}var QS={...Ye,...iv,label:String,color:String,textColor:String,square:Boolean,flat:Boolean,bordered:Boolean,noThumbnails:Boolean,thumbnailFit:{type:String,default:"cover"},autoUpload:Boolean,hideUploadBtn:Boolean,disable:Boolean,readonly:Boolean},Qv=[...sv,"start","finish","added","removed"];function WS(e,t){const n=r.getCurrentInstance(),{props:a,slots:o,emit:l,proxy:i}=n,{$q:s}=i,u=Ge(a,s);function d(W,ve,_e){if(W.__status=ve,ve==="idle"){W.__uploaded=0,W.__progress=0,W.__sizeLabel=hi(W.size),W.__progressLabel="0.00%";return}if(ve==="failed"){i.$forceUpdate();return}W.__uploaded=ve==="uploaded"?W.size:_e,W.__progress=ve==="uploaded"?1:Math.min(.9999,W.__uploaded/W.size),W.__progressLabel=Uv(W.__progress),i.$forceUpdate()}const c=r.computed(()=>a.disable!==!0&&a.readonly!==!0),g=r.ref(!1),v=r.ref(null),h=r.ref(null),f={files:r.ref([]),queuedFiles:r.ref([]),uploadedFiles:r.ref([]),uploadedSize:r.ref(0),updateFileStatus:d,isAlive:()=>$n(n)===!1},{pickFiles:_,addFiles:p,onDragover:b,onDragleave:S,processFiles:y,getDndNode:m,maxFilesNumber:w,maxTotalSizeNumber:E}=uv({editable:c,dnd:g,getFileInput:$,addFilesToQueue:x});Object.assign(f,e({props:a,slots:o,emit:l,helpers:f,exposeApi:W=>{Object.assign(f,W)}})),f.isBusy===void 0&&(f.isBusy=r.ref(!1));const C=r.ref(0),R=r.computed(()=>C.value===0?0:f.uploadedSize.value/C.value),H=r.computed(()=>Uv(R.value)),q=r.computed(()=>hi(C.value)),T=r.computed(()=>c.value===!0&&f.isUploading.value!==!0&&(a.multiple===!0||f.queuedFiles.value.length===0)&&(a.maxFiles===void 0||f.files.value.length<w.value)&&(a.maxTotalSize===void 0||C.value<E.value)),M=r.computed(()=>c.value===!0&&f.isBusy.value!==!0&&f.isUploading.value!==!0&&f.queuedFiles.value.length!==0);r.provide(id,le);const O=r.computed(()=>"q-uploader column no-wrap"+(u.value===!0?" q-uploader--dark q-dark":"")+(a.bordered===!0?" q-uploader--bordered":"")+(a.square===!0?" q-uploader--square no-border-radius":"")+(a.flat===!0?" q-uploader--flat no-shadow":"")+(a.disable===!0?" disabled q-uploader--disable":"")+(g.value===!0?" q-uploader--dnd":"")),k=r.computed(()=>"q-uploader__header"+(a.color!==void 0?` bg-${a.color}`:"")+(a.textColor!==void 0?` text-${a.textColor}`:""));r.watch(f.isUploading,(W,ve)=>{ve===!1&&W===!0?l("start"):ve===!0&&W===!1&&l("finish")});function A(){a.disable===!1&&(f.abort(),f.uploadedSize.value=0,C.value=0,he(),f.files.value=[],f.queuedFiles.value=[],f.uploadedFiles.value=[])}function D(){a.disable===!1&&F(["uploaded"],()=>{f.uploadedFiles.value=[]})}function z(){F(["idle","failed"],({size:W})=>{C.value-=W,f.queuedFiles.value=[]})}function F(W,ve){if(a.disable===!0)return;const _e={files:[],size:0},G=f.files.value.filter(ge=>W.indexOf(ge.__status)===-1?!0:(_e.size+=ge.size,_e.files.push(ge),ge.__img!==void 0&&window.URL.revokeObjectURL(ge.__img.src),!1));_e.files.length!==0&&(f.files.value=G,ve(_e),l("removed",_e.files))}function Z(W){a.disable||(W.__status==="uploaded"?f.uploadedFiles.value=f.uploadedFiles.value.filter(ve=>ve.__key!==W.__key):W.__status==="uploading"?W.__abort():C.value-=W.size,f.files.value=f.files.value.filter(ve=>ve.__key!==W.__key?!0:(ve.__img!==void 0&&window.URL.revokeObjectURL(ve.__img.src),!1)),f.queuedFiles.value=f.queuedFiles.value.filter(ve=>ve.__key!==W.__key),l("removed",[W]))}function he(){f.files.value.forEach(W=>{W.__img!==void 0&&window.URL.revokeObjectURL(W.__img.src)})}function $(){return h.value||v.value.getElementsByClassName("q-uploader__input")[0]}function x(W,ve){const _e=y(W,ve,f.files.value,!0),G=$();G!=null&&(G.value=""),_e!==void 0&&(_e.forEach(ge=>{if(f.updateFileStatus(ge,"idle"),C.value+=ge.size,a.noThumbnails!==!0&&ge.type.toUpperCase().startsWith("IMAGE")){const pe=new Image;pe.src=window.URL.createObjectURL(ge),ge.__img=pe}}),f.files.value=f.files.value.concat(_e),f.queuedFiles.value=f.queuedFiles.value.concat(_e),l("added",_e),a.autoUpload===!0&&f.upload())}function Y(){M.value===!0&&f.upload()}function B(W,ve,_e){if(W===!0){const G={type:"a",key:ve,icon:s.iconSet.uploader[ve],flat:!0,dense:!0};let ge;return ve==="add"?(G.onClick=_,ge=le):G.onClick=_e,r.h(Ze,G,ge)}}function le(){return r.h("input",{ref:h,class:"q-uploader__input overflow-hidden absolute-full",tabindex:-1,type:"file",title:"",accept:a.accept,multiple:a.multiple===!0?"multiple":void 0,capture:a.capture,onMousedown:ft,onClick:_,onChange:x})}function N(){return o.header!==void 0?o.header(ue):[r.h("div",{class:"q-uploader__header-content column"},[r.h("div",{class:"flex flex-center no-wrap q-gutter-xs"},[B(f.queuedFiles.value.length!==0,"removeQueue",z),B(f.uploadedFiles.value.length!==0,"removeUploaded",D),f.isUploading.value===!0?r.h(cn,{class:"q-uploader__spinner"}):null,r.h("div",{class:"col column justify-center"},[a.label!==void 0?r.h("div",{class:"q-uploader__title"},[a.label]):null,r.h("div",{class:"q-uploader__subtitle"},[q.value+" / "+H.value])]),B(T.value,"add"),B(a.hideUploadBtn===!1&&M.value===!0,"upload",f.upload),B(f.isUploading.value,"clear",f.abort)])])]}function U(){return o.list!==void 0?o.list(ue):f.files.value.map(W=>r.h("div",{key:W.__key,class:"q-uploader__file relative-position"+(a.noThumbnails!==!0&&W.__img!==void 0?" q-uploader__file--img":"")+(W.__status==="failed"?" q-uploader__file--failed":W.__status==="uploaded"?" q-uploader__file--uploaded":""),style:a.noThumbnails!==!0&&W.__img!==void 0?{backgroundImage:'url("'+W.__img.src+'")',backgroundSize:a.thumbnailFit}:null},[r.h("div",{class:"q-uploader__file-header row flex-center no-wrap"},[W.__status==="failed"?r.h(Xe,{class:"q-uploader__file-status",name:s.iconSet.type.negative,color:"negative"}):null,r.h("div",{class:"q-uploader__file-header-content col"},[r.h("div",{class:"q-uploader__title"},[W.name]),r.h("div",{class:"q-uploader__subtitle row items-center no-wrap"},[W.__sizeLabel+" / "+W.__progressLabel])]),W.__status==="uploading"?r.h(lf,{value:W.__progress,min:0,max:1,indeterminate:W.__progress===0}):r.h(Ze,{round:!0,dense:!0,flat:!0,icon:s.iconSet.uploader[W.__status==="uploaded"?"done":"clear"],onClick:()=>{Z(W)}})])]))}r.onBeforeUnmount(()=>{f.isUploading.value===!0&&f.abort(),f.files.value.length!==0&&he()});const ue={};for(const W in f)r.isRef(f[W])===!0?xt(ue,W,()=>f[W].value):ue[W]=f[W];return Object.assign(ue,{upload:Y,reset:A,removeUploadedFiles:D,removeQueuedFiles:z,removeFile:Z,pickFiles:_,addFiles:p}),Yc(ue,{canAddFiles:()=>T.value,canUpload:()=>M.value,uploadSizeLabel:()=>q.value,uploadProgressLabel:()=>H.value}),t({...f,upload:Y,reset:A,removeUploadedFiles:D,removeQueuedFiles:z,removeFile:Z,pickFiles:_,addFiles:p,canAddFiles:T,canUpload:M,uploadSizeLabel:q,uploadProgressLabel:H}),()=>{const W=[r.h("div",{class:k.value},N()),r.h("div",{class:"q-uploader__list scroll"},U()),m("uploader")];f.isBusy.value===!0&&W.push(r.h("div",{class:"q-uploader__overlay absolute-full flex flex-center"},[r.h(cn)]));const ve={ref:v,class:O.value};return T.value===!0&&Object.assign(ve,{onDragover:b,onDragleave:S}),r.h("div",ve,W)}}var KS=()=>!0;function Wv(e){const t={};return e.forEach(n=>{t[n]=KS}),t}var YS=Wv(Qv),GS=({name:e,props:t,emits:n,injectPlugin:a})=>ie({name:e,props:{...QS,...t},emits:$t(n)===!0?{...YS,...n}:[...Qv,...n],setup(o,{expose:l}){return WS(a,l)}});function An(e){return typeof e=="function"?e:()=>e}var XS="QUploader",JS={url:[Function,String],method:{type:[Function,String],default:"POST"},fieldName:{type:[Function,String],default:()=>e=>e.name},headers:[Function,Array],formFields:[Function,Array],withCredentials:[Function,Boolean],sendRaw:[Function,Boolean],batch:[Function,Boolean],factory:Function},ZS=["factoryFailed","uploaded","failed","uploading"];function VS({props:e,emit:t,helpers:n}){const a=r.ref([]),o=r.ref([]),l=r.ref(0),i=r.computed(()=>({url:An(e.url),method:An(e.method),headers:An(e.headers),formFields:An(e.formFields),fieldName:An(e.fieldName),withCredentials:An(e.withCredentials),sendRaw:An(e.sendRaw),batch:An(e.batch)})),s=r.computed(()=>l.value>0),u=r.computed(()=>o.value.length!==0);let d;function c(){a.value.forEach(f=>{f.abort()}),o.value.length!==0&&(d=!0)}function g(){const f=n.queuedFiles.value.slice(0);n.queuedFiles.value=[],i.value.batch(f)?v(f):f.forEach(_=>{v([_])})}function v(f){if(l.value++,typeof e.factory!="function"){h(f,{});return}const _=e.factory(f);if(!_)t("factoryFailed",new Error("QUploader: factory() does not return properly"),f),l.value--;else if(typeof _.catch=="function"&&typeof _.then=="function"){o.value.push(_);const p=b=>{n.isAlive()===!0&&(o.value=o.value.filter(S=>S!==_),o.value.length===0&&(d=!1),n.queuedFiles.value=n.queuedFiles.value.concat(f),f.forEach(S=>{n.updateFileStatus(S,"failed")}),t("factoryFailed",b,f),l.value--)};_.then(b=>{d===!0?p(new Error("Aborted")):n.isAlive()===!0&&(o.value=o.value.filter(S=>S!==_),h(f,b))}).catch(p)}else h(f,_||{})}function h(f,_){const p=new FormData,b=new XMLHttpRequest,S=(M,O)=>_[M]!==void 0?An(_[M])(O):i.value[M](O),y=S("url",f);if(!y){console.error("q-uploader: invalid or no URL specified"),l.value--;return}const m=S("formFields",f);m!==void 0&&m.forEach(M=>{p.append(M.name,M.value)});let w=0,E=0,C=0,R=0,H;b.upload.addEventListener("progress",M=>{if(H===!0)return;const O=Math.min(R,M.loaded);n.uploadedSize.value+=O-C,C=O;let k=C-E;for(let A=w;k>0&&A<f.length;A++){const D=f[A];if(k>D.size)k-=D.size,w++,E+=D.size,n.updateFileStatus(D,"uploading",D.size);else{n.updateFileStatus(D,"uploading",k);return}}},!1),b.onreadystatechange=()=>{b.readyState<4||(b.status&&b.status<400?(n.uploadedFiles.value=n.uploadedFiles.value.concat(f),f.forEach(M=>{n.updateFileStatus(M,"uploaded")}),t("uploaded",{files:f,xhr:b})):(H=!0,n.uploadedSize.value-=C,n.queuedFiles.value=n.queuedFiles.value.concat(f),f.forEach(M=>{n.updateFileStatus(M,"failed")}),t("failed",{files:f,xhr:b})),l.value--,a.value=a.value.filter(M=>M!==b))},b.open(S("method",f),y),S("withCredentials",f)===!0&&(b.withCredentials=!0);const q=S("headers",f);q!==void 0&&q.forEach(M=>{b.setRequestHeader(M.name,M.value)});const T=S("sendRaw",f);f.forEach(M=>{n.updateFileStatus(M,"uploading",0),T!==!0&&p.append(S("fieldName",M),M,M.name),M.xhr=b,M.__abort=()=>{b.abort()},R+=M.size}),t("uploading",{files:f,xhr:b}),a.value.push(b),T===!0?b.send(new Blob(f)):b.send(p)}return{isUploading:s,isBusy:u,abort:c,upload:g}}var ew={name:XS,props:JS,emits:ZS,injectPlugin:VS};GS(ew),ie({name:"QUploaderAddTrigger",setup(){const e=r.inject(id,et);return e===et&&console.error("QUploaderAddTrigger needs to be child of QUploader"),e}}),ie({name:"QVideo",props:{...Ss,src:{type:String,required:!0},title:String,fetchpriority:{type:String,default:"auto"},loading:{type:String,default:"eager"},referrerpolicy:{type:String,default:"strict-origin-when-cross-origin"}},setup(e){const t=ws(e),n=r.computed(()=>"q-video"+(e.ratio!==void 0?" q-video--responsive":""));return()=>r.h("div",{class:n.value,style:t.value},[r.h("iframe",{src:e.src,title:e.title,fetchpriority:e.fetchpriority,loading:e.loading,referrerpolicy:e.referrerpolicy,frameborder:"0",allowfullscreen:!0})])}});function Kv(e){if(e===!1)return 0;if(e===!0||e===void 0)return 1;const t=parseInt(e,10);return isNaN(t)?0:t}sn({name:"close-popup",beforeMount(e,{value:t}){const n={depth:Kv(t),handler(a){n.depth!==0&&setTimeout(()=>{const o=$0(e);o!==void 0&&B0(o,a,n.depth)})},handlerKey(a){Vt(a,13)===!0&&n.handler(a)}};e.__qclosepopup=n,e.addEventListener("click",n.handler),e.addEventListener("keyup",n.handlerKey)},updated(e,{value:t,oldValue:n}){t!==n&&(e.__qclosepopup.depth=Kv(t))},beforeUnmount(e){const t=e.__qclosepopup;e.removeEventListener("click",t.handler),e.removeEventListener("keyup",t.handlerKey),delete e.__qclosepopup}});var tw=0,La=void 0;function Yv(e,t){La===void 0&&(La=document.createElement("div"),La.style.cssText="position: absolute; left: 0; top: 0",document.body.appendChild(La));const n=e.getBoundingClientRect(),a=La.getBoundingClientRect(),{marginLeft:o,marginRight:l,marginTop:i,marginBottom:s}=window.getComputedStyle(e),u=parseInt(o,10)+parseInt(l,10),d=parseInt(i,10)+parseInt(s,10);return{left:n.left-a.left,top:n.top-a.top,width:n.right-n.left,height:n.bottom-n.top,widthM:n.right-n.left+(t===!0?0:u),heightM:n.bottom-n.top+(t===!0?0:d),marginH:t===!0?u:0,marginV:t===!0?d:0}}function ol(e){return{width:e.scrollWidth,height:e.scrollHeight}}var Gv=["Top","Right","Bottom","Left"],Xv=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],nw=/-block|-inline|block-|inline-/,rw=/(-block|-inline|block-|inline-).*:/;function Jv(e,t){const n=window.getComputedStyle(e),a={};for(let o=0;o<t.length;o++){const l=t[o];if(n[l]==="")if(l==="cssText"){const i=n.length;let s="";for(let u=0;u<i;u++)nw.test(n[u])!==!0&&(s+=n[u]+": "+n[n[u]]+"; ");a[l]=s}else if(["borderWidth","borderStyle","borderColor"].indexOf(l)!==-1){const i=l.replace("border","");let s="";for(let u=0;u<Gv.length;u++){const d="border"+Gv[u]+i;s+=n[d]+" "}a[l]=s}else if(l==="borderRadius"){let i="",s="";for(let u=0;u<Xv.length;u++){const d=n[Xv[u]].split(" ");i+=d[0]+" ",s+=(d[1]===void 0?d[0]:d[1])+" "}a[l]=i+"/ "+s}else a[l]=n[l];else l==="cssText"?a[l]=n[l].split(";").filter(i=>rw.test(i)!==!0).join(";"):a[l]=n[l]}return a}var aw=["absolute","fixed","relative","sticky"];function Zv(e){let t=e,n=0;for(;t!==null&&t!==document;){const{position:a,zIndex:o}=window.getComputedStyle(t),l=Number(o);l>n&&(t===e||aw.includes(a)===!0)&&(n=l),t=t.parentNode}return n}function ow(e){return{from:e.from,to:e.to!==void 0?e.to:e.from}}function lw(e){return typeof e=="number"?e={duration:e}:typeof e=="function"&&(e={onEnd:e}),{...e,waitFor:e.waitFor===void 0?0:e.waitFor,duration:isNaN(e.duration)===!0?300:parseInt(e.duration,10),easing:typeof e.easing=="string"&&e.easing.length!==0?e.easing:"ease-in-out",delay:isNaN(e.delay)===!0?0:parseInt(e.delay,10),fill:typeof e.fill=="string"&&e.fill.length!==0?e.fill:"none",resize:e.resize===!0,useCSS:e.useCSS===!0||e.usecss===!0,hideFromClone:e.hideFromClone===!0||e.hidefromclone===!0,keepToClone:e.keepToClone===!0||e.keeptoclone===!0,tween:e.tween===!0,tweenFromOpacity:isNaN(e.tweenFromOpacity)===!0?.6:parseFloat(e.tweenFromOpacity),tweenToOpacity:isNaN(e.tweenToOpacity)===!0?.5:parseFloat(e.tweenToOpacity)}}function Vv(e){const t=typeof e;return t==="function"?e():t==="string"?document.querySelector(e):e}function em(e){return e&&e.ownerDocument===document&&e.parentNode!==null}function iw(e){let t=()=>!1,n=!1,a=!0;const o=ow(e),l=lw(e),i=Vv(o.from);if(em(i)!==!0)return t;typeof i.qMorphCancel=="function"&&i.qMorphCancel();let s,u,d,c;const g=i.parentNode,v=i.nextElementSibling,h=Yv(i,l.resize),{width:f,height:_}=ol(g),{borderWidth:p,borderStyle:b,borderColor:S,borderRadius:y,backgroundColor:m,transform:w,position:E,cssText:C}=Jv(i,["borderWidth","borderStyle","borderColor","borderRadius","backgroundColor","transform","position","cssText"]),R=i.classList.toString(),H=i.style.cssText,q=i.cloneNode(!0),T=l.tween===!0?i.cloneNode(!0):void 0;T!==void 0&&(T.className=T.classList.toString().split(" ").filter(O=>/^bg-/.test(O)===!1).join(" ")),l.hideFromClone===!0&&q.classList.add("q-morph--internal"),q.setAttribute("aria-hidden","true"),q.style.transition="none",q.style.animation="none",q.style.pointerEvents="none",g.insertBefore(q,v),i.qMorphCancel=()=>{n=!0,q.remove(),T?.remove(),l.hideFromClone===!0&&q.classList.remove("q-morph--internal"),i.qMorphCancel=void 0};const M=()=>{const O=Vv(o.to);if(n===!0||em(O)!==!0){typeof i.qMorphCancel=="function"&&i.qMorphCancel();return}i!==O&&typeof O.qMorphCancel=="function"&&O.qMorphCancel(),l.keepToClone!==!0&&O.classList.add("q-morph--internal"),q.classList.add("q-morph--internal");const{width:k,height:A}=ol(g),{width:D,height:z}=ol(O.parentNode);l.hideFromClone!==!0&&q.classList.remove("q-morph--internal"),O.qMorphCancel=()=>{n=!0,q.remove(),T?.remove(),l.hideFromClone===!0&&q.classList.remove("q-morph--internal"),l.keepToClone!==!0&&O.classList.remove("q-morph--internal"),i.qMorphCancel=void 0,O.qMorphCancel=void 0};const F=()=>{if(n===!0){typeof O.qMorphCancel=="function"&&O.qMorphCancel();return}l.hideFromClone!==!0&&(q.classList.add("q-morph--internal"),q.innerHTML="",q.style.left=0,q.style.right="unset",q.style.top=0,q.style.bottom="unset",q.style.transform="none"),l.keepToClone!==!0&&O.classList.remove("q-morph--internal");const Z=O.parentNode,{width:he,height:$}=ol(Z),x=O.cloneNode(l.keepToClone);x.setAttribute("aria-hidden","true"),l.keepToClone!==!0&&(x.style.left=0,x.style.right="unset",x.style.top=0,x.style.bottom="unset",x.style.transform="none",x.style.pointerEvents="none"),x.classList.add("q-morph--internal");const Y=O===i&&g===Z?q:O.nextElementSibling;Z.insertBefore(x,Y);const{borderWidth:B,borderStyle:le,borderColor:N,borderRadius:U,backgroundColor:ue,transform:W,position:ve,cssText:_e}=Jv(O,["borderWidth","borderStyle","borderColor","borderRadius","backgroundColor","transform","position","cssText"]),G=O.classList.toString(),ge=O.style.cssText;O.style.cssText=_e,O.style.transform="none",O.style.animation="none",O.style.transition="none",O.className=G.split(" ").filter(de=>/^bg-/.test(de)===!1).join(" ");const pe=Yv(O,l.resize),we=h.left-pe.left,Ae=h.top-pe.top,fe=h.width/(pe.width>0?pe.width:10),L=h.height/(pe.height>0?pe.height:100),I=f-k,te=_-A,K=he-D,X=$-z,se=Math.max(h.widthM,I),me=Math.max(h.heightM,te),J=Math.max(pe.widthM,K),ae=Math.max(pe.heightM,X),be=i===O&&["absolute","fixed"].includes(ve)===!1&&["absolute","fixed"].includes(E)===!1;let ke=ve==="fixed",Qe=Z;for(;ke!==!0&&Qe!==document;)ke=window.getComputedStyle(Qe).position==="fixed",Qe=Qe.parentNode;if(l.hideFromClone!==!0&&(q.style.display="block",q.style.flex="0 0 auto",q.style.opacity=0,q.style.minWidth="unset",q.style.maxWidth="unset",q.style.minHeight="unset",q.style.maxHeight="unset",q.classList.remove("q-morph--internal")),l.keepToClone!==!0&&(x.style.display="block",x.style.flex="0 0 auto",x.style.opacity=0,x.style.minWidth="unset",x.style.maxWidth="unset",x.style.minHeight="unset",x.style.maxHeight="unset"),x.classList.remove("q-morph--internal"),typeof l.classes=="string"&&(O.className+=" "+l.classes),typeof l.style=="string")O.style.cssText+=" "+l.style;else if($t(l.style)===!0)for(const de in l.style)O.style[de]=l.style[de];const je=Zv(q),ee=Zv(O),ce=ke===!0?document.documentElement:{scrollLeft:0,scrollTop:0};O.style.position=ke===!0?"fixed":"absolute",O.style.left=`${pe.left-ce.scrollLeft}px`,O.style.right="unset",O.style.top=`${pe.top-ce.scrollTop}px`,O.style.margin=0,l.resize===!0&&(O.style.minWidth="unset",O.style.maxWidth="unset",O.style.minHeight="unset",O.style.maxHeight="unset",O.style.overflow="hidden",O.style.overflowX="hidden",O.style.overflowY="hidden"),document.body.appendChild(O),T!==void 0&&(T.style.cssText=C,T.style.transform="none",T.style.animation="none",T.style.transition="none",T.style.position=O.style.position,T.style.left=`${h.left-ce.scrollLeft}px`,T.style.right="unset",T.style.top=`${h.top-ce.scrollTop}px`,T.style.margin=0,T.style.pointerEvents="none",l.resize===!0&&(T.style.minWidth="unset",T.style.maxWidth="unset",T.style.minHeight="unset",T.style.maxHeight="unset",T.style.overflow="hidden",T.style.overflowX="hidden",T.style.overflowY="hidden"),document.body.appendChild(T));const V=de=>{i===O&&a!==!0?(O.style.cssText=H,O.className=R):(O.style.cssText=ge,O.className=G),x.parentNode===Z&&Z.insertBefore(O,x),q.remove(),x.remove(),T?.remove(),t=()=>!1,i.qMorphCancel=void 0,O.qMorphCancel=void 0,typeof l.onEnd=="function"&&l.onEnd(a===!0?"to":"from",de===!0)};if(l.useCSS!==!0&&typeof O.animate=="function"){const de=l.resize===!0?{transform:`translate(${we}px, ${Ae}px)`,width:`${se}px`,height:`${me}px`}:{transform:`translate(${we}px, ${Ae}px) scale(${fe}, ${L})`},xe=l.resize===!0?{width:`${J}px`,height:`${ae}px`}:{},Be=l.resize===!0?{width:`${se}px`,height:`${me}px`}:{},Le=l.resize===!0?{transform:`translate(${-1*we}px, ${-1*Ae}px)`,width:`${J}px`,height:`${ae}px`}:{transform:`translate(${-1*we}px, ${-1*Ae}px) scale(${1/fe}, ${1/L})`},Ue=T!==void 0?{opacity:l.tweenToOpacity}:{backgroundColor:m},nt=T!==void 0?{opacity:1}:{backgroundColor:ue};c=O.animate([{margin:0,borderWidth:p,borderStyle:b,borderColor:S,borderRadius:y,zIndex:je,transformOrigin:"0 0",...de,...Ue},{margin:0,borderWidth:B,borderStyle:le,borderColor:N,borderRadius:U,zIndex:ee,transformOrigin:"0 0",transform:W,...xe,...nt}],{duration:l.duration,easing:l.easing,fill:l.fill,delay:l.delay}),u=T===void 0?void 0:T.animate([{opacity:l.tweenFromOpacity,margin:0,borderWidth:p,borderStyle:b,borderColor:S,borderRadius:y,zIndex:je,transformOrigin:"0 0",transform:w,...Be},{opacity:0,margin:0,borderWidth:B,borderStyle:le,borderColor:N,borderRadius:U,zIndex:ee,transformOrigin:"0 0",...Le}],{duration:l.duration,easing:l.easing,fill:l.fill,delay:l.delay}),s=l.hideFromClone===!0||be===!0?void 0:q.animate([{margin:`${te<0?te/2:0}px ${I<0?I/2:0}px`,width:`${se+h.marginH}px`,height:`${me+h.marginV}px`},{margin:0,width:0,height:0}],{duration:l.duration,easing:l.easing,fill:l.fill,delay:l.delay}),d=l.keepToClone===!0?void 0:x.animate([be===!0?{margin:`${te<0?te/2:0}px ${I<0?I/2:0}px`,width:`${se+h.marginH}px`,height:`${me+h.marginV}px`}:{margin:0,width:0,height:0},{margin:`${X<0?X/2:0}px ${K<0?K/2:0}px`,width:`${J+pe.marginH}px`,height:`${ae+pe.marginV}px`}],{duration:l.duration,easing:l.easing,fill:l.fill,delay:l.delay});const pt=Ft=>{s?.cancel(),u?.cancel(),d?.cancel(),c.cancel(),c.removeEventListener("finish",pt),c.removeEventListener("cancel",pt),V(Ft),s=void 0,u=void 0,d=void 0,c=void 0};i.qMorphCancel=()=>{i.qMorphCancel=void 0,n=!0,pt()},O.qMorphCancel=()=>{O.qMorphCancel=void 0,n=!0,pt()},c.addEventListener("finish",pt),c.addEventListener("cancel",pt),t=Ft=>n===!0||c===void 0?!1:Ft===!0?(pt(!0),!0):(a=a!==!0,s?.reverse(),u?.reverse(),d?.reverse(),c.reverse(),!0)}else{const de=`q-morph-anim-${++tw}`,xe=document.createElement("style"),Be=l.resize===!0?`
28
+ transform: translate(${we}px, ${Ae}px);
29
+ width: ${se}px;
30
+ height: ${me}px;
31
+ `:`transform: translate(${we}px, ${Ae}px) scale(${fe}, ${L});`,Le=l.resize===!0?`
32
+ width: ${J}px;
33
+ height: ${ae}px;
34
+ `:"",Ue=l.resize===!0?`
35
+ width: ${se}px;
36
+ height: ${me}px;
37
+ `:"",nt=l.resize===!0?`
38
+ transform: translate(${-1*we}px, ${-1*Ae}px);
39
+ width: ${J}px;
40
+ height: ${ae}px;
41
+ `:`transform: translate(${-1*we}px, ${-1*Ae}px) scale(${1/fe}, ${1/L});`,pt=T!==void 0?`opacity: ${l.tweenToOpacity};`:`background-color: ${m};`,Ft=T!==void 0?"opacity: 1;":`background-color: ${ue};`,Wn=T===void 0?"":`
42
+ @keyframes ${de}-from-tween {
43
+ 0% {
44
+ opacity: ${l.tweenFromOpacity};
45
+ margin: 0;
46
+ border-width: ${p};
47
+ border-style: ${b};
48
+ border-color: ${S};
49
+ border-radius: ${y};
50
+ z-index: ${je};
51
+ transform-origin: 0 0;
52
+ transform: ${w};
53
+ ${Ue}
54
+ }
55
+
56
+ 100% {
57
+ opacity: 0;
58
+ margin: 0;
59
+ border-width: ${B};
60
+ border-style: ${le};
61
+ border-color: ${N};
62
+ border-radius: ${U};
63
+ z-index: ${ee};
64
+ transform-origin: 0 0;
65
+ ${nt}
66
+ }
67
+ }
68
+ `,Kt=l.hideFromClone===!0||be===!0?"":`
69
+ @keyframes ${de}-from {
70
+ 0% {
71
+ margin: ${te<0?te/2:0}px ${I<0?I/2:0}px;
72
+ width: ${se+h.marginH}px;
73
+ height: ${me+h.marginV}px;
74
+ }
75
+
76
+ 100% {
77
+ margin: 0;
78
+ width: 0;
79
+ height: 0;
80
+ }
81
+ }
82
+ `,Pn=be===!0?`
83
+ margin: ${te<0?te/2:0}px ${I<0?I/2:0}px;
84
+ width: ${se+h.marginH}px;
85
+ height: ${me+h.marginV}px;
86
+ `:`
87
+ margin: 0;
88
+ width: 0;
89
+ height: 0;
90
+ `,re=l.keepToClone===!0?"":`
91
+ @keyframes ${de}-to {
92
+ 0% {
93
+ ${Pn}
94
+ }
95
+
96
+ 100% {
97
+ margin: ${X<0?X/2:0}px ${K<0?K/2:0}px;
98
+ width: ${J+pe.marginH}px;
99
+ height: ${ae+pe.marginV}px;
100
+ }
101
+ }
102
+ `;xe.innerHTML=`
103
+ @keyframes ${de} {
104
+ 0% {
105
+ margin: 0;
106
+ border-width: ${p};
107
+ border-style: ${b};
108
+ border-color: ${S};
109
+ border-radius: ${y};
110
+ background-color: ${m};
111
+ z-index: ${je};
112
+ transform-origin: 0 0;
113
+ ${Be}
114
+ ${pt}
115
+ }
116
+
117
+ 100% {
118
+ margin: 0;
119
+ border-width: ${B};
120
+ border-style: ${le};
121
+ border-color: ${N};
122
+ border-radius: ${U};
123
+ background-color: ${ue};
124
+ z-index: ${ee};
125
+ transform-origin: 0 0;
126
+ transform: ${W};
127
+ ${Le}
128
+ ${Ft}
129
+ }
130
+ }
131
+
132
+ ${Kt}
133
+
134
+ ${Wn}
135
+
136
+ ${re}
137
+ `,document.head.appendChild(xe);let ye="normal";q.style.animation=`${l.duration}ms ${l.easing} ${l.delay}ms ${ye} ${l.fill} ${de}-from`,T!==void 0&&(T.style.animation=`${l.duration}ms ${l.easing} ${l.delay}ms ${ye} ${l.fill} ${de}-from-tween`),x.style.animation=`${l.duration}ms ${l.easing} ${l.delay}ms ${ye} ${l.fill} ${de}-to`,O.style.animation=`${l.duration}ms ${l.easing} ${l.delay}ms ${ye} ${l.fill} ${de}`;const Pe=Re=>{Re===Object(Re)&&Re.animationName!==de||(O.removeEventListener("animationend",Pe),O.removeEventListener("animationcancel",Pe),V(),xe.remove())};i.qMorphCancel=()=>{i.qMorphCancel=void 0,n=!0,Pe()},O.qMorphCancel=()=>{O.qMorphCancel=void 0,n=!0,Pe()},O.addEventListener("animationend",Pe),O.addEventListener("animationcancel",Pe),t=Re=>n===!0||!O||!q||!x?!1:Re===!0?(Pe(),!0):(a=a!==!0,ye=ye==="normal"?"reverse":"normal",q.style.animationDirection=ye,T.style.animationDirection=ye,x.style.animationDirection=ye,O.style.animationDirection=ye,!0)}};l.waitFor>0||l.waitFor==="transitionend"||l.waitFor===Object(l.waitFor)&&typeof l.waitFor.then=="function"?(l.waitFor>0?new Promise(he=>setTimeout(he,l.waitFor)):l.waitFor==="transitionend"?new Promise(he=>{const $=()=>{x!==null&&(clearTimeout(x),x=null),O&&(O.removeEventListener("transitionend",$),O.removeEventListener("transitioncancel",$)),he()};let x=setTimeout($,400);O.addEventListener("transitionend",$),O.addEventListener("transitioncancel",$)}):l.waitFor).then(F).catch(()=>{typeof O.qMorphCancel=="function"&&O.qMorphCancel()}):F()};return typeof e.onToggle=="function"&&e.onToggle(),requestAnimationFrame(M),O=>t(O)}var ll={},sw=["duration","delay","easing","fill","classes","style","duration","resize","useCSS","hideFromClone","keepToClone","tween","tweenFromOpacity","tweenToOpacity","waitFor","onEnd"],uw=["resize","useCSS","hideFromClone","keepToClone","tween"];function Zr(e,t){e.clsAction!==t&&(e.clsAction=t,e.el.classList[t]("q-morph--invisible"))}function tm(e){if(e.animating===!0||e.queue.length<2)return;const[t,n]=e.queue;e.animating=!0,t.animating=!0,n.animating=!0,Zr(t,"remove"),Zr(n,"remove");const a=iw({from:t.el,to:n.el,onToggle(){Zr(t,"add"),Zr(n,"remove")},...n.opts,onEnd(o,l){n.opts.onEnd?.(o,l),l!==!0&&(t.animating=!1,n.animating=!1,e.animating=!1,e.cancel=void 0,e.queue.shift(),tm(e))}});e.cancel=()=>{a(!0),e.cancel=void 0}}function nm(e,t){const n=t.opts;uw.forEach(a=>{n[a]=e[a]===!0})}function cw(e,t){const n=typeof e=="string"&&e.length!==0?e.split(":"):[];t.name=n[0],t.group=n[1],Object.assign(t.opts,{duration:isNaN(n[2])===!0?300:parseFloat(n[2]),waitFor:n[3]})}function dw(e,t){e.group!==void 0&&(t.group=e.group),e.name!==void 0&&(t.name=e.name);const n=t.opts;sw.forEach(a=>{e[a]!==void 0&&(n[a]=e[a])})}function fw(e,t){if(t.name===e){const n=ll[t.group];n===void 0?(ll[t.group]={name:t.group,model:e,queue:[t],animating:!1},Zr(t,"remove")):n.model!==e&&(n.model=e,n.queue.push(t),n.animating===!1&&n.queue.length===2&&tm(n));return}t.animating===!1&&Zr(t,"add")}function rm(e,t){let n;Object(t)===t?(n=""+t.model,dw(t,e),nm(t,e)):n=""+t,n!==e.model?(e.model=n,fw(n,e)):e.animating===!1&&e.clsAction!==void 0&&e.el.classList[e.clsAction]("q-morph--invisible")}sn({name:"morph",mounted(e,t){const n={el:e,animating:!1,opts:{}};nm(t.modifiers,n),cw(t.arg,n),rm(n,t.value),e.__qmorph=n},updated(e,t){rm(e.__qmorph,t.value)},beforeUnmount(e){const t=e.__qmorph,n=ll[t.group];n!==void 0&&n.queue.indexOf(t)!==-1&&(n.queue=n.queue.filter(o=>o!==t),n.queue.length===0&&(n.cancel?.(),delete ll[t.group])),t.clsAction==="add"&&e.classList.remove("q-morph--invisible"),delete e.__qmorph}});var vw={childList:!0,subtree:!0,attributes:!0,characterData:!0,attributeOldValue:!0,characterDataOldValue:!0};function am(e,t,n){t.handler=n,t.observer?.disconnect(),t.observer=new MutationObserver(a=>{typeof t.handler=="function"&&(t.handler(a)===!1||t.once===!0)&&om(e)}),t.observer.observe(e,t.opts)}function om(e){const t=e.__qmutation;t!==void 0&&(t.observer?.disconnect(),delete e.__qmutation)}sn({name:"mutation",mounted(e,{modifiers:{once:t,...n},value:a}){const o={once:t,opts:Object.keys(n).length===0?vw:n};am(e,o,a),e.__qmutation=o},updated(e,{oldValue:t,value:n}){const a=e.__qmutation;a!==void 0&&t!==n&&am(e,a,n)},beforeUnmount:om});var{passive:il}=lt;function lm(e,{value:t,oldValue:n}){if(typeof t!="function"){e.scrollTarget.removeEventListener("scroll",e.scroll,il);return}e.handler=t,typeof n!="function"&&(e.scrollTarget.addEventListener("scroll",e.scroll,il),e.scroll())}sn({name:"scroll-fire",mounted(e,t){const n={scrollTarget:pn(e),scroll:Lr(()=>{let a,o;n.scrollTarget===window?(o=e.getBoundingClientRect().bottom,a=window.innerHeight):(o=_o(e).top+Ar(e),a=_o(n.scrollTarget).top+Ar(n.scrollTarget)),o>0&&o<a&&(n.scrollTarget.removeEventListener("scroll",n.scroll,il),n.handler(e))},25)};lm(n,t),e.__qscrollfire=n},updated(e,t){t.value!==t.oldValue&&lm(e.__qscrollfire,t)},beforeUnmount(e){const t=e.__qscrollfire;t.scrollTarget.removeEventListener("scroll",t.scroll,il),t.scroll.cancel(),delete e.__qscrollfire}});function im(e,{value:t,oldValue:n}){if(typeof t!="function"){e.scrollTarget.removeEventListener("scroll",e.scroll,lt.passive);return}e.handler=t,typeof n!="function"&&e.scrollTarget.addEventListener("scroll",e.scroll,lt.passive)}sn({name:"scroll",mounted(e,t){const n={scrollTarget:pn(e),scroll(){n.handler(Fn(n.scrollTarget),xo(n.scrollTarget))}};im(n,t),e.__qscroll=n},updated(e,t){e.__qscroll!==void 0&&t.oldValue!==t.value&&im(e.__qscroll,t)},beforeUnmount(e){const t=e.__qscroll;t.scrollTarget.removeEventListener("scroll",t.scroll,lt.passive),delete e.__qscroll}}),sn({name:"touch-hold",beforeMount(e,t){const{modifiers:n}=t;if(n.mouse!==!0&&He.has.touch!==!0)return;const a={handler:t.value,noop:wt,mouseStart(l){typeof a.handler=="function"&&ho(l)===!0&&(mt(a,"temp",[[document,"mousemove","move","passiveCapture"],[document,"click","end","notPassiveCapture"]]),a.start(l,!0))},touchStart(l){if(l.target!==void 0&&typeof a.handler=="function"){const i=l.target;mt(a,"temp",[[i,"touchmove","move","passiveCapture"],[i,"touchcancel","end","notPassiveCapture"],[i,"touchend","end","notPassiveCapture"]]),a.start(l)}},start(l,i){a.origin=zt(l);const s=Date.now();He.is.mobile===!0&&(document.body.classList.add("non-selectable"),dn(),a.styleCleanup=u=>{a.styleCleanup=void 0;const d=()=>{document.body.classList.remove("non-selectable")};u===!0?(dn(),setTimeout(d,10)):d()}),a.triggered=!1,a.sensitivity=i===!0?a.mouseSensitivity:a.touchSensitivity,a.timer=setTimeout(()=>{a.timer=void 0,dn(),a.triggered=!0,a.handler({evt:l,touch:i!==!0,mouse:i===!0,position:a.origin,duration:Date.now()-s})},a.duration)},move(l){const{top:i,left:s}=zt(l);a.timer!==void 0&&(Math.abs(s-a.origin.left)>=a.sensitivity||Math.abs(i-a.origin.top)>=a.sensitivity)&&(clearTimeout(a.timer),a.timer=void 0)},end(l){Dt(a,"temp"),a.styleCleanup?.(a.triggered),a.triggered===!0?l!==void 0&&Fe(l):a.timer!==void 0&&(clearTimeout(a.timer),a.timer=void 0)}},o=[600,5,7];if(typeof t.arg=="string"&&t.arg.length!==0&&t.arg.split(":").forEach((l,i)=>{const s=parseInt(l,10);s&&(o[i]=s)}),[a.duration,a.touchSensitivity,a.mouseSensitivity]=o,e.__qtouchhold=a,n.mouse===!0){const l=n.mouseCapture===!0||n.mousecapture===!0?"Capture":"";mt(a,"main",[[e,"mousedown","mouseStart",`passive${l}`]])}He.has.touch===!0&&mt(a,"main",[[e,"touchstart","touchStart",`passive${n.capture===!0?"Capture":""}`],[e,"touchend","noop","notPassiveCapture"]])},updated(e,t){const n=e.__qtouchhold;n!==void 0&&t.oldValue!==t.value&&(typeof t.value!="function"&&n.end(),n.handler=t.value)},beforeUnmount(e){const t=e.__qtouchhold;t!==void 0&&(Dt(t,"main"),Dt(t,"temp"),t.timer!==void 0&&clearTimeout(t.timer),t.styleCleanup?.(),delete e.__qtouchhold)}});var sm={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},mw=new RegExp(`^([\\d+]+|${Object.keys(sm).join("|")})$`,"i");function hw(e,t){const{top:n,left:a}=zt(e);return Math.abs(a-t.left)>=7||Math.abs(n-t.top)>=7}sn({name:"touch-repeat",beforeMount(e,{modifiers:t,value:n,arg:a}){const o=Object.keys(t).reduce((u,d)=>{if(mw.test(d)===!0){const c=isNaN(parseInt(d,10))?sm[d.toLowerCase()]:parseInt(d,10);c>=0&&u.push(c)}return u},[]);if(t.mouse!==!0&&He.has.touch!==!0&&o.length===0)return;const l=typeof a=="string"&&a.length!==0?a.split(":").map(u=>parseInt(u,10)):[0,600,300],i=l.length-1,s={keyboard:o,handler:n,noop:wt,mouseStart(u){s.event===void 0&&typeof s.handler=="function"&&ho(u)===!0&&(mt(s,"temp",[[document,"mousemove","move","passiveCapture"],[document,"click","end","notPassiveCapture"]]),s.start(u,!0))},keyboardStart(u){if(typeof s.handler=="function"&&Vt(u,o)===!0){if((l[0]===0||s.event!==void 0)&&(Fe(u),e.focus(),s.event!==void 0))return;mt(s,"temp",[[document,"keyup","end","notPassiveCapture"],[document,"click","end","notPassiveCapture"]]),s.start(u,!1,!0)}},touchStart(u){if(u.target!==void 0&&typeof s.handler=="function"){const d=u.target;mt(s,"temp",[[d,"touchmove","move","passiveCapture"],[d,"touchcancel","end","notPassiveCapture"],[d,"touchend","end","notPassiveCapture"]]),s.start(u)}},start(u,d,c){c!==!0&&(s.origin=zt(u));function g(h){s.styleCleanup=void 0,document.documentElement.style.cursor="";const f=()=>{document.body.classList.remove("non-selectable")};h===!0?(dn(),setTimeout(f,10)):f()}He.is.mobile===!0&&(document.body.classList.add("non-selectable"),dn(),s.styleCleanup=g),s.event={touch:d!==!0&&c!==!0,mouse:d===!0,keyboard:c===!0,startTime:Date.now(),repeatCount:0};const v=()=>{if(s.timer=void 0,s.event===void 0)return;s.event.repeatCount===0&&(s.event.evt=u,c===!0?s.event.keyCode=u.keyCode:s.event.position=zt(u),He.is.mobile!==!0&&(document.documentElement.style.cursor="pointer",document.body.classList.add("non-selectable"),dn(),s.styleCleanup=g)),s.event.duration=Date.now()-s.event.startTime,s.event.repeatCount+=1,s.handler(s.event);const h=i<s.event.repeatCount?i:s.event.repeatCount;s.timer=setTimeout(v,l[h])};l[0]===0?v():s.timer=setTimeout(v,l[0])},move(u){s.event!==void 0&&s.timer!==void 0&&hw(u,s.origin)===!0&&(clearTimeout(s.timer),s.timer=void 0)},end(u){s.event!==void 0&&(s.styleCleanup?.(!0),u!==void 0&&s.event.repeatCount>0&&Fe(u),Dt(s,"temp"),s.timer!==void 0&&(clearTimeout(s.timer),s.timer=void 0),s.event=void 0)}};if(e.__qtouchrepeat=s,t.mouse===!0){const u=t.mouseCapture===!0||t.mousecapture===!0?"Capture":"";mt(s,"main",[[e,"mousedown","mouseStart",`passive${u}`]])}if(He.has.touch===!0&&mt(s,"main",[[e,"touchstart","touchStart",`passive${t.capture===!0?"Capture":""}`],[e,"touchend","noop","passiveCapture"]]),o.length!==0){const u=t.keyCapture===!0||t.keycapture===!0?"Capture":"";mt(s,"main",[[e,"keydown","keyboardStart",`notPassive${u}`]])}},updated(e,{oldValue:t,value:n}){const a=e.__qtouchrepeat;a!==void 0&&t!==n&&(typeof n!="function"&&a.end(),a.handler=n)},beforeUnmount(e){const t=e.__qtouchrepeat;t!==void 0&&(t.timer!==void 0&&clearTimeout(t.timer),Dt(t,"main"),Dt(t,"temp"),t.styleCleanup?.(),delete e.__qtouchrepeat)}});function gw(e,t=document.body){if(!(t instanceof Element))throw new TypeError("Expected a DOM element");return getComputedStyle(t).getPropertyValue(`--q-${e}`).trim()||null}var sl;function bw(){return He.is.winphone?"msapplication-navbutton-color":"theme-color"}function pw(e){const t=document.getElementsByTagName("META");for(const n in t)if(t[n].name===e)return t[n]}function yw(e){sl===void 0&&(sl=bw());let t=pw(sl);const n=t===void 0;n&&(t=document.createElement("meta"),t.setAttribute("name",sl)),t.setAttribute("content",e),n&&document.head.appendChild(t)}He.is.mobile===!0&&(He.is.nativeMobile===!0||He.is.winphone===!0||He.is.safari===!0||He.is.webkit===!0||He.is.vivaldi);var Aa={};function _w(e){Object.assign(Bt,{request:e,exit:e,toggle:e})}function um(){return document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement||null}function cm(){const e=Bt.activeEl=Bt.isActive===!1?null:um();D0(e===null||e===document.documentElement?document.body:e)}function Sw(){Bt.isActive=Bt.isActive===!1,cm()}function dm(e,t){try{const n=e[t]();return n===void 0?Promise.resolve():n}catch(n){return Promise.reject(n)}}var Bt=Dn({isActive:!1,activeEl:null},{isCapable:!1,install({$q:e}){e.fullscreen=this}});Aa.request=["requestFullscreen","msRequestFullscreen","mozRequestFullScreen","webkitRequestFullscreen"].find(e=>document.documentElement[e]!==void 0),Bt.isCapable=Aa.request!==void 0,Bt.isCapable===!1?_w(()=>Promise.reject("Not capable")):(Object.assign(Bt,{request(e){const t=e||document.documentElement,{activeEl:n}=Bt;return t===n?Promise.resolve():(n!==null&&t.contains(n)===!0?Bt.exit():Promise.resolve()).finally(()=>dm(t,Aa.request))},exit(){return Bt.isActive===!0?dm(document,Aa.exit):Promise.resolve()},toggle(e){return Bt.isActive===!0?Bt.exit():Bt.request(e)}}),Aa.exit=["exitFullscreen","msExitFullscreen","mozCancelFullScreen","webkitExitFullscreen"].find(e=>document[e]),Bt.isActive=!!um(),Bt.isActive===!0&&cm(),["onfullscreenchange","onmsfullscreenchange","onwebkitfullscreenchange"].forEach(e=>{document[e]=Sw}));var ww=Dn({appVisible:!0},{install({$q:e}){xt(e,"appVisible",()=>this.appVisible)}});{let e,t;if(typeof document.hidden<"u"?(e="hidden",t="visibilitychange"):typeof document.msHidden<"u"?(e="msHidden",t="msvisibilitychange"):typeof document.webkitHidden<"u"&&(e="webkitHidden",t="webkitvisibilitychange"),t&&typeof document[e]<"u"){const n=()=>{ww.appVisible=!document[e]};document.addEventListener(t,n,!1)}}ie({name:"BottomSheetComponent",props:{...Ye,title:String,message:String,actions:Array,grid:Boolean,cardClass:[String,Array,Object],cardStyle:[String,Array,Object]},emits:["ok","hide"],setup(e,{emit:t}){const{proxy:n}=r.getCurrentInstance(),a=Ge(e,n.$q),o=r.ref(null);function l(){o.value.show()}function i(){o.value.hide()}function s(h){t("ok",h),i()}function u(){t("hide")}function d(){return e.actions.map(h=>{const f=h.avatar||h.img;return h.label===void 0?r.h(hr,{class:"col-all",dark:a.value}):r.h("div",{class:["q-bottom-sheet__item q-hoverable q-focusable cursor-pointer relative-position",h.class],style:h.style,tabindex:0,role:"listitem",onClick(){s(h)},onKeyup(_){_.keyCode===13&&s(h)}},[r.h("div",{class:"q-focus-helper"}),h.icon?r.h(Xe,{name:h.icon,color:h.color}):f?r.h("img",{class:h.avatar?"q-bottom-sheet__avatar":"",src:f}):r.h("div",{class:"q-bottom-sheet__empty-icon"}),r.h("div",h.label)])})}function c(){return e.actions.map(h=>{const f=h.avatar||h.img;return h.label===void 0?r.h(hr,{spaced:!0,dark:a.value}):r.h(Xo,{class:["q-bottom-sheet__item",h.classes],style:h.style,tabindex:0,clickable:!0,dark:a.value,onClick(){s(h)}},()=>[r.h(Un,{avatar:!0},()=>h.icon?r.h(Xe,{name:h.icon,color:h.color}):f?r.h("img",{class:h.avatar?"q-bottom-sheet__avatar":"",src:f}):null),r.h(Un,()=>h.label)])})}function g(){const h=[];return e.title&&h.push(r.h(fr,{class:"q-dialog__title"},()=>e.title)),e.message&&h.push(r.h(fr,{class:"q-dialog__message"},()=>e.message)),h.push(e.grid===!0?r.h("div",{class:"row items-stretch justify-start",role:"list"},d()):r.h("div",{role:"list"},c())),h}function v(){return[r.h(Xd,{class:[`q-bottom-sheet q-bottom-sheet--${e.grid===!0?"grid":"list"}`+(a.value===!0?" q-bottom-sheet--dark q-dark":""),e.cardClass],style:e.cardStyle},g)]}return Object.assign(n,{show:l,hide:i}),()=>r.h(Go,{ref:o,position:"bottom",onHide:u},v)}});function fm(e){return encodeURIComponent(e)}function vm(e){return decodeURIComponent(e)}function Cw(e){return fm(e===Object(e)?JSON.stringify(e):""+e)}function kw(e){if(e==="")return e;e.indexOf('"')===0&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\")),e=vm(e.replace(/\+/g," "));try{const t=JSON.parse(e);(t===Object(t)||Array.isArray(t)===!0)&&(e=t)}catch{}return e}function mm(e){const t=new Date;return t.setMilliseconds(t.getMilliseconds()+e),t.toUTCString()}function xw(e){let t=0;const n=e.match(/(\d+)d/),a=e.match(/(\d+)h/),o=e.match(/(\d+)m/),l=e.match(/(\d+)s/);return n&&(t+=n[1]*864e5),a&&(t+=a[1]*36e5),o&&(t+=o[1]*6e4),l&&(t+=l[1]*1e3),t===0?e:mm(t)}function hm(e,t,n={},a){let o,l;n.expires!==void 0&&(Object.prototype.toString.call(n.expires)==="[object Date]"?o=n.expires.toUTCString():typeof n.expires=="string"?o=xw(n.expires):(l=parseFloat(n.expires),o=isNaN(l)===!1?mm(l*864e5):n.expires));const i=`${fm(e)}=${Cw(t)}`,s=[i,o!==void 0?"; Expires="+o:"",n.path?"; Path="+n.path:"",n.domain?"; Domain="+n.domain:"",n.sameSite?"; SameSite="+n.sameSite:"",n.httpOnly?"; HttpOnly":"",n.secure?"; Secure":"",n.other?"; "+n.other:""].join("");if(a){a.req.qCookies?a.req.qCookies.push(s):a.req.qCookies=[s],a.res.setHeader("Set-Cookie",a.req.qCookies);let u=a.req.headers.cookie||"";if(o!==void 0&&l<0){const d=ul(e,a);d!==void 0&&(u=u.replace(`${e}=${d}; `,"").replace(`; ${e}=${d}`,"").replace(`${e}=${d}`,""))}else u=u?`${i}; ${u}`:s;a.req.headers.cookie=u}else document.cookie=s}function ul(e,t){const n=t?t.req.headers:document,a=n.cookie?n.cookie.split("; "):[],o=a.length;let l=e?null:{},i=0,s,u,d;for(;i<o;i++)if(s=a[i].split("="),u=vm(s.shift()),d=s.join("="),!e)l[u]=d;else if(e===u){l=kw(d);break}return l}function Ew(e,t,n){hm(e,"",{expires:-1,...t},n)}function Tw(e,t){return ul(e,t)!==null}function gm(e){return{get:t=>ul(t,e),set:(t,n,a)=>hm(t,n,a,e),has:t=>Tw(t,e),remove:(t,n)=>Ew(t,n,e),getAll:()=>ul(null,e)}}var bm={install({$q:e,ssrContext:t}){e.cookies=this}};__QUASAR_SSR__&&(bm.parseSSR=e=>{if(e!==void 0)return gm(e)}),Object.assign(bm,gm()),ie({name:"DialogPluginComponent",props:{...Ye,title:String,message:String,prompt:Object,options:Object,progress:[Boolean,Object],html:Boolean,ok:{type:[String,Object,Boolean],default:!0},cancel:[String,Object,Boolean],focus:{type:String,default:"ok",validator:e=>["ok","cancel","none"].includes(e)},stackButtons:Boolean,color:String,cardClass:[String,Array,Object],cardStyle:[String,Array,Object]},emits:["ok","hide"],setup(e,{emit:t}){const{proxy:n}=r.getCurrentInstance(),{$q:a}=n,o=Ge(e,a),l=r.ref(null),i=r.ref(e.prompt!==void 0?e.prompt.model:e.options!==void 0?e.options.model:void 0),s=r.computed(()=>"q-dialog-plugin"+(o.value===!0?" q-dialog-plugin--dark q-dark":"")+(e.progress!==!1?" q-dialog-plugin--progress":"")),u=r.computed(()=>e.color||(o.value===!0?"amber":"primary")),d=r.computed(()=>e.progress===!1?null:$t(e.progress)===!0?{component:e.progress.spinner||cn,props:{color:e.progress.color||u.value}}:{component:cn,props:{color:u.value}}),c=r.computed(()=>e.prompt!==void 0||e.options!==void 0),g=r.computed(()=>{if(c.value!==!0)return{};const{model:k,isValid:A,items:D,...z}=e.prompt!==void 0?e.prompt:e.options;return z}),v=r.computed(()=>$t(e.ok)===!0||e.ok===!0?a.lang.label.ok:e.ok),h=r.computed(()=>$t(e.cancel)===!0||e.cancel===!0?a.lang.label.cancel:e.cancel),f=r.computed(()=>e.prompt!==void 0?e.prompt.isValid!==void 0&&e.prompt.isValid(i.value)!==!0:e.options!==void 0?e.options.isValid!==void 0&&e.options.isValid(i.value)!==!0:!1),_=r.computed(()=>({color:u.value,label:v.value,ripple:!1,disable:f.value,...$t(e.ok)===!0?e.ok:{flat:!0},"data-autofocus":e.focus==="ok"&&c.value!==!0||void 0,onClick:y})),p=r.computed(()=>({color:u.value,label:h.value,ripple:!1,...$t(e.cancel)===!0?e.cancel:{flat:!0},"data-autofocus":e.focus==="cancel"&&c.value!==!0||void 0,onClick:m}));r.watch(()=>e.prompt&&e.prompt.model,E),r.watch(()=>e.options&&e.options.model,E);function b(){l.value.show()}function S(){l.value.hide()}function y(){t("ok",r.toRaw(i.value)),S()}function m(){S()}function w(){t("hide")}function E(k){i.value=k}function C(k){f.value!==!0&&e.prompt.type!=="textarea"&&Vt(k,13)===!0&&y()}function R(k,A){return e.html===!0?r.h(fr,{class:k,innerHTML:A}):r.h(fr,{class:k},()=>A)}function H(){return[r.h(bv,{color:u.value,dense:!0,autofocus:!0,dark:o.value,...g.value,modelValue:i.value,"onUpdate:modelValue":E,onKeyup:C})]}function q(){return[r.h(F_,{color:u.value,options:e.options.items,dark:o.value,...g.value,modelValue:i.value,"onUpdate:modelValue":E})]}function T(){const k=[];return e.cancel&&k.push(r.h(Ze,p.value)),e.ok&&k.push(r.h(Ze,_.value)),r.h(ty,{class:e.stackButtons===!0?"items-end":"",vertical:e.stackButtons,align:"right"},()=>k)}function M(){const k=[];return e.title&&k.push(R("q-dialog__title",e.title)),e.progress!==!1&&k.push(r.h(fr,{class:"q-dialog__progress"},()=>r.h(d.value.component,d.value.props))),e.message&&k.push(R("q-dialog__message",e.message)),e.prompt!==void 0?k.push(r.h(fr,{class:"scroll q-dialog-plugin__form"},H)):e.options!==void 0&&k.push(r.h(hr,{dark:o.value}),r.h(fr,{class:"scroll q-dialog-plugin__form"},q),r.h(hr,{dark:o.value})),(e.ok||e.cancel)&&k.push(T()),k}function O(){return[r.h(Xd,{class:[s.value,e.cardClass],style:e.cardStyle,dark:o.value},M)]}return Object.assign(n,{show:b,hide:S}),()=>r.h(Go,{ref:l,onHide:w},O)}});var Vr,Ls,pm=0,yr=null,Mt={},_r={},ym={group:"__default_quasar_group__",delay:0,message:!1,html:!1,spinnerSize:80,spinnerColor:"",messageColor:"",backgroundColor:"",boxClass:"",spinner:cn,customClass:""},_m={...ym};function qw(e){if(e?.group!==void 0&&_r[e.group]!==void 0)return Object.assign(_r[e.group],e);const t=$t(e)===!0&&e.ignoreDefaults===!0?{...ym,...e}:{..._m,...e};return _r[t.group]=t,t}var _n=Dn({isActive:!1},{show(e){Mt=qw(e);const{group:t}=Mt;return _n.isActive=!0,Vr!==void 0?(Mt.uid=pm,Ls.$forceUpdate()):(Mt.uid=++pm,yr!==null&&clearTimeout(yr),yr=setTimeout(()=>{yr=null;const n=Oi("q-loading");Vr=ud({name:"QLoading",setup(){r.onMounted(()=>{vs(!0)});function a(){_n.isActive!==!0&&Vr!==void 0&&(vs(!1),Vr.unmount(n),Nd(n),Vr=void 0,Ls=void 0)}function o(){if(_n.isActive!==!0)return null;const l=[r.h(Mt.spinner,{class:"q-loading__spinner",color:Mt.spinnerColor,size:Mt.spinnerSize})];return Mt.message&&l.push(r.h("div",{class:"q-loading__message"+(Mt.messageColor?` text-${Mt.messageColor}`:""),[Mt.html===!0?"innerHTML":"textContent"]:Mt.message})),r.h("div",{class:"q-loading fullscreen flex flex-center z-max "+Mt.customClass.trim(),key:Mt.uid},[r.h("div",{class:"q-loading__backdrop"+(Mt.backgroundColor?` bg-${Mt.backgroundColor}`:"")}),r.h("div",{class:"q-loading__box column items-center "+Mt.boxClass},l)])}return()=>r.h(r.Transition,{name:"q-transition--fade",appear:!0,onAfterLeave:a},o)}},_n.__parentApp),Ls=Vr.mount(n)},Mt.delay)),n=>{if(n===void 0||Object(n)!==n){_n.hide(t);return}_n.show({...n,group:t})}},hide(e){if(_n.isActive===!0){if(e===void 0)_r={};else{if(_r[e]===void 0)return;{delete _r[e];const t=Object.keys(_r);if(t.length!==0){const n=t[t.length-1];_n.show({group:n});return}}}yr!==null&&(clearTimeout(yr),yr=null),_n.isActive=!1}},setDefaults(e){$t(e)===!0&&Object.assign(_m,e)},install({$q:e,parentApp:t}){e.loading=this,_n.__parentApp=t,e.config.loading!==void 0&&this.setDefaults(e.config.loading)}}),cl=r.ref(null),Sm=Dn({isActive:!1},{start:wt,stop:wt,increment:wt,setDefaults:wt,install({$q:e,parentApp:t}){if(e.loadingBar=this,this.__installed===!0){e.config.loadingBar!==void 0&&this.setDefaults(e.config.loadingBar);return}const n=r.ref(e.config.loadingBar!==void 0?{...e.config.loadingBar}:{});function a(){Sm.isActive=!0}function o(){Sm.isActive=!1}const l=Oi("q-loading-bar");ud({name:"LoadingBar",devtools:{hide:!0},setup:()=>()=>r.h(m0,{...n.value,onStart:a,onStop:o,ref:cl})},t).mount(l),Object.assign(this,{start(i){cl.value.start(i)},stop(){cl.value.stop()},increment(){cl.value.increment.apply(null,arguments)},setDefaults(i){$t(i)===!0&&Object.assign(n.value,i)}})}});function Ow(e){return va(e)===!0?"__q_date|"+e.getTime():i0(e)===!0?"__q_expr|"+e.source:typeof e=="number"?"__q_numb|"+e:typeof e=="boolean"?"__q_bool|"+(e?"1":"0"):typeof e=="string"?"__q_strn|"+e:typeof e=="function"?"__q_strn|"+e.toString():e===Object(e)?"__q_objt|"+JSON.stringify(e):e}function Mw(e){if(e.length<9)return e;const n=e.substring(0,8),a=e.substring(9);switch(n){case"__q_date":const o=Number(a);return new Date(Number.isNaN(o)===!0?a:o);case"__q_expr":return new RegExp(a);case"__q_numb":return Number(a);case"__q_bool":return a==="1";case"__q_strn":return""+a;case"__q_objt":return JSON.parse(a);default:return e}}function wm(){const e=()=>null;return{has:()=>!1,hasItem:()=>!1,getLength:()=>0,getItem:e,getIndex:e,getKey:e,getAll:()=>{},getAllKeys:()=>[],set:wt,setItem:wt,remove:wt,removeItem:wt,clear:wt,isEmpty:()=>!0}}function Cm(e){const t=window[e+"Storage"],n=i=>{const s=t.getItem(i);return s?Mw(s):null},a=i=>t.getItem(i)!==null,o=(i,s)=>{t.setItem(i,Ow(s))},l=i=>{t.removeItem(i)};return{has:a,hasItem:a,getLength:()=>t.length,getItem:n,getIndex:i=>i<t.length?n(t.key(i)):null,getKey:i=>i<t.length?t.key(i):null,getAll:()=>{let i;const s={},u=t.length;for(let d=0;d<u;d++)i=t.key(d),s[i]=n(i);return s},getAllKeys:()=>{const i=[],s=t.length;for(let u=0;u<s;u++)i.push(t.key(u));return i},set:o,setItem:o,remove:l,removeItem:l,clear:()=>{t.clear()},isEmpty:()=>t.length===0}}var km=He.has.webStorage===!1?wm():Cm("local"),Lw={install({$q:e}){e.localStorage=km}};Object.assign(Lw,km);var xm=He.has.webStorage===!1?wm():Cm("session"),Aw={install({$q:e}){e.sessionStorage=xm}};Object.assign(Aw,xm);var Rw=["ok","hide"];Wv(Rw);const Rn="YYYY/MM/DD";function Pw(){function e(n,a){return ss.formatDate(ss.extractDate(n,a||Rn),Rn)}function t(n,a){return n==null?"":ss.formatDate(n,a||Rn)}return{toQDateFormat:e,formatQDate:t}}function Em(e){const{validateFromApi:t,required:n,email:a,minLength:o,maxLength:l,min:i,max:s,pattern:u,unique:d,validDate:c,afterDate:g,beforeDate:v,fromDate:h,upToDate:f}=Wc(e);return{validateFromApi:(_,p)=>b=>t(_,p,b),required:n,email:a,min:_=>p=>i(typeof p=="string"?parseFloat(p):p,_),max:_=>p=>s(typeof p=="string"?parseFloat(p):p,_),minLength:_=>p=>o(p,_),maxLength:_=>p=>l(p,_),pattern:_=>p=>u(p,_),unique:_=>p=>d(p,_),validDate:_=>p=>c(p,_||Rn),afterDate:(_,p)=>b=>g(b,_,p||Rn),beforeDate:(_,p)=>b=>v(b,_,p||Rn),fromDate:(_,p)=>b=>h(b,_,p||Rn),upToDate:(_,p)=>b=>f(b,_,p||Rn)}}function Nw(e,t,n,a){const{required:o,email:l,validateFromApi:i,...s}=Em(a),u=t.required?[o]:[];return n.forEach(d=>{if(d==="email")u.push(l);else if(s[d]&&t.inputSettings?.[d]!=null){const c=t.inputSettings[d];u.push(s[d](c))}}),t.hasValidations&&u.push(i(e,t.name)),u}function Iw(){function e(t){return t.map(n=>({type:n.type,key:n.key,value:n.value,children:e(n.nodes)}))}return{toQTreeNodes:e}}let dl=null;function Dw(e){if(dl!==null){console.warn("[LinID CoreLib] UI Design has already been initialized. Re-initialization is ignored.");return}dl=e}function Tm(){if(dl===null)throw new Error("[LinID CoreLib] UI Design is not initialized. Call setUiDesign() first.");return dl}const qm={"q-avatar":["icon","size","fontSize","color","textColor","square","rounded"],"q-badge":["floating","multiLine","align","color","textColor","transparent","outline","rounded"],"q-banner":["inlineActions","dense","rounded","dark"],"q-btn":["icon","iconRight","noCaps","noWrap","align","stack","stretch","size","outline","flat","unelevated","rounded","push","square","glossy","fab","fabMini","padding","color","textColor","dense","ripple","round"],"q-btn-dropdown":["split","disableMainBtn","disableDropdown","persistent","noEscDismiss","noRouteDismiss","autoClose","noRefocus","noFocus","icon","iconRight","noCaps","noWrap","align","stack","stretch","dropdownIcon","cover","menuAnchor","menuSelf","menuOffset","size","outline","flat","unelevated","rounded","push","square","glossy","fab","fabMini","padding","color","textColor","dense","ripple","noIconAnimation","contentStyle","contentClass","transitionShow","transitionHide","transitionDuration"],"q-card":["dark","square","flat","bordered"],"q-card-actions":["align","vertical"],"q-date":["landscape","yearsInMonthView","todayBtn","minimal","defaultView","color","textColor","dark","square","flat","bordered"],"q-dialog":["persistent","noEscDismiss","noBackdropDismiss","noRouteDismiss","autoClose","noRefocus","noFocus","noShake","allowFocusOutside","seamless","maximized","fullWidth","fullHeight","position","backdropFilter","square","transitionShow","transitionHide","transitionDuration"],"q-file":["autofocus","stackLabel","hideHint","clearable","clearIcon","useChips","labelColor","color","bgColor","dark","filled","outlined","borderless","standout","hideBottomSpace","rounded","square","dense","itemAligned","inputClass","inputStyle","noErrorIcon"],"q-form":["autofocus","noErrorFocus","noResetFocus","greedy"],"q-header":["reveal","revealOffset","elevated","bordered"],"q-icon":["left","right","name","size","color"],"q-img":["loading","loadingShowDelay","noSpinner","noNativeMenu","noTransition","draggable","src","srcset","sizes","placeholderSrc","errorSrc","ratio","initialRatio","width","height","fit","position","imgClass","imgStyle","spinnerColor","spinnerSize"],"q-input":["autofocus","stackLabel","hideHint","clearable","clearIcon","counter","autogrow","fillMask","reverseFillMask","unmaskedValue","debounce","labelColor","color","bgColor","dark","filled","outlined","borderless","standout","hideBottomSpace","rounded","square","dense","itemAligned","noErrorIcon"],"q-item":["insetLevel","tag","activeClass","exactActiveClass","clickable","manualFocus","focused","dark","dense"],"q-item-label":["lines","overline","caption","header"],"q-item-section":["avatar","thumbnail","side","top","noWrap"],"q-list":["separator","padding","tag","bordered","dense","dark"],"q-menu":["contextMenu","touchPosition","persistent","noEscDismiss","noRouteDismiss","autoClose","separateClosePopup","noRefocus","noFocus","fit","cover","anchor","self","offset","dark","square","maxHeight","maxWidth","transitionShow","transitionHide","transitionDuration"],"q-route-tab":["icon","activeClass","exactActiveClass","noCaps","alert","contentClass","ripple"],"q-select":["virtualScrollHorizontal","clearable","autofocus","hideDropdownIcon","popupNoRouteDismiss","fillInput","transitionShow","transitionHide","transitionDuration","behavior","stackLabel","hideHint","clearIcon","counter","dropdownIcon","useInput","inputDebounce","optionsDense","optionsDark","optionsSelectedClass","optionsCover","menuShrink","disableTabSelection","menuAnchor","menuSelf","menuOffset","displayValueHtml","hideSelected","useChips","labelColor","color","bgColor","dark","filled","outlined","borderless","standout","hideBottomSpace","rounded","square","dense","itemAligned","popupContentClass","popupContentStyle","inputClass","inputStyle","noErrorIcon","virtualScrollSliceSize","virtualScrollSliceRatioBefore","virtualScrollSliceRatioAfter","virtualScrollItemSize","virtualScrollStickySizeStart","virtualScrollStickySizeEnd"],"q-spinner":["size","color","thickness"],"q-table":["virtualScrollItemSize","virtualScrollStickySizeStart","virtualScrollStickySizeEnd","color","iconFirstPage","iconPrevPage","iconNextPage","iconLastPage","grid","gridHeader","dense","hideHeader","hideBottom","hideSelectedBanner","hideNoData","hidePagination","flat","bordered","square","separator","wrapCells","tableStyle","tableClass","tableHeaderStyle","tableHeaderClass","cardContainerStyle","cardContainerClass","cardStyle","cardClass","titleClass"],"q-tabs":["vertical","outsideArrows","mobileArrows","align","breakpoint","leftIcon","rightIcon","stretch","shrink","switchIndicator","narrowIndicator","inlineLabel","noCaps","activeColor","activeBgColor","indicatorColor","contentClass","activeClass","dense"],"q-toggle":["toggleOrder","toggleIndeterminate","keepColor","icon","checkedIcon","uncheckedIcon","indeterminateIcon","leftLabel","size","color","dark","dense","iconColor"],"q-toolbar":["inset"],"q-toolbar-title":["shrink"],"q-tree":["tickStrategy","noSelectionUnset","defaultExpandAll","accordion","noTransition","noConnectors","color","controlColor","textColor","selectedColor","dense","dark","duration"],"q-splitter":["horizontal","limits","modelValue","reverse","unit","disable","beforeClass","afterClass","separatorClass","separatorStyle","dark"]};function Om(e,t){return t.split(".").reduce((n,a)=>{if(n&&typeof n=="object")return n[a]},e)}function $w(e,t,n){let a=Om(e,`${t}.${n}`);if(a===void 0&&(a=Om(e,`default.${n}`)),typeof a=="object")throw new Error(`[UiDesign] Value for '${t}.${n}' is a nested object or null, expected a primitive.`);return a}function Bw(e){if(!(e in qm))throw new Error(`[UiDesign] The component '${e}' is not supported for UI design retrieval.`);return qm[e]}function Fw(){const e=r.computed(()=>Tm());function t(n,a,o){const l=Bw(a),i={};for(const s of l){const u=o?.[s]??$w(e.value,n,`${a}.${String(s)}`);u!==void 0&&(i[s]=u)}return i}return{ui:t}}async function Mm(){return(await vn().get("/metadata/entities")).data}async function zw(e){return(await vn().get(`/metadata/entities/${e}`)).data}async function Lm(){return(await vn().get("/metadata/routes")).data}const Hw=()=>jw(ta()),jw=Na("LinidConfigurationStore",{state:()=>({entities:[],apiEndpoints:[],loading:!1,error:null}),getters:{getEntityByName:e=>t=>e.entities.find(n=>n.name===t),getApiEndpointsByEntity:e=>t=>e.apiEndpoints.filter(n=>n.entity===t)},actions:{async fetchConfiguration(){this.loading=!0,this.error=null;try{const[e,t]=await Promise.all([Mm(),Lm()]);this.entities=e,this.apiEndpoints=t}catch(e){this.error=e instanceof Error?e.message:"Failed to fetch configuration",console.error("[Linid CoreLib] Failed to fetch configuration:",e)}finally{this.loading=!1}}}}),Uw=()=>Qw(ta()),Qw=Na("LinidUiStore",{state:()=>({mainNavigationItems:[]}),actions:{addMainNavigationMenuItems(...e){this.mainNavigationItems.push(...e)}}}),Ww=()=>Kw(ta()),Kw=Na("LinidUserStore",{state:()=>({user:{username:"",email:"",fullName:"",roles:[]},isAuthenticated:!1}),actions:{setUserFromClaims(e){const t=e.roles;this.user={username:e.sub,email:typeof e.email=="string"?e.email:"",fullName:typeof e.name=="string"?e.name:"",roles:Array.isArray(t)?t.filter(n=>typeof n=="string"):[]},this.isAuthenticated=!0}}});var Am=(e=>(e.SETUP="setup",e.CONFIGURE="configure",e.INITIALIZE="initialize",e.READY="ready",e.POST_INIT="postInit",e))(Am||{});class Yw{id;name;version;description;constructor(t,n,a,o){this.id=t,this.name=n,this.version=a,this.description=o}async setup(){return{success:!0}}async configure(t){return{success:!0}}async initialize(t){return{success:!0}}async ready(t){return{success:!0}}async postInit(t){return{success:!0}}}Ne.BasicRemoteModule=Yw,Ne.DEFAULT_DATE_FORMAT=Gn,Ne.LinidZoneRenderer=Wm,Ne.ModuleLifecyclePhase=Am,Ne.QDATE_DEFAULT_MASK=Rn,Ne.deepEqual=$l,Ne.deepEqualUnordered=Va,Ne.deleteEntityById=Bg,Ne.fromDot=zg,Ne.getApiEndpointsConfiguration=Lm,Ne.getDayjsInstance=js,Ne.getEntities=Dg,Ne.getEntitiesConfiguration=Mm,Ne.getEntityById=$g,Ne.getEntityConfiguration=zw,Ne.getHttpClient=vn,Ne.getI18nInstance=Uc,Ne.getModuleFederation=Ps,Ne.getModuleHostConfiguration=Vn,Ne.getNunjucksEnv=Kc,Ne.getPiniaStore=ta,Ne.getUiDesign=Tm,Ne.isObject=er,Ne.loadAsyncComponent=Ns,Ne.merge=Fu,Ne.registerModuleHostConfiguration=Pg,Ne.renameKeys=zu,Ne.saveEntity=Ng,Ne.setDayjsInstance=Km,Ne.setHttpClient=Rg,Ne.setI18nInstance=Kp,Ne.setModuleFederation=Fm,Ne.setNunjucksEnv=Jp,Ne.setPiniaStore=Um,Ne.setUiDesign=Dw,Ne.uiEventSubject=kl,Ne.updateEntity=Ig,Ne.useDayjs=Us,Ne.useDialog=lh,Ne.useFieldValidation=Wc,Ne.useLinidConfigurationStore=Hw,Ne.useLinidUiStore=Uw,Ne.useLinidUserStore=Ww,Ne.useLinidZoneStore=Hs,Ne.useNotify=Xp,Ne.useNunjucks=Zp,Ne.usePagination=Vp,Ne.useQuasarDate=Pw,Ne.useQuasarFieldValidation=Em,Ne.useQuasarRules=Nw,Ne.useScopedI18n=Qc,Ne.useTree=Iw,Ne.useUiDesign=Fw,Object.defineProperty(Ne,Symbol.toStringTag,{value:"Module"})}));