diff --git a/docs/assets/index-BXYN3bSs.js b/docs/assets/index-Bz3un_3O.js similarity index 59% rename from docs/assets/index-BXYN3bSs.js rename to docs/assets/index-Bz3un_3O.js index 6e9df85..8fd36f7 100644 --- a/docs/assets/index-BXYN3bSs.js +++ b/docs/assets/index-Bz3un_3O.js @@ -2,33 +2,33 @@ * @vue/shared v3.5.1 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**//*! #__NO_SIDE_EFFECTS__ */function Sl(e,t){const n=new Set(e.split(","));return o=>n.has(o)}const $e={},eo=[],Kt=()=>{},Yf=()=>!1,zi=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),xl=e=>e.startsWith("onUpdate:"),Qe=Object.assign,Cl=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Jf=Object.prototype.hasOwnProperty,Ae=(e,t)=>Jf.call(e,t),be=Array.isArray,to=e=>ji(e)==="[object Map]",su=e=>ji(e)==="[object Set]",ye=e=>typeof e=="function",Ne=e=>typeof e=="string",gn=e=>typeof e=="symbol",Ie=e=>e!==null&&typeof e=="object",au=e=>(Ie(e)||ye(e))&&ye(e.then)&&ye(e.catch),uu=Object.prototype.toString,ji=e=>uu.call(e),Xf=e=>ji(e).slice(8,-1),cu=e=>ji(e)==="[object Object]",kl=e=>Ne(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,qo=Sl(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Hi=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Zf=/-(\w)/g,It=Hi(e=>e.replace(Zf,(t,n)=>n?n.toUpperCase():"")),ed=/\B([A-Z])/g,pn=Hi(e=>e.replace(ed,"-$1").toLowerCase()),Ki=Hi(e=>e.charAt(0).toUpperCase()+e.slice(1)),yr=Hi(e=>e?`on${Ki(e)}`:""),dn=(e,t)=>!Object.is(e,t),wr=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:n})},td=e=>{const t=parseFloat(e);return isNaN(t)?e:t},nd=e=>{const t=Ne(e)?Number(e):NaN;return isNaN(t)?e:t};let Cs;const du=()=>Cs||(Cs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function so(e){if(be(e)){const t={};for(let n=0;n{if(n){const o=n.split(id);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function At(e){let t="";if(Ne(e))t=e;else if(be(e))for(let n=0;n!!(e&&e.__v_isRef===!0),hn=e=>Ne(e)?e:e==null?"":be(e)||Ie(e)&&(e.toString===uu||!ye(e.toString))?vu(e)?hn(e.value):JSON.stringify(e,mu,2):String(e),mu=(e,t)=>vu(t)?mu(e,t.value):to(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,i],r)=>(n[_r(o,r)+" =>"]=i,n),{})}:su(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>_r(n))}:gn(t)?_r(t):Ie(t)&&!be(t)&&!cu(t)?String(t):t,_r=(e,t="")=>{var n;return gn(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** +**//*! #__NO_SIDE_EFFECTS__ */function Sl(e,t){const n=new Set(e.split(","));return o=>n.has(o)}const Oe={},eo=[],Ut=()=>{},Yf=()=>!1,zi=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),xl=e=>e.startsWith("onUpdate:"),Qe=Object.assign,Cl=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Jf=Object.prototype.hasOwnProperty,Te=(e,t)=>Jf.call(e,t),be=Array.isArray,to=e=>ji(e)==="[object Map]",su=e=>ji(e)==="[object Set]",ye=e=>typeof e=="function",Be=e=>typeof e=="string",gn=e=>typeof e=="symbol",Ie=e=>e!==null&&typeof e=="object",au=e=>(Ie(e)||ye(e))&&ye(e.then)&&ye(e.catch),uu=Object.prototype.toString,ji=e=>uu.call(e),Xf=e=>ji(e).slice(8,-1),cu=e=>ji(e)==="[object Object]",kl=e=>Be(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,qo=Sl(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Hi=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Zf=/-(\w)/g,It=Hi(e=>e.replace(Zf,(t,n)=>n?n.toUpperCase():"")),ed=/\B([A-Z])/g,pn=Hi(e=>e.replace(ed,"-$1").toLowerCase()),Ui=Hi(e=>e.charAt(0).toUpperCase()+e.slice(1)),yr=Hi(e=>e?`on${Ui(e)}`:""),dn=(e,t)=>!Object.is(e,t),wr=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:n})},td=e=>{const t=parseFloat(e);return isNaN(t)?e:t},nd=e=>{const t=Be(e)?Number(e):NaN;return isNaN(t)?e:t};let Cs;const du=()=>Cs||(Cs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function so(e){if(be(e)){const t={};for(let n=0;n{if(n){const o=n.split(id);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function Tt(e){let t="";if(Be(e))t=e;else if(be(e))for(let n=0;n!!(e&&e.__v_isRef===!0),hn=e=>Be(e)?e:e==null?"":be(e)||Ie(e)&&(e.toString===uu||!ye(e.toString))?vu(e)?hn(e.value):JSON.stringify(e,mu,2):String(e),mu=(e,t)=>vu(t)?mu(e,t.value):to(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,i],r)=>(n[_r(o,r)+" =>"]=i,n),{})}:su(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>_r(n))}:gn(t)?_r(t):Ie(t)&&!be(t)&&!cu(t)?String(t):t,_r=(e,t="")=>{var n;return gn(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** * @vue/reactivity v3.5.1 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let xt;class gu{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=xt,!t&&xt&&(this.index=(xt.scopes||(xt.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0)return;let e;for(;$o;){let t=$o;for($o=void 0;t;){const n=t.nextEffect;if(t.nextEffect=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(o){e||(e=o)}t=n}}if(e)throw e}function yu(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function wu(e){let t,n=e.depsTail;for(let o=n;o;o=o.prevDep)o.version===-1?(o===n&&(n=o.prevDep),Al(o),fd(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0;e.deps=t,e.depsTail=n}function Jr(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&_u(t.dep.computed)===!1||t.dep.version!==t.version)return!0;return!!e._dirty}function _u(e){if(e.flags&2)return!1;if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Fo))return;e.globalVersion=Fo;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&!Jr(e)){e.flags&=-3;return}const n=Re,o=Lt;Re=e,Lt=!0;try{yu(e);const i=e.fn();(t.version===0||dn(i,e._value))&&(e._value=i,t.version++)}catch(i){throw t.version++,i}finally{Re=n,Lt=o,wu(e),e.flags&=-3}}function Al(e){const{dep:t,prevSub:n,nextSub:o}=e;if(n&&(n.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=n,e.nextSub=void 0),t.subs===e&&(t.subs=n),!t.subs&&t.computed){t.computed.flags&=-5;for(let i=t.computed.deps;i;i=i.nextDep)Al(i)}}function fd(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Lt=!0;const Su=[];function bn(){Su.push(Lt),Lt=!1}function yn(){const e=Su.pop();Lt=e===void 0?!0:e}function ks(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Re;Re=void 0;try{t()}finally{Re=n}}}let Fo=0;class ql{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0}track(t){if(!Re||!Lt)return;let n=this.activeLink;if(n===void 0||n.sub!==Re)n=this.activeLink={dep:this,sub:Re,version:this.version,nextDep:void 0,prevDep:void 0,nextSub:void 0,prevSub:void 0,prevActiveLink:void 0},Re.deps?(n.prevDep=Re.depsTail,Re.depsTail.nextDep=n,Re.depsTail=n):Re.deps=Re.depsTail=n,Re.flags&4&&xu(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const o=n.nextDep;o.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=o),n.prevDep=Re.depsTail,n.nextDep=void 0,Re.depsTail.nextDep=n,Re.depsTail=n,Re.deps===n&&(Re.deps=o)}return n}trigger(t){this.version++,Fo++,this.notify(t)}notify(t){El();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()}finally{Tl()}}}function xu(e){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let o=t.deps;o;o=o.nextDep)xu(o)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}const Xr=new WeakMap,qn=Symbol(""),Zr=Symbol(""),Vo=Symbol("");function ft(e,t,n){if(Lt&&Re){let o=Xr.get(e);o||Xr.set(e,o=new Map);let i=o.get(n);i||o.set(n,i=new ql),i.track()}}function en(e,t,n,o,i,r){const l=Xr.get(e);if(!l){Fo++;return}let s=[];if(t==="clear")s=[...l.values()];else{const u=be(e),c=u&&kl(n);if(u&&n==="length"){const a=Number(o);l.forEach((f,d)=>{(d==="length"||d===Vo||!gn(d)&&d>=a)&&s.push(f)})}else{const a=f=>f&&s.push(f);switch(n!==void 0&&a(l.get(n)),c&&a(l.get(Vo)),t){case"add":u?c&&a(l.get("length")):(a(l.get(qn)),to(e)&&a(l.get(Zr)));break;case"delete":u||(a(l.get(qn)),to(e)&&a(l.get(Zr)));break;case"set":to(e)&&a(l.get(qn));break}}}El();for(const u of s)u.trigger();Tl()}function Kn(e){const t=Ce(e);return t===e?t:(ft(t,"iterate",Vo),Rt(e)?t:t.map(st))}function Ui(e){return ft(e=Ce(e),"iterate",Vo),e}const dd={__proto__:null,[Symbol.iterator](){return xr(this,Symbol.iterator,st)},concat(...e){return Kn(this).concat(...e.map(t=>be(t)?Kn(t):t))},entries(){return xr(this,"entries",e=>(e[1]=st(e[1]),e))},every(e,t){return Qt(this,"every",e,t,void 0,arguments)},filter(e,t){return Qt(this,"filter",e,t,n=>n.map(st),arguments)},find(e,t){return Qt(this,"find",e,t,st,arguments)},findIndex(e,t){return Qt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Qt(this,"findLast",e,t,st,arguments)},findLastIndex(e,t){return Qt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Qt(this,"forEach",e,t,void 0,arguments)},includes(...e){return Cr(this,"includes",e)},indexOf(...e){return Cr(this,"indexOf",e)},join(e){return Kn(this).join(e)},lastIndexOf(...e){return Cr(this,"lastIndexOf",e)},map(e,t){return Qt(this,"map",e,t,void 0,arguments)},pop(){return _o(this,"pop")},push(...e){return _o(this,"push",e)},reduce(e,...t){return Es(this,"reduce",e,t)},reduceRight(e,...t){return Es(this,"reduceRight",e,t)},shift(){return _o(this,"shift")},some(e,t){return Qt(this,"some",e,t,void 0,arguments)},splice(...e){return _o(this,"splice",e)},toReversed(){return Kn(this).toReversed()},toSorted(e){return Kn(this).toSorted(e)},toSpliced(...e){return Kn(this).toSpliced(...e)},unshift(...e){return _o(this,"unshift",e)},values(){return xr(this,"values",st)}};function xr(e,t,n){const o=Ui(e),i=o[t]();return o!==e&&!Rt(e)&&(i._next=i.next,i.next=()=>{const r=i._next();return r.value&&(r.value=n(r.value)),r}),i}const hd=Array.prototype;function Qt(e,t,n,o,i,r){const l=Ui(e),s=l!==e&&!Rt(e),u=l[t];if(u!==hd[t]){const f=u.apply(e,r);return s?st(f):f}let c=n;l!==e&&(s?c=function(f,d){return n.call(this,st(f),d,e)}:n.length>2&&(c=function(f,d){return n.call(this,f,d,e)}));const a=u.call(l,c,o);return s&&i?i(a):a}function Es(e,t,n,o){const i=Ui(e);let r=n;return i!==e&&(Rt(e)?n.length>3&&(r=function(l,s,u){return n.call(this,l,s,u,e)}):r=function(l,s,u){return n.call(this,l,st(s),u,e)}),i[t](r,...o)}function Cr(e,t,n){const o=Ce(e);ft(o,"iterate",Vo);const i=o[t](...n);return(i===-1||i===!1)&&Ml(n[0])?(n[0]=Ce(n[0]),o[t](...n)):i}function _o(e,t,n=[]){bn(),El();const o=Ce(e)[t].apply(e,n);return Tl(),yn(),o}const vd=Sl("__proto__,__v_isRef,__isVue"),Cu=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(gn));function md(e){gn(e)||(e=String(e));const t=Ce(this);return ft(t,"has",e),t.hasOwnProperty(e)}class ku{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,o){const i=this._isReadonly,r=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return r;if(n==="__v_raw")return o===(i?r?Ad:qu:r?Au:Tu).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const l=be(t);if(!i){let u;if(l&&(u=dd[n]))return u;if(n==="hasOwnProperty")return md}const s=Reflect.get(t,n,ct(t)?t:o);return(gn(n)?Cu.has(n):vd(n))||(i||ft(t,"get",n),r)?s:ct(s)?l&&kl(n)?s:s.value:Ie(s)?i?$u(s):Ht(s):s}}class Eu extends ku{constructor(t=!1){super(!1,t)}set(t,n,o,i){let r=t[n];if(!this._isShallow){const u=Rn(r);if(!Rt(o)&&!Rn(o)&&(r=Ce(r),o=Ce(o)),!be(t)&&ct(r)&&!ct(o))return u?!1:(r.value=o,!0)}const l=be(t)&&kl(n)?Number(n)e,Wi=e=>Reflect.getPrototypeOf(e);function Xo(e,t,n=!1,o=!1){e=e.__v_raw;const i=Ce(e),r=Ce(t);n||(dn(t,r)&&ft(i,"get",t),ft(i,"get",r));const{has:l}=Wi(i),s=o?$l:n?Ll:st;if(l.call(i,t))return s(e.get(t));if(l.call(i,r))return s(e.get(r));e!==i&&e.get(t)}function Zo(e,t=!1){const n=this.__v_raw,o=Ce(n),i=Ce(e);return t||(dn(e,i)&&ft(o,"has",e),ft(o,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function ei(e,t=!1){return e=e.__v_raw,!t&&ft(Ce(e),"iterate",qn),Reflect.get(e,"size",e)}function Ts(e,t=!1){!t&&!Rt(e)&&!Rn(e)&&(e=Ce(e));const n=Ce(this);return Wi(n).has.call(n,e)||(n.add(e),en(n,"add",e,e)),this}function As(e,t,n=!1){!n&&!Rt(t)&&!Rn(t)&&(t=Ce(t));const o=Ce(this),{has:i,get:r}=Wi(o);let l=i.call(o,e);l||(e=Ce(e),l=i.call(o,e));const s=r.call(o,e);return o.set(e,t),l?dn(t,s)&&en(o,"set",e,t):en(o,"add",e,t),this}function qs(e){const t=Ce(this),{has:n,get:o}=Wi(t);let i=n.call(t,e);i||(e=Ce(e),i=n.call(t,e)),o&&o.call(t,e);const r=t.delete(e);return i&&en(t,"delete",e,void 0),r}function $s(){const e=Ce(this),t=e.size!==0,n=e.clear();return t&&en(e,"clear",void 0,void 0),n}function ti(e,t){return function(o,i){const r=this,l=r.__v_raw,s=Ce(l),u=t?$l:e?Ll:st;return!e&&ft(s,"iterate",qn),l.forEach((c,a)=>o.call(i,u(c),u(a),r))}}function ni(e,t,n){return function(...o){const i=this.__v_raw,r=Ce(i),l=to(r),s=e==="entries"||e===Symbol.iterator&&l,u=e==="keys"&&l,c=i[e](...o),a=n?$l:t?Ll:st;return!t&&ft(r,"iterate",u?Zr:qn),{next(){const{value:f,done:d}=c.next();return d?{value:f,done:d}:{value:s?[a(f[0]),a(f[1])]:a(f),done:d}},[Symbol.iterator](){return this}}}}function on(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function wd(){const e={get(r){return Xo(this,r)},get size(){return ei(this)},has:Zo,add:Ts,set:As,delete:qs,clear:$s,forEach:ti(!1,!1)},t={get(r){return Xo(this,r,!1,!0)},get size(){return ei(this)},has:Zo,add(r){return Ts.call(this,r,!0)},set(r,l){return As.call(this,r,l,!0)},delete:qs,clear:$s,forEach:ti(!1,!0)},n={get(r){return Xo(this,r,!0)},get size(){return ei(this,!0)},has(r){return Zo.call(this,r,!0)},add:on("add"),set:on("set"),delete:on("delete"),clear:on("clear"),forEach:ti(!0,!1)},o={get(r){return Xo(this,r,!0,!0)},get size(){return ei(this,!0)},has(r){return Zo.call(this,r,!0)},add:on("add"),set:on("set"),delete:on("delete"),clear:on("clear"),forEach:ti(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=ni(r,!1,!1),n[r]=ni(r,!0,!1),t[r]=ni(r,!1,!0),o[r]=ni(r,!0,!0)}),[e,n,t,o]}const[_d,Sd,xd,Cd]=wd();function Ol(e,t){const n=t?e?Cd:xd:e?Sd:_d;return(o,i,r)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?o:Reflect.get(Ae(n,i)&&i in o?n:o,i,r)}const kd={get:Ol(!1,!1)},Ed={get:Ol(!1,!0)},Td={get:Ol(!0,!1)};const Tu=new WeakMap,Au=new WeakMap,qu=new WeakMap,Ad=new WeakMap;function qd(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function $d(e){return e.__v_skip||!Object.isExtensible(e)?0:qd(Xf(e))}function Ht(e){return Rn(e)?e:Pl(e,!1,pd,kd,Tu)}function Od(e){return Pl(e,!1,yd,Ed,Au)}function $u(e){return Pl(e,!0,bd,Td,qu)}function Pl(e,t,n,o,i){if(!Ie(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=i.get(e);if(r)return r;const l=$d(e);if(l===0)return e;const s=new Proxy(e,l===2?o:n);return i.set(e,s),s}function no(e){return Rn(e)?no(e.__v_raw):!!(e&&e.__v_isReactive)}function Rn(e){return!!(e&&e.__v_isReadonly)}function Rt(e){return!!(e&&e.__v_isShallow)}function Ml(e){return e?!!e.__v_raw:!1}function Ce(e){const t=e&&e.__v_raw;return t?Ce(t):e}function Qi(e){return Object.isExtensible(e)&&fu(e,"__v_skip",!0),e}const st=e=>Ie(e)?Ht(e):e,Ll=e=>Ie(e)?$u(e):e;function ct(e){return e?e.__v_isRef===!0:!1}function se(e){return Pd(e,!1)}function Pd(e,t){return ct(e)?e:new Md(e,t)}class Md{constructor(t,n){this.dep=new ql,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Ce(t),this._value=n?t:st(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,o=this.__v_isShallow||Rt(t)||Rn(t);t=o?t:Ce(t),dn(t,n)&&(this._rawValue=t,this._value=o?t:st(t),this.dep.trigger())}}function Ou(e){return ct(e)?e.value:e}const Ld={get:(e,t,n)=>Ou(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const i=e[t];return ct(i)&&!ct(n)?(i.value=n,!0):Reflect.set(e,t,n,o)}};function Pu(e){return no(e)?e:new Proxy(e,Ld)}class Rd{constructor(t,n,o){this.fn=t,this.setter=n,this._value=void 0,this.dep=new ql(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Fo-1,this.effect=this,this.__v_isReadonly=!n,this.isSSR=o}notify(){Re!==this&&(this.flags|=16,this.dep.notify())}get value(){const t=this.dep.track();return _u(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Id(e,t,n=!1){let o,i;return ye(e)?o=e:(o=e.get,i=e.set),new Rd(o,i,n)}const oi={},xi=new WeakMap;let kn;function Fd(e,t=!1,n=kn){if(n){let o=xi.get(n);o||xi.set(n,o=[]),o.push(e)}}function Vd(e,t,n=$e){const{immediate:o,deep:i,once:r,scheduler:l,augmentJob:s,call:u}=n,c=A=>i?A:Rt(A)||i===!1||i===0?Jt(A,1):Jt(A);let a,f,d,h,g=!1,P=!1;if(ct(e)?(f=()=>e.value,g=Rt(e)):no(e)?(f=()=>c(e),g=!0):be(e)?(P=!0,g=e.some(A=>no(A)||Rt(A)),f=()=>e.map(A=>{if(ct(A))return A.value;if(no(A))return c(A);if(ye(A))return u?u(A,2):A()})):ye(e)?t?f=u?()=>u(e,2):e:f=()=>{if(d){bn();try{d()}finally{yn()}}const A=kn;kn=a;try{return u?u(e,3,[h]):e(h)}finally{kn=A}}:f=Kt,t&&i){const A=f,L=i===!0?1/0:i;f=()=>Jt(A(),L)}const T=cd(),V=()=>{a.stop(),T&&Cl(T.effects,a)};if(r)if(t){const A=t;t=(...L)=>{A(...L),V()}}else{const A=f;f=()=>{A(),V()}}let S=P?new Array(e.length).fill(oi):oi;const R=A=>{if(!(!(a.flags&1)||!a.dirty&&!A))if(t){const L=a.run();if(i||g||(P?L.some(($,F)=>dn($,S[F])):dn(L,S))){d&&d();const $=kn;kn=a;try{const F=[L,S===oi?void 0:P&&S[0]===oi?[]:S,h];u?u(t,3,F):t(...F),S=L}finally{kn=$}}}else a.run()};return s&&s(R),a=new pu(f),a.scheduler=l?()=>l(R,!1):R,h=A=>Fd(A,!1,a),d=a.onStop=()=>{const A=xi.get(a);if(A){if(u)u(A,4);else for(const L of A)L();xi.delete(a)}},t?o?R(!0):S=a.run():l?l(R.bind(null,!0),!0):a.run(),V.pause=a.pause.bind(a),V.resume=a.resume.bind(a),V.stop=V,V}function Jt(e,t=1/0,n){if(t<=0||!Ie(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,ct(e))Jt(e.value,t,n);else if(be(e))for(let o=0;o{Jt(o,t,n)});else if(cu(e)){for(const o in e)Jt(e[o],t,n);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&Jt(e[o],t,n)}return e}/** +**/let xt;class gu{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=xt,!t&&xt&&(this.index=(xt.scopes||(xt.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0)return;let e;for(;Oo;){let t=Oo;for(Oo=void 0;t;){const n=t.nextEffect;if(t.nextEffect=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(o){e||(e=o)}t=n}}if(e)throw e}function yu(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function wu(e){let t,n=e.depsTail;for(let o=n;o;o=o.prevDep)o.version===-1?(o===n&&(n=o.prevDep),Tl(o),fd(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0;e.deps=t,e.depsTail=n}function Jr(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&_u(t.dep.computed)===!1||t.dep.version!==t.version)return!0;return!!e._dirty}function _u(e){if(e.flags&2)return!1;if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Fo))return;e.globalVersion=Fo;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&!Jr(e)){e.flags&=-3;return}const n=Re,o=Lt;Re=e,Lt=!0;try{yu(e);const i=e.fn();(t.version===0||dn(i,e._value))&&(e._value=i,t.version++)}catch(i){throw t.version++,i}finally{Re=n,Lt=o,wu(e),e.flags&=-3}}function Tl(e){const{dep:t,prevSub:n,nextSub:o}=e;if(n&&(n.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=n,e.nextSub=void 0),t.subs===e&&(t.subs=n),!t.subs&&t.computed){t.computed.flags&=-5;for(let i=t.computed.deps;i;i=i.nextDep)Tl(i)}}function fd(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Lt=!0;const Su=[];function bn(){Su.push(Lt),Lt=!1}function yn(){const e=Su.pop();Lt=e===void 0?!0:e}function ks(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Re;Re=void 0;try{t()}finally{Re=n}}}let Fo=0;class ql{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0}track(t){if(!Re||!Lt)return;let n=this.activeLink;if(n===void 0||n.sub!==Re)n=this.activeLink={dep:this,sub:Re,version:this.version,nextDep:void 0,prevDep:void 0,nextSub:void 0,prevSub:void 0,prevActiveLink:void 0},Re.deps?(n.prevDep=Re.depsTail,Re.depsTail.nextDep=n,Re.depsTail=n):Re.deps=Re.depsTail=n,Re.flags&4&&xu(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const o=n.nextDep;o.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=o),n.prevDep=Re.depsTail,n.nextDep=void 0,Re.depsTail.nextDep=n,Re.depsTail=n,Re.deps===n&&(Re.deps=o)}return n}trigger(t){this.version++,Fo++,this.notify(t)}notify(t){El();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()}finally{Al()}}}function xu(e){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let o=t.deps;o;o=o.nextDep)xu(o)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}const Xr=new WeakMap,qn=Symbol(""),Zr=Symbol(""),Vo=Symbol("");function ft(e,t,n){if(Lt&&Re){let o=Xr.get(e);o||Xr.set(e,o=new Map);let i=o.get(n);i||o.set(n,i=new ql),i.track()}}function en(e,t,n,o,i,r){const l=Xr.get(e);if(!l){Fo++;return}let s=[];if(t==="clear")s=[...l.values()];else{const u=be(e),c=u&&kl(n);if(u&&n==="length"){const a=Number(o);l.forEach((f,d)=>{(d==="length"||d===Vo||!gn(d)&&d>=a)&&s.push(f)})}else{const a=f=>f&&s.push(f);switch(n!==void 0&&a(l.get(n)),c&&a(l.get(Vo)),t){case"add":u?c&&a(l.get("length")):(a(l.get(qn)),to(e)&&a(l.get(Zr)));break;case"delete":u||(a(l.get(qn)),to(e)&&a(l.get(Zr)));break;case"set":to(e)&&a(l.get(qn));break}}}El();for(const u of s)u.trigger();Al()}function Un(e){const t=Ce(e);return t===e?t:(ft(t,"iterate",Vo),Rt(e)?t:t.map(st))}function Ki(e){return ft(e=Ce(e),"iterate",Vo),e}const dd={__proto__:null,[Symbol.iterator](){return xr(this,Symbol.iterator,st)},concat(...e){return Un(this).concat(...e.map(t=>be(t)?Un(t):t))},entries(){return xr(this,"entries",e=>(e[1]=st(e[1]),e))},every(e,t){return Qt(this,"every",e,t,void 0,arguments)},filter(e,t){return Qt(this,"filter",e,t,n=>n.map(st),arguments)},find(e,t){return Qt(this,"find",e,t,st,arguments)},findIndex(e,t){return Qt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Qt(this,"findLast",e,t,st,arguments)},findLastIndex(e,t){return Qt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Qt(this,"forEach",e,t,void 0,arguments)},includes(...e){return Cr(this,"includes",e)},indexOf(...e){return Cr(this,"indexOf",e)},join(e){return Un(this).join(e)},lastIndexOf(...e){return Cr(this,"lastIndexOf",e)},map(e,t){return Qt(this,"map",e,t,void 0,arguments)},pop(){return _o(this,"pop")},push(...e){return _o(this,"push",e)},reduce(e,...t){return Es(this,"reduce",e,t)},reduceRight(e,...t){return Es(this,"reduceRight",e,t)},shift(){return _o(this,"shift")},some(e,t){return Qt(this,"some",e,t,void 0,arguments)},splice(...e){return _o(this,"splice",e)},toReversed(){return Un(this).toReversed()},toSorted(e){return Un(this).toSorted(e)},toSpliced(...e){return Un(this).toSpliced(...e)},unshift(...e){return _o(this,"unshift",e)},values(){return xr(this,"values",st)}};function xr(e,t,n){const o=Ki(e),i=o[t]();return o!==e&&!Rt(e)&&(i._next=i.next,i.next=()=>{const r=i._next();return r.value&&(r.value=n(r.value)),r}),i}const hd=Array.prototype;function Qt(e,t,n,o,i,r){const l=Ki(e),s=l!==e&&!Rt(e),u=l[t];if(u!==hd[t]){const f=u.apply(e,r);return s?st(f):f}let c=n;l!==e&&(s?c=function(f,d){return n.call(this,st(f),d,e)}:n.length>2&&(c=function(f,d){return n.call(this,f,d,e)}));const a=u.call(l,c,o);return s&&i?i(a):a}function Es(e,t,n,o){const i=Ki(e);let r=n;return i!==e&&(Rt(e)?n.length>3&&(r=function(l,s,u){return n.call(this,l,s,u,e)}):r=function(l,s,u){return n.call(this,l,st(s),u,e)}),i[t](r,...o)}function Cr(e,t,n){const o=Ce(e);ft(o,"iterate",Vo);const i=o[t](...n);return(i===-1||i===!1)&&Ml(n[0])?(n[0]=Ce(n[0]),o[t](...n)):i}function _o(e,t,n=[]){bn(),El();const o=Ce(e)[t].apply(e,n);return Al(),yn(),o}const vd=Sl("__proto__,__v_isRef,__isVue"),Cu=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(gn));function md(e){gn(e)||(e=String(e));const t=Ce(this);return ft(t,"has",e),t.hasOwnProperty(e)}class ku{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,o){const i=this._isReadonly,r=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return r;if(n==="__v_raw")return o===(i?r?Td:qu:r?Tu:Au).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const l=be(t);if(!i){let u;if(l&&(u=dd[n]))return u;if(n==="hasOwnProperty")return md}const s=Reflect.get(t,n,ct(t)?t:o);return(gn(n)?Cu.has(n):vd(n))||(i||ft(t,"get",n),r)?s:ct(s)?l&&kl(n)?s:s.value:Ie(s)?i?Ou(s):Ht(s):s}}class Eu extends ku{constructor(t=!1){super(!1,t)}set(t,n,o,i){let r=t[n];if(!this._isShallow){const u=Rn(r);if(!Rt(o)&&!Rn(o)&&(r=Ce(r),o=Ce(o)),!be(t)&&ct(r)&&!ct(o))return u?!1:(r.value=o,!0)}const l=be(t)&&kl(n)?Number(n)e,Wi=e=>Reflect.getPrototypeOf(e);function Xo(e,t,n=!1,o=!1){e=e.__v_raw;const i=Ce(e),r=Ce(t);n||(dn(t,r)&&ft(i,"get",t),ft(i,"get",r));const{has:l}=Wi(i),s=o?Ol:n?Ll:st;if(l.call(i,t))return s(e.get(t));if(l.call(i,r))return s(e.get(r));e!==i&&e.get(t)}function Zo(e,t=!1){const n=this.__v_raw,o=Ce(n),i=Ce(e);return t||(dn(e,i)&&ft(o,"has",e),ft(o,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function ei(e,t=!1){return e=e.__v_raw,!t&&ft(Ce(e),"iterate",qn),Reflect.get(e,"size",e)}function As(e,t=!1){!t&&!Rt(e)&&!Rn(e)&&(e=Ce(e));const n=Ce(this);return Wi(n).has.call(n,e)||(n.add(e),en(n,"add",e,e)),this}function Ts(e,t,n=!1){!n&&!Rt(t)&&!Rn(t)&&(t=Ce(t));const o=Ce(this),{has:i,get:r}=Wi(o);let l=i.call(o,e);l||(e=Ce(e),l=i.call(o,e));const s=r.call(o,e);return o.set(e,t),l?dn(t,s)&&en(o,"set",e,t):en(o,"add",e,t),this}function qs(e){const t=Ce(this),{has:n,get:o}=Wi(t);let i=n.call(t,e);i||(e=Ce(e),i=n.call(t,e)),o&&o.call(t,e);const r=t.delete(e);return i&&en(t,"delete",e,void 0),r}function Os(){const e=Ce(this),t=e.size!==0,n=e.clear();return t&&en(e,"clear",void 0,void 0),n}function ti(e,t){return function(o,i){const r=this,l=r.__v_raw,s=Ce(l),u=t?Ol:e?Ll:st;return!e&&ft(s,"iterate",qn),l.forEach((c,a)=>o.call(i,u(c),u(a),r))}}function ni(e,t,n){return function(...o){const i=this.__v_raw,r=Ce(i),l=to(r),s=e==="entries"||e===Symbol.iterator&&l,u=e==="keys"&&l,c=i[e](...o),a=n?Ol:t?Ll:st;return!t&&ft(r,"iterate",u?Zr:qn),{next(){const{value:f,done:d}=c.next();return d?{value:f,done:d}:{value:s?[a(f[0]),a(f[1])]:a(f),done:d}},[Symbol.iterator](){return this}}}}function on(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function wd(){const e={get(r){return Xo(this,r)},get size(){return ei(this)},has:Zo,add:As,set:Ts,delete:qs,clear:Os,forEach:ti(!1,!1)},t={get(r){return Xo(this,r,!1,!0)},get size(){return ei(this)},has:Zo,add(r){return As.call(this,r,!0)},set(r,l){return Ts.call(this,r,l,!0)},delete:qs,clear:Os,forEach:ti(!1,!0)},n={get(r){return Xo(this,r,!0)},get size(){return ei(this,!0)},has(r){return Zo.call(this,r,!0)},add:on("add"),set:on("set"),delete:on("delete"),clear:on("clear"),forEach:ti(!0,!1)},o={get(r){return Xo(this,r,!0,!0)},get size(){return ei(this,!0)},has(r){return Zo.call(this,r,!0)},add:on("add"),set:on("set"),delete:on("delete"),clear:on("clear"),forEach:ti(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=ni(r,!1,!1),n[r]=ni(r,!0,!1),t[r]=ni(r,!1,!0),o[r]=ni(r,!0,!0)}),[e,n,t,o]}const[_d,Sd,xd,Cd]=wd();function $l(e,t){const n=t?e?Cd:xd:e?Sd:_d;return(o,i,r)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?o:Reflect.get(Te(n,i)&&i in o?n:o,i,r)}const kd={get:$l(!1,!1)},Ed={get:$l(!1,!0)},Ad={get:$l(!0,!1)};const Au=new WeakMap,Tu=new WeakMap,qu=new WeakMap,Td=new WeakMap;function qd(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Od(e){return e.__v_skip||!Object.isExtensible(e)?0:qd(Xf(e))}function Ht(e){return Rn(e)?e:Pl(e,!1,pd,kd,Au)}function $d(e){return Pl(e,!1,yd,Ed,Tu)}function Ou(e){return Pl(e,!0,bd,Ad,qu)}function Pl(e,t,n,o,i){if(!Ie(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=i.get(e);if(r)return r;const l=Od(e);if(l===0)return e;const s=new Proxy(e,l===2?o:n);return i.set(e,s),s}function no(e){return Rn(e)?no(e.__v_raw):!!(e&&e.__v_isReactive)}function Rn(e){return!!(e&&e.__v_isReadonly)}function Rt(e){return!!(e&&e.__v_isShallow)}function Ml(e){return e?!!e.__v_raw:!1}function Ce(e){const t=e&&e.__v_raw;return t?Ce(t):e}function Qi(e){return Object.isExtensible(e)&&fu(e,"__v_skip",!0),e}const st=e=>Ie(e)?Ht(e):e,Ll=e=>Ie(e)?Ou(e):e;function ct(e){return e?e.__v_isRef===!0:!1}function se(e){return Pd(e,!1)}function Pd(e,t){return ct(e)?e:new Md(e,t)}class Md{constructor(t,n){this.dep=new ql,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Ce(t),this._value=n?t:st(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,o=this.__v_isShallow||Rt(t)||Rn(t);t=o?t:Ce(t),dn(t,n)&&(this._rawValue=t,this._value=o?t:st(t),this.dep.trigger())}}function $u(e){return ct(e)?e.value:e}const Ld={get:(e,t,n)=>$u(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const i=e[t];return ct(i)&&!ct(n)?(i.value=n,!0):Reflect.set(e,t,n,o)}};function Pu(e){return no(e)?e:new Proxy(e,Ld)}class Rd{constructor(t,n,o){this.fn=t,this.setter=n,this._value=void 0,this.dep=new ql(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Fo-1,this.effect=this,this.__v_isReadonly=!n,this.isSSR=o}notify(){Re!==this&&(this.flags|=16,this.dep.notify())}get value(){const t=this.dep.track();return _u(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Id(e,t,n=!1){let o,i;return ye(e)?o=e:(o=e.get,i=e.set),new Rd(o,i,n)}const oi={},xi=new WeakMap;let kn;function Fd(e,t=!1,n=kn){if(n){let o=xi.get(n);o||xi.set(n,o=[]),o.push(e)}}function Vd(e,t,n=Oe){const{immediate:o,deep:i,once:r,scheduler:l,augmentJob:s,call:u}=n,c=T=>i?T:Rt(T)||i===!1||i===0?Jt(T,1):Jt(T);let a,f,d,h,g=!1,P=!1;if(ct(e)?(f=()=>e.value,g=Rt(e)):no(e)?(f=()=>c(e),g=!0):be(e)?(P=!0,g=e.some(T=>no(T)||Rt(T)),f=()=>e.map(T=>{if(ct(T))return T.value;if(no(T))return c(T);if(ye(T))return u?u(T,2):T()})):ye(e)?t?f=u?()=>u(e,2):e:f=()=>{if(d){bn();try{d()}finally{yn()}}const T=kn;kn=a;try{return u?u(e,3,[h]):e(h)}finally{kn=T}}:f=Ut,t&&i){const T=f,L=i===!0?1/0:i;f=()=>Jt(T(),L)}const A=cd(),V=()=>{a.stop(),A&&Cl(A.effects,a)};if(r)if(t){const T=t;t=(...L)=>{T(...L),V()}}else{const T=f;f=()=>{T(),V()}}let S=P?new Array(e.length).fill(oi):oi;const R=T=>{if(!(!(a.flags&1)||!a.dirty&&!T))if(t){const L=a.run();if(i||g||(P?L.some((O,F)=>dn(O,S[F])):dn(L,S))){d&&d();const O=kn;kn=a;try{const F=[L,S===oi?void 0:P&&S[0]===oi?[]:S,h];u?u(t,3,F):t(...F),S=L}finally{kn=O}}}else a.run()};return s&&s(R),a=new pu(f),a.scheduler=l?()=>l(R,!1):R,h=T=>Fd(T,!1,a),d=a.onStop=()=>{const T=xi.get(a);if(T){if(u)u(T,4);else for(const L of T)L();xi.delete(a)}},t?o?R(!0):S=a.run():l?l(R.bind(null,!0),!0):a.run(),V.pause=a.pause.bind(a),V.resume=a.resume.bind(a),V.stop=V,V}function Jt(e,t=1/0,n){if(t<=0||!Ie(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,ct(e))Jt(e.value,t,n);else if(be(e))for(let o=0;o{Jt(o,t,n)});else if(cu(e)){for(const o in e)Jt(e[o],t,n);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&Jt(e[o],t,n)}return e}/** * @vue/runtime-core v3.5.1 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/function Uo(e,t,n,o){try{return o?e(...o):e()}catch(i){Gi(i,t,n)}}function Ft(e,t,n,o){if(ye(e)){const i=Uo(e,t,n,o);return i&&au(i)&&i.catch(r=>{Gi(r,t,n)}),i}if(be(e)){const i=[];for(let r=0;r>>1,i=Ct[o],r=Bo(i);r=Bo(n)?Ct.push(e):Ct.splice(Bd(t),0,e),e.flags&4||(e.flags|=1),Lu()}}function Lu(){!No&&!el&&(el=!0,Rl=Mu.then(Iu))}function Dd(e){be(e)?oo.push(...e):sn&&e.id===-1?sn.splice(Xn+1,0,e):e.flags&1||(oo.push(e),e.flags&4||(e.flags|=1)),Lu()}function Os(e,t,n=No?En+1:0){for(;nBo(n)-Bo(o));if(oo.length=0,sn){sn.push(...t);return}for(sn=t,Xn=0;Xne.id==null?e.flags&2?-1:1/0:e.id;function Iu(e){el=!1,No=!0;try{for(En=0;En{o._d&&js(-1);const r=Ci(t);let l;try{l=e(...i)}finally{Ci(r),o._d&&js(1)}return l};return o._n=!0,o._c=!0,o._d=!0,o}function Ye(e,t){if(yt===null)return e;const n=or(yt),o=e.dirs||(e.dirs=[]);for(let i=0;ie.__isTeleport,Oo=e=>e&&(e.disabled||e.disabled===""),zd=e=>e&&(e.defer||e.defer===""),Ps=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Ms=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,tl=(e,t)=>{const n=e&&e.to;return Ne(n)?t?t(n):null:n},jd={name:"Teleport",__isTeleport:!0,process(e,t,n,o,i,r,l,s,u,c){const{mc:a,pc:f,pbc:d,o:{insert:h,querySelector:g,createText:P,createComment:T}}=c,V=Oo(t.props);let{shapeFlag:S,children:R,dynamicChildren:A}=t;if(e==null){const L=t.el=P(""),$=t.anchor=P("");h(L,n,o),h($,n,o);const F=(_,E)=>{S&16&&a(R,_,E,i,r,l,s,u)},X=()=>{const _=t.target=tl(t.props,g),E=Bu(_,t,P,h);_&&(l!=="svg"&&Ps(_)?l="svg":l!=="mathml"&&Ms(_)&&(l="mathml"),V||(F(_,E),gi(t)))};V&&(F(n,$),gi(t)),zd(t.props)?mt(X,r):X()}else{t.el=e.el,t.targetStart=e.targetStart;const L=t.anchor=e.anchor,$=t.target=e.target,F=t.targetAnchor=e.targetAnchor,X=Oo(e.props),_=X?n:$,E=X?L:F;if(l==="svg"||Ps($)?l="svg":(l==="mathml"||Ms($))&&(l="mathml"),A?(d(e.dynamicChildren,A,_,i,r,l,s),Hl(e,t,!0)):u||f(e,t,_,E,i,r,l,s,!1),V)X?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):ii(t,n,L,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const B=t.target=tl(t.props,g);B&&ii(t,B,null,c,0)}else X&&ii(t,$,F,c,1);gi(t)}},remove(e,t,n,{um:o,o:{remove:i}},r){const{shapeFlag:l,children:s,anchor:u,targetStart:c,targetAnchor:a,target:f,props:d}=e;if(f&&(i(c),i(a)),r&&i(u),l&16){const h=r||!Oo(d);for(let g=0;g{e.isMounted=!0}),Be(()=>{e.isUnmounting=!0}),e}const Et=[Function,Array],zu={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Et,onEnter:Et,onAfterEnter:Et,onEnterCancelled:Et,onBeforeLeave:Et,onLeave:Et,onAfterLeave:Et,onLeaveCancelled:Et,onBeforeAppear:Et,onAppear:Et,onAfterAppear:Et,onAppearCancelled:Et},ju=e=>{const t=e.subTree;return t.component?ju(t.component):t},Ud={name:"BaseTransition",props:zu,setup(e,{slots:t}){const n=Se(),o=Du();return()=>{const i=t.default&&Fl(t.default(),!0);if(!i||!i.length)return;const r=Hu(i),l=Ce(e),{mode:s}=l;if(o.isLeaving)return kr(r);const u=Ls(r);if(!u)return kr(r);let c=Do(u,l,o,n,d=>c=d);u.type!==pt&&ao(u,c);const a=n.subTree,f=a&&Ls(a);if(f&&f.type!==pt&&!Tn(u,f)&&ju(n).type!==pt){const d=Do(f,l,o,n);if(ao(f,d),s==="out-in"&&u.type!==pt)return o.isLeaving=!0,d.afterLeave=()=>{o.isLeaving=!1,n.job.flags&8||n.update()},kr(r);s==="in-out"&&u.type!==pt&&(d.delayLeave=(h,g,P)=>{const T=Ku(o,f);T[String(f.key)]=f,h[an]=()=>{g(),h[an]=void 0,delete c.delayedLeave},c.delayedLeave=P})}return r}}};function Hu(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==pt){t=n;break}}return t}const Wd=Ud;function Ku(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function Do(e,t,n,o,i){const{appear:r,mode:l,persisted:s=!1,onBeforeEnter:u,onEnter:c,onAfterEnter:a,onEnterCancelled:f,onBeforeLeave:d,onLeave:h,onAfterLeave:g,onLeaveCancelled:P,onBeforeAppear:T,onAppear:V,onAfterAppear:S,onAppearCancelled:R}=t,A=String(e.key),L=Ku(n,e),$=(_,E)=>{_&&Ft(_,o,9,E)},F=(_,E)=>{const B=E[1];$(_,E),be(_)?_.every(p=>p.length<=1)&&B():_.length<=1&&B()},X={mode:l,persisted:s,beforeEnter(_){let E=u;if(!n.isMounted)if(r)E=T||u;else return;_[an]&&_[an](!0);const B=L[A];B&&Tn(e,B)&&B.el[an]&&B.el[an](),$(E,[_])},enter(_){let E=c,B=a,p=f;if(!n.isMounted)if(r)E=V||c,B=S||a,p=R||f;else return;let z=!1;const I=_[ri]=le=>{z||(z=!0,le?$(p,[_]):$(B,[_]),X.delayedLeave&&X.delayedLeave(),_[ri]=void 0)};E?F(E,[_,I]):I()},leave(_,E){const B=String(e.key);if(_[ri]&&_[ri](!0),n.isUnmounting)return E();$(d,[_]);let p=!1;const z=_[an]=I=>{p||(p=!0,E(),I?$(P,[_]):$(g,[_]),_[an]=void 0,L[B]===e&&delete L[B])};L[B]=e,h?F(h,[_,z]):z()},clone(_){const E=Do(_,t,n,o,i);return i&&i(E),E}};return X}function kr(e){if(Yi(e))return e=vn(e),e.children=null,e}function Ls(e){if(!Yi(e))return Nu(e.type)&&e.children?Hu(e.children):e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&ye(n.default))return n.default()}}function ao(e,t){e.shapeFlag&6&&e.component?ao(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Fl(e,t=!1,n){let o=[],i=0;for(let r=0;r1)for(let r=0;rnl(h,t&&(be(t)?t[g]:t),n,o,i));return}if(Po(o)&&!i)return;const r=o.shapeFlag&4?or(o.component):o.el,l=i?null:r,{i:s,r:u}=e,c=t&&t.r,a=s.refs===$e?s.refs={}:s.refs,f=s.setupState,d=f===$e?()=>!1:h=>Ae(f,h)&&!(Object.getOwnPropertyDescriptor(a,h)||$e).get;if(c!=null&&c!==u&&(Ne(c)?(a[c]=null,d(c)&&(f[c]=null)):ct(c)&&(c.value=null)),ye(u))Uo(u,s,12,[l,a]);else{const h=Ne(u),g=ct(u);if(h||g){const P=()=>{if(e.f){const T=h?d(u)?f[u]:a[u]:u.value;i?be(T)&&Cl(T,r):be(T)?T.includes(r)||T.push(r):h?(a[u]=[r],d(u)&&(f[u]=a[u])):(u.value=[r],e.k&&(a[e.k]=u.value))}else h?(a[u]=l,d(u)&&(f[u]=l)):g&&(u.value=l,e.k&&(a[e.k]=l))};l?(P.id=-1,mt(P,n)):P()}}}const Po=e=>!!e.type.__asyncLoader,Yi=e=>e.type.__isKeepAlive;function Vl(e,t){Wu(e,"a",t)}function Wo(e,t){Wu(e,"da",t)}function Wu(e,t,n=tt){const o=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Ji(t,o,n),n){let i=n.parent;for(;i&&i.parent;)Yi(i.parent.vnode)&&Gd(o,t,n,i),i=i.parent}}function Gd(e,t,n,o){const i=Ji(t,e,o,!0);Xi(()=>{Cl(o[t],i)},n)}function Ji(e,t,n=tt,o=!1){if(n){const i=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...l)=>{bn();const s=Qo(n),u=Ft(t,n,e,l);return s(),yn(),u});return o?i.unshift(r):i.push(r),r}}const nn=e=>(t,n=tt)=>{(!nr||e==="sp")&&Ji(e,(...o)=>t(...o),n)},Qu=nn("bm"),wt=nn("m"),Nl=nn("bu"),Bl=nn("u"),Be=nn("bum"),Xi=nn("um"),Yd=nn("sp"),Jd=nn("rtg"),Xd=nn("rtc");function Zd(e,t=tt){Ji("ec",e,t)}const Gu="components";function vt(e,t){return Xu(Gu,e,!0,t)||e}const Yu=Symbol.for("v-ndc");function Ju(e){return Ne(e)?Xu(Gu,e,!1)||e:e||Yu}function Xu(e,t,n=!0,o=!1){const i=yt||tt;if(i){const r=i.type;{const s=Nh(r,!1);if(s&&(s===t||s===It(t)||s===Ki(It(t))))return r}const l=Rs(i[e]||r[e],t)||Rs(i.appContext[e],t);return!l&&o?r:l}}function Rs(e,t){return e&&(e[t]||e[It(t)]||e[Ki(It(t))])}function Dl(e,t,n,o){let i;const r=n,l=be(e);if(l||Ne(e)){const s=l&&no(e);s&&(e=Ui(e)),i=new Array(e.length);for(let u=0,c=e.length;ut(s,u,void 0,r));else{const s=Object.keys(e);i=new Array(s.length);for(let u=0,c=s.length;ue?pc(e)?or(e):ol(e.parent):null,Mo=Qe(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ol(e.parent),$root:e=>ol(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>zl(e),$forceUpdate:e=>e.f||(e.f=()=>{Il(e.update)}),$nextTick:e=>e.n||(e.n=Fe.bind(e.proxy)),$watch:e=>wh.bind(e)}),Er=(e,t)=>e!==$e&&!e.__isScriptSetup&&Ae(e,t),eh={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:o,data:i,props:r,accessCache:l,type:s,appContext:u}=e;let c;if(t[0]!=="$"){const h=l[t];if(h!==void 0)switch(h){case 1:return o[t];case 2:return i[t];case 4:return n[t];case 3:return r[t]}else{if(Er(o,t))return l[t]=1,o[t];if(i!==$e&&Ae(i,t))return l[t]=2,i[t];if((c=e.propsOptions[0])&&Ae(c,t))return l[t]=3,r[t];if(n!==$e&&Ae(n,t))return l[t]=4,n[t];il&&(l[t]=0)}}const a=Mo[t];let f,d;if(a)return t==="$attrs"&&ft(e.attrs,"get",""),a(e);if((f=s.__cssModules)&&(f=f[t]))return f;if(n!==$e&&Ae(n,t))return l[t]=4,n[t];if(d=u.config.globalProperties,Ae(d,t))return d[t]},set({_:e},t,n){const{data:o,setupState:i,ctx:r}=e;return Er(i,t)?(i[t]=n,!0):o!==$e&&Ae(o,t)?(o[t]=n,!0):Ae(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:i,propsOptions:r}},l){let s;return!!n[l]||e!==$e&&Ae(e,l)||Er(t,l)||(s=r[0])&&Ae(s,l)||Ae(o,l)||Ae(Mo,l)||Ae(i.config.globalProperties,l)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ae(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Is(e){return be(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let il=!0;function th(e){const t=zl(e),n=e.proxy,o=e.ctx;il=!1,t.beforeCreate&&Fs(t.beforeCreate,e,"bc");const{data:i,computed:r,methods:l,watch:s,provide:u,inject:c,created:a,beforeMount:f,mounted:d,beforeUpdate:h,updated:g,activated:P,deactivated:T,beforeDestroy:V,beforeUnmount:S,destroyed:R,unmounted:A,render:L,renderTracked:$,renderTriggered:F,errorCaptured:X,serverPrefetch:_,expose:E,inheritAttrs:B,components:p,directives:z,filters:I}=t;if(c&&nh(c,o,null),l)for(const Q in l){const N=l[Q];ye(N)&&(o[Q]=N.bind(n))}if(i){const Q=i.call(n,n);Ie(Q)&&(e.data=Ht(Q))}if(il=!0,r)for(const Q in r){const N=r[Q],ie=ye(N)?N.bind(n,n):ye(N.get)?N.get.bind(n,n):Kt,me=!ye(N)&&ye(N.set)?N.set.bind(n):Kt,O=b({get:ie,set:me});Object.defineProperty(o,Q,{enumerable:!0,configurable:!0,get:()=>O.value,set:k=>O.value=k})}if(s)for(const Q in s)Zu(s[Q],o,n,Q);if(u){const Q=ye(u)?u.call(n):u;Reflect.ownKeys(Q).forEach(N=>{Zi(N,Q[N])})}a&&Fs(a,e,"c");function ee(Q,N){be(N)?N.forEach(ie=>Q(ie.bind(n))):N&&Q(N.bind(n))}if(ee(Qu,f),ee(wt,d),ee(Nl,h),ee(Bl,g),ee(Vl,P),ee(Wo,T),ee(Zd,X),ee(Xd,$),ee(Jd,F),ee(Be,S),ee(Xi,A),ee(Yd,_),be(E))if(E.length){const Q=e.exposed||(e.exposed={});E.forEach(N=>{Object.defineProperty(Q,N,{get:()=>n[N],set:ie=>n[N]=ie})})}else e.exposed||(e.exposed={});L&&e.render===Kt&&(e.render=L),B!=null&&(e.inheritAttrs=B),p&&(e.components=p),z&&(e.directives=z),_&&Uu(e)}function nh(e,t,n=Kt){be(e)&&(e=rl(e));for(const o in e){const i=e[o];let r;Ie(i)?"default"in i?r=Ut(i.from||o,i.default,!0):r=Ut(i.from||o):r=Ut(i),ct(r)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>r.value,set:l=>r.value=l}):t[o]=r}}function Fs(e,t,n){Ft(be(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function Zu(e,t,n,o){let i=o.includes(".")?dc(n,o):()=>n[o];if(Ne(e)){const r=t[e];ye(r)&&he(i,r)}else if(ye(e))he(i,e.bind(n));else if(Ie(e))if(be(e))e.forEach(r=>Zu(r,t,n,o));else{const r=ye(e.handler)?e.handler.bind(n):t[e.handler];ye(r)&&he(i,r,e)}}function zl(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:i,optionsCache:r,config:{optionMergeStrategies:l}}=e.appContext,s=r.get(t);let u;return s?u=s:!i.length&&!n&&!o?u=t:(u={},i.length&&i.forEach(c=>ki(u,c,l,!0)),ki(u,t,l)),Ie(t)&&r.set(t,u),u}function ki(e,t,n,o=!1){const{mixins:i,extends:r}=t;r&&ki(e,r,n,!0),i&&i.forEach(l=>ki(e,l,n,!0));for(const l in t)if(!(o&&l==="expose")){const s=oh[l]||n&&n[l];e[l]=s?s(e[l],t[l]):t[l]}return e}const oh={data:Vs,props:Ns,emits:Ns,methods:Eo,computed:Eo,beforeCreate:ht,created:ht,beforeMount:ht,mounted:ht,beforeUpdate:ht,updated:ht,beforeDestroy:ht,beforeUnmount:ht,destroyed:ht,unmounted:ht,activated:ht,deactivated:ht,errorCaptured:ht,serverPrefetch:ht,components:Eo,directives:Eo,watch:rh,provide:Vs,inject:ih};function Vs(e,t){return t?e?function(){return Qe(ye(e)?e.call(this,this):e,ye(t)?t.call(this,this):t)}:t:e}function ih(e,t){return Eo(rl(e),rl(t))}function rl(e){if(be(e)){const t={};for(let n=0;n1)return n&&ye(t)?t.call(o&&o.proxy):t}}const tc={},nc=()=>Object.create(tc),oc=e=>Object.getPrototypeOf(e)===tc;function ah(e,t,n,o=!1){const i={},r=nc();e.propsDefaults=Object.create(null),ic(e,t,i,r);for(const l in e.propsOptions[0])l in i||(i[l]=void 0);n?e.props=o?i:Od(i):e.type.props?e.props=i:e.props=r,e.attrs=r}function uh(e,t,n,o){const{props:i,attrs:r,vnode:{patchFlag:l}}=e,s=Ce(i),[u]=e.propsOptions;let c=!1;if((o||l>0)&&!(l&16)){if(l&8){const a=e.vnode.dynamicProps;for(let f=0;f{u=!0;const[d,h]=rc(f,t,!0);Qe(l,d),h&&s.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}if(!r&&!u)return Ie(e)&&o.set(e,eo),eo;if(be(r))for(let a=0;ae[0]==="_"||e==="$stable",jl=e=>be(e)?e.map(jt):[jt(e)],fh=(e,t,n)=>{if(t._n)return t;const o=de((...i)=>jl(t(...i)),n);return o._c=!1,o},sc=(e,t,n)=>{const o=e._ctx;for(const i in e){if(lc(i))continue;const r=e[i];if(ye(r))t[i]=fh(i,r,o);else if(r!=null){const l=jl(r);t[i]=()=>l}}},ac=(e,t)=>{const n=jl(t);e.slots.default=()=>n},uc=(e,t,n)=>{for(const o in t)(n||o!=="_")&&(e[o]=t[o])},dh=(e,t,n)=>{const o=e.slots=nc();if(e.vnode.shapeFlag&32){const i=t._;i?(uc(o,t,n),n&&fu(o,"_",i,!0)):sc(t,o)}else t&&ac(e,t)},hh=(e,t,n)=>{const{vnode:o,slots:i}=e;let r=!0,l=$e;if(o.shapeFlag&32){const s=t._;s?n&&s===1?r=!1:uc(i,t,n):(r=!t.$stable,sc(t,i)),l=t}else t&&(ac(e,t),l={default:1});if(r)for(const s in i)!lc(s)&&l[s]==null&&delete i[s]},mt=Th;function vh(e){return mh(e)}function mh(e,t){const n=du();n.__VUE__=!0;const{insert:o,remove:i,patchProp:r,createElement:l,createText:s,createComment:u,setText:c,setElementText:a,parentNode:f,nextSibling:d,setScopeId:h=Kt,insertStaticContent:g}=e,P=(m,y,M,J=null,K=null,Y=null,oe=void 0,Z=null,U=!!y.dynamicChildren)=>{if(m===y)return;m&&!Tn(m,y)&&(J=ae(m),k(m,K,Y,!0),m=null),y.patchFlag===-2&&(U=!1,y.dynamicChildren=null);const{type:j,ref:v,shapeFlag:x}=y;switch(j){case tr:T(m,y,M,J);break;case pt:V(m,y,M,J);break;case qr:m==null&&S(y,M,J,oe);break;case at:p(m,y,M,J,K,Y,oe,Z,U);break;default:x&1?L(m,y,M,J,K,Y,oe,Z,U):x&6?z(m,y,M,J,K,Y,oe,Z,U):(x&64||x&128)&&j.process(m,y,M,J,K,Y,oe,Z,U,Te)}v!=null&&K&&nl(v,m&&m.ref,Y,y||m,!y)},T=(m,y,M,J)=>{if(m==null)o(y.el=s(y.children),M,J);else{const K=y.el=m.el;y.children!==m.children&&c(K,y.children)}},V=(m,y,M,J)=>{m==null?o(y.el=u(y.children||""),M,J):y.el=m.el},S=(m,y,M,J)=>{[m.el,m.anchor]=g(m.children,y,M,J,m.el,m.anchor)},R=({el:m,anchor:y},M,J)=>{let K;for(;m&&m!==y;)K=d(m),o(m,M,J),m=K;o(y,M,J)},A=({el:m,anchor:y})=>{let M;for(;m&&m!==y;)M=d(m),i(m),m=M;i(y)},L=(m,y,M,J,K,Y,oe,Z,U)=>{y.type==="svg"?oe="svg":y.type==="math"&&(oe="mathml"),m==null?$(y,M,J,K,Y,oe,Z,U):_(m,y,K,Y,oe,Z,U)},$=(m,y,M,J,K,Y,oe,Z)=>{let U,j;const{props:v,shapeFlag:x,transition:q,dirs:W}=m;if(U=m.el=l(m.type,Y,v&&v.is,v),x&8?a(U,m.children):x&16&&X(m.children,U,null,J,K,Tr(m,Y),oe,Z),W&&_n(m,null,J,"created"),F(U,m,m.scopeId,oe,J),v){for(const ue in v)ue!=="value"&&!qo(ue)&&r(U,ue,null,v[ue],Y,J);"value"in v&&r(U,"value",null,v.value,Y),(j=v.onVnodeBeforeMount)&&Bt(j,J,m)}W&&_n(m,null,J,"beforeMount");const re=gh(K,q);re&&q.beforeEnter(U),o(U,y,M),((j=v&&v.onVnodeMounted)||re||W)&&mt(()=>{j&&Bt(j,J,m),re&&q.enter(U),W&&_n(m,null,J,"mounted")},K)},F=(m,y,M,J,K)=>{if(M&&h(m,M),J)for(let Y=0;Y{for(let j=U;j{const Z=y.el=m.el;let{patchFlag:U,dynamicChildren:j,dirs:v}=y;U|=m.patchFlag&16;const x=m.props||$e,q=y.props||$e;let W;if(M&&Sn(M,!1),(W=q.onVnodeBeforeUpdate)&&Bt(W,M,y,m),v&&_n(y,m,M,"beforeUpdate"),M&&Sn(M,!0),(x.innerHTML&&q.innerHTML==null||x.textContent&&q.textContent==null)&&a(Z,""),j?E(m.dynamicChildren,j,Z,M,J,Tr(y,K),Y):oe||N(m,y,Z,null,M,J,Tr(y,K),Y,!1),U>0){if(U&16)B(Z,x,q,M,K);else if(U&2&&x.class!==q.class&&r(Z,"class",null,q.class,K),U&4&&r(Z,"style",x.style,q.style,K),U&8){const re=y.dynamicProps;for(let ue=0;ue{W&&Bt(W,M,y,m),v&&_n(y,m,M,"updated")},J)},E=(m,y,M,J,K,Y,oe)=>{for(let Z=0;Z{if(y!==M){if(y!==$e)for(const Y in y)!qo(Y)&&!(Y in M)&&r(m,Y,y[Y],null,K,J);for(const Y in M){if(qo(Y))continue;const oe=M[Y],Z=y[Y];oe!==Z&&Y!=="value"&&r(m,Y,Z,oe,K,J)}"value"in M&&r(m,"value",y.value,M.value,K)}},p=(m,y,M,J,K,Y,oe,Z,U)=>{const j=y.el=m?m.el:s(""),v=y.anchor=m?m.anchor:s("");let{patchFlag:x,dynamicChildren:q,slotScopeIds:W}=y;W&&(Z=Z?Z.concat(W):W),m==null?(o(j,M,J),o(v,M,J),X(y.children||[],M,v,K,Y,oe,Z,U)):x>0&&x&64&&q&&m.dynamicChildren?(E(m.dynamicChildren,q,M,K,Y,oe,Z),(y.key!=null||K&&y===K.subTree)&&Hl(m,y,!0)):N(m,y,M,v,K,Y,oe,Z,U)},z=(m,y,M,J,K,Y,oe,Z,U)=>{y.slotScopeIds=Z,m==null?y.shapeFlag&512?K.ctx.activate(y,M,J,oe,U):I(y,M,J,K,Y,oe,U):le(m,y,U)},I=(m,y,M,J,K,Y,oe)=>{const Z=m.component=Lh(m,J,K);if(Yi(m)&&(Z.ctx.renderer=Te),Rh(Z,!1,oe),Z.asyncDep){if(K&&K.registerDep(Z,ee,oe),!m.el){const U=Z.subTree=D(pt);V(null,U,y,M)}}else ee(Z,m,y,M,K,Y,oe)},le=(m,y,M)=>{const J=y.component=m.component;if(kh(m,y,M))if(J.asyncDep&&!J.asyncResolved){Q(J,y,M);return}else J.next=y,J.update();else y.el=m.el,J.vnode=y},ee=(m,y,M,J,K,Y,oe)=>{const Z=()=>{if(m.isMounted){let{next:x,bu:q,u:W,parent:re,vnode:ue}=m;{const Ge=cc(m);if(Ge){x&&(x.el=ue.el,Q(m,x,oe)),Ge.asyncDep.then(()=>{m.isUnmounted||Z()});return}}let pe=x,qe;Sn(m,!1),x?(x.el=ue.el,Q(m,x,oe)):x=ue,q&&wr(q),(qe=x.props&&x.props.onVnodeBeforeUpdate)&&Bt(qe,re,x,ue),Sn(m,!0);const Oe=Ar(m),He=m.subTree;m.subTree=Oe,P(He,Oe,f(He.el),ae(He),m,K,Y),x.el=Oe.el,pe===null&&Eh(m,Oe.el),W&&mt(W,K),(qe=x.props&&x.props.onVnodeUpdated)&&mt(()=>Bt(qe,re,x,ue),K)}else{let x;const{el:q,props:W}=y,{bm:re,m:ue,parent:pe,root:qe,type:Oe}=m,He=Po(y);if(Sn(m,!1),re&&wr(re),!He&&(x=W&&W.onVnodeBeforeMount)&&Bt(x,pe,y),Sn(m,!0),q&&dt){const Ge=()=>{m.subTree=Ar(m),dt(q,m.subTree,m,K,null)};He?Oe.__asyncHydrate(q,m,Ge):Ge()}else{qe.ce&&qe.ce._injectChildStyle(Oe);const Ge=m.subTree=Ar(m);P(null,Ge,M,J,m,K,Y),y.el=Ge.el}if(ue&&mt(ue,K),!He&&(x=W&&W.onVnodeMounted)){const Ge=y;mt(()=>Bt(x,pe,Ge),K)}(y.shapeFlag&256||pe&&Po(pe.vnode)&&pe.vnode.shapeFlag&256)&&m.a&&mt(m.a,K),m.isMounted=!0,y=M=J=null}};m.scope.on();const U=m.effect=new pu(Z);m.scope.off();const j=m.update=U.run.bind(U),v=m.job=U.runIfDirty.bind(U);v.i=m,v.id=m.uid,U.scheduler=()=>Il(v),Sn(m,!0),j()},Q=(m,y,M)=>{y.component=m;const J=m.vnode.props;m.vnode=y,m.next=null,uh(m,y.props,J,M),hh(m,y.children,M),bn(),Os(m),yn()},N=(m,y,M,J,K,Y,oe,Z,U=!1)=>{const j=m&&m.children,v=m?m.shapeFlag:0,x=y.children,{patchFlag:q,shapeFlag:W}=y;if(q>0){if(q&128){me(j,x,M,J,K,Y,oe,Z,U);return}else if(q&256){ie(j,x,M,J,K,Y,oe,Z,U);return}}W&8?(v&16&&H(j,K,Y),x!==j&&a(M,x)):v&16?W&16?me(j,x,M,J,K,Y,oe,Z,U):H(j,K,Y,!0):(v&8&&a(M,""),W&16&&X(x,M,J,K,Y,oe,Z,U))},ie=(m,y,M,J,K,Y,oe,Z,U)=>{m=m||eo,y=y||eo;const j=m.length,v=y.length,x=Math.min(j,v);let q;for(q=0;qv?H(m,K,Y,!0,!1,x):X(y,M,J,K,Y,oe,Z,U,x)},me=(m,y,M,J,K,Y,oe,Z,U)=>{let j=0;const v=y.length;let x=m.length-1,q=v-1;for(;j<=x&&j<=q;){const W=m[j],re=y[j]=U?un(y[j]):jt(y[j]);if(Tn(W,re))P(W,re,M,null,K,Y,oe,Z,U);else break;j++}for(;j<=x&&j<=q;){const W=m[x],re=y[q]=U?un(y[q]):jt(y[q]);if(Tn(W,re))P(W,re,M,null,K,Y,oe,Z,U);else break;x--,q--}if(j>x){if(j<=q){const W=q+1,re=Wq)for(;j<=x;)k(m[j],K,Y,!0),j++;else{const W=j,re=j,ue=new Map;for(j=re;j<=q;j++){const rt=y[j]=U?un(y[j]):jt(y[j]);rt.key!=null&&ue.set(rt.key,j)}let pe,qe=0;const Oe=q-re+1;let He=!1,Ge=0;const Wt=new Array(Oe);for(j=0;j=Oe){k(rt,K,Y,!0);continue}let St;if(rt.key!=null)St=ue.get(rt.key);else for(pe=re;pe<=q;pe++)if(Wt[pe-re]===0&&Tn(rt,y[pe])){St=pe;break}St===void 0?k(rt,K,Y,!0):(Wt[St-re]=j+1,St>=Ge?Ge=St:He=!0,P(rt,y[St],M,null,K,Y,oe,Z,U),qe++)}const bo=He?ph(Wt):eo;for(pe=bo.length-1,j=Oe-1;j>=0;j--){const rt=re+j,St=y[rt],yo=rt+1{const{el:Y,type:oe,transition:Z,children:U,shapeFlag:j}=m;if(j&6){O(m.component.subTree,y,M,J);return}if(j&128){m.suspense.move(y,M,J);return}if(j&64){oe.move(m,y,M,Te);return}if(oe===at){o(Y,y,M);for(let x=0;xZ.enter(Y),K);else{const{leave:x,delayLeave:q,afterLeave:W}=Z,re=()=>o(Y,y,M),ue=()=>{x(Y,()=>{re(),W&&W()})};q?q(Y,re,ue):ue()}else o(Y,y,M)},k=(m,y,M,J=!1,K=!1)=>{const{type:Y,props:oe,ref:Z,children:U,dynamicChildren:j,shapeFlag:v,patchFlag:x,dirs:q,cacheIndex:W}=m;if(x===-2&&(K=!1),Z!=null&&nl(Z,null,M,m,!0),W!=null&&(y.renderCache[W]=void 0),v&256){y.ctx.deactivate(m);return}const re=v&1&&q,ue=!Po(m);let pe;if(ue&&(pe=oe&&oe.onVnodeBeforeUnmount)&&Bt(pe,y,m),v&6)ve(m.component,M,J);else{if(v&128){m.suspense.unmount(M,J);return}re&&_n(m,null,y,"beforeUnmount"),v&64?m.type.remove(m,y,M,Te,J):j&&!j.hasOnce&&(Y!==at||x>0&&x&64)?H(j,y,M,!1,!0):(Y===at&&x&384||!K&&v&16)&&H(U,y,M),J&&te(m)}(ue&&(pe=oe&&oe.onVnodeUnmounted)||re)&&mt(()=>{pe&&Bt(pe,y,m),re&&_n(m,null,y,"unmounted")},M)},te=m=>{const{type:y,el:M,anchor:J,transition:K}=m;if(y===at){ge(M,J);return}if(y===qr){A(m);return}const Y=()=>{i(M),K&&!K.persisted&&K.afterLeave&&K.afterLeave()};if(m.shapeFlag&1&&K&&!K.persisted){const{leave:oe,delayLeave:Z}=K,U=()=>oe(M,Y);Z?Z(m.el,Y,U):U()}else Y()},ge=(m,y)=>{let M;for(;m!==y;)M=d(m),i(m),m=M;i(y)},ve=(m,y,M)=>{const{bum:J,scope:K,job:Y,subTree:oe,um:Z,m:U,a:j}=m;Ds(U),Ds(j),J&&wr(J),K.stop(),Y&&(Y.flags|=8,k(oe,m,y,M)),Z&&mt(Z,y),mt(()=>{m.isUnmounted=!0},y),y&&y.pendingBranch&&!y.isUnmounted&&m.asyncDep&&!m.asyncResolved&&m.suspenseId===y.pendingId&&(y.deps--,y.deps===0&&y.resolve())},H=(m,y,M,J=!1,K=!1,Y=0)=>{for(let oe=Y;oe{if(m.shapeFlag&6)return ae(m.component.subTree);if(m.shapeFlag&128)return m.suspense.next();const y=d(m.anchor||m.el),M=y&&y[Vu];return M?d(M):y};let _e=!1;const ne=(m,y,M)=>{m==null?y._vnode&&k(y._vnode,null,null,!0):P(y._vnode||null,m,y,null,null,null,M),y._vnode=m,_e||(_e=!0,Os(),Ru(),_e=!1)},Te={p:P,um:k,m:O,r:te,mt:I,mc:X,pc:N,pbc:E,n:ae,o:e};let Je,dt;return{render:ne,hydrate:Je,createApp:sh(ne,Je)}}function Tr({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Sn({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function gh(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Hl(e,t,n=!1){const o=e.children,i=t.children;if(be(o)&&be(i))for(let r=0;r>1,e[n[s]]0&&(t[o]=n[r-1]),n[r]=o)}}for(r=n.length,l=n[r-1];r-- >0;)n[r]=l,l=t[l];return n}function cc(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:cc(t)}function Ds(e){if(e)for(let t=0;tUt(bh);function he(e,t,n){return fc(e,t,n)}function fc(e,t,n=$e){const{immediate:o,deep:i,flush:r,once:l}=n,s=Qe({},n);let u;if(nr)if(r==="sync"){const d=yh();u=d.__watcherHandles||(d.__watcherHandles=[])}else if(!t||o)s.once=!0;else return{stop:Kt,resume:Kt,pause:Kt};const c=tt;s.call=(d,h,g)=>Ft(d,c,h,g);let a=!1;r==="post"?s.scheduler=d=>{mt(d,c&&c.suspense)}:r!=="sync"&&(a=!0,s.scheduler=(d,h)=>{h?d():Il(d)}),s.augmentJob=d=>{t&&(d.flags|=4),a&&(d.flags|=2,c&&(d.id=c.uid,d.i=c))};const f=Vd(e,t,s);return u&&u.push(f),f}function wh(e,t,n){const o=this.proxy,i=Ne(e)?e.includes(".")?dc(o,e):()=>o[e]:e.bind(o,o);let r;ye(t)?r=t:(r=t.handler,n=t);const l=Qo(this),s=fc(i,r.bind(o),n);return l(),s}function dc(e,t){const n=t.split(".");return()=>{let o=e;for(let i=0;it==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${It(t)}Modifiers`]||e[`${pn(t)}Modifiers`];function Sh(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||$e;let i=n;const r=t.startsWith("update:"),l=r&&_h(o,t.slice(7));l&&(l.trim&&(i=n.map(a=>Ne(a)?a.trim():a)),l.number&&(i=n.map(td)));let s,u=o[s=yr(t)]||o[s=yr(It(t))];!u&&r&&(u=o[s=yr(pn(t))]),u&&Ft(u,e,6,i);const c=o[s+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,Ft(c,e,6,i)}}function hc(e,t,n=!1){const o=t.emitsCache,i=o.get(e);if(i!==void 0)return i;const r=e.emits;let l={},s=!1;if(!ye(e)){const u=c=>{const a=hc(c,t,!0);a&&(s=!0,Qe(l,a))};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!r&&!s?(Ie(e)&&o.set(e,null),null):(be(r)?r.forEach(u=>l[u]=null):Qe(l,r),Ie(e)&&o.set(e,l),l)}function er(e,t){return!e||!zi(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ae(e,t[0].toLowerCase()+t.slice(1))||Ae(e,pn(t))||Ae(e,t))}function Ar(e){const{type:t,vnode:n,proxy:o,withProxy:i,propsOptions:[r],slots:l,attrs:s,emit:u,render:c,renderCache:a,props:f,data:d,setupState:h,ctx:g,inheritAttrs:P}=e,T=Ci(e);let V,S;try{if(n.shapeFlag&4){const A=i||o,L=A;V=jt(c.call(L,A,a,f,h,d,g)),S=s}else{const A=t;V=jt(A.length>1?A(f,{attrs:s,slots:l,emit:u}):A(f,null)),S=t.props?s:xh(s)}}catch(A){Lo.length=0,Gi(A,e,1),V=D(pt)}let R=V;if(S&&P!==!1){const A=Object.keys(S),{shapeFlag:L}=R;A.length&&L&7&&(r&&A.some(xl)&&(S=Ch(S,r)),R=vn(R,S,!1,!0))}return n.dirs&&(R=vn(R,null,!1,!0),R.dirs=R.dirs?R.dirs.concat(n.dirs):n.dirs),n.transition&&(R.transition=n.transition),V=R,Ci(T),V}const xh=e=>{let t;for(const n in e)(n==="class"||n==="style"||zi(n))&&((t||(t={}))[n]=e[n]);return t},Ch=(e,t)=>{const n={};for(const o in e)(!xl(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function kh(e,t,n){const{props:o,children:i,component:r}=e,{props:l,children:s,patchFlag:u}=t,c=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&u>=0){if(u&1024)return!0;if(u&16)return o?zs(o,l,c):!!l;if(u&8){const a=t.dynamicProps;for(let f=0;fe.__isSuspense;function Th(e,t){t&&t.pendingBranch?be(e)?t.effects.push(...e):t.effects.push(e):Dd(e)}const at=Symbol.for("v-fgt"),tr=Symbol.for("v-txt"),pt=Symbol.for("v-cmt"),qr=Symbol.for("v-stc"),Lo=[];let kt=null;function we(e=!1){Lo.push(kt=e?null:[])}function Ah(){Lo.pop(),kt=Lo[Lo.length-1]||null}let zo=1;function js(e){zo+=e,e<0&&kt&&(kt.hasOnce=!0)}function mc(e){return e.dynamicChildren=zo>0?kt||eo:null,Ah(),zo>0&&kt&&kt.push(e),e}function ot(e,t,n,o,i,r){return mc(G(e,t,n,o,i,r,!0))}function De(e,t,n,o,i){return mc(D(e,t,n,o,i,!0))}function sl(e){return e?e.__v_isVNode===!0:!1}function Tn(e,t){return e.type===t.type&&e.key===t.key}const gc=({key:e})=>e!=null?e:null,pi=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Ne(e)||ct(e)||ye(e)?{i:yt,r:e,k:t,f:!!n}:e:null);function G(e,t=null,n=null,o=0,i=null,r=e===at?0:1,l=!1,s=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&gc(t),ref:t&&pi(t),scopeId:Fu,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:o,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:yt};return s?(Kl(u,n),r&128&&e.normalize(u)):n&&(u.shapeFlag|=Ne(n)?8:16),zo>0&&!l&&kt&&(u.patchFlag>0||r&6)&&u.patchFlag!==32&&kt.push(u),u}const D=qh;function qh(e,t=null,n=null,o=0,i=null,r=!1){if((!e||e===Yu)&&(e=pt),sl(e)){const s=vn(e,t,!0);return n&&Kl(s,n),zo>0&&!r&&kt&&(s.shapeFlag&6?kt[kt.indexOf(e)]=s:kt.push(s)),s.patchFlag=-2,s}if(Bh(e)&&(e=e.__vccOpts),t){t=$h(t);let{class:s,style:u}=t;s&&!Ne(s)&&(t.class=At(s)),Ie(u)&&(Ml(u)&&!be(u)&&(u=Qe({},u)),t.style=so(u))}const l=Ne(e)?1:vc(e)?128:Nu(e)?64:Ie(e)?4:ye(e)?2:0;return G(e,t,n,o,i,l,r,!0)}function $h(e){return e?Ml(e)||oc(e)?Qe({},e):e:null}function vn(e,t,n=!1,o=!1){const{props:i,ref:r,patchFlag:l,children:s,transition:u}=e,c=t?Oh(i||{},t):i,a={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&gc(c),ref:t&&t.ref?n&&r?be(r)?r.concat(pi(t)):[r,pi(t)]:pi(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==at?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:u,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&vn(e.ssContent),ssFallback:e.ssFallback&&vn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return u&&o&&ao(a,u.clone(a)),a}function Ee(e=" ",t=0){return D(tr,null,e,t)}function $n(e="",t=!1){return t?(we(),De(pt,null,e)):D(pt,null,e)}function jt(e){return e==null||typeof e=="boolean"?D(pt):be(e)?D(at,null,e.slice()):typeof e=="object"?un(e):D(tr,null,String(e))}function un(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:vn(e)}function Kl(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(be(t))n=16;else if(typeof t=="object")if(o&65){const i=t.default;i&&(i._c&&(i._d=!1),Kl(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!oc(t)?t._ctx=yt:i===3&&yt&&(yt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ye(t)?(t={default:t,_ctx:yt},n=32):(t=String(t),o&64?(n=16,t=[Ee(t)]):n=8);e.children=t,e.shapeFlag|=n}function Oh(...e){const t={};for(let n=0;ntt||yt;let Ei,al;{const e=du(),t=(n,o)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(o),r=>{i.length>1?i.forEach(l=>l(r)):i[0](r)}};Ei=t("__VUE_INSTANCE_SETTERS__",n=>tt=n),al=t("__VUE_SSR_SETTERS__",n=>nr=n)}const Qo=e=>{const t=tt;return Ei(e),e.scope.on(),()=>{e.scope.off(),Ei(t)}},Hs=()=>{tt&&tt.scope.off(),Ei(null)};function pc(e){return e.vnode.shapeFlag&4}let nr=!1;function Rh(e,t=!1,n=!1){t&&al(t);const{props:o,children:i}=e.vnode,r=pc(e);ah(e,o,r,t),dh(e,i,n);const l=r?Ih(e,t):void 0;return t&&al(!1),l}function Ih(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,eh);const{setup:o}=n;if(o){const i=e.setupContext=o.length>1?Vh(e):null,r=Qo(e);bn();const l=Uo(o,e,0,[e.props,i]);if(yn(),r(),au(l)){if(Po(e)||Uu(e),l.then(Hs,Hs),t)return l.then(s=>{Ks(e,s,t)}).catch(s=>{Gi(s,e,0)});e.asyncDep=l}else Ks(e,l,t)}else bc(e,t)}function Ks(e,t,n){ye(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ie(t)&&(e.setupState=Pu(t)),bc(e,n)}let Us;function bc(e,t,n){const o=e.type;if(!e.render){if(!t&&Us&&!o.render){const i=o.template||zl(e).template;if(i){const{isCustomElement:r,compilerOptions:l}=e.appContext.config,{delimiters:s,compilerOptions:u}=o,c=Qe(Qe({isCustomElement:r,delimiters:s},l),u);o.render=Us(i,c)}}e.render=o.render||Kt}{const i=Qo(e);bn();try{th(e)}finally{yn(),i()}}}const Fh={get(e,t){return ft(e,"get",""),e[t]}};function Vh(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Fh),slots:e.slots,emit:e.emit,expose:t}}function or(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Pu(Qi(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Mo)return Mo[n](e)},has(t,n){return n in t||n in Mo}})):e.proxy}function Nh(e,t=!0){return ye(e)?e.displayName||e.name:e.name||t&&e.__name}function Bh(e){return ye(e)&&"__vccOpts"in e}const b=(e,t)=>Id(e,t,nr);function C(e,t,n){const o=arguments.length;return o===2?Ie(t)&&!be(t)?sl(t)?D(e,null,[t]):D(e,t):D(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&sl(n)&&(n=[n]),D(e,t,n))}const Dh="3.5.1";/** +**/function Ko(e,t,n,o){try{return o?e(...o):e()}catch(i){Gi(i,t,n)}}function Ft(e,t,n,o){if(ye(e)){const i=Ko(e,t,n,o);return i&&au(i)&&i.catch(r=>{Gi(r,t,n)}),i}if(be(e)){const i=[];for(let r=0;r>>1,i=Ct[o],r=No(i);r=No(n)?Ct.push(e):Ct.splice(Nd(t),0,e),e.flags&4||(e.flags|=1),Lu()}}function Lu(){!Bo&&!el&&(el=!0,Rl=Mu.then(Iu))}function Dd(e){be(e)?oo.push(...e):sn&&e.id===-1?sn.splice(Xn+1,0,e):e.flags&1||(oo.push(e),e.flags&4||(e.flags|=1)),Lu()}function $s(e,t,n=Bo?En+1:0){for(;nNo(n)-No(o));if(oo.length=0,sn){sn.push(...t);return}for(sn=t,Xn=0;Xne.id==null?e.flags&2?-1:1/0:e.id;function Iu(e){el=!1,Bo=!0;try{for(En=0;En{o._d&&js(-1);const r=Ci(t);let l;try{l=e(...i)}finally{Ci(r),o._d&&js(1)}return l};return o._n=!0,o._c=!0,o._d=!0,o}function Ye(e,t){if(yt===null)return e;const n=or(yt),o=e.dirs||(e.dirs=[]);for(let i=0;ie.__isTeleport,$o=e=>e&&(e.disabled||e.disabled===""),zd=e=>e&&(e.defer||e.defer===""),Ps=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Ms=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,tl=(e,t)=>{const n=e&&e.to;return Be(n)?t?t(n):null:n},jd={name:"Teleport",__isTeleport:!0,process(e,t,n,o,i,r,l,s,u,c){const{mc:a,pc:f,pbc:d,o:{insert:h,querySelector:g,createText:P,createComment:A}}=c,V=$o(t.props);let{shapeFlag:S,children:R,dynamicChildren:T}=t;if(e==null){const L=t.el=P(""),O=t.anchor=P("");h(L,n,o),h(O,n,o);const F=(_,E)=>{S&16&&a(R,_,E,i,r,l,s,u)},X=()=>{const _=t.target=tl(t.props,g),E=Nu(_,t,P,h);_&&(l!=="svg"&&Ps(_)?l="svg":l!=="mathml"&&Ms(_)&&(l="mathml"),V||(F(_,E),gi(t)))};V&&(F(n,O),gi(t)),zd(t.props)?mt(X,r):X()}else{t.el=e.el,t.targetStart=e.targetStart;const L=t.anchor=e.anchor,O=t.target=e.target,F=t.targetAnchor=e.targetAnchor,X=$o(e.props),_=X?n:O,E=X?L:F;if(l==="svg"||Ps(O)?l="svg":(l==="mathml"||Ms(O))&&(l="mathml"),T?(d(e.dynamicChildren,T,_,i,r,l,s),Hl(e,t,!0)):u||f(e,t,_,E,i,r,l,s,!1),V)X?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):ii(t,n,L,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const N=t.target=tl(t.props,g);N&&ii(t,N,null,c,0)}else X&&ii(t,O,F,c,1);gi(t)}},remove(e,t,n,{um:o,o:{remove:i}},r){const{shapeFlag:l,children:s,anchor:u,targetStart:c,targetAnchor:a,target:f,props:d}=e;if(f&&(i(c),i(a)),r&&i(u),l&16){const h=r||!$o(d);for(let g=0;g{e.isMounted=!0}),Ne(()=>{e.isUnmounting=!0}),e}const Et=[Function,Array],zu={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Et,onEnter:Et,onAfterEnter:Et,onEnterCancelled:Et,onBeforeLeave:Et,onLeave:Et,onAfterLeave:Et,onLeaveCancelled:Et,onBeforeAppear:Et,onAppear:Et,onAfterAppear:Et,onAppearCancelled:Et},ju=e=>{const t=e.subTree;return t.component?ju(t.component):t},Kd={name:"BaseTransition",props:zu,setup(e,{slots:t}){const n=Se(),o=Du();return()=>{const i=t.default&&Fl(t.default(),!0);if(!i||!i.length)return;const r=Hu(i),l=Ce(e),{mode:s}=l;if(o.isLeaving)return kr(r);const u=Ls(r);if(!u)return kr(r);let c=Do(u,l,o,n,d=>c=d);u.type!==pt&&ao(u,c);const a=n.subTree,f=a&&Ls(a);if(f&&f.type!==pt&&!An(u,f)&&ju(n).type!==pt){const d=Do(f,l,o,n);if(ao(f,d),s==="out-in"&&u.type!==pt)return o.isLeaving=!0,d.afterLeave=()=>{o.isLeaving=!1,n.job.flags&8||n.update()},kr(r);s==="in-out"&&u.type!==pt&&(d.delayLeave=(h,g,P)=>{const A=Uu(o,f);A[String(f.key)]=f,h[an]=()=>{g(),h[an]=void 0,delete c.delayedLeave},c.delayedLeave=P})}return r}}};function Hu(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==pt){t=n;break}}return t}const Wd=Kd;function Uu(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function Do(e,t,n,o,i){const{appear:r,mode:l,persisted:s=!1,onBeforeEnter:u,onEnter:c,onAfterEnter:a,onEnterCancelled:f,onBeforeLeave:d,onLeave:h,onAfterLeave:g,onLeaveCancelled:P,onBeforeAppear:A,onAppear:V,onAfterAppear:S,onAppearCancelled:R}=t,T=String(e.key),L=Uu(n,e),O=(_,E)=>{_&&Ft(_,o,9,E)},F=(_,E)=>{const N=E[1];O(_,E),be(_)?_.every(p=>p.length<=1)&&N():_.length<=1&&N()},X={mode:l,persisted:s,beforeEnter(_){let E=u;if(!n.isMounted)if(r)E=A||u;else return;_[an]&&_[an](!0);const N=L[T];N&&An(e,N)&&N.el[an]&&N.el[an](),O(E,[_])},enter(_){let E=c,N=a,p=f;if(!n.isMounted)if(r)E=V||c,N=S||a,p=R||f;else return;let z=!1;const I=_[ri]=le=>{z||(z=!0,le?O(p,[_]):O(N,[_]),X.delayedLeave&&X.delayedLeave(),_[ri]=void 0)};E?F(E,[_,I]):I()},leave(_,E){const N=String(e.key);if(_[ri]&&_[ri](!0),n.isUnmounting)return E();O(d,[_]);let p=!1;const z=_[an]=I=>{p||(p=!0,E(),I?O(P,[_]):O(g,[_]),_[an]=void 0,L[N]===e&&delete L[N])};L[N]=e,h?F(h,[_,z]):z()},clone(_){const E=Do(_,t,n,o,i);return i&&i(E),E}};return X}function kr(e){if(Yi(e))return e=vn(e),e.children=null,e}function Ls(e){if(!Yi(e))return Bu(e.type)&&e.children?Hu(e.children):e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&ye(n.default))return n.default()}}function ao(e,t){e.shapeFlag&6&&e.component?ao(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Fl(e,t=!1,n){let o=[],i=0;for(let r=0;r1)for(let r=0;rnl(h,t&&(be(t)?t[g]:t),n,o,i));return}if(Po(o)&&!i)return;const r=o.shapeFlag&4?or(o.component):o.el,l=i?null:r,{i:s,r:u}=e,c=t&&t.r,a=s.refs===Oe?s.refs={}:s.refs,f=s.setupState,d=f===Oe?()=>!1:h=>Te(f,h)&&!(Object.getOwnPropertyDescriptor(a,h)||Oe).get;if(c!=null&&c!==u&&(Be(c)?(a[c]=null,d(c)&&(f[c]=null)):ct(c)&&(c.value=null)),ye(u))Ko(u,s,12,[l,a]);else{const h=Be(u),g=ct(u);if(h||g){const P=()=>{if(e.f){const A=h?d(u)?f[u]:a[u]:u.value;i?be(A)&&Cl(A,r):be(A)?A.includes(r)||A.push(r):h?(a[u]=[r],d(u)&&(f[u]=a[u])):(u.value=[r],e.k&&(a[e.k]=u.value))}else h?(a[u]=l,d(u)&&(f[u]=l)):g&&(u.value=l,e.k&&(a[e.k]=l))};l?(P.id=-1,mt(P,n)):P()}}}const Po=e=>!!e.type.__asyncLoader,Yi=e=>e.type.__isKeepAlive;function Vl(e,t){Wu(e,"a",t)}function Wo(e,t){Wu(e,"da",t)}function Wu(e,t,n=tt){const o=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Ji(t,o,n),n){let i=n.parent;for(;i&&i.parent;)Yi(i.parent.vnode)&&Gd(o,t,n,i),i=i.parent}}function Gd(e,t,n,o){const i=Ji(t,e,o,!0);Xi(()=>{Cl(o[t],i)},n)}function Ji(e,t,n=tt,o=!1){if(n){const i=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...l)=>{bn();const s=Qo(n),u=Ft(t,n,e,l);return s(),yn(),u});return o?i.unshift(r):i.push(r),r}}const nn=e=>(t,n=tt)=>{(!nr||e==="sp")&&Ji(e,(...o)=>t(...o),n)},Qu=nn("bm"),wt=nn("m"),Bl=nn("bu"),Nl=nn("u"),Ne=nn("bum"),Xi=nn("um"),Yd=nn("sp"),Jd=nn("rtg"),Xd=nn("rtc");function Zd(e,t=tt){Ji("ec",e,t)}const Gu="components";function vt(e,t){return Xu(Gu,e,!0,t)||e}const Yu=Symbol.for("v-ndc");function Ju(e){return Be(e)?Xu(Gu,e,!1)||e:e||Yu}function Xu(e,t,n=!0,o=!1){const i=yt||tt;if(i){const r=i.type;{const s=Bh(r,!1);if(s&&(s===t||s===It(t)||s===Ui(It(t))))return r}const l=Rs(i[e]||r[e],t)||Rs(i.appContext[e],t);return!l&&o?r:l}}function Rs(e,t){return e&&(e[t]||e[It(t)]||e[Ui(It(t))])}function Dl(e,t,n,o){let i;const r=n,l=be(e);if(l||Be(e)){const s=l&&no(e);s&&(e=Ki(e)),i=new Array(e.length);for(let u=0,c=e.length;ut(s,u,void 0,r));else{const s=Object.keys(e);i=new Array(s.length);for(let u=0,c=s.length;ue?pc(e)?or(e):ol(e.parent):null,Mo=Qe(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ol(e.parent),$root:e=>ol(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>zl(e),$forceUpdate:e=>e.f||(e.f=()=>{Il(e.update)}),$nextTick:e=>e.n||(e.n=Fe.bind(e.proxy)),$watch:e=>wh.bind(e)}),Er=(e,t)=>e!==Oe&&!e.__isScriptSetup&&Te(e,t),eh={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:o,data:i,props:r,accessCache:l,type:s,appContext:u}=e;let c;if(t[0]!=="$"){const h=l[t];if(h!==void 0)switch(h){case 1:return o[t];case 2:return i[t];case 4:return n[t];case 3:return r[t]}else{if(Er(o,t))return l[t]=1,o[t];if(i!==Oe&&Te(i,t))return l[t]=2,i[t];if((c=e.propsOptions[0])&&Te(c,t))return l[t]=3,r[t];if(n!==Oe&&Te(n,t))return l[t]=4,n[t];il&&(l[t]=0)}}const a=Mo[t];let f,d;if(a)return t==="$attrs"&&ft(e.attrs,"get",""),a(e);if((f=s.__cssModules)&&(f=f[t]))return f;if(n!==Oe&&Te(n,t))return l[t]=4,n[t];if(d=u.config.globalProperties,Te(d,t))return d[t]},set({_:e},t,n){const{data:o,setupState:i,ctx:r}=e;return Er(i,t)?(i[t]=n,!0):o!==Oe&&Te(o,t)?(o[t]=n,!0):Te(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:i,propsOptions:r}},l){let s;return!!n[l]||e!==Oe&&Te(e,l)||Er(t,l)||(s=r[0])&&Te(s,l)||Te(o,l)||Te(Mo,l)||Te(i.config.globalProperties,l)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Te(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Is(e){return be(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let il=!0;function th(e){const t=zl(e),n=e.proxy,o=e.ctx;il=!1,t.beforeCreate&&Fs(t.beforeCreate,e,"bc");const{data:i,computed:r,methods:l,watch:s,provide:u,inject:c,created:a,beforeMount:f,mounted:d,beforeUpdate:h,updated:g,activated:P,deactivated:A,beforeDestroy:V,beforeUnmount:S,destroyed:R,unmounted:T,render:L,renderTracked:O,renderTriggered:F,errorCaptured:X,serverPrefetch:_,expose:E,inheritAttrs:N,components:p,directives:z,filters:I}=t;if(c&&nh(c,o,null),l)for(const Q in l){const B=l[Q];ye(B)&&(o[Q]=B.bind(n))}if(i){const Q=i.call(n,n);Ie(Q)&&(e.data=Ht(Q))}if(il=!0,r)for(const Q in r){const B=r[Q],ie=ye(B)?B.bind(n,n):ye(B.get)?B.get.bind(n,n):Ut,me=!ye(B)&&ye(B.set)?B.set.bind(n):Ut,$=b({get:ie,set:me});Object.defineProperty(o,Q,{enumerable:!0,configurable:!0,get:()=>$.value,set:k=>$.value=k})}if(s)for(const Q in s)Zu(s[Q],o,n,Q);if(u){const Q=ye(u)?u.call(n):u;Reflect.ownKeys(Q).forEach(B=>{Zi(B,Q[B])})}a&&Fs(a,e,"c");function ee(Q,B){be(B)?B.forEach(ie=>Q(ie.bind(n))):B&&Q(B.bind(n))}if(ee(Qu,f),ee(wt,d),ee(Bl,h),ee(Nl,g),ee(Vl,P),ee(Wo,A),ee(Zd,X),ee(Xd,O),ee(Jd,F),ee(Ne,S),ee(Xi,T),ee(Yd,_),be(E))if(E.length){const Q=e.exposed||(e.exposed={});E.forEach(B=>{Object.defineProperty(Q,B,{get:()=>n[B],set:ie=>n[B]=ie})})}else e.exposed||(e.exposed={});L&&e.render===Ut&&(e.render=L),N!=null&&(e.inheritAttrs=N),p&&(e.components=p),z&&(e.directives=z),_&&Ku(e)}function nh(e,t,n=Ut){be(e)&&(e=rl(e));for(const o in e){const i=e[o];let r;Ie(i)?"default"in i?r=Kt(i.from||o,i.default,!0):r=Kt(i.from||o):r=Kt(i),ct(r)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>r.value,set:l=>r.value=l}):t[o]=r}}function Fs(e,t,n){Ft(be(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function Zu(e,t,n,o){let i=o.includes(".")?dc(n,o):()=>n[o];if(Be(e)){const r=t[e];ye(r)&&he(i,r)}else if(ye(e))he(i,e.bind(n));else if(Ie(e))if(be(e))e.forEach(r=>Zu(r,t,n,o));else{const r=ye(e.handler)?e.handler.bind(n):t[e.handler];ye(r)&&he(i,r,e)}}function zl(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:i,optionsCache:r,config:{optionMergeStrategies:l}}=e.appContext,s=r.get(t);let u;return s?u=s:!i.length&&!n&&!o?u=t:(u={},i.length&&i.forEach(c=>ki(u,c,l,!0)),ki(u,t,l)),Ie(t)&&r.set(t,u),u}function ki(e,t,n,o=!1){const{mixins:i,extends:r}=t;r&&ki(e,r,n,!0),i&&i.forEach(l=>ki(e,l,n,!0));for(const l in t)if(!(o&&l==="expose")){const s=oh[l]||n&&n[l];e[l]=s?s(e[l],t[l]):t[l]}return e}const oh={data:Vs,props:Bs,emits:Bs,methods:Eo,computed:Eo,beforeCreate:ht,created:ht,beforeMount:ht,mounted:ht,beforeUpdate:ht,updated:ht,beforeDestroy:ht,beforeUnmount:ht,destroyed:ht,unmounted:ht,activated:ht,deactivated:ht,errorCaptured:ht,serverPrefetch:ht,components:Eo,directives:Eo,watch:rh,provide:Vs,inject:ih};function Vs(e,t){return t?e?function(){return Qe(ye(e)?e.call(this,this):e,ye(t)?t.call(this,this):t)}:t:e}function ih(e,t){return Eo(rl(e),rl(t))}function rl(e){if(be(e)){const t={};for(let n=0;n1)return n&&ye(t)?t.call(o&&o.proxy):t}}const tc={},nc=()=>Object.create(tc),oc=e=>Object.getPrototypeOf(e)===tc;function ah(e,t,n,o=!1){const i={},r=nc();e.propsDefaults=Object.create(null),ic(e,t,i,r);for(const l in e.propsOptions[0])l in i||(i[l]=void 0);n?e.props=o?i:$d(i):e.type.props?e.props=i:e.props=r,e.attrs=r}function uh(e,t,n,o){const{props:i,attrs:r,vnode:{patchFlag:l}}=e,s=Ce(i),[u]=e.propsOptions;let c=!1;if((o||l>0)&&!(l&16)){if(l&8){const a=e.vnode.dynamicProps;for(let f=0;f{u=!0;const[d,h]=rc(f,t,!0);Qe(l,d),h&&s.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}if(!r&&!u)return Ie(e)&&o.set(e,eo),eo;if(be(r))for(let a=0;ae[0]==="_"||e==="$stable",jl=e=>be(e)?e.map(jt):[jt(e)],fh=(e,t,n)=>{if(t._n)return t;const o=de((...i)=>jl(t(...i)),n);return o._c=!1,o},sc=(e,t,n)=>{const o=e._ctx;for(const i in e){if(lc(i))continue;const r=e[i];if(ye(r))t[i]=fh(i,r,o);else if(r!=null){const l=jl(r);t[i]=()=>l}}},ac=(e,t)=>{const n=jl(t);e.slots.default=()=>n},uc=(e,t,n)=>{for(const o in t)(n||o!=="_")&&(e[o]=t[o])},dh=(e,t,n)=>{const o=e.slots=nc();if(e.vnode.shapeFlag&32){const i=t._;i?(uc(o,t,n),n&&fu(o,"_",i,!0)):sc(t,o)}else t&&ac(e,t)},hh=(e,t,n)=>{const{vnode:o,slots:i}=e;let r=!0,l=Oe;if(o.shapeFlag&32){const s=t._;s?n&&s===1?r=!1:uc(i,t,n):(r=!t.$stable,sc(t,i)),l=t}else t&&(ac(e,t),l={default:1});if(r)for(const s in i)!lc(s)&&l[s]==null&&delete i[s]},mt=Ah;function vh(e){return mh(e)}function mh(e,t){const n=du();n.__VUE__=!0;const{insert:o,remove:i,patchProp:r,createElement:l,createText:s,createComment:u,setText:c,setElementText:a,parentNode:f,nextSibling:d,setScopeId:h=Ut,insertStaticContent:g}=e,P=(m,y,M,J=null,U=null,Y=null,oe=void 0,Z=null,K=!!y.dynamicChildren)=>{if(m===y)return;m&&!An(m,y)&&(J=ae(m),k(m,U,Y,!0),m=null),y.patchFlag===-2&&(K=!1,y.dynamicChildren=null);const{type:j,ref:v,shapeFlag:x}=y;switch(j){case tr:A(m,y,M,J);break;case pt:V(m,y,M,J);break;case qr:m==null&&S(y,M,J,oe);break;case at:p(m,y,M,J,U,Y,oe,Z,K);break;default:x&1?L(m,y,M,J,U,Y,oe,Z,K):x&6?z(m,y,M,J,U,Y,oe,Z,K):(x&64||x&128)&&j.process(m,y,M,J,U,Y,oe,Z,K,Ae)}v!=null&&U&&nl(v,m&&m.ref,Y,y||m,!y)},A=(m,y,M,J)=>{if(m==null)o(y.el=s(y.children),M,J);else{const U=y.el=m.el;y.children!==m.children&&c(U,y.children)}},V=(m,y,M,J)=>{m==null?o(y.el=u(y.children||""),M,J):y.el=m.el},S=(m,y,M,J)=>{[m.el,m.anchor]=g(m.children,y,M,J,m.el,m.anchor)},R=({el:m,anchor:y},M,J)=>{let U;for(;m&&m!==y;)U=d(m),o(m,M,J),m=U;o(y,M,J)},T=({el:m,anchor:y})=>{let M;for(;m&&m!==y;)M=d(m),i(m),m=M;i(y)},L=(m,y,M,J,U,Y,oe,Z,K)=>{y.type==="svg"?oe="svg":y.type==="math"&&(oe="mathml"),m==null?O(y,M,J,U,Y,oe,Z,K):_(m,y,U,Y,oe,Z,K)},O=(m,y,M,J,U,Y,oe,Z)=>{let K,j;const{props:v,shapeFlag:x,transition:q,dirs:W}=m;if(K=m.el=l(m.type,Y,v&&v.is,v),x&8?a(K,m.children):x&16&&X(m.children,K,null,J,U,Ar(m,Y),oe,Z),W&&_n(m,null,J,"created"),F(K,m,m.scopeId,oe,J),v){for(const ue in v)ue!=="value"&&!qo(ue)&&r(K,ue,null,v[ue],Y,J);"value"in v&&r(K,"value",null,v.value,Y),(j=v.onVnodeBeforeMount)&&Nt(j,J,m)}W&&_n(m,null,J,"beforeMount");const re=gh(U,q);re&&q.beforeEnter(K),o(K,y,M),((j=v&&v.onVnodeMounted)||re||W)&&mt(()=>{j&&Nt(j,J,m),re&&q.enter(K),W&&_n(m,null,J,"mounted")},U)},F=(m,y,M,J,U)=>{if(M&&h(m,M),J)for(let Y=0;Y{for(let j=K;j{const Z=y.el=m.el;let{patchFlag:K,dynamicChildren:j,dirs:v}=y;K|=m.patchFlag&16;const x=m.props||Oe,q=y.props||Oe;let W;if(M&&Sn(M,!1),(W=q.onVnodeBeforeUpdate)&&Nt(W,M,y,m),v&&_n(y,m,M,"beforeUpdate"),M&&Sn(M,!0),(x.innerHTML&&q.innerHTML==null||x.textContent&&q.textContent==null)&&a(Z,""),j?E(m.dynamicChildren,j,Z,M,J,Ar(y,U),Y):oe||B(m,y,Z,null,M,J,Ar(y,U),Y,!1),K>0){if(K&16)N(Z,x,q,M,U);else if(K&2&&x.class!==q.class&&r(Z,"class",null,q.class,U),K&4&&r(Z,"style",x.style,q.style,U),K&8){const re=y.dynamicProps;for(let ue=0;ue{W&&Nt(W,M,y,m),v&&_n(y,m,M,"updated")},J)},E=(m,y,M,J,U,Y,oe)=>{for(let Z=0;Z{if(y!==M){if(y!==Oe)for(const Y in y)!qo(Y)&&!(Y in M)&&r(m,Y,y[Y],null,U,J);for(const Y in M){if(qo(Y))continue;const oe=M[Y],Z=y[Y];oe!==Z&&Y!=="value"&&r(m,Y,Z,oe,U,J)}"value"in M&&r(m,"value",y.value,M.value,U)}},p=(m,y,M,J,U,Y,oe,Z,K)=>{const j=y.el=m?m.el:s(""),v=y.anchor=m?m.anchor:s("");let{patchFlag:x,dynamicChildren:q,slotScopeIds:W}=y;W&&(Z=Z?Z.concat(W):W),m==null?(o(j,M,J),o(v,M,J),X(y.children||[],M,v,U,Y,oe,Z,K)):x>0&&x&64&&q&&m.dynamicChildren?(E(m.dynamicChildren,q,M,U,Y,oe,Z),(y.key!=null||U&&y===U.subTree)&&Hl(m,y,!0)):B(m,y,M,v,U,Y,oe,Z,K)},z=(m,y,M,J,U,Y,oe,Z,K)=>{y.slotScopeIds=Z,m==null?y.shapeFlag&512?U.ctx.activate(y,M,J,oe,K):I(y,M,J,U,Y,oe,K):le(m,y,K)},I=(m,y,M,J,U,Y,oe)=>{const Z=m.component=Lh(m,J,U);if(Yi(m)&&(Z.ctx.renderer=Ae),Rh(Z,!1,oe),Z.asyncDep){if(U&&U.registerDep(Z,ee,oe),!m.el){const K=Z.subTree=D(pt);V(null,K,y,M)}}else ee(Z,m,y,M,U,Y,oe)},le=(m,y,M)=>{const J=y.component=m.component;if(kh(m,y,M))if(J.asyncDep&&!J.asyncResolved){Q(J,y,M);return}else J.next=y,J.update();else y.el=m.el,J.vnode=y},ee=(m,y,M,J,U,Y,oe)=>{const Z=()=>{if(m.isMounted){let{next:x,bu:q,u:W,parent:re,vnode:ue}=m;{const Ge=cc(m);if(Ge){x&&(x.el=ue.el,Q(m,x,oe)),Ge.asyncDep.then(()=>{m.isUnmounted||Z()});return}}let pe=x,qe;Sn(m,!1),x?(x.el=ue.el,Q(m,x,oe)):x=ue,q&&wr(q),(qe=x.props&&x.props.onVnodeBeforeUpdate)&&Nt(qe,re,x,ue),Sn(m,!0);const $e=Tr(m),He=m.subTree;m.subTree=$e,P(He,$e,f(He.el),ae(He),m,U,Y),x.el=$e.el,pe===null&&Eh(m,$e.el),W&&mt(W,U),(qe=x.props&&x.props.onVnodeUpdated)&&mt(()=>Nt(qe,re,x,ue),U)}else{let x;const{el:q,props:W}=y,{bm:re,m:ue,parent:pe,root:qe,type:$e}=m,He=Po(y);if(Sn(m,!1),re&&wr(re),!He&&(x=W&&W.onVnodeBeforeMount)&&Nt(x,pe,y),Sn(m,!0),q&&dt){const Ge=()=>{m.subTree=Tr(m),dt(q,m.subTree,m,U,null)};He?$e.__asyncHydrate(q,m,Ge):Ge()}else{qe.ce&&qe.ce._injectChildStyle($e);const Ge=m.subTree=Tr(m);P(null,Ge,M,J,m,U,Y),y.el=Ge.el}if(ue&&mt(ue,U),!He&&(x=W&&W.onVnodeMounted)){const Ge=y;mt(()=>Nt(x,pe,Ge),U)}(y.shapeFlag&256||pe&&Po(pe.vnode)&&pe.vnode.shapeFlag&256)&&m.a&&mt(m.a,U),m.isMounted=!0,y=M=J=null}};m.scope.on();const K=m.effect=new pu(Z);m.scope.off();const j=m.update=K.run.bind(K),v=m.job=K.runIfDirty.bind(K);v.i=m,v.id=m.uid,K.scheduler=()=>Il(v),Sn(m,!0),j()},Q=(m,y,M)=>{y.component=m;const J=m.vnode.props;m.vnode=y,m.next=null,uh(m,y.props,J,M),hh(m,y.children,M),bn(),$s(m),yn()},B=(m,y,M,J,U,Y,oe,Z,K=!1)=>{const j=m&&m.children,v=m?m.shapeFlag:0,x=y.children,{patchFlag:q,shapeFlag:W}=y;if(q>0){if(q&128){me(j,x,M,J,U,Y,oe,Z,K);return}else if(q&256){ie(j,x,M,J,U,Y,oe,Z,K);return}}W&8?(v&16&&H(j,U,Y),x!==j&&a(M,x)):v&16?W&16?me(j,x,M,J,U,Y,oe,Z,K):H(j,U,Y,!0):(v&8&&a(M,""),W&16&&X(x,M,J,U,Y,oe,Z,K))},ie=(m,y,M,J,U,Y,oe,Z,K)=>{m=m||eo,y=y||eo;const j=m.length,v=y.length,x=Math.min(j,v);let q;for(q=0;qv?H(m,U,Y,!0,!1,x):X(y,M,J,U,Y,oe,Z,K,x)},me=(m,y,M,J,U,Y,oe,Z,K)=>{let j=0;const v=y.length;let x=m.length-1,q=v-1;for(;j<=x&&j<=q;){const W=m[j],re=y[j]=K?un(y[j]):jt(y[j]);if(An(W,re))P(W,re,M,null,U,Y,oe,Z,K);else break;j++}for(;j<=x&&j<=q;){const W=m[x],re=y[q]=K?un(y[q]):jt(y[q]);if(An(W,re))P(W,re,M,null,U,Y,oe,Z,K);else break;x--,q--}if(j>x){if(j<=q){const W=q+1,re=Wq)for(;j<=x;)k(m[j],U,Y,!0),j++;else{const W=j,re=j,ue=new Map;for(j=re;j<=q;j++){const rt=y[j]=K?un(y[j]):jt(y[j]);rt.key!=null&&ue.set(rt.key,j)}let pe,qe=0;const $e=q-re+1;let He=!1,Ge=0;const Wt=new Array($e);for(j=0;j<$e;j++)Wt[j]=0;for(j=W;j<=x;j++){const rt=m[j];if(qe>=$e){k(rt,U,Y,!0);continue}let St;if(rt.key!=null)St=ue.get(rt.key);else for(pe=re;pe<=q;pe++)if(Wt[pe-re]===0&&An(rt,y[pe])){St=pe;break}St===void 0?k(rt,U,Y,!0):(Wt[St-re]=j+1,St>=Ge?Ge=St:He=!0,P(rt,y[St],M,null,U,Y,oe,Z,K),qe++)}const bo=He?ph(Wt):eo;for(pe=bo.length-1,j=$e-1;j>=0;j--){const rt=re+j,St=y[rt],yo=rt+1{const{el:Y,type:oe,transition:Z,children:K,shapeFlag:j}=m;if(j&6){$(m.component.subTree,y,M,J);return}if(j&128){m.suspense.move(y,M,J);return}if(j&64){oe.move(m,y,M,Ae);return}if(oe===at){o(Y,y,M);for(let x=0;xZ.enter(Y),U);else{const{leave:x,delayLeave:q,afterLeave:W}=Z,re=()=>o(Y,y,M),ue=()=>{x(Y,()=>{re(),W&&W()})};q?q(Y,re,ue):ue()}else o(Y,y,M)},k=(m,y,M,J=!1,U=!1)=>{const{type:Y,props:oe,ref:Z,children:K,dynamicChildren:j,shapeFlag:v,patchFlag:x,dirs:q,cacheIndex:W}=m;if(x===-2&&(U=!1),Z!=null&&nl(Z,null,M,m,!0),W!=null&&(y.renderCache[W]=void 0),v&256){y.ctx.deactivate(m);return}const re=v&1&&q,ue=!Po(m);let pe;if(ue&&(pe=oe&&oe.onVnodeBeforeUnmount)&&Nt(pe,y,m),v&6)ve(m.component,M,J);else{if(v&128){m.suspense.unmount(M,J);return}re&&_n(m,null,y,"beforeUnmount"),v&64?m.type.remove(m,y,M,Ae,J):j&&!j.hasOnce&&(Y!==at||x>0&&x&64)?H(j,y,M,!1,!0):(Y===at&&x&384||!U&&v&16)&&H(K,y,M),J&&te(m)}(ue&&(pe=oe&&oe.onVnodeUnmounted)||re)&&mt(()=>{pe&&Nt(pe,y,m),re&&_n(m,null,y,"unmounted")},M)},te=m=>{const{type:y,el:M,anchor:J,transition:U}=m;if(y===at){ge(M,J);return}if(y===qr){T(m);return}const Y=()=>{i(M),U&&!U.persisted&&U.afterLeave&&U.afterLeave()};if(m.shapeFlag&1&&U&&!U.persisted){const{leave:oe,delayLeave:Z}=U,K=()=>oe(M,Y);Z?Z(m.el,Y,K):K()}else Y()},ge=(m,y)=>{let M;for(;m!==y;)M=d(m),i(m),m=M;i(y)},ve=(m,y,M)=>{const{bum:J,scope:U,job:Y,subTree:oe,um:Z,m:K,a:j}=m;Ds(K),Ds(j),J&&wr(J),U.stop(),Y&&(Y.flags|=8,k(oe,m,y,M)),Z&&mt(Z,y),mt(()=>{m.isUnmounted=!0},y),y&&y.pendingBranch&&!y.isUnmounted&&m.asyncDep&&!m.asyncResolved&&m.suspenseId===y.pendingId&&(y.deps--,y.deps===0&&y.resolve())},H=(m,y,M,J=!1,U=!1,Y=0)=>{for(let oe=Y;oe{if(m.shapeFlag&6)return ae(m.component.subTree);if(m.shapeFlag&128)return m.suspense.next();const y=d(m.anchor||m.el),M=y&&y[Vu];return M?d(M):y};let _e=!1;const ne=(m,y,M)=>{m==null?y._vnode&&k(y._vnode,null,null,!0):P(y._vnode||null,m,y,null,null,null,M),y._vnode=m,_e||(_e=!0,$s(),Ru(),_e=!1)},Ae={p:P,um:k,m:$,r:te,mt:I,mc:X,pc:B,pbc:E,n:ae,o:e};let Je,dt;return{render:ne,hydrate:Je,createApp:sh(ne,Je)}}function Ar({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Sn({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function gh(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Hl(e,t,n=!1){const o=e.children,i=t.children;if(be(o)&&be(i))for(let r=0;r>1,e[n[s]]0&&(t[o]=n[r-1]),n[r]=o)}}for(r=n.length,l=n[r-1];r-- >0;)n[r]=l,l=t[l];return n}function cc(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:cc(t)}function Ds(e){if(e)for(let t=0;tKt(bh);function he(e,t,n){return fc(e,t,n)}function fc(e,t,n=Oe){const{immediate:o,deep:i,flush:r,once:l}=n,s=Qe({},n);let u;if(nr)if(r==="sync"){const d=yh();u=d.__watcherHandles||(d.__watcherHandles=[])}else if(!t||o)s.once=!0;else return{stop:Ut,resume:Ut,pause:Ut};const c=tt;s.call=(d,h,g)=>Ft(d,c,h,g);let a=!1;r==="post"?s.scheduler=d=>{mt(d,c&&c.suspense)}:r!=="sync"&&(a=!0,s.scheduler=(d,h)=>{h?d():Il(d)}),s.augmentJob=d=>{t&&(d.flags|=4),a&&(d.flags|=2,c&&(d.id=c.uid,d.i=c))};const f=Vd(e,t,s);return u&&u.push(f),f}function wh(e,t,n){const o=this.proxy,i=Be(e)?e.includes(".")?dc(o,e):()=>o[e]:e.bind(o,o);let r;ye(t)?r=t:(r=t.handler,n=t);const l=Qo(this),s=fc(i,r.bind(o),n);return l(),s}function dc(e,t){const n=t.split(".");return()=>{let o=e;for(let i=0;it==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${It(t)}Modifiers`]||e[`${pn(t)}Modifiers`];function Sh(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||Oe;let i=n;const r=t.startsWith("update:"),l=r&&_h(o,t.slice(7));l&&(l.trim&&(i=n.map(a=>Be(a)?a.trim():a)),l.number&&(i=n.map(td)));let s,u=o[s=yr(t)]||o[s=yr(It(t))];!u&&r&&(u=o[s=yr(pn(t))]),u&&Ft(u,e,6,i);const c=o[s+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,Ft(c,e,6,i)}}function hc(e,t,n=!1){const o=t.emitsCache,i=o.get(e);if(i!==void 0)return i;const r=e.emits;let l={},s=!1;if(!ye(e)){const u=c=>{const a=hc(c,t,!0);a&&(s=!0,Qe(l,a))};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!r&&!s?(Ie(e)&&o.set(e,null),null):(be(r)?r.forEach(u=>l[u]=null):Qe(l,r),Ie(e)&&o.set(e,l),l)}function er(e,t){return!e||!zi(t)?!1:(t=t.slice(2).replace(/Once$/,""),Te(e,t[0].toLowerCase()+t.slice(1))||Te(e,pn(t))||Te(e,t))}function Tr(e){const{type:t,vnode:n,proxy:o,withProxy:i,propsOptions:[r],slots:l,attrs:s,emit:u,render:c,renderCache:a,props:f,data:d,setupState:h,ctx:g,inheritAttrs:P}=e,A=Ci(e);let V,S;try{if(n.shapeFlag&4){const T=i||o,L=T;V=jt(c.call(L,T,a,f,h,d,g)),S=s}else{const T=t;V=jt(T.length>1?T(f,{attrs:s,slots:l,emit:u}):T(f,null)),S=t.props?s:xh(s)}}catch(T){Lo.length=0,Gi(T,e,1),V=D(pt)}let R=V;if(S&&P!==!1){const T=Object.keys(S),{shapeFlag:L}=R;T.length&&L&7&&(r&&T.some(xl)&&(S=Ch(S,r)),R=vn(R,S,!1,!0))}return n.dirs&&(R=vn(R,null,!1,!0),R.dirs=R.dirs?R.dirs.concat(n.dirs):n.dirs),n.transition&&(R.transition=n.transition),V=R,Ci(A),V}const xh=e=>{let t;for(const n in e)(n==="class"||n==="style"||zi(n))&&((t||(t={}))[n]=e[n]);return t},Ch=(e,t)=>{const n={};for(const o in e)(!xl(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function kh(e,t,n){const{props:o,children:i,component:r}=e,{props:l,children:s,patchFlag:u}=t,c=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&u>=0){if(u&1024)return!0;if(u&16)return o?zs(o,l,c):!!l;if(u&8){const a=t.dynamicProps;for(let f=0;fe.__isSuspense;function Ah(e,t){t&&t.pendingBranch?be(e)?t.effects.push(...e):t.effects.push(e):Dd(e)}const at=Symbol.for("v-fgt"),tr=Symbol.for("v-txt"),pt=Symbol.for("v-cmt"),qr=Symbol.for("v-stc"),Lo=[];let kt=null;function we(e=!1){Lo.push(kt=e?null:[])}function Th(){Lo.pop(),kt=Lo[Lo.length-1]||null}let zo=1;function js(e){zo+=e,e<0&&kt&&(kt.hasOnce=!0)}function mc(e){return e.dynamicChildren=zo>0?kt||eo:null,Th(),zo>0&&kt&&kt.push(e),e}function ot(e,t,n,o,i,r){return mc(G(e,t,n,o,i,r,!0))}function De(e,t,n,o,i){return mc(D(e,t,n,o,i,!0))}function sl(e){return e?e.__v_isVNode===!0:!1}function An(e,t){return e.type===t.type&&e.key===t.key}const gc=({key:e})=>e!=null?e:null,pi=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Be(e)||ct(e)||ye(e)?{i:yt,r:e,k:t,f:!!n}:e:null);function G(e,t=null,n=null,o=0,i=null,r=e===at?0:1,l=!1,s=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&gc(t),ref:t&&pi(t),scopeId:Fu,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:o,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:yt};return s?(Ul(u,n),r&128&&e.normalize(u)):n&&(u.shapeFlag|=Be(n)?8:16),zo>0&&!l&&kt&&(u.patchFlag>0||r&6)&&u.patchFlag!==32&&kt.push(u),u}const D=qh;function qh(e,t=null,n=null,o=0,i=null,r=!1){if((!e||e===Yu)&&(e=pt),sl(e)){const s=vn(e,t,!0);return n&&Ul(s,n),zo>0&&!r&&kt&&(s.shapeFlag&6?kt[kt.indexOf(e)]=s:kt.push(s)),s.patchFlag=-2,s}if(Nh(e)&&(e=e.__vccOpts),t){t=Oh(t);let{class:s,style:u}=t;s&&!Be(s)&&(t.class=Tt(s)),Ie(u)&&(Ml(u)&&!be(u)&&(u=Qe({},u)),t.style=so(u))}const l=Be(e)?1:vc(e)?128:Bu(e)?64:Ie(e)?4:ye(e)?2:0;return G(e,t,n,o,i,l,r,!0)}function Oh(e){return e?Ml(e)||oc(e)?Qe({},e):e:null}function vn(e,t,n=!1,o=!1){const{props:i,ref:r,patchFlag:l,children:s,transition:u}=e,c=t?$h(i||{},t):i,a={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&gc(c),ref:t&&t.ref?n&&r?be(r)?r.concat(pi(t)):[r,pi(t)]:pi(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==at?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:u,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&vn(e.ssContent),ssFallback:e.ssFallback&&vn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return u&&o&&ao(a,u.clone(a)),a}function Ee(e=" ",t=0){return D(tr,null,e,t)}function On(e="",t=!1){return t?(we(),De(pt,null,e)):D(pt,null,e)}function jt(e){return e==null||typeof e=="boolean"?D(pt):be(e)?D(at,null,e.slice()):typeof e=="object"?un(e):D(tr,null,String(e))}function un(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:vn(e)}function Ul(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(be(t))n=16;else if(typeof t=="object")if(o&65){const i=t.default;i&&(i._c&&(i._d=!1),Ul(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!oc(t)?t._ctx=yt:i===3&&yt&&(yt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ye(t)?(t={default:t,_ctx:yt},n=32):(t=String(t),o&64?(n=16,t=[Ee(t)]):n=8);e.children=t,e.shapeFlag|=n}function $h(...e){const t={};for(let n=0;ntt||yt;let Ei,al;{const e=du(),t=(n,o)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(o),r=>{i.length>1?i.forEach(l=>l(r)):i[0](r)}};Ei=t("__VUE_INSTANCE_SETTERS__",n=>tt=n),al=t("__VUE_SSR_SETTERS__",n=>nr=n)}const Qo=e=>{const t=tt;return Ei(e),e.scope.on(),()=>{e.scope.off(),Ei(t)}},Hs=()=>{tt&&tt.scope.off(),Ei(null)};function pc(e){return e.vnode.shapeFlag&4}let nr=!1;function Rh(e,t=!1,n=!1){t&&al(t);const{props:o,children:i}=e.vnode,r=pc(e);ah(e,o,r,t),dh(e,i,n);const l=r?Ih(e,t):void 0;return t&&al(!1),l}function Ih(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,eh);const{setup:o}=n;if(o){const i=e.setupContext=o.length>1?Vh(e):null,r=Qo(e);bn();const l=Ko(o,e,0,[e.props,i]);if(yn(),r(),au(l)){if(Po(e)||Ku(e),l.then(Hs,Hs),t)return l.then(s=>{Us(e,s,t)}).catch(s=>{Gi(s,e,0)});e.asyncDep=l}else Us(e,l,t)}else bc(e,t)}function Us(e,t,n){ye(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ie(t)&&(e.setupState=Pu(t)),bc(e,n)}let Ks;function bc(e,t,n){const o=e.type;if(!e.render){if(!t&&Ks&&!o.render){const i=o.template||zl(e).template;if(i){const{isCustomElement:r,compilerOptions:l}=e.appContext.config,{delimiters:s,compilerOptions:u}=o,c=Qe(Qe({isCustomElement:r,delimiters:s},l),u);o.render=Ks(i,c)}}e.render=o.render||Ut}{const i=Qo(e);bn();try{th(e)}finally{yn(),i()}}}const Fh={get(e,t){return ft(e,"get",""),e[t]}};function Vh(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Fh),slots:e.slots,emit:e.emit,expose:t}}function or(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Pu(Qi(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Mo)return Mo[n](e)},has(t,n){return n in t||n in Mo}})):e.proxy}function Bh(e,t=!0){return ye(e)?e.displayName||e.name:e.name||t&&e.__name}function Nh(e){return ye(e)&&"__vccOpts"in e}const b=(e,t)=>Id(e,t,nr);function C(e,t,n){const o=arguments.length;return o===2?Ie(t)&&!be(t)?sl(t)?D(e,null,[t]):D(e,t):D(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&sl(n)&&(n=[n]),D(e,t,n))}const Dh="3.5.1";/** * @vue/runtime-dom v3.5.1 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let ul;const Ws=typeof window<"u"&&window.trustedTypes;if(Ws)try{ul=Ws.createPolicy("vue",{createHTML:e=>e})}catch{}const yc=ul?e=>ul.createHTML(e):e=>e,zh="http://www.w3.org/2000/svg",jh="http://www.w3.org/1998/Math/MathML",Yt=typeof document<"u"?document:null,Qs=Yt&&Yt.createElement("template"),Hh={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const i=t==="svg"?Yt.createElementNS(zh,e):t==="mathml"?Yt.createElementNS(jh,e):n?Yt.createElement(e,{is:n}):Yt.createElement(e);return e==="select"&&o&&o.multiple!=null&&i.setAttribute("multiple",o.multiple),i},createText:e=>Yt.createTextNode(e),createComment:e=>Yt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Yt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,i,r){const l=n?n.previousSibling:t.lastChild;if(i&&(i===r||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===r||!(i=i.nextSibling)););else{Qs.innerHTML=yc(o==="svg"?`${e}`:o==="mathml"?`${e}`:e);const s=Qs.content;if(o==="svg"||o==="mathml"){const u=s.firstChild;for(;u.firstChild;)s.appendChild(u.firstChild);s.removeChild(u)}t.insertBefore(s,n)}return[l?l.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},rn="transition",So="animation",uo=Symbol("_vtc"),wc={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},_c=Qe({},zu,wc),Kh=e=>(e.displayName="Transition",e.props=_c,e),In=Kh((e,{slots:t})=>C(Wd,Sc(e),t)),xn=(e,t=[])=>{be(e)?e.forEach(n=>n(...t)):e&&e(...t)},Gs=e=>e?be(e)?e.some(t=>t.length>1):e.length>1:!1;function Sc(e){const t={};for(const p in e)p in wc||(t[p]=e[p]);if(e.css===!1)return t;const{name:n="v",type:o,duration:i,enterFromClass:r=`${n}-enter-from`,enterActiveClass:l=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:u=r,appearActiveClass:c=l,appearToClass:a=s,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,g=Uh(i),P=g&&g[0],T=g&&g[1],{onBeforeEnter:V,onEnter:S,onEnterCancelled:R,onLeave:A,onLeaveCancelled:L,onBeforeAppear:$=V,onAppear:F=S,onAppearCancelled:X=R}=t,_=(p,z,I)=>{ln(p,z?a:s),ln(p,z?c:l),I&&I()},E=(p,z)=>{p._isLeaving=!1,ln(p,f),ln(p,h),ln(p,d),z&&z()},B=p=>(z,I)=>{const le=p?F:S,ee=()=>_(z,p,I);xn(le,[z,ee]),Ys(()=>{ln(z,p?u:r),Gt(z,p?a:s),Gs(le)||Js(z,o,P,ee)})};return Qe(t,{onBeforeEnter(p){xn(V,[p]),Gt(p,r),Gt(p,l)},onBeforeAppear(p){xn($,[p]),Gt(p,u),Gt(p,c)},onEnter:B(!1),onAppear:B(!0),onLeave(p,z){p._isLeaving=!0;const I=()=>E(p,z);Gt(p,f),Gt(p,d),Cc(),Ys(()=>{p._isLeaving&&(ln(p,f),Gt(p,h),Gs(A)||Js(p,o,T,I))}),xn(A,[p,I])},onEnterCancelled(p){_(p,!1),xn(R,[p])},onAppearCancelled(p){_(p,!0),xn(X,[p])},onLeaveCancelled(p){E(p),xn(L,[p])}})}function Uh(e){if(e==null)return null;if(Ie(e))return[$r(e.enter),$r(e.leave)];{const t=$r(e);return[t,t]}}function $r(e){return nd(e)}function Gt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[uo]||(e[uo]=new Set)).add(t)}function ln(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const n=e[uo];n&&(n.delete(t),n.size||(e[uo]=void 0))}function Ys(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Wh=0;function Js(e,t,n,o){const i=e._endId=++Wh,r=()=>{i===e._endId&&o()};if(n)return setTimeout(r,n);const{type:l,timeout:s,propCount:u}=xc(e,t);if(!l)return o();const c=l+"end";let a=0;const f=()=>{e.removeEventListener(c,d),r()},d=h=>{h.target===e&&++a>=u&&f()};setTimeout(()=>{a(n[g]||"").split(", "),i=o(`${rn}Delay`),r=o(`${rn}Duration`),l=Xs(i,r),s=o(`${So}Delay`),u=o(`${So}Duration`),c=Xs(s,u);let a=null,f=0,d=0;t===rn?l>0&&(a=rn,f=l,d=r.length):t===So?c>0&&(a=So,f=c,d=u.length):(f=Math.max(l,c),a=f>0?l>c?rn:So:null,d=a?a===rn?r.length:u.length:0);const h=a===rn&&/\b(transform|all)(,|$)/.test(o(`${rn}Property`).toString());return{type:a,timeout:f,propCount:d,hasTransform:h}}function Xs(e,t){for(;e.lengthZs(n)+Zs(e[o])))}function Zs(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Cc(){return document.body.offsetHeight}function Qh(e,t,n){const o=e[uo];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const ea=Symbol("_vod"),Gh=Symbol("_vsh"),Yh=Symbol(""),Jh=/(^|;)\s*display\s*:/;function Xh(e,t,n){const o=e.style,i=Ne(n);let r=!1;if(n&&!i){if(t)if(Ne(t))for(const l of t.split(";")){const s=l.slice(0,l.indexOf(":")).trim();n[s]==null&&bi(o,s,"")}else for(const l in t)n[l]==null&&bi(o,l,"");for(const l in n)l==="display"&&(r=!0),bi(o,l,n[l])}else if(i){if(t!==n){const l=o[Yh];l&&(n+=";"+l),o.cssText=n,r=Jh.test(n)}}else t&&e.removeAttribute("style");ea in e&&(e[ea]=r?o.display:"",e[Gh]&&(o.display="none"))}const ta=/\s*!important$/;function bi(e,t,n){if(be(n))n.forEach(o=>bi(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=Zh(e,t);ta.test(n)?e.setProperty(pn(o),n.replace(ta,""),"important"):e[o]=n}}const na=["Webkit","Moz","ms"],Or={};function Zh(e,t){const n=Or[t];if(n)return n;let o=It(t);if(o!=="filter"&&o in e)return Or[t]=o;o=Ki(o);for(let i=0;iPr||(rv.then(()=>Pr=0),Pr=Date.now());function sv(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;Ft(av(o,n.value),t,5,[o])};return n.value=e,n.attached=lv(),n}function av(e,t){if(be(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(o=>i=>!i._stopped&&o&&o(i))}else return t}const sa=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,uv=(e,t,n,o,i,r)=>{const l=i==="svg";t==="class"?Qh(e,o,l):t==="style"?Xh(e,n,o):zi(t)?xl(t)||ov(e,t,n,o,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):cv(e,t,o,l))?(ev(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&ia(e,t,o,l,r,t!=="value")):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),ia(e,t,o,l))};function cv(e,t,n,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&sa(t)&&ye(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return sa(t)&&Ne(n)?!1:!!(t in e||e._isVueCE&&(/[A-Z]/.test(t)||!Ne(n)))}const kc=new WeakMap,Ec=new WeakMap,Ti=Symbol("_moveCb"),aa=Symbol("_enterCb"),fv=e=>(delete e.props.mode,e),dv=fv({name:"TransitionGroup",props:Qe({},_c,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Se(),o=Du();let i,r;return Bl(()=>{if(!i.length)return;const l=e.moveClass||`${e.name||"v"}-move`;if(!pv(i[0].el,n.vnode.el,l))return;i.forEach(vv),i.forEach(mv);const s=i.filter(gv);Cc(),s.forEach(u=>{const c=u.el,a=c.style;Gt(c,l),a.transform=a.webkitTransform=a.transitionDuration="";const f=c[Ti]=d=>{d&&d.target!==c||(!d||/transform$/.test(d.propertyName))&&(c.removeEventListener("transitionend",f),c[Ti]=null,ln(c,l))};c.addEventListener("transitionend",f)})}),()=>{const l=Ce(e),s=Sc(l);let u=l.tag||at;if(i=[],r)for(let c=0;c{s.split(/\s+/).forEach(u=>u&&o.classList.remove(u))}),n.split(/\s+/).forEach(s=>s&&o.classList.add(s)),o.style.display="none";const r=t.nodeType===1?t:t.parentNode;r.appendChild(o);const{hasTransform:l}=xc(o);return r.removeChild(o),l}const bv=["ctrl","shift","alt","meta"],yv={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>bv.some(n=>e[`${n}Key`]&&!t.includes(n))},Mr=(e,t)=>{const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=(i,...r)=>{for(let l=0;l{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=i=>{if(!("key"in i))return;const r=pn(i.key);if(t.some(l=>l===r||wv[l]===r))return e(i)})},Sv=Qe({patchProp:uv},Hh);let ua;function xv(){return ua||(ua=vh(Sv))}const Tc=(...e)=>{const t=xv().createApp(...e),{mount:n}=t;return t.mount=o=>{const i=kv(o);if(!i)return;const r=t._component;!ye(r)&&!r.render&&!r.template&&(r.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const l=n(i,!1,Cv(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),l},t};function Cv(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function kv(e){return Ne(e)?document.querySelector(e):e}function Vn(e,t,n,o){return Object.defineProperty(e,t,{get:n,set:o,enumerable:!0}),e}const Vt=se(!1);let cl;function Ev(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 Tv(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)||[]}const Ac="ontouchstart"in window||window.navigator.maxTouchPoints>0;function Av(e){const t=e.toLowerCase(),n=Tv(t),o=Ev(t,n),i={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};o.browser&&(i[o.browser]=!0,i.version=o.version,i.versionNumber=parseInt(o.version,10)),o.platform&&(i[o.platform]=!0);const r=i.android||i.ios||i.bb||i.blackberry||i.ipad||i.iphone||i.ipod||i.kindle||i.playbook||i.silk||i["windows phone"];if(r===!0||t.indexOf("mobile")!==-1?i.mobile=!0:i.desktop=!0,i["windows phone"]&&(i.winphone=!0,delete i["windows phone"]),i.edga||i.edgios||i.edg?(i.edge=!0,o.browser="edge"):i.crios?(i.chrome=!0,o.browser="chrome"):i.fxios&&(i.firefox=!0,o.browser="firefox"),(i.ipod||i.ipad||i.iphone)&&(i.ios=!0),i.vivaldi&&(o.browser="vivaldi",i.vivaldi=!0),(i.chrome||i.opr||i.safari||i.vivaldi||i.mobile===!0&&i.ios!==!0&&r!==!0)&&(i.webkit=!0),i.opr&&(o.browser="opera",i.opera=!0),i.safari&&(i.blackberry||i.bb?(o.browser="blackberry",i.blackberry=!0):i.playbook?(o.browser="playbook",i.playbook=!0):i.android?(o.browser="android",i.android=!0):i.kindle?(o.browser="kindle",i.kindle=!0):i.silk&&(o.browser="silk",i.silk=!0)),i.name=o.browser,i.platform=o.platform,t.indexOf("electron")!==-1)i.electron=!0;else if(document.location.href.indexOf("-extension://")!==-1)i.bex=!0;else{if(window.Capacitor!==void 0?(i.capacitor=!0,i.nativeMobile=!0,i.nativeMobileWrapper="capacitor"):(window._cordovaNative!==void 0||window.cordova!==void 0)&&(i.cordova=!0,i.nativeMobile=!0,i.nativeMobileWrapper="cordova"),Vt.value===!0&&(cl={is:{...i}}),Ac===!0&&i.mac===!0&&(i.desktop===!0&&i.safari===!0||i.nativeMobile===!0&&i.android!==!0&&i.ios!==!0&&i.ipad!==!0)){delete i.mac,delete i.desktop;const l=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(i,{mobile:!0,ios:!0,platform:l,[l]:!0})}i.mobile!==!0&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete i.desktop,i.mobile=!0)}return i}const ca=navigator.userAgent||navigator.vendor||window.opera,qv={has:{touch:!1,webStorage:!1},within:{iframe:!1}},Me={userAgent:ca,is:Av(ca),has:{touch:Ac},within:{iframe:window.self!==window.top}},Ai={install(e){const{$q:t}=e;Vt.value===!0?(e.onSSRHydrated.push(()=>{Object.assign(t.platform,Me),Vt.value=!1}),t.platform=Ht(this)):t.platform=this}};{let e;Vn(Me.has,"webStorage",()=>{if(e!==void 0)return e;try{if(window.localStorage)return e=!0,!0}catch{}return e=!1,!1}),Object.assign(Ai,Me),Vt.value===!0&&(Object.assign(Ai,cl,qv),cl=null)}function ke(e){return Qi(Qd(e))}function Ul(e){return Qi(e)}const ir=(e,t)=>{const n=Ht(e);for(const o in e)Vn(t,o,()=>n[o],i=>{n[o]=i});return t},Ue={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const e=Object.defineProperty({},"passive",{get(){Object.assign(Ue,{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 bt(){}function $v(e){return e.button===0}function jo(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 Ov(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 gt(e){e.stopPropagation()}function ut(e){e.cancelable!==!1&&e.preventDefault()}function Ve(e){e.cancelable!==!1&&e.preventDefault(),e.stopPropagation()}function Lr(e,t){if(e===void 0||t===!0&&e.__dragPrevented===!0)return;const n=t===!0?o=>{o.__dragPrevented=!0,o.addEventListener("dragstart",ut,Ue.notPassiveCapture)}:o=>{delete o.__dragPrevented,o.removeEventListener("dragstart",ut,Ue.notPassiveCapture)};e.querySelectorAll("a, img").forEach(n)}function Xt(e,t,n){const o=`__q_${t}_evt`;e[o]=e[o]!==void 0?e[o].concat(n):n,n.forEach(i=>{i[0].addEventListener(i[1],e[i[2]],Ue[i[3]])})}function On(e,t){const n=`__q_${t}_evt`;e[n]!==void 0&&(e[n].forEach(o=>{o[0].removeEventListener(o[1],e[o[2]],Ue[o[3]])}),e[n]=void 0)}function Wl(e,t=250,n){let o=null;function i(){const r=arguments,l=()=>{o=null,e.apply(this,r)};o!==null&&clearTimeout(o),o=setTimeout(l,t)}return i.cancel=()=>{o!==null&&clearTimeout(o)},i}const Rr=["sm","md","lg","xl"],{passive:fa}=Ue,Pv=ir({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:bt,setDebounce:bt,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,o=n||window,i=document.scrollingElement||document.documentElement,r=n===void 0||Me.is.mobile===!0?()=>[Math.max(window.innerWidth,i.clientWidth),Math.max(window.innerHeight,i.clientHeight)]:()=>[n.width*n.scale+window.innerWidth-i.clientWidth,n.height*n.scale+window.innerHeight-i.clientHeight],l=e.config.screen!==void 0&&e.config.screen.bodyClasses===!0;this.__update=f=>{const[d,h]=r();if(h!==this.height&&(this.height=h),d!==this.width)this.width=d;else if(f!==!0)return;let g=this.sizes;this.gt.xs=d>=g.sm,this.gt.sm=d>=g.md,this.gt.md=d>=g.lg,this.gt.lg=d>=g.xl,this.lt.sm=d{Rr.forEach(d=>{f[d]!==void 0&&(u[d]=f[d])})},this.setDebounce=f=>{c=f};const a=()=>{const f=getComputedStyle(document.body);f.getPropertyValue("--q-size-sm")&&Rr.forEach(d=>{this.sizes[d]=parseInt(f.getPropertyValue(`--q-size-${d}`),10)}),this.setSizes=d=>{Rr.forEach(h=>{d[h]&&(this.sizes[h]=d[h])}),this.__update(!0)},this.setDebounce=d=>{s!==void 0&&o.removeEventListener("resize",s,fa),s=d>0?Wl(this.__update,d):this.__update,o.addEventListener("resize",s,fa)},this.setDebounce(c),Object.keys(u).length!==0?(this.setSizes(u),u=void 0):this.__update(),l===!0&&this.name==="xs"&&document.body.classList.add("screen--xs")};Vt.value===!0?t.push(a):a()}}),et=ir({isActive:!1,mode:!1},{__media:void 0,set(e){et.mode=e,e==="auto"?(et.__media===void 0&&(et.__media=window.matchMedia("(prefers-color-scheme: dark)"),et.__updateMedia=()=>{et.set("auto")},et.__media.addListener(et.__updateMedia)),e=et.__media.matches):et.__media!==void 0&&(et.__media.removeListener(et.__updateMedia),et.__media=void 0),et.isActive=e===!0,document.body.classList.remove(`body--${e===!0?"light":"dark"}`),document.body.classList.add(`body--${e===!0?"dark":"light"}`)},toggle(){et.set(et.isActive===!1)},install({$q:e,ssrContext:t}){const{dark:n}=e.config;e.dark=this,this.__installed!==!0&&this.set(n!==void 0?n:!1)}});function Mv(e,t,n=document.body){if(typeof e!="string")throw new TypeError("Expected a string as propName");if(typeof t!="string")throw new TypeError("Expected a string as value");if(!(n instanceof Element))throw new TypeError("Expected a DOM element");n.style.setProperty(`--q-${e}`,t)}let qc=!1;function Lv(e){qc=e.isComposing===!0}function Ql(e){return qc===!0||e!==Object(e)||e.isComposing===!0||e.qKeyEvent===!0}function mn(e,t){return Ql(e)===!0?!1:[].concat(t).includes(e.keyCode)}function $c(e){if(e.ios===!0)return"ios";if(e.android===!0)return"android"}function Rv({is:e,has:t,within:n},o){const i=[e.desktop===!0?"desktop":"mobile",`${t.touch===!1?"no-":""}touch`];if(e.mobile===!0){const r=$c(e);r!==void 0&&i.push("platform-"+r)}if(e.nativeMobile===!0){const r=e.nativeMobileWrapper;i.push(r),i.push("native-mobile"),e.ios===!0&&(o[r]===void 0||o[r].iosStatusBarPadding!==!1)&&i.push("q-ios-padding")}else e.electron===!0?i.push("electron"):e.bex===!0&&i.push("bex");return n.iframe===!0&&i.push("within-iframe"),i}function Iv(){const{is:e}=Me,t=document.body.className,n=new Set(t.replace(/ {2}/g," ").split(" "));if(e.nativeMobile!==!0&&e.electron!==!0&&e.bex!==!0){if(e.desktop===!0)n.delete("mobile"),n.delete("platform-ios"),n.delete("platform-android"),n.add("desktop");else if(e.mobile===!0){n.delete("desktop"),n.add("mobile"),n.delete("platform-ios"),n.delete("platform-android");const i=$c(e);i!==void 0&&n.add(`platform-${i}`)}}Me.has.touch===!0&&(n.delete("no-touch"),n.add("touch")),Me.within.iframe===!0&&n.add("within-iframe");const o=Array.from(n).join(" ");t!==o&&(document.body.className=o)}function Fv(e){for(const t in e)Mv(t,e[t])}const Vv={install(e){if(this.__installed!==!0){if(Vt.value===!0)Iv();else{const{$q:t}=e;t.config.brand!==void 0&&Fv(t.config.brand);const n=Rv(Me,t.config);document.body.classList.add.apply(document.body.classList,n)}Me.is.ios===!0&&document.body.addEventListener("touchstart",bt),window.addEventListener("keydown",Lv,!0)}}},Oc=()=>!0;function Nv(e){return typeof e=="string"&&e!==""&&e!=="/"&&e!=="#/"}function Bv(e){return e.startsWith("#")===!0&&(e=e.substring(1)),e.startsWith("/")===!1&&(e="/"+e),e.endsWith("/")===!0&&(e=e.substring(0,e.length-1)),"#"+e}function Dv(e){if(e.backButtonExit===!1)return()=>!1;if(e.backButtonExit==="*")return Oc;const t=["#/"];return Array.isArray(e.backButtonExit)===!0&&t.push(...e.backButtonExit.filter(Nv).map(Bv)),()=>t.includes(window.location.hash)}const fl={__history:[],add:bt,remove:bt,install({$q:e}){if(this.__installed===!0)return;const{cordova:t,capacitor:n}=Me.is;if(t!==!0&&n!==!0)return;const o=e.config[t===!0?"cordova":"capacitor"];if(o!==void 0&&o.backButton===!1||n===!0&&(window.Capacitor===void 0||window.Capacitor.Plugins.App===void 0))return;this.add=l=>{l.condition===void 0&&(l.condition=Oc),this.__history.push(l)},this.remove=l=>{const s=this.__history.indexOf(l);s>=0&&this.__history.splice(s,1)};const i=Dv(Object.assign({backButtonExit:!0},o)),r=()=>{if(this.__history.length){const l=this.__history[this.__history.length-1];l.condition()===!0&&(this.__history.pop(),l.handler())}else i()===!0?navigator.app.exitApp():window.history.back()};t===!0?document.addEventListener("deviceready",()=>{document.addEventListener("backbutton",r,!1)}):window.Capacitor.Plugins.App.addListener("backButton",r)}},da={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"},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"},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 ha(){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("-")}const cn=ir({__qLang:{}},{getLocale:ha,set(e=da,t){const n={...e,rtl:e.rtl===!0,getLocale:ha};{if(n.set=cn.set,cn.__langConfig===void 0||cn.__langConfig.noHtmlAttrs!==!0){const o=document.documentElement;o.setAttribute("dir",n.rtl===!0?"rtl":"ltr"),o.setAttribute("lang",n.isoName)}Object.assign(cn.__qLang,n)}},install({$q:e,lang:t,ssrContext:n}){e.lang=cn.__qLang,cn.__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(o){return Reflect.ownKeys(o).filter(i=>i!=="set"&&i!=="getLocale")}}),this.set(t||da))}}),zv={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"}},qi=ir({iconMapFn:null,__qIconSet:{}},{set(e,t){const n={...e};n.set=qi.set,Object.assign(qi.__qIconSet,n)},install({$q:e,iconSet:t,ssrContext:n}){e.config.iconMapFn!==void 0&&(this.iconMapFn=e.config.iconMapFn),e.iconSet=this.__qIconSet,Vn(e,"iconMapFn",()=>this.iconMapFn,o=>{this.iconMapFn=o}),this.__installed===!0?t!==void 0&&this.set(t):(this.props=new Proxy(this.__qIconSet,{get(){return Reflect.get(...arguments)},ownKeys(o){return Reflect.ownKeys(o).filter(i=>i!=="set")}}),this.set(t||zv))}}),Pc="_q_",Mc="_q_t_",rr="_q_l_",jv="_q_pc_",Hv="_q_fo_";function qt(){}const $i={};let Lc=!1;function Kv(){Lc=!0}function fn(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,o;if(e.constructor===Array){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(fn(e[o],t[o])!==!0)return!1;return!0}if(e.constructor===Map){if(e.size!==t.size)return!1;let r=e.entries();for(o=r.next();o.done!==!0;){if(t.has(o.value[0])!==!0)return!1;o=r.next()}for(r=e.entries(),o=r.next();o.done!==!0;){if(fn(o.value[1],t.get(o.value[0]))!==!0)return!1;o=r.next()}return!0}if(e.constructor===Set){if(e.size!==t.size)return!1;const r=e.entries();for(o=r.next();o.done!==!0;){if(t.has(o.value[0])!==!0)return!1;o=r.next()}return!0}if(e.buffer!=null&&e.buffer.constructor===ArrayBuffer){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(e[o]!==t[o])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 i=Object.keys(e).filter(r=>e[r]!==void 0);if(n=i.length,n!==Object.keys(t).filter(r=>t[r]!==void 0).length)return!1;for(o=n;o--!==0;){const r=i[o];if(fn(e[r],t[r])!==!0)return!1}return!0}return e!==e&&t!==t}function Ho(e){return e!==null&&typeof e=="object"&&Array.isArray(e)!==!0}function Uv(e){return Object.prototype.toString.call(e)==="[object Date]"}function Wv(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const va=[Ai,Vv,et,Pv,fl,cn,qi];function Qv(e,t){const n=Tc(e);n.config.globalProperties=t.config.globalProperties;const{reload:o,...i}=t._context;return Object.assign(n._context,i),n}function ma(e,t){t.forEach(n=>{n.install(e),n.__installed=!0})}function Gv(e,t,n){e.config.globalProperties.$q=n.$q,e.provide(Pc,n.$q),ma(n,va),t.components!==void 0&&Object.values(t.components).forEach(o=>{Ho(o)===!0&&o.name!==void 0&&e.component(o.name,o)}),t.directives!==void 0&&Object.values(t.directives).forEach(o=>{Ho(o)===!0&&o.name!==void 0&&e.directive(o.name,o)}),t.plugins!==void 0&&ma(n,Object.values(t.plugins).filter(o=>typeof o.install=="function"&&va.includes(o)===!1)),Vt.value===!0&&(n.$q.onSSRHydrated=()=>{n.onSSRHydrated.forEach(o=>{o()}),n.$q.onSSRHydrated=()=>{}})}const Yv=function(e,t={}){const n={version:"2.17.4"};Lc===!1?(t.config!==void 0&&Object.assign($i,t.config),n.config={...$i},Kv()):n.config=t.config||{},Gv(e,t,{parentApp:e,$q:n,lang:t.lang,iconSet:t.iconSet,onSSRHydrated:[]})},Jv={name:"Quasar",version:"2.17.4",install:Yv,lang:cn,iconSet:qi};function Rc(e,t,n){let o;function i(){o!==void 0&&(fl.remove(o),o=void 0)}return Be(()=>{e.value===!0&&i()}),{removeFromHistory:i,addToHistory(){o={condition:()=>n.value===!0,handler:t},fl.add(o)}}}function yi(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 Ic(e){return e.appContext.config.globalProperties.$router!==void 0}function Ro(e){return e.isUnmounted===!0||e.isDeactivated===!0}const lr={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},sr=["beforeShow","show","beforeHide","hide"];function ar({showing:e,canShow:t,hideOnRouteChange:n,handleShow:o,handleHide:i,processOnMount:r}){const l=Se(),{props:s,emit:u,proxy:c}=l;let a;function f(S){e.value===!0?g(S):d(S)}function d(S){if(s.disable===!0||S!==void 0&&S.qAnchorHandled===!0||t!==void 0&&t(S)!==!0)return;const R=s["onUpdate:modelValue"]!==void 0;R===!0&&(u("update:modelValue",!0),a=S,Fe(()=>{a===S&&(a=void 0)})),(s.modelValue===null||R===!1)&&h(S)}function h(S){e.value!==!0&&(e.value=!0,u("beforeShow",S),o!==void 0?o(S):u("show",S))}function g(S){if(s.disable===!0)return;const R=s["onUpdate:modelValue"]!==void 0;R===!0&&(u("update:modelValue",!1),a=S,Fe(()=>{a===S&&(a=void 0)})),(s.modelValue===null||R===!1)&&P(S)}function P(S){e.value!==!1&&(e.value=!1,u("beforeHide",S),i!==void 0?i(S):u("hide",S))}function T(S){s.disable===!0&&S===!0?s["onUpdate:modelValue"]!==void 0&&u("update:modelValue",!1):S===!0!==e.value&&(S===!0?h:P)(a)}he(()=>s.modelValue,T),n!==void 0&&Ic(l)===!0&&he(()=>c.$route.fullPath,()=>{n.value===!0&&e.value===!0&&g()}),r===!0&&wt(()=>{T(s.modelValue)});const V={show:d,hide:g,toggle:f};return Object.assign(c,V),V}function dl(e,t){const n=e.style;for(const o in t)n[o]=t[o]}function Xv(e){if(e==null)return;if(typeof e=="string")try{return document.querySelector(e)||void 0}catch{return}const t=Ou(e);if(t)return t.$el||t}function Fc(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}const Gl=[Element,String],Zv=[null,document,document.body,document.scrollingElement,document.documentElement];function Yl(e,t){let n=Xv(t);if(n===void 0){if(e==null)return window;n=e.closest(".scroll,.scroll-y,.overflow-auto")}return Zv.includes(n)?window:n}function Vc(e){return e===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:e.scrollTop}function Nc(e){return e===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:e.scrollLeft}let li;function wi(){if(li!==void 0)return li;const e=document.createElement("p"),t=document.createElement("div");dl(e,{width:"100%",height:"200px"}),dl(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 o=e.offsetWidth;return n===o&&(o=t.clientWidth),t.remove(),li=n-o,li}function em(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"]))}let xo=0,Ir,Fr,To,Vr=!1,ga,pa,ba,Cn=null;function tm(e){nm(e)&&Ve(e)}function nm(e){if(e.target===document.body||e.target.classList.contains("q-layout__backdrop"))return!0;const t=Ov(e),n=e.shiftKey&&!e.deltaX,o=!n&&Math.abs(e.deltaX)<=Math.abs(e.deltaY),i=n||o?e.deltaY:e.deltaX;for(let r=0;r0&&l.scrollTop+l.clientHeight===l.scrollHeight:i<0&&l.scrollLeft===0?!0:i>0&&l.scrollLeft+l.clientWidth===l.scrollWidth}return!0}function ya(e){e.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function si(e){Vr!==!0&&(Vr=!0,requestAnimationFrame(()=>{Vr=!1;const{height:t}=e.target,{clientHeight:n,scrollTop:o}=document.scrollingElement;(To===void 0||t!==window.innerHeight)&&(To=n-t,document.scrollingElement.scrollTop=o),o>To&&(document.scrollingElement.scrollTop-=Math.ceil((o-To)/8))}))}function wa(e){const t=document.body,n=window.visualViewport!==void 0;if(e==="add"){const{overflowY:o,overflowX:i}=window.getComputedStyle(t);Ir=Nc(window),Fr=Vc(window),ga=t.style.left,pa=t.style.top,ba=window.location.href,t.style.left=`-${Ir}px`,t.style.top=`-${Fr}px`,i!=="hidden"&&(i==="scroll"||t.scrollWidth>window.innerWidth)&&t.classList.add("q-body--force-scrollbar-x"),o!=="hidden"&&(o==="scroll"||t.scrollHeight>window.innerHeight)&&t.classList.add("q-body--force-scrollbar-y"),t.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,Me.is.ios===!0&&(n===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",si,Ue.passiveCapture),window.visualViewport.addEventListener("scroll",si,Ue.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",ya,Ue.passiveCapture))}Me.is.desktop===!0&&Me.is.mac===!0&&window[`${e}EventListener`]("wheel",tm,Ue.notPassive),e==="remove"&&(Me.is.ios===!0&&(n===!0?(window.visualViewport.removeEventListener("resize",si,Ue.passiveCapture),window.visualViewport.removeEventListener("scroll",si,Ue.passiveCapture)):window.removeEventListener("scroll",ya,Ue.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=ga,t.style.top=pa,window.location.href===ba&&window.scrollTo(Ir,Fr),To=void 0)}function om(e){let t="add";if(e===!0){if(xo++,Cn!==null){clearTimeout(Cn),Cn=null;return}if(xo>1)return}else{if(xo===0||(xo--,xo>0))return;if(t="remove",Me.is.ios===!0&&Me.is.nativeMobile===!0){Cn!==null&&clearTimeout(Cn),Cn=setTimeout(()=>{wa(t),Cn=null},100);return}}wa(t)}function Bc(){let e;return{preventBodyScroll(t){t!==e&&(e!==void 0||t===!0)&&(e=t,om(t))}}}function co(){let e=null;const t=Se();function n(){e!==null&&(clearTimeout(e),e=null)}return Wo(n),Be(n),{removeTimeout:n,registerTimeout(o,i){n(),Ro(t)===!1&&(e=setTimeout(()=>{e=null,o()},i))}}}const $t={dark:{type:Boolean,default:null}};function Ot(e,t){return b(()=>e.dark===null?t.dark.isActive:e.dark)}const Jl={left:!0,right:!0,up:!0,down:!0,horizontal:!0,vertical:!0},im=Object.keys(Jl);Jl.all=!0;function _a(e){const t={};for(const n of im)e[n]===!0&&(t[n]=!0);return Object.keys(t).length===0?Jl:(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)}const rm=["INPUT","TEXTAREA"];function Sa(e,t){return t.event===void 0&&e.target!==void 0&&e.target.draggable!==!0&&typeof t.handler=="function"&&rm.includes(e.target.nodeName.toUpperCase())===!1&&(e.qClonedBy===void 0||e.qClonedBy.indexOf(t.uid)===-1)}function Oi(){if(window.getSelection!==void 0){const e=window.getSelection();e.empty!==void 0?e.empty():e.removeAllRanges!==void 0&&(e.removeAllRanges(),Ai.is.mobile!==!0&&e.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}function Nr(e,t,n){const o=jo(e);let i,r=o.left-t.event.x,l=o.top-t.event.y,s=Math.abs(r),u=Math.abs(l);const c=t.direction;c.horizontal===!0&&c.vertical!==!0?i=r<0?"left":"right":c.horizontal!==!0&&c.vertical===!0?i=l<0?"up":"down":c.up===!0&&l<0?(i="up",s>u&&(c.left===!0&&r<0?i="left":c.right===!0&&r>0&&(i="right"))):c.down===!0&&l>0?(i="down",s>u&&(c.left===!0&&r<0?i="left":c.right===!0&&r>0&&(i="right"))):c.left===!0&&r<0?(i="left",s0&&(i="down"))):c.right===!0&&r>0&&(i="right",s0&&(i="down")));let a=!1;if(i===void 0&&n===!1){if(t.event.isFirst===!0||t.event.lastDir===void 0)return{};i=t.event.lastDir,a=!0,i==="left"||i==="right"?(o.left-=r,s=0,r=0):(o.top-=l,u=0,l=0)}return{synthetic:a,payload:{evt:e,touch:t.event.mouse!==!0,mouse:t.event.mouse===!0,position:o,direction:i,isFirst:t.event.isFirst,isFinal:n===!0,duration:Date.now()-t.event.time,distance:{x:s,y:u},offset:{x:r,y:l},delta:{x:o.left-t.event.lastX,y:o.top-t.event.lastY}}}}let lm=0;const Br=Ul({name:"touch-pan",beforeMount(e,{value:t,modifiers:n}){if(n.mouse!==!0&&Me.has.touch!==!0)return;function o(r,l){n.mouse===!0&&l===!0?Ve(r):(n.stop===!0&>(r),n.prevent===!0&&ut(r))}const i={uid:"qvtp_"+lm++,handler:t,modifiers:n,direction:_a(n),noop:bt,mouseStart(r){Sa(r,i)&&$v(r)&&(Xt(i,"temp",[[document,"mousemove","move","notPassiveCapture"],[document,"mouseup","end","passiveCapture"]]),i.start(r,!0))},touchStart(r){if(Sa(r,i)){const l=r.target;Xt(i,"temp",[[l,"touchmove","move","notPassiveCapture"],[l,"touchcancel","end","passiveCapture"],[l,"touchend","end","passiveCapture"]]),i.start(r)}},start(r,l){if(Me.is.firefox===!0&&Lr(e,!0),i.lastEvt=r,l===!0||n.stop===!0){if(i.direction.all!==!0&&(l!==!0||i.modifiers.mouseAllDir!==!0&&i.modifiers.mousealldir!==!0)){const c=r.type.indexOf("mouse")!==-1?new MouseEvent(r.type,r):new TouchEvent(r.type,r);r.defaultPrevented===!0&&ut(c),r.cancelBubble===!0&>(c),Object.assign(c,{qKeyEvent:r.qKeyEvent,qClickOutside:r.qClickOutside,qAnchorHandled:r.qAnchorHandled,qClonedBy:r.qClonedBy===void 0?[i.uid]:r.qClonedBy.concat(i.uid)}),i.initialEvent={target:r.target,event:c}}gt(r)}const{left:s,top:u}=jo(r);i.event={x:s,y:u,time:Date.now(),mouse:l===!0,detected:!1,isFirst:!0,isFinal:!1,lastX:s,lastY:u}},move(r){if(i.event===void 0)return;const l=jo(r),s=l.left-i.event.x,u=l.top-i.event.y;if(s===0&&u===0)return;i.lastEvt=r;const c=i.event.mouse===!0,a=()=>{o(r,c);let h;n.preserveCursor!==!0&&n.preservecursor!==!0&&(h=document.documentElement.style.cursor||"",document.documentElement.style.cursor="grabbing"),c===!0&&document.body.classList.add("no-pointer-events--children"),document.body.classList.add("non-selectable"),Oi(),i.styleCleanup=g=>{if(i.styleCleanup=void 0,h!==void 0&&(document.documentElement.style.cursor=h),document.body.classList.remove("non-selectable"),c===!0){const P=()=>{document.body.classList.remove("no-pointer-events--children")};g!==void 0?setTimeout(()=>{P(),g()},50):P()}else g!==void 0&&g()}};if(i.event.detected===!0){i.event.isFirst!==!0&&o(r,i.event.mouse);const{payload:h,synthetic:g}=Nr(r,i,!1);h!==void 0&&(i.handler(h)===!1?i.end(r):(i.styleCleanup===void 0&&i.event.isFirst===!0&&a(),i.event.lastX=h.position.left,i.event.lastY=h.position.top,i.event.lastDir=g===!0?void 0:h.direction,i.event.isFirst=!1));return}if(i.direction.all===!0||c===!0&&(i.modifiers.mouseAllDir===!0||i.modifiers.mousealldir===!0)){a(),i.event.detected=!0,i.move(r);return}const f=Math.abs(s),d=Math.abs(u);f!==d&&(i.direction.horizontal===!0&&f>d||i.direction.vertical===!0&&f0||i.direction.left===!0&&f>d&&s<0||i.direction.right===!0&&f>d&&s>0?(i.event.detected=!0,i.move(r)):i.end(r,!0))},end(r,l){if(i.event!==void 0){if(On(i,"temp"),Me.is.firefox===!0&&Lr(e,!1),l===!0)i.styleCleanup!==void 0&&i.styleCleanup(),i.event.detected!==!0&&i.initialEvent!==void 0&&i.initialEvent.target.dispatchEvent(i.initialEvent.event);else if(i.event.detected===!0){i.event.isFirst===!0&&i.handler(Nr(r===void 0?i.lastEvt:r,i).payload);const{payload:s}=Nr(r===void 0?i.lastEvt:r,i,!0),u=()=>{i.handler(s)};i.styleCleanup!==void 0?i.styleCleanup(u):u()}i.event=void 0,i.initialEvent=void 0,i.lastEvt=void 0}}};if(e.__qtouchpan=i,n.mouse===!0){const r=n.mouseCapture===!0||n.mousecapture===!0?"Capture":"";Xt(i,"main",[[e,"mousedown","mouseStart",`passive${r}`]])}Me.has.touch===!0&&Xt(i,"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=_a(t.modifiers))},beforeUnmount(e){const t=e.__qtouchpan;t!==void 0&&(t.event!==void 0&&t.end(),On(t,"main"),On(t,"temp"),Me.is.firefox===!0&&Lr(e,!1),t.styleCleanup!==void 0&&t.styleCleanup(),delete e.__qtouchpan)}}),xa=["B","KB","MB","GB","TB","PB"];function sm(e,t=1){let n=0;for(;parseInt(e,10)>=1024&&n["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:[...sr,"onLayout","miniState"],setup(e,{slots:t,emit:n,attrs:o}){const i=Se(),{proxy:{$q:r}}=i,l=Ot(e,r),{preventBodyScroll:s}=Bc(),{registerTimeout:u,removeTimeout:c}=co(),a=Ut(rr,qt);if(a===qt)return console.error("QDrawer needs to be child of QLayout"),qt;let f,d=null,h;const g=se(e.behavior==="mobile"||e.behavior!=="desktop"&&a.totalWidth.value<=e.breakpoint),P=b(()=>e.mini===!0&&g.value!==!0),T=b(()=>P.value===!0?e.miniWidth:e.width),V=se(e.showIfAbove===!0&&g.value===!1?!0:e.modelValue===!0),S=b(()=>e.persistent!==!0&&(g.value===!0||me.value===!0));function R(v,x){if(F(),v!==!1&&a.animate(),m(0),g.value===!0){const q=a.instances[ee.value];q!==void 0&&q.belowBreakpoint===!0&&q.hide(!1),y(1),a.isContainer.value!==!0&&s(!0)}else y(0),v!==!1&&M(!1);u(()=>{v!==!1&&M(!0),x!==!0&&n("show",v)},ka)}function A(v,x){X(),v!==!1&&a.animate(),y(0),m(B.value*T.value),oe(),x!==!0?u(()=>{n("hide",v)},ka):c()}const{show:L,hide:$}=ar({showing:V,hideOnRouteChange:S,handleShow:R,handleHide:A}),{addToHistory:F,removeFromHistory:X}=Rc(V,$,S),_={belowBreakpoint:g,hide:$},E=b(()=>e.side==="right"),B=b(()=>(r.lang.rtl===!0?-1:1)*(E.value===!0?1:-1)),p=se(0),z=se(!1),I=se(!1),le=se(T.value*B.value),ee=b(()=>E.value===!0?"left":"right"),Q=b(()=>V.value===!0&&g.value===!1&&e.overlay===!1?e.miniToOverlay===!0?e.miniWidth:T.value:0),N=b(()=>e.overlay===!0||e.miniToOverlay===!0||a.view.value.indexOf(E.value?"R":"L")!==-1||r.platform.is.ios===!0&&a.isContainer.value===!0),ie=b(()=>e.overlay===!1&&V.value===!0&&g.value===!1),me=b(()=>e.overlay===!0&&V.value===!0&&g.value===!1),O=b(()=>"fullscreen q-drawer__backdrop"+(V.value===!1&&z.value===!1?" hidden":"")),k=b(()=>({backgroundColor:`rgba(0,0,0,${p.value*.4})`})),te=b(()=>E.value===!0?a.rows.value.top[2]==="r":a.rows.value.top[0]==="l"),ge=b(()=>E.value===!0?a.rows.value.bottom[2]==="r":a.rows.value.bottom[0]==="l"),ve=b(()=>{const v={};return a.header.space===!0&&te.value===!1&&(N.value===!0?v.top=`${a.header.offset}px`:a.header.space===!0&&(v.top=`${a.header.size}px`)),a.footer.space===!0&&ge.value===!1&&(N.value===!0?v.bottom=`${a.footer.offset}px`:a.footer.space===!0&&(v.bottom=`${a.footer.size}px`)),v}),H=b(()=>{const v={width:`${T.value}px`,transform:`translateX(${le.value}px)`};return g.value===!0?v:Object.assign(v,ve.value)}),ae=b(()=>"q-drawer__content fit "+(a.isContainer.value!==!0?"scroll":"overflow-auto")),_e=b(()=>`q-drawer q-drawer--${e.side}`+(I.value===!0?" q-drawer--mini-animate":"")+(e.bordered===!0?" q-drawer--bordered":"")+(l.value===!0?" q-drawer--dark q-dark":"")+(z.value===!0?" no-transition":V.value===!0?"":" q-layout--prevent-focus")+(g.value===!0?" fixed q-drawer--on-top q-drawer--mobile q-drawer--top-padding":` q-drawer--${P.value===!0?"mini":"standard"}`+(N.value===!0||ie.value!==!0?" fixed":"")+(e.overlay===!0||e.miniToOverlay===!0?" q-drawer--on-top":"")+(te.value===!0?" q-drawer--top-padding":""))),ne=b(()=>{const v=r.lang.rtl===!0?e.side:ee.value;return[[Br,K,void 0,{[v]:!0,mouse:!0}]]}),Te=b(()=>{const v=r.lang.rtl===!0?ee.value:e.side;return[[Br,Y,void 0,{[v]:!0,mouse:!0}]]}),Je=b(()=>{const v=r.lang.rtl===!0?ee.value:e.side;return[[Br,Y,void 0,{[v]:!0,mouse:!0,mouseAllDir:!0}]]});function dt(){U(g,e.behavior==="mobile"||e.behavior!=="desktop"&&a.totalWidth.value<=e.breakpoint)}he(g,v=>{v===!0?(f=V.value,V.value===!0&&$(!1)):e.overlay===!1&&e.behavior!=="mobile"&&f!==!1&&(V.value===!0?(m(0),y(0),oe()):L(!1))}),he(()=>e.side,(v,x)=>{a.instances[x]===_&&(a.instances[x]=void 0,a[x].space=!1,a[x].offset=0),a.instances[v]=_,a[v].size=T.value,a[v].space=ie.value,a[v].offset=Q.value}),he(a.totalWidth,()=>{(a.isContainer.value===!0||document.qScrollPrevented!==!0)&&dt()}),he(()=>e.behavior+e.breakpoint,dt),he(a.isContainer,v=>{V.value===!0&&s(v!==!0),v===!0&&dt()}),he(a.scrollbarWidth,()=>{m(V.value===!0?0:void 0)}),he(Q,v=>{Z("offset",v)}),he(ie,v=>{n("onLayout",v),Z("space",v)}),he(E,()=>{m()}),he(T,v=>{m(),j(e.miniToOverlay,v)}),he(()=>e.miniToOverlay,v=>{j(v,T.value)}),he(()=>r.lang.rtl,()=>{m()}),he(()=>e.mini,()=>{e.noMiniAnimation||e.modelValue===!0&&(J(),a.animate())}),he(P,v=>{n("miniState",v)});function m(v){v===void 0?Fe(()=>{v=V.value===!0?0:T.value,m(B.value*v)}):(a.isContainer.value===!0&&E.value===!0&&(g.value===!0||Math.abs(v)===T.value)&&(v+=B.value*a.scrollbarWidth.value),le.value=v)}function y(v){p.value=v}function M(v){const x=v===!0?"remove":a.isContainer.value!==!0?"add":"";x!==""&&document.body.classList[x]("q-body--drawer-toggle")}function J(){d!==null&&clearTimeout(d),i.proxy&&i.proxy.$el&&i.proxy.$el.classList.add("q-drawer--mini-animate"),I.value=!0,d=setTimeout(()=>{d=null,I.value=!1,i&&i.proxy&&i.proxy.$el&&i.proxy.$el.classList.remove("q-drawer--mini-animate")},150)}function K(v){if(V.value!==!1)return;const x=T.value,q=ai(v.distance.x,0,x);if(v.isFinal===!0){q>=Math.min(75,x)===!0?L():(a.animate(),y(0),m(B.value*x)),z.value=!1;return}m((r.lang.rtl===!0?E.value!==!0:E.value)?Math.max(x-q,0):Math.min(0,q-x)),y(ai(q/x,0,1)),v.isFirst===!0&&(z.value=!0)}function Y(v){if(V.value!==!0)return;const x=T.value,q=v.direction===e.side,W=(r.lang.rtl===!0?q!==!0:q)?ai(v.distance.x,0,x):0;if(v.isFinal===!0){Math.abs(W){n("onLayout",ie.value),n("miniState",P.value),f=e.showIfAbove===!0;const v=()=>{(V.value===!0?R:A)(!1,!0)};if(a.totalWidth.value!==0){Fe(v);return}h=he(a.totalWidth,()=>{h(),h=void 0,V.value===!1&&e.showIfAbove===!0&&g.value===!1?L(!1):v()})}),Be(()=>{h!==void 0&&h(),d!==null&&(clearTimeout(d),d=null),V.value===!0&&oe(),a.instances[e.side]===_&&(a.instances[e.side]=void 0,Z("size",0),Z("offset",0),Z("space",!1))}),()=>{const v=[];g.value===!0&&(e.noSwipeOpen===!1&&v.push(Ye(C("div",{key:"open",class:`q-drawer__opener fixed-${e.side}`,"aria-hidden":"true"}),ne.value)),v.push(hl("div",{ref:"backdrop",class:O.value,style:k.value,"aria-hidden":"true",onClick:$},void 0,"backdrop",e.noSwipeBackdrop!==!0&&V.value===!0,()=>Je.value)));const x=P.value===!0&&t.mini!==void 0,q=[C("div",{...o,key:""+x,class:[ae.value,o.class]},x===!0?t.mini():ze(t.default))];return e.elevated===!0&&V.value===!0&&q.push(C("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),v.push(hl("aside",{ref:"content",class:_e.value,style:H.value},q,"contentclose",e.noSwipeClose!==!0&&g.value===!0,()=>Te.value)),C("div",{class:"q-drawer-container"},v)}}}),um=ke({name:"QPageContainer",setup(e,{slots:t}){const{proxy:{$q:n}}=Se(),o=Ut(rr,qt);if(o===qt)return console.error("QPageContainer needs to be child of QLayout"),qt;Zi(jv,!0);const i=b(()=>{const r={};return o.header.space===!0&&(r.paddingTop=`${o.header.size}px`),o.right.space===!0&&(r[`padding${n.lang.rtl===!0?"Left":"Right"}`]=`${o.right.size}px`),o.footer.space===!0&&(r.paddingBottom=`${o.footer.size}px`),o.left.space===!0&&(r[`padding${n.lang.rtl===!0?"Right":"Left"}`]=`${o.left.size}px`),r});return()=>C("div",{class:"q-page-container",style:i.value},ze(t.default))}}),{passive:Ea}=Ue,cm=["both","horizontal","vertical"],fm=ke({name:"QScrollObserver",props:{axis:{type:String,validator:e=>cm.includes(e),default:"vertical"},debounce:[String,Number],scrollTarget:Gl},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 o=null,i,r;he(()=>e.scrollTarget,()=>{u(),s()});function l(){o!==null&&o();const f=Math.max(0,Vc(i)),d=Nc(i),h={top:f-n.position.top,left:d-n.position.left};if(e.axis==="vertical"&&h.top===0||e.axis==="horizontal"&&h.left===0)return;const g=Math.abs(h.top)>=Math.abs(h.left)?h.top<0?"up":"down":h.left<0?"left":"right";n.position={top:f,left:d},n.directionChanged=n.direction!==g,n.delta=h,n.directionChanged===!0&&(n.direction=g,n.inflectionPoint=n.position),t("scroll",{...n})}function s(){i=Yl(r,e.scrollTarget),i.addEventListener("scroll",c,Ea),c(!0)}function u(){i!==void 0&&(i.removeEventListener("scroll",c,Ea),i=void 0)}function c(f){if(f===!0||e.debounce===0||e.debounce==="0")l();else if(o===null){const[d,h]=e.debounce?[setTimeout(l,e.debounce),clearTimeout]:[requestAnimationFrame(l),cancelAnimationFrame];o=()=>{h(d),o=null}}}const{proxy:a}=Se();return he(()=>a.$q.lang.rtl,l),wt(()=>{r=a.$el.parentNode,s()}),Be(()=>{o!==null&&o(),u()}),Object.assign(a,{trigger:c,getPosition:()=>n}),bt}});function dm(){const e=se(!Vt.value);return e.value===!1&&wt(()=>{e.value=!0}),{isHydrated:e}}const zc=typeof ResizeObserver<"u",Ta=zc===!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"},vl=ke({name:"QResizeObserver",props:{debounce:{type:[String,Number],default:100}},emits:["resize"],setup(e,{emit:t}){let n=null,o,i={width:-1,height:-1};function r(u){u===!0||e.debounce===0||e.debounce==="0"?l():n===null&&(n=setTimeout(l,e.debounce))}function l(){if(n!==null&&(clearTimeout(n),n=null),o){const{offsetWidth:u,offsetHeight:c}=o;(u!==i.width||c!==i.height)&&(i={width:u,height:c},t("resize",i))}}const{proxy:s}=Se();if(s.trigger=r,zc===!0){let u;const c=a=>{o=s.$el.parentNode,o?(u=new ResizeObserver(r),u.observe(o),l()):a!==!0&&Fe(()=>{c(!0)})};return wt(()=>{c()}),Be(()=>{n!==null&&clearTimeout(n),u!==void 0&&(u.disconnect!==void 0?u.disconnect():o&&u.unobserve(o))}),bt}else{let u=function(){n!==null&&(clearTimeout(n),n=null),f!==void 0&&(f.removeEventListener!==void 0&&f.removeEventListener("resize",r,Ue.passive),f=void 0)},c=function(){u(),o&&o.contentDocument&&(f=o.contentDocument.defaultView,f.addEventListener("resize",r,Ue.passive),l())};const{isHydrated:a}=dm();let f;return wt(()=>{Fe(()=>{o=s.$el,o&&c()})}),Be(u),()=>{if(a.value===!0)return C("object",{class:"q--avoid-card-border",style:Ta.style,tabindex:-1,type:"text/html",data:Ta.url,"aria-hidden":"true",onLoad:c})}}}}),hm=ke({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:o}}=Se(),i=se(null),r=se(o.screen.height),l=se(e.container===!0?0:o.screen.width),s=se({position:0,direction:"down",inflectionPoint:0}),u=se(0),c=se(Vt.value===!0?0:wi()),a=b(()=>"q-layout q-layout--"+(e.container===!0?"containerized":"standard")),f=b(()=>e.container===!1?{minHeight:o.screen.height+"px"}:null),d=b(()=>c.value!==0?{[o.lang.rtl===!0?"left":"right"]:`${c.value}px`}:null),h=b(()=>c.value!==0?{[o.lang.rtl===!0?"right":"left"]:0,[o.lang.rtl===!0?"left":"right"]:`-${c.value}px`,width:`calc(100% + ${c.value}px)`}:null);function g(A){if(e.container===!0||document.qScrollPrevented!==!0){const L={position:A.position.top,direction:A.direction,directionChanged:A.directionChanged,inflectionPoint:A.inflectionPoint.top,delta:A.delta.top};s.value=L,e.onScroll!==void 0&&n("scroll",L)}}function P(A){const{height:L,width:$}=A;let F=!1;r.value!==L&&(F=!0,r.value=L,e.onScrollHeight!==void 0&&n("scrollHeight",L),V()),l.value!==$&&(F=!0,l.value=$),F===!0&&e.onResize!==void 0&&n("resize",A)}function T({height:A}){u.value!==A&&(u.value=A,V())}function V(){if(e.container===!0){const A=r.value>u.value?wi():0;c.value!==A&&(c.value=A)}}let S=null;const R={instances:{},view:b(()=>e.view),isContainer:b(()=>e.container),rootRef:i,height:r,containerHeight:u,scrollbarWidth:c,totalWidth:b(()=>l.value+c.value),rows:b(()=>{const A=e.view.toLowerCase().split(" ");return{top:A[0].split(""),middle:A[1].split(""),bottom:A[2].split("")}}),header:Ht({size:0,offset:0,space:!1}),right:Ht({size:300,offset:0,space:!1}),footer:Ht({size:0,offset:0,space:!1}),left:Ht({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(A,L,$){R[A][L]=$}};if(Zi(rr,R),wi()>0){let A=function(){F=null,X.classList.remove("hide-scrollbar")},L=function(){if(F===null){if(X.scrollHeight>o.screen.height)return;X.classList.add("hide-scrollbar")}else clearTimeout(F);F=setTimeout(A,300)},$=function(_){F!==null&&_==="remove"&&(clearTimeout(F),A()),window[`${_}EventListener`]("resize",L)},F=null;const X=document.body;he(()=>e.container!==!0?"add":"remove",$),e.container!==!0&&$("add"),Xi(()=>{$("remove")})}return()=>{const A=Zt(t.default,[C(fm,{onScroll:g}),C(vl,{onResize:P})]),L=C("div",{class:a.value,style:f.value,ref:e.container===!0?void 0:i,tabindex:-1},A);return e.container===!0?C("div",{class:"q-layout-container overflow-hidden",ref:i},[C(vl,{onResize:T}),C("div",{class:"absolute-full",style:d.value},[C("div",{class:"scroll",style:h.value},[L])])]):L}}}),ml={xs:18,sm:24,md:32,lg:38,xl:46},vo={size:String};function mo(e,t=ml){return b(()=>e.size!==void 0?{fontSize:e.size in t?`${t[e.size]}px`:e.size}:null)}const Aa="0 0 24 24",qa=e=>e,Dr=e=>`ionicons ${e}`,jc={"mdi-":e=>`mdi ${e}`,"icon-":qa,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":Dr,"ion-ios":Dr,"ion-logo":Dr,"iconfont ":qa,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`},Hc={o_:"-outlined",r_:"-round",s_:"-sharp"},Kc={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},vm=new RegExp("^("+Object.keys(jc).join("|")+")"),mm=new RegExp("^("+Object.keys(Hc).join("|")+")"),$a=new RegExp("^("+Object.keys(Kc).join("|")+")"),gm=/^[Mm]\s?[-+]?\.?\d/,pm=/^img:/,bm=/^svguse:/,ym=/^ion-/,wm=/^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,We=ke({name:"QIcon",props:{...vo,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:t}){const{proxy:{$q:n}}=Se(),o=mo(e),i=b(()=>"q-icon"+(e.left===!0?" on-left":"")+(e.right===!0?" on-right":"")+(e.color!==void 0?` text-${e.color}`:"")),r=b(()=>{let l,s=e.name;if(s==="none"||!s)return{none:!0};if(n.iconMapFn!==null){const a=n.iconMapFn(s);if(a!==void 0)if(a.icon!==void 0){if(s=a.icon,s==="none"||!s)return{none:!0}}else return{cls:a.cls,content:a.content!==void 0?a.content:" "}}if(gm.test(s)===!0){const[a,f=Aa]=s.split("|");return{svg:!0,viewBox:f,nodes:a.split("&&").map(d=>{const[h,g,P]=d.split("@@");return C("path",{style:g,d:h,transform:P})})}}if(pm.test(s)===!0)return{img:!0,src:s.substring(4)};if(bm.test(s)===!0){const[a,f=Aa]=s.split("|");return{svguse:!0,src:a.substring(7),viewBox:f}}let u=" ";const c=s.match(vm);if(c!==null)l=jc[c[1]](s);else if(wm.test(s)===!0)l=s;else if(ym.test(s)===!0)l=`ionicons ion-${n.platform.is.ios===!0?"ios":"md"}${s.substring(3)}`;else if($a.test(s)===!0){l="notranslate material-symbols";const a=s.match($a);a!==null&&(s=s.substring(6),l+=Kc[a[1]]),u=s}else{l="notranslate material-icons";const a=s.match(mm);a!==null&&(s=s.substring(2),l+=Hc[a[1]]),u=s}return{cls:l,content:u}});return()=>{const l={class:i.value,style:o.value,"aria-hidden":"true",role:"presentation"};return r.value.none===!0?C(e.tag,l,ze(t.default)):r.value.img===!0?C(e.tag,l,Zt(t.default,[C("img",{src:r.value.src})])):r.value.svg===!0?C(e.tag,l,Zt(t.default,[C("svg",{viewBox:r.value.viewBox||"0 0 24 24"},r.value.nodes)])):r.value.svguse===!0?C(e.tag,l,Zt(t.default,[C("svg",{viewBox:r.value.viewBox},[C("use",{"xlink:href":r.value.src})])])):(r.value.cls!==void 0&&(l.class+=" "+r.value.cls),C(e.tag,l,Zt(t.default,[r.value.content])))}}}),Pi=ke({name:"QAvatar",props:{...vo,fontSize:String,color:String,textColor:String,icon:String,square:Boolean,rounded:Boolean},setup(e,{slots:t}){const n=mo(e),o=b(()=>"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":"")),i=b(()=>e.fontSize?{fontSize:e.fontSize}:null);return()=>{const r=e.icon!==void 0?[C(We,{name:e.icon})]:void 0;return C("div",{class:o.value,style:n.value},[C("div",{class:"q-avatar__content row flex-center overflow-hidden",style:i.value},Dc(t.default,r))])}}}),Dt=ke({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(e,{slots:t}){const n=b(()=>`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()=>C("div",{class:n.value},ze(t.default))}});function Oa(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function Pa(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function _m(e,t){for(const n in t){const o=t[n],i=e[n];if(typeof o=="string"){if(o!==i)return!1}else if(Array.isArray(i)===!1||i.length!==o.length||o.some((r,l)=>r!==i[l]))return!1}return!0}function Ma(e,t){return Array.isArray(t)===!0?e.length===t.length&&e.every((n,o)=>n===t[o]):e.length===1&&e[0]===t}function Sm(e,t){return Array.isArray(e)===!0?Ma(e,t):Array.isArray(t)===!0?Ma(t,e):e===t}function xm(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(Sm(e[n],t[n])===!1)return!1;return!0}const Uc={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},Cm={...Uc,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function Wc({fallbackTag:e,useDisableForRouterLinkProps:t=!0}={}){const n=Se(),{props:o,proxy:i,emit:r}=n,l=Ic(n),s=b(()=>o.disable!==!0&&o.href!==void 0),u=b(t===!0?()=>l===!0&&o.disable!==!0&&s.value!==!0&&o.to!==void 0&&o.to!==null&&o.to!=="":()=>l===!0&&s.value!==!0&&o.to!==void 0&&o.to!==null&&o.to!==""),c=b(()=>u.value===!0?S(o.to):null),a=b(()=>c.value!==null),f=b(()=>s.value===!0||a.value===!0),d=b(()=>o.type==="a"||f.value===!0?"a":o.tag||e||"div"),h=b(()=>s.value===!0?{href:o.href,target:o.target}:a.value===!0?{href:c.value.href,target:o.target}:{}),g=b(()=>{if(a.value===!1)return-1;const{matched:L}=c.value,{length:$}=L,F=L[$-1];if(F===void 0)return-1;const X=i.$route.matched;if(X.length===0)return-1;const _=X.findIndex(Pa.bind(null,F));if(_!==-1)return _;const E=Oa(L[$-2]);return $>1&&Oa(F)===E&&X[X.length-1].path!==E?X.findIndex(Pa.bind(null,L[$-2])):_}),P=b(()=>a.value===!0&&g.value!==-1&&_m(i.$route.params,c.value.params)),T=b(()=>P.value===!0&&g.value===i.$route.matched.length-1&&xm(i.$route.params,c.value.params)),V=b(()=>a.value===!0?T.value===!0?` ${o.exactActiveClass} ${o.activeClass}`:o.exact===!0?"":P.value===!0?` ${o.activeClass}`:"":"");function S(L){try{return i.$router.resolve(L)}catch{}return null}function R(L,{returnRouterError:$,to:F=o.to,replace:X=o.replace}={}){if(o.disable===!0)return L.preventDefault(),Promise.resolve(!1);if(L.metaKey||L.altKey||L.ctrlKey||L.shiftKey||L.button!==void 0&&L.button!==0||o.target==="_blank")return Promise.resolve(!1);L.preventDefault();const _=i.$router[X===!0?"replace":"push"](F);return $===!0?_:_.then(()=>{}).catch(()=>{})}function A(L){if(a.value===!0){const $=F=>R(L,F);r("click",L,$),L.defaultPrevented!==!0&&$()}else r("click",L)}return{hasRouterLink:a,hasHrefLink:s,hasLink:f,linkTag:d,resolvedLink:c,linkIsActive:P,linkIsExactActive:T,linkClass:V,linkAttrs:h,getLink:S,navigateToRouterLink:R,navigateOnClick:A}}const zt=ke({name:"QItem",props:{...$t,...Cm,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:o}}=Se(),i=Ot(e,o),{hasLink:r,linkAttrs:l,linkClass:s,linkTag:u,navigateOnClick:c}=Wc(),a=se(null),f=se(null),d=b(()=>e.clickable===!0||r.value===!0||e.tag==="label"),h=b(()=>e.disable!==!0&&d.value===!0),g=b(()=>"q-item q-item-type row no-wrap"+(e.dense===!0?" q-item--dense":"")+(i.value===!0?" q-item--dark":"")+(r.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":""):"")),P=b(()=>e.insetLevel===void 0?null:{["padding"+(o.lang.rtl===!0?"Right":"Left")]:16+e.insetLevel*56+"px"});function T(R){h.value===!0&&(f.value!==null&&(R.qKeyEvent!==!0&&document.activeElement===a.value?f.value.focus():document.activeElement===f.value&&a.value.focus()),c(R))}function V(R){if(h.value===!0&&mn(R,[13,32])===!0){Ve(R),R.qKeyEvent=!0;const A=new MouseEvent("click",R);A.qKeyEvent=!0,a.value.dispatchEvent(A)}n("keyup",R)}function S(){const R=Xl(t.default,[]);return h.value===!0&&R.unshift(C("div",{class:"q-focus-helper",tabindex:-1,ref:f})),R}return()=>{const R={ref:a,class:g.value,style:P.value,role:"listitem",onClick:T,onKeyup:V};return h.value===!0?(R.tabindex=e.tabindex||"0",Object.assign(R,l.value)):d.value===!0&&(R["aria-disabled"]="true"),C(u.value,R,S())}}}),km=["ul","ol"],ui=ke({name:"QList",props:{...$t,bordered:Boolean,dense:Boolean,separator:Boolean,padding:Boolean,tag:{type:String,default:"div"}},setup(e,{slots:t}){const n=Se(),o=Ot(e,n.proxy.$q),i=b(()=>km.includes(e.tag)?null:"list"),r=b(()=>"q-list"+(e.bordered===!0?" q-list--bordered":"")+(e.dense===!0?" q-list--dense":"")+(e.separator===!0?" q-list--separator":"")+(o.value===!0?" q-list--dark":"")+(e.padding===!0?" q-list--padding":""));return()=>C(e.tag,{class:r.value,role:i.value},ze(t.default))}}),Qc={target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},Em={...Qc,contextMenu:Boolean};function Gc({showing:e,avoidEmit:t,configureAnchorEl:n}){const{props:o,proxy:i,emit:r}=Se(),l=se(null);let s=null;function u(h){return l.value===null?!1:h===void 0||h.touches===void 0||h.touches.length<=1}const c={};n===void 0&&(Object.assign(c,{hide(h){i.hide(h)},toggle(h){i.toggle(h),h.qAnchorHandled=!0},toggleKey(h){mn(h,13)===!0&&c.toggle(h)},contextClick(h){i.hide(h),ut(h),Fe(()=>{i.show(h),h.qAnchorHandled=!0})},prevent:ut,mobileTouch(h){if(c.mobileCleanup(h),u(h)!==!0)return;i.hide(h),l.value.classList.add("non-selectable");const g=h.target;Xt(c,"anchor",[[g,"touchmove","mobileCleanup","passive"],[g,"touchend","mobileCleanup","passive"],[g,"touchcancel","mobileCleanup","passive"],[l.value,"contextmenu","prevent","notPassive"]]),s=setTimeout(()=>{s=null,i.show(h),h.qAnchorHandled=!0},300)},mobileCleanup(h){l.value.classList.remove("non-selectable"),s!==null&&(clearTimeout(s),s=null),e.value===!0&&h!==void 0&&Oi()}}),n=function(h=o.contextMenu){if(o.noParentEvent===!0||l.value===null)return;let g;h===!0?i.$q.platform.is.mobile===!0?g=[[l.value,"touchstart","mobileTouch","passive"]]:g=[[l.value,"mousedown","hide","passive"],[l.value,"contextmenu","contextClick","notPassive"]]:g=[[l.value,"click","toggle","passive"],[l.value,"keyup","toggleKey","passive"]],Xt(c,"anchor",g)});function a(){On(c,"anchor")}function f(h){for(l.value=h;l.value.classList.contains("q-anchor--skip");)l.value=l.value.parentNode;n()}function d(){if(o.target===!1||o.target===""||i.$el.parentNode===null)l.value=null;else if(o.target===!0)f(i.$el.parentNode);else{let h=o.target;if(typeof o.target=="string")try{h=document.querySelector(o.target)}catch{h=void 0}h!=null?(l.value=h.$el||h,n()):(l.value=null,console.error(`Anchor: target "${o.target}" not found`))}}return he(()=>o.contextMenu,h=>{l.value!==null&&(a(),n(h))}),he(()=>o.target,()=>{l.value!==null&&a(),d()}),he(()=>o.noParentEvent,h=>{l.value!==null&&(h===!0?a():n())}),wt(()=>{d(),t!==!0&&o.modelValue===!0&&l.value===null&&r("update:modelValue",!1)}),Be(()=>{s!==null&&clearTimeout(s),a()}),{anchorEl:l,canShow:u,anchorEvents:c}}function Yc(e,t){const n=se(null);let o;function i(s,u){const c=`${u!==void 0?"add":"remove"}EventListener`,a=u!==void 0?u:o;s!==window&&s[c]("scroll",a,Ue.passive),window[c]("scroll",a,Ue.passive),o=u}function r(){n.value!==null&&(i(n.value),n.value=null)}const l=he(()=>e.noParentEvent,()=>{n.value!==null&&(r(),t())});return Be(l),{localScrollTarget:n,unconfigureScrollTarget:r,changeScrollEvent:i}}let An=[],Ko=[];function Jc(e){Ko=Ko.filter(t=>t!==e)}function Tm(e){Jc(e),Ko.push(e)}function La(e){Jc(e),Ko.length===0&&An.length!==0&&(An[An.length-1](),An=[])}function ur(e){Ko.length===0?e():An.push(e)}function Am(e){An=An.filter(t=>t!==e)}let qm=1,$m=document.body;function Xc(e,t){const n=document.createElement("div");if(n.id=t!==void 0?`q-portal--${t}--${qm++}`:e,$i.globalNodes!==void 0){const o=$i.globalNodes.class;o!==void 0&&(n.className=o)}return $m.appendChild(n),n}function Om(e){e.remove()}const ro=[];function Pm(e){return ro.find(t=>t.contentEl!==null&&t.contentEl.contains(e))}function Zc(e,t){do{if(e.$options.name==="QMenu"){if(e.hide(t),e.$props.separateClosePopup===!0)return yi(e)}else if(e.__qPortal===!0){const n=yi(e);return n!==void 0&&n.$options.name==="QPopupProxy"?(e.hide(t),n):e}e=yi(e)}while(e!=null)}function Mm(e,t,n){for(;n!==0&&e!==void 0&&e!==null;){if(e.__qPortal===!0){if(n--,e.$options.name==="QMenu"){e=Zc(e,t);continue}e.hide(t)}e=yi(e)}}const Lm=ke({name:"QPortal",setup(e,{slots:t}){return()=>t.default()}});function Rm(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 Zl(e,t,n,o){const i=se(!1),r=se(!1);let l=null;const s={},u=o==="dialog"&&Rm(e);function c(f){if(f===!0){La(s),r.value=!0;return}r.value=!1,i.value===!1&&(u===!1&&l===null&&(l=Xc(!1,o)),i.value=!0,ro.push(e.proxy),Tm(s))}function a(f){if(r.value=!1,f!==!0)return;La(s),i.value=!1;const d=ro.indexOf(e.proxy);d!==-1&&ro.splice(d,1),l!==null&&(Om(l),l=null)}return Xi(()=>{a(!0)}),e.proxy.__qPortal=!0,Vn(e.proxy,"contentEl",()=>t.value),{showPortal:c,hidePortal:a,portalIsActive:i,portalIsAccessible:r,renderPortal:()=>u===!0?n():i.value===!0?[C(Kd,{to:l},C(Lm,n))]:void 0}}const Io={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function es(e,t=()=>{},n=()=>{}){return{transitionProps:b(()=>{const o=`q-transition--${e.transitionShow||t()}`,i=`q-transition--${e.transitionHide||n()}`;return{appear:!0,enterFromClass:`${o}-enter-from`,enterActiveClass:`${o}-enter-active`,enterToClass:`${o}-enter-to`,leaveFromClass:`${i}-leave-from`,leaveActiveClass:`${i}-leave-active`,leaveToClass:`${i}-leave-to`}}),transitionStyle:b(()=>`--q-transition-duration: ${e.transitionDuration}ms`)}}function ts(){let e;const t=Se();function n(){e=void 0}return Wo(n),Be(n),{removeTick:n,registerTick(o){e=o,Fe(()=>{e===o&&(Ro(t)===!1&&e(),e=void 0)})}}}const Pn=[];let fo;function Im(e){fo=e.keyCode===27}function Fm(){fo===!0&&(fo=!1)}function Vm(e){fo===!0&&(fo=!1,mn(e,27)===!0&&Pn[Pn.length-1](e))}function ef(e){window[e]("keydown",Im),window[e]("blur",Fm),window[e]("keyup",Vm),fo=!1}function tf(e){Me.is.desktop===!0&&(Pn.push(e),Pn.length===1&&ef("addEventListener"))}function Mi(e){const t=Pn.indexOf(e);t!==-1&&(Pn.splice(t,1),Pn.length===0&&ef("removeEventListener"))}const Mn=[];function nf(e){Mn[Mn.length-1](e)}function of(e){Me.is.desktop===!0&&(Mn.push(e),Mn.length===1&&document.body.addEventListener("focusin",nf))}function gl(e){const t=Mn.indexOf(e);t!==-1&&(Mn.splice(t,1),Mn.length===0&&document.body.removeEventListener("focusin",nf))}const{notPassiveCapture:Li}=Ue,Ln=[];function Ri(e){const t=e.target;if(t===void 0||t.nodeType===8||t.classList.contains("no-pointer-events")===!0)return;let n=ro.length-1;for(;n>=0;){const o=ro[n].$;if(o.type.name==="QTooltip"){n--;continue}if(o.type.name!=="QDialog")break;if(o.props.seamless!==!0)return;n--}for(let o=Ln.length-1;o>=0;o--){const i=Ln[o];if((i.anchorEl.value===null||i.anchorEl.value.contains(t)===!1)&&(t===document.body||i.innerRef.value!==null&&i.innerRef.value.contains(t)===!1))e.qClickOutside=!0,i.onClickOutside(e);else return}}function rf(e){Ln.push(e),Ln.length===1&&(document.addEventListener("mousedown",Ri,Li),document.addEventListener("touchstart",Ri,Li))}function Ii(e){const t=Ln.findIndex(n=>n===e);t!==-1&&(Ln.splice(t,1),Ln.length===0&&(document.removeEventListener("mousedown",Ri,Li),document.removeEventListener("touchstart",Ri,Li)))}let Ra,Ia;function Fi(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 lf(e){return e?!(e.length!==2||typeof e[0]!="number"||typeof e[1]!="number"):!0}const pl={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(e=>{pl[`${e}#ltr`]=e,pl[`${e}#rtl`]=e});function Vi(e,t){const n=e.split(" ");return{vertical:n[0],horizontal:pl[`${n[1]}#${t===!0?"rtl":"ltr"}`]}}function Nm(e,t){let{top:n,left:o,right:i,bottom:r,width:l,height:s}=e.getBoundingClientRect();return t!==void 0&&(n-=t[1],o-=t[0],r+=t[1],i+=t[0],l+=t[0],s+=t[1]),{top:n,bottom:r,height:s,left:o,right:i,width:l,middle:o+(i-o)/2,center:n+(r-n)/2}}function Bm(e,t,n){let{top:o,left:i}=e.getBoundingClientRect();return o+=t.top,i+=t.left,n!==void 0&&(o+=n[1],i+=n[0]),{top:o,bottom:o+1,height:1,left:i,right:i+1,width:1,middle:i,center:o}}function Dm(e,t){return{top:0,center:t/2,bottom:t,left:0,middle:e/2,right:e}}function Fa(e,t,n,o){return{top:e[n.vertical]-t[o.vertical],left:e[n.horizontal]-t[o.horizontal]}}function ns(e,t=0){if(e.targetEl===null||e.anchorEl===null||t>5)return;if(e.targetEl.offsetHeight===0||e.targetEl.offsetWidth===0){setTimeout(()=>{ns(e,t+1)},10);return}const{targetEl:n,offset:o,anchorEl:i,anchorOrigin:r,selfOrigin:l,absoluteOffset:s,fit:u,cover:c,maxHeight:a,maxWidth:f}=e;if(Me.is.ios===!0&&window.visualViewport!==void 0){const $=document.body.style,{offsetLeft:F,offsetTop:X}=window.visualViewport;F!==Ra&&($.setProperty("--q-pe-left",F+"px"),Ra=F),X!==Ia&&($.setProperty("--q-pe-top",X+"px"),Ia=X)}const{scrollLeft:d,scrollTop:h}=n,g=s===void 0?Nm(i,c===!0?[0,0]:o):Bm(i,s,o);Object.assign(n.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:f,maxHeight:a,visibility:"visible"});const{offsetWidth:P,offsetHeight:T}=n,{elWidth:V,elHeight:S}=u===!0||c===!0?{elWidth:Math.max(g.width,P),elHeight:c===!0?Math.max(g.height,T):T}:{elWidth:P,elHeight:T};let R={maxWidth:f,maxHeight:a};(u===!0||c===!0)&&(R.minWidth=g.width+"px",c===!0&&(R.minHeight=g.height+"px")),Object.assign(n.style,R);const A=Dm(V,S);let L=Fa(g,A,r,l);if(s===void 0||o===void 0)zr(L,g,A,r,l);else{const{top:$,left:F}=L;zr(L,g,A,r,l);let X=!1;if(L.top!==$){X=!0;const _=2*o[1];g.center=g.top-=_,g.bottom-=_+2}if(L.left!==F){X=!0;const _=2*o[0];g.middle=g.left-=_,g.right-=_+2}X===!0&&(L=Fa(g,A,r,l),zr(L,g,A,r,l))}R={top:L.top+"px",left:L.left+"px"},L.maxHeight!==void 0&&(R.maxHeight=L.maxHeight+"px",g.height>L.maxHeight&&(R.minHeight=R.maxHeight)),L.maxWidth!==void 0&&(R.maxWidth=L.maxWidth+"px",g.width>L.maxWidth&&(R.minWidth=R.maxWidth)),Object.assign(n.style,R),n.scrollTop!==h&&(n.scrollTop=h),n.scrollLeft!==d&&(n.scrollLeft=d)}function zr(e,t,n,o,i){const r=n.bottom,l=n.right,s=wi(),u=window.innerHeight-s,c=document.body.clientWidth;if(e.top<0||e.top+r>u)if(i.vertical==="center")e.top=t[o.vertical]>u/2?Math.max(0,u-r):0,e.maxHeight=Math.min(r,u);else if(t[o.vertical]>u/2){const a=Math.min(u,o.vertical==="center"?t.center:o.vertical===i.vertical?t.bottom:t.top);e.maxHeight=Math.min(r,a),e.top=Math.max(0,a-r)}else e.top=Math.max(0,o.vertical==="center"?t.center:o.vertical===i.vertical?t.top:t.bottom),e.maxHeight=Math.min(r,u-e.top);if(e.left<0||e.left+l>c)if(e.maxWidth=Math.min(l,c),i.horizontal==="middle")e.left=t[o.horizontal]>c/2?Math.max(0,c-l):0;else if(t[o.horizontal]>c/2){const a=Math.min(c,o.horizontal==="middle"?t.middle:o.horizontal===i.horizontal?t.right:t.left);e.maxWidth=Math.min(l,a),e.left=Math.max(0,a-e.maxWidth)}else e.left=Math.max(0,o.horizontal==="middle"?t.middle:o.horizontal===i.horizontal?t.left:t.right),e.maxWidth=Math.min(l,c-e.left)}const Ao=ke({name:"QMenu",inheritAttrs:!1,props:{...Em,...lr,...$t,...Io,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:Fi},self:{type:String,validator:Fi},offset:{type:Array,validator:lf},scrollTarget:Gl,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...sr,"click","escapeKey"],setup(e,{slots:t,emit:n,attrs:o}){let i=null,r,l,s;const u=Se(),{proxy:c}=u,{$q:a}=c,f=se(null),d=se(!1),h=b(()=>e.persistent!==!0&&e.noRouteDismiss!==!0),g=Ot(e,a),{registerTick:P,removeTick:T}=ts(),{registerTimeout:V}=co(),{transitionProps:S,transitionStyle:R}=es(e),{localScrollTarget:A,changeScrollEvent:L,unconfigureScrollTarget:$}=Yc(e,te),{anchorEl:F,canShow:X}=Gc({showing:d}),{hide:_}=ar({showing:d,canShow:X,handleShow:me,handleHide:O,hideOnRouteChange:h,processOnMount:!0}),{showPortal:E,hidePortal:B,renderPortal:p}=Zl(u,f,_e,"menu"),z={anchorEl:F,innerRef:f,onClickOutside(ne){if(e.persistent!==!0&&d.value===!0)return _(ne),(ne.type==="touchstart"||ne.target.classList.contains("q-dialog__backdrop"))&&Ve(ne),!0}},I=b(()=>Vi(e.anchor||(e.cover===!0?"center middle":"bottom start"),a.lang.rtl)),le=b(()=>e.cover===!0?I.value:Vi(e.self||"top start",a.lang.rtl)),ee=b(()=>(e.square===!0?" q-menu--square":"")+(g.value===!0?" q-menu--dark q-dark":"")),Q=b(()=>e.autoClose===!0?{onClick:ge}:{}),N=b(()=>d.value===!0&&e.persistent!==!0);he(N,ne=>{ne===!0?(tf(H),rf(z)):(Mi(H),Ii(z))});function ie(){ur(()=>{let ne=f.value;ne&&ne.contains(document.activeElement)!==!0&&(ne=ne.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||ne.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||ne.querySelector("[autofocus], [data-autofocus]")||ne,ne.focus({preventScroll:!0}))})}function me(ne){if(i=e.noRefocus===!1?document.activeElement:null,of(ve),E(),te(),r=void 0,ne!==void 0&&(e.touchPosition||e.contextMenu)){const Te=jo(ne);if(Te.left!==void 0){const{top:Je,left:dt}=F.value.getBoundingClientRect();r={left:Te.left-dt,top:Te.top-Je}}}l===void 0&&(l=he(()=>a.screen.width+"|"+a.screen.height+"|"+e.self+"|"+e.anchor+"|"+a.lang.rtl,ae)),e.noFocus!==!0&&document.activeElement.blur(),P(()=>{ae(),e.noFocus!==!0&&ie()}),V(()=>{a.platform.is.ios===!0&&(s=e.autoClose,f.value.click()),ae(),E(!0),n("show",ne)},e.transitionDuration)}function O(ne){T(),B(),k(!0),i!==null&&(ne===void 0||ne.qClickOutside!==!0)&&(((ne&&ne.type.indexOf("key")===0?i.closest('[tabindex]:not([tabindex^="-"])'):void 0)||i).focus(),i=null),V(()=>{B(!0),n("hide",ne)},e.transitionDuration)}function k(ne){r=void 0,l!==void 0&&(l(),l=void 0),(ne===!0||d.value===!0)&&(gl(ve),$(),Ii(z),Mi(H)),ne!==!0&&(i=null)}function te(){(F.value!==null||e.scrollTarget!==void 0)&&(A.value=Yl(F.value,e.scrollTarget),L(A.value,ae))}function ge(ne){s!==!0?(Zc(c,ne),n("click",ne)):s=!1}function ve(ne){N.value===!0&&e.noFocus!==!0&&Fc(f.value,ne.target)!==!0&&ie()}function H(ne){n("escapeKey"),_(ne)}function ae(){ns({targetEl:f.value,offset:e.offset,anchorEl:F.value,anchorOrigin:I.value,selfOrigin:le.value,absoluteOffset:r,fit:e.fit,cover:e.cover,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function _e(){return C(In,S.value,()=>d.value===!0?C("div",{role:"menu",...o,ref:f,tabindex:-1,class:["q-menu q-position-engine scroll"+ee.value,o.class],style:[o.style,R.value],...Q.value},ze(t.default)):null)}return Be(k),Object.assign(c,{focus:ie,updatePosition:ae}),p}}),os=ke({name:"QSpace",setup(){const e=C("div",{class:"q-space"});return()=>e}}),zm={true:"inset",item:"item-inset","item-thumbnail":"item-thumbnail-inset"},jr={xs:2,sm:4,md:8,lg:16,xl:24},jm=ke({name:"QSeparator",props:{...$t,spaced:[Boolean,String],inset:[Boolean,String],vertical:Boolean,color:String,size:String},setup(e){const t=Se(),n=Ot(e,t.proxy.$q),o=b(()=>e.vertical===!0?"vertical":"horizontal"),i=b(()=>` q-separator--${o.value}`),r=b(()=>e.inset!==!1?`${i.value}-${zm[e.inset]}`:""),l=b(()=>`q-separator${i.value}${r.value}`+(e.color!==void 0?` bg-${e.color}`:"")+(n.value===!0?" q-separator--dark":"")),s=b(()=>{const u={};if(e.size!==void 0&&(u[e.vertical===!0?"width":"height"]=e.size),e.spaced!==!1){const c=e.spaced===!0?`${jr.md}px`:e.spaced in jr?`${jr[e.spaced]}px`:e.spaced,a=e.vertical===!0?["Left","Right"]:["Top","Bottom"];u[`margin${a[0]}`]=u[`margin${a[1]}`]=c}return u});return()=>C("hr",{class:l.value,style:s.value,"aria-orientation":o.value})}}),Hm=ke({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:o}}=Se(),i=Ut(rr,qt);if(i===qt)return console.error("QHeader needs to be child of QLayout"),qt;const r=se(parseInt(e.heightHint,10)),l=se(!0),s=b(()=>e.reveal===!0||i.view.value.indexOf("H")!==-1||o.platform.is.ios&&i.isContainer.value===!0),u=b(()=>{if(e.modelValue!==!0)return 0;if(s.value===!0)return l.value===!0?r.value:0;const S=r.value-i.scroll.value.position;return S>0?S:0}),c=b(()=>e.modelValue!==!0||s.value===!0&&l.value!==!0),a=b(()=>e.modelValue===!0&&c.value===!0&&e.reveal===!0),f=b(()=>"q-header q-layout__section--marginal "+(s.value===!0?"fixed":"absolute")+"-top"+(e.bordered===!0?" q-header--bordered":"")+(c.value===!0?" q-header--hidden":"")+(e.modelValue!==!0?" q-layout--prevent-focus":"")),d=b(()=>{const S=i.rows.value.top,R={};return S[0]==="l"&&i.left.space===!0&&(R[o.lang.rtl===!0?"right":"left"]=`${i.left.size}px`),S[2]==="r"&&i.right.space===!0&&(R[o.lang.rtl===!0?"left":"right"]=`${i.right.size}px`),R});function h(S,R){i.update("header",S,R)}function g(S,R){S.value!==R&&(S.value=R)}function P({height:S}){g(r,S),h("size",S)}function T(S){a.value===!0&&g(l,!0),n("focusin",S)}he(()=>e.modelValue,S=>{h("space",S),g(l,!0),i.animate()}),he(u,S=>{h("offset",S)}),he(()=>e.reveal,S=>{S===!1&&g(l,e.modelValue)}),he(l,S=>{i.animate(),n("reveal",S)}),he(i.scroll,S=>{e.reveal===!0&&g(l,S.direction==="up"||S.position<=e.revealOffset||S.position-S.inflectionPoint<100)});const V={};return i.instances.header=V,e.modelValue===!0&&h("size",r.value),h("space",e.modelValue),h("offset",u.value),Be(()=>{i.instances.header===V&&(i.instances.header=void 0,h("size",0),h("offset",0),h("space",!1))}),()=>{const S=Xl(t.default,[]);return e.elevated===!0&&S.push(C("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),S.push(C(vl,{debounce:0,onResize:P})),C("header",{class:f.value,style:d.value,onFocusin:T},S)}}}),tn=ke({name:"QCardSection",props:{tag:{type:String,default:"div"},horizontal:Boolean},setup(e,{slots:t}){const n=b(()=>`q-card__section q-card__section--${e.horizontal===!0?"horiz row no-wrap":"vert"}`);return()=>C(e.tag,{class:n.value},ze(t.default))}}),Km={size:{type:[String,Number],default:"1em"},color:String};function Um(e){return{cSize:b(()=>e.size in ml?`${ml[e.size]}px`:e.size),classes:b(()=>"q-spinner"+(e.color?` text-${e.color}`:""))}}const cr=ke({name:"QSpinner",props:{...Km,thickness:{type:Number,default:5}},setup(e){const{cSize:t,classes:n}=Um(e);return()=>C("svg",{class:n.value+" q-spinner-mat",width:t.value,height:t.value,viewBox:"25 25 50 50"},[C("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":e.thickness,"stroke-miterlimit":"10"})])}});let Hr,ci=0;const Ze=new Array(256);for(let e=0;e<256;e++)Ze[e]=(e+256).toString(16).substring(1);const Wm=(()=>{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 o=t;o>0;o--)n.push(Math.floor(Math.random()*256));return n}})(),Va=4096;function bl(){(Hr===void 0||ci+16>Va)&&(ci=0,Hr=Wm(Va));const e=Array.prototype.slice.call(Hr,ci,ci+=16);return e[6]=e[6]&15|64,e[8]=e[8]&63|128,Ze[e[0]]+Ze[e[1]]+Ze[e[2]]+Ze[e[3]]+"-"+Ze[e[4]]+Ze[e[5]]+"-"+Ze[e[6]]+Ze[e[7]]+"-"+Ze[e[8]]+Ze[e[9]]+"-"+Ze[e[10]]+Ze[e[11]]+Ze[e[12]]+Ze[e[13]]+Ze[e[14]]+Ze[e[15]]}function Qm(e){return e==null?null:e}function Na(e,t){return e==null?t===!0?`f_${bl()}`:null:e}function Gm({getValue:e,required:t=!0}={}){if(Vt.value===!0){const n=se(e!==void 0?Qm(e()):null);return t===!0&&n.value===null&&wt(()=>{n.value=`f_${bl()}`}),e!==void 0&&he(e,o=>{n.value=Na(o,t)}),n}return e!==void 0?b(()=>Na(e(),t)):se(`f_${bl()}`)}const Ba=/^on[A-Z]/;function Ym(){const{attrs:e,vnode:t}=Se(),n={listeners:se({}),attributes:se({})};function o(){const i={},r={};for(const l in e)l!=="class"&&l!=="style"&&Ba.test(l)===!1&&(i[l]=e[l]);for(const l in t.props)Ba.test(l)===!0&&(r[l]=t.props[l]);n.attributes.value=i,n.listeners.value=r}return Nl(o),o(),n}function Jm({validate:e,resetValidation:t,requiresQForm:n}){const o=Ut(Hv,!1);if(o!==!1){const{props:i,proxy:r}=Se();Object.assign(r,{validate:e,resetValidation:t}),he(()=>i.disable,l=>{l===!0?(typeof t=="function"&&t(),o.unbindComponent(r)):o.bindComponent(r)}),wt(()=>{i.disable!==!0&&o.bindComponent(r)}),Be(()=>{i.disable!==!0&&o.unbindComponent(r)})}else n===!0&&console.error("Parent QForm not found on useFormChild()!")}const Da=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,za=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,ja=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,fi=/^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])\)$/,di=/^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)\)$/,Kr={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=>Da.test(e),hexaColor:e=>za.test(e),hexOrHexaColor:e=>ja.test(e),rgbColor:e=>fi.test(e),rgbaColor:e=>di.test(e),rgbOrRgbaColor:e=>fi.test(e)||di.test(e),hexOrRgbColor:e=>Da.test(e)||fi.test(e),hexaOrRgbaColor:e=>za.test(e)||di.test(e),anyColor:e=>ja.test(e)||fi.test(e)||di.test(e)},Xm=[!0,!1,"ondemand"],Zm={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:e=>Xm.includes(e)}};function eg(e,t){const{props:n,proxy:o}=Se(),i=se(!1),r=se(null),l=se(!1);Jm({validate:P,resetValidation:g});let s=0,u;const c=b(()=>n.rules!==void 0&&n.rules!==null&&n.rules.length!==0),a=b(()=>n.disable!==!0&&c.value===!0&&t.value===!1),f=b(()=>n.error===!0||i.value===!0),d=b(()=>typeof n.errorMessage=="string"&&n.errorMessage.length!==0?n.errorMessage:r.value);he(()=>n.modelValue,()=>{l.value=!0,a.value===!0&&n.lazyRules===!1&&T()});function h(){n.lazyRules!=="ondemand"&&a.value===!0&&l.value===!0&&T()}he(()=>n.reactiveRules,V=>{V===!0?u===void 0&&(u=he(()=>n.rules,h,{immediate:!0,deep:!0})):u!==void 0&&(u(),u=void 0)},{immediate:!0}),he(()=>n.lazyRules,h),he(e,V=>{V===!0?l.value=!0:a.value===!0&&n.lazyRules!=="ondemand"&&T()});function g(){s++,t.value=!1,l.value=!1,i.value=!1,r.value=null,T.cancel()}function P(V=n.modelValue){if(n.disable===!0||c.value===!1)return!0;const S=++s,R=t.value!==!0?()=>{l.value=!0}:()=>{},A=($,F)=>{$===!0&&R(),i.value=$,r.value=F||null,t.value=!1},L=[];for(let $=0;${if($===void 0||Array.isArray($)===!1||$.length===0)return S===s&&A(!1),!0;const F=$.find(X=>X===!1||typeof X=="string");return S===s&&A(F!==void 0,F),F===void 0},$=>(S===s&&(console.error($),A(!0)),!1)))}const T=Wl(P,0);return Be(()=>{u!==void 0&&u(),T.cancel()}),Object.assign(o,{resetValidation:g,validate:P}),Vn(o,"hasError",()=>f.value),{isDirtyModel:l,hasRules:c,hasError:f,errorMessage:d,validate:P,resetValidation:g}}function Fn(e){return e!=null&&(""+e).length!==0}const sf={...$t,...Zm,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},fr={...sf,maxlength:[Number,String]},dr=["update:modelValue","clear","focus","blur"];function hr({requiredForAttr:e=!0,tagProp:t,changeEvent:n=!1}={}){const{props:o,proxy:i}=Se(),r=Ot(o,i.$q),l=Gm({required:e,getValue:()=>o.for});return{requiredForAttr:e,changeEvent:n,tag:t===!0?b(()=>o.tag):{value:"label"},isDark:r,editable:b(()=>o.disable!==!0&&o.readonly!==!0),innerLoading:se(!1),focused:se(!1),hasPopupOpen:!1,splitAttrs:Ym(),targetUid:l,rootRef:se(null),targetRef:se(null),controlRef:se(null)}}function vr(e){const{props:t,emit:n,slots:o,attrs:i,proxy:r}=Se(),{$q:l}=r;let s=null;e.hasValue===void 0&&(e.hasValue=b(()=>Fn(t.modelValue))),e.emitValue===void 0&&(e.emitValue=N=>{n("update:modelValue",N)}),e.controlEvents===void 0&&(e.controlEvents={onFocusin:_,onFocusout:E}),Object.assign(e,{clearValue:B,onControlFocusin:_,onControlFocusout:E,focus:F}),e.computedCounter===void 0&&(e.computedCounter=b(()=>{if(t.counter!==!1){const N=typeof t.modelValue=="string"||typeof t.modelValue=="number"?(""+t.modelValue).length:Array.isArray(t.modelValue)===!0?t.modelValue.length:0,ie=t.maxlength!==void 0?t.maxlength:t.maxValues;return N+(ie!==void 0?" / "+ie:"")}}));const{isDirtyModel:u,hasRules:c,hasError:a,errorMessage:f,resetValidation:d}=eg(e.focused,e.innerLoading),h=e.floatingLabel!==void 0?b(()=>t.stackLabel===!0||e.focused.value===!0||e.floatingLabel.value===!0):b(()=>t.stackLabel===!0||e.focused.value===!0||e.hasValue.value===!0),g=b(()=>t.bottomSlots===!0||t.hint!==void 0||c.value===!0||t.counter===!0||t.error!==null),P=b(()=>t.filled===!0?"filled":t.outlined===!0?"outlined":t.borderless===!0?"borderless":t.standout?"standout":"standard"),T=b(()=>`q-field row no-wrap items-start q-field--${P.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":"")+(a.value===!0?" q-field--error":"")+(a.value===!0||e.focused.value===!0?" q-field--highlighted":"")+(t.hideBottomSpace!==!0&&g.value===!0?" q-field--with-bottom":"")+(t.disable===!0?" q-field--disabled":t.readonly===!0?" q-field--readonly":"")),V=b(()=>"q-field__control relative-position row no-wrap"+(t.bgColor!==void 0?` bg-${t.bgColor}`:"")+(a.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=b(()=>t.labelSlot===!0||t.label!==void 0),R=b(()=>"q-field__label no-pointer-events absolute ellipsis"+(t.labelColor!==void 0&&a.value!==!0?` text-${t.labelColor}`:"")),A=b(()=>({id:e.targetUid.value,editable:e.editable.value,focused:e.focused.value,floatingLabel:h.value,modelValue:t.modelValue,emitValue:e.emitValue})),L=b(()=>{const N={};return e.targetUid.value&&(N.for=e.targetUid.value),t.disable===!0&&(N["aria-disabled"]="true"),N});function $(){const N=document.activeElement;let ie=e.targetRef!==void 0&&e.targetRef.value;ie&&(N===null||N.id!==e.targetUid.value)&&(ie.hasAttribute("tabindex")===!0||(ie=ie.querySelector("[tabindex]")),ie&&ie!==N&&ie.focus({preventScroll:!0}))}function F(){ur($)}function X(){Am($);const N=document.activeElement;N!==null&&e.rootRef.value.contains(N)&&N.blur()}function _(N){s!==null&&(clearTimeout(s),s=null),e.editable.value===!0&&e.focused.value===!1&&(e.focused.value=!0,n("focus",N))}function E(N,ie){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",N)),ie!==void 0&&ie())})}function B(N){Ve(N),l.platform.is.mobile!==!0?(e.targetRef!==void 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),Fe(()=>{const ie=u.value;d(),u.value=ie})}function p(N){[13,32].includes(N.keyCode)&&B(N)}function z(){const N=[];return o.prepend!==void 0&&N.push(C("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:ut},o.prepend())),N.push(C("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},I())),a.value===!0&&t.noErrorIcon===!1&&N.push(ee("error",[C(We,{name:l.iconSet.field.error,color:"negative"})])),t.loading===!0||e.innerLoading.value===!0?N.push(ee("inner-loading-append",o.loading!==void 0?o.loading():[C(cr,{color:t.color})])):t.clearable===!0&&e.hasValue.value===!0&&e.editable.value===!0&&N.push(ee("inner-clearable-append",[C(We,{class:"q-field__focusable-action",name:t.clearIcon||l.iconSet.field.clear,tabindex:0,role:"button","aria-hidden":"false","aria-label":l.lang.label.clear,onKeyup:p,onClick:B})])),o.append!==void 0&&N.push(C("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:ut},o.append())),e.getInnerAppend!==void 0&&N.push(ee("inner-append",e.getInnerAppend())),e.getControlChild!==void 0&&N.push(e.getControlChild()),N}function I(){const N=[];return t.prefix!==void 0&&t.prefix!==null&&N.push(C("div",{class:"q-field__prefix no-pointer-events row items-center"},t.prefix)),e.getShadowControl!==void 0&&e.hasShadow.value===!0&&N.push(e.getShadowControl()),e.getControl!==void 0?N.push(e.getControl()):o.rawControl!==void 0?N.push(o.rawControl()):o.control!==void 0&&N.push(C("div",{ref:e.targetRef,class:"q-field__native row",tabindex:-1,...e.splitAttrs.attributes.value,"data-autofocus":t.autofocus===!0||void 0},o.control(A.value))),S.value===!0&&N.push(C("div",{class:R.value},ze(o.label,t.label))),t.suffix!==void 0&&t.suffix!==null&&N.push(C("div",{class:"q-field__suffix no-pointer-events row items-center"},t.suffix)),N.concat(ze(o.default))}function le(){let N,ie;a.value===!0?f.value!==null?(N=[C("div",{role:"alert"},f.value)],ie=`q--slot-error-${f.value}`):(N=ze(o.error),ie="q--slot-error"):(t.hideHint!==!0||e.focused.value===!0)&&(t.hint!==void 0?(N=[C("div",t.hint)],ie=`q--slot-hint-${t.hint}`):(N=ze(o.hint),ie="q--slot-hint"));const me=t.counter===!0||o.counter!==void 0;if(t.hideBottomSpace===!0&&me===!1&&N===void 0)return;const O=C("div",{key:ie,class:"q-field__messages col"},N);return C("div",{class:"q-field__bottom row items-start q-field__bottom--"+(t.hideBottomSpace!==!0?"animated":"stale"),onClick:ut},[t.hideBottomSpace===!0?O:C(In,{name:"q-transition--field-message"},()=>O),me===!0?C("div",{class:"q-field__counter"},o.counter!==void 0?o.counter():e.computedCounter.value):null])}function ee(N,ie){return ie===null?null:C("div",{key:N,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},ie)}let Q=!1;return Wo(()=>{Q=!0}),Vl(()=>{Q===!0&&t.autofocus===!0&&r.focus()}),t.autofocus===!0&&wt(()=>{r.focus()}),Be(()=>{s!==null&&clearTimeout(s)}),Object.assign(r,{focus:F,blur:X}),function(){const ie=e.getControl===void 0&&o.control===void 0?{...e.splitAttrs.attributes.value,"data-autofocus":t.autofocus===!0||void 0,...L.value}:L.value;return C(e.tag.value,{ref:e.rootRef,class:[T.value,i.class],style:i.style,...ie},[o.before!==void 0?C("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:ut},o.before()):null,C("div",{class:"q-field__inner relative-position col self-stretch"},[C("div",{ref:e.controlRef,class:V.value,tabindex:-1,...e.controlEvents},z()),g.value===!0?le():null]),o.after!==void 0?C("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:ut},o.after()):null])}}const Ha={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},Ni={"#":{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()}},af=Object.keys(Ni);af.forEach(e=>{Ni[e].regex=new RegExp(Ni[e].pattern)});const tg=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+af.join("")+"])|(.)","g"),Ka=/[.*+?^${}()|[\]\\]/g,Ke="",ng={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean};function og(e,t,n,o){let i,r,l,s,u,c;const a=se(null),f=se(h());function d(){return e.autogrow===!0||["textarea","text","search","url","tel","password"].includes(e.type)}he(()=>e.type+e.autogrow,P),he(()=>e.mask,_=>{if(_!==void 0)T(f.value,!0);else{const E=F(f.value);P(),e.modelValue!==E&&t("update:modelValue",E)}}),he(()=>e.fillMask+e.reverseFillMask,()=>{a.value===!0&&T(f.value,!0)}),he(()=>e.unmaskedValue,()=>{a.value===!0&&T(f.value)});function h(){if(P(),a.value===!0){const _=L(F(e.modelValue));return e.fillMask!==!1?X(_):_}return e.modelValue}function g(_){if(_0;z--)E+=Ke;B=B.slice(0,p)+E+B.slice(p)}return B}function P(){if(a.value=e.mask!==void 0&&e.mask.length!==0&&d(),a.value===!1){s=void 0,i="",r="";return}const _=Ha[e.mask]===void 0?e.mask:Ha[e.mask],E=typeof e.fillMask=="string"&&e.fillMask.length!==0?e.fillMask.slice(0,1):"_",B=E.replace(Ka,"\\$&"),p=[],z=[],I=[];let le=e.reverseFillMask===!0,ee="",Q="";_.replace(tg,(O,k,te,ge,ve)=>{if(ge!==void 0){const H=Ni[ge];I.push(H),Q=H.negate,le===!0&&(z.push("(?:"+Q+"+)?("+H.pattern+"+)?(?:"+Q+"+)?("+H.pattern+"+)?"),le=!1),z.push("(?:"+Q+"+)?("+H.pattern+")?")}else if(te!==void 0)ee="\\"+(te==="\\"?"":te),I.push(te),p.push("([^"+ee+"]+)?"+ee+"?");else{const H=k!==void 0?k:ve;ee=H==="\\"?"\\\\\\\\":H.replace(Ka,"\\\\$&"),I.push(H),p.push("([^"+ee+"]+)?"+ee+"?")}});const N=new RegExp("^"+p.join("")+"("+(ee===""?".":"[^"+ee+"]")+"+)?"+(ee===""?"":"["+ee+"]*")+"$"),ie=z.length-1,me=z.map((O,k)=>k===0&&e.reverseFillMask===!0?new RegExp("^"+B+"*"+O):k===ie?new RegExp("^"+O+"("+(Q===""?".":Q)+"+)?"+(e.reverseFillMask===!0?"$":B+"*")):new RegExp("^"+O));l=I,s=O=>{const k=N.exec(e.reverseFillMask===!0?O:O.slice(0,I.length+1));k!==null&&(O=k.slice(1).join(""));const te=[],ge=me.length;for(let ve=0,H=O;vetypeof O=="string"?O:Ke).join(""),r=i.split(Ke).join(E)}function T(_,E,B){const p=o.value,z=p.selectionEnd,I=p.value.length-z,le=F(_);E===!0&&P();const ee=L(le),Q=e.fillMask!==!1?X(ee):ee,N=f.value!==Q;p.value!==Q&&(p.value=Q),N===!0&&(f.value=Q),document.activeElement===p&&Fe(()=>{if(Q===r){const me=e.reverseFillMask===!0?r.length:0;p.setSelectionRange(me,me,"forward");return}if(B==="insertFromPaste"&&e.reverseFillMask!==!0){const me=p.selectionEnd;let O=z-1;for(let k=u;k<=O&&kee.length?1:0:Math.max(0,Q.length-(Q===r?0:Math.min(ee.length,I)+1))+1:z;p.setSelectionRange(me,me,"forward");return}if(e.reverseFillMask===!0)if(N===!0){const me=Math.max(0,Q.length-(Q===r?0:Math.min(ee.length,I+1)));me===1&&z===1?p.setSelectionRange(me,me,"forward"):S.rightReverse(p,me)}else{const me=Q.length-I;p.setSelectionRange(me,me,"backward")}else if(N===!0){const me=Math.max(0,i.indexOf(Ke),Math.min(ee.length,z)-1);S.right(p,me)}else{const me=z-1;S.right(p,me)}});const ie=e.unmaskedValue===!0?F(Q):Q;String(e.modelValue)!==ie&&(e.modelValue!==null||ie!=="")&&n(ie,!0)}function V(_,E,B){const p=L(F(_.value));E=Math.max(0,i.indexOf(Ke),Math.min(p.length,E)),u=E,_.setSelectionRange(E,B,"forward")}const S={left(_,E){const B=i.slice(E-1).indexOf(Ke)===-1;let p=Math.max(0,E-1);for(;p>=0;p--)if(i[p]===Ke){E=p,B===!0&&E++;break}if(p<0&&i[E]!==void 0&&i[E]!==Ke)return S.right(_,0);E>=0&&_.setSelectionRange(E,E,"backward")},right(_,E){const B=_.value.length;let p=Math.min(B,E+1);for(;p<=B;p++)if(i[p]===Ke){E=p;break}else i[p-1]===Ke&&(E=p);if(p>B&&i[E-1]!==void 0&&i[E-1]!==Ke)return S.left(_,B);_.setSelectionRange(E,E,"forward")},leftReverse(_,E){const B=g(_.value.length);let p=Math.max(0,E-1);for(;p>=0;p--)if(B[p-1]===Ke){E=p;break}else if(B[p]===Ke&&(E=p,p===0))break;if(p<0&&B[E]!==void 0&&B[E]!==Ke)return S.rightReverse(_,0);E>=0&&_.setSelectionRange(E,E,"backward")},rightReverse(_,E){const B=_.value.length,p=g(B),z=p.slice(0,E+1).indexOf(Ke)===-1;let I=Math.min(B,E+1);for(;I<=B;I++)if(p[I-1]===Ke){E=I,E>0&&z===!0&&E--;break}if(I>B&&p[E-1]!==void 0&&p[E-1]!==Ke)return S.leftReverse(_,B);_.setSelectionRange(E,E,"forward")}};function R(_){t("click",_),c=void 0}function A(_){if(t("keydown",_),Ql(_)===!0||_.altKey===!0)return;const E=o.value,B=E.selectionStart,p=E.selectionEnd;if(_.shiftKey||(c=void 0),_.keyCode===37||_.keyCode===39){_.shiftKey&&c===void 0&&(c=E.selectionDirection==="forward"?B:p);const z=S[(_.keyCode===39?"right":"left")+(e.reverseFillMask===!0?"Reverse":"")];if(_.preventDefault(),z(E,c===B?p:B),_.shiftKey){const I=E.selectionStart;E.setSelectionRange(Math.min(c,I),Math.max(c,I),"forward")}}else _.keyCode===8&&e.reverseFillMask!==!0&&B===p?(S.left(E,B),E.setSelectionRange(E.selectionStart,p,"backward")):_.keyCode===46&&e.reverseFillMask===!0&&B===p&&(S.rightReverse(E,p),E.setSelectionRange(B,E.selectionEnd,"forward"))}function L(_){if(_==null||_==="")return"";if(e.reverseFillMask===!0)return $(_);const E=l;let B=0,p="";for(let z=0;z=0&&p!==-1;I--){const le=E[I];let ee=_[p];if(typeof le=="string")z=le+z,ee===le&&p--;else if(ee!==void 0&&le.regex.test(ee))do z=(le.transform!==void 0?le.transform(ee):ee)+z,p--,ee=_[p];while(B===I&&ee!==void 0&&le.regex.test(ee));else return z}return z}function F(_){return typeof _!="string"||s===void 0?typeof _=="number"?s(""+_):_:s(_)}function X(_){return r.length-_.length<=0?_:e.reverseFillMask===!0&&_.length!==0?r.slice(0,-_.length)+_:_+r.slice(_.length)}return{innerValue:f,hasMask:a,moveCursorForPaste:V,updateMaskValue:T,onMaskedKeydown:A,onMaskedClick:R}}const mr={name:String};function ig(e={}){return(t,n,o)=>{t[n](C("input",{class:"hidden"+(o||""),...e.value}))}}function is(e){return b(()=>e.name||e.for)}function uf(e,t){function n(){const o=e.modelValue;try{const i="DataTransfer"in window?new DataTransfer:"ClipboardEvent"in window?new ClipboardEvent("").clipboardData:void 0;return Object(o)===o&&("length"in o?Array.from(o):[o]).forEach(r=>{i.items.add(r)}),{files:i.files}}catch{return{files:void 0}}}return b(t===!0?()=>{if(e.type==="file")return n()}:n)}const rg=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,lg=/[\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,sg=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,ag=/[a-z0-9_ -]$/i;function cf(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"&&(Me.is.firefox===!0?ag.test(n.data)===!1:rg.test(n.data)===!0||lg.test(n.data)===!0||sg.test(n.data)===!0)===!0&&(n.target.qComposing=!0)}}const rs=ke({name:"QInput",inheritAttrs:!1,props:{...fr,...ng,...mr,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:[...dr,"paste","change","keydown","click","animationend"],setup(e,{emit:t,attrs:n}){const{proxy:o}=Se(),{$q:i}=o,r={};let l=NaN,s,u,c=null,a;const f=se(null),d=is(e),{innerValue:h,hasMask:g,moveCursorForPaste:P,updateMaskValue:T,onMaskedKeydown:V,onMaskedClick:S}=og(e,t,ee,f),R=uf(e,!0),A=b(()=>Fn(h.value)),L=cf(I),$=hr({changeEvent:!0}),F=b(()=>e.type==="textarea"||e.autogrow===!0),X=b(()=>F.value===!0||["text","search","url","tel","password"].includes(e.type)),_=b(()=>{const k={...$.splitAttrs.listeners.value,onInput:I,onPaste:z,onChange:N,onBlur:ie,onFocus:gt};return k.onCompositionstart=k.onCompositionupdate=k.onCompositionend=L,g.value===!0&&(k.onKeydown=V,k.onClick=S),e.autogrow===!0&&(k.onAnimationend=le),k}),E=b(()=>{const k={tabindex:0,"data-autofocus":e.autofocus===!0||void 0,rows:e.type==="textarea"?6:void 0,"aria-label":e.label,name:d.value,...$.splitAttrs.attributes.value,id:$.targetUid.value,maxlength:e.maxlength,disabled:e.disable===!0,readonly:e.readonly===!0};return F.value===!1&&(k.type=e.type),e.autogrow===!0&&(k.rows=1),k});he(()=>e.type,()=>{f.value&&(f.value.value=e.modelValue)}),he(()=>e.modelValue,k=>{if(g.value===!0){if(u===!0&&(u=!1,String(k)===l))return;T(k)}else h.value!==k&&(h.value=k,e.type==="number"&&r.hasOwnProperty("value")===!0&&(s===!0?s=!1:delete r.value));e.autogrow===!0&&Fe(Q)}),he(()=>e.autogrow,k=>{k===!0?Fe(Q):f.value!==null&&n.rows>0&&(f.value.style.height="auto")}),he(()=>e.dense,()=>{e.autogrow===!0&&Fe(Q)});function B(){ur(()=>{const k=document.activeElement;f.value!==null&&f.value!==k&&(k===null||k.id!==$.targetUid.value)&&f.value.focus({preventScroll:!0})})}function p(){f.value!==null&&f.value.select()}function z(k){if(g.value===!0&&e.reverseFillMask!==!0){const te=k.target;P(te,te.selectionStart,te.selectionEnd)}t("paste",k)}function I(k){if(!k||!k.target)return;if(e.type==="file"){t("update:modelValue",k.target.files);return}const te=k.target.value;if(k.target.qComposing===!0){r.value=te;return}if(g.value===!0)T(te,!1,k.inputType);else if(ee(te),X.value===!0&&k.target===document.activeElement){const{selectionStart:ge,selectionEnd:ve}=k.target;ge!==void 0&&ve!==void 0&&Fe(()=>{k.target===document.activeElement&&te.indexOf(k.target.value)===0&&k.target.setSelectionRange(ge,ve)})}e.autogrow===!0&&Q()}function le(k){t("animationend",k),Q()}function ee(k,te){a=()=>{c=null,e.type!=="number"&&r.hasOwnProperty("value")===!0&&delete r.value,e.modelValue!==k&&l!==k&&(l=k,te===!0&&(u=!0),t("update:modelValue",k),Fe(()=>{l===k&&(l=NaN)})),a=void 0},e.type==="number"&&(s=!0,r.value=k),e.debounce!==void 0?(c!==null&&clearTimeout(c),r.value=k,c=setTimeout(a,e.debounce)):a()}function Q(){requestAnimationFrame(()=>{const k=f.value;if(k!==null){const te=k.parentNode.style,{scrollTop:ge}=k,{overflowY:ve,maxHeight:H}=i.platform.is.firefox===!0?{}:window.getComputedStyle(k),ae=ve!==void 0&&ve!=="scroll";ae===!0&&(k.style.overflowY="hidden"),te.marginBottom=k.scrollHeight-1+"px",k.style.height="1px",k.style.height=k.scrollHeight+"px",ae===!0&&(k.style.overflowY=parseInt(H,10){f.value!==null&&(f.value.value=h.value!==void 0?h.value:"")})}function me(){return r.hasOwnProperty("value")===!0?r.value:h.value!==void 0?h.value:""}Be(()=>{ie()}),wt(()=>{e.autogrow===!0&&Q()}),Object.assign($,{innerValue:h,fieldClass:b(()=>`q-${F.value===!0?"textarea":"input"}`+(e.autogrow===!0?" q-textarea--autogrow":"")),hasShadow:b(()=>e.type!=="file"&&typeof e.shadowText=="string"&&e.shadowText.length!==0),inputRef:f,emitValue:ee,hasValue:A,floatingLabel:b(()=>A.value===!0&&(e.type!=="number"||isNaN(h.value)===!1)||Fn(e.displayValue)),getControl:()=>C(F.value===!0?"textarea":"input",{ref:f,class:["q-field__native q-placeholder",e.inputClass],style:e.inputStyle,...E.value,..._.value,...e.type!=="file"?{value:me()}:R.value}),getShadowControl:()=>C("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(F.value===!0?"":" text-no-wrap")},[C("span",{class:"invisible"},me()),C("span",e.shadowText)])});const O=vr($);return Object.assign(o,{focus:B,select:p,getNativeElement:()=>f.value}),Vn(o,"nativeEl",()=>f.value),O}});function ug(e,t=250){let n=!1,o;return function(){return n===!1&&(n=!0,setTimeout(()=>{n=!1},t),o=e.apply(this,arguments)),o}}function Ua(e,t,n,o){n.modifiers.stop===!0&>(e);const i=n.modifiers.color;let r=n.modifiers.center;r=r===!0||o===!0;const l=document.createElement("span"),s=document.createElement("span"),u=jo(e),{left:c,top:a,width:f,height:d}=t.getBoundingClientRect(),h=Math.sqrt(f*f+d*d),g=h/2,P=`${(f-h)/2}px`,T=r?P:`${u.left-c-g}px`,V=`${(d-h)/2}px`,S=r?V:`${u.top-a-g}px`;s.className="q-ripple__inner",dl(s,{height:`${h}px`,width:`${h}px`,transform:`translate3d(${T},${S},0) scale3d(.2,.2,1)`,opacity:0}),l.className=`q-ripple${i?" text-"+i:""}`,l.setAttribute("dir","ltr"),l.appendChild(s),t.appendChild(l);const R=()=>{l.remove(),clearTimeout(A)};n.abort.push(R);let A=setTimeout(()=>{s.classList.add("q-ripple__inner--enter"),s.style.transform=`translate3d(${P},${V},0) scale3d(1,1,1)`,s.style.opacity=.2,A=setTimeout(()=>{s.classList.remove("q-ripple__inner--enter"),s.classList.add("q-ripple__inner--leave"),s.style.opacity=0,A=setTimeout(()=>{l.remove(),n.abort.splice(n.abort.indexOf(R),1)},275)},250)},50)}function Wa(e,{modifiers:t,value:n,arg:o}){const i=Object.assign({},e.cfg.ripple,t,n);e.modifiers={early:i.early===!0,stop:i.stop===!0,center:i.center===!0,color:i.color||o,keyCodes:[].concat(i.keyCodes||13)}}const ff=Ul({name:"ripple",beforeMount(e,t){const n=t.instance.$.appContext.config.globalProperties.$q.config||{};if(n.ripple===!1)return;const o={cfg:n,enabled:t.value!==!1,modifiers:{},abort:[],start(i){o.enabled===!0&&i.qSkipRipple!==!0&&i.type===(o.modifiers.early===!0?"pointerdown":"click")&&Ua(i,e,o,i.qKeyEvent===!0)},keystart:ug(i=>{o.enabled===!0&&i.qSkipRipple!==!0&&mn(i,o.modifiers.keyCodes)===!0&&i.type===`key${o.modifiers.early===!0?"down":"up"}`&&Ua(i,e,o,!0)},300)};Wa(o,t),e.__qripple=o,Xt(o,"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&&Wa(n,t))}},beforeUnmount(e){const t=e.__qripple;t!==void 0&&(t.abort.forEach(n=>{n()}),On(t,"main"),delete e._qripple)}}),df={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},cg=Object.keys(df),hf={align:{type:String,validator:e=>cg.includes(e)}};function vf(e){return b(()=>{const t=e.align===void 0?e.vertical===!0?"stretch":"left":e.align;return`${e.vertical===!0?"items":"justify"}-${df[t]}`})}const Qa={none:0,xs:4,sm:8,md:16,lg:24,xl:32},fg={xs:8,sm:10,md:14,lg:20,xl:24},dg=["button","submit","reset"],hg=/[^\s]\/[^\s]/,vg=["flat","outline","push","unelevated"];function mg(e,t){return e.flat===!0?"flat":e.outline===!0?"outline":e.push===!0?"push":e.unelevated===!0?"unelevated":t}const gg={...vo,...Uc,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...vg.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:{...hf.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},pg={...gg,round:Boolean};function bg(e){const t=mo(e,fg),n=vf(e),{hasRouterLink:o,hasLink:i,linkTag:r,linkAttrs:l,navigateOnClick:s}=Wc({fallbackTag:"button"}),u=b(()=>{const T=e.fab===!1&&e.fabMini===!1?t.value:{};return e.padding!==void 0?Object.assign({},T,{padding:e.padding.split(/\s+/).map(V=>V in Qa?Qa[V]+"px":V).join(" "),minWidth:"0",minHeight:"0"}):T}),c=b(()=>e.rounded===!0||e.fab===!0||e.fabMini===!0),a=b(()=>e.disable!==!0&&e.loading!==!0),f=b(()=>a.value===!0?e.tabindex||0:-1),d=b(()=>mg(e,"standard")),h=b(()=>{const T={tabindex:f.value};return i.value===!0?Object.assign(T,l.value):dg.includes(e.type)===!0&&(T.type=e.type),r.value==="a"?(e.disable===!0?T["aria-disabled"]="true":T.href===void 0&&(T.role="button"),o.value!==!0&&hg.test(e.type)===!0&&(T.type=e.type)):e.disable===!0&&(T.disabled="",T["aria-disabled"]="true"),e.loading===!0&&e.percentage!==void 0&&Object.assign(T,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e.percentage}),T}),g=b(()=>{let T;e.color!==void 0?e.flat===!0||e.outline===!0?T=`text-${e.textColor||e.color}`:T=`bg-${e.color} text-${e.textColor||"white"}`:e.textColor&&(T=`text-${e.textColor}`);const V=e.round===!0?"round":`rectangle${c.value===!0?" q-btn--rounded":e.square===!0?" q-btn--square":""}`;return`q-btn--${d.value} q-btn--${V}`+(T!==void 0?" "+T:"")+(a.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":"")}),P=b(()=>n.value+(e.stack===!0?" column":" row")+(e.noWrap===!0?" no-wrap text-no-wrap":"")+(e.loading===!0?" q-btn__content--hidden":""));return{classes:g,style:u,innerClasses:P,attributes:h,hasLink:i,linkTag:r,navigateOnClick:s,isActionable:a}}const{passiveCapture:Tt}=Ue;let Un=null,Wn=null,Qn=null;const nt=ke({name:"QBtn",props:{...pg,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(e,{slots:t,emit:n}){const{proxy:o}=Se(),{classes:i,style:r,innerClasses:l,attributes:s,hasLink:u,linkTag:c,navigateOnClick:a,isActionable:f}=bg(e),d=se(null),h=se(null);let g=null,P,T=null;const V=b(()=>e.label!==void 0&&e.label!==null&&e.label!==""),S=b(()=>e.disable===!0||e.ripple===!1?!1:{keyCodes:u.value===!0?[13,32]:[13],...e.ripple===!0?{}:e.ripple}),R=b(()=>({center:e.round})),A=b(()=>{const I=Math.max(0,Math.min(100,e.percentage));return I>0?{transition:"transform 0.6s",transform:`translateX(${I-100}%)`}:{}}),L=b(()=>{if(e.loading===!0)return{onMousedown:z,onTouchstart:z,onClick:z,onKeydown:z,onKeyup:z};if(f.value===!0){const I={onClick:F,onKeydown:X,onMousedown:E};if(o.$q.platform.has.touch===!0){const le=e.onTouchstart!==void 0?"":"Passive";I[`onTouchstart${le}`]=_}return I}return{onClick:Ve}}),$=b(()=>({ref:d,class:"q-btn q-btn-item non-selectable no-outline "+i.value,style:r.value,...s.value,...L.value}));function F(I){if(d.value!==null){if(I!==void 0){if(I.defaultPrevented===!0)return;const le=document.activeElement;if(e.type==="submit"&&le!==document.body&&d.value.contains(le)===!1&&le.contains(d.value)===!1){d.value.focus();const ee=()=>{document.removeEventListener("keydown",Ve,!0),document.removeEventListener("keyup",ee,Tt),d.value!==null&&d.value.removeEventListener("blur",ee,Tt)};document.addEventListener("keydown",Ve,!0),document.addEventListener("keyup",ee,Tt),d.value.addEventListener("blur",ee,Tt)}}a(I)}}function X(I){d.value!==null&&(n("keydown",I),mn(I,[13,32])===!0&&Wn!==d.value&&(Wn!==null&&p(),I.defaultPrevented!==!0&&(d.value.focus(),Wn=d.value,d.value.classList.add("q-btn--active"),document.addEventListener("keyup",B,!0),d.value.addEventListener("blur",B,Tt)),Ve(I)))}function _(I){d.value!==null&&(n("touchstart",I),I.defaultPrevented!==!0&&(Un!==d.value&&(Un!==null&&p(),Un=d.value,g=I.target,g.addEventListener("touchcancel",B,Tt),g.addEventListener("touchend",B,Tt)),P=!0,T!==null&&clearTimeout(T),T=setTimeout(()=>{T=null,P=!1},200)))}function E(I){d.value!==null&&(I.qSkipRipple=P===!0,n("mousedown",I),I.defaultPrevented!==!0&&Qn!==d.value&&(Qn!==null&&p(),Qn=d.value,d.value.classList.add("q-btn--active"),document.addEventListener("mouseup",B,Tt)))}function B(I){if(d.value!==null&&!(I!==void 0&&I.type==="blur"&&document.activeElement===d.value)){if(I!==void 0&&I.type==="keyup"){if(Wn===d.value&&mn(I,[13,32])===!0){const le=new MouseEvent("click",I);le.qKeyEvent=!0,I.defaultPrevented===!0&&ut(le),I.cancelBubble===!0&>(le),d.value.dispatchEvent(le),Ve(I),I.qKeyEvent=!0}n("keyup",I)}p()}}function p(I){const le=h.value;I!==!0&&(Un===d.value||Qn===d.value)&&le!==null&&le!==document.activeElement&&(le.setAttribute("tabindex",-1),le.focus()),Un===d.value&&(g!==null&&(g.removeEventListener("touchcancel",B,Tt),g.removeEventListener("touchend",B,Tt)),Un=g=null),Qn===d.value&&(document.removeEventListener("mouseup",B,Tt),Qn=null),Wn===d.value&&(document.removeEventListener("keyup",B,!0),d.value!==null&&d.value.removeEventListener("blur",B,Tt),Wn=null),d.value!==null&&d.value.classList.remove("q-btn--active")}function z(I){Ve(I),I.qSkipRipple=!0}return Be(()=>{p(!0)}),Object.assign(o,{click:I=>{f.value===!0&&F(I)}}),()=>{let I=[];e.icon!==void 0&&I.push(C(We,{name:e.icon,left:e.stack!==!0&&V.value===!0,role:"img"})),V.value===!0&&I.push(C("span",{class:"block"},[e.label])),I=Zt(t.default,I),e.iconRight!==void 0&&e.round===!1&&I.push(C(We,{name:e.iconRight,right:e.stack!==!0&&V.value===!0,role:"img"}));const le=[C("span",{class:"q-focus-helper",ref:h})];return e.loading===!0&&e.percentage!==void 0&&le.push(C("span",{class:"q-btn__progress absolute-full overflow-hidden"+(e.darkPercentage===!0?" q-btn__progress--dark":"")},[C("span",{class:"q-btn__progress-indicator fit block",style:A.value})])),le.push(C("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+l.value},I)),e.loading!==null&&le.push(C(In,{name:"q-transition--fade"},()=>e.loading===!0?[C("span",{key:"loading",class:"absolute-full flex flex-center"},t.loading!==void 0?t.loading():[C(cr)])]:null)),Ye(C(c.value,$.value,le),[[ff,S.value,void 0,R.value]])}}}),ls=ke({name:"QCardActions",props:{...hf,vertical:Boolean},setup(e,{slots:t}){const n=vf(e),o=b(()=>`q-card__actions ${n.value} q-card__actions--${e.vertical===!0?"vert column":"horiz row"}`);return()=>C("div",{class:o.value},ze(t.default))}}),Go=ke({name:"QCard",props:{...$t,tag:{type:String,default:"div"},square:Boolean,flat:Boolean,bordered:Boolean},setup(e,{slots:t}){const{proxy:{$q:n}}=Se(),o=Ot(e,n),i=b(()=>"q-card"+(o.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()=>C(e.tag,{class:i.value},ze(t.default))}});let hi=0;const yg={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"},Ga={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},go=ke({name:"QDialog",inheritAttrs:!1,props:{...lr,...Io,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:[...sr,"shake","click","escapeKey"],setup(e,{slots:t,emit:n,attrs:o}){const i=Se(),r=se(null),l=se(!1),s=se(!1);let u=null,c=null,a,f;const d=b(()=>e.persistent!==!0&&e.noRouteDismiss!==!0&&e.seamless!==!0),{preventBodyScroll:h}=Bc(),{registerTimeout:g}=co(),{registerTick:P,removeTick:T}=ts(),{transitionProps:V,transitionStyle:S}=es(e,()=>Ga[e.position][0],()=>Ga[e.position][1]),R=b(()=>S.value+(e.backdropFilter!==void 0?`;backdrop-filter:${e.backdropFilter};-webkit-backdrop-filter:${e.backdropFilter}`:"")),{showPortal:A,hidePortal:L,portalIsAccessible:$,renderPortal:F}=Zl(i,r,ve,"dialog"),{hide:X}=ar({showing:l,hideOnRouteChange:d,handleShow:le,handleHide:ee,processOnMount:!0}),{addToHistory:_,removeFromHistory:E}=Rc(l,X,d),B=b(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${e.maximized===!0?"maximized":"minimized"} q-dialog__inner--${e.position} ${yg[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":"")),p=b(()=>l.value===!0&&e.seamless!==!0),z=b(()=>e.autoClose===!0?{onClick:k}:{}),I=b(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${p.value===!0?"modal":"seamless"}`,o.class]);he(()=>e.maximized,H=>{l.value===!0&&O(H)}),he(p,H=>{h(H),H===!0?(of(ge),tf(ie)):(gl(ge),Mi(ie))});function le(H){_(),c=e.noRefocus===!1&&document.activeElement!==null?document.activeElement:null,O(e.maximized),A(),s.value=!0,e.noFocus!==!0?(document.activeElement!==null&&document.activeElement.blur(),P(Q)):T(),g(()=>{if(i.proxy.$q.platform.is.ios===!0){if(e.seamless!==!0&&document.activeElement){const{top:ae,bottom:_e}=document.activeElement.getBoundingClientRect(),{innerHeight:ne}=window,Te=window.visualViewport!==void 0?window.visualViewport.height:ne;ae>0&&_e>Te/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-Te,_e>=ne?1/0:Math.ceil(document.scrollingElement.scrollTop+_e-Te/2))),document.activeElement.scrollIntoView()}f=!0,r.value.click(),f=!1}A(!0),s.value=!1,n("show",H)},e.transitionDuration)}function ee(H){T(),E(),me(!0),s.value=!0,L(),c!==null&&(((H&&H.type.indexOf("key")===0?c.closest('[tabindex]:not([tabindex^="-"])'):void 0)||c).focus(),c=null),g(()=>{L(!0),s.value=!1,n("hide",H)},e.transitionDuration)}function Q(H){ur(()=>{let ae=r.value;if(ae!==null){if(H!==void 0){const _e=ae.querySelector(H);if(_e!==null){_e.focus({preventScroll:!0});return}}ae.contains(document.activeElement)!==!0&&(ae=ae.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||ae.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||ae.querySelector("[autofocus], [data-autofocus]")||ae,ae.focus({preventScroll:!0}))}})}function N(H){H&&typeof H.focus=="function"?H.focus({preventScroll:!0}):Q(),n("shake");const ae=r.value;ae!==null&&(ae.classList.remove("q-animate--scale"),ae.classList.add("q-animate--scale"),u!==null&&clearTimeout(u),u=setTimeout(()=>{u=null,r.value!==null&&(ae.classList.remove("q-animate--scale"),Q())},170))}function ie(){e.seamless!==!0&&(e.persistent===!0||e.noEscDismiss===!0?e.maximized!==!0&&e.noShake!==!0&&N():(n("escapeKey"),X()))}function me(H){u!==null&&(clearTimeout(u),u=null),(H===!0||l.value===!0)&&(O(!1),e.seamless!==!0&&(h(!1),gl(ge),Mi(ie))),H!==!0&&(c=null)}function O(H){H===!0?a!==!0&&(hi<1&&document.body.classList.add("q-body--dialog"),hi++,a=!0):a===!0&&(hi<2&&document.body.classList.remove("q-body--dialog"),hi--,a=!1)}function k(H){f!==!0&&(X(H),n("click",H))}function te(H){e.persistent!==!0&&e.noBackdropDismiss!==!0?X(H):e.noShake!==!0&&N()}function ge(H){e.allowFocusOutside!==!0&&$.value===!0&&Fc(r.value,H.target)!==!0&&Q('[tabindex]:not([tabindex="-1"])')}Object.assign(i.proxy,{focus:Q,shake:N,__updateRefocusTarget(H){c=H||null}}),Be(me);function ve(){return C("div",{role:"dialog","aria-modal":p.value===!0?"true":"false",...o,class:I.value},[C(In,{name:"q-transition--fade",appear:!0},()=>p.value===!0?C("div",{class:"q-dialog__backdrop fixed-full",style:R.value,"aria-hidden":"true",tabindex:-1,onClick:te}):null),C(In,V.value,()=>l.value===!0?C("div",{ref:r,class:B.value,style:S.value,tabindex:-1,...z.value},ze(t.default)):null)])}return F}});function Ya(e){if(e===!1)return 0;if(e===!0||e===void 0)return 1;const t=parseInt(e,10);return isNaN(t)?0:t}const lt=Ul({name:"close-popup",beforeMount(e,{value:t}){const n={depth:Ya(t),handler(o){n.depth!==0&&setTimeout(()=>{const i=Pm(e);i!==void 0&&Mm(i,o,n.depth)})},handlerKey(o){mn(o,13)===!0&&n.handler(o)}};e.__qclosepopup=n,e.addEventListener("click",n.handler),e.addEventListener("keyup",n.handlerKey)},updated(e,{value:t,oldValue:n}){t!==n&&(e.__qclosepopup.depth=Ya(t))},beforeUnmount(e){const t=e.__qclosepopup;e.removeEventListener("click",t.handler),e.removeEventListener("keyup",t.handlerKey),delete e.__qclosepopup}});function wg(){return mf().__VUE_DEVTOOLS_GLOBAL_HOOK__}function mf(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const _g=typeof Proxy=="function",Sg="devtools-plugin:setup",xg="plugin:settings:set";let Gn,yl;function Cg(){var e;return Gn!==void 0||(typeof window<"u"&&window.performance?(Gn=!0,yl=window.performance):typeof global<"u"&&(!((e=global.perf_hooks)===null||e===void 0)&&e.performance)?(Gn=!0,yl=global.perf_hooks.performance):Gn=!1),Gn}function kg(){return Cg()?yl.now():Date.now()}class Eg{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const o={};if(t.settings)for(const l in t.settings){const s=t.settings[l];o[l]=s.defaultValue}const i=`__vue-devtools-plugin-settings__${t.id}`;let r=Object.assign({},o);try{const l=localStorage.getItem(i),s=JSON.parse(l);Object.assign(r,s)}catch{}this.fallbacks={getSettings(){return r},setSettings(l){try{localStorage.setItem(i,JSON.stringify(l))}catch{}r=l},now(){return kg()}},n&&n.on(xg,(l,s)=>{l===this.plugin.id&&this.fallbacks.setSettings(s)}),this.proxiedOn=new Proxy({},{get:(l,s)=>this.target?this.target.on[s]:(...u)=>{this.onQueue.push({method:s,args:u})}}),this.proxiedTarget=new Proxy({},{get:(l,s)=>this.target?this.target[s]:s==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(s)?(...u)=>(this.targetQueue.push({method:s,args:u,resolve:()=>{}}),this.fallbacks[s](...u)):(...u)=>new Promise(c=>{this.targetQueue.push({method:s,args:u,resolve:c})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function Tg(e,t){const n=e,o=mf(),i=wg(),r=_g&&n.enableEarlyProxy;if(i&&(o.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!r))i.emit(Sg,e,t);else{const l=r?new Eg(n,i):null;(o.__VUE_DEVTOOLS_PLUGINS__=o.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:l}),l&&t(l.proxiedTarget)}}/*! +**/let ul;const Ws=typeof window<"u"&&window.trustedTypes;if(Ws)try{ul=Ws.createPolicy("vue",{createHTML:e=>e})}catch{}const yc=ul?e=>ul.createHTML(e):e=>e,zh="http://www.w3.org/2000/svg",jh="http://www.w3.org/1998/Math/MathML",Yt=typeof document<"u"?document:null,Qs=Yt&&Yt.createElement("template"),Hh={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const i=t==="svg"?Yt.createElementNS(zh,e):t==="mathml"?Yt.createElementNS(jh,e):n?Yt.createElement(e,{is:n}):Yt.createElement(e);return e==="select"&&o&&o.multiple!=null&&i.setAttribute("multiple",o.multiple),i},createText:e=>Yt.createTextNode(e),createComment:e=>Yt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Yt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,i,r){const l=n?n.previousSibling:t.lastChild;if(i&&(i===r||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===r||!(i=i.nextSibling)););else{Qs.innerHTML=yc(o==="svg"?`${e}`:o==="mathml"?`${e}`:e);const s=Qs.content;if(o==="svg"||o==="mathml"){const u=s.firstChild;for(;u.firstChild;)s.appendChild(u.firstChild);s.removeChild(u)}t.insertBefore(s,n)}return[l?l.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},rn="transition",So="animation",uo=Symbol("_vtc"),wc={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},_c=Qe({},zu,wc),Uh=e=>(e.displayName="Transition",e.props=_c,e),In=Uh((e,{slots:t})=>C(Wd,Sc(e),t)),xn=(e,t=[])=>{be(e)?e.forEach(n=>n(...t)):e&&e(...t)},Gs=e=>e?be(e)?e.some(t=>t.length>1):e.length>1:!1;function Sc(e){const t={};for(const p in e)p in wc||(t[p]=e[p]);if(e.css===!1)return t;const{name:n="v",type:o,duration:i,enterFromClass:r=`${n}-enter-from`,enterActiveClass:l=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:u=r,appearActiveClass:c=l,appearToClass:a=s,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,g=Kh(i),P=g&&g[0],A=g&&g[1],{onBeforeEnter:V,onEnter:S,onEnterCancelled:R,onLeave:T,onLeaveCancelled:L,onBeforeAppear:O=V,onAppear:F=S,onAppearCancelled:X=R}=t,_=(p,z,I)=>{ln(p,z?a:s),ln(p,z?c:l),I&&I()},E=(p,z)=>{p._isLeaving=!1,ln(p,f),ln(p,h),ln(p,d),z&&z()},N=p=>(z,I)=>{const le=p?F:S,ee=()=>_(z,p,I);xn(le,[z,ee]),Ys(()=>{ln(z,p?u:r),Gt(z,p?a:s),Gs(le)||Js(z,o,P,ee)})};return Qe(t,{onBeforeEnter(p){xn(V,[p]),Gt(p,r),Gt(p,l)},onBeforeAppear(p){xn(O,[p]),Gt(p,u),Gt(p,c)},onEnter:N(!1),onAppear:N(!0),onLeave(p,z){p._isLeaving=!0;const I=()=>E(p,z);Gt(p,f),Gt(p,d),Cc(),Ys(()=>{p._isLeaving&&(ln(p,f),Gt(p,h),Gs(T)||Js(p,o,A,I))}),xn(T,[p,I])},onEnterCancelled(p){_(p,!1),xn(R,[p])},onAppearCancelled(p){_(p,!0),xn(X,[p])},onLeaveCancelled(p){E(p),xn(L,[p])}})}function Kh(e){if(e==null)return null;if(Ie(e))return[Or(e.enter),Or(e.leave)];{const t=Or(e);return[t,t]}}function Or(e){return nd(e)}function Gt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[uo]||(e[uo]=new Set)).add(t)}function ln(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const n=e[uo];n&&(n.delete(t),n.size||(e[uo]=void 0))}function Ys(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Wh=0;function Js(e,t,n,o){const i=e._endId=++Wh,r=()=>{i===e._endId&&o()};if(n)return setTimeout(r,n);const{type:l,timeout:s,propCount:u}=xc(e,t);if(!l)return o();const c=l+"end";let a=0;const f=()=>{e.removeEventListener(c,d),r()},d=h=>{h.target===e&&++a>=u&&f()};setTimeout(()=>{a(n[g]||"").split(", "),i=o(`${rn}Delay`),r=o(`${rn}Duration`),l=Xs(i,r),s=o(`${So}Delay`),u=o(`${So}Duration`),c=Xs(s,u);let a=null,f=0,d=0;t===rn?l>0&&(a=rn,f=l,d=r.length):t===So?c>0&&(a=So,f=c,d=u.length):(f=Math.max(l,c),a=f>0?l>c?rn:So:null,d=a?a===rn?r.length:u.length:0);const h=a===rn&&/\b(transform|all)(,|$)/.test(o(`${rn}Property`).toString());return{type:a,timeout:f,propCount:d,hasTransform:h}}function Xs(e,t){for(;e.lengthZs(n)+Zs(e[o])))}function Zs(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Cc(){return document.body.offsetHeight}function Qh(e,t,n){const o=e[uo];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const ea=Symbol("_vod"),Gh=Symbol("_vsh"),Yh=Symbol(""),Jh=/(^|;)\s*display\s*:/;function Xh(e,t,n){const o=e.style,i=Be(n);let r=!1;if(n&&!i){if(t)if(Be(t))for(const l of t.split(";")){const s=l.slice(0,l.indexOf(":")).trim();n[s]==null&&bi(o,s,"")}else for(const l in t)n[l]==null&&bi(o,l,"");for(const l in n)l==="display"&&(r=!0),bi(o,l,n[l])}else if(i){if(t!==n){const l=o[Yh];l&&(n+=";"+l),o.cssText=n,r=Jh.test(n)}}else t&&e.removeAttribute("style");ea in e&&(e[ea]=r?o.display:"",e[Gh]&&(o.display="none"))}const ta=/\s*!important$/;function bi(e,t,n){if(be(n))n.forEach(o=>bi(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=Zh(e,t);ta.test(n)?e.setProperty(pn(o),n.replace(ta,""),"important"):e[o]=n}}const na=["Webkit","Moz","ms"],$r={};function Zh(e,t){const n=$r[t];if(n)return n;let o=It(t);if(o!=="filter"&&o in e)return $r[t]=o;o=Ui(o);for(let i=0;iPr||(rv.then(()=>Pr=0),Pr=Date.now());function sv(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;Ft(av(o,n.value),t,5,[o])};return n.value=e,n.attached=lv(),n}function av(e,t){if(be(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(o=>i=>!i._stopped&&o&&o(i))}else return t}const sa=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,uv=(e,t,n,o,i,r)=>{const l=i==="svg";t==="class"?Qh(e,o,l):t==="style"?Xh(e,n,o):zi(t)?xl(t)||ov(e,t,n,o,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):cv(e,t,o,l))?(ev(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&ia(e,t,o,l,r,t!=="value")):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),ia(e,t,o,l))};function cv(e,t,n,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&sa(t)&&ye(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return sa(t)&&Be(n)?!1:!!(t in e||e._isVueCE&&(/[A-Z]/.test(t)||!Be(n)))}const kc=new WeakMap,Ec=new WeakMap,Ai=Symbol("_moveCb"),aa=Symbol("_enterCb"),fv=e=>(delete e.props.mode,e),dv=fv({name:"TransitionGroup",props:Qe({},_c,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Se(),o=Du();let i,r;return Nl(()=>{if(!i.length)return;const l=e.moveClass||`${e.name||"v"}-move`;if(!pv(i[0].el,n.vnode.el,l))return;i.forEach(vv),i.forEach(mv);const s=i.filter(gv);Cc(),s.forEach(u=>{const c=u.el,a=c.style;Gt(c,l),a.transform=a.webkitTransform=a.transitionDuration="";const f=c[Ai]=d=>{d&&d.target!==c||(!d||/transform$/.test(d.propertyName))&&(c.removeEventListener("transitionend",f),c[Ai]=null,ln(c,l))};c.addEventListener("transitionend",f)})}),()=>{const l=Ce(e),s=Sc(l);let u=l.tag||at;if(i=[],r)for(let c=0;c{s.split(/\s+/).forEach(u=>u&&o.classList.remove(u))}),n.split(/\s+/).forEach(s=>s&&o.classList.add(s)),o.style.display="none";const r=t.nodeType===1?t:t.parentNode;r.appendChild(o);const{hasTransform:l}=xc(o);return r.removeChild(o),l}const bv=["ctrl","shift","alt","meta"],yv={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>bv.some(n=>e[`${n}Key`]&&!t.includes(n))},Mr=(e,t)=>{const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=(i,...r)=>{for(let l=0;l{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=i=>{if(!("key"in i))return;const r=pn(i.key);if(t.some(l=>l===r||wv[l]===r))return e(i)})},Sv=Qe({patchProp:uv},Hh);let ua;function xv(){return ua||(ua=vh(Sv))}const Ac=(...e)=>{const t=xv().createApp(...e),{mount:n}=t;return t.mount=o=>{const i=kv(o);if(!i)return;const r=t._component;!ye(r)&&!r.render&&!r.template&&(r.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const l=n(i,!1,Cv(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),l},t};function Cv(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function kv(e){return Be(e)?document.querySelector(e):e}function Vn(e,t,n,o){return Object.defineProperty(e,t,{get:n,set:o,enumerable:!0}),e}const Vt=se(!1);let cl;function Ev(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 Av(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)||[]}const Tc="ontouchstart"in window||window.navigator.maxTouchPoints>0;function Tv(e){const t=e.toLowerCase(),n=Av(t),o=Ev(t,n),i={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};o.browser&&(i[o.browser]=!0,i.version=o.version,i.versionNumber=parseInt(o.version,10)),o.platform&&(i[o.platform]=!0);const r=i.android||i.ios||i.bb||i.blackberry||i.ipad||i.iphone||i.ipod||i.kindle||i.playbook||i.silk||i["windows phone"];if(r===!0||t.indexOf("mobile")!==-1?i.mobile=!0:i.desktop=!0,i["windows phone"]&&(i.winphone=!0,delete i["windows phone"]),i.edga||i.edgios||i.edg?(i.edge=!0,o.browser="edge"):i.crios?(i.chrome=!0,o.browser="chrome"):i.fxios&&(i.firefox=!0,o.browser="firefox"),(i.ipod||i.ipad||i.iphone)&&(i.ios=!0),i.vivaldi&&(o.browser="vivaldi",i.vivaldi=!0),(i.chrome||i.opr||i.safari||i.vivaldi||i.mobile===!0&&i.ios!==!0&&r!==!0)&&(i.webkit=!0),i.opr&&(o.browser="opera",i.opera=!0),i.safari&&(i.blackberry||i.bb?(o.browser="blackberry",i.blackberry=!0):i.playbook?(o.browser="playbook",i.playbook=!0):i.android?(o.browser="android",i.android=!0):i.kindle?(o.browser="kindle",i.kindle=!0):i.silk&&(o.browser="silk",i.silk=!0)),i.name=o.browser,i.platform=o.platform,t.indexOf("electron")!==-1)i.electron=!0;else if(document.location.href.indexOf("-extension://")!==-1)i.bex=!0;else{if(window.Capacitor!==void 0?(i.capacitor=!0,i.nativeMobile=!0,i.nativeMobileWrapper="capacitor"):(window._cordovaNative!==void 0||window.cordova!==void 0)&&(i.cordova=!0,i.nativeMobile=!0,i.nativeMobileWrapper="cordova"),Vt.value===!0&&(cl={is:{...i}}),Tc===!0&&i.mac===!0&&(i.desktop===!0&&i.safari===!0||i.nativeMobile===!0&&i.android!==!0&&i.ios!==!0&&i.ipad!==!0)){delete i.mac,delete i.desktop;const l=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(i,{mobile:!0,ios:!0,platform:l,[l]:!0})}i.mobile!==!0&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete i.desktop,i.mobile=!0)}return i}const ca=navigator.userAgent||navigator.vendor||window.opera,qv={has:{touch:!1,webStorage:!1},within:{iframe:!1}},Me={userAgent:ca,is:Tv(ca),has:{touch:Tc},within:{iframe:window.self!==window.top}},Ti={install(e){const{$q:t}=e;Vt.value===!0?(e.onSSRHydrated.push(()=>{Object.assign(t.platform,Me),Vt.value=!1}),t.platform=Ht(this)):t.platform=this}};{let e;Vn(Me.has,"webStorage",()=>{if(e!==void 0)return e;try{if(window.localStorage)return e=!0,!0}catch{}return e=!1,!1}),Object.assign(Ti,Me),Vt.value===!0&&(Object.assign(Ti,cl,qv),cl=null)}function ke(e){return Qi(Qd(e))}function Kl(e){return Qi(e)}const ir=(e,t)=>{const n=Ht(e);for(const o in e)Vn(t,o,()=>n[o],i=>{n[o]=i});return t},Ke={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const e=Object.defineProperty({},"passive",{get(){Object.assign(Ke,{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 bt(){}function Ov(e){return e.button===0}function jo(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 $v(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 gt(e){e.stopPropagation()}function ut(e){e.cancelable!==!1&&e.preventDefault()}function Ve(e){e.cancelable!==!1&&e.preventDefault(),e.stopPropagation()}function Lr(e,t){if(e===void 0||t===!0&&e.__dragPrevented===!0)return;const n=t===!0?o=>{o.__dragPrevented=!0,o.addEventListener("dragstart",ut,Ke.notPassiveCapture)}:o=>{delete o.__dragPrevented,o.removeEventListener("dragstart",ut,Ke.notPassiveCapture)};e.querySelectorAll("a, img").forEach(n)}function Xt(e,t,n){const o=`__q_${t}_evt`;e[o]=e[o]!==void 0?e[o].concat(n):n,n.forEach(i=>{i[0].addEventListener(i[1],e[i[2]],Ke[i[3]])})}function $n(e,t){const n=`__q_${t}_evt`;e[n]!==void 0&&(e[n].forEach(o=>{o[0].removeEventListener(o[1],e[o[2]],Ke[o[3]])}),e[n]=void 0)}function Wl(e,t=250,n){let o=null;function i(){const r=arguments,l=()=>{o=null,e.apply(this,r)};o!==null&&clearTimeout(o),o=setTimeout(l,t)}return i.cancel=()=>{o!==null&&clearTimeout(o)},i}const Rr=["sm","md","lg","xl"],{passive:fa}=Ke,Pv=ir({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:bt,setDebounce:bt,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,o=n||window,i=document.scrollingElement||document.documentElement,r=n===void 0||Me.is.mobile===!0?()=>[Math.max(window.innerWidth,i.clientWidth),Math.max(window.innerHeight,i.clientHeight)]:()=>[n.width*n.scale+window.innerWidth-i.clientWidth,n.height*n.scale+window.innerHeight-i.clientHeight],l=e.config.screen!==void 0&&e.config.screen.bodyClasses===!0;this.__update=f=>{const[d,h]=r();if(h!==this.height&&(this.height=h),d!==this.width)this.width=d;else if(f!==!0)return;let g=this.sizes;this.gt.xs=d>=g.sm,this.gt.sm=d>=g.md,this.gt.md=d>=g.lg,this.gt.lg=d>=g.xl,this.lt.sm=d{Rr.forEach(d=>{f[d]!==void 0&&(u[d]=f[d])})},this.setDebounce=f=>{c=f};const a=()=>{const f=getComputedStyle(document.body);f.getPropertyValue("--q-size-sm")&&Rr.forEach(d=>{this.sizes[d]=parseInt(f.getPropertyValue(`--q-size-${d}`),10)}),this.setSizes=d=>{Rr.forEach(h=>{d[h]&&(this.sizes[h]=d[h])}),this.__update(!0)},this.setDebounce=d=>{s!==void 0&&o.removeEventListener("resize",s,fa),s=d>0?Wl(this.__update,d):this.__update,o.addEventListener("resize",s,fa)},this.setDebounce(c),Object.keys(u).length!==0?(this.setSizes(u),u=void 0):this.__update(),l===!0&&this.name==="xs"&&document.body.classList.add("screen--xs")};Vt.value===!0?t.push(a):a()}}),et=ir({isActive:!1,mode:!1},{__media:void 0,set(e){et.mode=e,e==="auto"?(et.__media===void 0&&(et.__media=window.matchMedia("(prefers-color-scheme: dark)"),et.__updateMedia=()=>{et.set("auto")},et.__media.addListener(et.__updateMedia)),e=et.__media.matches):et.__media!==void 0&&(et.__media.removeListener(et.__updateMedia),et.__media=void 0),et.isActive=e===!0,document.body.classList.remove(`body--${e===!0?"light":"dark"}`),document.body.classList.add(`body--${e===!0?"dark":"light"}`)},toggle(){et.set(et.isActive===!1)},install({$q:e,ssrContext:t}){const{dark:n}=e.config;e.dark=this,this.__installed!==!0&&this.set(n!==void 0?n:!1)}});function Mv(e,t,n=document.body){if(typeof e!="string")throw new TypeError("Expected a string as propName");if(typeof t!="string")throw new TypeError("Expected a string as value");if(!(n instanceof Element))throw new TypeError("Expected a DOM element");n.style.setProperty(`--q-${e}`,t)}let qc=!1;function Lv(e){qc=e.isComposing===!0}function Ql(e){return qc===!0||e!==Object(e)||e.isComposing===!0||e.qKeyEvent===!0}function mn(e,t){return Ql(e)===!0?!1:[].concat(t).includes(e.keyCode)}function Oc(e){if(e.ios===!0)return"ios";if(e.android===!0)return"android"}function Rv({is:e,has:t,within:n},o){const i=[e.desktop===!0?"desktop":"mobile",`${t.touch===!1?"no-":""}touch`];if(e.mobile===!0){const r=Oc(e);r!==void 0&&i.push("platform-"+r)}if(e.nativeMobile===!0){const r=e.nativeMobileWrapper;i.push(r),i.push("native-mobile"),e.ios===!0&&(o[r]===void 0||o[r].iosStatusBarPadding!==!1)&&i.push("q-ios-padding")}else e.electron===!0?i.push("electron"):e.bex===!0&&i.push("bex");return n.iframe===!0&&i.push("within-iframe"),i}function Iv(){const{is:e}=Me,t=document.body.className,n=new Set(t.replace(/ {2}/g," ").split(" "));if(e.nativeMobile!==!0&&e.electron!==!0&&e.bex!==!0){if(e.desktop===!0)n.delete("mobile"),n.delete("platform-ios"),n.delete("platform-android"),n.add("desktop");else if(e.mobile===!0){n.delete("desktop"),n.add("mobile"),n.delete("platform-ios"),n.delete("platform-android");const i=Oc(e);i!==void 0&&n.add(`platform-${i}`)}}Me.has.touch===!0&&(n.delete("no-touch"),n.add("touch")),Me.within.iframe===!0&&n.add("within-iframe");const o=Array.from(n).join(" ");t!==o&&(document.body.className=o)}function Fv(e){for(const t in e)Mv(t,e[t])}const Vv={install(e){if(this.__installed!==!0){if(Vt.value===!0)Iv();else{const{$q:t}=e;t.config.brand!==void 0&&Fv(t.config.brand);const n=Rv(Me,t.config);document.body.classList.add.apply(document.body.classList,n)}Me.is.ios===!0&&document.body.addEventListener("touchstart",bt),window.addEventListener("keydown",Lv,!0)}}},$c=()=>!0;function Bv(e){return typeof e=="string"&&e!==""&&e!=="/"&&e!=="#/"}function Nv(e){return e.startsWith("#")===!0&&(e=e.substring(1)),e.startsWith("/")===!1&&(e="/"+e),e.endsWith("/")===!0&&(e=e.substring(0,e.length-1)),"#"+e}function Dv(e){if(e.backButtonExit===!1)return()=>!1;if(e.backButtonExit==="*")return $c;const t=["#/"];return Array.isArray(e.backButtonExit)===!0&&t.push(...e.backButtonExit.filter(Bv).map(Nv)),()=>t.includes(window.location.hash)}const fl={__history:[],add:bt,remove:bt,install({$q:e}){if(this.__installed===!0)return;const{cordova:t,capacitor:n}=Me.is;if(t!==!0&&n!==!0)return;const o=e.config[t===!0?"cordova":"capacitor"];if(o!==void 0&&o.backButton===!1||n===!0&&(window.Capacitor===void 0||window.Capacitor.Plugins.App===void 0))return;this.add=l=>{l.condition===void 0&&(l.condition=$c),this.__history.push(l)},this.remove=l=>{const s=this.__history.indexOf(l);s>=0&&this.__history.splice(s,1)};const i=Dv(Object.assign({backButtonExit:!0},o)),r=()=>{if(this.__history.length){const l=this.__history[this.__history.length-1];l.condition()===!0&&(this.__history.pop(),l.handler())}else i()===!0?navigator.app.exitApp():window.history.back()};t===!0?document.addEventListener("deviceready",()=>{document.addEventListener("backbutton",r,!1)}):window.Capacitor.Plugins.App.addListener("backButton",r)}},da={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"},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"},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 ha(){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("-")}const cn=ir({__qLang:{}},{getLocale:ha,set(e=da,t){const n={...e,rtl:e.rtl===!0,getLocale:ha};{if(n.set=cn.set,cn.__langConfig===void 0||cn.__langConfig.noHtmlAttrs!==!0){const o=document.documentElement;o.setAttribute("dir",n.rtl===!0?"rtl":"ltr"),o.setAttribute("lang",n.isoName)}Object.assign(cn.__qLang,n)}},install({$q:e,lang:t,ssrContext:n}){e.lang=cn.__qLang,cn.__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(o){return Reflect.ownKeys(o).filter(i=>i!=="set"&&i!=="getLocale")}}),this.set(t||da))}}),zv={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"}},qi=ir({iconMapFn:null,__qIconSet:{}},{set(e,t){const n={...e};n.set=qi.set,Object.assign(qi.__qIconSet,n)},install({$q:e,iconSet:t,ssrContext:n}){e.config.iconMapFn!==void 0&&(this.iconMapFn=e.config.iconMapFn),e.iconSet=this.__qIconSet,Vn(e,"iconMapFn",()=>this.iconMapFn,o=>{this.iconMapFn=o}),this.__installed===!0?t!==void 0&&this.set(t):(this.props=new Proxy(this.__qIconSet,{get(){return Reflect.get(...arguments)},ownKeys(o){return Reflect.ownKeys(o).filter(i=>i!=="set")}}),this.set(t||zv))}}),Pc="_q_",Mc="_q_t_",rr="_q_l_",jv="_q_pc_",Hv="_q_fo_";function qt(){}const Oi={};let Lc=!1;function Uv(){Lc=!0}function fn(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,o;if(e.constructor===Array){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(fn(e[o],t[o])!==!0)return!1;return!0}if(e.constructor===Map){if(e.size!==t.size)return!1;let r=e.entries();for(o=r.next();o.done!==!0;){if(t.has(o.value[0])!==!0)return!1;o=r.next()}for(r=e.entries(),o=r.next();o.done!==!0;){if(fn(o.value[1],t.get(o.value[0]))!==!0)return!1;o=r.next()}return!0}if(e.constructor===Set){if(e.size!==t.size)return!1;const r=e.entries();for(o=r.next();o.done!==!0;){if(t.has(o.value[0])!==!0)return!1;o=r.next()}return!0}if(e.buffer!=null&&e.buffer.constructor===ArrayBuffer){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(e[o]!==t[o])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 i=Object.keys(e).filter(r=>e[r]!==void 0);if(n=i.length,n!==Object.keys(t).filter(r=>t[r]!==void 0).length)return!1;for(o=n;o--!==0;){const r=i[o];if(fn(e[r],t[r])!==!0)return!1}return!0}return e!==e&&t!==t}function Ho(e){return e!==null&&typeof e=="object"&&Array.isArray(e)!==!0}function Kv(e){return Object.prototype.toString.call(e)==="[object Date]"}function Wv(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const va=[Ti,Vv,et,Pv,fl,cn,qi];function Qv(e,t){const n=Ac(e);n.config.globalProperties=t.config.globalProperties;const{reload:o,...i}=t._context;return Object.assign(n._context,i),n}function ma(e,t){t.forEach(n=>{n.install(e),n.__installed=!0})}function Gv(e,t,n){e.config.globalProperties.$q=n.$q,e.provide(Pc,n.$q),ma(n,va),t.components!==void 0&&Object.values(t.components).forEach(o=>{Ho(o)===!0&&o.name!==void 0&&e.component(o.name,o)}),t.directives!==void 0&&Object.values(t.directives).forEach(o=>{Ho(o)===!0&&o.name!==void 0&&e.directive(o.name,o)}),t.plugins!==void 0&&ma(n,Object.values(t.plugins).filter(o=>typeof o.install=="function"&&va.includes(o)===!1)),Vt.value===!0&&(n.$q.onSSRHydrated=()=>{n.onSSRHydrated.forEach(o=>{o()}),n.$q.onSSRHydrated=()=>{}})}const Yv=function(e,t={}){const n={version:"2.17.4"};Lc===!1?(t.config!==void 0&&Object.assign(Oi,t.config),n.config={...Oi},Uv()):n.config=t.config||{},Gv(e,t,{parentApp:e,$q:n,lang:t.lang,iconSet:t.iconSet,onSSRHydrated:[]})},Jv={name:"Quasar",version:"2.17.4",install:Yv,lang:cn,iconSet:qi};function Rc(e,t,n){let o;function i(){o!==void 0&&(fl.remove(o),o=void 0)}return Ne(()=>{e.value===!0&&i()}),{removeFromHistory:i,addToHistory(){o={condition:()=>n.value===!0,handler:t},fl.add(o)}}}function yi(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 Ic(e){return e.appContext.config.globalProperties.$router!==void 0}function Ro(e){return e.isUnmounted===!0||e.isDeactivated===!0}const lr={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},sr=["beforeShow","show","beforeHide","hide"];function ar({showing:e,canShow:t,hideOnRouteChange:n,handleShow:o,handleHide:i,processOnMount:r}){const l=Se(),{props:s,emit:u,proxy:c}=l;let a;function f(S){e.value===!0?g(S):d(S)}function d(S){if(s.disable===!0||S!==void 0&&S.qAnchorHandled===!0||t!==void 0&&t(S)!==!0)return;const R=s["onUpdate:modelValue"]!==void 0;R===!0&&(u("update:modelValue",!0),a=S,Fe(()=>{a===S&&(a=void 0)})),(s.modelValue===null||R===!1)&&h(S)}function h(S){e.value!==!0&&(e.value=!0,u("beforeShow",S),o!==void 0?o(S):u("show",S))}function g(S){if(s.disable===!0)return;const R=s["onUpdate:modelValue"]!==void 0;R===!0&&(u("update:modelValue",!1),a=S,Fe(()=>{a===S&&(a=void 0)})),(s.modelValue===null||R===!1)&&P(S)}function P(S){e.value!==!1&&(e.value=!1,u("beforeHide",S),i!==void 0?i(S):u("hide",S))}function A(S){s.disable===!0&&S===!0?s["onUpdate:modelValue"]!==void 0&&u("update:modelValue",!1):S===!0!==e.value&&(S===!0?h:P)(a)}he(()=>s.modelValue,A),n!==void 0&&Ic(l)===!0&&he(()=>c.$route.fullPath,()=>{n.value===!0&&e.value===!0&&g()}),r===!0&&wt(()=>{A(s.modelValue)});const V={show:d,hide:g,toggle:f};return Object.assign(c,V),V}function dl(e,t){const n=e.style;for(const o in t)n[o]=t[o]}function Xv(e){if(e==null)return;if(typeof e=="string")try{return document.querySelector(e)||void 0}catch{return}const t=$u(e);if(t)return t.$el||t}function Fc(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}const Gl=[Element,String],Zv=[null,document,document.body,document.scrollingElement,document.documentElement];function Yl(e,t){let n=Xv(t);if(n===void 0){if(e==null)return window;n=e.closest(".scroll,.scroll-y,.overflow-auto")}return Zv.includes(n)?window:n}function Vc(e){return e===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:e.scrollTop}function Bc(e){return e===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:e.scrollLeft}let li;function wi(){if(li!==void 0)return li;const e=document.createElement("p"),t=document.createElement("div");dl(e,{width:"100%",height:"200px"}),dl(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 o=e.offsetWidth;return n===o&&(o=t.clientWidth),t.remove(),li=n-o,li}function em(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"]))}let xo=0,Ir,Fr,Ao,Vr=!1,ga,pa,ba,Cn=null;function tm(e){nm(e)&&Ve(e)}function nm(e){if(e.target===document.body||e.target.classList.contains("q-layout__backdrop"))return!0;const t=$v(e),n=e.shiftKey&&!e.deltaX,o=!n&&Math.abs(e.deltaX)<=Math.abs(e.deltaY),i=n||o?e.deltaY:e.deltaX;for(let r=0;r0&&l.scrollTop+l.clientHeight===l.scrollHeight:i<0&&l.scrollLeft===0?!0:i>0&&l.scrollLeft+l.clientWidth===l.scrollWidth}return!0}function ya(e){e.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function si(e){Vr!==!0&&(Vr=!0,requestAnimationFrame(()=>{Vr=!1;const{height:t}=e.target,{clientHeight:n,scrollTop:o}=document.scrollingElement;(Ao===void 0||t!==window.innerHeight)&&(Ao=n-t,document.scrollingElement.scrollTop=o),o>Ao&&(document.scrollingElement.scrollTop-=Math.ceil((o-Ao)/8))}))}function wa(e){const t=document.body,n=window.visualViewport!==void 0;if(e==="add"){const{overflowY:o,overflowX:i}=window.getComputedStyle(t);Ir=Bc(window),Fr=Vc(window),ga=t.style.left,pa=t.style.top,ba=window.location.href,t.style.left=`-${Ir}px`,t.style.top=`-${Fr}px`,i!=="hidden"&&(i==="scroll"||t.scrollWidth>window.innerWidth)&&t.classList.add("q-body--force-scrollbar-x"),o!=="hidden"&&(o==="scroll"||t.scrollHeight>window.innerHeight)&&t.classList.add("q-body--force-scrollbar-y"),t.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,Me.is.ios===!0&&(n===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",si,Ke.passiveCapture),window.visualViewport.addEventListener("scroll",si,Ke.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",ya,Ke.passiveCapture))}Me.is.desktop===!0&&Me.is.mac===!0&&window[`${e}EventListener`]("wheel",tm,Ke.notPassive),e==="remove"&&(Me.is.ios===!0&&(n===!0?(window.visualViewport.removeEventListener("resize",si,Ke.passiveCapture),window.visualViewport.removeEventListener("scroll",si,Ke.passiveCapture)):window.removeEventListener("scroll",ya,Ke.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=ga,t.style.top=pa,window.location.href===ba&&window.scrollTo(Ir,Fr),Ao=void 0)}function om(e){let t="add";if(e===!0){if(xo++,Cn!==null){clearTimeout(Cn),Cn=null;return}if(xo>1)return}else{if(xo===0||(xo--,xo>0))return;if(t="remove",Me.is.ios===!0&&Me.is.nativeMobile===!0){Cn!==null&&clearTimeout(Cn),Cn=setTimeout(()=>{wa(t),Cn=null},100);return}}wa(t)}function Nc(){let e;return{preventBodyScroll(t){t!==e&&(e!==void 0||t===!0)&&(e=t,om(t))}}}function co(){let e=null;const t=Se();function n(){e!==null&&(clearTimeout(e),e=null)}return Wo(n),Ne(n),{removeTimeout:n,registerTimeout(o,i){n(),Ro(t)===!1&&(e=setTimeout(()=>{e=null,o()},i))}}}const Ot={dark:{type:Boolean,default:null}};function $t(e,t){return b(()=>e.dark===null?t.dark.isActive:e.dark)}const Jl={left:!0,right:!0,up:!0,down:!0,horizontal:!0,vertical:!0},im=Object.keys(Jl);Jl.all=!0;function _a(e){const t={};for(const n of im)e[n]===!0&&(t[n]=!0);return Object.keys(t).length===0?Jl:(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)}const rm=["INPUT","TEXTAREA"];function Sa(e,t){return t.event===void 0&&e.target!==void 0&&e.target.draggable!==!0&&typeof t.handler=="function"&&rm.includes(e.target.nodeName.toUpperCase())===!1&&(e.qClonedBy===void 0||e.qClonedBy.indexOf(t.uid)===-1)}function $i(){if(window.getSelection!==void 0){const e=window.getSelection();e.empty!==void 0?e.empty():e.removeAllRanges!==void 0&&(e.removeAllRanges(),Ti.is.mobile!==!0&&e.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}function Br(e,t,n){const o=jo(e);let i,r=o.left-t.event.x,l=o.top-t.event.y,s=Math.abs(r),u=Math.abs(l);const c=t.direction;c.horizontal===!0&&c.vertical!==!0?i=r<0?"left":"right":c.horizontal!==!0&&c.vertical===!0?i=l<0?"up":"down":c.up===!0&&l<0?(i="up",s>u&&(c.left===!0&&r<0?i="left":c.right===!0&&r>0&&(i="right"))):c.down===!0&&l>0?(i="down",s>u&&(c.left===!0&&r<0?i="left":c.right===!0&&r>0&&(i="right"))):c.left===!0&&r<0?(i="left",s0&&(i="down"))):c.right===!0&&r>0&&(i="right",s0&&(i="down")));let a=!1;if(i===void 0&&n===!1){if(t.event.isFirst===!0||t.event.lastDir===void 0)return{};i=t.event.lastDir,a=!0,i==="left"||i==="right"?(o.left-=r,s=0,r=0):(o.top-=l,u=0,l=0)}return{synthetic:a,payload:{evt:e,touch:t.event.mouse!==!0,mouse:t.event.mouse===!0,position:o,direction:i,isFirst:t.event.isFirst,isFinal:n===!0,duration:Date.now()-t.event.time,distance:{x:s,y:u},offset:{x:r,y:l},delta:{x:o.left-t.event.lastX,y:o.top-t.event.lastY}}}}let lm=0;const Nr=Kl({name:"touch-pan",beforeMount(e,{value:t,modifiers:n}){if(n.mouse!==!0&&Me.has.touch!==!0)return;function o(r,l){n.mouse===!0&&l===!0?Ve(r):(n.stop===!0&>(r),n.prevent===!0&&ut(r))}const i={uid:"qvtp_"+lm++,handler:t,modifiers:n,direction:_a(n),noop:bt,mouseStart(r){Sa(r,i)&&Ov(r)&&(Xt(i,"temp",[[document,"mousemove","move","notPassiveCapture"],[document,"mouseup","end","passiveCapture"]]),i.start(r,!0))},touchStart(r){if(Sa(r,i)){const l=r.target;Xt(i,"temp",[[l,"touchmove","move","notPassiveCapture"],[l,"touchcancel","end","passiveCapture"],[l,"touchend","end","passiveCapture"]]),i.start(r)}},start(r,l){if(Me.is.firefox===!0&&Lr(e,!0),i.lastEvt=r,l===!0||n.stop===!0){if(i.direction.all!==!0&&(l!==!0||i.modifiers.mouseAllDir!==!0&&i.modifiers.mousealldir!==!0)){const c=r.type.indexOf("mouse")!==-1?new MouseEvent(r.type,r):new TouchEvent(r.type,r);r.defaultPrevented===!0&&ut(c),r.cancelBubble===!0&>(c),Object.assign(c,{qKeyEvent:r.qKeyEvent,qClickOutside:r.qClickOutside,qAnchorHandled:r.qAnchorHandled,qClonedBy:r.qClonedBy===void 0?[i.uid]:r.qClonedBy.concat(i.uid)}),i.initialEvent={target:r.target,event:c}}gt(r)}const{left:s,top:u}=jo(r);i.event={x:s,y:u,time:Date.now(),mouse:l===!0,detected:!1,isFirst:!0,isFinal:!1,lastX:s,lastY:u}},move(r){if(i.event===void 0)return;const l=jo(r),s=l.left-i.event.x,u=l.top-i.event.y;if(s===0&&u===0)return;i.lastEvt=r;const c=i.event.mouse===!0,a=()=>{o(r,c);let h;n.preserveCursor!==!0&&n.preservecursor!==!0&&(h=document.documentElement.style.cursor||"",document.documentElement.style.cursor="grabbing"),c===!0&&document.body.classList.add("no-pointer-events--children"),document.body.classList.add("non-selectable"),$i(),i.styleCleanup=g=>{if(i.styleCleanup=void 0,h!==void 0&&(document.documentElement.style.cursor=h),document.body.classList.remove("non-selectable"),c===!0){const P=()=>{document.body.classList.remove("no-pointer-events--children")};g!==void 0?setTimeout(()=>{P(),g()},50):P()}else g!==void 0&&g()}};if(i.event.detected===!0){i.event.isFirst!==!0&&o(r,i.event.mouse);const{payload:h,synthetic:g}=Br(r,i,!1);h!==void 0&&(i.handler(h)===!1?i.end(r):(i.styleCleanup===void 0&&i.event.isFirst===!0&&a(),i.event.lastX=h.position.left,i.event.lastY=h.position.top,i.event.lastDir=g===!0?void 0:h.direction,i.event.isFirst=!1));return}if(i.direction.all===!0||c===!0&&(i.modifiers.mouseAllDir===!0||i.modifiers.mousealldir===!0)){a(),i.event.detected=!0,i.move(r);return}const f=Math.abs(s),d=Math.abs(u);f!==d&&(i.direction.horizontal===!0&&f>d||i.direction.vertical===!0&&f0||i.direction.left===!0&&f>d&&s<0||i.direction.right===!0&&f>d&&s>0?(i.event.detected=!0,i.move(r)):i.end(r,!0))},end(r,l){if(i.event!==void 0){if($n(i,"temp"),Me.is.firefox===!0&&Lr(e,!1),l===!0)i.styleCleanup!==void 0&&i.styleCleanup(),i.event.detected!==!0&&i.initialEvent!==void 0&&i.initialEvent.target.dispatchEvent(i.initialEvent.event);else if(i.event.detected===!0){i.event.isFirst===!0&&i.handler(Br(r===void 0?i.lastEvt:r,i).payload);const{payload:s}=Br(r===void 0?i.lastEvt:r,i,!0),u=()=>{i.handler(s)};i.styleCleanup!==void 0?i.styleCleanup(u):u()}i.event=void 0,i.initialEvent=void 0,i.lastEvt=void 0}}};if(e.__qtouchpan=i,n.mouse===!0){const r=n.mouseCapture===!0||n.mousecapture===!0?"Capture":"";Xt(i,"main",[[e,"mousedown","mouseStart",`passive${r}`]])}Me.has.touch===!0&&Xt(i,"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=_a(t.modifiers))},beforeUnmount(e){const t=e.__qtouchpan;t!==void 0&&(t.event!==void 0&&t.end(),$n(t,"main"),$n(t,"temp"),Me.is.firefox===!0&&Lr(e,!1),t.styleCleanup!==void 0&&t.styleCleanup(),delete e.__qtouchpan)}}),xa=["B","KB","MB","GB","TB","PB"];function sm(e,t=1){let n=0;for(;parseInt(e,10)>=1024&&n["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:[...sr,"onLayout","miniState"],setup(e,{slots:t,emit:n,attrs:o}){const i=Se(),{proxy:{$q:r}}=i,l=$t(e,r),{preventBodyScroll:s}=Nc(),{registerTimeout:u,removeTimeout:c}=co(),a=Kt(rr,qt);if(a===qt)return console.error("QDrawer needs to be child of QLayout"),qt;let f,d=null,h;const g=se(e.behavior==="mobile"||e.behavior!=="desktop"&&a.totalWidth.value<=e.breakpoint),P=b(()=>e.mini===!0&&g.value!==!0),A=b(()=>P.value===!0?e.miniWidth:e.width),V=se(e.showIfAbove===!0&&g.value===!1?!0:e.modelValue===!0),S=b(()=>e.persistent!==!0&&(g.value===!0||me.value===!0));function R(v,x){if(F(),v!==!1&&a.animate(),m(0),g.value===!0){const q=a.instances[ee.value];q!==void 0&&q.belowBreakpoint===!0&&q.hide(!1),y(1),a.isContainer.value!==!0&&s(!0)}else y(0),v!==!1&&M(!1);u(()=>{v!==!1&&M(!0),x!==!0&&n("show",v)},ka)}function T(v,x){X(),v!==!1&&a.animate(),y(0),m(N.value*A.value),oe(),x!==!0?u(()=>{n("hide",v)},ka):c()}const{show:L,hide:O}=ar({showing:V,hideOnRouteChange:S,handleShow:R,handleHide:T}),{addToHistory:F,removeFromHistory:X}=Rc(V,O,S),_={belowBreakpoint:g,hide:O},E=b(()=>e.side==="right"),N=b(()=>(r.lang.rtl===!0?-1:1)*(E.value===!0?1:-1)),p=se(0),z=se(!1),I=se(!1),le=se(A.value*N.value),ee=b(()=>E.value===!0?"left":"right"),Q=b(()=>V.value===!0&&g.value===!1&&e.overlay===!1?e.miniToOverlay===!0?e.miniWidth:A.value:0),B=b(()=>e.overlay===!0||e.miniToOverlay===!0||a.view.value.indexOf(E.value?"R":"L")!==-1||r.platform.is.ios===!0&&a.isContainer.value===!0),ie=b(()=>e.overlay===!1&&V.value===!0&&g.value===!1),me=b(()=>e.overlay===!0&&V.value===!0&&g.value===!1),$=b(()=>"fullscreen q-drawer__backdrop"+(V.value===!1&&z.value===!1?" hidden":"")),k=b(()=>({backgroundColor:`rgba(0,0,0,${p.value*.4})`})),te=b(()=>E.value===!0?a.rows.value.top[2]==="r":a.rows.value.top[0]==="l"),ge=b(()=>E.value===!0?a.rows.value.bottom[2]==="r":a.rows.value.bottom[0]==="l"),ve=b(()=>{const v={};return a.header.space===!0&&te.value===!1&&(B.value===!0?v.top=`${a.header.offset}px`:a.header.space===!0&&(v.top=`${a.header.size}px`)),a.footer.space===!0&&ge.value===!1&&(B.value===!0?v.bottom=`${a.footer.offset}px`:a.footer.space===!0&&(v.bottom=`${a.footer.size}px`)),v}),H=b(()=>{const v={width:`${A.value}px`,transform:`translateX(${le.value}px)`};return g.value===!0?v:Object.assign(v,ve.value)}),ae=b(()=>"q-drawer__content fit "+(a.isContainer.value!==!0?"scroll":"overflow-auto")),_e=b(()=>`q-drawer q-drawer--${e.side}`+(I.value===!0?" q-drawer--mini-animate":"")+(e.bordered===!0?" q-drawer--bordered":"")+(l.value===!0?" q-drawer--dark q-dark":"")+(z.value===!0?" no-transition":V.value===!0?"":" q-layout--prevent-focus")+(g.value===!0?" fixed q-drawer--on-top q-drawer--mobile q-drawer--top-padding":` q-drawer--${P.value===!0?"mini":"standard"}`+(B.value===!0||ie.value!==!0?" fixed":"")+(e.overlay===!0||e.miniToOverlay===!0?" q-drawer--on-top":"")+(te.value===!0?" q-drawer--top-padding":""))),ne=b(()=>{const v=r.lang.rtl===!0?e.side:ee.value;return[[Nr,U,void 0,{[v]:!0,mouse:!0}]]}),Ae=b(()=>{const v=r.lang.rtl===!0?ee.value:e.side;return[[Nr,Y,void 0,{[v]:!0,mouse:!0}]]}),Je=b(()=>{const v=r.lang.rtl===!0?ee.value:e.side;return[[Nr,Y,void 0,{[v]:!0,mouse:!0,mouseAllDir:!0}]]});function dt(){K(g,e.behavior==="mobile"||e.behavior!=="desktop"&&a.totalWidth.value<=e.breakpoint)}he(g,v=>{v===!0?(f=V.value,V.value===!0&&O(!1)):e.overlay===!1&&e.behavior!=="mobile"&&f!==!1&&(V.value===!0?(m(0),y(0),oe()):L(!1))}),he(()=>e.side,(v,x)=>{a.instances[x]===_&&(a.instances[x]=void 0,a[x].space=!1,a[x].offset=0),a.instances[v]=_,a[v].size=A.value,a[v].space=ie.value,a[v].offset=Q.value}),he(a.totalWidth,()=>{(a.isContainer.value===!0||document.qScrollPrevented!==!0)&&dt()}),he(()=>e.behavior+e.breakpoint,dt),he(a.isContainer,v=>{V.value===!0&&s(v!==!0),v===!0&&dt()}),he(a.scrollbarWidth,()=>{m(V.value===!0?0:void 0)}),he(Q,v=>{Z("offset",v)}),he(ie,v=>{n("onLayout",v),Z("space",v)}),he(E,()=>{m()}),he(A,v=>{m(),j(e.miniToOverlay,v)}),he(()=>e.miniToOverlay,v=>{j(v,A.value)}),he(()=>r.lang.rtl,()=>{m()}),he(()=>e.mini,()=>{e.noMiniAnimation||e.modelValue===!0&&(J(),a.animate())}),he(P,v=>{n("miniState",v)});function m(v){v===void 0?Fe(()=>{v=V.value===!0?0:A.value,m(N.value*v)}):(a.isContainer.value===!0&&E.value===!0&&(g.value===!0||Math.abs(v)===A.value)&&(v+=N.value*a.scrollbarWidth.value),le.value=v)}function y(v){p.value=v}function M(v){const x=v===!0?"remove":a.isContainer.value!==!0?"add":"";x!==""&&document.body.classList[x]("q-body--drawer-toggle")}function J(){d!==null&&clearTimeout(d),i.proxy&&i.proxy.$el&&i.proxy.$el.classList.add("q-drawer--mini-animate"),I.value=!0,d=setTimeout(()=>{d=null,I.value=!1,i&&i.proxy&&i.proxy.$el&&i.proxy.$el.classList.remove("q-drawer--mini-animate")},150)}function U(v){if(V.value!==!1)return;const x=A.value,q=ai(v.distance.x,0,x);if(v.isFinal===!0){q>=Math.min(75,x)===!0?L():(a.animate(),y(0),m(N.value*x)),z.value=!1;return}m((r.lang.rtl===!0?E.value!==!0:E.value)?Math.max(x-q,0):Math.min(0,q-x)),y(ai(q/x,0,1)),v.isFirst===!0&&(z.value=!0)}function Y(v){if(V.value!==!0)return;const x=A.value,q=v.direction===e.side,W=(r.lang.rtl===!0?q!==!0:q)?ai(v.distance.x,0,x):0;if(v.isFinal===!0){Math.abs(W){n("onLayout",ie.value),n("miniState",P.value),f=e.showIfAbove===!0;const v=()=>{(V.value===!0?R:T)(!1,!0)};if(a.totalWidth.value!==0){Fe(v);return}h=he(a.totalWidth,()=>{h(),h=void 0,V.value===!1&&e.showIfAbove===!0&&g.value===!1?L(!1):v()})}),Ne(()=>{h!==void 0&&h(),d!==null&&(clearTimeout(d),d=null),V.value===!0&&oe(),a.instances[e.side]===_&&(a.instances[e.side]=void 0,Z("size",0),Z("offset",0),Z("space",!1))}),()=>{const v=[];g.value===!0&&(e.noSwipeOpen===!1&&v.push(Ye(C("div",{key:"open",class:`q-drawer__opener fixed-${e.side}`,"aria-hidden":"true"}),ne.value)),v.push(hl("div",{ref:"backdrop",class:$.value,style:k.value,"aria-hidden":"true",onClick:O},void 0,"backdrop",e.noSwipeBackdrop!==!0&&V.value===!0,()=>Je.value)));const x=P.value===!0&&t.mini!==void 0,q=[C("div",{...o,key:""+x,class:[ae.value,o.class]},x===!0?t.mini():ze(t.default))];return e.elevated===!0&&V.value===!0&&q.push(C("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),v.push(hl("aside",{ref:"content",class:_e.value,style:H.value},q,"contentclose",e.noSwipeClose!==!0&&g.value===!0,()=>Ae.value)),C("div",{class:"q-drawer-container"},v)}}}),um=ke({name:"QPageContainer",setup(e,{slots:t}){const{proxy:{$q:n}}=Se(),o=Kt(rr,qt);if(o===qt)return console.error("QPageContainer needs to be child of QLayout"),qt;Zi(jv,!0);const i=b(()=>{const r={};return o.header.space===!0&&(r.paddingTop=`${o.header.size}px`),o.right.space===!0&&(r[`padding${n.lang.rtl===!0?"Left":"Right"}`]=`${o.right.size}px`),o.footer.space===!0&&(r.paddingBottom=`${o.footer.size}px`),o.left.space===!0&&(r[`padding${n.lang.rtl===!0?"Right":"Left"}`]=`${o.left.size}px`),r});return()=>C("div",{class:"q-page-container",style:i.value},ze(t.default))}}),{passive:Ea}=Ke,cm=["both","horizontal","vertical"],fm=ke({name:"QScrollObserver",props:{axis:{type:String,validator:e=>cm.includes(e),default:"vertical"},debounce:[String,Number],scrollTarget:Gl},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 o=null,i,r;he(()=>e.scrollTarget,()=>{u(),s()});function l(){o!==null&&o();const f=Math.max(0,Vc(i)),d=Bc(i),h={top:f-n.position.top,left:d-n.position.left};if(e.axis==="vertical"&&h.top===0||e.axis==="horizontal"&&h.left===0)return;const g=Math.abs(h.top)>=Math.abs(h.left)?h.top<0?"up":"down":h.left<0?"left":"right";n.position={top:f,left:d},n.directionChanged=n.direction!==g,n.delta=h,n.directionChanged===!0&&(n.direction=g,n.inflectionPoint=n.position),t("scroll",{...n})}function s(){i=Yl(r,e.scrollTarget),i.addEventListener("scroll",c,Ea),c(!0)}function u(){i!==void 0&&(i.removeEventListener("scroll",c,Ea),i=void 0)}function c(f){if(f===!0||e.debounce===0||e.debounce==="0")l();else if(o===null){const[d,h]=e.debounce?[setTimeout(l,e.debounce),clearTimeout]:[requestAnimationFrame(l),cancelAnimationFrame];o=()=>{h(d),o=null}}}const{proxy:a}=Se();return he(()=>a.$q.lang.rtl,l),wt(()=>{r=a.$el.parentNode,s()}),Ne(()=>{o!==null&&o(),u()}),Object.assign(a,{trigger:c,getPosition:()=>n}),bt}});function dm(){const e=se(!Vt.value);return e.value===!1&&wt(()=>{e.value=!0}),{isHydrated:e}}const zc=typeof ResizeObserver<"u",Aa=zc===!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"},vl=ke({name:"QResizeObserver",props:{debounce:{type:[String,Number],default:100}},emits:["resize"],setup(e,{emit:t}){let n=null,o,i={width:-1,height:-1};function r(u){u===!0||e.debounce===0||e.debounce==="0"?l():n===null&&(n=setTimeout(l,e.debounce))}function l(){if(n!==null&&(clearTimeout(n),n=null),o){const{offsetWidth:u,offsetHeight:c}=o;(u!==i.width||c!==i.height)&&(i={width:u,height:c},t("resize",i))}}const{proxy:s}=Se();if(s.trigger=r,zc===!0){let u;const c=a=>{o=s.$el.parentNode,o?(u=new ResizeObserver(r),u.observe(o),l()):a!==!0&&Fe(()=>{c(!0)})};return wt(()=>{c()}),Ne(()=>{n!==null&&clearTimeout(n),u!==void 0&&(u.disconnect!==void 0?u.disconnect():o&&u.unobserve(o))}),bt}else{let u=function(){n!==null&&(clearTimeout(n),n=null),f!==void 0&&(f.removeEventListener!==void 0&&f.removeEventListener("resize",r,Ke.passive),f=void 0)},c=function(){u(),o&&o.contentDocument&&(f=o.contentDocument.defaultView,f.addEventListener("resize",r,Ke.passive),l())};const{isHydrated:a}=dm();let f;return wt(()=>{Fe(()=>{o=s.$el,o&&c()})}),Ne(u),()=>{if(a.value===!0)return C("object",{class:"q--avoid-card-border",style:Aa.style,tabindex:-1,type:"text/html",data:Aa.url,"aria-hidden":"true",onLoad:c})}}}}),hm=ke({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:o}}=Se(),i=se(null),r=se(o.screen.height),l=se(e.container===!0?0:o.screen.width),s=se({position:0,direction:"down",inflectionPoint:0}),u=se(0),c=se(Vt.value===!0?0:wi()),a=b(()=>"q-layout q-layout--"+(e.container===!0?"containerized":"standard")),f=b(()=>e.container===!1?{minHeight:o.screen.height+"px"}:null),d=b(()=>c.value!==0?{[o.lang.rtl===!0?"left":"right"]:`${c.value}px`}:null),h=b(()=>c.value!==0?{[o.lang.rtl===!0?"right":"left"]:0,[o.lang.rtl===!0?"left":"right"]:`-${c.value}px`,width:`calc(100% + ${c.value}px)`}:null);function g(T){if(e.container===!0||document.qScrollPrevented!==!0){const L={position:T.position.top,direction:T.direction,directionChanged:T.directionChanged,inflectionPoint:T.inflectionPoint.top,delta:T.delta.top};s.value=L,e.onScroll!==void 0&&n("scroll",L)}}function P(T){const{height:L,width:O}=T;let F=!1;r.value!==L&&(F=!0,r.value=L,e.onScrollHeight!==void 0&&n("scrollHeight",L),V()),l.value!==O&&(F=!0,l.value=O),F===!0&&e.onResize!==void 0&&n("resize",T)}function A({height:T}){u.value!==T&&(u.value=T,V())}function V(){if(e.container===!0){const T=r.value>u.value?wi():0;c.value!==T&&(c.value=T)}}let S=null;const R={instances:{},view:b(()=>e.view),isContainer:b(()=>e.container),rootRef:i,height:r,containerHeight:u,scrollbarWidth:c,totalWidth:b(()=>l.value+c.value),rows:b(()=>{const T=e.view.toLowerCase().split(" ");return{top:T[0].split(""),middle:T[1].split(""),bottom:T[2].split("")}}),header:Ht({size:0,offset:0,space:!1}),right:Ht({size:300,offset:0,space:!1}),footer:Ht({size:0,offset:0,space:!1}),left:Ht({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(T,L,O){R[T][L]=O}};if(Zi(rr,R),wi()>0){let T=function(){F=null,X.classList.remove("hide-scrollbar")},L=function(){if(F===null){if(X.scrollHeight>o.screen.height)return;X.classList.add("hide-scrollbar")}else clearTimeout(F);F=setTimeout(T,300)},O=function(_){F!==null&&_==="remove"&&(clearTimeout(F),T()),window[`${_}EventListener`]("resize",L)},F=null;const X=document.body;he(()=>e.container!==!0?"add":"remove",O),e.container!==!0&&O("add"),Xi(()=>{O("remove")})}return()=>{const T=Zt(t.default,[C(fm,{onScroll:g}),C(vl,{onResize:P})]),L=C("div",{class:a.value,style:f.value,ref:e.container===!0?void 0:i,tabindex:-1},T);return e.container===!0?C("div",{class:"q-layout-container overflow-hidden",ref:i},[C(vl,{onResize:A}),C("div",{class:"absolute-full",style:d.value},[C("div",{class:"scroll",style:h.value},[L])])]):L}}}),ml={xs:18,sm:24,md:32,lg:38,xl:46},vo={size:String};function mo(e,t=ml){return b(()=>e.size!==void 0?{fontSize:e.size in t?`${t[e.size]}px`:e.size}:null)}const Ta="0 0 24 24",qa=e=>e,Dr=e=>`ionicons ${e}`,jc={"mdi-":e=>`mdi ${e}`,"icon-":qa,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":Dr,"ion-ios":Dr,"ion-logo":Dr,"iconfont ":qa,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`},Hc={o_:"-outlined",r_:"-round",s_:"-sharp"},Uc={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},vm=new RegExp("^("+Object.keys(jc).join("|")+")"),mm=new RegExp("^("+Object.keys(Hc).join("|")+")"),Oa=new RegExp("^("+Object.keys(Uc).join("|")+")"),gm=/^[Mm]\s?[-+]?\.?\d/,pm=/^img:/,bm=/^svguse:/,ym=/^ion-/,wm=/^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,We=ke({name:"QIcon",props:{...vo,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:t}){const{proxy:{$q:n}}=Se(),o=mo(e),i=b(()=>"q-icon"+(e.left===!0?" on-left":"")+(e.right===!0?" on-right":"")+(e.color!==void 0?` text-${e.color}`:"")),r=b(()=>{let l,s=e.name;if(s==="none"||!s)return{none:!0};if(n.iconMapFn!==null){const a=n.iconMapFn(s);if(a!==void 0)if(a.icon!==void 0){if(s=a.icon,s==="none"||!s)return{none:!0}}else return{cls:a.cls,content:a.content!==void 0?a.content:" "}}if(gm.test(s)===!0){const[a,f=Ta]=s.split("|");return{svg:!0,viewBox:f,nodes:a.split("&&").map(d=>{const[h,g,P]=d.split("@@");return C("path",{style:g,d:h,transform:P})})}}if(pm.test(s)===!0)return{img:!0,src:s.substring(4)};if(bm.test(s)===!0){const[a,f=Ta]=s.split("|");return{svguse:!0,src:a.substring(7),viewBox:f}}let u=" ";const c=s.match(vm);if(c!==null)l=jc[c[1]](s);else if(wm.test(s)===!0)l=s;else if(ym.test(s)===!0)l=`ionicons ion-${n.platform.is.ios===!0?"ios":"md"}${s.substring(3)}`;else if(Oa.test(s)===!0){l="notranslate material-symbols";const a=s.match(Oa);a!==null&&(s=s.substring(6),l+=Uc[a[1]]),u=s}else{l="notranslate material-icons";const a=s.match(mm);a!==null&&(s=s.substring(2),l+=Hc[a[1]]),u=s}return{cls:l,content:u}});return()=>{const l={class:i.value,style:o.value,"aria-hidden":"true",role:"presentation"};return r.value.none===!0?C(e.tag,l,ze(t.default)):r.value.img===!0?C(e.tag,l,Zt(t.default,[C("img",{src:r.value.src})])):r.value.svg===!0?C(e.tag,l,Zt(t.default,[C("svg",{viewBox:r.value.viewBox||"0 0 24 24"},r.value.nodes)])):r.value.svguse===!0?C(e.tag,l,Zt(t.default,[C("svg",{viewBox:r.value.viewBox},[C("use",{"xlink:href":r.value.src})])])):(r.value.cls!==void 0&&(l.class+=" "+r.value.cls),C(e.tag,l,Zt(t.default,[r.value.content])))}}}),Pi=ke({name:"QAvatar",props:{...vo,fontSize:String,color:String,textColor:String,icon:String,square:Boolean,rounded:Boolean},setup(e,{slots:t}){const n=mo(e),o=b(()=>"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":"")),i=b(()=>e.fontSize?{fontSize:e.fontSize}:null);return()=>{const r=e.icon!==void 0?[C(We,{name:e.icon})]:void 0;return C("div",{class:o.value,style:n.value},[C("div",{class:"q-avatar__content row flex-center overflow-hidden",style:i.value},Dc(t.default,r))])}}}),Dt=ke({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(e,{slots:t}){const n=b(()=>`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()=>C("div",{class:n.value},ze(t.default))}});function $a(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function Pa(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function _m(e,t){for(const n in t){const o=t[n],i=e[n];if(typeof o=="string"){if(o!==i)return!1}else if(Array.isArray(i)===!1||i.length!==o.length||o.some((r,l)=>r!==i[l]))return!1}return!0}function Ma(e,t){return Array.isArray(t)===!0?e.length===t.length&&e.every((n,o)=>n===t[o]):e.length===1&&e[0]===t}function Sm(e,t){return Array.isArray(e)===!0?Ma(e,t):Array.isArray(t)===!0?Ma(t,e):e===t}function xm(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(Sm(e[n],t[n])===!1)return!1;return!0}const Kc={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},Cm={...Kc,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function Wc({fallbackTag:e,useDisableForRouterLinkProps:t=!0}={}){const n=Se(),{props:o,proxy:i,emit:r}=n,l=Ic(n),s=b(()=>o.disable!==!0&&o.href!==void 0),u=b(t===!0?()=>l===!0&&o.disable!==!0&&s.value!==!0&&o.to!==void 0&&o.to!==null&&o.to!=="":()=>l===!0&&s.value!==!0&&o.to!==void 0&&o.to!==null&&o.to!==""),c=b(()=>u.value===!0?S(o.to):null),a=b(()=>c.value!==null),f=b(()=>s.value===!0||a.value===!0),d=b(()=>o.type==="a"||f.value===!0?"a":o.tag||e||"div"),h=b(()=>s.value===!0?{href:o.href,target:o.target}:a.value===!0?{href:c.value.href,target:o.target}:{}),g=b(()=>{if(a.value===!1)return-1;const{matched:L}=c.value,{length:O}=L,F=L[O-1];if(F===void 0)return-1;const X=i.$route.matched;if(X.length===0)return-1;const _=X.findIndex(Pa.bind(null,F));if(_!==-1)return _;const E=$a(L[O-2]);return O>1&&$a(F)===E&&X[X.length-1].path!==E?X.findIndex(Pa.bind(null,L[O-2])):_}),P=b(()=>a.value===!0&&g.value!==-1&&_m(i.$route.params,c.value.params)),A=b(()=>P.value===!0&&g.value===i.$route.matched.length-1&&xm(i.$route.params,c.value.params)),V=b(()=>a.value===!0?A.value===!0?` ${o.exactActiveClass} ${o.activeClass}`:o.exact===!0?"":P.value===!0?` ${o.activeClass}`:"":"");function S(L){try{return i.$router.resolve(L)}catch{}return null}function R(L,{returnRouterError:O,to:F=o.to,replace:X=o.replace}={}){if(o.disable===!0)return L.preventDefault(),Promise.resolve(!1);if(L.metaKey||L.altKey||L.ctrlKey||L.shiftKey||L.button!==void 0&&L.button!==0||o.target==="_blank")return Promise.resolve(!1);L.preventDefault();const _=i.$router[X===!0?"replace":"push"](F);return O===!0?_:_.then(()=>{}).catch(()=>{})}function T(L){if(a.value===!0){const O=F=>R(L,F);r("click",L,O),L.defaultPrevented!==!0&&O()}else r("click",L)}return{hasRouterLink:a,hasHrefLink:s,hasLink:f,linkTag:d,resolvedLink:c,linkIsActive:P,linkIsExactActive:A,linkClass:V,linkAttrs:h,getLink:S,navigateToRouterLink:R,navigateOnClick:T}}const zt=ke({name:"QItem",props:{...Ot,...Cm,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:o}}=Se(),i=$t(e,o),{hasLink:r,linkAttrs:l,linkClass:s,linkTag:u,navigateOnClick:c}=Wc(),a=se(null),f=se(null),d=b(()=>e.clickable===!0||r.value===!0||e.tag==="label"),h=b(()=>e.disable!==!0&&d.value===!0),g=b(()=>"q-item q-item-type row no-wrap"+(e.dense===!0?" q-item--dense":"")+(i.value===!0?" q-item--dark":"")+(r.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":""):"")),P=b(()=>e.insetLevel===void 0?null:{["padding"+(o.lang.rtl===!0?"Right":"Left")]:16+e.insetLevel*56+"px"});function A(R){h.value===!0&&(f.value!==null&&(R.qKeyEvent!==!0&&document.activeElement===a.value?f.value.focus():document.activeElement===f.value&&a.value.focus()),c(R))}function V(R){if(h.value===!0&&mn(R,[13,32])===!0){Ve(R),R.qKeyEvent=!0;const T=new MouseEvent("click",R);T.qKeyEvent=!0,a.value.dispatchEvent(T)}n("keyup",R)}function S(){const R=Xl(t.default,[]);return h.value===!0&&R.unshift(C("div",{class:"q-focus-helper",tabindex:-1,ref:f})),R}return()=>{const R={ref:a,class:g.value,style:P.value,role:"listitem",onClick:A,onKeyup:V};return h.value===!0?(R.tabindex=e.tabindex||"0",Object.assign(R,l.value)):d.value===!0&&(R["aria-disabled"]="true"),C(u.value,R,S())}}}),km=["ul","ol"],ui=ke({name:"QList",props:{...Ot,bordered:Boolean,dense:Boolean,separator:Boolean,padding:Boolean,tag:{type:String,default:"div"}},setup(e,{slots:t}){const n=Se(),o=$t(e,n.proxy.$q),i=b(()=>km.includes(e.tag)?null:"list"),r=b(()=>"q-list"+(e.bordered===!0?" q-list--bordered":"")+(e.dense===!0?" q-list--dense":"")+(e.separator===!0?" q-list--separator":"")+(o.value===!0?" q-list--dark":"")+(e.padding===!0?" q-list--padding":""));return()=>C(e.tag,{class:r.value,role:i.value},ze(t.default))}}),Qc={target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},Em={...Qc,contextMenu:Boolean};function Gc({showing:e,avoidEmit:t,configureAnchorEl:n}){const{props:o,proxy:i,emit:r}=Se(),l=se(null);let s=null;function u(h){return l.value===null?!1:h===void 0||h.touches===void 0||h.touches.length<=1}const c={};n===void 0&&(Object.assign(c,{hide(h){i.hide(h)},toggle(h){i.toggle(h),h.qAnchorHandled=!0},toggleKey(h){mn(h,13)===!0&&c.toggle(h)},contextClick(h){i.hide(h),ut(h),Fe(()=>{i.show(h),h.qAnchorHandled=!0})},prevent:ut,mobileTouch(h){if(c.mobileCleanup(h),u(h)!==!0)return;i.hide(h),l.value.classList.add("non-selectable");const g=h.target;Xt(c,"anchor",[[g,"touchmove","mobileCleanup","passive"],[g,"touchend","mobileCleanup","passive"],[g,"touchcancel","mobileCleanup","passive"],[l.value,"contextmenu","prevent","notPassive"]]),s=setTimeout(()=>{s=null,i.show(h),h.qAnchorHandled=!0},300)},mobileCleanup(h){l.value.classList.remove("non-selectable"),s!==null&&(clearTimeout(s),s=null),e.value===!0&&h!==void 0&&$i()}}),n=function(h=o.contextMenu){if(o.noParentEvent===!0||l.value===null)return;let g;h===!0?i.$q.platform.is.mobile===!0?g=[[l.value,"touchstart","mobileTouch","passive"]]:g=[[l.value,"mousedown","hide","passive"],[l.value,"contextmenu","contextClick","notPassive"]]:g=[[l.value,"click","toggle","passive"],[l.value,"keyup","toggleKey","passive"]],Xt(c,"anchor",g)});function a(){$n(c,"anchor")}function f(h){for(l.value=h;l.value.classList.contains("q-anchor--skip");)l.value=l.value.parentNode;n()}function d(){if(o.target===!1||o.target===""||i.$el.parentNode===null)l.value=null;else if(o.target===!0)f(i.$el.parentNode);else{let h=o.target;if(typeof o.target=="string")try{h=document.querySelector(o.target)}catch{h=void 0}h!=null?(l.value=h.$el||h,n()):(l.value=null,console.error(`Anchor: target "${o.target}" not found`))}}return he(()=>o.contextMenu,h=>{l.value!==null&&(a(),n(h))}),he(()=>o.target,()=>{l.value!==null&&a(),d()}),he(()=>o.noParentEvent,h=>{l.value!==null&&(h===!0?a():n())}),wt(()=>{d(),t!==!0&&o.modelValue===!0&&l.value===null&&r("update:modelValue",!1)}),Ne(()=>{s!==null&&clearTimeout(s),a()}),{anchorEl:l,canShow:u,anchorEvents:c}}function Yc(e,t){const n=se(null);let o;function i(s,u){const c=`${u!==void 0?"add":"remove"}EventListener`,a=u!==void 0?u:o;s!==window&&s[c]("scroll",a,Ke.passive),window[c]("scroll",a,Ke.passive),o=u}function r(){n.value!==null&&(i(n.value),n.value=null)}const l=he(()=>e.noParentEvent,()=>{n.value!==null&&(r(),t())});return Ne(l),{localScrollTarget:n,unconfigureScrollTarget:r,changeScrollEvent:i}}let Tn=[],Uo=[];function Jc(e){Uo=Uo.filter(t=>t!==e)}function Am(e){Jc(e),Uo.push(e)}function La(e){Jc(e),Uo.length===0&&Tn.length!==0&&(Tn[Tn.length-1](),Tn=[])}function ur(e){Uo.length===0?e():Tn.push(e)}function Tm(e){Tn=Tn.filter(t=>t!==e)}let qm=1,Om=document.body;function Xc(e,t){const n=document.createElement("div");if(n.id=t!==void 0?`q-portal--${t}--${qm++}`:e,Oi.globalNodes!==void 0){const o=Oi.globalNodes.class;o!==void 0&&(n.className=o)}return Om.appendChild(n),n}function $m(e){e.remove()}const ro=[];function Pm(e){return ro.find(t=>t.contentEl!==null&&t.contentEl.contains(e))}function Zc(e,t){do{if(e.$options.name==="QMenu"){if(e.hide(t),e.$props.separateClosePopup===!0)return yi(e)}else if(e.__qPortal===!0){const n=yi(e);return n!==void 0&&n.$options.name==="QPopupProxy"?(e.hide(t),n):e}e=yi(e)}while(e!=null)}function Mm(e,t,n){for(;n!==0&&e!==void 0&&e!==null;){if(e.__qPortal===!0){if(n--,e.$options.name==="QMenu"){e=Zc(e,t);continue}e.hide(t)}e=yi(e)}}const Lm=ke({name:"QPortal",setup(e,{slots:t}){return()=>t.default()}});function Rm(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 Zl(e,t,n,o){const i=se(!1),r=se(!1);let l=null;const s={},u=o==="dialog"&&Rm(e);function c(f){if(f===!0){La(s),r.value=!0;return}r.value=!1,i.value===!1&&(u===!1&&l===null&&(l=Xc(!1,o)),i.value=!0,ro.push(e.proxy),Am(s))}function a(f){if(r.value=!1,f!==!0)return;La(s),i.value=!1;const d=ro.indexOf(e.proxy);d!==-1&&ro.splice(d,1),l!==null&&($m(l),l=null)}return Xi(()=>{a(!0)}),e.proxy.__qPortal=!0,Vn(e.proxy,"contentEl",()=>t.value),{showPortal:c,hidePortal:a,portalIsActive:i,portalIsAccessible:r,renderPortal:()=>u===!0?n():i.value===!0?[C(Ud,{to:l},C(Lm,n))]:void 0}}const Io={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function es(e,t=()=>{},n=()=>{}){return{transitionProps:b(()=>{const o=`q-transition--${e.transitionShow||t()}`,i=`q-transition--${e.transitionHide||n()}`;return{appear:!0,enterFromClass:`${o}-enter-from`,enterActiveClass:`${o}-enter-active`,enterToClass:`${o}-enter-to`,leaveFromClass:`${i}-leave-from`,leaveActiveClass:`${i}-leave-active`,leaveToClass:`${i}-leave-to`}}),transitionStyle:b(()=>`--q-transition-duration: ${e.transitionDuration}ms`)}}function ts(){let e;const t=Se();function n(){e=void 0}return Wo(n),Ne(n),{removeTick:n,registerTick(o){e=o,Fe(()=>{e===o&&(Ro(t)===!1&&e(),e=void 0)})}}}const Pn=[];let fo;function Im(e){fo=e.keyCode===27}function Fm(){fo===!0&&(fo=!1)}function Vm(e){fo===!0&&(fo=!1,mn(e,27)===!0&&Pn[Pn.length-1](e))}function ef(e){window[e]("keydown",Im),window[e]("blur",Fm),window[e]("keyup",Vm),fo=!1}function tf(e){Me.is.desktop===!0&&(Pn.push(e),Pn.length===1&&ef("addEventListener"))}function Mi(e){const t=Pn.indexOf(e);t!==-1&&(Pn.splice(t,1),Pn.length===0&&ef("removeEventListener"))}const Mn=[];function nf(e){Mn[Mn.length-1](e)}function of(e){Me.is.desktop===!0&&(Mn.push(e),Mn.length===1&&document.body.addEventListener("focusin",nf))}function gl(e){const t=Mn.indexOf(e);t!==-1&&(Mn.splice(t,1),Mn.length===0&&document.body.removeEventListener("focusin",nf))}const{notPassiveCapture:Li}=Ke,Ln=[];function Ri(e){const t=e.target;if(t===void 0||t.nodeType===8||t.classList.contains("no-pointer-events")===!0)return;let n=ro.length-1;for(;n>=0;){const o=ro[n].$;if(o.type.name==="QTooltip"){n--;continue}if(o.type.name!=="QDialog")break;if(o.props.seamless!==!0)return;n--}for(let o=Ln.length-1;o>=0;o--){const i=Ln[o];if((i.anchorEl.value===null||i.anchorEl.value.contains(t)===!1)&&(t===document.body||i.innerRef.value!==null&&i.innerRef.value.contains(t)===!1))e.qClickOutside=!0,i.onClickOutside(e);else return}}function rf(e){Ln.push(e),Ln.length===1&&(document.addEventListener("mousedown",Ri,Li),document.addEventListener("touchstart",Ri,Li))}function Ii(e){const t=Ln.findIndex(n=>n===e);t!==-1&&(Ln.splice(t,1),Ln.length===0&&(document.removeEventListener("mousedown",Ri,Li),document.removeEventListener("touchstart",Ri,Li)))}let Ra,Ia;function Fi(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 lf(e){return e?!(e.length!==2||typeof e[0]!="number"||typeof e[1]!="number"):!0}const pl={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(e=>{pl[`${e}#ltr`]=e,pl[`${e}#rtl`]=e});function Vi(e,t){const n=e.split(" ");return{vertical:n[0],horizontal:pl[`${n[1]}#${t===!0?"rtl":"ltr"}`]}}function Bm(e,t){let{top:n,left:o,right:i,bottom:r,width:l,height:s}=e.getBoundingClientRect();return t!==void 0&&(n-=t[1],o-=t[0],r+=t[1],i+=t[0],l+=t[0],s+=t[1]),{top:n,bottom:r,height:s,left:o,right:i,width:l,middle:o+(i-o)/2,center:n+(r-n)/2}}function Nm(e,t,n){let{top:o,left:i}=e.getBoundingClientRect();return o+=t.top,i+=t.left,n!==void 0&&(o+=n[1],i+=n[0]),{top:o,bottom:o+1,height:1,left:i,right:i+1,width:1,middle:i,center:o}}function Dm(e,t){return{top:0,center:t/2,bottom:t,left:0,middle:e/2,right:e}}function Fa(e,t,n,o){return{top:e[n.vertical]-t[o.vertical],left:e[n.horizontal]-t[o.horizontal]}}function ns(e,t=0){if(e.targetEl===null||e.anchorEl===null||t>5)return;if(e.targetEl.offsetHeight===0||e.targetEl.offsetWidth===0){setTimeout(()=>{ns(e,t+1)},10);return}const{targetEl:n,offset:o,anchorEl:i,anchorOrigin:r,selfOrigin:l,absoluteOffset:s,fit:u,cover:c,maxHeight:a,maxWidth:f}=e;if(Me.is.ios===!0&&window.visualViewport!==void 0){const O=document.body.style,{offsetLeft:F,offsetTop:X}=window.visualViewport;F!==Ra&&(O.setProperty("--q-pe-left",F+"px"),Ra=F),X!==Ia&&(O.setProperty("--q-pe-top",X+"px"),Ia=X)}const{scrollLeft:d,scrollTop:h}=n,g=s===void 0?Bm(i,c===!0?[0,0]:o):Nm(i,s,o);Object.assign(n.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:f,maxHeight:a,visibility:"visible"});const{offsetWidth:P,offsetHeight:A}=n,{elWidth:V,elHeight:S}=u===!0||c===!0?{elWidth:Math.max(g.width,P),elHeight:c===!0?Math.max(g.height,A):A}:{elWidth:P,elHeight:A};let R={maxWidth:f,maxHeight:a};(u===!0||c===!0)&&(R.minWidth=g.width+"px",c===!0&&(R.minHeight=g.height+"px")),Object.assign(n.style,R);const T=Dm(V,S);let L=Fa(g,T,r,l);if(s===void 0||o===void 0)zr(L,g,T,r,l);else{const{top:O,left:F}=L;zr(L,g,T,r,l);let X=!1;if(L.top!==O){X=!0;const _=2*o[1];g.center=g.top-=_,g.bottom-=_+2}if(L.left!==F){X=!0;const _=2*o[0];g.middle=g.left-=_,g.right-=_+2}X===!0&&(L=Fa(g,T,r,l),zr(L,g,T,r,l))}R={top:L.top+"px",left:L.left+"px"},L.maxHeight!==void 0&&(R.maxHeight=L.maxHeight+"px",g.height>L.maxHeight&&(R.minHeight=R.maxHeight)),L.maxWidth!==void 0&&(R.maxWidth=L.maxWidth+"px",g.width>L.maxWidth&&(R.minWidth=R.maxWidth)),Object.assign(n.style,R),n.scrollTop!==h&&(n.scrollTop=h),n.scrollLeft!==d&&(n.scrollLeft=d)}function zr(e,t,n,o,i){const r=n.bottom,l=n.right,s=wi(),u=window.innerHeight-s,c=document.body.clientWidth;if(e.top<0||e.top+r>u)if(i.vertical==="center")e.top=t[o.vertical]>u/2?Math.max(0,u-r):0,e.maxHeight=Math.min(r,u);else if(t[o.vertical]>u/2){const a=Math.min(u,o.vertical==="center"?t.center:o.vertical===i.vertical?t.bottom:t.top);e.maxHeight=Math.min(r,a),e.top=Math.max(0,a-r)}else e.top=Math.max(0,o.vertical==="center"?t.center:o.vertical===i.vertical?t.top:t.bottom),e.maxHeight=Math.min(r,u-e.top);if(e.left<0||e.left+l>c)if(e.maxWidth=Math.min(l,c),i.horizontal==="middle")e.left=t[o.horizontal]>c/2?Math.max(0,c-l):0;else if(t[o.horizontal]>c/2){const a=Math.min(c,o.horizontal==="middle"?t.middle:o.horizontal===i.horizontal?t.right:t.left);e.maxWidth=Math.min(l,a),e.left=Math.max(0,a-e.maxWidth)}else e.left=Math.max(0,o.horizontal==="middle"?t.middle:o.horizontal===i.horizontal?t.left:t.right),e.maxWidth=Math.min(l,c-e.left)}const To=ke({name:"QMenu",inheritAttrs:!1,props:{...Em,...lr,...Ot,...Io,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:Fi},self:{type:String,validator:Fi},offset:{type:Array,validator:lf},scrollTarget:Gl,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...sr,"click","escapeKey"],setup(e,{slots:t,emit:n,attrs:o}){let i=null,r,l,s;const u=Se(),{proxy:c}=u,{$q:a}=c,f=se(null),d=se(!1),h=b(()=>e.persistent!==!0&&e.noRouteDismiss!==!0),g=$t(e,a),{registerTick:P,removeTick:A}=ts(),{registerTimeout:V}=co(),{transitionProps:S,transitionStyle:R}=es(e),{localScrollTarget:T,changeScrollEvent:L,unconfigureScrollTarget:O}=Yc(e,te),{anchorEl:F,canShow:X}=Gc({showing:d}),{hide:_}=ar({showing:d,canShow:X,handleShow:me,handleHide:$,hideOnRouteChange:h,processOnMount:!0}),{showPortal:E,hidePortal:N,renderPortal:p}=Zl(u,f,_e,"menu"),z={anchorEl:F,innerRef:f,onClickOutside(ne){if(e.persistent!==!0&&d.value===!0)return _(ne),(ne.type==="touchstart"||ne.target.classList.contains("q-dialog__backdrop"))&&Ve(ne),!0}},I=b(()=>Vi(e.anchor||(e.cover===!0?"center middle":"bottom start"),a.lang.rtl)),le=b(()=>e.cover===!0?I.value:Vi(e.self||"top start",a.lang.rtl)),ee=b(()=>(e.square===!0?" q-menu--square":"")+(g.value===!0?" q-menu--dark q-dark":"")),Q=b(()=>e.autoClose===!0?{onClick:ge}:{}),B=b(()=>d.value===!0&&e.persistent!==!0);he(B,ne=>{ne===!0?(tf(H),rf(z)):(Mi(H),Ii(z))});function ie(){ur(()=>{let ne=f.value;ne&&ne.contains(document.activeElement)!==!0&&(ne=ne.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||ne.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||ne.querySelector("[autofocus], [data-autofocus]")||ne,ne.focus({preventScroll:!0}))})}function me(ne){if(i=e.noRefocus===!1?document.activeElement:null,of(ve),E(),te(),r=void 0,ne!==void 0&&(e.touchPosition||e.contextMenu)){const Ae=jo(ne);if(Ae.left!==void 0){const{top:Je,left:dt}=F.value.getBoundingClientRect();r={left:Ae.left-dt,top:Ae.top-Je}}}l===void 0&&(l=he(()=>a.screen.width+"|"+a.screen.height+"|"+e.self+"|"+e.anchor+"|"+a.lang.rtl,ae)),e.noFocus!==!0&&document.activeElement.blur(),P(()=>{ae(),e.noFocus!==!0&&ie()}),V(()=>{a.platform.is.ios===!0&&(s=e.autoClose,f.value.click()),ae(),E(!0),n("show",ne)},e.transitionDuration)}function $(ne){A(),N(),k(!0),i!==null&&(ne===void 0||ne.qClickOutside!==!0)&&(((ne&&ne.type.indexOf("key")===0?i.closest('[tabindex]:not([tabindex^="-"])'):void 0)||i).focus(),i=null),V(()=>{N(!0),n("hide",ne)},e.transitionDuration)}function k(ne){r=void 0,l!==void 0&&(l(),l=void 0),(ne===!0||d.value===!0)&&(gl(ve),O(),Ii(z),Mi(H)),ne!==!0&&(i=null)}function te(){(F.value!==null||e.scrollTarget!==void 0)&&(T.value=Yl(F.value,e.scrollTarget),L(T.value,ae))}function ge(ne){s!==!0?(Zc(c,ne),n("click",ne)):s=!1}function ve(ne){B.value===!0&&e.noFocus!==!0&&Fc(f.value,ne.target)!==!0&&ie()}function H(ne){n("escapeKey"),_(ne)}function ae(){ns({targetEl:f.value,offset:e.offset,anchorEl:F.value,anchorOrigin:I.value,selfOrigin:le.value,absoluteOffset:r,fit:e.fit,cover:e.cover,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function _e(){return C(In,S.value,()=>d.value===!0?C("div",{role:"menu",...o,ref:f,tabindex:-1,class:["q-menu q-position-engine scroll"+ee.value,o.class],style:[o.style,R.value],...Q.value},ze(t.default)):null)}return Ne(k),Object.assign(c,{focus:ie,updatePosition:ae}),p}}),os=ke({name:"QSpace",setup(){const e=C("div",{class:"q-space"});return()=>e}}),zm={true:"inset",item:"item-inset","item-thumbnail":"item-thumbnail-inset"},jr={xs:2,sm:4,md:8,lg:16,xl:24},jm=ke({name:"QSeparator",props:{...Ot,spaced:[Boolean,String],inset:[Boolean,String],vertical:Boolean,color:String,size:String},setup(e){const t=Se(),n=$t(e,t.proxy.$q),o=b(()=>e.vertical===!0?"vertical":"horizontal"),i=b(()=>` q-separator--${o.value}`),r=b(()=>e.inset!==!1?`${i.value}-${zm[e.inset]}`:""),l=b(()=>`q-separator${i.value}${r.value}`+(e.color!==void 0?` bg-${e.color}`:"")+(n.value===!0?" q-separator--dark":"")),s=b(()=>{const u={};if(e.size!==void 0&&(u[e.vertical===!0?"width":"height"]=e.size),e.spaced!==!1){const c=e.spaced===!0?`${jr.md}px`:e.spaced in jr?`${jr[e.spaced]}px`:e.spaced,a=e.vertical===!0?["Left","Right"]:["Top","Bottom"];u[`margin${a[0]}`]=u[`margin${a[1]}`]=c}return u});return()=>C("hr",{class:l.value,style:s.value,"aria-orientation":o.value})}}),Hm=ke({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:o}}=Se(),i=Kt(rr,qt);if(i===qt)return console.error("QHeader needs to be child of QLayout"),qt;const r=se(parseInt(e.heightHint,10)),l=se(!0),s=b(()=>e.reveal===!0||i.view.value.indexOf("H")!==-1||o.platform.is.ios&&i.isContainer.value===!0),u=b(()=>{if(e.modelValue!==!0)return 0;if(s.value===!0)return l.value===!0?r.value:0;const S=r.value-i.scroll.value.position;return S>0?S:0}),c=b(()=>e.modelValue!==!0||s.value===!0&&l.value!==!0),a=b(()=>e.modelValue===!0&&c.value===!0&&e.reveal===!0),f=b(()=>"q-header q-layout__section--marginal "+(s.value===!0?"fixed":"absolute")+"-top"+(e.bordered===!0?" q-header--bordered":"")+(c.value===!0?" q-header--hidden":"")+(e.modelValue!==!0?" q-layout--prevent-focus":"")),d=b(()=>{const S=i.rows.value.top,R={};return S[0]==="l"&&i.left.space===!0&&(R[o.lang.rtl===!0?"right":"left"]=`${i.left.size}px`),S[2]==="r"&&i.right.space===!0&&(R[o.lang.rtl===!0?"left":"right"]=`${i.right.size}px`),R});function h(S,R){i.update("header",S,R)}function g(S,R){S.value!==R&&(S.value=R)}function P({height:S}){g(r,S),h("size",S)}function A(S){a.value===!0&&g(l,!0),n("focusin",S)}he(()=>e.modelValue,S=>{h("space",S),g(l,!0),i.animate()}),he(u,S=>{h("offset",S)}),he(()=>e.reveal,S=>{S===!1&&g(l,e.modelValue)}),he(l,S=>{i.animate(),n("reveal",S)}),he(i.scroll,S=>{e.reveal===!0&&g(l,S.direction==="up"||S.position<=e.revealOffset||S.position-S.inflectionPoint<100)});const V={};return i.instances.header=V,e.modelValue===!0&&h("size",r.value),h("space",e.modelValue),h("offset",u.value),Ne(()=>{i.instances.header===V&&(i.instances.header=void 0,h("size",0),h("offset",0),h("space",!1))}),()=>{const S=Xl(t.default,[]);return e.elevated===!0&&S.push(C("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),S.push(C(vl,{debounce:0,onResize:P})),C("header",{class:f.value,style:d.value,onFocusin:A},S)}}}),tn=ke({name:"QCardSection",props:{tag:{type:String,default:"div"},horizontal:Boolean},setup(e,{slots:t}){const n=b(()=>`q-card__section q-card__section--${e.horizontal===!0?"horiz row no-wrap":"vert"}`);return()=>C(e.tag,{class:n.value},ze(t.default))}}),Um={size:{type:[String,Number],default:"1em"},color:String};function Km(e){return{cSize:b(()=>e.size in ml?`${ml[e.size]}px`:e.size),classes:b(()=>"q-spinner"+(e.color?` text-${e.color}`:""))}}const cr=ke({name:"QSpinner",props:{...Um,thickness:{type:Number,default:5}},setup(e){const{cSize:t,classes:n}=Km(e);return()=>C("svg",{class:n.value+" q-spinner-mat",width:t.value,height:t.value,viewBox:"25 25 50 50"},[C("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":e.thickness,"stroke-miterlimit":"10"})])}});let Hr,ci=0;const Ze=new Array(256);for(let e=0;e<256;e++)Ze[e]=(e+256).toString(16).substring(1);const Wm=(()=>{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 o=t;o>0;o--)n.push(Math.floor(Math.random()*256));return n}})(),Va=4096;function bl(){(Hr===void 0||ci+16>Va)&&(ci=0,Hr=Wm(Va));const e=Array.prototype.slice.call(Hr,ci,ci+=16);return e[6]=e[6]&15|64,e[8]=e[8]&63|128,Ze[e[0]]+Ze[e[1]]+Ze[e[2]]+Ze[e[3]]+"-"+Ze[e[4]]+Ze[e[5]]+"-"+Ze[e[6]]+Ze[e[7]]+"-"+Ze[e[8]]+Ze[e[9]]+"-"+Ze[e[10]]+Ze[e[11]]+Ze[e[12]]+Ze[e[13]]+Ze[e[14]]+Ze[e[15]]}function Qm(e){return e==null?null:e}function Ba(e,t){return e==null?t===!0?`f_${bl()}`:null:e}function Gm({getValue:e,required:t=!0}={}){if(Vt.value===!0){const n=se(e!==void 0?Qm(e()):null);return t===!0&&n.value===null&&wt(()=>{n.value=`f_${bl()}`}),e!==void 0&&he(e,o=>{n.value=Ba(o,t)}),n}return e!==void 0?b(()=>Ba(e(),t)):se(`f_${bl()}`)}const Na=/^on[A-Z]/;function Ym(){const{attrs:e,vnode:t}=Se(),n={listeners:se({}),attributes:se({})};function o(){const i={},r={};for(const l in e)l!=="class"&&l!=="style"&&Na.test(l)===!1&&(i[l]=e[l]);for(const l in t.props)Na.test(l)===!0&&(r[l]=t.props[l]);n.attributes.value=i,n.listeners.value=r}return Bl(o),o(),n}function Jm({validate:e,resetValidation:t,requiresQForm:n}){const o=Kt(Hv,!1);if(o!==!1){const{props:i,proxy:r}=Se();Object.assign(r,{validate:e,resetValidation:t}),he(()=>i.disable,l=>{l===!0?(typeof t=="function"&&t(),o.unbindComponent(r)):o.bindComponent(r)}),wt(()=>{i.disable!==!0&&o.bindComponent(r)}),Ne(()=>{i.disable!==!0&&o.unbindComponent(r)})}else n===!0&&console.error("Parent QForm not found on useFormChild()!")}const Da=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,za=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,ja=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,fi=/^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])\)$/,di=/^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)\)$/,Ur={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=>Da.test(e),hexaColor:e=>za.test(e),hexOrHexaColor:e=>ja.test(e),rgbColor:e=>fi.test(e),rgbaColor:e=>di.test(e),rgbOrRgbaColor:e=>fi.test(e)||di.test(e),hexOrRgbColor:e=>Da.test(e)||fi.test(e),hexaOrRgbaColor:e=>za.test(e)||di.test(e),anyColor:e=>ja.test(e)||fi.test(e)||di.test(e)},Xm=[!0,!1,"ondemand"],Zm={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:e=>Xm.includes(e)}};function eg(e,t){const{props:n,proxy:o}=Se(),i=se(!1),r=se(null),l=se(!1);Jm({validate:P,resetValidation:g});let s=0,u;const c=b(()=>n.rules!==void 0&&n.rules!==null&&n.rules.length!==0),a=b(()=>n.disable!==!0&&c.value===!0&&t.value===!1),f=b(()=>n.error===!0||i.value===!0),d=b(()=>typeof n.errorMessage=="string"&&n.errorMessage.length!==0?n.errorMessage:r.value);he(()=>n.modelValue,()=>{l.value=!0,a.value===!0&&n.lazyRules===!1&&A()});function h(){n.lazyRules!=="ondemand"&&a.value===!0&&l.value===!0&&A()}he(()=>n.reactiveRules,V=>{V===!0?u===void 0&&(u=he(()=>n.rules,h,{immediate:!0,deep:!0})):u!==void 0&&(u(),u=void 0)},{immediate:!0}),he(()=>n.lazyRules,h),he(e,V=>{V===!0?l.value=!0:a.value===!0&&n.lazyRules!=="ondemand"&&A()});function g(){s++,t.value=!1,l.value=!1,i.value=!1,r.value=null,A.cancel()}function P(V=n.modelValue){if(n.disable===!0||c.value===!1)return!0;const S=++s,R=t.value!==!0?()=>{l.value=!0}:()=>{},T=(O,F)=>{O===!0&&R(),i.value=O,r.value=F||null,t.value=!1},L=[];for(let O=0;O{if(O===void 0||Array.isArray(O)===!1||O.length===0)return S===s&&T(!1),!0;const F=O.find(X=>X===!1||typeof X=="string");return S===s&&T(F!==void 0,F),F===void 0},O=>(S===s&&(console.error(O),T(!0)),!1)))}const A=Wl(P,0);return Ne(()=>{u!==void 0&&u(),A.cancel()}),Object.assign(o,{resetValidation:g,validate:P}),Vn(o,"hasError",()=>f.value),{isDirtyModel:l,hasRules:c,hasError:f,errorMessage:d,validate:P,resetValidation:g}}function Fn(e){return e!=null&&(""+e).length!==0}const sf={...Ot,...Zm,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},fr={...sf,maxlength:[Number,String]},dr=["update:modelValue","clear","focus","blur"];function hr({requiredForAttr:e=!0,tagProp:t,changeEvent:n=!1}={}){const{props:o,proxy:i}=Se(),r=$t(o,i.$q),l=Gm({required:e,getValue:()=>o.for});return{requiredForAttr:e,changeEvent:n,tag:t===!0?b(()=>o.tag):{value:"label"},isDark:r,editable:b(()=>o.disable!==!0&&o.readonly!==!0),innerLoading:se(!1),focused:se(!1),hasPopupOpen:!1,splitAttrs:Ym(),targetUid:l,rootRef:se(null),targetRef:se(null),controlRef:se(null)}}function vr(e){const{props:t,emit:n,slots:o,attrs:i,proxy:r}=Se(),{$q:l}=r;let s=null;e.hasValue===void 0&&(e.hasValue=b(()=>Fn(t.modelValue))),e.emitValue===void 0&&(e.emitValue=B=>{n("update:modelValue",B)}),e.controlEvents===void 0&&(e.controlEvents={onFocusin:_,onFocusout:E}),Object.assign(e,{clearValue:N,onControlFocusin:_,onControlFocusout:E,focus:F}),e.computedCounter===void 0&&(e.computedCounter=b(()=>{if(t.counter!==!1){const B=typeof t.modelValue=="string"||typeof t.modelValue=="number"?(""+t.modelValue).length:Array.isArray(t.modelValue)===!0?t.modelValue.length:0,ie=t.maxlength!==void 0?t.maxlength:t.maxValues;return B+(ie!==void 0?" / "+ie:"")}}));const{isDirtyModel:u,hasRules:c,hasError:a,errorMessage:f,resetValidation:d}=eg(e.focused,e.innerLoading),h=e.floatingLabel!==void 0?b(()=>t.stackLabel===!0||e.focused.value===!0||e.floatingLabel.value===!0):b(()=>t.stackLabel===!0||e.focused.value===!0||e.hasValue.value===!0),g=b(()=>t.bottomSlots===!0||t.hint!==void 0||c.value===!0||t.counter===!0||t.error!==null),P=b(()=>t.filled===!0?"filled":t.outlined===!0?"outlined":t.borderless===!0?"borderless":t.standout?"standout":"standard"),A=b(()=>`q-field row no-wrap items-start q-field--${P.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":"")+(a.value===!0?" q-field--error":"")+(a.value===!0||e.focused.value===!0?" q-field--highlighted":"")+(t.hideBottomSpace!==!0&&g.value===!0?" q-field--with-bottom":"")+(t.disable===!0?" q-field--disabled":t.readonly===!0?" q-field--readonly":"")),V=b(()=>"q-field__control relative-position row no-wrap"+(t.bgColor!==void 0?` bg-${t.bgColor}`:"")+(a.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=b(()=>t.labelSlot===!0||t.label!==void 0),R=b(()=>"q-field__label no-pointer-events absolute ellipsis"+(t.labelColor!==void 0&&a.value!==!0?` text-${t.labelColor}`:"")),T=b(()=>({id:e.targetUid.value,editable:e.editable.value,focused:e.focused.value,floatingLabel:h.value,modelValue:t.modelValue,emitValue:e.emitValue})),L=b(()=>{const B={};return e.targetUid.value&&(B.for=e.targetUid.value),t.disable===!0&&(B["aria-disabled"]="true"),B});function O(){const B=document.activeElement;let ie=e.targetRef!==void 0&&e.targetRef.value;ie&&(B===null||B.id!==e.targetUid.value)&&(ie.hasAttribute("tabindex")===!0||(ie=ie.querySelector("[tabindex]")),ie&&ie!==B&&ie.focus({preventScroll:!0}))}function F(){ur(O)}function X(){Tm(O);const B=document.activeElement;B!==null&&e.rootRef.value.contains(B)&&B.blur()}function _(B){s!==null&&(clearTimeout(s),s=null),e.editable.value===!0&&e.focused.value===!1&&(e.focused.value=!0,n("focus",B))}function E(B,ie){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",B)),ie!==void 0&&ie())})}function N(B){Ve(B),l.platform.is.mobile!==!0?(e.targetRef!==void 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),Fe(()=>{const ie=u.value;d(),u.value=ie})}function p(B){[13,32].includes(B.keyCode)&&N(B)}function z(){const B=[];return o.prepend!==void 0&&B.push(C("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:ut},o.prepend())),B.push(C("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},I())),a.value===!0&&t.noErrorIcon===!1&&B.push(ee("error",[C(We,{name:l.iconSet.field.error,color:"negative"})])),t.loading===!0||e.innerLoading.value===!0?B.push(ee("inner-loading-append",o.loading!==void 0?o.loading():[C(cr,{color:t.color})])):t.clearable===!0&&e.hasValue.value===!0&&e.editable.value===!0&&B.push(ee("inner-clearable-append",[C(We,{class:"q-field__focusable-action",name:t.clearIcon||l.iconSet.field.clear,tabindex:0,role:"button","aria-hidden":"false","aria-label":l.lang.label.clear,onKeyup:p,onClick:N})])),o.append!==void 0&&B.push(C("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:ut},o.append())),e.getInnerAppend!==void 0&&B.push(ee("inner-append",e.getInnerAppend())),e.getControlChild!==void 0&&B.push(e.getControlChild()),B}function I(){const B=[];return t.prefix!==void 0&&t.prefix!==null&&B.push(C("div",{class:"q-field__prefix no-pointer-events row items-center"},t.prefix)),e.getShadowControl!==void 0&&e.hasShadow.value===!0&&B.push(e.getShadowControl()),e.getControl!==void 0?B.push(e.getControl()):o.rawControl!==void 0?B.push(o.rawControl()):o.control!==void 0&&B.push(C("div",{ref:e.targetRef,class:"q-field__native row",tabindex:-1,...e.splitAttrs.attributes.value,"data-autofocus":t.autofocus===!0||void 0},o.control(T.value))),S.value===!0&&B.push(C("div",{class:R.value},ze(o.label,t.label))),t.suffix!==void 0&&t.suffix!==null&&B.push(C("div",{class:"q-field__suffix no-pointer-events row items-center"},t.suffix)),B.concat(ze(o.default))}function le(){let B,ie;a.value===!0?f.value!==null?(B=[C("div",{role:"alert"},f.value)],ie=`q--slot-error-${f.value}`):(B=ze(o.error),ie="q--slot-error"):(t.hideHint!==!0||e.focused.value===!0)&&(t.hint!==void 0?(B=[C("div",t.hint)],ie=`q--slot-hint-${t.hint}`):(B=ze(o.hint),ie="q--slot-hint"));const me=t.counter===!0||o.counter!==void 0;if(t.hideBottomSpace===!0&&me===!1&&B===void 0)return;const $=C("div",{key:ie,class:"q-field__messages col"},B);return C("div",{class:"q-field__bottom row items-start q-field__bottom--"+(t.hideBottomSpace!==!0?"animated":"stale"),onClick:ut},[t.hideBottomSpace===!0?$:C(In,{name:"q-transition--field-message"},()=>$),me===!0?C("div",{class:"q-field__counter"},o.counter!==void 0?o.counter():e.computedCounter.value):null])}function ee(B,ie){return ie===null?null:C("div",{key:B,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},ie)}let Q=!1;return Wo(()=>{Q=!0}),Vl(()=>{Q===!0&&t.autofocus===!0&&r.focus()}),t.autofocus===!0&&wt(()=>{r.focus()}),Ne(()=>{s!==null&&clearTimeout(s)}),Object.assign(r,{focus:F,blur:X}),function(){const ie=e.getControl===void 0&&o.control===void 0?{...e.splitAttrs.attributes.value,"data-autofocus":t.autofocus===!0||void 0,...L.value}:L.value;return C(e.tag.value,{ref:e.rootRef,class:[A.value,i.class],style:i.style,...ie},[o.before!==void 0?C("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:ut},o.before()):null,C("div",{class:"q-field__inner relative-position col self-stretch"},[C("div",{ref:e.controlRef,class:V.value,tabindex:-1,...e.controlEvents},z()),g.value===!0?le():null]),o.after!==void 0?C("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:ut},o.after()):null])}}const Ha={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},Bi={"#":{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()}},af=Object.keys(Bi);af.forEach(e=>{Bi[e].regex=new RegExp(Bi[e].pattern)});const tg=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+af.join("")+"])|(.)","g"),Ua=/[.*+?^${}()|[\]\\]/g,Ue="",ng={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean};function og(e,t,n,o){let i,r,l,s,u,c;const a=se(null),f=se(h());function d(){return e.autogrow===!0||["textarea","text","search","url","tel","password"].includes(e.type)}he(()=>e.type+e.autogrow,P),he(()=>e.mask,_=>{if(_!==void 0)A(f.value,!0);else{const E=F(f.value);P(),e.modelValue!==E&&t("update:modelValue",E)}}),he(()=>e.fillMask+e.reverseFillMask,()=>{a.value===!0&&A(f.value,!0)}),he(()=>e.unmaskedValue,()=>{a.value===!0&&A(f.value)});function h(){if(P(),a.value===!0){const _=L(F(e.modelValue));return e.fillMask!==!1?X(_):_}return e.modelValue}function g(_){if(_0;z--)E+=Ue;N=N.slice(0,p)+E+N.slice(p)}return N}function P(){if(a.value=e.mask!==void 0&&e.mask.length!==0&&d(),a.value===!1){s=void 0,i="",r="";return}const _=Ha[e.mask]===void 0?e.mask:Ha[e.mask],E=typeof e.fillMask=="string"&&e.fillMask.length!==0?e.fillMask.slice(0,1):"_",N=E.replace(Ua,"\\$&"),p=[],z=[],I=[];let le=e.reverseFillMask===!0,ee="",Q="";_.replace(tg,($,k,te,ge,ve)=>{if(ge!==void 0){const H=Bi[ge];I.push(H),Q=H.negate,le===!0&&(z.push("(?:"+Q+"+)?("+H.pattern+"+)?(?:"+Q+"+)?("+H.pattern+"+)?"),le=!1),z.push("(?:"+Q+"+)?("+H.pattern+")?")}else if(te!==void 0)ee="\\"+(te==="\\"?"":te),I.push(te),p.push("([^"+ee+"]+)?"+ee+"?");else{const H=k!==void 0?k:ve;ee=H==="\\"?"\\\\\\\\":H.replace(Ua,"\\\\$&"),I.push(H),p.push("([^"+ee+"]+)?"+ee+"?")}});const B=new RegExp("^"+p.join("")+"("+(ee===""?".":"[^"+ee+"]")+"+)?"+(ee===""?"":"["+ee+"]*")+"$"),ie=z.length-1,me=z.map(($,k)=>k===0&&e.reverseFillMask===!0?new RegExp("^"+N+"*"+$):k===ie?new RegExp("^"+$+"("+(Q===""?".":Q)+"+)?"+(e.reverseFillMask===!0?"$":N+"*")):new RegExp("^"+$));l=I,s=$=>{const k=B.exec(e.reverseFillMask===!0?$:$.slice(0,I.length+1));k!==null&&($=k.slice(1).join(""));const te=[],ge=me.length;for(let ve=0,H=$;vetypeof $=="string"?$:Ue).join(""),r=i.split(Ue).join(E)}function A(_,E,N){const p=o.value,z=p.selectionEnd,I=p.value.length-z,le=F(_);E===!0&&P();const ee=L(le),Q=e.fillMask!==!1?X(ee):ee,B=f.value!==Q;p.value!==Q&&(p.value=Q),B===!0&&(f.value=Q),document.activeElement===p&&Fe(()=>{if(Q===r){const me=e.reverseFillMask===!0?r.length:0;p.setSelectionRange(me,me,"forward");return}if(N==="insertFromPaste"&&e.reverseFillMask!==!0){const me=p.selectionEnd;let $=z-1;for(let k=u;k<=$&&kee.length?1:0:Math.max(0,Q.length-(Q===r?0:Math.min(ee.length,I)+1))+1:z;p.setSelectionRange(me,me,"forward");return}if(e.reverseFillMask===!0)if(B===!0){const me=Math.max(0,Q.length-(Q===r?0:Math.min(ee.length,I+1)));me===1&&z===1?p.setSelectionRange(me,me,"forward"):S.rightReverse(p,me)}else{const me=Q.length-I;p.setSelectionRange(me,me,"backward")}else if(B===!0){const me=Math.max(0,i.indexOf(Ue),Math.min(ee.length,z)-1);S.right(p,me)}else{const me=z-1;S.right(p,me)}});const ie=e.unmaskedValue===!0?F(Q):Q;String(e.modelValue)!==ie&&(e.modelValue!==null||ie!=="")&&n(ie,!0)}function V(_,E,N){const p=L(F(_.value));E=Math.max(0,i.indexOf(Ue),Math.min(p.length,E)),u=E,_.setSelectionRange(E,N,"forward")}const S={left(_,E){const N=i.slice(E-1).indexOf(Ue)===-1;let p=Math.max(0,E-1);for(;p>=0;p--)if(i[p]===Ue){E=p,N===!0&&E++;break}if(p<0&&i[E]!==void 0&&i[E]!==Ue)return S.right(_,0);E>=0&&_.setSelectionRange(E,E,"backward")},right(_,E){const N=_.value.length;let p=Math.min(N,E+1);for(;p<=N;p++)if(i[p]===Ue){E=p;break}else i[p-1]===Ue&&(E=p);if(p>N&&i[E-1]!==void 0&&i[E-1]!==Ue)return S.left(_,N);_.setSelectionRange(E,E,"forward")},leftReverse(_,E){const N=g(_.value.length);let p=Math.max(0,E-1);for(;p>=0;p--)if(N[p-1]===Ue){E=p;break}else if(N[p]===Ue&&(E=p,p===0))break;if(p<0&&N[E]!==void 0&&N[E]!==Ue)return S.rightReverse(_,0);E>=0&&_.setSelectionRange(E,E,"backward")},rightReverse(_,E){const N=_.value.length,p=g(N),z=p.slice(0,E+1).indexOf(Ue)===-1;let I=Math.min(N,E+1);for(;I<=N;I++)if(p[I-1]===Ue){E=I,E>0&&z===!0&&E--;break}if(I>N&&p[E-1]!==void 0&&p[E-1]!==Ue)return S.leftReverse(_,N);_.setSelectionRange(E,E,"forward")}};function R(_){t("click",_),c=void 0}function T(_){if(t("keydown",_),Ql(_)===!0||_.altKey===!0)return;const E=o.value,N=E.selectionStart,p=E.selectionEnd;if(_.shiftKey||(c=void 0),_.keyCode===37||_.keyCode===39){_.shiftKey&&c===void 0&&(c=E.selectionDirection==="forward"?N:p);const z=S[(_.keyCode===39?"right":"left")+(e.reverseFillMask===!0?"Reverse":"")];if(_.preventDefault(),z(E,c===N?p:N),_.shiftKey){const I=E.selectionStart;E.setSelectionRange(Math.min(c,I),Math.max(c,I),"forward")}}else _.keyCode===8&&e.reverseFillMask!==!0&&N===p?(S.left(E,N),E.setSelectionRange(E.selectionStart,p,"backward")):_.keyCode===46&&e.reverseFillMask===!0&&N===p&&(S.rightReverse(E,p),E.setSelectionRange(N,E.selectionEnd,"forward"))}function L(_){if(_==null||_==="")return"";if(e.reverseFillMask===!0)return O(_);const E=l;let N=0,p="";for(let z=0;z=0&&p!==-1;I--){const le=E[I];let ee=_[p];if(typeof le=="string")z=le+z,ee===le&&p--;else if(ee!==void 0&&le.regex.test(ee))do z=(le.transform!==void 0?le.transform(ee):ee)+z,p--,ee=_[p];while(N===I&&ee!==void 0&&le.regex.test(ee));else return z}return z}function F(_){return typeof _!="string"||s===void 0?typeof _=="number"?s(""+_):_:s(_)}function X(_){return r.length-_.length<=0?_:e.reverseFillMask===!0&&_.length!==0?r.slice(0,-_.length)+_:_+r.slice(_.length)}return{innerValue:f,hasMask:a,moveCursorForPaste:V,updateMaskValue:A,onMaskedKeydown:T,onMaskedClick:R}}const mr={name:String};function ig(e={}){return(t,n,o)=>{t[n](C("input",{class:"hidden"+(o||""),...e.value}))}}function is(e){return b(()=>e.name||e.for)}function uf(e,t){function n(){const o=e.modelValue;try{const i="DataTransfer"in window?new DataTransfer:"ClipboardEvent"in window?new ClipboardEvent("").clipboardData:void 0;return Object(o)===o&&("length"in o?Array.from(o):[o]).forEach(r=>{i.items.add(r)}),{files:i.files}}catch{return{files:void 0}}}return b(t===!0?()=>{if(e.type==="file")return n()}:n)}const rg=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,lg=/[\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,sg=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,ag=/[a-z0-9_ -]$/i;function cf(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"&&(Me.is.firefox===!0?ag.test(n.data)===!1:rg.test(n.data)===!0||lg.test(n.data)===!0||sg.test(n.data)===!0)===!0&&(n.target.qComposing=!0)}}const rs=ke({name:"QInput",inheritAttrs:!1,props:{...fr,...ng,...mr,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:[...dr,"paste","change","keydown","click","animationend"],setup(e,{emit:t,attrs:n}){const{proxy:o}=Se(),{$q:i}=o,r={};let l=NaN,s,u,c=null,a;const f=se(null),d=is(e),{innerValue:h,hasMask:g,moveCursorForPaste:P,updateMaskValue:A,onMaskedKeydown:V,onMaskedClick:S}=og(e,t,ee,f),R=uf(e,!0),T=b(()=>Fn(h.value)),L=cf(I),O=hr({changeEvent:!0}),F=b(()=>e.type==="textarea"||e.autogrow===!0),X=b(()=>F.value===!0||["text","search","url","tel","password"].includes(e.type)),_=b(()=>{const k={...O.splitAttrs.listeners.value,onInput:I,onPaste:z,onChange:B,onBlur:ie,onFocus:gt};return k.onCompositionstart=k.onCompositionupdate=k.onCompositionend=L,g.value===!0&&(k.onKeydown=V,k.onClick=S),e.autogrow===!0&&(k.onAnimationend=le),k}),E=b(()=>{const k={tabindex:0,"data-autofocus":e.autofocus===!0||void 0,rows:e.type==="textarea"?6:void 0,"aria-label":e.label,name:d.value,...O.splitAttrs.attributes.value,id:O.targetUid.value,maxlength:e.maxlength,disabled:e.disable===!0,readonly:e.readonly===!0};return F.value===!1&&(k.type=e.type),e.autogrow===!0&&(k.rows=1),k});he(()=>e.type,()=>{f.value&&(f.value.value=e.modelValue)}),he(()=>e.modelValue,k=>{if(g.value===!0){if(u===!0&&(u=!1,String(k)===l))return;A(k)}else h.value!==k&&(h.value=k,e.type==="number"&&r.hasOwnProperty("value")===!0&&(s===!0?s=!1:delete r.value));e.autogrow===!0&&Fe(Q)}),he(()=>e.autogrow,k=>{k===!0?Fe(Q):f.value!==null&&n.rows>0&&(f.value.style.height="auto")}),he(()=>e.dense,()=>{e.autogrow===!0&&Fe(Q)});function N(){ur(()=>{const k=document.activeElement;f.value!==null&&f.value!==k&&(k===null||k.id!==O.targetUid.value)&&f.value.focus({preventScroll:!0})})}function p(){f.value!==null&&f.value.select()}function z(k){if(g.value===!0&&e.reverseFillMask!==!0){const te=k.target;P(te,te.selectionStart,te.selectionEnd)}t("paste",k)}function I(k){if(!k||!k.target)return;if(e.type==="file"){t("update:modelValue",k.target.files);return}const te=k.target.value;if(k.target.qComposing===!0){r.value=te;return}if(g.value===!0)A(te,!1,k.inputType);else if(ee(te),X.value===!0&&k.target===document.activeElement){const{selectionStart:ge,selectionEnd:ve}=k.target;ge!==void 0&&ve!==void 0&&Fe(()=>{k.target===document.activeElement&&te.indexOf(k.target.value)===0&&k.target.setSelectionRange(ge,ve)})}e.autogrow===!0&&Q()}function le(k){t("animationend",k),Q()}function ee(k,te){a=()=>{c=null,e.type!=="number"&&r.hasOwnProperty("value")===!0&&delete r.value,e.modelValue!==k&&l!==k&&(l=k,te===!0&&(u=!0),t("update:modelValue",k),Fe(()=>{l===k&&(l=NaN)})),a=void 0},e.type==="number"&&(s=!0,r.value=k),e.debounce!==void 0?(c!==null&&clearTimeout(c),r.value=k,c=setTimeout(a,e.debounce)):a()}function Q(){requestAnimationFrame(()=>{const k=f.value;if(k!==null){const te=k.parentNode.style,{scrollTop:ge}=k,{overflowY:ve,maxHeight:H}=i.platform.is.firefox===!0?{}:window.getComputedStyle(k),ae=ve!==void 0&&ve!=="scroll";ae===!0&&(k.style.overflowY="hidden"),te.marginBottom=k.scrollHeight-1+"px",k.style.height="1px",k.style.height=k.scrollHeight+"px",ae===!0&&(k.style.overflowY=parseInt(H,10){f.value!==null&&(f.value.value=h.value!==void 0?h.value:"")})}function me(){return r.hasOwnProperty("value")===!0?r.value:h.value!==void 0?h.value:""}Ne(()=>{ie()}),wt(()=>{e.autogrow===!0&&Q()}),Object.assign(O,{innerValue:h,fieldClass:b(()=>`q-${F.value===!0?"textarea":"input"}`+(e.autogrow===!0?" q-textarea--autogrow":"")),hasShadow:b(()=>e.type!=="file"&&typeof e.shadowText=="string"&&e.shadowText.length!==0),inputRef:f,emitValue:ee,hasValue:T,floatingLabel:b(()=>T.value===!0&&(e.type!=="number"||isNaN(h.value)===!1)||Fn(e.displayValue)),getControl:()=>C(F.value===!0?"textarea":"input",{ref:f,class:["q-field__native q-placeholder",e.inputClass],style:e.inputStyle,...E.value,..._.value,...e.type!=="file"?{value:me()}:R.value}),getShadowControl:()=>C("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(F.value===!0?"":" text-no-wrap")},[C("span",{class:"invisible"},me()),C("span",e.shadowText)])});const $=vr(O);return Object.assign(o,{focus:N,select:p,getNativeElement:()=>f.value}),Vn(o,"nativeEl",()=>f.value),$}});function ug(e,t=250){let n=!1,o;return function(){return n===!1&&(n=!0,setTimeout(()=>{n=!1},t),o=e.apply(this,arguments)),o}}function Ka(e,t,n,o){n.modifiers.stop===!0&>(e);const i=n.modifiers.color;let r=n.modifiers.center;r=r===!0||o===!0;const l=document.createElement("span"),s=document.createElement("span"),u=jo(e),{left:c,top:a,width:f,height:d}=t.getBoundingClientRect(),h=Math.sqrt(f*f+d*d),g=h/2,P=`${(f-h)/2}px`,A=r?P:`${u.left-c-g}px`,V=`${(d-h)/2}px`,S=r?V:`${u.top-a-g}px`;s.className="q-ripple__inner",dl(s,{height:`${h}px`,width:`${h}px`,transform:`translate3d(${A},${S},0) scale3d(.2,.2,1)`,opacity:0}),l.className=`q-ripple${i?" text-"+i:""}`,l.setAttribute("dir","ltr"),l.appendChild(s),t.appendChild(l);const R=()=>{l.remove(),clearTimeout(T)};n.abort.push(R);let T=setTimeout(()=>{s.classList.add("q-ripple__inner--enter"),s.style.transform=`translate3d(${P},${V},0) scale3d(1,1,1)`,s.style.opacity=.2,T=setTimeout(()=>{s.classList.remove("q-ripple__inner--enter"),s.classList.add("q-ripple__inner--leave"),s.style.opacity=0,T=setTimeout(()=>{l.remove(),n.abort.splice(n.abort.indexOf(R),1)},275)},250)},50)}function Wa(e,{modifiers:t,value:n,arg:o}){const i=Object.assign({},e.cfg.ripple,t,n);e.modifiers={early:i.early===!0,stop:i.stop===!0,center:i.center===!0,color:i.color||o,keyCodes:[].concat(i.keyCodes||13)}}const ff=Kl({name:"ripple",beforeMount(e,t){const n=t.instance.$.appContext.config.globalProperties.$q.config||{};if(n.ripple===!1)return;const o={cfg:n,enabled:t.value!==!1,modifiers:{},abort:[],start(i){o.enabled===!0&&i.qSkipRipple!==!0&&i.type===(o.modifiers.early===!0?"pointerdown":"click")&&Ka(i,e,o,i.qKeyEvent===!0)},keystart:ug(i=>{o.enabled===!0&&i.qSkipRipple!==!0&&mn(i,o.modifiers.keyCodes)===!0&&i.type===`key${o.modifiers.early===!0?"down":"up"}`&&Ka(i,e,o,!0)},300)};Wa(o,t),e.__qripple=o,Xt(o,"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&&Wa(n,t))}},beforeUnmount(e){const t=e.__qripple;t!==void 0&&(t.abort.forEach(n=>{n()}),$n(t,"main"),delete e._qripple)}}),df={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},cg=Object.keys(df),hf={align:{type:String,validator:e=>cg.includes(e)}};function vf(e){return b(()=>{const t=e.align===void 0?e.vertical===!0?"stretch":"left":e.align;return`${e.vertical===!0?"items":"justify"}-${df[t]}`})}const Qa={none:0,xs:4,sm:8,md:16,lg:24,xl:32},fg={xs:8,sm:10,md:14,lg:20,xl:24},dg=["button","submit","reset"],hg=/[^\s]\/[^\s]/,vg=["flat","outline","push","unelevated"];function mg(e,t){return e.flat===!0?"flat":e.outline===!0?"outline":e.push===!0?"push":e.unelevated===!0?"unelevated":t}const gg={...vo,...Kc,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...vg.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:{...hf.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},pg={...gg,round:Boolean};function bg(e){const t=mo(e,fg),n=vf(e),{hasRouterLink:o,hasLink:i,linkTag:r,linkAttrs:l,navigateOnClick:s}=Wc({fallbackTag:"button"}),u=b(()=>{const A=e.fab===!1&&e.fabMini===!1?t.value:{};return e.padding!==void 0?Object.assign({},A,{padding:e.padding.split(/\s+/).map(V=>V in Qa?Qa[V]+"px":V).join(" "),minWidth:"0",minHeight:"0"}):A}),c=b(()=>e.rounded===!0||e.fab===!0||e.fabMini===!0),a=b(()=>e.disable!==!0&&e.loading!==!0),f=b(()=>a.value===!0?e.tabindex||0:-1),d=b(()=>mg(e,"standard")),h=b(()=>{const A={tabindex:f.value};return i.value===!0?Object.assign(A,l.value):dg.includes(e.type)===!0&&(A.type=e.type),r.value==="a"?(e.disable===!0?A["aria-disabled"]="true":A.href===void 0&&(A.role="button"),o.value!==!0&&hg.test(e.type)===!0&&(A.type=e.type)):e.disable===!0&&(A.disabled="",A["aria-disabled"]="true"),e.loading===!0&&e.percentage!==void 0&&Object.assign(A,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e.percentage}),A}),g=b(()=>{let A;e.color!==void 0?e.flat===!0||e.outline===!0?A=`text-${e.textColor||e.color}`:A=`bg-${e.color} text-${e.textColor||"white"}`:e.textColor&&(A=`text-${e.textColor}`);const V=e.round===!0?"round":`rectangle${c.value===!0?" q-btn--rounded":e.square===!0?" q-btn--square":""}`;return`q-btn--${d.value} q-btn--${V}`+(A!==void 0?" "+A:"")+(a.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":"")}),P=b(()=>n.value+(e.stack===!0?" column":" row")+(e.noWrap===!0?" no-wrap text-no-wrap":"")+(e.loading===!0?" q-btn__content--hidden":""));return{classes:g,style:u,innerClasses:P,attributes:h,hasLink:i,linkTag:r,navigateOnClick:s,isActionable:a}}const{passiveCapture:At}=Ke;let Kn=null,Wn=null,Qn=null;const nt=ke({name:"QBtn",props:{...pg,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(e,{slots:t,emit:n}){const{proxy:o}=Se(),{classes:i,style:r,innerClasses:l,attributes:s,hasLink:u,linkTag:c,navigateOnClick:a,isActionable:f}=bg(e),d=se(null),h=se(null);let g=null,P,A=null;const V=b(()=>e.label!==void 0&&e.label!==null&&e.label!==""),S=b(()=>e.disable===!0||e.ripple===!1?!1:{keyCodes:u.value===!0?[13,32]:[13],...e.ripple===!0?{}:e.ripple}),R=b(()=>({center:e.round})),T=b(()=>{const I=Math.max(0,Math.min(100,e.percentage));return I>0?{transition:"transform 0.6s",transform:`translateX(${I-100}%)`}:{}}),L=b(()=>{if(e.loading===!0)return{onMousedown:z,onTouchstart:z,onClick:z,onKeydown:z,onKeyup:z};if(f.value===!0){const I={onClick:F,onKeydown:X,onMousedown:E};if(o.$q.platform.has.touch===!0){const le=e.onTouchstart!==void 0?"":"Passive";I[`onTouchstart${le}`]=_}return I}return{onClick:Ve}}),O=b(()=>({ref:d,class:"q-btn q-btn-item non-selectable no-outline "+i.value,style:r.value,...s.value,...L.value}));function F(I){if(d.value!==null){if(I!==void 0){if(I.defaultPrevented===!0)return;const le=document.activeElement;if(e.type==="submit"&&le!==document.body&&d.value.contains(le)===!1&&le.contains(d.value)===!1){d.value.focus();const ee=()=>{document.removeEventListener("keydown",Ve,!0),document.removeEventListener("keyup",ee,At),d.value!==null&&d.value.removeEventListener("blur",ee,At)};document.addEventListener("keydown",Ve,!0),document.addEventListener("keyup",ee,At),d.value.addEventListener("blur",ee,At)}}a(I)}}function X(I){d.value!==null&&(n("keydown",I),mn(I,[13,32])===!0&&Wn!==d.value&&(Wn!==null&&p(),I.defaultPrevented!==!0&&(d.value.focus(),Wn=d.value,d.value.classList.add("q-btn--active"),document.addEventListener("keyup",N,!0),d.value.addEventListener("blur",N,At)),Ve(I)))}function _(I){d.value!==null&&(n("touchstart",I),I.defaultPrevented!==!0&&(Kn!==d.value&&(Kn!==null&&p(),Kn=d.value,g=I.target,g.addEventListener("touchcancel",N,At),g.addEventListener("touchend",N,At)),P=!0,A!==null&&clearTimeout(A),A=setTimeout(()=>{A=null,P=!1},200)))}function E(I){d.value!==null&&(I.qSkipRipple=P===!0,n("mousedown",I),I.defaultPrevented!==!0&&Qn!==d.value&&(Qn!==null&&p(),Qn=d.value,d.value.classList.add("q-btn--active"),document.addEventListener("mouseup",N,At)))}function N(I){if(d.value!==null&&!(I!==void 0&&I.type==="blur"&&document.activeElement===d.value)){if(I!==void 0&&I.type==="keyup"){if(Wn===d.value&&mn(I,[13,32])===!0){const le=new MouseEvent("click",I);le.qKeyEvent=!0,I.defaultPrevented===!0&&ut(le),I.cancelBubble===!0&>(le),d.value.dispatchEvent(le),Ve(I),I.qKeyEvent=!0}n("keyup",I)}p()}}function p(I){const le=h.value;I!==!0&&(Kn===d.value||Qn===d.value)&&le!==null&&le!==document.activeElement&&(le.setAttribute("tabindex",-1),le.focus()),Kn===d.value&&(g!==null&&(g.removeEventListener("touchcancel",N,At),g.removeEventListener("touchend",N,At)),Kn=g=null),Qn===d.value&&(document.removeEventListener("mouseup",N,At),Qn=null),Wn===d.value&&(document.removeEventListener("keyup",N,!0),d.value!==null&&d.value.removeEventListener("blur",N,At),Wn=null),d.value!==null&&d.value.classList.remove("q-btn--active")}function z(I){Ve(I),I.qSkipRipple=!0}return Ne(()=>{p(!0)}),Object.assign(o,{click:I=>{f.value===!0&&F(I)}}),()=>{let I=[];e.icon!==void 0&&I.push(C(We,{name:e.icon,left:e.stack!==!0&&V.value===!0,role:"img"})),V.value===!0&&I.push(C("span",{class:"block"},[e.label])),I=Zt(t.default,I),e.iconRight!==void 0&&e.round===!1&&I.push(C(We,{name:e.iconRight,right:e.stack!==!0&&V.value===!0,role:"img"}));const le=[C("span",{class:"q-focus-helper",ref:h})];return e.loading===!0&&e.percentage!==void 0&&le.push(C("span",{class:"q-btn__progress absolute-full overflow-hidden"+(e.darkPercentage===!0?" q-btn__progress--dark":"")},[C("span",{class:"q-btn__progress-indicator fit block",style:T.value})])),le.push(C("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+l.value},I)),e.loading!==null&&le.push(C(In,{name:"q-transition--fade"},()=>e.loading===!0?[C("span",{key:"loading",class:"absolute-full flex flex-center"},t.loading!==void 0?t.loading():[C(cr)])]:null)),Ye(C(c.value,O.value,le),[[ff,S.value,void 0,R.value]])}}}),ls=ke({name:"QCardActions",props:{...hf,vertical:Boolean},setup(e,{slots:t}){const n=vf(e),o=b(()=>`q-card__actions ${n.value} q-card__actions--${e.vertical===!0?"vert column":"horiz row"}`);return()=>C("div",{class:o.value},ze(t.default))}}),Go=ke({name:"QCard",props:{...Ot,tag:{type:String,default:"div"},square:Boolean,flat:Boolean,bordered:Boolean},setup(e,{slots:t}){const{proxy:{$q:n}}=Se(),o=$t(e,n),i=b(()=>"q-card"+(o.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()=>C(e.tag,{class:i.value},ze(t.default))}});let hi=0;const yg={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"},Ga={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},go=ke({name:"QDialog",inheritAttrs:!1,props:{...lr,...Io,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:[...sr,"shake","click","escapeKey"],setup(e,{slots:t,emit:n,attrs:o}){const i=Se(),r=se(null),l=se(!1),s=se(!1);let u=null,c=null,a,f;const d=b(()=>e.persistent!==!0&&e.noRouteDismiss!==!0&&e.seamless!==!0),{preventBodyScroll:h}=Nc(),{registerTimeout:g}=co(),{registerTick:P,removeTick:A}=ts(),{transitionProps:V,transitionStyle:S}=es(e,()=>Ga[e.position][0],()=>Ga[e.position][1]),R=b(()=>S.value+(e.backdropFilter!==void 0?`;backdrop-filter:${e.backdropFilter};-webkit-backdrop-filter:${e.backdropFilter}`:"")),{showPortal:T,hidePortal:L,portalIsAccessible:O,renderPortal:F}=Zl(i,r,ve,"dialog"),{hide:X}=ar({showing:l,hideOnRouteChange:d,handleShow:le,handleHide:ee,processOnMount:!0}),{addToHistory:_,removeFromHistory:E}=Rc(l,X,d),N=b(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${e.maximized===!0?"maximized":"minimized"} q-dialog__inner--${e.position} ${yg[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":"")),p=b(()=>l.value===!0&&e.seamless!==!0),z=b(()=>e.autoClose===!0?{onClick:k}:{}),I=b(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${p.value===!0?"modal":"seamless"}`,o.class]);he(()=>e.maximized,H=>{l.value===!0&&$(H)}),he(p,H=>{h(H),H===!0?(of(ge),tf(ie)):(gl(ge),Mi(ie))});function le(H){_(),c=e.noRefocus===!1&&document.activeElement!==null?document.activeElement:null,$(e.maximized),T(),s.value=!0,e.noFocus!==!0?(document.activeElement!==null&&document.activeElement.blur(),P(Q)):A(),g(()=>{if(i.proxy.$q.platform.is.ios===!0){if(e.seamless!==!0&&document.activeElement){const{top:ae,bottom:_e}=document.activeElement.getBoundingClientRect(),{innerHeight:ne}=window,Ae=window.visualViewport!==void 0?window.visualViewport.height:ne;ae>0&&_e>Ae/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-Ae,_e>=ne?1/0:Math.ceil(document.scrollingElement.scrollTop+_e-Ae/2))),document.activeElement.scrollIntoView()}f=!0,r.value.click(),f=!1}T(!0),s.value=!1,n("show",H)},e.transitionDuration)}function ee(H){A(),E(),me(!0),s.value=!0,L(),c!==null&&(((H&&H.type.indexOf("key")===0?c.closest('[tabindex]:not([tabindex^="-"])'):void 0)||c).focus(),c=null),g(()=>{L(!0),s.value=!1,n("hide",H)},e.transitionDuration)}function Q(H){ur(()=>{let ae=r.value;if(ae!==null){if(H!==void 0){const _e=ae.querySelector(H);if(_e!==null){_e.focus({preventScroll:!0});return}}ae.contains(document.activeElement)!==!0&&(ae=ae.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||ae.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||ae.querySelector("[autofocus], [data-autofocus]")||ae,ae.focus({preventScroll:!0}))}})}function B(H){H&&typeof H.focus=="function"?H.focus({preventScroll:!0}):Q(),n("shake");const ae=r.value;ae!==null&&(ae.classList.remove("q-animate--scale"),ae.classList.add("q-animate--scale"),u!==null&&clearTimeout(u),u=setTimeout(()=>{u=null,r.value!==null&&(ae.classList.remove("q-animate--scale"),Q())},170))}function ie(){e.seamless!==!0&&(e.persistent===!0||e.noEscDismiss===!0?e.maximized!==!0&&e.noShake!==!0&&B():(n("escapeKey"),X()))}function me(H){u!==null&&(clearTimeout(u),u=null),(H===!0||l.value===!0)&&($(!1),e.seamless!==!0&&(h(!1),gl(ge),Mi(ie))),H!==!0&&(c=null)}function $(H){H===!0?a!==!0&&(hi<1&&document.body.classList.add("q-body--dialog"),hi++,a=!0):a===!0&&(hi<2&&document.body.classList.remove("q-body--dialog"),hi--,a=!1)}function k(H){f!==!0&&(X(H),n("click",H))}function te(H){e.persistent!==!0&&e.noBackdropDismiss!==!0?X(H):e.noShake!==!0&&B()}function ge(H){e.allowFocusOutside!==!0&&O.value===!0&&Fc(r.value,H.target)!==!0&&Q('[tabindex]:not([tabindex="-1"])')}Object.assign(i.proxy,{focus:Q,shake:B,__updateRefocusTarget(H){c=H||null}}),Ne(me);function ve(){return C("div",{role:"dialog","aria-modal":p.value===!0?"true":"false",...o,class:I.value},[C(In,{name:"q-transition--fade",appear:!0},()=>p.value===!0?C("div",{class:"q-dialog__backdrop fixed-full",style:R.value,"aria-hidden":"true",tabindex:-1,onClick:te}):null),C(In,V.value,()=>l.value===!0?C("div",{ref:r,class:N.value,style:S.value,tabindex:-1,...z.value},ze(t.default)):null)])}return F}});function Ya(e){if(e===!1)return 0;if(e===!0||e===void 0)return 1;const t=parseInt(e,10);return isNaN(t)?0:t}const lt=Kl({name:"close-popup",beforeMount(e,{value:t}){const n={depth:Ya(t),handler(o){n.depth!==0&&setTimeout(()=>{const i=Pm(e);i!==void 0&&Mm(i,o,n.depth)})},handlerKey(o){mn(o,13)===!0&&n.handler(o)}};e.__qclosepopup=n,e.addEventListener("click",n.handler),e.addEventListener("keyup",n.handlerKey)},updated(e,{value:t,oldValue:n}){t!==n&&(e.__qclosepopup.depth=Ya(t))},beforeUnmount(e){const t=e.__qclosepopup;e.removeEventListener("click",t.handler),e.removeEventListener("keyup",t.handlerKey),delete e.__qclosepopup}});function wg(){return mf().__VUE_DEVTOOLS_GLOBAL_HOOK__}function mf(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const _g=typeof Proxy=="function",Sg="devtools-plugin:setup",xg="plugin:settings:set";let Gn,yl;function Cg(){var e;return Gn!==void 0||(typeof window<"u"&&window.performance?(Gn=!0,yl=window.performance):typeof global<"u"&&(!((e=global.perf_hooks)===null||e===void 0)&&e.performance)?(Gn=!0,yl=global.perf_hooks.performance):Gn=!1),Gn}function kg(){return Cg()?yl.now():Date.now()}class Eg{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const o={};if(t.settings)for(const l in t.settings){const s=t.settings[l];o[l]=s.defaultValue}const i=`__vue-devtools-plugin-settings__${t.id}`;let r=Object.assign({},o);try{const l=localStorage.getItem(i),s=JSON.parse(l);Object.assign(r,s)}catch{}this.fallbacks={getSettings(){return r},setSettings(l){try{localStorage.setItem(i,JSON.stringify(l))}catch{}r=l},now(){return kg()}},n&&n.on(xg,(l,s)=>{l===this.plugin.id&&this.fallbacks.setSettings(s)}),this.proxiedOn=new Proxy({},{get:(l,s)=>this.target?this.target.on[s]:(...u)=>{this.onQueue.push({method:s,args:u})}}),this.proxiedTarget=new Proxy({},{get:(l,s)=>this.target?this.target[s]:s==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(s)?(...u)=>(this.targetQueue.push({method:s,args:u,resolve:()=>{}}),this.fallbacks[s](...u)):(...u)=>new Promise(c=>{this.targetQueue.push({method:s,args:u,resolve:c})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function Ag(e,t){const n=e,o=mf(),i=wg(),r=_g&&n.enableEarlyProxy;if(i&&(o.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!r))i.emit(Sg,e,t);else{const l=r?new Eg(n,i):null;(o.__VUE_DEVTOOLS_PLUGINS__=o.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:l}),l&&t(l.proxiedTarget)}}/*! * vuex v4.1.0 * (c) 2022 Evan You * @license MIT - */var Ag="store";function po(e,t){Object.keys(e).forEach(function(n){return t(e[n],n)})}function gf(e){return e!==null&&typeof e=="object"}function qg(e){return e&&typeof e.then=="function"}function $g(e,t){return function(){return e(t)}}function pf(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var o=t.indexOf(e);o>-1&&t.splice(o,1)}}function bf(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;gr(e,n,[],e._modules.root,!0),ss(e,n,t)}function ss(e,t,n){var o=e._state,i=e._scope;e.getters={},e._makeLocalGettersCache=Object.create(null);var r=e._wrappedGetters,l={},s={},u=ud(!0);u.run(function(){po(r,function(c,a){l[a]=$g(c,e),s[a]=b(function(){return l[a]()}),Object.defineProperty(e.getters,a,{get:function(){return s[a].value},enumerable:!0})})}),e._state=Ht({data:t}),e._scope=u,e.strict&&Rg(e),o&&n&&e._withCommit(function(){o.data=null}),i&&i.stop()}function gr(e,t,n,o,i){var r=!n.length,l=e._modules.getNamespace(n);if(o.namespaced&&(e._modulesNamespaceMap[l],e._modulesNamespaceMap[l]=o),!r&&!i){var s=as(t,n.slice(0,-1)),u=n[n.length-1];e._withCommit(function(){s[u]=o.state})}var c=o.context=Og(e,l,n);o.forEachMutation(function(a,f){var d=l+f;Pg(e,d,a,c)}),o.forEachAction(function(a,f){var d=a.root?f:l+f,h=a.handler||a;Mg(e,d,h,c)}),o.forEachGetter(function(a,f){var d=l+f;Lg(e,d,a,c)}),o.forEachChild(function(a,f){gr(e,t,n.concat(f),a,i)})}function Og(e,t,n){var o=t==="",i={dispatch:o?e.dispatch:function(r,l,s){var u=Bi(r,l,s),c=u.payload,a=u.options,f=u.type;return(!a||!a.root)&&(f=t+f),e.dispatch(f,c)},commit:o?e.commit:function(r,l,s){var u=Bi(r,l,s),c=u.payload,a=u.options,f=u.type;(!a||!a.root)&&(f=t+f),e.commit(f,c,a)}};return Object.defineProperties(i,{getters:{get:o?function(){return e.getters}:function(){return yf(e,t)}},state:{get:function(){return as(e.state,n)}}}),i}function yf(e,t){if(!e._makeLocalGettersCache[t]){var n={},o=t.length;Object.keys(e.getters).forEach(function(i){if(i.slice(0,o)===t){var r=i.slice(o);Object.defineProperty(n,r,{get:function(){return e.getters[i]},enumerable:!0})}}),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function Pg(e,t,n,o){var i=e._mutations[t]||(e._mutations[t]=[]);i.push(function(l){n.call(e,o.state,l)})}function Mg(e,t,n,o){var i=e._actions[t]||(e._actions[t]=[]);i.push(function(l){var s=n.call(e,{dispatch:o.dispatch,commit:o.commit,getters:o.getters,state:o.state,rootGetters:e.getters,rootState:e.state},l);return qg(s)||(s=Promise.resolve(s)),e._devtoolHook?s.catch(function(u){throw e._devtoolHook.emit("vuex:error",u),u}):s})}function Lg(e,t,n,o){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(r){return n(o.state,o.getters,r.state,r.getters)})}function Rg(e){he(function(){return e._state.data},function(){},{deep:!0,flush:"sync"})}function as(e,t){return t.reduce(function(n,o){return n[o]},e)}function Bi(e,t,n){return gf(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}var Ig="vuex bindings",Ja="vuex:mutations",Ur="vuex:actions",Yn="vuex",Fg=0;function Vg(e,t){Tg({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[Ig]},function(n){n.addTimelineLayer({id:Ja,label:"Vuex Mutations",color:Xa}),n.addTimelineLayer({id:Ur,label:"Vuex Actions",color:Xa}),n.addInspector({id:Yn,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree(function(o){if(o.app===e&&o.inspectorId===Yn)if(o.filter){var i=[];xf(i,t._modules.root,o.filter,""),o.rootNodes=i}else o.rootNodes=[Sf(t._modules.root,"")]}),n.on.getInspectorState(function(o){if(o.app===e&&o.inspectorId===Yn){var i=o.nodeId;yf(t,i),o.state=Dg(jg(t._modules,i),i==="root"?t.getters:t._makeLocalGettersCache,i)}}),n.on.editInspectorState(function(o){if(o.app===e&&o.inspectorId===Yn){var i=o.nodeId,r=o.path;i!=="root"&&(r=i.split("/").filter(Boolean).concat(r)),t._withCommit(function(){o.set(t._state.data,r,o.state.value)})}}),t.subscribe(function(o,i){var r={};o.payload&&(r.payload=o.payload),r.state=i,n.notifyComponentUpdate(),n.sendInspectorTree(Yn),n.sendInspectorState(Yn),n.addTimelineEvent({layerId:Ja,event:{time:Date.now(),title:o.type,data:r}})}),t.subscribeAction({before:function(o,i){var r={};o.payload&&(r.payload=o.payload),o._id=Fg++,o._time=Date.now(),r.state=i,n.addTimelineEvent({layerId:Ur,event:{time:o._time,title:o.type,groupId:o._id,subtitle:"start",data:r}})},after:function(o,i){var r={},l=Date.now()-o._time;r.duration={_custom:{type:"duration",display:l+"ms",tooltip:"Action duration",value:l}},o.payload&&(r.payload=o.payload),r.state=i,n.addTimelineEvent({layerId:Ur,event:{time:Date.now(),title:o.type,groupId:o._id,subtitle:"end",data:r}})}})})}var Xa=8702998,Ng=6710886,Bg=16777215,wf={label:"namespaced",textColor:Bg,backgroundColor:Ng};function _f(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function Sf(e,t){return{id:t||"root",label:_f(t),tags:e.namespaced?[wf]:[],children:Object.keys(e._children).map(function(n){return Sf(e._children[n],t+n+"/")})}}function xf(e,t,n,o){o.includes(n)&&e.push({id:o||"root",label:o.endsWith("/")?o.slice(0,o.length-1):o||"Root",tags:t.namespaced?[wf]:[]}),Object.keys(t._children).forEach(function(i){xf(e,t._children[i],n,o+i+"/")})}function Dg(e,t,n){t=n==="root"?t:t[n];var o=Object.keys(t),i={state:Object.keys(e.state).map(function(l){return{key:l,editable:!0,value:e.state[l]}})};if(o.length){var r=zg(t);i.getters=Object.keys(r).map(function(l){return{key:l.endsWith("/")?_f(l):l,editable:!1,value:wl(function(){return r[l]})}})}return i}function zg(e){var t={};return Object.keys(e).forEach(function(n){var o=n.split("/");if(o.length>1){var i=t,r=o.pop();o.forEach(function(l){i[l]||(i[l]={_custom:{value:{},display:l,tooltip:"Module",abstract:!0}}),i=i[l]._custom.value}),i[r]=wl(function(){return e[n]})}else t[n]=wl(function(){return e[n]})}),t}function jg(e,t){var n=t.split("/").filter(function(o){return o});return n.reduce(function(o,i,r){var l=o[i];if(!l)throw new Error('Missing module "'+i+'" for path "'+t+'".');return r===n.length-1?l:l._children},t==="root"?e:e.root._children)}function wl(e){try{return e()}catch(t){return t}}var Nt=function(t,n){this.runtime=n,this._children=Object.create(null),this._rawModule=t;var o=t.state;this.state=(typeof o=="function"?o():o)||{}},Cf={namespaced:{configurable:!0}};Cf.namespaced.get=function(){return!!this._rawModule.namespaced};Nt.prototype.addChild=function(t,n){this._children[t]=n};Nt.prototype.removeChild=function(t){delete this._children[t]};Nt.prototype.getChild=function(t){return this._children[t]};Nt.prototype.hasChild=function(t){return t in this._children};Nt.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)};Nt.prototype.forEachChild=function(t){po(this._children,t)};Nt.prototype.forEachGetter=function(t){this._rawModule.getters&&po(this._rawModule.getters,t)};Nt.prototype.forEachAction=function(t){this._rawModule.actions&&po(this._rawModule.actions,t)};Nt.prototype.forEachMutation=function(t){this._rawModule.mutations&&po(this._rawModule.mutations,t)};Object.defineProperties(Nt.prototype,Cf);var Nn=function(t){this.register([],t,!1)};Nn.prototype.get=function(t){return t.reduce(function(n,o){return n.getChild(o)},this.root)};Nn.prototype.getNamespace=function(t){var n=this.root;return t.reduce(function(o,i){return n=n.getChild(i),o+(n.namespaced?i+"/":"")},"")};Nn.prototype.update=function(t){kf([],this.root,t)};Nn.prototype.register=function(t,n,o){var i=this;o===void 0&&(o=!0);var r=new Nt(n,o);if(t.length===0)this.root=r;else{var l=this.get(t.slice(0,-1));l.addChild(t[t.length-1],r)}n.modules&&po(n.modules,function(s,u){i.register(t.concat(u),s,o)})};Nn.prototype.unregister=function(t){var n=this.get(t.slice(0,-1)),o=t[t.length-1],i=n.getChild(o);i&&i.runtime&&n.removeChild(o)};Nn.prototype.isRegistered=function(t){var n=this.get(t.slice(0,-1)),o=t[t.length-1];return n?n.hasChild(o):!1};function kf(e,t,n){if(t.update(n),n.modules)for(var o in n.modules){if(!t.getChild(o))return;kf(e.concat(o),t.getChild(o),n.modules[o])}}function Hg(e){return new _t(e)}var _t=function(t){var n=this;t===void 0&&(t={});var o=t.plugins;o===void 0&&(o=[]);var i=t.strict;i===void 0&&(i=!1);var r=t.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new Nn(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=r;var l=this,s=this,u=s.dispatch,c=s.commit;this.dispatch=function(d,h){return u.call(l,d,h)},this.commit=function(d,h,g){return c.call(l,d,h,g)},this.strict=i;var a=this._modules.root.state;gr(this,a,[],this._modules.root),ss(this,a),o.forEach(function(f){return f(n)})},us={state:{configurable:!0}};_t.prototype.install=function(t,n){t.provide(n||Ag,this),t.config.globalProperties.$store=this;var o=this._devtools!==void 0?this._devtools:!1;o&&Vg(t,this)};us.state.get=function(){return this._state.data};us.state.set=function(e){};_t.prototype.commit=function(t,n,o){var i=this,r=Bi(t,n,o),l=r.type,s=r.payload,u={type:l,payload:s},c=this._mutations[l];c&&(this._withCommit(function(){c.forEach(function(f){f(s)})}),this._subscribers.slice().forEach(function(a){return a(u,i.state)}))};_t.prototype.dispatch=function(t,n){var o=this,i=Bi(t,n),r=i.type,l=i.payload,s={type:r,payload:l},u=this._actions[r];if(u){try{this._actionSubscribers.slice().filter(function(a){return a.before}).forEach(function(a){return a.before(s,o.state)})}catch{}var c=u.length>1?Promise.all(u.map(function(a){return a(l)})):u[0](l);return new Promise(function(a,f){c.then(function(d){try{o._actionSubscribers.filter(function(h){return h.after}).forEach(function(h){return h.after(s,o.state)})}catch{}a(d)},function(d){try{o._actionSubscribers.filter(function(h){return h.error}).forEach(function(h){return h.error(s,o.state,d)})}catch{}f(d)})})}};_t.prototype.subscribe=function(t,n){return pf(t,this._subscribers,n)};_t.prototype.subscribeAction=function(t,n){var o=typeof t=="function"?{before:t}:t;return pf(o,this._actionSubscribers,n)};_t.prototype.watch=function(t,n,o){var i=this;return he(function(){return t(i.state,i.getters)},n,Object.assign({},o))};_t.prototype.replaceState=function(t){var n=this;this._withCommit(function(){n._state.data=t})};_t.prototype.registerModule=function(t,n,o){o===void 0&&(o={}),typeof t=="string"&&(t=[t]),this._modules.register(t,n),gr(this,this.state,t,this._modules.get(t),o.preserveState),ss(this,this.state)};_t.prototype.unregisterModule=function(t){var n=this;typeof t=="string"&&(t=[t]),this._modules.unregister(t),this._withCommit(function(){var o=as(n.state,t.slice(0,-1));delete o[t[t.length-1]]}),bf(this)};_t.prototype.hasModule=function(t){return typeof t=="string"&&(t=[t]),this._modules.isRegistered(t)};_t.prototype.hotUpdate=function(t){this._modules.update(t),bf(this,!0)};_t.prototype._withCommit=function(t){var n=this._committing;this._committing=!0,t(),this._committing=n};Object.defineProperties(_t.prototype,us);var Bn=fs(function(e,t){var n={};return cs(t).forEach(function(o){var i=o.key,r=o.val;n[i]=function(){var s=this.$store.state,u=this.$store.getters;if(e){var c=ds(this.$store,"mapState",e);if(!c)return;s=c.context.state,u=c.context.getters}return typeof r=="function"?r.call(this,s,u):s[r]},n[i].vuex=!0}),n}),Yo=fs(function(e,t){var n={};return cs(t).forEach(function(o){var i=o.key,r=o.val;n[i]=function(){for(var s=[],u=arguments.length;u--;)s[u]=arguments[u];var c=this.$store.commit;if(e){var a=ds(this.$store,"mapMutations",e);if(!a)return;c=a.context.commit}return typeof r=="function"?r.apply(this,[c].concat(s)):c.apply(this.$store,[r].concat(s))}}),n}),Kg=fs(function(e,t){var n={};return cs(t).forEach(function(o){var i=o.key,r=o.val;n[i]=function(){for(var s=[],u=arguments.length;u--;)s[u]=arguments[u];var c=this.$store.dispatch;if(e){var a=ds(this.$store,"mapActions",e);if(!a)return;c=a.context.dispatch}return typeof r=="function"?r.apply(this,[c].concat(s)):c.apply(this.$store,[r].concat(s))}}),n});function cs(e){return Ug(e)?Array.isArray(e)?e.map(function(t){return{key:t,val:t}}):Object.keys(e).map(function(t){return{key:t,val:e[t]}}):[]}function Ug(e){return Array.isArray(e)||gf(e)}function fs(e){return function(t,n){return typeof t!="string"?(n=t,t=""):t.charAt(t.length-1)!=="/"&&(t+="/"),e(t,n)}}function ds(e,t,n){var o=e._modulesNamespaceMap[n];return o}async function hs(e,t={},n){return window.__TAURI_INTERNALS__.invoke(e,t,n)}async function Wg(e={}){return typeof e=="object"&&Object.freeze(e),await hs("plugin:dialog|save",{options:e})}var _l;(function(e){e[e.Audio=1]="Audio",e[e.Cache=2]="Cache",e[e.Config=3]="Config",e[e.Data=4]="Data",e[e.LocalData=5]="LocalData",e[e.Document=6]="Document",e[e.Download=7]="Download",e[e.Picture=8]="Picture",e[e.Public=9]="Public",e[e.Video=10]="Video",e[e.Resource=11]="Resource",e[e.Temp=12]="Temp",e[e.AppConfig=13]="AppConfig",e[e.AppData=14]="AppData",e[e.AppLocalData=15]="AppLocalData",e[e.AppCache=16]="AppCache",e[e.AppLog=17]="AppLog",e[e.Desktop=18]="Desktop",e[e.Executable=19]="Executable",e[e.Font=20]="Font",e[e.Home=21]="Home",e[e.Runtime=22]="Runtime",e[e.Template=23]="Template"})(_l||(_l={}));async function Qg(){return hs("plugin:path|resolve_directory",{directory:_l.Document})}const Ef=async(e,t)=>{if(typeof window.rpc>"u"){let n=document.createElement("a");n.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent(e)),n.setAttribute("download",t),n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n)}else Wg({defaultPath:await Qg(),filters:[{extensions:["json"],name:"JSON Files (*.json)"},{name:"All files (*.*)",extensions:["*"]}]}).then(n=>{n&&(n.match(/.*\.json$/)||(n+=".json"),hs("save_file",{filepath:n,contents:e}).then(o=>alert(o)).catch(o=>alert(o)))}).catch(()=>{})},it=(e,t)=>{const n=e.__vccOpts||e;for(const[o,i]of t)n[o]=i;return n},Gg={name:"ExportAnnotations",computed:{...Bn(["annotations","classes"])},methods:{async generateJSONExport(){const e={classes:this.classes.map(n=>n.name),annotations:this.annotations.map(n=>[n.text,{entities:n.entities}])},t=JSON.stringify(e);await Ef(t,"annotations.json")}}};function Yg(e,t,n,o,i,r){return Ye((we(),De(zt,{clickable:"",onClick:t[0]||(t[0]=l=>r.generateJSONExport()),disable:!e.annotations.length},{default:de(()=>[D(Dt,null,{default:de(()=>t[1]||(t[1]=[Ee("Export")])),_:1})]),_:1},8,["disable"])),[[lt]])}const Jg=it(Gg,[["render",Yg]]);function Tf(){return Ut(Pc)}const Xg={name:"AboutDialog",props:{show:{type:Boolean,default:!1}},emits:["hide"],data:function(){return{version:"2.0.1"}}};function Zg(e,t,n,o,i,r){return we(),De(go,{"model-value":n.show,onHide:t[0]||(t[0]=l=>e.$emit("hide"))},{default:de(()=>[D(Go,{style:{"min-width":"400px",padding:"10px","border-radius":"10px"}},{default:de(()=>[D(tn,null,{default:de(()=>t[1]||(t[1]=[G("div",{class:"text-h6"},"NER Annotator",-1)])),_:1}),D(tn,{class:"q-pt-none"},{default:de(()=>[G("p",null,[t[2]||(t[2]=G("strong",null,"Version: ",-1)),Ee(hn(e.version),1)]),t[3]||(t[3]=G("p",null,[G("strong",null,"Source: "),G("a",{href:"https://github.com/tecoholic/ner-annotator"}," Github Repository ")],-1)),t[4]||(t[4]=G("p",null,[G("strong",null,"Contributors: "),G("a",{href:"https://github.com/tecoholic/ner-annotator/graphs/contributors"}," See on Github ")],-1)),t[5]||(t[5]=G("ul",null,[G("li",null,[Ee("Author: "),G("a",{href:"https://github.com/tecoholic"},"tecoholic")]),G("li",null,[Ee(" Maintainer: "),G("a",{href:"https://github.com/alvi-khan"},"alvi-khan")])],-1))]),_:1}),D(ls,{align:"right"},{default:de(()=>[Ye(D(nt,{flat:"",label:"OK",color:"primary"},null,512),[[lt]])]),_:1})]),_:1})]),_:1},8,["model-value"])}const ep=it(Xg,[["render",Zg]]),tp={name:"ExitDialog",props:{show:{type:Boolean,default:!1}},emits:["hide","confirm"]};function np(e,t,n,o,i,r){return we(),De(go,{"model-value":n.show,onHide:t[2]||(t[2]=l=>e.$emit("hide"))},{default:de(()=>[D(Go,{style:{"max-width":"400px",padding:"10px","border-radius":"10px"}},{default:de(()=>[D(tn,null,{default:de(()=>t[3]||(t[3]=[G("div",{class:"text-h5"}," Are you sure you want to close this file? ",-1)])),_:1}),D(tn,{class:"text-body1"},{default:de(()=>t[4]||(t[4]=[G("p",null,"All changes made to this file will be lost.",-1),Ee(" If you haven't exported the annotations, please do so before closing the file. ")])),_:1}),D(ls,{align:"right"},{default:de(()=>[Ye(D(nt,{flat:"",label:"Cancel",color:"red",onClick:t[0]||(t[0]=l=>e.$emit("hide"))},null,512),[[lt]]),Ye(D(nt,{flat:"",label:"OK",color:"light-blue",onClick:t[1]||(t[1]=l=>e.$emit("confirm"))},null,512),[[lt]])]),_:1})]),_:1})]),_:1},8,["model-value"])}const Af=it(tp,[["render",np]]),op=ke({name:"QTooltip",inheritAttrs:!1,props:{...Qc,...lr,...Io,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null},transitionShow:{...Io.transitionShow,default:"jump-down"},transitionHide:{...Io.transitionHide,default:"jump-up"},anchor:{type:String,default:"bottom middle",validator:Fi},self:{type:String,default:"top middle",validator:Fi},offset:{type:Array,default:()=>[14,14],validator:lf},scrollTarget:Gl,delay:{type:Number,default:0},hideDelay:{type:Number,default:0},persistent:Boolean},emits:[...sr],setup(e,{slots:t,emit:n,attrs:o}){let i,r;const l=Se(),{proxy:{$q:s}}=l,u=se(null),c=se(!1),a=b(()=>Vi(e.anchor,s.lang.rtl)),f=b(()=>Vi(e.self,s.lang.rtl)),d=b(()=>e.persistent!==!0),{registerTick:h,removeTick:g}=ts(),{registerTimeout:P}=co(),{transitionProps:T,transitionStyle:V}=es(e),{localScrollTarget:S,changeScrollEvent:R,unconfigureScrollTarget:A}=Yc(e,me),{anchorEl:L,canShow:$,anchorEvents:F}=Gc({showing:c,configureAnchorEl:ie}),{show:X,hide:_}=ar({showing:c,canShow:$,handleShow:z,handleHide:I,hideOnRouteChange:d,processOnMount:!0});Object.assign(F,{delayShow:Q,delayHide:N});const{showPortal:E,hidePortal:B,renderPortal:p}=Zl(l,u,k,"tooltip");if(s.platform.is.mobile===!0){const te={anchorEl:L,innerRef:u,onClickOutside(ve){return _(ve),ve.target.classList.contains("q-dialog__backdrop")&&Ve(ve),!0}},ge=b(()=>e.modelValue===null&&e.persistent!==!0&&c.value===!0);he(ge,ve=>{(ve===!0?rf:Ii)(te)}),Be(()=>{Ii(te)})}function z(te){E(),h(()=>{r=new MutationObserver(()=>ee()),r.observe(u.value,{attributes:!1,childList:!0,characterData:!0,subtree:!0}),ee(),me()}),i===void 0&&(i=he(()=>s.screen.width+"|"+s.screen.height+"|"+e.self+"|"+e.anchor+"|"+s.lang.rtl,ee)),P(()=>{E(!0),n("show",te)},e.transitionDuration)}function I(te){g(),B(),le(),P(()=>{B(!0),n("hide",te)},e.transitionDuration)}function le(){r!==void 0&&(r.disconnect(),r=void 0),i!==void 0&&(i(),i=void 0),A(),On(F,"tooltipTemp")}function ee(){ns({targetEl:u.value,offset:e.offset,anchorEl:L.value,anchorOrigin:a.value,selfOrigin:f.value,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function Q(te){if(s.platform.is.mobile===!0){Oi(),document.body.classList.add("non-selectable");const ge=L.value,ve=["touchmove","touchcancel","touchend","click"].map(H=>[ge,H,"delayHide","passiveCapture"]);Xt(F,"tooltipTemp",ve)}P(()=>{X(te)},e.delay)}function N(te){s.platform.is.mobile===!0&&(On(F,"tooltipTemp"),Oi(),setTimeout(()=>{document.body.classList.remove("non-selectable")},10)),P(()=>{_(te)},e.hideDelay)}function ie(){if(e.noParentEvent===!0||L.value===null)return;const te=s.platform.is.mobile===!0?[[L.value,"touchstart","delayShow","passive"]]:[[L.value,"mouseenter","delayShow","passive"],[L.value,"mouseleave","delayHide","passive"]];Xt(F,"anchor",te)}function me(){if(L.value!==null||e.scrollTarget!==void 0){S.value=Yl(L.value,e.scrollTarget);const te=e.noParentEvent===!0?ee:_;R(S.value,te)}}function O(){return c.value===!0?C("div",{...o,ref:u,class:["q-tooltip q-tooltip--style q-position-engine no-pointer-events",o.class],style:[o.style,V.value],role:"tooltip"},ze(t.default)):null}function k(){return C(In,T.value,O)}return Be(le),Object.assign(l.proxy,{updatePosition:ee}),p}}),ip=ke({name:"QBar",props:{...$t,dense:Boolean},setup(e,{slots:t}){const{proxy:{$q:n}}=Se(),o=Ot(e,n),i=b(()=>`q-bar row no-wrap items-center q-bar--${e.dense===!0?"dense":"standard"} q-bar--${o.value===!0?"dark":"light"}`);return()=>C("div",{class:i.value,role:"toolbar"},ze(t.default))}}),rp={ratio:[String,Number]};function lp(e,t){return b(()=>{const n=Number(e.ratio||(t!==void 0?t.value:void 0));return isNaN(n)!==!0&&n>0?{paddingBottom:`${100/n}%`}:null})}const sp=1.7778,Wr=ke({name:"QImg",props:{...rp,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:sp},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 o=se(e.initialRatio),i=lp(e,o),r=Se(),{registerTimeout:l,removeTimeout:s}=co(),{registerTimeout:u,removeTimeout:c}=co(),a=b(()=>e.placeholderSrc!==void 0?{src:e.placeholderSrc}:null),f=b(()=>e.errorSrc!==void 0?{src:e.errorSrc,__qerror:!0}:null),d=[se(null),se(a.value)],h=se(0),g=se(!1),P=se(!1),T=b(()=>`q-img q-img--${e.noNativeMenu===!0?"no-":""}menu`),V=b(()=>({width:e.width,height:e.height})),S=b(()=>`q-img__image ${e.imgClass!==void 0?e.imgClass+" ":""}q-img__image--with${e.noTransition===!0?"out":""}-transition q-img__image--`),R=b(()=>({...e.imgStyle,objectFit:e.fit,objectPosition:e.position}));function A(){if(c(),e.loadingShowDelay===0){g.value=!0;return}u(()=>{g.value=!0},e.loadingShowDelay)}function L(){c(),g.value=!1}function $({target:p}){Ro(r)===!1&&(s(),o.value=p.naturalHeight===0?.5:p.naturalWidth/p.naturalHeight,F(p,1))}function F(p,z){z===1e3||Ro(r)===!0||(p.complete===!0?X(p):l(()=>{F(p,z+1)},50))}function X(p){Ro(r)!==!0&&(h.value=h.value^1,d[h.value].value=null,L(),p.getAttribute("__qerror")!=="true"&&(P.value=!1),n("load",p.currentSrc||p.src))}function _(p){s(),L(),P.value=!0,d[h.value].value=f.value,d[h.value^1].value=a.value,n("error",p)}function E(p){const z=d[p].value,I={key:"img_"+p,class:S.value,style:R.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,...z};return h.value===p?Object.assign(I,{class:I.class+"current",onLoad:$,onError:_}):I.class+="loaded",C("div",{class:"q-img__container absolute-full",key:"img"+p},C("img",I))}function B(){return g.value===!1?C("div",{key:"content",class:"q-img__content absolute-full q-anchor--skip"},ze(t[P.value===!0?"error":"default"])):C("div",{key:"loading",class:"q-img__loading absolute-full flex flex-center"},t.loading!==void 0?t.loading():e.noSpinner===!0?void 0:[C(cr,{color:e.spinnerColor,size:e.spinnerSize})])}{let p=function(){he(()=>e.src||e.srcset||e.sizes?{src:e.src,srcset:e.srcset,sizes:e.sizes}:null,z=>{s(),P.value=!1,z===null?(L(),d[h.value^1].value=a.value):A(),d[h.value].value=z},{immediate:!0})};Vt.value===!0?wt(p):p()}return()=>{const p=[];return i.value!==null&&p.push(C("div",{key:"filler",style:i.value})),d[0].value!==null&&p.push(E(0)),d[1].value!==null&&p.push(E(1)),p.push(C(In,{name:"q-transition--fade"},B)),C("div",{key:"main",class:T.value,style:V.value,role:"img","aria-label":e.alt},p)}}}),vi=ke({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=Ut(Mc,qt);if(n===qt)return console.error("QTimelineEntry needs to be child of QTimeline"),qt;const o=b(()=>`q-timeline__entry q-timeline__entry--${e.side}`+(e.icon!==void 0||e.avatar!==void 0?" q-timeline__entry--icon":"")),i=b(()=>`q-timeline__dot text-${e.color||n.color}`),r=b(()=>n.layout==="comfortable"&&n.side==="left");return()=>{const l=Xl(t.default,[]);if(e.body!==void 0&&l.unshift(e.body),e.heading===!0){const c=[C("div"),C("div"),C(e.tag,{class:"q-timeline__heading-title"},l)];return C("div",{class:"q-timeline__heading"},r.value===!0?c.reverse():c)}let s;e.icon!==void 0?s=[C(We,{class:"row items-center justify-center",name:e.icon})]:e.avatar!==void 0&&(s=[C("img",{class:"q-timeline__dot-img",src:e.avatar})]);const u=[C("div",{class:"q-timeline__subtitle"},[C("span",{},ze(t.subtitle,[e.subtitle]))]),C("div",{class:i.value},s),C("div",{class:"q-timeline__content"},[C("h6",{class:"q-timeline__title"},ze(t.title,[e.title]))].concat(l))];return C("li",{class:o.value},r.value===!0?u.reverse():u)}}}),ap=ke({name:"QTimeline",props:{...$t,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=Se(),o=Ot(e,n.proxy.$q);Zi(Mc,e);const i=b(()=>`q-timeline q-timeline--${e.layout} q-timeline--${e.layout}--${e.side}`+(o.value===!0?" q-timeline--dark":""));return()=>C("ul",{class:i.value},ze(t.default))}}),up={props:{show:{type:Boolean,default:!1}},emits:["hide"]},cp={class:"q-mx-auto",style:{"max-width":"600px"}},fp={class:"text-subtitle q-my-md"};function dp(e,t,n,o,i,r){return we(),De(go,{"model-value":n.show,persistent:"",maximized:""},{default:de(()=>[D(Go,null,{default:de(()=>[D(ip,null,{default:de(()=>[D(os),Ye((we(),De(nt,{dense:"",flat:"",icon:"fa fa-close",onClick:t[0]||(t[0]=l=>e.$emit("hide"))},{default:de(()=>[D(op,{class:"bg-white text-primary"},{default:de(()=>t[1]||(t[1]=[Ee("Close")])),_:1})]),_:1})),[[lt]])]),_:1}),D(tn,null,{default:de(()=>t[2]||(t[2]=[G("div",{class:"text-h4"},"How to use the NER Annotator?",-1)])),_:1}),D(tn,null,{default:de(()=>[G("div",{class:At([e.$q.dark.isActive?"bg-dark":"bg-grey-1","q-pa-lg"])},[G("div",cp,[D(ap,null,{default:de(()=>[D(vi,{subtitle:"Step 1",title:"Load your text file with contents to annotate",icon:"fa fa-upload",color:"blue"},{default:de(()=>[D(Wr,{src:"/assets/step-1.png","spinner-color":"white",class:"rounded-borders",style:{border:"1px solid #ccc",width:"80%"}}),G("p",fp,[D(We,{name:"fa fa-star",color:"amber"}),t[3]||(t[3]=G("strong",null," Tips to prepare the text file ",-1))]),t[4]||(t[4]=G("ul",null,[G("li",null,"Break your content in paragraphs or passages"),G("li",null,[Ee(" Maintain a consistent seperator between the passages. "),G("br"),Ee(" e.g., a newline, an empty line or a text seperator like "),G("code",null,"---")]),G("li",null," For large datasets, break the text into smaller files and tag them seperately ")],-1))]),_:1}),D(vi,{subtitle:"Step 2",title:"Create some tags and start tagging your text",icon:"fa fa-tag",color:"pink"},{default:de(()=>[D(Wr,{src:"/assets/step-2.png","spinner-color":"white",class:"rounded-borders",style:{border:"1px solid #ccc"}}),t[5]||(t[5]=G("ul",{class:"q-my-md"},[G("li",null,[Ee(" Use the "),G("strong",null,"New Tag"),Ee(" button to create new tags ")]),G("li",null,[Ee(" Use the "),G("strong",null,"Edit Tag"),Ee(" button to remove unwanted tags ")]),G("li",null,[Ee(" Click the "),G("strong",null,"Save"),Ee(" button once you are done annotating an entry and to move to the next one ")]),G("li",null,[Ee(" Adjust the "),G("strong",null,"Text Seperator"),Ee(" break your content correctly into entries ")]),G("li",null,[Ee(" Use the "),G("strong",null,"Tags"),Ee(" menu to Export/Import tags to share with your team ")])],-1))]),_:1}),D(vi,{subtitle:"Step 3",title:"Download your annotations as a JSON file that can be used for training",icon:"fa fa-download",color:"green"},{default:de(()=>[D(Wr,{src:"/assets/step-3.png","spinner-color":"white",class:"rounded-borders",style:{border:"1px solid #ccc",width:"70%"}})]),_:1}),D(vi,{subtitle:"Finally",title:"Convert to DocBin format and use it for training",icon:"fa fa-file-archive",color:"purple"},{default:de(()=>[G("p",null,[t[6]||(t[6]=Ee(" See the spaCy documentation ")),G("a",{class:At(e.$q.dark.isActive&&"text-light-blue-4"),href:"https://spacy.io/api/data-formats#json-input"},"here",2),t[7]||(t[7]=Ee(" on how to convert the annotations from JSON to DocBin format. "))])]),_:1})]),_:1})])],2)]),_:1})]),_:1})]),_:1},8,["model-value"])}const hp=it(up,[["render",dp]]),vp={name:"MenuBar",components:{ExportAnnotations:Jg,AboutDialog:ep,HelpDialog:hp,ExitDialog:Af},setup(){const e=Tf();return{notify(t,n,o){e.notify({icon:t,message:n,color:o,position:"top",timeout:2e3,actions:[{label:"Dismiss",color:"white"}]})}}},data:function(){return{promptForProject:!1,newProjectName:"",showAbout:!1,pendingClick:null,showHelp:!1}},computed:{...Bn(["annotations","classes","currentPage"])},methods:{...Yo(["loadClasses","loadAnnotations","setInputSentences","clearAllAnnotations","resetIndex","switchToPage"]),exportTags:async function(){await Ef(JSON.stringify(this.classes),"tags.json")},importTags:function(e){let t=e.target.files[0],n=new FileReader;n.onload=o=>{try{this.loadClasses(JSON.parse(o.target.result)),this.notify("fa fa-check",`${this.classes.length} Tags imported successfully`,"positive")}catch{this.notify("fas fa-exclamation-circle","Invalid file","red-6")}},n.readAsText(t)},openFile:function(e){let t=e.target.files[0],n=new FileReader;n.onload=o=>{this.setInputSentences(o.target.result),this.clearAllAnnotations()},n.readAsText(t),this.resetIndex(),this.currentPage!="annotate"&&this.switchToPage("annotate")},importAnnotations:function(e){let t=e.target.files[0],n=new FileReader;n.onload=o=>{try{this.loadAnnotations(JSON.parse(o.target.result)),this.notify("fa fa-check","Annotations imported successfully","positive")}catch{this.notify("fas fa-exclamation-circle","Invalid file","red-6")}},n.readAsText(t)},toggleDarkMode:function(){this.$q.dark.toggle()}}},mp={class:"q-pa-sm q-pl-md row items-center"},gp={class:"q-ml-md cursor-pointer non-selectable"},pp={class:"q-ml-md cursor-pointer non-selectable"},bp={class:"q-ml-md cursor-pointer non-selectable"},yp={class:"q-ml-md"},wp={class:"q-ml-md cursor-pointer non-selectable"};function _p(e,t,n,o,i,r){const l=vt("export-annotations"),s=vt("about-dialog"),u=vt("help-dialog"),c=vt("exit-dialog");return we(),ot(at,null,[D(Hm,{bordered:""},{default:de(()=>[G("div",mp,[G("div",null,[D(Pi,{size:"xs"},{default:de(()=>t[16]||(t[16]=[G("img",{src:"/assets/icon_32.png"},null,-1)])),_:1}),t[17]||(t[17]=G("span",{class:"q-ml-sm"},[G("strong",null," NER Annotator ")],-1))]),G("div",gp,[t[19]||(t[19]=G("span",null," File ",-1)),D(Ao,null,{default:de(()=>[D(ui,{dense:"",style:{"min-width":"100px"}},{default:de(()=>[Ye((we(),De(zt,{clickable:"",onClick:t[1]||(t[1]=a=>e.pendingClick=e.$refs.file)},{default:de(()=>[D(Dt,null,{default:de(()=>t[18]||(t[18]=[Ee("Open File")])),_:1}),G("input",{ref:"file",type:"file",accept:".txt",style:{display:"none"},onChange:t[0]||(t[0]=(...a)=>r.openFile&&r.openFile(...a))},null,544)]),_:1})),[[lt]])]),_:1})]),_:1})]),G("div",pp,[t[21]||(t[21]=G("span",null," Annotations ",-1)),D(Ao,null,{default:de(()=>[D(ui,{dense:"",style:{"min-width":"100px"}},{default:de(()=>[D(l),Ye((we(),De(zt,{clickable:"",onClick:t[3]||(t[3]=a=>e.pendingClick=e.$refs.file),disable:e.currentPage==="start"},{default:de(()=>[D(Dt,null,{default:de(()=>t[20]||(t[20]=[Ee("Import")])),_:1}),G("input",{ref:"file",type:"file",accept:".json",style:{display:"none"},onChange:t[2]||(t[2]=(...a)=>r.importAnnotations&&r.importAnnotations(...a))},null,544)]),_:1},8,["disable"])),[[lt]])]),_:1})]),_:1})]),G("div",bp,[t[24]||(t[24]=G("span",null," Tags ",-1)),D(Ao,null,{default:de(()=>[D(ui,{dense:"",style:{"min-width":"100px"}},{default:de(()=>[Ye((we(),De(zt,{clickable:"",onClick:t[4]||(t[4]=a=>r.exportTags()),disable:e.currentPage=="start"},{default:de(()=>[D(Dt,null,{default:de(()=>t[22]||(t[22]=[Ee("Export")])),_:1})]),_:1},8,["disable"])),[[lt]]),Ye((we(),De(zt,{clickable:"",onClick:t[6]||(t[6]=a=>e.$refs.file.click()),disable:e.currentPage=="start"},{default:de(()=>[D(Dt,null,{default:de(()=>t[23]||(t[23]=[Ee("Import")])),_:1}),G("input",{ref:"file",type:"file",accept:".json",style:{display:"none"},onChange:t[5]||(t[5]=(...a)=>r.importTags&&r.importTags(...a))},null,544)]),_:1},8,["disable"])),[[lt]])]),_:1})]),_:1})]),D(os),G("div",yp,[D(We,{color:"white",name:e.$q.dark.isActive?"fa fa-sun":"fa fa-moon",class:"cursor-pointer",onClick:r.toggleDarkMode},null,8,["name","onClick"])]),G("div",wp,[t[29]||(t[29]=G("span",null,"Help",-1)),D(Ao,null,{default:de(()=>[D(ui,{dense:"",style:{"min-width":"100px"}},{default:de(()=>[Ye((we(),De(zt,{clickable:"",onClick:t[7]||(t[7]=a=>e.showHelp=!0)},{default:de(()=>[D(Dt,null,{default:de(()=>t[25]||(t[25]=[Ee("How to use?")])),_:1})]),_:1})),[[lt]]),Ye((we(),De(zt,{clickable:"",href:"https://github.com/tecoholic/ner-annotator/discussions",target:"_blank"},{default:de(()=>[D(Dt,null,{default:de(()=>t[26]||(t[26]=[Ee("Forum")])),_:1})]),_:1})),[[lt]]),Ye((we(),De(zt,{clickable:"",href:"https://github.com/tecoholic/ner-annotator/issues",target:"_blank"},{default:de(()=>[D(Dt,null,{default:de(()=>t[27]||(t[27]=[Ee("Report Issue")])),_:1})]),_:1})),[[lt]]),D(jm),Ye((we(),De(zt,{clickable:"",onClick:t[8]||(t[8]=a=>e.showAbout=!0)},{default:de(()=>[D(Dt,null,{default:de(()=>t[28]||(t[28]=[Ee("About")])),_:1})]),_:1})),[[lt]])]),_:1})]),_:1}),D(s,{show:e.showAbout,onHide:t[9]||(t[9]=a=>e.showAbout=!1)},null,8,["show"]),D(u,{show:e.showHelp,onHide:t[10]||(t[10]=a=>e.showHelp=!1)},null,8,["show"])])])]),_:1}),D(go,{modelValue:e.promptForProject,"onUpdate:modelValue":t[13]||(t[13]=a=>e.promptForProject=a),persistent:""},{default:de(()=>[D(Go,{style:{"min-width":"350px"}},{default:de(()=>[D(tn,null,{default:de(()=>t[30]||(t[30]=[G("div",{class:"text-h6"},"Project Name",-1)])),_:1}),D(tn,{class:"q-pt-none"},{default:de(()=>[D(rs,{modelValue:e.newProjectName,"onUpdate:modelValue":t[11]||(t[11]=a=>e.newProjectName=a),dense:"",autofocus:"",onKeyup:t[12]||(t[12]=_v(a=>e.promptForProject=!1,["enter"]))},null,8,["modelValue"])]),_:1}),D(ls,{align:"right",class:"text-primary"},{default:de(()=>[Ye(D(nt,{flat:"",label:"Cancel"},null,512),[[lt]]),Ye(D(nt,{flat:"",label:"Create Project"},null,512),[[lt]])]),_:1})]),_:1})]),_:1},8,["modelValue"]),D(c,{show:e.pendingClick!=null,onHide:t[14]||(t[14]=a=>e.pendingClick=null),onConfirm:t[15]||(t[15]=a=>e.pendingClick.click())},null,8,["show"])],64)}const Sp=it(vp,[["render",_p]]),xp={xs:8,sm:10,md:14,lg:20,xl:24},vs=ke({name:"QChip",props:{...$t,...vo,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:o}}=Se(),i=Ot(e,o),r=mo(e,xp),l=b(()=>e.selected===!0||e.icon!==void 0),s=b(()=>e.selected===!0?e.iconSelected||o.iconSet.chip.selected:e.icon),u=b(()=>e.iconRemove||o.iconSet.chip.remove),c=b(()=>e.disable===!1&&(e.clickable===!0||e.selected!==null)),a=b(()=>{const T=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}`:"")+(T?` text-${T} 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":"")+(c.value===!0?" q-chip--clickable cursor-pointer non-selectable q-hoverable":"")+(e.square===!0?" q-chip--square":"")+(i.value===!0?" q-chip--dark q-dark":"")}),f=b(()=>{const T=e.disable===!0?{tabindex:-1,"aria-disabled":"true"}:{tabindex:e.tabindex||0},V={...T,role:"button","aria-hidden":"false","aria-label":e.removeAriaLabel||o.lang.label.remove};return{chip:T,remove:V}});function d(T){T.keyCode===13&&h(T)}function h(T){e.disable||(n("update:selected",!e.selected),n("click",T))}function g(T){(T.keyCode===void 0||T.keyCode===13)&&(Ve(T),e.disable===!1&&(n("update:modelValue",!1),n("remove")))}function P(){const T=[];c.value===!0&&T.push(C("div",{class:"q-focus-helper"})),l.value===!0&&T.push(C(We,{class:"q-chip__icon q-chip__icon--left",name:s.value}));const V=e.label!==void 0?[C("div",{class:"ellipsis"},[e.label])]:void 0;return T.push(C("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},Dc(t.default,V))),e.iconRight&&T.push(C(We,{class:"q-chip__icon q-chip__icon--right",name:e.iconRight})),e.removable===!0&&T.push(C(We,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:u.value,...f.value.remove,onClick:g,onKeyup:g})),T}return()=>{if(e.modelValue===!1)return;const T={class:a.value,style:r.value};return c.value===!0&&Object.assign(T,f.value.chip,{onClick:h,onKeyup:d}),hl("div",T,P(),"ripple",e.ripple!==!1&&e.disable!==!0,()=>[[ff,e.ripple]])}}});function Jn(e,t,n,o){const i=[];return e.forEach(r=>{o(r)===!0?i.push(r):t.push({failedPropValidation:n,file:r})}),i}function mi(e){e&&e.dataTransfer&&(e.dataTransfer.dropEffect="copy"),Ve(e)}const Cp={multiple:Boolean,accept:String,capture:String,maxFileSize:[Number,String],maxTotalSize:[Number,String],maxFiles:[Number,String],filter:Function},kp=["rejected"];function Ep({editable:e,dnd:t,getFileInput:n,addFilesToQueue:o}){const{props:i,emit:r,proxy:l}=Se(),s=se(null),u=b(()=>i.accept!==void 0?i.accept.split(",").map(S=>(S=S.trim(),S==="*"?"*/":(S.endsWith("/*")&&(S=S.slice(0,S.length-1)),S.toUpperCase()))):null),c=b(()=>parseInt(i.maxFiles,10)),a=b(()=>parseInt(i.maxTotalSize,10));function f(S){if(e.value)if(S!==Object(S)&&(S={target:null}),S.target!==null&&S.target.matches('input[type="file"]')===!0)S.clientX===0&&S.clientY===0&>(S);else{const R=n();R&&R!==S.target&&R.click(S)}}function d(S){e.value&&S&&o(null,S)}function h(S,R,A,L){let $=Array.from(R||S.target.files);const F=[],X=()=>{F.length!==0&&r("rejected",F)};if(i.accept!==void 0&&u.value.indexOf("*/")===-1&&($=Jn($,F,"accept",_=>u.value.some(E=>_.type.toUpperCase().startsWith(E)||_.name.toUpperCase().endsWith(E))),$.length===0))return X();if(i.maxFileSize!==void 0){const _=parseInt(i.maxFileSize,10);if($=Jn($,F,"max-file-size",E=>E.size<=_),$.length===0)return X()}if(i.multiple!==!0&&$.length!==0&&($=[$[0]]),$.forEach(_=>{_.__key=_.webkitRelativePath+_.lastModified+_.name+_.size}),L===!0){const _=A.map(E=>E.__key);$=Jn($,F,"duplicate",E=>_.includes(E.__key)===!1)}if($.length===0)return X();if(i.maxTotalSize!==void 0){let _=L===!0?A.reduce((E,B)=>E+B.size,0):0;if($=Jn($,F,"max-total-size",E=>(_+=E.size,_<=a.value)),$.length===0)return X()}if(typeof i.filter=="function"){const _=i.filter($);$=Jn($,F,"filter",E=>_.includes(E))}if(i.maxFiles!==void 0){let _=L===!0?A.length:0;if($=Jn($,F,"max-files",()=>(_++,_<=c.value)),$.length===0)return X()}if(X(),$.length!==0)return $}function g(S){mi(S),t.value!==!0&&(t.value=!0)}function P(S){Ve(S),(S.relatedTarget!==null||Me.is.safari!==!0?S.relatedTarget!==s.value:document.elementsFromPoint(S.clientX,S.clientY).includes(s.value)===!1)===!0&&(t.value=!1)}function T(S){mi(S);const R=S.dataTransfer.files;R.length!==0&&o(null,R),t.value=!1}function V(S){if(t.value===!0)return C("div",{ref:s,class:`q-${S}__dnd absolute-full`,onDragenter:mi,onDragover:mi,onDragleave:P,onDrop:T})}return Object.assign(l,{pickFiles:f,addFiles:d}),{pickFiles:f,addFiles:d,onDragover:g,onDragleave:P,processFiles:h,getDndNode:V,maxFilesNumber:c,maxTotalSizeNumber:a}}const Za=ke({name:"QFile",inheritAttrs:!1,props:{...sf,...mr,...Cp,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:[...dr,...kp],setup(e,{slots:t,emit:n,attrs:o}){const{proxy:i}=Se(),r=hr(),l=se(null),s=se(!1),u=is(e),{pickFiles:c,onDragover:a,onDragleave:f,processFiles:d,getDndNode:h}=Ep({editable:r.editable,dnd:s,getFileInput:p,addFilesToQueue:z}),g=uf(e),P=b(()=>Object(e.modelValue)===e.modelValue?"length"in e.modelValue?Array.from(e.modelValue):[e.modelValue]:[]),T=b(()=>Fn(P.value)),V=b(()=>P.value.map(Q=>Q.name).join(", ")),S=b(()=>sm(P.value.reduce((Q,N)=>Q+N.size,0))),R=b(()=>({totalSize:S.value,filesNumber:P.value.length,maxFiles:e.maxFiles})),A=b(()=>({tabindex:-1,type:"file",title:"",accept:e.accept,capture:e.capture,name:u.value,...o,id:r.targetUid.value,disabled:r.editable.value!==!0})),L=b(()=>"q-file q-field--auto-height"+(s.value===!0?" q-file--dnd":"")),$=b(()=>e.multiple===!0&&e.append===!0);function F(Q){const N=P.value.slice();N.splice(Q,1),_(N)}function X(Q){const N=P.value.indexOf(Q);N!==-1&&F(N)}function _(Q){n("update:modelValue",e.multiple===!0?Q:Q[0])}function E(Q){Q.keyCode===13&&ut(Q)}function B(Q){(Q.keyCode===13||Q.keyCode===32)&&c(Q)}function p(){return l.value}function z(Q,N){const ie=d(Q,N,P.value,$.value),me=p();me!=null&&(me.value=""),ie!==void 0&&((e.multiple===!0?e.modelValue&&ie.every(O=>P.value.includes(O)):e.modelValue===ie[0])||_($.value===!0?P.value.concat(ie):ie))}function I(){return[C("input",{class:[e.inputClass,"q-file__filler"],style:e.inputStyle})]}function le(){if(t.file!==void 0)return P.value.length===0?I():P.value.map((N,ie)=>t.file({index:ie,file:N,ref:this}));if(t.selected!==void 0)return P.value.length===0?I():t.selected({files:P.value,ref:this});if(e.useChips===!0)return P.value.length===0?I():P.value.map((N,ie)=>C(vs,{key:"file-"+ie,removable:r.editable.value,dense:!0,textColor:e.color,tabindex:e.tabindex,onRemove:()=>{F(ie)}},()=>C("span",{class:"ellipsis",textContent:N.name})));const Q=e.displayValue!==void 0?e.displayValue:V.value;return Q.length!==0?[C("div",{class:e.inputClass,style:e.inputStyle,textContent:Q})]:I()}function ee(){const Q={ref:l,...A.value,...g.value,class:"q-field__input fit absolute-full cursor-pointer",onChange:z};return e.multiple===!0&&(Q.multiple=!0),C("input",Q)}return Object.assign(r,{fieldClass:L,emitValue:_,hasValue:T,inputRef:l,innerValue:P,floatingLabel:b(()=>T.value===!0||Fn(e.displayValue)),computedCounter:b(()=>{if(e.counterLabel!==void 0)return e.counterLabel(R.value);const Q=e.maxFiles;return`${P.value.length}${Q!==void 0?" / "+Q:""} (${S.value})`}),getControlChild:()=>h("file"),getControl:()=>{const Q={ref:r.targetRef,class:"q-field__native row items-center cursor-pointer",tabindex:e.tabindex};return r.editable.value===!0&&Object.assign(Q,{onDragover:a,onDragleave:f,onKeydown:E,onKeyup:B}),C("div",Q,[ee()].concat(le()))}}),Object.assign(i,{removeAtIndex:F,removeFile:X,getNativeElement:()=>l.value}),Vn(i,"nativeEl",()=>l.value),vr(r)}}),Tp={name:"StartPage",emits:["file-loaded"],data(){return{textFile:null,annotationFile:null,highlightTextFileInput:!1}},watch:{textFile(){this.highlightTextFileInput=!1}},methods:{...Yo(["setInputSentences","loadAnnotations"]),onConfirmation(){if(this.highlightTextFileInput=!1,!this.textFile){this.fileSelectionError("No text file selected. Open a text file to start annotating."),this.highlightTextFileInput=!0;return}try{let e=new FileReader;e.addEventListener("load",t=>{this.setInputSentences(t.target.result)}),e.readAsText(this.textFile)}catch{this.fileSelectionError("Invalid text file");return}if(!this.annotationFile){this.$emit("file-loaded");return}try{let e=new FileReader;e.addEventListener("load",t=>{this.loadAnnotations(JSON.parse(t.target.result))}),e.readAsText(this.annotationFile)}catch{this.fileSelectionError("Invalid annotation file");return}this.$emit("file-loaded")},fileSelectionError(e){this.$q.notify({type:"negative",icon:"fas fa-file-circle-exclamation",message:e,position:"center",timeout:5e3,actions:[{label:"Dismiss",color:"white"}]})}}},Ap={class:"q-mx-auto q-my-xl",style:{"max-width":"600px"}},qp={class:"q-my-xl q-py-md column"},$p={class:"row justify-around q-my-xl"},Op={class:"col-5 q-mx-sm"},Pp={class:"col-5 q-mx-sm"},Mp={class:"row justify-center q-my-xl"},Lp={class:"row"};function Rp(e,t,n,o,i,r){return we(),ot("div",Ap,[t[7]||(t[7]=G("h1",{class:"text-h4 q-mb-sm text-center"},"NER Text Annotator",-1)),t[8]||(t[8]=G("p",{class:"text-subtitle1 text-center"}," Annotate text for spaCy NER Model training ",-1)),G("div",qp,[G("div",$p,[G("div",Op,[D(Za,{modelValue:i.textFile,"onUpdate:modelValue":t[0]||(t[0]=l=>i.textFile=l),accept:".txt",filled:"",label:"Load a text file",color:"primary","label-color":i.highlightTextFileInput?"red-8":"","bg-color":i.highlightTextFileInput?"red-1":"",onRejected:t[1]||(t[1]=l=>r.fileSelectionError("Only text files (.txt) can be used for creating annotations."))},{prepend:de(()=>[D(We,{name:"fas fa-file-text",class:At(i.highlightTextFileInput?"text-red-8":"")},null,8,["class"])]),_:1},8,["modelValue","label-color","bg-color"]),G("p",{class:At(["text-caption q-mx-sm q-my-sm",e.$q.dark.isActive?"text-grey-6":"text-grey-8"])}," You can also drag and drop a file into this window! ",2)]),G("div",Pp,[D(Za,{modelValue:i.annotationFile,"onUpdate:modelValue":t[2]||(t[2]=l=>i.annotationFile=l),accept:".json",filled:"",label:"Load annotations",color:"primary",onRejected:t[3]||(t[3]=l=>r.fileSelectionError("Invalid annotation file"))},{prepend:de(()=>[D(We,{name:"fas fa-file-code"})]),_:1},8,["modelValue"]),G("p",{class:At(["text-caption q-mx-sm q-my-sm",e.$q.dark.isActive?"text-grey-6":"text-grey-8"])}," Optional ",2)])]),G("div",Mp,[Ye(D(nt,{label:"Start Annotating",color:"primary",class:"q-py-md",onClick:r.onConfirmation},null,8,["onClick"]),[[lt]])])]),G("div",Lp,[G("p",{class:At(["col-12 text-sm text-center",e.$q.dark.isActive?"text-grey-6":"text-grey-8"])},[D(We,{name:"fa fa-hand-holding-heart",class:"q-mr-sm"}),t[4]||(t[4]=Ee(" Wondering what to do? See ")),t[5]||(t[5]=G("strong",null,"Help",-1)),D(We,{name:"fa fa-arrow-right",class:"q-mx-xs"}),t[6]||(t[6]=G("strong",null,"How to Use?",-1))],2)])])}const Ip=it(Tp,[["render",Rp]]),Fp={name:"Token",props:{token:{type:Object,required:!0}}},Vp=["id"];function Np(e,t,n,o,i,r){return n.token.type==="token"?(we(),ot("span",{key:0,id:"t"+n.token.start,class:"token",style:so({padding:e.$store.state.annotationPrecision=="char"?"0.25rem 0rem":"0.25rem"})},hn(n.token.text==" "?" ":n.token.text),13,Vp)):$n("",!0)}const qf=it(Fp,[["render",Np]]),Bp={name:"TokenBlock",components:{Token:qf},props:{token:{type:Object,requried:!0},backgroundColor:{type:String,required:!1}},emits:["remove-block"],data:function(){return{showClose:!1}}},Dp={class:"tag"};function zp(e,t,n,o,i,r){return we(),ot("mark",{class:At("bg-"+n.backgroundColor)},[(we(!0),ot(at,null,Dl(n.token.tokens,l=>(we(),De(Ju("Token"),{id:"t"+l.start,key:l.start,token:l},null,8,["id","token"]))),128)),G("span",Dp,[Ee(hn(n.token.label)+" ",1),D(nt,{icon:"fa fa-times-circle",round:"",flat:"",size:"xs","text-color":"grey-7",onClick:t[0]||(t[0]=l=>e.$emit("remove-block",n.token.start))})])],2)}const jp=it(Bp,[["render",zp]]),Hp={name:"ClassesBlock",data(){return{showNewClassInput:!1,newClassName:"",showDeleteButtons:!1}},computed:{...Bn(["classes","currentClass","enableKeyboardShortcuts"])},watch:{newClassName(e,t){e!=t&&(this.newClassName=e.toUpperCase())}},created(){document.addEventListener("keydown",this.keypress)},methods:{...Yo(["setCurrentClass"]),...Kg(["createNewClass","deleteClass"]),keypress(e){if(this.enableKeyboardShortcuts){var t=parseInt(e.key);t&&(t>this.classes.length||this.setCurrentClass(t-1))}},async handleRemoveClass(e,t){await this.confirmAction(t)&&this.deleteClass(e)},async confirmAction(e){return new Promise(t=>{const n=confirm("Are you sure you want to remove the tag `"+e+"`?\nNOTE: This will NOT affect previously tagged entities.");t(n)})},saveNewClass(){if(!this.newClassName)return;const e=this;this.createNewClass(this.newClassName).then(()=>{e.showNewClassInput=!1,e.newClassName=""})},onInputKeyup(e){e.key==="Enter"&&this.saveNewClass()}}},Kp={class:"q-pa-md",style:{"border-bottom":"1px solid #ccc"}},Up={class:"row"},Wp={class:"tags"},Qp={class:"q-mx-md"},Gp={class:"buttons"};function Yp(e,t,n,o,i,r){return we(),ot("div",Kp,[G("div",Up,[G("div",Wp,[(we(!0),ot(at,null,Dl(e.classes,(l,s)=>(we(),De(vs,{key:l.id,outline:"",square:"",style:{height:"2rem"},color:l.color.replace("11","12"),clickable:"",removable:i.showDeleteButtons,onClick:u=>e.setCurrentClass(s),onRemove:u=>r.handleRemoveClass(l.id,l.name)},{default:de(()=>[l.id===e.currentClass.id?(we(),De(Pi,{key:0,color:l.color.replace("11","12"),style:{height:"2rem"},"text-color":"white",icon:"fa fa-check"},null,8,["color"])):$n("",!0),l.id!==e.currentClass.id?(we(),De(Pi,{key:1,color:l.color.replace("11","12"),style:{height:"2rem"},"text-color":"white","font-size":"16px"},{default:de(()=>[Ee(hn(s+1),1)]),_:2},1032,["color"])):$n("",!0),G("p",{class:At(["q-mb-none",e.$q.dark.isActive?"text-grey-3":"text-grey-9"])},hn(l.name),3)]),_:2},1032,["color","removable","onClick","onRemove"]))),128))]),D(os),G("div",Qp,[i.showNewClassInput||e.classes.length===0?(we(),De(rs,{key:0,modelValue:i.newClassName,"onUpdate:modelValue":t[1]||(t[1]=l=>i.newClassName=l),"bottom-slots":"",hint:"Enter a NER Tag and click [+] to add it",dense:"",autofocus:""},{append:de(()=>[D(nt,{round:"",dense:"",flat:"",color:"green-4",icon:"fa fa-plus",onClick:r.saveNewClass},null,8,["onClick"]),D(nt,{round:"",color:"red-4",dense:"",flat:"",icon:"fa fa-times",onClick:t[0]||(t[0]=l=>i.showNewClassInput=!1)})]),_:1},8,["modelValue"])):$n("",!0)]),G("div",Gp,[D(nt,{outline:"",label:"New Tag",class:"q-mr-sm",color:e.$q.dark.isActive?"grey-3":"grey-9",onClick:t[2]||(t[2]=l=>i.showNewClassInput=!0)},null,8,["color"]),D(nt,{outline:"",label:i.showDeleteButtons?"Lock Tags":"Edit Tags",color:e.$q.dark.isActive?"grey-3":"grey-9",onClick:t[3]||(t[3]=l=>i.showDeleteButtons=!i.showDeleteButtons)},null,8,["label","color"])])])])}const Jp=it(Hp,[["render",Yp],["__scopeId","data-v-06257180"]]);class eu{constructor(t){this.classes=t}setTokensAndAnnotation(t,n){if(this.tokens=t.map(s=>({type:"token",start:s[0],end:s[1],text:s[2]})),this.words=t.map(s=>s[2]),n!=null)for(let s=0;su.name.toUpperCase()===r.toUpperCase());l||(l={name:r}),this.addNewBlock(o,i,l)}}addNewBlock(t,n,o){let i=[],r=[],l=nt?n:t;for(let u=0;ul&&c.startl&&g.start=s&&f.push(g)}a.length&&r.push({type:"token-block",start:a[0].start,end:a[a.length-1].end,tokens:a,label:c.label,classId:c.classId,backgroundColor:c.backgroundColor}),i.length&&f.length&&(r.push({type:"token-block",start:i[0].start,end:i[i.length-1].end,tokens:i,label:o&&o.name?o.name:"Unlabelled",classId:o&&o.id?o.id:0,backgroundColor:o&&o.color?o.color:null}),i=[]),f.length&&r.push({type:"token-block",start:f[0].start,end:f[f.length-1].end,tokens:f,label:c.label,classId:c.classId,backgroundColor:c.backgroundColor})}else c.type=="token"&&i.push(c);else c.start>=s&&i.length&&(r.push({type:"token-block",start:i[0].start,end:i[i.length-1].end,tokens:i,label:o&&o.name?o.name:"Unlabelled",classId:o&&o.id?o.id:0,backgroundColor:o&&o.color?o.color:null}),i=[]),r.push(c)}i.length&&r.push({type:"token-block",start:i[0].start,end:i[i.length-1].end,tokens:i,label:o&&o.name?o.name:"Unlabelled",classId:o&&o.id?o.id:0,backgroundColor:o&&o.color?o.color:null}),this.tokens=r}removeBlock(t){let n=[];for(let o=0;o\"\']*)\s*$/,"$1 $2$3 "],[/([?!])/g," $1 "],[/([^'])' /g,"$1 ' "]],this.PARENS_BRACKETS=[/([\]\[\(\){}<>])/g," $1 "],this.CONVERT_PARENTHESES=[[/\(/,"-LRB-"],[/\)/,"-RRB-"],[/\[/,"-LSB-"],[/\]/,"-RSB-"],[/{/,"-LCB-"],[/}/,"-RCB-"]],this.DOUBLE_DASHES=[/--/," -- "],this.ENDING_QUOTES=[[/''/," '' "],[/\"/," '' "],[/([^' ])('[sS]|'[mM]|'[dD]|') /,"$1 $2 "],[/([^' ])('ll|'LL|'re|'RE|'ve|'VE|n't|N'T) /,"$1 $2 "]],this._contractions=new eb,this.CONTRACTIONS2=this._contractions.CONTRACTIONS2.map(e=>new RegExp(e,"i")),this.CONTRACTIONS3=this._contractions.CONTRACTIONS3.map(e=>new RegExp(e,"i"))}tokenize(e,t=!1){for(let i of this.STARTING_QUOTES){var[n,o]=[...i];e=e.replace(n,o)}for(let i of this.PUNCTUATION){var[n,o]=[...i];e=e.replace(n,o)}var[n,o]=[...this.PARENS_BRACKETS];if(e=e.replace(n,o),t)for(let i of this.CONVERT_PARENTHESES){var[n,o]=[...i];e=e.replace(n,o)}var[n,o]=[...this.DOUBLE_DASHES];e=e.replace(n,o),e=" "+e+" ";for(let i of this.ENDING_QUOTES){var[n,o]=[...i];e=e.replace(n,o)}for(let i of this.CONTRACTIONS2)e=e.replace(i," $1 $2 ");for(let i of this.CONTRACTIONS3)e=e.replace(i," $1 $2 ");return e.trim().split(/\s+/)}span_tokenize(e){let t=this.tokenize(e),n;if(e.includes('"')||e.includes("''")){let o=[...e.matchAll(/``|'{2}|\"/g)].map(i=>i[0]);n=t.map(i=>['"',"``","''"].indexOf(i)!==-1?o.splice(0,1)[0]:i)}else n=t;return Zp(n,e)}tokenize_sents(e){return e.map(t=>this.tokenize(t))}*span_tokenize_sents(e){for(let t of e)yield this.span_tokenize(t)}},nb=tb;const ob=Xp(nb),ib={name:"AnnotationPage",components:{Token:qf,TokenBlock:jp,ClassesBlock:Jp},data:function(){return{tm:new eu([]),currentSentence:{},redone:"",tokenizer:new ob}},computed:{...Bn(["annotations","classes","currentClass","currentIndex","inputSentences","enableKeyboardShortcuts","annotationPrecision"])},watch:{inputSentences(){this.resetIndex(),this.tokenizeCurrentSentence()},annotations(){this.currentAnnotation!=this.annotations[this.currentIndex]&&this.tokenizeCurrentSentence()},classes(){this.tokenizeCurrentSentence()},annotationPrecision(){this.tokenizeCurrentSentence()}},created(){this.inputSentences.length&&this.tokenizeCurrentSentence(),document.addEventListener("mouseup",this.selectTokens),document.addEventListener("keydown",this.keypress)},beforeUnmount(){document.removeEventListener("mouseup",this.selectTokens),document.removeEventListener("keydown",this.keypress)},methods:{...Yo(["nextSentence","previousSentence","resetIndex"]),keypress(e){this.enableKeyboardShortcuts&&(e.keyCode==32?this.saveTags():e.keyCode==39?this.skipCurrentSentence():e.keyCode==37?this.backOneSentence():(e.keyCode==82||e.keyCode==27)&&this.resetBlocks(),e.stopPropagation())},tokenizeCurrentSentence(){if(this.currentIndex==this.inputSentences.length)return;this.currentSentence=this.inputSentences[this.currentIndex],this.currentAnnotation=this.annotations[this.currentIndex];let e,t;if(this.$store.state.annotationPrecision=="char"){e=this.currentSentence.text.split(""),t=[];for(let o=0;o[t[i][0],t[i][1],o]);this.tm=new eu(this.classes),this.tm.setTokensAndAnnotation(n,this.currentAnnotation)},selectTokens(){let e=document.getSelection();if(e.anchorOffset===e.focusOffset&&e.anchorNode===e.focusNode)return;const t=e.getRangeAt(0),n=e.getRangeAt(e.rangeCount-1);let o,i;try{o=parseInt(t.startContainer.parentElement.id.replace("t",""));let r=parseInt(n.endContainer.parentElement.id.replace("t",""));if(i=r+n.endOffset,!i){const s=n.endContainer.parentNode.previousSibling;r=parseInt(s.parentElement.id.replace("t","")),i=r+n.endOffset}}catch{return}if(!this.classes.length&&e.anchorNode){alert("There are no Tags available. Kindly add some Tags before tagging."),e.empty();return}this.tm.addNewBlock(o,i,this.currentClass),e.empty()},onRemoveBlock(e){this.tm.removeBlock(e)},resetBlocks(){this.tm.resetBlocks()},skipCurrentSentence(){this.nextSentence(),this.tokenizeCurrentSentence()},backOneSentence(){this.previousSentence(),this.tokenizeCurrentSentence()},saveTags(){this.$store.commit("addAnnotation",{text:this.currentSentence.text,entities:this.tm.exportAsAnnotation()}),this.nextSentence(),this.tokenizeCurrentSentence()}}},rb={class:"q-pa-lg",style:{height:"60vh","overflow-y":"scroll"}},lb={class:"q-pa-md",style:{"border-top":"1px solid #ccc"}};function sb(e,t,n,o,i,r){const l=vt("classes-block");return we(),ot("div",null,[D(l),G("div",rb,[(we(!0),ot(at,null,Dl(e.tm.tokens,s=>(we(),De(Ju(s.type==="token"?"Token":"TokenBlock"),{id:"t"+s.start,key:s.start,token:s,"background-color":s.backgroundColor,onRemoveBlock:r.onRemoveBlock},null,40,["id","token","background-color","onRemoveBlock"]))),128))]),G("div",lb,[D(nt,{color:"red",outline:"",class:"q-mx-sm",label:"Reset",onClick:r.resetBlocks},null,8,["onClick"]),D(nt,{class:"q-mx-sm",color:e.$q.dark.isActive?"grey-3":"grey-9",outline:"",disabled:e.currentIndex==0,label:"Back",onClick:r.backOneSentence},null,8,["color","disabled","onClick"]),D(nt,{class:"q-mx-sm",color:e.$q.dark.isActive?"grey-3":"grey-9",outline:"",label:"Skip",onClick:r.skipCurrentSentence},null,8,["color","onClick"]),D(nt,{class:"q-mx-sm",color:"green-7",outline:"",label:"Save",onClick:r.saveTags},null,8,["onClick"])])])}const ab=it(ib,[["render",sb]]),ub={xs:2,sm:4,md:6,lg:10,xl:14};function tu(e,t,n){return{transform:t===!0?`translateX(${n.lang.rtl===!0?"-":""}100%) scale3d(${-e},1,1)`:`scale3d(${e},1,1)`}}const cb=ke({name:"QLinearProgress",props:{...$t,...vo,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}=Se(),o=Ot(e,n.$q),i=mo(e,ub),r=b(()=>e.indeterminate===!0||e.query===!0),l=b(()=>e.reverse!==e.query),s=b(()=>({...i.value!==null?i.value:{},"--q-linear-progress-speed":`${e.animationSpeed}ms`})),u=b(()=>"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":"")),c=b(()=>tu(e.buffer!==void 0?e.buffer:1,l.value,n.$q)),a=b(()=>`with${e.instantFeedback===!0?"out":""}-transition`),f=b(()=>`q-linear-progress__track absolute-full q-linear-progress__track--${a.value} q-linear-progress__track--${o.value===!0?"dark":"light"}`+(e.trackColor!==void 0?` bg-${e.trackColor}`:"")),d=b(()=>tu(r.value===!0?1:e.value,l.value,n.$q)),h=b(()=>`q-linear-progress__model absolute-full q-linear-progress__model--${a.value} q-linear-progress__model--${r.value===!0?"in":""}determinate`),g=b(()=>({width:`${e.value*100}%`})),P=b(()=>`q-linear-progress__stripe absolute-${e.reverse===!0?"right":"left"} q-linear-progress__stripe--${a.value}`);return()=>{const T=[C("div",{class:f.value,style:c.value}),C("div",{class:h.value,style:d.value})];return e.stripe===!0&&r.value===!1&&T.push(C("div",{class:P.value,style:g.value})),C("div",{class:u.value,style:s.value,role:"progressbar","aria-valuemin":0,"aria-valuemax":1,"aria-valuenow":e.indeterminate===!0?void 0:e.value},Zt(t.default,T))}}}),fb={name:"ProgressBar",props:{completed:{type:Number,required:!0,default:0},total:{type:Number,required:!0}},computed:{completedPercent(){return parseInt(this.completed/this.total*100)}}},db={class:"q-mx-md"},hb={class:"is-size-6 q-mb-sm"};function vb(e,t,n,o,i,r){return we(),ot("div",db,[G("p",hb," Tagging Progress ("+hn(n.completed)+"/"+hn(n.total)+") ",1),D(cb,{rounded:"",size:"md",color:"primary",value:n.completed/n.total},null,8,["value"])])}const mb=it(fb,[["render",vb]]),gb=ke({name:"QField",inheritAttrs:!1,props:{...fr,tag:{type:String,default:"label"}},emits:dr,setup(){return vr(hr({tagProp:!0}))}}),pb=ke({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(e,{slots:t}){const n=b(()=>parseInt(e.lines,10)),o=b(()=>"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":"")),i=b(()=>e.lines!==void 0&&n.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":n.value}:null);return()=>C("div",{style:i.value,class:o.value},ze(t.default))}});let Di=!1;{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,Di=e.scrollLeft>=0,e.remove()}const Mt=1e3,bb=["start","center","end","start-force","center-force","end-force"],$f=Array.prototype.filter,yb=window.getComputedStyle(document.body).overflowAnchor===void 0?bt: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||[];$f.call(n,i=>i.dataset&&i.dataset.qVsAnchor!==void 0).forEach(i=>{delete i.dataset.qVsAnchor});const o=n[t];o&&o.dataset&&(o.dataset.qVsAnchor="")}))};function lo(e,t){return e+t}function Gr(e,t,n,o,i,r,l,s){const u=e===window?document.scrollingElement||document.documentElement:e,c=i===!0?"offsetWidth":"offsetHeight",a={scrollStart:0,scrollViewSize:-l-s,scrollMaxSize:0,offsetStart:-l,offsetEnd:-s};if(i===!0?(e===window?(a.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,a.scrollViewSize+=document.documentElement.clientWidth):(a.scrollStart=u.scrollLeft,a.scrollViewSize+=u.clientWidth),a.scrollMaxSize=u.scrollWidth,r===!0&&(a.scrollStart=(Di===!0?a.scrollMaxSize-a.scrollViewSize:0)-a.scrollStart)):(e===window?(a.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,a.scrollViewSize+=document.documentElement.clientHeight):(a.scrollStart=u.scrollTop,a.scrollViewSize+=u.clientHeight),a.scrollMaxSize=u.scrollHeight),n!==null)for(let f=n.previousElementSibling;f!==null;f=f.previousElementSibling)f.classList.contains("q-virtual-scroll--skip")===!1&&(a.offsetStart+=f[c]);if(o!==null)for(let f=o.nextElementSibling;f!==null;f=f.nextElementSibling)f.classList.contains("q-virtual-scroll--skip")===!1&&(a.offsetEnd+=f[c]);if(t!==e){const f=u.getBoundingClientRect(),d=t.getBoundingClientRect();i===!0?(a.offsetStart+=d.left-f.left,a.offsetEnd-=d.width):(a.offsetStart+=d.top-f.top,a.offsetEnd-=d.height),e!==window&&(a.offsetStart+=a.scrollStart),a.offsetEnd+=a.scrollMaxSize-a.offsetStart}return a}function nu(e,t,n,o){t==="end"&&(t=(e===window?document.body:e)[n===!0?"scrollWidth":"scrollHeight"]),e===window?n===!0?(o===!0&&(t=(Di===!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?(o===!0&&(t=(Di===!0?e.scrollWidth-e.offsetWidth:0)-t),e.scrollLeft=t):e.scrollTop=t}function Co(e,t,n,o){if(n>=o)return 0;const i=t.length,r=Math.floor(n/Mt),l=Math.floor((o-1)/Mt)+1;let s=e.slice(r,l).reduce(lo,0);return n%Mt!==0&&(s-=t.slice(r*Mt,n).reduce(lo,0)),o%Mt!==0&&o!==i&&(s-=t.slice(o,l*Mt).reduce(lo,0)),s}const wb={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]},ou={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,...wb};function _b({virtualScrollLength:e,getVirtualScrollTarget:t,getVirtualScrollEl:n,virtualScrollItemSizeComputed:o}){const i=Se(),{props:r,emit:l,proxy:s}=i,{$q:u}=s;let c,a,f,d=[],h;const g=se(0),P=se(0),T=se({}),V=se(null),S=se(null),R=se(null),A=se({from:0,to:0}),L=b(()=>r.tableColspan!==void 0?r.tableColspan:100);o===void 0&&(o=b(()=>r.virtualScrollItemSize));const $=b(()=>o.value+";"+r.virtualScrollHorizontal),F=b(()=>$.value+";"+r.virtualScrollSliceRatioBefore+";"+r.virtualScrollSliceRatioAfter);he(F,()=>{ee()}),he($,X);function X(){le(a,!0)}function _(O){le(O===void 0?a:O)}function E(O,k){const te=t();if(te==null||te.nodeType===8)return;const ge=Gr(te,n(),V.value,S.value,r.virtualScrollHorizontal,u.lang.rtl,r.virtualScrollStickySizeStart,r.virtualScrollStickySizeEnd);f!==ge.scrollViewSize&&ee(ge.scrollViewSize),p(te,ge,Math.min(e.value-1,Math.max(0,parseInt(O,10)||0)),0,bb.indexOf(k)!==-1?k:a!==-1&&O>a?"end":"start")}function B(){const O=t();if(O==null||O.nodeType===8)return;const k=Gr(O,n(),V.value,S.value,r.virtualScrollHorizontal,u.lang.rtl,r.virtualScrollStickySizeStart,r.virtualScrollStickySizeEnd),te=e.value-1,ge=k.scrollMaxSize-k.offsetStart-k.offsetEnd-P.value;if(c===k.scrollStart)return;if(k.scrollMaxSize<=0){p(O,k,0,0);return}f!==k.scrollViewSize&&ee(k.scrollViewSize),z(A.value.from);const ve=Math.floor(k.scrollMaxSize-Math.max(k.scrollViewSize,k.offsetEnd)-Math.min(h[te],k.scrollViewSize/2));if(ve>0&&Math.ceil(k.scrollStart)>=ve){p(O,k,te,k.scrollMaxSize-k.offsetEnd-d.reduce(lo,0));return}let H=0,ae=k.scrollStart-k.offsetStart,_e=ae;if(ae<=ge&&ae+k.scrollViewSize>=g.value)ae-=g.value,H=A.value.from,_e=ae;else for(let ne=0;ae>=d[ne]&&H0&&H-k.scrollViewSize?(H++,_e=ae):_e=h[H]+ae;p(O,k,H,_e)}function p(O,k,te,ge,ve){const H=typeof ve=="string"&&ve.indexOf("-force")!==-1,ae=H===!0?ve.replace("-force",""):ve,_e=ae!==void 0?ae:"start";let ne=Math.max(0,te-T.value[_e]),Te=ne+T.value.total;Te>e.value&&(Te=e.value,ne=Math.max(0,Te-T.value.total)),c=k.scrollStart;const Je=ne!==A.value.from||Te!==A.value.to;if(Je===!1&&ae===void 0){N(te);return}const{activeElement:dt}=document,m=R.value;Je===!0&&m!==null&&m!==dt&&m.contains(dt)===!0&&(m.addEventListener("focusout",I),setTimeout(()=>{m!==null&&m.removeEventListener("focusout",I)})),yb(m,te-ne);const y=ae!==void 0?h.slice(ne,te).reduce(lo,0):0;if(Je===!0){const M=Te>=A.value.from&&ne<=A.value.to?A.value.to:Te;A.value={from:ne,to:M},g.value=Co(d,h,0,ne),P.value=Co(d,h,Te,e.value),requestAnimationFrame(()=>{A.value.to!==Te&&c===k.scrollStart&&(A.value={from:A.value.from,to:Te},P.value=Co(d,h,Te,e.value))})}requestAnimationFrame(()=>{if(c!==k.scrollStart)return;Je===!0&&z(ne);const M=h.slice(ne,te).reduce(lo,0),J=M+k.offsetStart+g.value,K=J+h[te];let Y=J+ge;if(ae!==void 0){const oe=M-y,Z=k.scrollStart+oe;Y=H!==!0&&Zne.classList&&ne.classList.contains("q-virtual-scroll--skip")===!1),ge=te.length,ve=r.virtualScrollHorizontal===!0?ne=>ne.getBoundingClientRect().width:ne=>ne.offsetHeight;let H=O,ae,_e;for(let ne=0;ne=ge;H--)h[H]=te;const ve=Math.floor((e.value-1)/Mt);d=[];for(let H=0;H<=ve;H++){let ae=0;const _e=Math.min((H+1)*Mt,e.value);for(let ne=H*Mt;ne<_e;ne++)ae+=h[ne];d.push(ae)}a=-1,c=void 0,g.value=Co(d,h,0,A.value.from),P.value=Co(d,h,A.value.to,e.value),O>=0?(z(A.value.from),Fe(()=>{E(O)})):ie()}function ee(O){if(O===void 0&&typeof window<"u"){const ae=t();ae!=null&&ae.nodeType!==8&&(O=Gr(ae,n(),V.value,S.value,r.virtualScrollHorizontal,u.lang.rtl,r.virtualScrollStickySizeStart,r.virtualScrollStickySizeEnd).scrollViewSize)}f=O;const k=parseFloat(r.virtualScrollSliceRatioBefore)||0,te=parseFloat(r.virtualScrollSliceRatioAfter)||0,ge=1+k+te,ve=O===void 0||O<=0?1:Math.ceil(O/o.value),H=Math.max(1,ve,Math.ceil((r.virtualScrollSliceSize>0?r.virtualScrollSliceSize:10)/ge));T.value={total:Math.ceil(H*ge),start:Math.ceil(H*k),center:Math.ceil(H*(.5+k)),end:Math.ceil(H*(1+k)),view:ve}}function Q(O,k){const te=r.virtualScrollHorizontal===!0?"width":"height",ge={["--q-virtual-scroll-item-"+te]:o.value+"px"};return[O==="tbody"?C(O,{class:"q-virtual-scroll__padding",key:"before",ref:V},[C("tr",[C("td",{style:{[te]:`${g.value}px`,...ge},colspan:L.value})])]):C(O,{class:"q-virtual-scroll__padding",key:"before",ref:V,style:{[te]:`${g.value}px`,...ge}}),C(O,{class:"q-virtual-scroll__content",key:"content",ref:R,tabindex:-1},k.flat()),O==="tbody"?C(O,{class:"q-virtual-scroll__padding",key:"after",ref:S},[C("tr",[C("td",{style:{[te]:`${P.value}px`,...ge},colspan:L.value})])]):C(O,{class:"q-virtual-scroll__padding",key:"after",ref:S,style:{[te]:`${P.value}px`,...ge}})]}function N(O){a!==O&&(r.onVirtualScroll!==void 0&&l("virtualScroll",{index:O,from:A.value.from,to:A.value.to-1,direction:O{ee()});let me=!1;return Wo(()=>{me=!0}),Vl(()=>{if(me!==!0)return;const O=t();c!==void 0&&O!==void 0&&O!==null&&O.nodeType!==8?nu(O,c,r.virtualScrollHorizontal,u.lang.rtl):E(a)}),Be(()=>{ie.cancel()}),Object.assign(s,{scrollTo:E,reset:X,refresh:_}),{virtualScrollSliceRange:A,virtualScrollSliceSizeComputed:T,setVirtualScrollSize:ee,onVirtualScrollEvt:ie,localResetVirtualScroll:le,padVirtualScroll:Q,scrollTo:E,reset:X,refresh:_}}const iu=e=>["add","add-unique","toggle"].includes(e),Sb=".*+?^${}()|[]\\",xb=Object.keys(fr);function Yr(e,t){if(typeof e=="function")return e;const n=e!==void 0?e:t;return o=>o!==null&&typeof o=="object"&&n in o?o[n]:o}const Of=ke({name:"QSelect",inheritAttrs:!1,props:{...ou,...mr,...fr,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:iu},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:ou.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...dr,"add","remove","inputValue","keyup","keypress","keydown","popupShow","popupHide","filterAbort"],setup(e,{slots:t,emit:n}){const{proxy:o}=Se(),{$q:i}=o,r=se(!1),l=se(!1),s=se(-1),u=se(""),c=se(!1),a=se(!1);let f=null,d=null,h,g,P,T=null,V,S,R,A;const L=se(null),$=se(null),F=se(null),X=se(null),_=se(null),E=is(e),B=cf(ys),p=b(()=>Array.isArray(e.options)?e.options.length:0),z=b(()=>e.virtualScrollItemSize===void 0?e.optionsDense===!0?24:48:e.virtualScrollItemSize),{virtualScrollSliceRange:I,virtualScrollSliceSizeComputed:le,localResetVirtualScroll:ee,padVirtualScroll:Q,onVirtualScrollEvt:N,scrollTo:ie,setVirtualScrollSize:me}=_b({virtualScrollLength:p,getVirtualScrollTarget:Ff,getVirtualScrollEl:ps,virtualScrollItemSizeComputed:z}),O=hr(),k=b(()=>{const w=e.mapOptions===!0&&e.multiple!==!0,ce=e.modelValue!==void 0&&(e.modelValue!==null||w===!0)?e.multiple===!0&&Array.isArray(e.modelValue)?e.modelValue:[e.modelValue]:[];if(e.mapOptions===!0&&Array.isArray(e.options)===!0){const fe=e.mapOptions===!0&&h!==void 0?h:[],xe=ce.map(Le=>Ge(Le,fe));return e.modelValue===null&&w===!0?xe.filter(Le=>Le!==null):xe}return ce}),te=b(()=>{const w={};return xb.forEach(ce=>{const fe=e[ce];fe!==void 0&&(w[ce]=fe)}),w}),ge=b(()=>e.optionsDark===null?O.isDark.value:e.optionsDark),ve=b(()=>Fn(k.value)),H=b(()=>{let w="q-field__input q-placeholder col";return e.hideSelected===!0||k.value.length===0?[w,e.inputClass]:(w+=" q-field__input--padding",e.inputClass===void 0?w:[w,e.inputClass])}),ae=b(()=>(e.virtualScrollHorizontal===!0?"q-virtual-scroll--horizontal":"")+(e.popupContentClass?" "+e.popupContentClass:"")),_e=b(()=>p.value===0),ne=b(()=>k.value.map(w=>j.value(w)).join(", ")),Te=b(()=>e.displayValue!==void 0?e.displayValue:ne.value),Je=b(()=>e.optionsHtml===!0?()=>!0:w=>w!=null&&w.html===!0),dt=b(()=>e.displayValueHtml===!0||e.displayValue===void 0&&(e.optionsHtml===!0||k.value.some(Je.value))),m=b(()=>O.focused.value===!0?e.tabindex:-1),y=b(()=>{const w={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":r.value===!0?"true":"false","aria-controls":`${O.targetUid.value}_lb`};return s.value>=0&&(w["aria-activedescendant"]=`${O.targetUid.value}_${s.value}`),w}),M=b(()=>({id:`${O.targetUid.value}_lb`,role:"listbox","aria-multiselectable":e.multiple===!0?"true":"false"})),J=b(()=>k.value.map((w,ce)=>({index:ce,opt:w,html:Je.value(w),selected:!0,removeAtIndex:ue,toggleOption:qe,tabindex:m.value}))),K=b(()=>{if(p.value===0)return[];const{from:w,to:ce}=I.value;return e.options.slice(w,ce).map((fe,xe)=>{const Le=v.value(fe)===!0,Pe=Wt(fe)===!0,Xe=w+xe,je={clickable:!0,active:Pe,activeClass:Z.value,manualFocus:!0,focused:!1,disable:Le,tabindex:-1,dense:e.optionsDense,dark:ge.value,role:"option","aria-selected":Pe===!0?"true":"false",id:`${O.targetUid.value}_${Xe}`,onClick:()=>{qe(fe)}};return Le!==!0&&(s.value===Xe&&(je.focused=!0),i.platform.is.desktop===!0&&(je.onMousemove=()=>{r.value===!0&&Oe(Xe)})),{index:Xe,opt:fe,html:Je.value(fe),label:j.value(fe),selected:je.active,focused:je.focused,toggleOption:qe,setOptionIndex:Oe,itemProps:je}})}),Y=b(()=>e.dropdownIcon!==void 0?e.dropdownIcon:i.iconSet.arrow.dropdown),oe=b(()=>e.optionsCover===!1&&e.outlined!==!0&&e.standout!==!0&&e.borderless!==!0&&e.rounded!==!0),Z=b(()=>e.optionsSelectedClass!==void 0?e.optionsSelectedClass:e.color!==void 0?`text-${e.color}`:""),U=b(()=>Yr(e.optionValue,"value")),j=b(()=>Yr(e.optionLabel,"label")),v=b(()=>Yr(e.optionDisable,"disable")),x=b(()=>k.value.map(U.value)),q=b(()=>{const w={onInput:ys,onChange:B,onKeydown:gs,onKeyup:St,onKeypress:yo,onFocus:bo,onClick(ce){g===!0&>(ce)}};return w.onCompositionstart=w.onCompositionupdate=w.onCompositionend=B,w});he(k,w=>{h=w,e.useInput===!0&&e.fillInput===!0&&e.multiple!==!0&&O.innerLoading.value!==!0&&(l.value!==!0&&r.value!==!0||ve.value!==!0)&&(P!==!0&&Hn(),(l.value===!0||r.value===!0)&&Dn(""))},{immediate:!0}),he(()=>e.fillInput,Hn),he(r,pr),he(p,Gf);function W(w){return e.emitValue===!0?U.value(w):w}function re(w){if(w!==-1&&w=e.maxValues)return;const xe=e.modelValue.slice();n("add",{index:xe.length,value:fe}),xe.push(fe),n("update:modelValue",xe)}function qe(w,ce){if(O.editable.value!==!0||w===void 0||v.value(w)===!0)return;const fe=U.value(w);if(e.multiple!==!0){ce!==!0&&(wo(e.fillInput===!0?j.value(w):"",!0,!0),wn()),$.value!==null&&$.value.focus(),(k.value.length===0||fn(U.value(k.value[0]),fe)!==!0)&&n("update:modelValue",e.emitValue===!0?fe:w);return}if((g!==!0||c.value===!0)&&O.focus(),bo(),k.value.length===0){const Pe=e.emitValue===!0?fe:w;n("add",{index:0,value:Pe}),n("update:modelValue",e.multiple===!0?[Pe]:Pe);return}const xe=e.modelValue.slice(),Le=x.value.findIndex(Pe=>fn(Pe,fe));if(Le!==-1)n("remove",{index:Le,value:xe.splice(Le,1)[0]});else{if(e.maxValues!==void 0&&xe.length>=e.maxValues)return;const Pe=e.emitValue===!0?fe:w;n("add",{index:xe.length,value:Pe}),xe.push(Pe)}n("update:modelValue",xe)}function Oe(w){if(i.platform.is.desktop!==!0)return;const ce=w!==-1&&w=0?j.value(e.options[fe]):V,!0))}}function Ge(w,ce){const fe=xe=>fn(U.value(xe),w);return e.options.find(fe)||ce.find(fe)||w}function Wt(w){const ce=U.value(w);return x.value.find(fe=>fn(fe,ce))!==void 0}function bo(w){e.useInput===!0&&$.value!==null&&(w===void 0||$.value===w.target&&w.target.value===ne.value)&&$.value.select()}function rt(w){mn(w,27)===!0&&r.value===!0&&(gt(w),wn(),Hn()),n("keyup",w)}function St(w){const{value:ce}=w.target;if(w.keyCode!==void 0){rt(w);return}if(w.target.value="",f!==null&&(clearTimeout(f),f=null),d!==null&&(clearTimeout(d),d=null),Hn(),typeof ce=="string"&&ce.length!==0){const fe=ce.toLocaleLowerCase(),xe=Pe=>{const Xe=e.options.find(je=>String(Pe.value(je)).toLocaleLowerCase()===fe);return Xe===void 0?!1:(k.value.indexOf(Xe)===-1?qe(Xe):wn(),!0)},Le=Pe=>{xe(U)!==!0&&Pe!==!0&&xe(j)!==!0&&Dn(ce,!0,()=>Le(!0))};Le()}else O.clearValue(w)}function yo(w){n("keypress",w)}function gs(w){if(n("keydown",w),Ql(w)===!0)return;const ce=u.value.length!==0&&(e.newValueMode!==void 0||e.onNewValue!==void 0),fe=w.shiftKey!==!0&&e.disableTabSelection!==!0&&e.multiple!==!0&&(s.value!==-1||ce===!0);if(w.keyCode===27){ut(w);return}if(w.keyCode===9&&fe===!1){zn();return}if(w.target===void 0||w.target.id!==O.targetUid.value||O.editable.value!==!0)return;if(w.keyCode===40&&O.innerLoading.value!==!0&&r.value===!1){Ve(w),jn();return}if(w.keyCode===8&&(e.useChips===!0||e.clearable===!0)&&e.hideSelected!==!0&&u.value.length===0){e.multiple===!0&&Array.isArray(e.modelValue)===!0?re(e.modelValue.length-1):e.multiple!==!0&&e.modelValue!==null&&n("update:modelValue",null);return}(w.keyCode===35||w.keyCode===36)&&(typeof u.value!="string"||u.value.length===0)&&(Ve(w),s.value=-1,He(w.keyCode===36?1:-1,e.multiple)),(w.keyCode===33||w.keyCode===34)&&le.value!==void 0&&(Ve(w),s.value=Math.max(-1,Math.min(p.value,s.value+(w.keyCode===33?-1:1)*le.value.view)),He(w.keyCode===33?1:-1,e.multiple)),(w.keyCode===38||w.keyCode===40)&&(Ve(w),He(w.keyCode===38?-1:1,e.multiple));const xe=p.value;if((R===void 0||A0&&e.useInput!==!0&&w.key!==void 0&&w.key.length===1&&w.altKey===!1&&w.ctrlKey===!1&&w.metaKey===!1&&(w.keyCode!==32||R.length!==0)){r.value!==!0&&jn(w);const Le=w.key.toLocaleLowerCase(),Pe=R.length===1&&R[0]===Le;A=Date.now()+1500,Pe===!1&&(Ve(w),R+=Le);const Xe=new RegExp("^"+R.split("").map(br=>Sb.indexOf(br)!==-1?"\\"+br:br).join(".*"),"i");let je=s.value;if(Pe===!0||je<0||Xe.test(j.value(e.options[je]))!==!0)do je=Ca(je+1,-1,xe-1);while(je!==s.value&&(v.value(e.options[je])===!0||Xe.test(j.value(e.options[je]))!==!0));s.value!==je&&Fe(()=>{Oe(je),ie(je),je>=0&&e.useInput===!0&&e.fillInput===!0&&Jo(j.value(e.options[je]),!0)});return}if(!(w.keyCode!==13&&(w.keyCode!==32||e.useInput===!0||R!=="")&&(w.keyCode!==9||fe===!1))){if(w.keyCode!==9&&Ve(w),s.value!==-1&&s.value{if(Xe){if(iu(Xe)!==!0)return}else Xe=e.newValueMode;if(wo("",e.multiple!==!0,!0),Pe==null)return;(Xe==="toggle"?qe:pe)(Pe,Xe==="add-unique"),e.multiple!==!0&&($.value!==null&&$.value.focus(),wn())};if(e.onNewValue!==void 0?n("newValue",u.value,Le):Le(u.value),e.multiple!==!0)return}r.value===!0?zn():O.innerLoading.value!==!0&&jn()}}function ps(){return g===!0?_.value:F.value!==null&&F.value.contentEl!==null?F.value.contentEl:void 0}function Ff(){return ps()}function Vf(){return e.hideSelected===!0?[]:t["selected-item"]!==void 0?J.value.map(w=>t["selected-item"](w)).slice():t.selected!==void 0?[].concat(t.selected()):e.useChips===!0?J.value.map((w,ce)=>C(vs,{key:"option-"+ce,removable:O.editable.value===!0&&v.value(w.opt)!==!0,dense:!0,textColor:e.color,tabindex:m.value,onRemove(){w.removeAtIndex(ce)}},()=>C("span",{class:"ellipsis",[w.html===!0?"innerHTML":"textContent"]:j.value(w.opt)}))):[C("span",{[dt.value===!0?"innerHTML":"textContent"]:Te.value})]}function bs(){if(_e.value===!0)return t["no-option"]!==void 0?t["no-option"]({inputValue:u.value}):void 0;const w=t.option!==void 0?t.option:fe=>C(zt,{key:fe.index,...fe.itemProps},()=>C(Dt,()=>C(pb,()=>C("span",{[fe.html===!0?"innerHTML":"textContent"]:fe.label}))));let ce=Q("div",K.value.map(w));return t["before-options"]!==void 0&&(ce=t["before-options"]().concat(ce)),Zt(t["after-options"],ce)}function Nf(w,ce){const fe=ce===!0?{...y.value,...O.splitAttrs.attributes.value}:void 0,xe={ref:ce===!0?$:void 0,key:"i_t",class:H.value,style:e.inputStyle,value:u.value!==void 0?u.value:"",type:"search",...fe,id:ce===!0?O.targetUid.value:void 0,maxlength:e.maxlength,autocomplete:e.autocomplete,"data-autofocus":w===!0||e.autofocus===!0||void 0,disabled:e.disable===!0,readonly:e.readonly===!0,...q.value};return w!==!0&&g===!0&&(Array.isArray(xe.class)===!0?xe.class=[...xe.class,"no-pointer-events"]:xe.class+=" no-pointer-events"),C("input",xe)}function ys(w){f!==null&&(clearTimeout(f),f=null),d!==null&&(clearTimeout(d),d=null),!(w&&w.target&&w.target.qComposing===!0)&&(Jo(w.target.value||""),P=!0,V=u.value,O.focused.value!==!0&&(g!==!0||c.value===!0)&&O.focus(),e.onFilter!==void 0&&(f=setTimeout(()=>{f=null,Dn(u.value)},e.inputDebounce)))}function Jo(w,ce){u.value!==w&&(u.value=w,ce===!0||e.inputDebounce===0||e.inputDebounce==="0"?n("inputValue",w):d=setTimeout(()=>{d=null,n("inputValue",w)},e.inputDebounce))}function wo(w,ce,fe){P=fe!==!0,e.useInput===!0&&(Jo(w,!0),(ce===!0||fe!==!0)&&(V=w),ce!==!0&&Dn(w))}function Dn(w,ce,fe){if(e.onFilter===void 0||ce!==!0&&O.focused.value!==!0)return;O.innerLoading.value===!0?n("filterAbort"):(O.innerLoading.value=!0,a.value=!0),w!==""&&e.multiple!==!0&&k.value.length!==0&&P!==!0&&w===j.value(k.value[0])&&(w="");const xe=setTimeout(()=>{r.value===!0&&(r.value=!1)},10);T!==null&&clearTimeout(T),T=xe,n("filter",w,(Le,Pe)=>{(ce===!0||O.focused.value===!0)&&T===xe&&(clearTimeout(T),typeof Le=="function"&&Le(),a.value=!1,Fe(()=>{O.innerLoading.value=!1,O.editable.value===!0&&(ce===!0?r.value===!0&&wn():r.value===!0?pr(!0):r.value=!0),typeof Pe=="function"&&Fe(()=>{Pe(o)}),typeof fe=="function"&&Fe(()=>{fe(o)})}))},()=>{O.focused.value===!0&&T===xe&&(clearTimeout(T),O.innerLoading.value=!1,a.value=!1),r.value===!0&&(r.value=!1)})}function Bf(){return C(Ao,{ref:F,class:ae.value,style:e.popupContentStyle,modelValue:r.value,fit:e.menuShrink!==!0,cover:e.optionsCover===!0&&_e.value!==!0&&e.useInput!==!0,anchor:e.menuAnchor,self:e.menuSelf,offset:e.menuOffset,dark:ge.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,noRouteDismiss:e.popupNoRouteDismiss,square:oe.value,transitionShow:e.transitionShow,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,separateClosePopup:!0,...M.value,onScrollPassive:N,onBeforeShow:_s,onBeforeHide:Df,onShow:zf},bs)}function Df(w){Ss(w),zn()}function zf(){me()}function jf(w){gt(w),$.value!==null&&$.value.focus(),c.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function Hf(w){gt(w),Fe(()=>{c.value=!1})}function Kf(){const w=[C(gb,{class:`col-auto ${O.fieldClass.value}`,...te.value,for:O.targetUid.value,dark:ge.value,square:!0,loading:a.value,itemAligned:!1,filled:!0,stackLabel:u.value.length!==0,...O.splitAttrs.listeners.value,onFocus:jf,onBlur:Hf},{...t,rawControl:()=>O.getControl(!0),before:void 0,after:void 0})];return r.value===!0&&w.push(C("div",{ref:_,class:ae.value+" scroll",style:e.popupContentStyle,...M.value,onClick:ut,onScrollPassive:N},bs())),C(go,{ref:X,modelValue:l.value,position:e.useInput===!0?"top":void 0,transitionShow:S,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,noRouteDismiss:e.popupNoRouteDismiss,onBeforeShow:_s,onBeforeHide:Uf,onHide:Wf,onShow:Qf},()=>C("div",{class:"q-select__dialog"+(ge.value===!0?" q-select__dialog--dark q-dark":"")+(c.value===!0?" q-select__dialog--focused":"")},w))}function Uf(w){Ss(w),X.value!==null&&X.value.__updateRefocusTarget(O.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),O.focused.value=!1}function Wf(w){wn(),O.focused.value===!1&&n("blur",w),Hn()}function Qf(){const w=document.activeElement;(w===null||w.id!==O.targetUid.value)&&$.value!==null&&$.value!==w&&$.value.focus(),me()}function zn(){l.value!==!0&&(s.value=-1,r.value===!0&&(r.value=!1),O.focused.value===!1&&(T!==null&&(clearTimeout(T),T=null),O.innerLoading.value===!0&&(n("filterAbort"),O.innerLoading.value=!1,a.value=!1)))}function jn(w){O.editable.value===!0&&(g===!0?(O.onControlFocusin(w),l.value=!0,Fe(()=>{O.focus()})):O.focus(),e.onFilter!==void 0?Dn(u.value):(_e.value!==!0||t["no-option"]!==void 0)&&(r.value=!0))}function wn(){l.value=!1,zn()}function Hn(){e.useInput===!0&&wo(e.multiple!==!0&&e.fillInput===!0&&k.value.length!==0&&j.value(k.value[0])||"",!0,!0)}function pr(w){let ce=-1;if(w===!0){if(k.value.length!==0){const fe=U.value(k.value[0]);ce=e.options.findIndex(xe=>fn(U.value(xe),fe))}ee(ce)}Oe(ce)}function Gf(w,ce){r.value===!0&&O.innerLoading.value===!1&&(ee(-1,!0),Fe(()=>{r.value===!0&&O.innerLoading.value===!1&&(w>ce?ee():pr(!0))}))}function ws(){l.value===!1&&F.value!==null&&F.value.updatePosition()}function _s(w){w!==void 0&>(w),n("popupShow",w),O.hasPopupOpen=!0,O.onControlFocusin(w)}function Ss(w){w!==void 0&>(w),n("popupHide",w),O.hasPopupOpen=!1,O.onControlFocusout(w)}function xs(){g=i.platform.is.mobile!==!0&&e.behavior!=="dialog"?!1:e.behavior!=="menu"&&(e.useInput===!0?t["no-option"]!==void 0||e.onFilter!==void 0||_e.value===!1:!0),S=i.platform.is.ios===!0&&g===!0&&e.useInput===!0?"fade":e.transitionShow}return Nl(xs),Bl(ws),xs(),Be(()=>{f!==null&&clearTimeout(f),d!==null&&clearTimeout(d)}),Object.assign(o,{showPopup:jn,hidePopup:wn,removeAtIndex:re,add:pe,toggleOption:qe,getOptionIndex:()=>s.value,setOptionIndex:Oe,moveOptionSelection:He,filter:Dn,updateMenuPosition:ws,updateInputValue:wo,isOptionSelected:Wt,getEmittingOptionValue:W,isOptionDisabled:(...w)=>v.value.apply(null,w)===!0,getOptionValue:(...w)=>U.value.apply(null,w),getOptionLabel:(...w)=>j.value.apply(null,w)}),Object.assign(O,{innerValue:k,fieldClass:b(()=>`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:L,targetRef:$,hasValue:ve,showPopup:jn,floatingLabel:b(()=>e.hideSelected!==!0&&ve.value===!0||typeof u.value=="number"||u.value.length!==0||Fn(e.displayValue)),getControlChild:()=>{if(O.editable.value!==!1&&(l.value===!0||_e.value!==!0||t["no-option"]!==void 0))return g===!0?Kf():Bf();O.hasPopupOpen===!0&&(O.hasPopupOpen=!1)},controlEvents:{onFocusin(w){O.onControlFocusin(w)},onFocusout(w){O.onControlFocusout(w,()=>{Hn(),zn()})},onClick(w){if(ut(w),g!==!0&&r.value===!0){zn(),$.value!==null&&$.value.focus();return}jn(w)}},getControl:w=>{const ce=Vf(),fe=w===!0||l.value!==!0||g!==!0;if(e.useInput===!0)ce.push(Nf(w,fe));else if(O.editable.value===!0){const Le=fe===!0?y.value:void 0;ce.push(C("input",{ref:fe===!0?$:void 0,key:"d_t",class:"q-select__focus-target",id:fe===!0?O.targetUid.value:void 0,value:Te.value,readonly:!0,"data-autofocus":w===!0||e.autofocus===!0||void 0,...Le,onKeydown:gs,onKeyup:rt,onKeypress:yo})),fe===!0&&typeof e.autocomplete=="string"&&e.autocomplete.length!==0&&ce.push(C("input",{class:"q-select__autocomplete-input",autocomplete:e.autocomplete,tabindex:-1,onKeyup:St}))}if(E.value!==void 0&&e.disable!==!0&&x.value.length!==0){const Le=x.value.map(Pe=>C("option",{value:Pe,selected:!0}));ce.push(C("select",{class:"hidden",name:E.value,multiple:e.multiple},Le))}const xe=e.useInput===!0||fe!==!0?void 0:O.splitAttrs.attributes.value;return C("div",{class:"q-field__native row items-center",...xe,...O.splitAttrs.listeners.value},ce)},getInnerAppend:()=>e.loading!==!0&&a.value!==!0&&e.hideDropdownIcon!==!0?[C(We,{class:"q-select__dropdown-icon"+(r.value===!0?" rotate-180":""),name:Y.value})]:null}),vr(O)}}),Cb={name:"SpitTypeSelector",data(){return{customSeparator:"---",splitOptions:[{label:"New Line",value:"newline"},{label:"An Empty Line",value:"emptyline"},{label:"Custom String",value:"custom"}]}},computed:{...Bn(["annotations"]),splitType:{get(){switch(this.$store.state.separator){case` + */var Tg="store";function po(e,t){Object.keys(e).forEach(function(n){return t(e[n],n)})}function gf(e){return e!==null&&typeof e=="object"}function qg(e){return e&&typeof e.then=="function"}function Og(e,t){return function(){return e(t)}}function pf(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var o=t.indexOf(e);o>-1&&t.splice(o,1)}}function bf(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;gr(e,n,[],e._modules.root,!0),ss(e,n,t)}function ss(e,t,n){var o=e._state,i=e._scope;e.getters={},e._makeLocalGettersCache=Object.create(null);var r=e._wrappedGetters,l={},s={},u=ud(!0);u.run(function(){po(r,function(c,a){l[a]=Og(c,e),s[a]=b(function(){return l[a]()}),Object.defineProperty(e.getters,a,{get:function(){return s[a].value},enumerable:!0})})}),e._state=Ht({data:t}),e._scope=u,e.strict&&Rg(e),o&&n&&e._withCommit(function(){o.data=null}),i&&i.stop()}function gr(e,t,n,o,i){var r=!n.length,l=e._modules.getNamespace(n);if(o.namespaced&&(e._modulesNamespaceMap[l],e._modulesNamespaceMap[l]=o),!r&&!i){var s=as(t,n.slice(0,-1)),u=n[n.length-1];e._withCommit(function(){s[u]=o.state})}var c=o.context=$g(e,l,n);o.forEachMutation(function(a,f){var d=l+f;Pg(e,d,a,c)}),o.forEachAction(function(a,f){var d=a.root?f:l+f,h=a.handler||a;Mg(e,d,h,c)}),o.forEachGetter(function(a,f){var d=l+f;Lg(e,d,a,c)}),o.forEachChild(function(a,f){gr(e,t,n.concat(f),a,i)})}function $g(e,t,n){var o=t==="",i={dispatch:o?e.dispatch:function(r,l,s){var u=Ni(r,l,s),c=u.payload,a=u.options,f=u.type;return(!a||!a.root)&&(f=t+f),e.dispatch(f,c)},commit:o?e.commit:function(r,l,s){var u=Ni(r,l,s),c=u.payload,a=u.options,f=u.type;(!a||!a.root)&&(f=t+f),e.commit(f,c,a)}};return Object.defineProperties(i,{getters:{get:o?function(){return e.getters}:function(){return yf(e,t)}},state:{get:function(){return as(e.state,n)}}}),i}function yf(e,t){if(!e._makeLocalGettersCache[t]){var n={},o=t.length;Object.keys(e.getters).forEach(function(i){if(i.slice(0,o)===t){var r=i.slice(o);Object.defineProperty(n,r,{get:function(){return e.getters[i]},enumerable:!0})}}),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function Pg(e,t,n,o){var i=e._mutations[t]||(e._mutations[t]=[]);i.push(function(l){n.call(e,o.state,l)})}function Mg(e,t,n,o){var i=e._actions[t]||(e._actions[t]=[]);i.push(function(l){var s=n.call(e,{dispatch:o.dispatch,commit:o.commit,getters:o.getters,state:o.state,rootGetters:e.getters,rootState:e.state},l);return qg(s)||(s=Promise.resolve(s)),e._devtoolHook?s.catch(function(u){throw e._devtoolHook.emit("vuex:error",u),u}):s})}function Lg(e,t,n,o){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(r){return n(o.state,o.getters,r.state,r.getters)})}function Rg(e){he(function(){return e._state.data},function(){},{deep:!0,flush:"sync"})}function as(e,t){return t.reduce(function(n,o){return n[o]},e)}function Ni(e,t,n){return gf(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}var Ig="vuex bindings",Ja="vuex:mutations",Kr="vuex:actions",Yn="vuex",Fg=0;function Vg(e,t){Ag({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[Ig]},function(n){n.addTimelineLayer({id:Ja,label:"Vuex Mutations",color:Xa}),n.addTimelineLayer({id:Kr,label:"Vuex Actions",color:Xa}),n.addInspector({id:Yn,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree(function(o){if(o.app===e&&o.inspectorId===Yn)if(o.filter){var i=[];xf(i,t._modules.root,o.filter,""),o.rootNodes=i}else o.rootNodes=[Sf(t._modules.root,"")]}),n.on.getInspectorState(function(o){if(o.app===e&&o.inspectorId===Yn){var i=o.nodeId;yf(t,i),o.state=Dg(jg(t._modules,i),i==="root"?t.getters:t._makeLocalGettersCache,i)}}),n.on.editInspectorState(function(o){if(o.app===e&&o.inspectorId===Yn){var i=o.nodeId,r=o.path;i!=="root"&&(r=i.split("/").filter(Boolean).concat(r)),t._withCommit(function(){o.set(t._state.data,r,o.state.value)})}}),t.subscribe(function(o,i){var r={};o.payload&&(r.payload=o.payload),r.state=i,n.notifyComponentUpdate(),n.sendInspectorTree(Yn),n.sendInspectorState(Yn),n.addTimelineEvent({layerId:Ja,event:{time:Date.now(),title:o.type,data:r}})}),t.subscribeAction({before:function(o,i){var r={};o.payload&&(r.payload=o.payload),o._id=Fg++,o._time=Date.now(),r.state=i,n.addTimelineEvent({layerId:Kr,event:{time:o._time,title:o.type,groupId:o._id,subtitle:"start",data:r}})},after:function(o,i){var r={},l=Date.now()-o._time;r.duration={_custom:{type:"duration",display:l+"ms",tooltip:"Action duration",value:l}},o.payload&&(r.payload=o.payload),r.state=i,n.addTimelineEvent({layerId:Kr,event:{time:Date.now(),title:o.type,groupId:o._id,subtitle:"end",data:r}})}})})}var Xa=8702998,Bg=6710886,Ng=16777215,wf={label:"namespaced",textColor:Ng,backgroundColor:Bg};function _f(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function Sf(e,t){return{id:t||"root",label:_f(t),tags:e.namespaced?[wf]:[],children:Object.keys(e._children).map(function(n){return Sf(e._children[n],t+n+"/")})}}function xf(e,t,n,o){o.includes(n)&&e.push({id:o||"root",label:o.endsWith("/")?o.slice(0,o.length-1):o||"Root",tags:t.namespaced?[wf]:[]}),Object.keys(t._children).forEach(function(i){xf(e,t._children[i],n,o+i+"/")})}function Dg(e,t,n){t=n==="root"?t:t[n];var o=Object.keys(t),i={state:Object.keys(e.state).map(function(l){return{key:l,editable:!0,value:e.state[l]}})};if(o.length){var r=zg(t);i.getters=Object.keys(r).map(function(l){return{key:l.endsWith("/")?_f(l):l,editable:!1,value:wl(function(){return r[l]})}})}return i}function zg(e){var t={};return Object.keys(e).forEach(function(n){var o=n.split("/");if(o.length>1){var i=t,r=o.pop();o.forEach(function(l){i[l]||(i[l]={_custom:{value:{},display:l,tooltip:"Module",abstract:!0}}),i=i[l]._custom.value}),i[r]=wl(function(){return e[n]})}else t[n]=wl(function(){return e[n]})}),t}function jg(e,t){var n=t.split("/").filter(function(o){return o});return n.reduce(function(o,i,r){var l=o[i];if(!l)throw new Error('Missing module "'+i+'" for path "'+t+'".');return r===n.length-1?l:l._children},t==="root"?e:e.root._children)}function wl(e){try{return e()}catch(t){return t}}var Bt=function(t,n){this.runtime=n,this._children=Object.create(null),this._rawModule=t;var o=t.state;this.state=(typeof o=="function"?o():o)||{}},Cf={namespaced:{configurable:!0}};Cf.namespaced.get=function(){return!!this._rawModule.namespaced};Bt.prototype.addChild=function(t,n){this._children[t]=n};Bt.prototype.removeChild=function(t){delete this._children[t]};Bt.prototype.getChild=function(t){return this._children[t]};Bt.prototype.hasChild=function(t){return t in this._children};Bt.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)};Bt.prototype.forEachChild=function(t){po(this._children,t)};Bt.prototype.forEachGetter=function(t){this._rawModule.getters&&po(this._rawModule.getters,t)};Bt.prototype.forEachAction=function(t){this._rawModule.actions&&po(this._rawModule.actions,t)};Bt.prototype.forEachMutation=function(t){this._rawModule.mutations&&po(this._rawModule.mutations,t)};Object.defineProperties(Bt.prototype,Cf);var Bn=function(t){this.register([],t,!1)};Bn.prototype.get=function(t){return t.reduce(function(n,o){return n.getChild(o)},this.root)};Bn.prototype.getNamespace=function(t){var n=this.root;return t.reduce(function(o,i){return n=n.getChild(i),o+(n.namespaced?i+"/":"")},"")};Bn.prototype.update=function(t){kf([],this.root,t)};Bn.prototype.register=function(t,n,o){var i=this;o===void 0&&(o=!0);var r=new Bt(n,o);if(t.length===0)this.root=r;else{var l=this.get(t.slice(0,-1));l.addChild(t[t.length-1],r)}n.modules&&po(n.modules,function(s,u){i.register(t.concat(u),s,o)})};Bn.prototype.unregister=function(t){var n=this.get(t.slice(0,-1)),o=t[t.length-1],i=n.getChild(o);i&&i.runtime&&n.removeChild(o)};Bn.prototype.isRegistered=function(t){var n=this.get(t.slice(0,-1)),o=t[t.length-1];return n?n.hasChild(o):!1};function kf(e,t,n){if(t.update(n),n.modules)for(var o in n.modules){if(!t.getChild(o))return;kf(e.concat(o),t.getChild(o),n.modules[o])}}function Hg(e){return new _t(e)}var _t=function(t){var n=this;t===void 0&&(t={});var o=t.plugins;o===void 0&&(o=[]);var i=t.strict;i===void 0&&(i=!1);var r=t.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new Bn(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=r;var l=this,s=this,u=s.dispatch,c=s.commit;this.dispatch=function(d,h){return u.call(l,d,h)},this.commit=function(d,h,g){return c.call(l,d,h,g)},this.strict=i;var a=this._modules.root.state;gr(this,a,[],this._modules.root),ss(this,a),o.forEach(function(f){return f(n)})},us={state:{configurable:!0}};_t.prototype.install=function(t,n){t.provide(n||Tg,this),t.config.globalProperties.$store=this;var o=this._devtools!==void 0?this._devtools:!1;o&&Vg(t,this)};us.state.get=function(){return this._state.data};us.state.set=function(e){};_t.prototype.commit=function(t,n,o){var i=this,r=Ni(t,n,o),l=r.type,s=r.payload,u={type:l,payload:s},c=this._mutations[l];c&&(this._withCommit(function(){c.forEach(function(f){f(s)})}),this._subscribers.slice().forEach(function(a){return a(u,i.state)}))};_t.prototype.dispatch=function(t,n){var o=this,i=Ni(t,n),r=i.type,l=i.payload,s={type:r,payload:l},u=this._actions[r];if(u){try{this._actionSubscribers.slice().filter(function(a){return a.before}).forEach(function(a){return a.before(s,o.state)})}catch{}var c=u.length>1?Promise.all(u.map(function(a){return a(l)})):u[0](l);return new Promise(function(a,f){c.then(function(d){try{o._actionSubscribers.filter(function(h){return h.after}).forEach(function(h){return h.after(s,o.state)})}catch{}a(d)},function(d){try{o._actionSubscribers.filter(function(h){return h.error}).forEach(function(h){return h.error(s,o.state,d)})}catch{}f(d)})})}};_t.prototype.subscribe=function(t,n){return pf(t,this._subscribers,n)};_t.prototype.subscribeAction=function(t,n){var o=typeof t=="function"?{before:t}:t;return pf(o,this._actionSubscribers,n)};_t.prototype.watch=function(t,n,o){var i=this;return he(function(){return t(i.state,i.getters)},n,Object.assign({},o))};_t.prototype.replaceState=function(t){var n=this;this._withCommit(function(){n._state.data=t})};_t.prototype.registerModule=function(t,n,o){o===void 0&&(o={}),typeof t=="string"&&(t=[t]),this._modules.register(t,n),gr(this,this.state,t,this._modules.get(t),o.preserveState),ss(this,this.state)};_t.prototype.unregisterModule=function(t){var n=this;typeof t=="string"&&(t=[t]),this._modules.unregister(t),this._withCommit(function(){var o=as(n.state,t.slice(0,-1));delete o[t[t.length-1]]}),bf(this)};_t.prototype.hasModule=function(t){return typeof t=="string"&&(t=[t]),this._modules.isRegistered(t)};_t.prototype.hotUpdate=function(t){this._modules.update(t),bf(this,!0)};_t.prototype._withCommit=function(t){var n=this._committing;this._committing=!0,t(),this._committing=n};Object.defineProperties(_t.prototype,us);var Nn=fs(function(e,t){var n={};return cs(t).forEach(function(o){var i=o.key,r=o.val;n[i]=function(){var s=this.$store.state,u=this.$store.getters;if(e){var c=ds(this.$store,"mapState",e);if(!c)return;s=c.context.state,u=c.context.getters}return typeof r=="function"?r.call(this,s,u):s[r]},n[i].vuex=!0}),n}),Yo=fs(function(e,t){var n={};return cs(t).forEach(function(o){var i=o.key,r=o.val;n[i]=function(){for(var s=[],u=arguments.length;u--;)s[u]=arguments[u];var c=this.$store.commit;if(e){var a=ds(this.$store,"mapMutations",e);if(!a)return;c=a.context.commit}return typeof r=="function"?r.apply(this,[c].concat(s)):c.apply(this.$store,[r].concat(s))}}),n}),Ug=fs(function(e,t){var n={};return cs(t).forEach(function(o){var i=o.key,r=o.val;n[i]=function(){for(var s=[],u=arguments.length;u--;)s[u]=arguments[u];var c=this.$store.dispatch;if(e){var a=ds(this.$store,"mapActions",e);if(!a)return;c=a.context.dispatch}return typeof r=="function"?r.apply(this,[c].concat(s)):c.apply(this.$store,[r].concat(s))}}),n});function cs(e){return Kg(e)?Array.isArray(e)?e.map(function(t){return{key:t,val:t}}):Object.keys(e).map(function(t){return{key:t,val:e[t]}}):[]}function Kg(e){return Array.isArray(e)||gf(e)}function fs(e){return function(t,n){return typeof t!="string"?(n=t,t=""):t.charAt(t.length-1)!=="/"&&(t+="/"),e(t,n)}}function ds(e,t,n){var o=e._modulesNamespaceMap[n];return o}async function hs(e,t={},n){return window.__TAURI_INTERNALS__.invoke(e,t,n)}async function Wg(e={}){return typeof e=="object"&&Object.freeze(e),await hs("plugin:dialog|save",{options:e})}var _l;(function(e){e[e.Audio=1]="Audio",e[e.Cache=2]="Cache",e[e.Config=3]="Config",e[e.Data=4]="Data",e[e.LocalData=5]="LocalData",e[e.Document=6]="Document",e[e.Download=7]="Download",e[e.Picture=8]="Picture",e[e.Public=9]="Public",e[e.Video=10]="Video",e[e.Resource=11]="Resource",e[e.Temp=12]="Temp",e[e.AppConfig=13]="AppConfig",e[e.AppData=14]="AppData",e[e.AppLocalData=15]="AppLocalData",e[e.AppCache=16]="AppCache",e[e.AppLog=17]="AppLog",e[e.Desktop=18]="Desktop",e[e.Executable=19]="Executable",e[e.Font=20]="Font",e[e.Home=21]="Home",e[e.Runtime=22]="Runtime",e[e.Template=23]="Template"})(_l||(_l={}));async function Qg(){return hs("plugin:path|resolve_directory",{directory:_l.Document})}const Ef=async(e,t)=>{if(typeof window.rpc>"u"){let n=document.createElement("a");n.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent(e)),n.setAttribute("download",t),n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n)}else Wg({defaultPath:await Qg(),filters:[{extensions:["json"],name:"JSON Files (*.json)"},{name:"All files (*.*)",extensions:["*"]}]}).then(n=>{n&&(n.match(/.*\.json$/)||(n+=".json"),hs("save_file",{filepath:n,contents:e}).then(o=>alert(o)).catch(o=>alert(o)))}).catch(()=>{})},it=(e,t)=>{const n=e.__vccOpts||e;for(const[o,i]of t)n[o]=i;return n},Gg={name:"ExportAnnotations",computed:{...Nn(["annotations","classes"])},methods:{async generateJSONExport(){const e={classes:this.classes.map(n=>n.name),annotations:this.annotations.map(n=>[n.text,{entities:n.entities}])},t=JSON.stringify(e);await Ef(t,"annotations.json")}}};function Yg(e,t,n,o,i,r){return Ye((we(),De(zt,{clickable:"",onClick:t[0]||(t[0]=l=>r.generateJSONExport()),disable:!e.annotations.length},{default:de(()=>[D(Dt,null,{default:de(()=>t[1]||(t[1]=[Ee("Export")])),_:1})]),_:1},8,["disable"])),[[lt]])}const Jg=it(Gg,[["render",Yg]]);function Af(){return Kt(Pc)}const Xg={name:"AboutDialog",props:{show:{type:Boolean,default:!1}},emits:["hide"],data:function(){return{version:"2.0.1"}}};function Zg(e,t,n,o,i,r){return we(),De(go,{"model-value":n.show,onHide:t[0]||(t[0]=l=>e.$emit("hide"))},{default:de(()=>[D(Go,{style:{"min-width":"400px",padding:"10px","border-radius":"10px"}},{default:de(()=>[D(tn,null,{default:de(()=>t[1]||(t[1]=[G("div",{class:"text-h6"},"NER Annotator",-1)])),_:1}),D(tn,{class:"q-pt-none"},{default:de(()=>[G("p",null,[t[2]||(t[2]=G("strong",null,"Version: ",-1)),Ee(hn(e.version),1)]),t[3]||(t[3]=G("p",null,[G("strong",null,"Source: "),G("a",{href:"https://github.com/tecoholic/ner-annotator"}," Github Repository ")],-1)),t[4]||(t[4]=G("p",null,[G("strong",null,"Contributors: "),G("a",{href:"https://github.com/tecoholic/ner-annotator/graphs/contributors"}," See on Github ")],-1)),t[5]||(t[5]=G("ul",null,[G("li",null,[Ee("Author: "),G("a",{href:"https://github.com/tecoholic"},"tecoholic")]),G("li",null,[Ee(" Maintainer: "),G("a",{href:"https://github.com/alvi-khan"},"alvi-khan")])],-1))]),_:1}),D(ls,{align:"right"},{default:de(()=>[Ye(D(nt,{flat:"",label:"OK",color:"primary"},null,512),[[lt]])]),_:1})]),_:1})]),_:1},8,["model-value"])}const ep=it(Xg,[["render",Zg]]),tp={name:"ExitDialog",props:{show:{type:Boolean,default:!1}},emits:["hide","confirm"]};function np(e,t,n,o,i,r){return we(),De(go,{"model-value":n.show,onHide:t[2]||(t[2]=l=>e.$emit("hide"))},{default:de(()=>[D(Go,{style:{"max-width":"400px",padding:"10px","border-radius":"10px"}},{default:de(()=>[D(tn,null,{default:de(()=>t[3]||(t[3]=[G("div",{class:"text-h5"}," Are you sure you want to close this file? ",-1)])),_:1}),D(tn,{class:"text-body1"},{default:de(()=>t[4]||(t[4]=[G("p",null,"All changes made to this file will be lost.",-1),Ee(" If you haven't exported the annotations, please do so before closing the file. ")])),_:1}),D(ls,{align:"right"},{default:de(()=>[Ye(D(nt,{flat:"",label:"Cancel",color:"red",onClick:t[0]||(t[0]=l=>e.$emit("hide"))},null,512),[[lt]]),Ye(D(nt,{flat:"",label:"OK",color:"light-blue",onClick:t[1]||(t[1]=l=>e.$emit("confirm"))},null,512),[[lt]])]),_:1})]),_:1})]),_:1},8,["model-value"])}const Tf=it(tp,[["render",np]]),op=ke({name:"QTooltip",inheritAttrs:!1,props:{...Qc,...lr,...Io,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null},transitionShow:{...Io.transitionShow,default:"jump-down"},transitionHide:{...Io.transitionHide,default:"jump-up"},anchor:{type:String,default:"bottom middle",validator:Fi},self:{type:String,default:"top middle",validator:Fi},offset:{type:Array,default:()=>[14,14],validator:lf},scrollTarget:Gl,delay:{type:Number,default:0},hideDelay:{type:Number,default:0},persistent:Boolean},emits:[...sr],setup(e,{slots:t,emit:n,attrs:o}){let i,r;const l=Se(),{proxy:{$q:s}}=l,u=se(null),c=se(!1),a=b(()=>Vi(e.anchor,s.lang.rtl)),f=b(()=>Vi(e.self,s.lang.rtl)),d=b(()=>e.persistent!==!0),{registerTick:h,removeTick:g}=ts(),{registerTimeout:P}=co(),{transitionProps:A,transitionStyle:V}=es(e),{localScrollTarget:S,changeScrollEvent:R,unconfigureScrollTarget:T}=Yc(e,me),{anchorEl:L,canShow:O,anchorEvents:F}=Gc({showing:c,configureAnchorEl:ie}),{show:X,hide:_}=ar({showing:c,canShow:O,handleShow:z,handleHide:I,hideOnRouteChange:d,processOnMount:!0});Object.assign(F,{delayShow:Q,delayHide:B});const{showPortal:E,hidePortal:N,renderPortal:p}=Zl(l,u,k,"tooltip");if(s.platform.is.mobile===!0){const te={anchorEl:L,innerRef:u,onClickOutside(ve){return _(ve),ve.target.classList.contains("q-dialog__backdrop")&&Ve(ve),!0}},ge=b(()=>e.modelValue===null&&e.persistent!==!0&&c.value===!0);he(ge,ve=>{(ve===!0?rf:Ii)(te)}),Ne(()=>{Ii(te)})}function z(te){E(),h(()=>{r=new MutationObserver(()=>ee()),r.observe(u.value,{attributes:!1,childList:!0,characterData:!0,subtree:!0}),ee(),me()}),i===void 0&&(i=he(()=>s.screen.width+"|"+s.screen.height+"|"+e.self+"|"+e.anchor+"|"+s.lang.rtl,ee)),P(()=>{E(!0),n("show",te)},e.transitionDuration)}function I(te){g(),N(),le(),P(()=>{N(!0),n("hide",te)},e.transitionDuration)}function le(){r!==void 0&&(r.disconnect(),r=void 0),i!==void 0&&(i(),i=void 0),T(),$n(F,"tooltipTemp")}function ee(){ns({targetEl:u.value,offset:e.offset,anchorEl:L.value,anchorOrigin:a.value,selfOrigin:f.value,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function Q(te){if(s.platform.is.mobile===!0){$i(),document.body.classList.add("non-selectable");const ge=L.value,ve=["touchmove","touchcancel","touchend","click"].map(H=>[ge,H,"delayHide","passiveCapture"]);Xt(F,"tooltipTemp",ve)}P(()=>{X(te)},e.delay)}function B(te){s.platform.is.mobile===!0&&($n(F,"tooltipTemp"),$i(),setTimeout(()=>{document.body.classList.remove("non-selectable")},10)),P(()=>{_(te)},e.hideDelay)}function ie(){if(e.noParentEvent===!0||L.value===null)return;const te=s.platform.is.mobile===!0?[[L.value,"touchstart","delayShow","passive"]]:[[L.value,"mouseenter","delayShow","passive"],[L.value,"mouseleave","delayHide","passive"]];Xt(F,"anchor",te)}function me(){if(L.value!==null||e.scrollTarget!==void 0){S.value=Yl(L.value,e.scrollTarget);const te=e.noParentEvent===!0?ee:_;R(S.value,te)}}function $(){return c.value===!0?C("div",{...o,ref:u,class:["q-tooltip q-tooltip--style q-position-engine no-pointer-events",o.class],style:[o.style,V.value],role:"tooltip"},ze(t.default)):null}function k(){return C(In,A.value,$)}return Ne(le),Object.assign(l.proxy,{updatePosition:ee}),p}}),ip=ke({name:"QBar",props:{...Ot,dense:Boolean},setup(e,{slots:t}){const{proxy:{$q:n}}=Se(),o=$t(e,n),i=b(()=>`q-bar row no-wrap items-center q-bar--${e.dense===!0?"dense":"standard"} q-bar--${o.value===!0?"dark":"light"}`);return()=>C("div",{class:i.value,role:"toolbar"},ze(t.default))}}),rp={ratio:[String,Number]};function lp(e,t){return b(()=>{const n=Number(e.ratio||(t!==void 0?t.value:void 0));return isNaN(n)!==!0&&n>0?{paddingBottom:`${100/n}%`}:null})}const sp=1.7778,Wr=ke({name:"QImg",props:{...rp,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:sp},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 o=se(e.initialRatio),i=lp(e,o),r=Se(),{registerTimeout:l,removeTimeout:s}=co(),{registerTimeout:u,removeTimeout:c}=co(),a=b(()=>e.placeholderSrc!==void 0?{src:e.placeholderSrc}:null),f=b(()=>e.errorSrc!==void 0?{src:e.errorSrc,__qerror:!0}:null),d=[se(null),se(a.value)],h=se(0),g=se(!1),P=se(!1),A=b(()=>`q-img q-img--${e.noNativeMenu===!0?"no-":""}menu`),V=b(()=>({width:e.width,height:e.height})),S=b(()=>`q-img__image ${e.imgClass!==void 0?e.imgClass+" ":""}q-img__image--with${e.noTransition===!0?"out":""}-transition q-img__image--`),R=b(()=>({...e.imgStyle,objectFit:e.fit,objectPosition:e.position}));function T(){if(c(),e.loadingShowDelay===0){g.value=!0;return}u(()=>{g.value=!0},e.loadingShowDelay)}function L(){c(),g.value=!1}function O({target:p}){Ro(r)===!1&&(s(),o.value=p.naturalHeight===0?.5:p.naturalWidth/p.naturalHeight,F(p,1))}function F(p,z){z===1e3||Ro(r)===!0||(p.complete===!0?X(p):l(()=>{F(p,z+1)},50))}function X(p){Ro(r)!==!0&&(h.value=h.value^1,d[h.value].value=null,L(),p.getAttribute("__qerror")!=="true"&&(P.value=!1),n("load",p.currentSrc||p.src))}function _(p){s(),L(),P.value=!0,d[h.value].value=f.value,d[h.value^1].value=a.value,n("error",p)}function E(p){const z=d[p].value,I={key:"img_"+p,class:S.value,style:R.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,...z};return h.value===p?Object.assign(I,{class:I.class+"current",onLoad:O,onError:_}):I.class+="loaded",C("div",{class:"q-img__container absolute-full",key:"img"+p},C("img",I))}function N(){return g.value===!1?C("div",{key:"content",class:"q-img__content absolute-full q-anchor--skip"},ze(t[P.value===!0?"error":"default"])):C("div",{key:"loading",class:"q-img__loading absolute-full flex flex-center"},t.loading!==void 0?t.loading():e.noSpinner===!0?void 0:[C(cr,{color:e.spinnerColor,size:e.spinnerSize})])}{let p=function(){he(()=>e.src||e.srcset||e.sizes?{src:e.src,srcset:e.srcset,sizes:e.sizes}:null,z=>{s(),P.value=!1,z===null?(L(),d[h.value^1].value=a.value):T(),d[h.value].value=z},{immediate:!0})};Vt.value===!0?wt(p):p()}return()=>{const p=[];return i.value!==null&&p.push(C("div",{key:"filler",style:i.value})),d[0].value!==null&&p.push(E(0)),d[1].value!==null&&p.push(E(1)),p.push(C(In,{name:"q-transition--fade"},N)),C("div",{key:"main",class:A.value,style:V.value,role:"img","aria-label":e.alt},p)}}}),vi=ke({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=Kt(Mc,qt);if(n===qt)return console.error("QTimelineEntry needs to be child of QTimeline"),qt;const o=b(()=>`q-timeline__entry q-timeline__entry--${e.side}`+(e.icon!==void 0||e.avatar!==void 0?" q-timeline__entry--icon":"")),i=b(()=>`q-timeline__dot text-${e.color||n.color}`),r=b(()=>n.layout==="comfortable"&&n.side==="left");return()=>{const l=Xl(t.default,[]);if(e.body!==void 0&&l.unshift(e.body),e.heading===!0){const c=[C("div"),C("div"),C(e.tag,{class:"q-timeline__heading-title"},l)];return C("div",{class:"q-timeline__heading"},r.value===!0?c.reverse():c)}let s;e.icon!==void 0?s=[C(We,{class:"row items-center justify-center",name:e.icon})]:e.avatar!==void 0&&(s=[C("img",{class:"q-timeline__dot-img",src:e.avatar})]);const u=[C("div",{class:"q-timeline__subtitle"},[C("span",{},ze(t.subtitle,[e.subtitle]))]),C("div",{class:i.value},s),C("div",{class:"q-timeline__content"},[C("h6",{class:"q-timeline__title"},ze(t.title,[e.title]))].concat(l))];return C("li",{class:o.value},r.value===!0?u.reverse():u)}}}),ap=ke({name:"QTimeline",props:{...Ot,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=Se(),o=$t(e,n.proxy.$q);Zi(Mc,e);const i=b(()=>`q-timeline q-timeline--${e.layout} q-timeline--${e.layout}--${e.side}`+(o.value===!0?" q-timeline--dark":""));return()=>C("ul",{class:i.value},ze(t.default))}}),up="/ner-annotator/assets/step-1-DkgUeXE1.png",cp="/ner-annotator/assets/step-2-B_Lc3D-V.png",fp="/ner-annotator/assets/step-3-BA0D2192.png",dp={props:{show:{type:Boolean,default:!1}},emits:["hide"]},hp={class:"q-mx-auto",style:{"max-width":"600px"}},vp={class:"text-subtitle q-my-md"};function mp(e,t,n,o,i,r){return we(),De(go,{"model-value":n.show,persistent:"",maximized:""},{default:de(()=>[D(Go,null,{default:de(()=>[D(ip,null,{default:de(()=>[D(os),Ye((we(),De(nt,{dense:"",flat:"",icon:"fa fa-close",onClick:t[0]||(t[0]=l=>e.$emit("hide"))},{default:de(()=>[D(op,{class:"bg-white text-primary"},{default:de(()=>t[1]||(t[1]=[Ee("Close")])),_:1})]),_:1})),[[lt]])]),_:1}),D(tn,null,{default:de(()=>t[2]||(t[2]=[G("div",{class:"text-h4"},"How to use the NER Annotator?",-1)])),_:1}),D(tn,null,{default:de(()=>[G("div",{class:Tt([e.$q.dark.isActive?"bg-dark":"bg-grey-1","q-pa-lg"])},[G("div",hp,[D(ap,null,{default:de(()=>[D(vi,{subtitle:"Step 1",title:"Load your text file with contents to annotate",icon:"fa fa-upload",color:"blue"},{default:de(()=>[D(Wr,{src:up,"spinner-color":"white",class:"rounded-borders",style:{border:"1px solid #ccc",width:"80%"}}),G("p",vp,[D(We,{name:"fa fa-star",color:"amber"}),t[3]||(t[3]=G("strong",null," Tips to prepare the text file ",-1))]),t[4]||(t[4]=G("ul",null,[G("li",null,"Break your content in paragraphs or passages"),G("li",null,[Ee(" Maintain a consistent seperator between the passages. "),G("br"),Ee(" e.g., a newline, an empty line or a text seperator like "),G("code",null,"---")]),G("li",null," For large datasets, break the text into smaller files and tag them seperately ")],-1))]),_:1}),D(vi,{subtitle:"Step 2",title:"Create some tags and start tagging your text",icon:"fa fa-tag",color:"pink"},{default:de(()=>[D(Wr,{src:cp,"spinner-color":"white",class:"rounded-borders",style:{border:"1px solid #ccc"}}),t[5]||(t[5]=G("ul",{class:"q-my-md"},[G("li",null,[Ee(" Use the "),G("strong",null,"New Tag"),Ee(" button to create new tags ")]),G("li",null,[Ee(" Use the "),G("strong",null,"Edit Tag"),Ee(" button to remove unwanted tags ")]),G("li",null,[Ee(" Click the "),G("strong",null,"Save"),Ee(" button once you are done annotating an entry and to move to the next one ")]),G("li",null,[Ee(" Adjust the "),G("strong",null,"Text Seperator"),Ee(" break your content correctly into entries ")]),G("li",null,[Ee(" Use the "),G("strong",null,"Tags"),Ee(" menu to Export/Import tags to share with your team ")])],-1))]),_:1}),D(vi,{subtitle:"Step 3",title:"Download your annotations as a JSON file that can be used for training",icon:"fa fa-download",color:"green"},{default:de(()=>[D(Wr,{src:fp,"spinner-color":"white",class:"rounded-borders",style:{border:"1px solid #ccc",width:"70%"}})]),_:1}),D(vi,{subtitle:"Finally",title:"Convert to DocBin format and use it for training",icon:"fa fa-file-archive",color:"purple"},{default:de(()=>[G("p",null,[t[6]||(t[6]=Ee(" See the spaCy documentation ")),G("a",{class:Tt(e.$q.dark.isActive&&"text-light-blue-4"),href:"https://spacy.io/api/data-formats#json-input"},"here",2),t[7]||(t[7]=Ee(" on how to convert the annotations from JSON to DocBin format. "))])]),_:1})]),_:1})])],2)]),_:1})]),_:1})]),_:1},8,["model-value"])}const gp=it(dp,[["render",mp]]),pp="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAIqUlEQVQYGZ3BCYydZaHG8f/zvt85c2Y6nZZu2sVSCoSpO0K5ceEmlmhUSmJQAcXdWBdwiVEJXMm9F7EqQUEToqkShWjiCmrRumtU0mCLRQE7BVu6zHS6zXbazpw553vf535jR1ONQnJ/PzGr/45tAgz0gR4Q9IOHbYYl/aWT/PDKvmL7L65e/kCeSmNTpUm2hGScqUiib8EyTuf/3gAyf2VA/J3+50sUzBJ/12N7lZmhpRJLA7ygnX3Fa86dg1vpyEQ7/zSKuxA/xxgUJScwW4eG2LAPJIHNS8oW91+8mnLjexXHp+SHj1o//qPZ8J94/XoCf2MZC6wjgl1ICCdBnk4uz55X67z23B5PlV4SxRsl/Uzol8ALhFO2wtwILxwAiWA7Zkn3n7Oad225P8ZvfsF0OedatHwAbl7HjMAsy1QCkC22i4rkIDRZunjJ8q5icXeknZyB0na2/VLEdqN3JMhfG1FcO0eyyUASmGmwlBhlDrF2t5b2vrW86d1403ZRCcyShbGMqfzKmIpsqAW8ZkFdAgyqFDqlg5HkLwe4anHhtG0EAy8U+qTwPc8/OPTjny3s33TL7d/b0jo8/aYwNLEubt2DHj4iKgWnEWRmmJ8ARxGLM+SuKC3qDpRGErgiCUMNKDFFTXxmV0s7+s/w9RJvoWJDluhzmy8VzyE19v32+h9+4D1U0ivXO0YomGUZkGVH4JilbwquBRKiJmFAnCLAAhsKg+viaU+0eaCTmdeIItkdQMSgcnCiUxucaNyx5pKBx2/8xskgxzv/96rkyy4jMGvgmrVgsGRLCG4HJgW1dnIencqKwhgkURGn2Igoh/nR8xJKwgYKxRDT4ERIQ80aRWR+Z3LlVy66gjtfdFW66HO/Y0bgHxhwxo62d2M+HgTtRNo11jEgwLOoSKJiUbmwR7kmBwOKQWlogjTURDGYSkaT/fv/wHm7H9TxooHuu4/AaSQBApEgUPmUzT3dhWr3H2yV49M5FUFUBPgUFMAns3Rxr3V+NzpOkA5OOA02pRiouALSLjDCAcSMwGl2XnMhMmCBLAP1qCsbhb4zMNqpbd4zGXu7gpJBs8BWJdtuBHTD8uAFhyc8tve4YpSDTMA1CWx+gIXAYGYE/snOay8EmYoRoZVcPnpg6nWGa+585Pjgn4+16S6Us40rqrgSQC2inzE1nD5xxn6etyAxmcREO+QTSZRZdw8c6do60g6qB/L7zznJDPFPbrv8BiYd+K/33gixYP0vvx/OfWiHbjv/HYmPr+J3u/Z+5fwl9beW2QkpYFNRCNHN0eE0Pjoce2pB01l+YLTmP43Xw0SpiUX1fMGaueVu5OK83rKc2wgUqUTMuvXS6yBASpk8eYja3GUyhBRjah84wosvPod1t71rYWti6sF28pmSsm0BCiG6OTqcmmPDMYSobBxk9USbSrLcyextZ70N+E0UUSIZiFRuXX8dFiBQkEK9N0pkkAvo7l4092WPDRx+W9/ShTctXP30/lymDARAIUQ3R4dTc2w4hhAFWFhGns5SO4vSktGCGPxmod9K7AEi4OLWy65jhjBGEUhAAj1DeIPN1e2p9lnzly1gyeqnQXYGApUQopujw6k5NhxDiAJcUcUYRbkiKgJ3QDXJ92BdgNgjCAEMWLYCOGHmIW0EHrH5mILOKludvOLZKzsLVy5OZbsTkBxCdHP0YG6ODccQogBXABkswKAKFVtSzXbHaD7y5w0YHDARMJBlXof4E+Z64z5JJZANWrZmRRFiiDYOIWr82BDN0UMhhCj+ygZlg5hlM0MVsC2pwGTgUsxLA3YAEtAr+asW38JeKbktk4CYU1ZXTxeLVi1RLpNDiBo/NuQT44cVYsTZ5IqtEINjPTqnLCoCDMZGRoAFZFsk8/ZGYQLwHGAr5i1YSQKsuqUIyNkqump53tPPcE7W+MiQj48dEsjOVlEvcr1RD7XofY8erd21vxnD/EYmyM6GlIUBg1KWswkxmL6u/PIF3T6jALZhdVkgCEYtydMybYLqOec53X09RVdPg+bIwTx14mjomtNwUUSlMqWj+0biwd1Hd7z6itUvO/v560ZefNPvL7nymVMrLlk1nfu6chQ4ZYlKDMag0ang7w50L9myu3FRYelmwUJgB7AHGDSMCcrGnEbtyOFDy5avWXnZsaF9N7Zao3PK6eSxx47o8BPHvP/PB/O+hw/EkcHxHw1tWTjCe17B4PH4yc/+vveO7z/WnS9c2g6r55ea33AFjbaC/jJWePtwrdw3EWv1yFrduv6jgLBAgJlhZFCM1HPBydoUJybHr5ueLD812ZwqO61OnJ6cBuRaowhd3fVXjew5tGV6+Vnx3v/4UHrWiva3p0u9tlWqU4uO9UiwcTtBaakRXdajC8O3CiAYxCkGDJgZNvsPDRY7tj1ULl68ZHN3X+PmEFQoyI3ehoHg7CfKdvp178qlDF+wzmuWd6gFXu/o0FX4chsMHUTsCUhyhWDA5pxgKUtOMgk7g/2Rzbfw4ftuYdWLzmS8OV6e1b+KJasWHizq8WSIAUk4O+eUMXzd2VNKnbj1VW/ONqFVqjS8JpvrDZNADQiGnE0yGIOkpeIpvLP/cmbNkdlreZEg2YrITZlnAwcs6Wsf+67PfPRBwBKyAclnAx8EXQkstgGBABsCT0EYYYQLRA2DURJGcAdwAIgL9gZf9ek3MMuWqUSs3aD3AWuAq4XvlP2QcUt4QDyJDeddDrIAA6swO40aiIr3yzzXMAGo7uCO22x6fDNrbtiGLWZJIgCJig3CwWKxzFTgyYgZ4pQViC5BwgbzYaMJUAS5HTKbHt/MjJ0b1yKZWa4kQEAEApCBw0Cz4ClJYCqrAVlEzF0S3wYCdjIiSpxu58a1/E3/DdvAGEiSsZkhwAVPxmCZGbLOt4zsRxDX2iBsKsJ8cee9/DsDG9fyL5hK4MkIMMbMGJGZBt6AOSGIFjawade9/H/9H50/6ZWm+VSWAAAAAElFTkSuQmCC",bp={name:"MenuBar",components:{ExportAnnotations:Jg,AboutDialog:ep,HelpDialog:gp,ExitDialog:Tf},setup(){const e=Af();return{notify(t,n,o){e.notify({icon:t,message:n,color:o,position:"top",timeout:2e3,actions:[{label:"Dismiss",color:"white"}]})}}},data:function(){return{promptForProject:!1,newProjectName:"",showAbout:!1,pendingClick:null,showHelp:!1,appIconUrl:pp}},computed:{...Nn(["annotations","classes","currentPage"])},methods:{...Yo(["loadClasses","loadAnnotations","setInputSentences","clearAllAnnotations","resetIndex","switchToPage"]),exportTags:async function(){await Ef(JSON.stringify(this.classes),"tags.json")},importTags:function(e){let t=e.target.files[0],n=new FileReader;n.onload=o=>{try{this.loadClasses(JSON.parse(o.target.result)),this.notify("fa fa-check",`${this.classes.length} Tags imported successfully`,"positive")}catch{this.notify("fas fa-exclamation-circle","Invalid file","red-6")}},n.readAsText(t)},openFile:function(e){let t=e.target.files[0],n=new FileReader;n.onload=o=>{this.setInputSentences(o.target.result),this.clearAllAnnotations()},n.readAsText(t),this.resetIndex(),this.currentPage!="annotate"&&this.switchToPage("annotate")},importAnnotations:function(e){let t=e.target.files[0],n=new FileReader;n.onload=o=>{try{this.loadAnnotations(JSON.parse(o.target.result)),this.notify("fa fa-check","Annotations imported successfully","positive")}catch{this.notify("fas fa-exclamation-circle","Invalid file","red-6")}},n.readAsText(t)},toggleDarkMode:function(){this.$q.dark.toggle()}}},yp={class:"q-pa-sm q-pl-md row items-center"},wp=["src"],_p={class:"q-ml-md cursor-pointer non-selectable"},Sp={class:"q-ml-md cursor-pointer non-selectable"},xp={class:"q-ml-md cursor-pointer non-selectable"},Cp={class:"q-ml-md"},kp={class:"q-ml-md cursor-pointer non-selectable"};function Ep(e,t,n,o,i,r){const l=vt("export-annotations"),s=vt("about-dialog"),u=vt("help-dialog"),c=vt("exit-dialog");return we(),ot(at,null,[D(Hm,{bordered:""},{default:de(()=>[G("div",yp,[G("div",null,[D(Pi,{size:"xs"},{default:de(()=>[G("img",{src:e.appIconUrl},null,8,wp)]),_:1}),t[16]||(t[16]=G("span",{class:"q-ml-sm"},[G("strong",null," NER Annotator ")],-1))]),G("div",_p,[t[18]||(t[18]=G("span",null," File ",-1)),D(To,null,{default:de(()=>[D(ui,{dense:"",style:{"min-width":"100px"}},{default:de(()=>[Ye((we(),De(zt,{clickable:"",onClick:t[1]||(t[1]=a=>e.pendingClick=e.$refs.file)},{default:de(()=>[D(Dt,null,{default:de(()=>t[17]||(t[17]=[Ee("Open File")])),_:1}),G("input",{ref:"file",type:"file",accept:".txt",style:{display:"none"},onChange:t[0]||(t[0]=(...a)=>r.openFile&&r.openFile(...a))},null,544)]),_:1})),[[lt]])]),_:1})]),_:1})]),G("div",Sp,[t[20]||(t[20]=G("span",null," Annotations ",-1)),D(To,null,{default:de(()=>[D(ui,{dense:"",style:{"min-width":"100px"}},{default:de(()=>[D(l),Ye((we(),De(zt,{clickable:"",onClick:t[3]||(t[3]=a=>e.pendingClick=e.$refs.file),disable:e.currentPage==="start"},{default:de(()=>[D(Dt,null,{default:de(()=>t[19]||(t[19]=[Ee("Import")])),_:1}),G("input",{ref:"file",type:"file",accept:".json",style:{display:"none"},onChange:t[2]||(t[2]=(...a)=>r.importAnnotations&&r.importAnnotations(...a))},null,544)]),_:1},8,["disable"])),[[lt]])]),_:1})]),_:1})]),G("div",xp,[t[23]||(t[23]=G("span",null," Tags ",-1)),D(To,null,{default:de(()=>[D(ui,{dense:"",style:{"min-width":"100px"}},{default:de(()=>[Ye((we(),De(zt,{clickable:"",onClick:t[4]||(t[4]=a=>r.exportTags()),disable:e.currentPage=="start"},{default:de(()=>[D(Dt,null,{default:de(()=>t[21]||(t[21]=[Ee("Export")])),_:1})]),_:1},8,["disable"])),[[lt]]),Ye((we(),De(zt,{clickable:"",onClick:t[6]||(t[6]=a=>e.$refs.file.click()),disable:e.currentPage=="start"},{default:de(()=>[D(Dt,null,{default:de(()=>t[22]||(t[22]=[Ee("Import")])),_:1}),G("input",{ref:"file",type:"file",accept:".json",style:{display:"none"},onChange:t[5]||(t[5]=(...a)=>r.importTags&&r.importTags(...a))},null,544)]),_:1},8,["disable"])),[[lt]])]),_:1})]),_:1})]),D(os),G("div",Cp,[D(We,{color:"white",name:e.$q.dark.isActive?"fa fa-sun":"fa fa-moon",class:"cursor-pointer",onClick:r.toggleDarkMode},null,8,["name","onClick"])]),G("div",kp,[t[28]||(t[28]=G("span",null,"Help",-1)),D(To,null,{default:de(()=>[D(ui,{dense:"",style:{"min-width":"100px"}},{default:de(()=>[Ye((we(),De(zt,{clickable:"",onClick:t[7]||(t[7]=a=>e.showHelp=!0)},{default:de(()=>[D(Dt,null,{default:de(()=>t[24]||(t[24]=[Ee("How to use?")])),_:1})]),_:1})),[[lt]]),Ye((we(),De(zt,{clickable:"",href:"https://github.com/tecoholic/ner-annotator/discussions",target:"_blank"},{default:de(()=>[D(Dt,null,{default:de(()=>t[25]||(t[25]=[Ee("Forum")])),_:1})]),_:1})),[[lt]]),Ye((we(),De(zt,{clickable:"",href:"https://github.com/tecoholic/ner-annotator/issues",target:"_blank"},{default:de(()=>[D(Dt,null,{default:de(()=>t[26]||(t[26]=[Ee("Report Issue")])),_:1})]),_:1})),[[lt]]),D(jm),Ye((we(),De(zt,{clickable:"",onClick:t[8]||(t[8]=a=>e.showAbout=!0)},{default:de(()=>[D(Dt,null,{default:de(()=>t[27]||(t[27]=[Ee("About")])),_:1})]),_:1})),[[lt]])]),_:1})]),_:1}),D(s,{show:e.showAbout,onHide:t[9]||(t[9]=a=>e.showAbout=!1)},null,8,["show"]),D(u,{show:e.showHelp,onHide:t[10]||(t[10]=a=>e.showHelp=!1)},null,8,["show"])])])]),_:1}),D(go,{modelValue:e.promptForProject,"onUpdate:modelValue":t[13]||(t[13]=a=>e.promptForProject=a),persistent:""},{default:de(()=>[D(Go,{style:{"min-width":"350px"}},{default:de(()=>[D(tn,null,{default:de(()=>t[29]||(t[29]=[G("div",{class:"text-h6"},"Project Name",-1)])),_:1}),D(tn,{class:"q-pt-none"},{default:de(()=>[D(rs,{modelValue:e.newProjectName,"onUpdate:modelValue":t[11]||(t[11]=a=>e.newProjectName=a),dense:"",autofocus:"",onKeyup:t[12]||(t[12]=_v(a=>e.promptForProject=!1,["enter"]))},null,8,["modelValue"])]),_:1}),D(ls,{align:"right",class:"text-primary"},{default:de(()=>[Ye(D(nt,{flat:"",label:"Cancel"},null,512),[[lt]]),Ye(D(nt,{flat:"",label:"Create Project"},null,512),[[lt]])]),_:1})]),_:1})]),_:1},8,["modelValue"]),D(c,{show:e.pendingClick!=null,onHide:t[14]||(t[14]=a=>e.pendingClick=null),onConfirm:t[15]||(t[15]=a=>e.pendingClick.click())},null,8,["show"])],64)}const Ap=it(bp,[["render",Ep]]),Tp={xs:8,sm:10,md:14,lg:20,xl:24},vs=ke({name:"QChip",props:{...Ot,...vo,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:o}}=Se(),i=$t(e,o),r=mo(e,Tp),l=b(()=>e.selected===!0||e.icon!==void 0),s=b(()=>e.selected===!0?e.iconSelected||o.iconSet.chip.selected:e.icon),u=b(()=>e.iconRemove||o.iconSet.chip.remove),c=b(()=>e.disable===!1&&(e.clickable===!0||e.selected!==null)),a=b(()=>{const A=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}`:"")+(A?` text-${A} 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":"")+(c.value===!0?" q-chip--clickable cursor-pointer non-selectable q-hoverable":"")+(e.square===!0?" q-chip--square":"")+(i.value===!0?" q-chip--dark q-dark":"")}),f=b(()=>{const A=e.disable===!0?{tabindex:-1,"aria-disabled":"true"}:{tabindex:e.tabindex||0},V={...A,role:"button","aria-hidden":"false","aria-label":e.removeAriaLabel||o.lang.label.remove};return{chip:A,remove:V}});function d(A){A.keyCode===13&&h(A)}function h(A){e.disable||(n("update:selected",!e.selected),n("click",A))}function g(A){(A.keyCode===void 0||A.keyCode===13)&&(Ve(A),e.disable===!1&&(n("update:modelValue",!1),n("remove")))}function P(){const A=[];c.value===!0&&A.push(C("div",{class:"q-focus-helper"})),l.value===!0&&A.push(C(We,{class:"q-chip__icon q-chip__icon--left",name:s.value}));const V=e.label!==void 0?[C("div",{class:"ellipsis"},[e.label])]:void 0;return A.push(C("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},Dc(t.default,V))),e.iconRight&&A.push(C(We,{class:"q-chip__icon q-chip__icon--right",name:e.iconRight})),e.removable===!0&&A.push(C(We,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:u.value,...f.value.remove,onClick:g,onKeyup:g})),A}return()=>{if(e.modelValue===!1)return;const A={class:a.value,style:r.value};return c.value===!0&&Object.assign(A,f.value.chip,{onClick:h,onKeyup:d}),hl("div",A,P(),"ripple",e.ripple!==!1&&e.disable!==!0,()=>[[ff,e.ripple]])}}});function Jn(e,t,n,o){const i=[];return e.forEach(r=>{o(r)===!0?i.push(r):t.push({failedPropValidation:n,file:r})}),i}function mi(e){e&&e.dataTransfer&&(e.dataTransfer.dropEffect="copy"),Ve(e)}const qp={multiple:Boolean,accept:String,capture:String,maxFileSize:[Number,String],maxTotalSize:[Number,String],maxFiles:[Number,String],filter:Function},Op=["rejected"];function $p({editable:e,dnd:t,getFileInput:n,addFilesToQueue:o}){const{props:i,emit:r,proxy:l}=Se(),s=se(null),u=b(()=>i.accept!==void 0?i.accept.split(",").map(S=>(S=S.trim(),S==="*"?"*/":(S.endsWith("/*")&&(S=S.slice(0,S.length-1)),S.toUpperCase()))):null),c=b(()=>parseInt(i.maxFiles,10)),a=b(()=>parseInt(i.maxTotalSize,10));function f(S){if(e.value)if(S!==Object(S)&&(S={target:null}),S.target!==null&&S.target.matches('input[type="file"]')===!0)S.clientX===0&&S.clientY===0&>(S);else{const R=n();R&&R!==S.target&&R.click(S)}}function d(S){e.value&&S&&o(null,S)}function h(S,R,T,L){let O=Array.from(R||S.target.files);const F=[],X=()=>{F.length!==0&&r("rejected",F)};if(i.accept!==void 0&&u.value.indexOf("*/")===-1&&(O=Jn(O,F,"accept",_=>u.value.some(E=>_.type.toUpperCase().startsWith(E)||_.name.toUpperCase().endsWith(E))),O.length===0))return X();if(i.maxFileSize!==void 0){const _=parseInt(i.maxFileSize,10);if(O=Jn(O,F,"max-file-size",E=>E.size<=_),O.length===0)return X()}if(i.multiple!==!0&&O.length!==0&&(O=[O[0]]),O.forEach(_=>{_.__key=_.webkitRelativePath+_.lastModified+_.name+_.size}),L===!0){const _=T.map(E=>E.__key);O=Jn(O,F,"duplicate",E=>_.includes(E.__key)===!1)}if(O.length===0)return X();if(i.maxTotalSize!==void 0){let _=L===!0?T.reduce((E,N)=>E+N.size,0):0;if(O=Jn(O,F,"max-total-size",E=>(_+=E.size,_<=a.value)),O.length===0)return X()}if(typeof i.filter=="function"){const _=i.filter(O);O=Jn(O,F,"filter",E=>_.includes(E))}if(i.maxFiles!==void 0){let _=L===!0?T.length:0;if(O=Jn(O,F,"max-files",()=>(_++,_<=c.value)),O.length===0)return X()}if(X(),O.length!==0)return O}function g(S){mi(S),t.value!==!0&&(t.value=!0)}function P(S){Ve(S),(S.relatedTarget!==null||Me.is.safari!==!0?S.relatedTarget!==s.value:document.elementsFromPoint(S.clientX,S.clientY).includes(s.value)===!1)===!0&&(t.value=!1)}function A(S){mi(S);const R=S.dataTransfer.files;R.length!==0&&o(null,R),t.value=!1}function V(S){if(t.value===!0)return C("div",{ref:s,class:`q-${S}__dnd absolute-full`,onDragenter:mi,onDragover:mi,onDragleave:P,onDrop:A})}return Object.assign(l,{pickFiles:f,addFiles:d}),{pickFiles:f,addFiles:d,onDragover:g,onDragleave:P,processFiles:h,getDndNode:V,maxFilesNumber:c,maxTotalSizeNumber:a}}const Za=ke({name:"QFile",inheritAttrs:!1,props:{...sf,...mr,...qp,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:[...dr,...Op],setup(e,{slots:t,emit:n,attrs:o}){const{proxy:i}=Se(),r=hr(),l=se(null),s=se(!1),u=is(e),{pickFiles:c,onDragover:a,onDragleave:f,processFiles:d,getDndNode:h}=$p({editable:r.editable,dnd:s,getFileInput:p,addFilesToQueue:z}),g=uf(e),P=b(()=>Object(e.modelValue)===e.modelValue?"length"in e.modelValue?Array.from(e.modelValue):[e.modelValue]:[]),A=b(()=>Fn(P.value)),V=b(()=>P.value.map(Q=>Q.name).join(", ")),S=b(()=>sm(P.value.reduce((Q,B)=>Q+B.size,0))),R=b(()=>({totalSize:S.value,filesNumber:P.value.length,maxFiles:e.maxFiles})),T=b(()=>({tabindex:-1,type:"file",title:"",accept:e.accept,capture:e.capture,name:u.value,...o,id:r.targetUid.value,disabled:r.editable.value!==!0})),L=b(()=>"q-file q-field--auto-height"+(s.value===!0?" q-file--dnd":"")),O=b(()=>e.multiple===!0&&e.append===!0);function F(Q){const B=P.value.slice();B.splice(Q,1),_(B)}function X(Q){const B=P.value.indexOf(Q);B!==-1&&F(B)}function _(Q){n("update:modelValue",e.multiple===!0?Q:Q[0])}function E(Q){Q.keyCode===13&&ut(Q)}function N(Q){(Q.keyCode===13||Q.keyCode===32)&&c(Q)}function p(){return l.value}function z(Q,B){const ie=d(Q,B,P.value,O.value),me=p();me!=null&&(me.value=""),ie!==void 0&&((e.multiple===!0?e.modelValue&&ie.every($=>P.value.includes($)):e.modelValue===ie[0])||_(O.value===!0?P.value.concat(ie):ie))}function I(){return[C("input",{class:[e.inputClass,"q-file__filler"],style:e.inputStyle})]}function le(){if(t.file!==void 0)return P.value.length===0?I():P.value.map((B,ie)=>t.file({index:ie,file:B,ref:this}));if(t.selected!==void 0)return P.value.length===0?I():t.selected({files:P.value,ref:this});if(e.useChips===!0)return P.value.length===0?I():P.value.map((B,ie)=>C(vs,{key:"file-"+ie,removable:r.editable.value,dense:!0,textColor:e.color,tabindex:e.tabindex,onRemove:()=>{F(ie)}},()=>C("span",{class:"ellipsis",textContent:B.name})));const Q=e.displayValue!==void 0?e.displayValue:V.value;return Q.length!==0?[C("div",{class:e.inputClass,style:e.inputStyle,textContent:Q})]:I()}function ee(){const Q={ref:l,...T.value,...g.value,class:"q-field__input fit absolute-full cursor-pointer",onChange:z};return e.multiple===!0&&(Q.multiple=!0),C("input",Q)}return Object.assign(r,{fieldClass:L,emitValue:_,hasValue:A,inputRef:l,innerValue:P,floatingLabel:b(()=>A.value===!0||Fn(e.displayValue)),computedCounter:b(()=>{if(e.counterLabel!==void 0)return e.counterLabel(R.value);const Q=e.maxFiles;return`${P.value.length}${Q!==void 0?" / "+Q:""} (${S.value})`}),getControlChild:()=>h("file"),getControl:()=>{const Q={ref:r.targetRef,class:"q-field__native row items-center cursor-pointer",tabindex:e.tabindex};return r.editable.value===!0&&Object.assign(Q,{onDragover:a,onDragleave:f,onKeydown:E,onKeyup:N}),C("div",Q,[ee()].concat(le()))}}),Object.assign(i,{removeAtIndex:F,removeFile:X,getNativeElement:()=>l.value}),Vn(i,"nativeEl",()=>l.value),vr(r)}}),Pp={name:"StartPage",emits:["file-loaded"],data(){return{textFile:null,annotationFile:null,highlightTextFileInput:!1}},watch:{textFile(){this.highlightTextFileInput=!1}},methods:{...Yo(["setInputSentences","loadAnnotations"]),onConfirmation(){if(this.highlightTextFileInput=!1,!this.textFile){this.fileSelectionError("No text file selected. Open a text file to start annotating."),this.highlightTextFileInput=!0;return}try{let e=new FileReader;e.addEventListener("load",t=>{this.setInputSentences(t.target.result)}),e.readAsText(this.textFile)}catch{this.fileSelectionError("Invalid text file");return}if(!this.annotationFile){this.$emit("file-loaded");return}try{let e=new FileReader;e.addEventListener("load",t=>{this.loadAnnotations(JSON.parse(t.target.result))}),e.readAsText(this.annotationFile)}catch{this.fileSelectionError("Invalid annotation file");return}this.$emit("file-loaded")},fileSelectionError(e){this.$q.notify({type:"negative",icon:"fas fa-file-circle-exclamation",message:e,position:"center",timeout:5e3,actions:[{label:"Dismiss",color:"white"}]})}}},Mp={class:"q-mx-auto q-my-xl",style:{"max-width":"600px"}},Lp={class:"q-my-xl q-py-md column"},Rp={class:"row justify-around q-my-xl"},Ip={class:"col-5 q-mx-sm"},Fp={class:"col-5 q-mx-sm"},Vp={class:"row justify-center q-my-xl"},Bp={class:"row"};function Np(e,t,n,o,i,r){return we(),ot("div",Mp,[t[7]||(t[7]=G("h1",{class:"text-h4 q-mb-sm text-center"},"NER Text Annotator",-1)),t[8]||(t[8]=G("p",{class:"text-subtitle1 text-center"}," Annotate text for spaCy NER Model training ",-1)),G("div",Lp,[G("div",Rp,[G("div",Ip,[D(Za,{modelValue:i.textFile,"onUpdate:modelValue":t[0]||(t[0]=l=>i.textFile=l),accept:".txt",filled:"",label:"Load a text file",color:"primary","label-color":i.highlightTextFileInput?"red-8":"","bg-color":i.highlightTextFileInput?"red-1":"",onRejected:t[1]||(t[1]=l=>r.fileSelectionError("Only text files (.txt) can be used for creating annotations."))},{prepend:de(()=>[D(We,{name:"fas fa-file-text",class:Tt(i.highlightTextFileInput?"text-red-8":"")},null,8,["class"])]),_:1},8,["modelValue","label-color","bg-color"]),G("p",{class:Tt(["text-caption q-mx-sm q-my-sm",e.$q.dark.isActive?"text-grey-6":"text-grey-8"])}," You can also drag and drop a file into this window! ",2)]),G("div",Fp,[D(Za,{modelValue:i.annotationFile,"onUpdate:modelValue":t[2]||(t[2]=l=>i.annotationFile=l),accept:".json",filled:"",label:"Load annotations",color:"primary",onRejected:t[3]||(t[3]=l=>r.fileSelectionError("Invalid annotation file"))},{prepend:de(()=>[D(We,{name:"fas fa-file-code"})]),_:1},8,["modelValue"]),G("p",{class:Tt(["text-caption q-mx-sm q-my-sm",e.$q.dark.isActive?"text-grey-6":"text-grey-8"])}," Optional ",2)])]),G("div",Vp,[Ye(D(nt,{label:"Start Annotating",color:"primary",class:"q-py-md",onClick:r.onConfirmation},null,8,["onClick"]),[[lt]])])]),G("div",Bp,[G("p",{class:Tt(["col-12 text-sm text-center",e.$q.dark.isActive?"text-grey-6":"text-grey-8"])},[D(We,{name:"fa fa-hand-holding-heart",class:"q-mr-sm"}),t[4]||(t[4]=Ee(" Wondering what to do? See ")),t[5]||(t[5]=G("strong",null,"Help",-1)),D(We,{name:"fa fa-arrow-right",class:"q-mx-xs"}),t[6]||(t[6]=G("strong",null,"How to Use?",-1))],2)])])}const Dp=it(Pp,[["render",Np]]),zp={name:"Token",props:{token:{type:Object,required:!0}}},jp=["id"];function Hp(e,t,n,o,i,r){return n.token.type==="token"?(we(),ot("span",{key:0,id:"t"+n.token.start,class:"token",style:so({padding:e.$store.state.annotationPrecision=="char"?"0.25rem 0rem":"0.25rem"})},hn(n.token.text==" "?" ":n.token.text),13,jp)):On("",!0)}const qf=it(zp,[["render",Hp]]),Up={name:"TokenBlock",components:{Token:qf},props:{token:{type:Object,requried:!0},backgroundColor:{type:String,required:!1}},emits:["remove-block"],data:function(){return{showClose:!1}}},Kp={class:"tag"};function Wp(e,t,n,o,i,r){return we(),ot("mark",{class:Tt("bg-"+n.backgroundColor)},[(we(!0),ot(at,null,Dl(n.token.tokens,l=>(we(),De(Ju("Token"),{id:"t"+l.start,key:l.start,token:l},null,8,["id","token"]))),128)),G("span",Kp,[Ee(hn(n.token.label)+" ",1),D(nt,{icon:"fa fa-times-circle",round:"",flat:"",size:"xs","text-color":"grey-7",onClick:t[0]||(t[0]=l=>e.$emit("remove-block",n.token.start))})])],2)}const Qp=it(Up,[["render",Wp]]),Gp={name:"ClassesBlock",data(){return{showNewClassInput:!1,newClassName:"",showDeleteButtons:!1}},computed:{...Nn(["classes","currentClass","enableKeyboardShortcuts"])},watch:{newClassName(e,t){e!=t&&(this.newClassName=e.toUpperCase())}},created(){document.addEventListener("keydown",this.keypress)},methods:{...Yo(["setCurrentClass"]),...Ug(["createNewClass","deleteClass"]),keypress(e){if(this.enableKeyboardShortcuts){var t=parseInt(e.key);t&&(t>this.classes.length||this.setCurrentClass(t-1))}},async handleRemoveClass(e,t){await this.confirmAction(t)&&this.deleteClass(e)},async confirmAction(e){return new Promise(t=>{const n=confirm("Are you sure you want to remove the tag `"+e+"`?\nNOTE: This will NOT affect previously tagged entities.");t(n)})},saveNewClass(){if(!this.newClassName)return;const e=this;this.createNewClass(this.newClassName).then(()=>{e.showNewClassInput=!1,e.newClassName=""})},onInputKeyup(e){e.key==="Enter"&&this.saveNewClass()}}},Yp={class:"q-pa-md",style:{"border-bottom":"1px solid #ccc"}},Jp={class:"row"},Xp={class:"tags"},Zp={class:"q-mx-md"},eb={class:"buttons"};function tb(e,t,n,o,i,r){return we(),ot("div",Yp,[G("div",Jp,[G("div",Xp,[(we(!0),ot(at,null,Dl(e.classes,(l,s)=>(we(),De(vs,{key:l.id,outline:"",square:"",style:{height:"2rem"},color:l.color.replace("11","12"),clickable:"",removable:i.showDeleteButtons,onClick:u=>e.setCurrentClass(s),onRemove:u=>r.handleRemoveClass(l.id,l.name)},{default:de(()=>[l.id===e.currentClass.id?(we(),De(Pi,{key:0,color:l.color.replace("11","12"),style:{height:"2rem"},"text-color":"white",icon:"fa fa-check"},null,8,["color"])):On("",!0),l.id!==e.currentClass.id?(we(),De(Pi,{key:1,color:l.color.replace("11","12"),style:{height:"2rem"},"text-color":"white","font-size":"16px"},{default:de(()=>[Ee(hn(s+1),1)]),_:2},1032,["color"])):On("",!0),G("p",{class:Tt(["q-mb-none",e.$q.dark.isActive?"text-grey-3":"text-grey-9"])},hn(l.name),3)]),_:2},1032,["color","removable","onClick","onRemove"]))),128))]),D(os),G("div",Zp,[i.showNewClassInput||e.classes.length===0?(we(),De(rs,{key:0,modelValue:i.newClassName,"onUpdate:modelValue":t[1]||(t[1]=l=>i.newClassName=l),"bottom-slots":"",hint:"Enter a NER Tag and click [+] to add it",dense:"",autofocus:""},{append:de(()=>[D(nt,{round:"",dense:"",flat:"",color:"green-4",icon:"fa fa-plus",onClick:r.saveNewClass},null,8,["onClick"]),D(nt,{round:"",color:"red-4",dense:"",flat:"",icon:"fa fa-times",onClick:t[0]||(t[0]=l=>i.showNewClassInput=!1)})]),_:1},8,["modelValue"])):On("",!0)]),G("div",eb,[D(nt,{outline:"",label:"New Tag",class:"q-mr-sm",color:e.$q.dark.isActive?"grey-3":"grey-9",onClick:t[2]||(t[2]=l=>i.showNewClassInput=!0)},null,8,["color"]),D(nt,{outline:"",label:i.showDeleteButtons?"Lock Tags":"Edit Tags",color:e.$q.dark.isActive?"grey-3":"grey-9",onClick:t[3]||(t[3]=l=>i.showDeleteButtons=!i.showDeleteButtons)},null,8,["label","color"])])])])}const nb=it(Gp,[["render",tb],["__scopeId","data-v-06257180"]]);class eu{constructor(t){this.classes=t}setTokensAndAnnotation(t,n){if(this.tokens=t.map(s=>({type:"token",start:s[0],end:s[1],text:s[2]})),this.words=t.map(s=>s[2]),n!=null)for(let s=0;su.name.toUpperCase()===r.toUpperCase());l||(l={name:r}),this.addNewBlock(o,i,l)}}addNewBlock(t,n,o){let i=[],r=[],l=nt?n:t;for(let u=0;ul&&c.startl&&g.start=s&&f.push(g)}a.length&&r.push({type:"token-block",start:a[0].start,end:a[a.length-1].end,tokens:a,label:c.label,classId:c.classId,backgroundColor:c.backgroundColor}),i.length&&f.length&&(r.push({type:"token-block",start:i[0].start,end:i[i.length-1].end,tokens:i,label:o&&o.name?o.name:"Unlabelled",classId:o&&o.id?o.id:0,backgroundColor:o&&o.color?o.color:null}),i=[]),f.length&&r.push({type:"token-block",start:f[0].start,end:f[f.length-1].end,tokens:f,label:c.label,classId:c.classId,backgroundColor:c.backgroundColor})}else c.type=="token"&&i.push(c);else c.start>=s&&i.length&&(r.push({type:"token-block",start:i[0].start,end:i[i.length-1].end,tokens:i,label:o&&o.name?o.name:"Unlabelled",classId:o&&o.id?o.id:0,backgroundColor:o&&o.color?o.color:null}),i=[]),r.push(c)}i.length&&r.push({type:"token-block",start:i[0].start,end:i[i.length-1].end,tokens:i,label:o&&o.name?o.name:"Unlabelled",classId:o&&o.id?o.id:0,backgroundColor:o&&o.color?o.color:null}),this.tokens=r}removeBlock(t){let n=[];for(let o=0;o\"\']*)\s*$/,"$1 $2$3 "],[/([?!])/g," $1 "],[/([^'])' /g,"$1 ' "]],this.PARENS_BRACKETS=[/([\]\[\(\){}<>])/g," $1 "],this.CONVERT_PARENTHESES=[[/\(/,"-LRB-"],[/\)/,"-RRB-"],[/\[/,"-LSB-"],[/\]/,"-RSB-"],[/{/,"-LCB-"],[/}/,"-RCB-"]],this.DOUBLE_DASHES=[/--/," -- "],this.ENDING_QUOTES=[[/''/," '' "],[/\"/," '' "],[/([^' ])('[sS]|'[mM]|'[dD]|') /,"$1 $2 "],[/([^' ])('ll|'LL|'re|'RE|'ve|'VE|n't|N'T) /,"$1 $2 "]],this._contractions=new rb,this.CONTRACTIONS2=this._contractions.CONTRACTIONS2.map(e=>new RegExp(e,"i")),this.CONTRACTIONS3=this._contractions.CONTRACTIONS3.map(e=>new RegExp(e,"i"))}tokenize(e,t=!1){for(let i of this.STARTING_QUOTES){var[n,o]=[...i];e=e.replace(n,o)}for(let i of this.PUNCTUATION){var[n,o]=[...i];e=e.replace(n,o)}var[n,o]=[...this.PARENS_BRACKETS];if(e=e.replace(n,o),t)for(let i of this.CONVERT_PARENTHESES){var[n,o]=[...i];e=e.replace(n,o)}var[n,o]=[...this.DOUBLE_DASHES];e=e.replace(n,o),e=" "+e+" ";for(let i of this.ENDING_QUOTES){var[n,o]=[...i];e=e.replace(n,o)}for(let i of this.CONTRACTIONS2)e=e.replace(i," $1 $2 ");for(let i of this.CONTRACTIONS3)e=e.replace(i," $1 $2 ");return e.trim().split(/\s+/)}span_tokenize(e){let t=this.tokenize(e),n;if(e.includes('"')||e.includes("''")){let o=[...e.matchAll(/``|'{2}|\"/g)].map(i=>i[0]);n=t.map(i=>['"',"``","''"].indexOf(i)!==-1?o.splice(0,1)[0]:i)}else n=t;return ib(n,e)}tokenize_sents(e){return e.map(t=>this.tokenize(t))}*span_tokenize_sents(e){for(let t of e)yield this.span_tokenize(t)}},sb=lb;const ab=ob(sb),ub={name:"AnnotationPage",components:{Token:qf,TokenBlock:Qp,ClassesBlock:nb},data:function(){return{tm:new eu([]),currentSentence:{},redone:"",tokenizer:new ab}},computed:{...Nn(["annotations","classes","currentClass","currentIndex","inputSentences","enableKeyboardShortcuts","annotationPrecision"])},watch:{inputSentences(){this.resetIndex(),this.tokenizeCurrentSentence()},annotations(){this.currentAnnotation!=this.annotations[this.currentIndex]&&this.tokenizeCurrentSentence()},classes(){this.tokenizeCurrentSentence()},annotationPrecision(){this.tokenizeCurrentSentence()}},created(){this.inputSentences.length&&this.tokenizeCurrentSentence(),document.addEventListener("mouseup",this.selectTokens),document.addEventListener("keydown",this.keypress)},beforeUnmount(){document.removeEventListener("mouseup",this.selectTokens),document.removeEventListener("keydown",this.keypress)},methods:{...Yo(["nextSentence","previousSentence","resetIndex"]),keypress(e){this.enableKeyboardShortcuts&&(e.keyCode==32?this.saveTags():e.keyCode==39?this.skipCurrentSentence():e.keyCode==37?this.backOneSentence():(e.keyCode==82||e.keyCode==27)&&this.resetBlocks(),e.stopPropagation())},tokenizeCurrentSentence(){if(this.currentIndex==this.inputSentences.length)return;this.currentSentence=this.inputSentences[this.currentIndex],this.currentAnnotation=this.annotations[this.currentIndex];let e,t;if(this.$store.state.annotationPrecision=="char"){e=this.currentSentence.text.split(""),t=[];for(let o=0;o[t[i][0],t[i][1],o]);this.tm=new eu(this.classes),this.tm.setTokensAndAnnotation(n,this.currentAnnotation)},selectTokens(){let e=document.getSelection();if(e.anchorOffset===e.focusOffset&&e.anchorNode===e.focusNode)return;const t=e.getRangeAt(0),n=e.getRangeAt(e.rangeCount-1);let o,i;try{o=parseInt(t.startContainer.parentElement.id.replace("t",""));let r=parseInt(n.endContainer.parentElement.id.replace("t",""));if(i=r+n.endOffset,!i){const s=n.endContainer.parentNode.previousSibling;r=parseInt(s.parentElement.id.replace("t","")),i=r+n.endOffset}}catch{return}if(!this.classes.length&&e.anchorNode){alert("There are no Tags available. Kindly add some Tags before tagging."),e.empty();return}this.tm.addNewBlock(o,i,this.currentClass),e.empty()},onRemoveBlock(e){this.tm.removeBlock(e)},resetBlocks(){this.tm.resetBlocks()},skipCurrentSentence(){this.nextSentence(),this.tokenizeCurrentSentence()},backOneSentence(){this.previousSentence(),this.tokenizeCurrentSentence()},saveTags(){this.$store.commit("addAnnotation",{text:this.currentSentence.text,entities:this.tm.exportAsAnnotation()}),this.nextSentence(),this.tokenizeCurrentSentence()}}},cb={class:"q-pa-lg",style:{height:"60vh","overflow-y":"scroll"}},fb={class:"q-pa-md",style:{"border-top":"1px solid #ccc"}};function db(e,t,n,o,i,r){const l=vt("classes-block");return we(),ot("div",null,[D(l),G("div",cb,[(we(!0),ot(at,null,Dl(e.tm.tokens,s=>(we(),De(Ju(s.type==="token"?"Token":"TokenBlock"),{id:"t"+s.start,key:s.start,token:s,"background-color":s.backgroundColor,onRemoveBlock:r.onRemoveBlock},null,40,["id","token","background-color","onRemoveBlock"]))),128))]),G("div",fb,[D(nt,{color:"red",outline:"",class:"q-mx-sm",label:"Reset",onClick:r.resetBlocks},null,8,["onClick"]),D(nt,{class:"q-mx-sm",color:e.$q.dark.isActive?"grey-3":"grey-9",outline:"",disabled:e.currentIndex==0,label:"Back",onClick:r.backOneSentence},null,8,["color","disabled","onClick"]),D(nt,{class:"q-mx-sm",color:e.$q.dark.isActive?"grey-3":"grey-9",outline:"",label:"Skip",onClick:r.skipCurrentSentence},null,8,["color","onClick"]),D(nt,{class:"q-mx-sm",color:"green-7",outline:"",label:"Save",onClick:r.saveTags},null,8,["onClick"])])])}const hb=it(ub,[["render",db]]),vb={xs:2,sm:4,md:6,lg:10,xl:14};function tu(e,t,n){return{transform:t===!0?`translateX(${n.lang.rtl===!0?"-":""}100%) scale3d(${-e},1,1)`:`scale3d(${e},1,1)`}}const mb=ke({name:"QLinearProgress",props:{...Ot,...vo,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}=Se(),o=$t(e,n.$q),i=mo(e,vb),r=b(()=>e.indeterminate===!0||e.query===!0),l=b(()=>e.reverse!==e.query),s=b(()=>({...i.value!==null?i.value:{},"--q-linear-progress-speed":`${e.animationSpeed}ms`})),u=b(()=>"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":"")),c=b(()=>tu(e.buffer!==void 0?e.buffer:1,l.value,n.$q)),a=b(()=>`with${e.instantFeedback===!0?"out":""}-transition`),f=b(()=>`q-linear-progress__track absolute-full q-linear-progress__track--${a.value} q-linear-progress__track--${o.value===!0?"dark":"light"}`+(e.trackColor!==void 0?` bg-${e.trackColor}`:"")),d=b(()=>tu(r.value===!0?1:e.value,l.value,n.$q)),h=b(()=>`q-linear-progress__model absolute-full q-linear-progress__model--${a.value} q-linear-progress__model--${r.value===!0?"in":""}determinate`),g=b(()=>({width:`${e.value*100}%`})),P=b(()=>`q-linear-progress__stripe absolute-${e.reverse===!0?"right":"left"} q-linear-progress__stripe--${a.value}`);return()=>{const A=[C("div",{class:f.value,style:c.value}),C("div",{class:h.value,style:d.value})];return e.stripe===!0&&r.value===!1&&A.push(C("div",{class:P.value,style:g.value})),C("div",{class:u.value,style:s.value,role:"progressbar","aria-valuemin":0,"aria-valuemax":1,"aria-valuenow":e.indeterminate===!0?void 0:e.value},Zt(t.default,A))}}}),gb={name:"ProgressBar",props:{completed:{type:Number,required:!0,default:0},total:{type:Number,required:!0}},computed:{completedPercent(){return parseInt(this.completed/this.total*100)}}},pb={class:"q-mx-md"},bb={class:"is-size-6 q-mb-sm"};function yb(e,t,n,o,i,r){return we(),ot("div",pb,[G("p",bb," Tagging Progress ("+hn(n.completed)+"/"+hn(n.total)+") ",1),D(mb,{rounded:"",size:"md",color:"primary",value:n.completed/n.total},null,8,["value"])])}const wb=it(gb,[["render",yb]]),_b=ke({name:"QField",inheritAttrs:!1,props:{...fr,tag:{type:String,default:"label"}},emits:dr,setup(){return vr(hr({tagProp:!0}))}}),Sb=ke({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(e,{slots:t}){const n=b(()=>parseInt(e.lines,10)),o=b(()=>"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":"")),i=b(()=>e.lines!==void 0&&n.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":n.value}:null);return()=>C("div",{style:i.value,class:o.value},ze(t.default))}});let Di=!1;{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,Di=e.scrollLeft>=0,e.remove()}const Mt=1e3,xb=["start","center","end","start-force","center-force","end-force"],Of=Array.prototype.filter,Cb=window.getComputedStyle(document.body).overflowAnchor===void 0?bt: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||[];Of.call(n,i=>i.dataset&&i.dataset.qVsAnchor!==void 0).forEach(i=>{delete i.dataset.qVsAnchor});const o=n[t];o&&o.dataset&&(o.dataset.qVsAnchor="")}))};function lo(e,t){return e+t}function Gr(e,t,n,o,i,r,l,s){const u=e===window?document.scrollingElement||document.documentElement:e,c=i===!0?"offsetWidth":"offsetHeight",a={scrollStart:0,scrollViewSize:-l-s,scrollMaxSize:0,offsetStart:-l,offsetEnd:-s};if(i===!0?(e===window?(a.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,a.scrollViewSize+=document.documentElement.clientWidth):(a.scrollStart=u.scrollLeft,a.scrollViewSize+=u.clientWidth),a.scrollMaxSize=u.scrollWidth,r===!0&&(a.scrollStart=(Di===!0?a.scrollMaxSize-a.scrollViewSize:0)-a.scrollStart)):(e===window?(a.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,a.scrollViewSize+=document.documentElement.clientHeight):(a.scrollStart=u.scrollTop,a.scrollViewSize+=u.clientHeight),a.scrollMaxSize=u.scrollHeight),n!==null)for(let f=n.previousElementSibling;f!==null;f=f.previousElementSibling)f.classList.contains("q-virtual-scroll--skip")===!1&&(a.offsetStart+=f[c]);if(o!==null)for(let f=o.nextElementSibling;f!==null;f=f.nextElementSibling)f.classList.contains("q-virtual-scroll--skip")===!1&&(a.offsetEnd+=f[c]);if(t!==e){const f=u.getBoundingClientRect(),d=t.getBoundingClientRect();i===!0?(a.offsetStart+=d.left-f.left,a.offsetEnd-=d.width):(a.offsetStart+=d.top-f.top,a.offsetEnd-=d.height),e!==window&&(a.offsetStart+=a.scrollStart),a.offsetEnd+=a.scrollMaxSize-a.offsetStart}return a}function nu(e,t,n,o){t==="end"&&(t=(e===window?document.body:e)[n===!0?"scrollWidth":"scrollHeight"]),e===window?n===!0?(o===!0&&(t=(Di===!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?(o===!0&&(t=(Di===!0?e.scrollWidth-e.offsetWidth:0)-t),e.scrollLeft=t):e.scrollTop=t}function Co(e,t,n,o){if(n>=o)return 0;const i=t.length,r=Math.floor(n/Mt),l=Math.floor((o-1)/Mt)+1;let s=e.slice(r,l).reduce(lo,0);return n%Mt!==0&&(s-=t.slice(r*Mt,n).reduce(lo,0)),o%Mt!==0&&o!==i&&(s-=t.slice(o,l*Mt).reduce(lo,0)),s}const kb={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]},ou={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,...kb};function Eb({virtualScrollLength:e,getVirtualScrollTarget:t,getVirtualScrollEl:n,virtualScrollItemSizeComputed:o}){const i=Se(),{props:r,emit:l,proxy:s}=i,{$q:u}=s;let c,a,f,d=[],h;const g=se(0),P=se(0),A=se({}),V=se(null),S=se(null),R=se(null),T=se({from:0,to:0}),L=b(()=>r.tableColspan!==void 0?r.tableColspan:100);o===void 0&&(o=b(()=>r.virtualScrollItemSize));const O=b(()=>o.value+";"+r.virtualScrollHorizontal),F=b(()=>O.value+";"+r.virtualScrollSliceRatioBefore+";"+r.virtualScrollSliceRatioAfter);he(F,()=>{ee()}),he(O,X);function X(){le(a,!0)}function _($){le($===void 0?a:$)}function E($,k){const te=t();if(te==null||te.nodeType===8)return;const ge=Gr(te,n(),V.value,S.value,r.virtualScrollHorizontal,u.lang.rtl,r.virtualScrollStickySizeStart,r.virtualScrollStickySizeEnd);f!==ge.scrollViewSize&&ee(ge.scrollViewSize),p(te,ge,Math.min(e.value-1,Math.max(0,parseInt($,10)||0)),0,xb.indexOf(k)!==-1?k:a!==-1&&$>a?"end":"start")}function N(){const $=t();if($==null||$.nodeType===8)return;const k=Gr($,n(),V.value,S.value,r.virtualScrollHorizontal,u.lang.rtl,r.virtualScrollStickySizeStart,r.virtualScrollStickySizeEnd),te=e.value-1,ge=k.scrollMaxSize-k.offsetStart-k.offsetEnd-P.value;if(c===k.scrollStart)return;if(k.scrollMaxSize<=0){p($,k,0,0);return}f!==k.scrollViewSize&&ee(k.scrollViewSize),z(T.value.from);const ve=Math.floor(k.scrollMaxSize-Math.max(k.scrollViewSize,k.offsetEnd)-Math.min(h[te],k.scrollViewSize/2));if(ve>0&&Math.ceil(k.scrollStart)>=ve){p($,k,te,k.scrollMaxSize-k.offsetEnd-d.reduce(lo,0));return}let H=0,ae=k.scrollStart-k.offsetStart,_e=ae;if(ae<=ge&&ae+k.scrollViewSize>=g.value)ae-=g.value,H=T.value.from,_e=ae;else for(let ne=0;ae>=d[ne]&&H0&&H-k.scrollViewSize?(H++,_e=ae):_e=h[H]+ae;p($,k,H,_e)}function p($,k,te,ge,ve){const H=typeof ve=="string"&&ve.indexOf("-force")!==-1,ae=H===!0?ve.replace("-force",""):ve,_e=ae!==void 0?ae:"start";let ne=Math.max(0,te-A.value[_e]),Ae=ne+A.value.total;Ae>e.value&&(Ae=e.value,ne=Math.max(0,Ae-A.value.total)),c=k.scrollStart;const Je=ne!==T.value.from||Ae!==T.value.to;if(Je===!1&&ae===void 0){B(te);return}const{activeElement:dt}=document,m=R.value;Je===!0&&m!==null&&m!==dt&&m.contains(dt)===!0&&(m.addEventListener("focusout",I),setTimeout(()=>{m!==null&&m.removeEventListener("focusout",I)})),Cb(m,te-ne);const y=ae!==void 0?h.slice(ne,te).reduce(lo,0):0;if(Je===!0){const M=Ae>=T.value.from&&ne<=T.value.to?T.value.to:Ae;T.value={from:ne,to:M},g.value=Co(d,h,0,ne),P.value=Co(d,h,Ae,e.value),requestAnimationFrame(()=>{T.value.to!==Ae&&c===k.scrollStart&&(T.value={from:T.value.from,to:Ae},P.value=Co(d,h,Ae,e.value))})}requestAnimationFrame(()=>{if(c!==k.scrollStart)return;Je===!0&&z(ne);const M=h.slice(ne,te).reduce(lo,0),J=M+k.offsetStart+g.value,U=J+h[te];let Y=J+ge;if(ae!==void 0){const oe=M-y,Z=k.scrollStart+oe;Y=H!==!0&&Zne.classList&&ne.classList.contains("q-virtual-scroll--skip")===!1),ge=te.length,ve=r.virtualScrollHorizontal===!0?ne=>ne.getBoundingClientRect().width:ne=>ne.offsetHeight;let H=$,ae,_e;for(let ne=0;ne=ge;H--)h[H]=te;const ve=Math.floor((e.value-1)/Mt);d=[];for(let H=0;H<=ve;H++){let ae=0;const _e=Math.min((H+1)*Mt,e.value);for(let ne=H*Mt;ne<_e;ne++)ae+=h[ne];d.push(ae)}a=-1,c=void 0,g.value=Co(d,h,0,T.value.from),P.value=Co(d,h,T.value.to,e.value),$>=0?(z(T.value.from),Fe(()=>{E($)})):ie()}function ee($){if($===void 0&&typeof window<"u"){const ae=t();ae!=null&&ae.nodeType!==8&&($=Gr(ae,n(),V.value,S.value,r.virtualScrollHorizontal,u.lang.rtl,r.virtualScrollStickySizeStart,r.virtualScrollStickySizeEnd).scrollViewSize)}f=$;const k=parseFloat(r.virtualScrollSliceRatioBefore)||0,te=parseFloat(r.virtualScrollSliceRatioAfter)||0,ge=1+k+te,ve=$===void 0||$<=0?1:Math.ceil($/o.value),H=Math.max(1,ve,Math.ceil((r.virtualScrollSliceSize>0?r.virtualScrollSliceSize:10)/ge));A.value={total:Math.ceil(H*ge),start:Math.ceil(H*k),center:Math.ceil(H*(.5+k)),end:Math.ceil(H*(1+k)),view:ve}}function Q($,k){const te=r.virtualScrollHorizontal===!0?"width":"height",ge={["--q-virtual-scroll-item-"+te]:o.value+"px"};return[$==="tbody"?C($,{class:"q-virtual-scroll__padding",key:"before",ref:V},[C("tr",[C("td",{style:{[te]:`${g.value}px`,...ge},colspan:L.value})])]):C($,{class:"q-virtual-scroll__padding",key:"before",ref:V,style:{[te]:`${g.value}px`,...ge}}),C($,{class:"q-virtual-scroll__content",key:"content",ref:R,tabindex:-1},k.flat()),$==="tbody"?C($,{class:"q-virtual-scroll__padding",key:"after",ref:S},[C("tr",[C("td",{style:{[te]:`${P.value}px`,...ge},colspan:L.value})])]):C($,{class:"q-virtual-scroll__padding",key:"after",ref:S,style:{[te]:`${P.value}px`,...ge}})]}function B($){a!==$&&(r.onVirtualScroll!==void 0&&l("virtualScroll",{index:$,from:T.value.from,to:T.value.to-1,direction:${ee()});let me=!1;return Wo(()=>{me=!0}),Vl(()=>{if(me!==!0)return;const $=t();c!==void 0&&$!==void 0&&$!==null&&$.nodeType!==8?nu($,c,r.virtualScrollHorizontal,u.lang.rtl):E(a)}),Ne(()=>{ie.cancel()}),Object.assign(s,{scrollTo:E,reset:X,refresh:_}),{virtualScrollSliceRange:T,virtualScrollSliceSizeComputed:A,setVirtualScrollSize:ee,onVirtualScrollEvt:ie,localResetVirtualScroll:le,padVirtualScroll:Q,scrollTo:E,reset:X,refresh:_}}const iu=e=>["add","add-unique","toggle"].includes(e),Ab=".*+?^${}()|[]\\",Tb=Object.keys(fr);function Yr(e,t){if(typeof e=="function")return e;const n=e!==void 0?e:t;return o=>o!==null&&typeof o=="object"&&n in o?o[n]:o}const $f=ke({name:"QSelect",inheritAttrs:!1,props:{...ou,...mr,...fr,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:iu},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:ou.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...dr,"add","remove","inputValue","keyup","keypress","keydown","popupShow","popupHide","filterAbort"],setup(e,{slots:t,emit:n}){const{proxy:o}=Se(),{$q:i}=o,r=se(!1),l=se(!1),s=se(-1),u=se(""),c=se(!1),a=se(!1);let f=null,d=null,h,g,P,A=null,V,S,R,T;const L=se(null),O=se(null),F=se(null),X=se(null),_=se(null),E=is(e),N=cf(ys),p=b(()=>Array.isArray(e.options)?e.options.length:0),z=b(()=>e.virtualScrollItemSize===void 0?e.optionsDense===!0?24:48:e.virtualScrollItemSize),{virtualScrollSliceRange:I,virtualScrollSliceSizeComputed:le,localResetVirtualScroll:ee,padVirtualScroll:Q,onVirtualScrollEvt:B,scrollTo:ie,setVirtualScrollSize:me}=Eb({virtualScrollLength:p,getVirtualScrollTarget:Ff,getVirtualScrollEl:ps,virtualScrollItemSizeComputed:z}),$=hr(),k=b(()=>{const w=e.mapOptions===!0&&e.multiple!==!0,ce=e.modelValue!==void 0&&(e.modelValue!==null||w===!0)?e.multiple===!0&&Array.isArray(e.modelValue)?e.modelValue:[e.modelValue]:[];if(e.mapOptions===!0&&Array.isArray(e.options)===!0){const fe=e.mapOptions===!0&&h!==void 0?h:[],xe=ce.map(Le=>Ge(Le,fe));return e.modelValue===null&&w===!0?xe.filter(Le=>Le!==null):xe}return ce}),te=b(()=>{const w={};return Tb.forEach(ce=>{const fe=e[ce];fe!==void 0&&(w[ce]=fe)}),w}),ge=b(()=>e.optionsDark===null?$.isDark.value:e.optionsDark),ve=b(()=>Fn(k.value)),H=b(()=>{let w="q-field__input q-placeholder col";return e.hideSelected===!0||k.value.length===0?[w,e.inputClass]:(w+=" q-field__input--padding",e.inputClass===void 0?w:[w,e.inputClass])}),ae=b(()=>(e.virtualScrollHorizontal===!0?"q-virtual-scroll--horizontal":"")+(e.popupContentClass?" "+e.popupContentClass:"")),_e=b(()=>p.value===0),ne=b(()=>k.value.map(w=>j.value(w)).join(", ")),Ae=b(()=>e.displayValue!==void 0?e.displayValue:ne.value),Je=b(()=>e.optionsHtml===!0?()=>!0:w=>w!=null&&w.html===!0),dt=b(()=>e.displayValueHtml===!0||e.displayValue===void 0&&(e.optionsHtml===!0||k.value.some(Je.value))),m=b(()=>$.focused.value===!0?e.tabindex:-1),y=b(()=>{const w={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":r.value===!0?"true":"false","aria-controls":`${$.targetUid.value}_lb`};return s.value>=0&&(w["aria-activedescendant"]=`${$.targetUid.value}_${s.value}`),w}),M=b(()=>({id:`${$.targetUid.value}_lb`,role:"listbox","aria-multiselectable":e.multiple===!0?"true":"false"})),J=b(()=>k.value.map((w,ce)=>({index:ce,opt:w,html:Je.value(w),selected:!0,removeAtIndex:ue,toggleOption:qe,tabindex:m.value}))),U=b(()=>{if(p.value===0)return[];const{from:w,to:ce}=I.value;return e.options.slice(w,ce).map((fe,xe)=>{const Le=v.value(fe)===!0,Pe=Wt(fe)===!0,Xe=w+xe,je={clickable:!0,active:Pe,activeClass:Z.value,manualFocus:!0,focused:!1,disable:Le,tabindex:-1,dense:e.optionsDense,dark:ge.value,role:"option","aria-selected":Pe===!0?"true":"false",id:`${$.targetUid.value}_${Xe}`,onClick:()=>{qe(fe)}};return Le!==!0&&(s.value===Xe&&(je.focused=!0),i.platform.is.desktop===!0&&(je.onMousemove=()=>{r.value===!0&&$e(Xe)})),{index:Xe,opt:fe,html:Je.value(fe),label:j.value(fe),selected:je.active,focused:je.focused,toggleOption:qe,setOptionIndex:$e,itemProps:je}})}),Y=b(()=>e.dropdownIcon!==void 0?e.dropdownIcon:i.iconSet.arrow.dropdown),oe=b(()=>e.optionsCover===!1&&e.outlined!==!0&&e.standout!==!0&&e.borderless!==!0&&e.rounded!==!0),Z=b(()=>e.optionsSelectedClass!==void 0?e.optionsSelectedClass:e.color!==void 0?`text-${e.color}`:""),K=b(()=>Yr(e.optionValue,"value")),j=b(()=>Yr(e.optionLabel,"label")),v=b(()=>Yr(e.optionDisable,"disable")),x=b(()=>k.value.map(K.value)),q=b(()=>{const w={onInput:ys,onChange:N,onKeydown:gs,onKeyup:St,onKeypress:yo,onFocus:bo,onClick(ce){g===!0&>(ce)}};return w.onCompositionstart=w.onCompositionupdate=w.onCompositionend=N,w});he(k,w=>{h=w,e.useInput===!0&&e.fillInput===!0&&e.multiple!==!0&&$.innerLoading.value!==!0&&(l.value!==!0&&r.value!==!0||ve.value!==!0)&&(P!==!0&&Hn(),(l.value===!0||r.value===!0)&&Dn(""))},{immediate:!0}),he(()=>e.fillInput,Hn),he(r,pr),he(p,Gf);function W(w){return e.emitValue===!0?K.value(w):w}function re(w){if(w!==-1&&w=e.maxValues)return;const xe=e.modelValue.slice();n("add",{index:xe.length,value:fe}),xe.push(fe),n("update:modelValue",xe)}function qe(w,ce){if($.editable.value!==!0||w===void 0||v.value(w)===!0)return;const fe=K.value(w);if(e.multiple!==!0){ce!==!0&&(wo(e.fillInput===!0?j.value(w):"",!0,!0),wn()),O.value!==null&&O.value.focus(),(k.value.length===0||fn(K.value(k.value[0]),fe)!==!0)&&n("update:modelValue",e.emitValue===!0?fe:w);return}if((g!==!0||c.value===!0)&&$.focus(),bo(),k.value.length===0){const Pe=e.emitValue===!0?fe:w;n("add",{index:0,value:Pe}),n("update:modelValue",e.multiple===!0?[Pe]:Pe);return}const xe=e.modelValue.slice(),Le=x.value.findIndex(Pe=>fn(Pe,fe));if(Le!==-1)n("remove",{index:Le,value:xe.splice(Le,1)[0]});else{if(e.maxValues!==void 0&&xe.length>=e.maxValues)return;const Pe=e.emitValue===!0?fe:w;n("add",{index:xe.length,value:Pe}),xe.push(Pe)}n("update:modelValue",xe)}function $e(w){if(i.platform.is.desktop!==!0)return;const ce=w!==-1&&w=0?j.value(e.options[fe]):V,!0))}}function Ge(w,ce){const fe=xe=>fn(K.value(xe),w);return e.options.find(fe)||ce.find(fe)||w}function Wt(w){const ce=K.value(w);return x.value.find(fe=>fn(fe,ce))!==void 0}function bo(w){e.useInput===!0&&O.value!==null&&(w===void 0||O.value===w.target&&w.target.value===ne.value)&&O.value.select()}function rt(w){mn(w,27)===!0&&r.value===!0&&(gt(w),wn(),Hn()),n("keyup",w)}function St(w){const{value:ce}=w.target;if(w.keyCode!==void 0){rt(w);return}if(w.target.value="",f!==null&&(clearTimeout(f),f=null),d!==null&&(clearTimeout(d),d=null),Hn(),typeof ce=="string"&&ce.length!==0){const fe=ce.toLocaleLowerCase(),xe=Pe=>{const Xe=e.options.find(je=>String(Pe.value(je)).toLocaleLowerCase()===fe);return Xe===void 0?!1:(k.value.indexOf(Xe)===-1?qe(Xe):wn(),!0)},Le=Pe=>{xe(K)!==!0&&Pe!==!0&&xe(j)!==!0&&Dn(ce,!0,()=>Le(!0))};Le()}else $.clearValue(w)}function yo(w){n("keypress",w)}function gs(w){if(n("keydown",w),Ql(w)===!0)return;const ce=u.value.length!==0&&(e.newValueMode!==void 0||e.onNewValue!==void 0),fe=w.shiftKey!==!0&&e.disableTabSelection!==!0&&e.multiple!==!0&&(s.value!==-1||ce===!0);if(w.keyCode===27){ut(w);return}if(w.keyCode===9&&fe===!1){zn();return}if(w.target===void 0||w.target.id!==$.targetUid.value||$.editable.value!==!0)return;if(w.keyCode===40&&$.innerLoading.value!==!0&&r.value===!1){Ve(w),jn();return}if(w.keyCode===8&&(e.useChips===!0||e.clearable===!0)&&e.hideSelected!==!0&&u.value.length===0){e.multiple===!0&&Array.isArray(e.modelValue)===!0?re(e.modelValue.length-1):e.multiple!==!0&&e.modelValue!==null&&n("update:modelValue",null);return}(w.keyCode===35||w.keyCode===36)&&(typeof u.value!="string"||u.value.length===0)&&(Ve(w),s.value=-1,He(w.keyCode===36?1:-1,e.multiple)),(w.keyCode===33||w.keyCode===34)&&le.value!==void 0&&(Ve(w),s.value=Math.max(-1,Math.min(p.value,s.value+(w.keyCode===33?-1:1)*le.value.view)),He(w.keyCode===33?1:-1,e.multiple)),(w.keyCode===38||w.keyCode===40)&&(Ve(w),He(w.keyCode===38?-1:1,e.multiple));const xe=p.value;if((R===void 0||T0&&e.useInput!==!0&&w.key!==void 0&&w.key.length===1&&w.altKey===!1&&w.ctrlKey===!1&&w.metaKey===!1&&(w.keyCode!==32||R.length!==0)){r.value!==!0&&jn(w);const Le=w.key.toLocaleLowerCase(),Pe=R.length===1&&R[0]===Le;T=Date.now()+1500,Pe===!1&&(Ve(w),R+=Le);const Xe=new RegExp("^"+R.split("").map(br=>Ab.indexOf(br)!==-1?"\\"+br:br).join(".*"),"i");let je=s.value;if(Pe===!0||je<0||Xe.test(j.value(e.options[je]))!==!0)do je=Ca(je+1,-1,xe-1);while(je!==s.value&&(v.value(e.options[je])===!0||Xe.test(j.value(e.options[je]))!==!0));s.value!==je&&Fe(()=>{$e(je),ie(je),je>=0&&e.useInput===!0&&e.fillInput===!0&&Jo(j.value(e.options[je]),!0)});return}if(!(w.keyCode!==13&&(w.keyCode!==32||e.useInput===!0||R!=="")&&(w.keyCode!==9||fe===!1))){if(w.keyCode!==9&&Ve(w),s.value!==-1&&s.value{if(Xe){if(iu(Xe)!==!0)return}else Xe=e.newValueMode;if(wo("",e.multiple!==!0,!0),Pe==null)return;(Xe==="toggle"?qe:pe)(Pe,Xe==="add-unique"),e.multiple!==!0&&(O.value!==null&&O.value.focus(),wn())};if(e.onNewValue!==void 0?n("newValue",u.value,Le):Le(u.value),e.multiple!==!0)return}r.value===!0?zn():$.innerLoading.value!==!0&&jn()}}function ps(){return g===!0?_.value:F.value!==null&&F.value.contentEl!==null?F.value.contentEl:void 0}function Ff(){return ps()}function Vf(){return e.hideSelected===!0?[]:t["selected-item"]!==void 0?J.value.map(w=>t["selected-item"](w)).slice():t.selected!==void 0?[].concat(t.selected()):e.useChips===!0?J.value.map((w,ce)=>C(vs,{key:"option-"+ce,removable:$.editable.value===!0&&v.value(w.opt)!==!0,dense:!0,textColor:e.color,tabindex:m.value,onRemove(){w.removeAtIndex(ce)}},()=>C("span",{class:"ellipsis",[w.html===!0?"innerHTML":"textContent"]:j.value(w.opt)}))):[C("span",{[dt.value===!0?"innerHTML":"textContent"]:Ae.value})]}function bs(){if(_e.value===!0)return t["no-option"]!==void 0?t["no-option"]({inputValue:u.value}):void 0;const w=t.option!==void 0?t.option:fe=>C(zt,{key:fe.index,...fe.itemProps},()=>C(Dt,()=>C(Sb,()=>C("span",{[fe.html===!0?"innerHTML":"textContent"]:fe.label}))));let ce=Q("div",U.value.map(w));return t["before-options"]!==void 0&&(ce=t["before-options"]().concat(ce)),Zt(t["after-options"],ce)}function Bf(w,ce){const fe=ce===!0?{...y.value,...$.splitAttrs.attributes.value}:void 0,xe={ref:ce===!0?O:void 0,key:"i_t",class:H.value,style:e.inputStyle,value:u.value!==void 0?u.value:"",type:"search",...fe,id:ce===!0?$.targetUid.value:void 0,maxlength:e.maxlength,autocomplete:e.autocomplete,"data-autofocus":w===!0||e.autofocus===!0||void 0,disabled:e.disable===!0,readonly:e.readonly===!0,...q.value};return w!==!0&&g===!0&&(Array.isArray(xe.class)===!0?xe.class=[...xe.class,"no-pointer-events"]:xe.class+=" no-pointer-events"),C("input",xe)}function ys(w){f!==null&&(clearTimeout(f),f=null),d!==null&&(clearTimeout(d),d=null),!(w&&w.target&&w.target.qComposing===!0)&&(Jo(w.target.value||""),P=!0,V=u.value,$.focused.value!==!0&&(g!==!0||c.value===!0)&&$.focus(),e.onFilter!==void 0&&(f=setTimeout(()=>{f=null,Dn(u.value)},e.inputDebounce)))}function Jo(w,ce){u.value!==w&&(u.value=w,ce===!0||e.inputDebounce===0||e.inputDebounce==="0"?n("inputValue",w):d=setTimeout(()=>{d=null,n("inputValue",w)},e.inputDebounce))}function wo(w,ce,fe){P=fe!==!0,e.useInput===!0&&(Jo(w,!0),(ce===!0||fe!==!0)&&(V=w),ce!==!0&&Dn(w))}function Dn(w,ce,fe){if(e.onFilter===void 0||ce!==!0&&$.focused.value!==!0)return;$.innerLoading.value===!0?n("filterAbort"):($.innerLoading.value=!0,a.value=!0),w!==""&&e.multiple!==!0&&k.value.length!==0&&P!==!0&&w===j.value(k.value[0])&&(w="");const xe=setTimeout(()=>{r.value===!0&&(r.value=!1)},10);A!==null&&clearTimeout(A),A=xe,n("filter",w,(Le,Pe)=>{(ce===!0||$.focused.value===!0)&&A===xe&&(clearTimeout(A),typeof Le=="function"&&Le(),a.value=!1,Fe(()=>{$.innerLoading.value=!1,$.editable.value===!0&&(ce===!0?r.value===!0&&wn():r.value===!0?pr(!0):r.value=!0),typeof Pe=="function"&&Fe(()=>{Pe(o)}),typeof fe=="function"&&Fe(()=>{fe(o)})}))},()=>{$.focused.value===!0&&A===xe&&(clearTimeout(A),$.innerLoading.value=!1,a.value=!1),r.value===!0&&(r.value=!1)})}function Nf(){return C(To,{ref:F,class:ae.value,style:e.popupContentStyle,modelValue:r.value,fit:e.menuShrink!==!0,cover:e.optionsCover===!0&&_e.value!==!0&&e.useInput!==!0,anchor:e.menuAnchor,self:e.menuSelf,offset:e.menuOffset,dark:ge.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,noRouteDismiss:e.popupNoRouteDismiss,square:oe.value,transitionShow:e.transitionShow,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,separateClosePopup:!0,...M.value,onScrollPassive:B,onBeforeShow:_s,onBeforeHide:Df,onShow:zf},bs)}function Df(w){Ss(w),zn()}function zf(){me()}function jf(w){gt(w),O.value!==null&&O.value.focus(),c.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function Hf(w){gt(w),Fe(()=>{c.value=!1})}function Uf(){const w=[C(_b,{class:`col-auto ${$.fieldClass.value}`,...te.value,for:$.targetUid.value,dark:ge.value,square:!0,loading:a.value,itemAligned:!1,filled:!0,stackLabel:u.value.length!==0,...$.splitAttrs.listeners.value,onFocus:jf,onBlur:Hf},{...t,rawControl:()=>$.getControl(!0),before:void 0,after:void 0})];return r.value===!0&&w.push(C("div",{ref:_,class:ae.value+" scroll",style:e.popupContentStyle,...M.value,onClick:ut,onScrollPassive:B},bs())),C(go,{ref:X,modelValue:l.value,position:e.useInput===!0?"top":void 0,transitionShow:S,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,noRouteDismiss:e.popupNoRouteDismiss,onBeforeShow:_s,onBeforeHide:Kf,onHide:Wf,onShow:Qf},()=>C("div",{class:"q-select__dialog"+(ge.value===!0?" q-select__dialog--dark q-dark":"")+(c.value===!0?" q-select__dialog--focused":"")},w))}function Kf(w){Ss(w),X.value!==null&&X.value.__updateRefocusTarget($.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),$.focused.value=!1}function Wf(w){wn(),$.focused.value===!1&&n("blur",w),Hn()}function Qf(){const w=document.activeElement;(w===null||w.id!==$.targetUid.value)&&O.value!==null&&O.value!==w&&O.value.focus(),me()}function zn(){l.value!==!0&&(s.value=-1,r.value===!0&&(r.value=!1),$.focused.value===!1&&(A!==null&&(clearTimeout(A),A=null),$.innerLoading.value===!0&&(n("filterAbort"),$.innerLoading.value=!1,a.value=!1)))}function jn(w){$.editable.value===!0&&(g===!0?($.onControlFocusin(w),l.value=!0,Fe(()=>{$.focus()})):$.focus(),e.onFilter!==void 0?Dn(u.value):(_e.value!==!0||t["no-option"]!==void 0)&&(r.value=!0))}function wn(){l.value=!1,zn()}function Hn(){e.useInput===!0&&wo(e.multiple!==!0&&e.fillInput===!0&&k.value.length!==0&&j.value(k.value[0])||"",!0,!0)}function pr(w){let ce=-1;if(w===!0){if(k.value.length!==0){const fe=K.value(k.value[0]);ce=e.options.findIndex(xe=>fn(K.value(xe),fe))}ee(ce)}$e(ce)}function Gf(w,ce){r.value===!0&&$.innerLoading.value===!1&&(ee(-1,!0),Fe(()=>{r.value===!0&&$.innerLoading.value===!1&&(w>ce?ee():pr(!0))}))}function ws(){l.value===!1&&F.value!==null&&F.value.updatePosition()}function _s(w){w!==void 0&>(w),n("popupShow",w),$.hasPopupOpen=!0,$.onControlFocusin(w)}function Ss(w){w!==void 0&>(w),n("popupHide",w),$.hasPopupOpen=!1,$.onControlFocusout(w)}function xs(){g=i.platform.is.mobile!==!0&&e.behavior!=="dialog"?!1:e.behavior!=="menu"&&(e.useInput===!0?t["no-option"]!==void 0||e.onFilter!==void 0||_e.value===!1:!0),S=i.platform.is.ios===!0&&g===!0&&e.useInput===!0?"fade":e.transitionShow}return Bl(xs),Nl(ws),xs(),Ne(()=>{f!==null&&clearTimeout(f),d!==null&&clearTimeout(d)}),Object.assign(o,{showPopup:jn,hidePopup:wn,removeAtIndex:re,add:pe,toggleOption:qe,getOptionIndex:()=>s.value,setOptionIndex:$e,moveOptionSelection:He,filter:Dn,updateMenuPosition:ws,updateInputValue:wo,isOptionSelected:Wt,getEmittingOptionValue:W,isOptionDisabled:(...w)=>v.value.apply(null,w)===!0,getOptionValue:(...w)=>K.value.apply(null,w),getOptionLabel:(...w)=>j.value.apply(null,w)}),Object.assign($,{innerValue:k,fieldClass:b(()=>`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:L,targetRef:O,hasValue:ve,showPopup:jn,floatingLabel:b(()=>e.hideSelected!==!0&&ve.value===!0||typeof u.value=="number"||u.value.length!==0||Fn(e.displayValue)),getControlChild:()=>{if($.editable.value!==!1&&(l.value===!0||_e.value!==!0||t["no-option"]!==void 0))return g===!0?Uf():Nf();$.hasPopupOpen===!0&&($.hasPopupOpen=!1)},controlEvents:{onFocusin(w){$.onControlFocusin(w)},onFocusout(w){$.onControlFocusout(w,()=>{Hn(),zn()})},onClick(w){if(ut(w),g!==!0&&r.value===!0){zn(),O.value!==null&&O.value.focus();return}jn(w)}},getControl:w=>{const ce=Vf(),fe=w===!0||l.value!==!0||g!==!0;if(e.useInput===!0)ce.push(Bf(w,fe));else if($.editable.value===!0){const Le=fe===!0?y.value:void 0;ce.push(C("input",{ref:fe===!0?O:void 0,key:"d_t",class:"q-select__focus-target",id:fe===!0?$.targetUid.value:void 0,value:Ae.value,readonly:!0,"data-autofocus":w===!0||e.autofocus===!0||void 0,...Le,onKeydown:gs,onKeyup:rt,onKeypress:yo})),fe===!0&&typeof e.autocomplete=="string"&&e.autocomplete.length!==0&&ce.push(C("input",{class:"q-select__autocomplete-input",autocomplete:e.autocomplete,tabindex:-1,onKeyup:St}))}if(E.value!==void 0&&e.disable!==!0&&x.value.length!==0){const Le=x.value.map(Pe=>C("option",{value:Pe,selected:!0}));ce.push(C("select",{class:"hidden",name:E.value,multiple:e.multiple},Le))}const xe=e.useInput===!0||fe!==!0?void 0:$.splitAttrs.attributes.value;return C("div",{class:"q-field__native row items-center",...xe,...$.splitAttrs.listeners.value},ce)},getInnerAppend:()=>e.loading!==!0&&a.value!==!0&&e.hideDropdownIcon!==!0?[C(We,{class:"q-select__dropdown-icon"+(r.value===!0?" rotate-180":""),name:Y.value})]:null}),vr($)}}),qb={name:"SpitTypeSelector",data(){return{customSeparator:"---",splitOptions:[{label:"New Line",value:"newline"},{label:"An Empty Line",value:"emptyline"},{label:"Custom String",value:"custom"}]}},computed:{...Nn(["annotations"]),splitType:{get(){switch(this.$store.state.separator){case` `:return"newline";case` `:return"emptyline";default:return"custom"}},set(e){switch(e.value){case"newline":this.$store.commit("setSeparator",` `);break;case"emptyline":this.$store.commit("setSeparator",` -`);break;default:this.$store.commit("setSeparator","---");break}}}},methods:{separatorChanged(){this.$store.commit("setSeparator",this.customSeparator)}}},kb={class:"q-pa-md"},Eb={key:0,class:"q-px-md"};function Tb(e,t,n,o,i,r){return we(),ot("section",null,[G("div",kb,[D(Of,{modelValue:r.splitType,"onUpdate:modelValue":t[0]||(t[0]=l=>r.splitType=l),outlined:"","bg-color":e.$q.dark.isActive?"dark":"white",options:i.splitOptions,"map-options":!0,label:"Text Seperator"},null,8,["modelValue","bg-color","options"])]),r.splitType==="custom"?(we(),ot("div",Eb,[D(rs,{modelValue:i.customSeparator,"onUpdate:modelValue":t[1]||(t[1]=l=>i.customSeparator=l),label:"Separator","bg-color":"white",outlined:"",disabled:e.annotations.length,onChange:r.separatorChanged},null,8,["modelValue","disabled","onChange"])])):$n("",!0)])}const Ab=it(Cb,[["render",Tb]]),qb={name:"AnnotationPrecisionSelector",data(){return{precisionOptions:[{label:"Word Level",value:"word"},{label:"Character Level",value:"char"}]}},computed:{precisionType:{get(){switch(this.$store.state.annotationPrecision){case"word":return"word";case"char":return"char";default:return"word"}},set(e){switch(e.value){case"word":this.$store.commit("setAnnotationPrecision","word");break;case"char":this.$store.commit("setAnnotationPrecision","char");break;default:this.$store.commit("setAnnotationPrecision","word");break}}}}},$b={class:"q-px-md q-pb-md"};function Ob(e,t,n,o,i,r){return we(),ot("section",null,[G("div",$b,[D(Of,{modelValue:r.precisionType,"onUpdate:modelValue":t[0]||(t[0]=l=>r.precisionType=l),outlined:"","bg-color":e.$q.dark.isActive?"dark":"white",options:i.precisionOptions,"map-options":!0,label:"Annotation Precision"},null,8,["modelValue","bg-color","options"])])])}const Pb=it(qb,[["render",Ob]]);function Mb(e,t){const n=se(null),o=b(()=>e.disable===!0?null:C("span",{ref:n,class:"no-outline",tabindex:-1}));function i(r){const l=t.value;r!==void 0&&r.type.indexOf("key")===0?l!==null&&document.activeElement!==l&&l.contains(document.activeElement)===!0&&l.focus():n.value!==null&&(r===void 0||l!==null&&l.contains(r.target)===!0)&&n.value.focus()}return{refocusTargetEl:o,refocusTarget:i}}const Lb={xs:30,sm:35,md:40,lg:50,xl:60},Rb={...$t,...vo,...mr,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]},Ib=["update:modelValue"];function Fb(e,t){const{props:n,slots:o,emit:i,proxy:r}=Se(),{$q:l}=r,s=Ot(n,l),u=se(null),{refocusTargetEl:c,refocusTarget:a}=Mb(n,u),f=mo(n,Lb),d=b(()=>n.val!==void 0&&Array.isArray(n.modelValue)),h=b(()=>{const p=Ce(n.val);return d.value===!0?n.modelValue.findIndex(z=>Ce(z)===p):-1}),g=b(()=>d.value===!0?h.value!==-1:Ce(n.modelValue)===Ce(n.trueValue)),P=b(()=>d.value===!0?h.value===-1:Ce(n.modelValue)===Ce(n.falseValue)),T=b(()=>g.value===!1&&P.value===!1),V=b(()=>n.disable===!0?-1:n.tabindex||0),S=b(()=>`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":"")),R=b(()=>{const p=g.value===!0?"truthy":P.value===!0?"falsy":"indet",z=n.color!==void 0&&(n.keepColor===!0||g.value===!0)?` text-${n.color}`:"";return`q-${e}__inner relative-position non-selectable q-${e}__inner--${p}${z}`}),A=b(()=>{const p={type:"checkbox"};return n.name!==void 0&&Object.assign(p,{".checked":g.value,"^checked":g.value===!0?"checked":void 0,name:n.name,value:d.value===!0?n.val:n.trueValue}),p}),L=ig(A),$=b(()=>{const p={tabindex:V.value,role:"switch","aria-label":n.label,"aria-checked":T.value===!0?"mixed":g.value===!0?"true":"false"};return n.disable===!0&&(p["aria-disabled"]="true"),p});function F(p){p!==void 0&&(Ve(p),a(p)),n.disable!==!0&&i("update:modelValue",X(),p)}function X(){if(d.value===!0){if(g.value===!0){const p=n.modelValue.slice();return p.splice(h.value,1),p}return n.modelValue.concat([n.val])}if(g.value===!0){if(n.toggleOrder!=="ft"||n.toggleIndeterminate===!1)return n.falseValue}else if(P.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 _(p){(p.keyCode===13||p.keyCode===32)&&Ve(p)}function E(p){(p.keyCode===13||p.keyCode===32)&&F(p)}const B=t(g,T);return Object.assign(r,{toggle:F}),()=>{const p=B();n.disable!==!0&&L(p,"unshift",` q-${e}__native absolute q-ma-none q-pa-none`);const z=[C("div",{class:R.value,style:f.value,"aria-hidden":"true"},p)];c.value!==null&&z.push(c.value);const I=n.label!==void 0?Zt(o.default,[n.label]):ze(o.default);return I!==void 0&&z.push(C("div",{class:`q-${e}__label q-anchor--skip`},I)),C("div",{ref:u,class:S.value,...$.value,onClick:F,onKeydown:_,onKeyup:E},z)}}const Vb=ke({name:"QToggle",props:{...Rb,icon:String,iconColor:String},emits:Ib,setup(e){function t(n,o){const i=b(()=>(n.value===!0?e.checkedIcon:o.value===!0?e.indeterminateIcon:e.uncheckedIcon)||e.icon),r=b(()=>n.value===!0?e.iconColor:null);return()=>[C("div",{class:"q-toggle__track"}),C("div",{class:"q-toggle__thumb absolute flex flex-center no-wrap"},i.value!==void 0?[C(We,{name:i.value,color:r.value})]:void 0)]}return Fb("toggle",t)}}),Nb={name:"KeyboardShortcuts",data:function(){return{enableKeyboardShortcuts:!1,showShortcutHelp:!1}},methods:{enableKeyboardShortcutsChanged(){this.$store.commit("setKeyboardShortcuts",this.enableKeyboardShortcuts)}}};function Bb(e,t,n,o,i,r){return we(),ot(at,null,[G("section",null,[t[3]||(t[3]=G("br",null,null,-1)),D(Vb,{modelValue:e.enableKeyboardShortcuts,"onUpdate:modelValue":t[0]||(t[0]=l=>e.enableKeyboardShortcuts=l),label:"Keyboard Shortcuts",onClick:r.enableKeyboardShortcutsChanged},null,8,["modelValue","onClick"]),D(We,{style:{"margin-left":"5px","margin-top":"3px"},color:e.$q.dark.isActive?"grey-4":"grey-10",name:"far fa-question-circle",onClick:t[1]||(t[1]=l=>e.showShortcutHelp=!0)},null,8,["color"])]),D(go,{"model-value":e.showShortcutHelp,onHide:t[2]||(t[2]=l=>e.showShortcutHelp=!1)},{default:de(()=>[D(Go,{style:{"min-width":"100px",padding:"10px","border-radius":"10px"}},{default:de(()=>[D(tn,{class:"text-body1"},{default:de(()=>t[4]||(t[4]=[G("div",{class:"column"},[G("div",{class:"row",style:{height:"40px"}},[G("div",{class:"col-4"}," Num Keys: "),G("div",{class:"col"}," Change classes ")]),G("div",{class:"row",style:{height:"60px"}},[G("div",{class:"col-4"}," Space Bar: "),G("div",{class:"col"}," Save and move to the next sentence ")]),G("div",{class:"row",style:{height:"60px"}},[G("div",{class:"col-4"}," Right Arrow: "),G("div",{class:"col"}," Skip and move to the next sentence ")]),G("div",{class:"row",style:{height:"60px"}},[G("div",{class:"col-4"}," Left Arrow: "),G("div",{class:"col"}," Go back to the previous sentence ")]),G("div",{class:"row",style:{height:"60px"}},[G("div",{class:"col-4"}," Escape: "),G("div",{class:"col"}," Discard changes to the current sentence ")])],-1)])),_:1})]),_:1})]),_:1},8,["model-value"])],64)}const Db=it(Nb,[["render",Bb]]),zb={name:"AnnotationSidebar",components:{ProgressBar:mb,SplitTypeSelector:Ab,AnnotationPrecisionSelector:Pb,KeyboardShortcuts:Db},computed:{...Bn(["currentIndex","inputSentences"])}},jb={class:"px-3"};function Hb(e,t,n,o,i,r){const l=vt("split-type-selector"),s=vt("annotation-precision-selector"),u=vt("progress-bar"),c=vt("keyboard-shortcuts");return we(),ot("nav",jb,[D(l,{class:"mt-4 mb-5"}),D(s,{class:"mt-4 mb-5"}),D(u,{class:"mb-5",completed:e.currentIndex,total:e.inputSentences.length},null,8,["completed","total"]),D(c)])}const Kb=it(zb,[["render",Hb]]),Ub={},Wb={class:"fullscreen column justify-center bg-black",style:{opacity:"0.85"}},Qb={class:"column items-center"},Gb={class:"text-h2 text-white"};function Yb(e,t){return we(),ot("div",Wb,[G("div",Qb,[G("p",Gb,[D(We,{name:"fas fa-upload"})]),t[0]||(t[0]=G("p",{class:"text-h3 text-white"}," Drop file to upload. ",-1))])])}const Jb=it(Ub,[["render",Yb]]),Xb={name:"LayoutDefault",components:{MenuBar:Sp,StartPage:Ip,AnnotationPage:ab,AnnotationSidebar:Kb,DragNDropOverlay:Jb,ExitDialog:Af},setup(){const e=Tf();return{notify(t,n,o){e.notify({icon:t,message:n,color:o,position:"top",timeout:2e3,actions:[{label:"Dismiss",color:"white"}]})}}},data(){return{overlayActive:!1,pendingFileDrop:null}},computed:{...Bn(["annotations","classes","currentPage"])},methods:{...Yo(["loadClasses","loadAnnotations","setInputSentences","clearAllAnnotations","resetIndex","switchToPage"]),onDragEnter(){this.overlayActive=!0},onDragLeave(){this.overlayActive=!1},onDrop(e){this.overlayActive=!1,this.pendingFileDrop=e.dataTransfer.files[0],this.currentPage=="start"&&this.processFileDrop()},processFileDrop(){let e=new FileReader;e.onload=t=>{let n=t.target.result;try{if(this.currentPage=="start")throw new Error("Not a text file.");this.loadAnnotations(JSON.parse(n)),this.notify("fa fa-check","Annotations imported successfully","positive")}catch{try{if(this.currentPage=="start")throw new Error("Not a text file.");this.loadClasses(JSON.parse(n)),this.notify("fa fa-check",`${this.classes.length} Tags imported successfully`,"positive")}catch{try{this.setInputSentences(n),this.clearAllAnnotations(),this.resetIndex(),this.switchToPage("annotate")}catch{this.notify("fas fa-exclamation-circle","Invalid file","red-6")}}}},e.readAsText(this.pendingFileDrop),this.pendingFileDrop=null}}};function Zb(e,t,n,o,i,r){const l=vt("menu-bar"),s=vt("annotation-sidebar"),u=vt("start-page"),c=vt("annotation-page"),a=vt("drag-n-drop-overlay"),f=vt("exit-dialog");return we(),ot("div",{class:"fullscreen",style:{"overflow-y":"scroll"},onDragover:t[3]||(t[3]=Mr((...d)=>r.onDragEnter&&r.onDragEnter(...d),["prevent"])),onDragenter:t[4]||(t[4]=(...d)=>r.onDragEnter&&r.onDragEnter(...d)),onDragleave:t[5]||(t[5]=Mr((...d)=>r.onDragLeave&&r.onDragLeave(...d),["self"])),onDrop:t[6]||(t[6]=Mr((...d)=>r.onDrop&&r.onDrop(...d),["stop","prevent"]))},[G("div",{style:so({"pointer-events":i.overlayActive?"none":"auto"})},[D(hm,{view:"hHh lpR lFf"},{default:de(()=>[D(l),D(am,{behavior:"desktop",bordered:"",side:"left","model-value":e.currentPage==="annotate",class:At(e.$q.dark.isActive?"bg-dark":"bg-grey-2")},{default:de(()=>[D(s)]),_:1},8,["model-value","class"]),D(um,null,{default:de(()=>[e.currentPage==="start"?(we(),De(u,{key:0,onFileLoaded:t[0]||(t[0]=d=>e.switchToPage("annotate"))})):$n("",!0),e.currentPage==="annotate"?(we(),De(c,{key:1})):$n("",!0)]),_:1})]),_:1}),D(a,{style:so({visibility:i.overlayActive&&i.pendingFileDrop==null?"visible":"hidden"})},null,8,["style"]),D(f,{show:i.pendingFileDrop!=null&&e.currentPage!="start",onHide:t[1]||(t[1]=d=>i.pendingFileDrop=null),onConfirm:t[2]||(t[2]=d=>r.processFileDrop())},null,8,["show"])],4)],32)}const ey=it(Xb,[["render",Zb]]);function ty(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Pf={exports:{}};/*! +`);break;default:this.$store.commit("setSeparator","---");break}}}},methods:{separatorChanged(){this.$store.commit("setSeparator",this.customSeparator)}}},Ob={class:"q-pa-md"},$b={key:0,class:"q-px-md"};function Pb(e,t,n,o,i,r){return we(),ot("section",null,[G("div",Ob,[D($f,{modelValue:r.splitType,"onUpdate:modelValue":t[0]||(t[0]=l=>r.splitType=l),outlined:"","bg-color":e.$q.dark.isActive?"dark":"white",options:i.splitOptions,"map-options":!0,label:"Text Seperator"},null,8,["modelValue","bg-color","options"])]),r.splitType==="custom"?(we(),ot("div",$b,[D(rs,{modelValue:i.customSeparator,"onUpdate:modelValue":t[1]||(t[1]=l=>i.customSeparator=l),label:"Separator","bg-color":"white",outlined:"",disabled:e.annotations.length,onChange:r.separatorChanged},null,8,["modelValue","disabled","onChange"])])):On("",!0)])}const Mb=it(qb,[["render",Pb]]),Lb={name:"AnnotationPrecisionSelector",data(){return{precisionOptions:[{label:"Word Level",value:"word"},{label:"Character Level",value:"char"}]}},computed:{precisionType:{get(){switch(this.$store.state.annotationPrecision){case"word":return"word";case"char":return"char";default:return"word"}},set(e){switch(e.value){case"word":this.$store.commit("setAnnotationPrecision","word");break;case"char":this.$store.commit("setAnnotationPrecision","char");break;default:this.$store.commit("setAnnotationPrecision","word");break}}}}},Rb={class:"q-px-md q-pb-md"};function Ib(e,t,n,o,i,r){return we(),ot("section",null,[G("div",Rb,[D($f,{modelValue:r.precisionType,"onUpdate:modelValue":t[0]||(t[0]=l=>r.precisionType=l),outlined:"","bg-color":e.$q.dark.isActive?"dark":"white",options:i.precisionOptions,"map-options":!0,label:"Annotation Precision"},null,8,["modelValue","bg-color","options"])])])}const Fb=it(Lb,[["render",Ib]]);function Vb(e,t){const n=se(null),o=b(()=>e.disable===!0?null:C("span",{ref:n,class:"no-outline",tabindex:-1}));function i(r){const l=t.value;r!==void 0&&r.type.indexOf("key")===0?l!==null&&document.activeElement!==l&&l.contains(document.activeElement)===!0&&l.focus():n.value!==null&&(r===void 0||l!==null&&l.contains(r.target)===!0)&&n.value.focus()}return{refocusTargetEl:o,refocusTarget:i}}const Bb={xs:30,sm:35,md:40,lg:50,xl:60},Nb={...Ot,...vo,...mr,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]},Db=["update:modelValue"];function zb(e,t){const{props:n,slots:o,emit:i,proxy:r}=Se(),{$q:l}=r,s=$t(n,l),u=se(null),{refocusTargetEl:c,refocusTarget:a}=Vb(n,u),f=mo(n,Bb),d=b(()=>n.val!==void 0&&Array.isArray(n.modelValue)),h=b(()=>{const p=Ce(n.val);return d.value===!0?n.modelValue.findIndex(z=>Ce(z)===p):-1}),g=b(()=>d.value===!0?h.value!==-1:Ce(n.modelValue)===Ce(n.trueValue)),P=b(()=>d.value===!0?h.value===-1:Ce(n.modelValue)===Ce(n.falseValue)),A=b(()=>g.value===!1&&P.value===!1),V=b(()=>n.disable===!0?-1:n.tabindex||0),S=b(()=>`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":"")),R=b(()=>{const p=g.value===!0?"truthy":P.value===!0?"falsy":"indet",z=n.color!==void 0&&(n.keepColor===!0||g.value===!0)?` text-${n.color}`:"";return`q-${e}__inner relative-position non-selectable q-${e}__inner--${p}${z}`}),T=b(()=>{const p={type:"checkbox"};return n.name!==void 0&&Object.assign(p,{".checked":g.value,"^checked":g.value===!0?"checked":void 0,name:n.name,value:d.value===!0?n.val:n.trueValue}),p}),L=ig(T),O=b(()=>{const p={tabindex:V.value,role:"switch","aria-label":n.label,"aria-checked":A.value===!0?"mixed":g.value===!0?"true":"false"};return n.disable===!0&&(p["aria-disabled"]="true"),p});function F(p){p!==void 0&&(Ve(p),a(p)),n.disable!==!0&&i("update:modelValue",X(),p)}function X(){if(d.value===!0){if(g.value===!0){const p=n.modelValue.slice();return p.splice(h.value,1),p}return n.modelValue.concat([n.val])}if(g.value===!0){if(n.toggleOrder!=="ft"||n.toggleIndeterminate===!1)return n.falseValue}else if(P.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 _(p){(p.keyCode===13||p.keyCode===32)&&Ve(p)}function E(p){(p.keyCode===13||p.keyCode===32)&&F(p)}const N=t(g,A);return Object.assign(r,{toggle:F}),()=>{const p=N();n.disable!==!0&&L(p,"unshift",` q-${e}__native absolute q-ma-none q-pa-none`);const z=[C("div",{class:R.value,style:f.value,"aria-hidden":"true"},p)];c.value!==null&&z.push(c.value);const I=n.label!==void 0?Zt(o.default,[n.label]):ze(o.default);return I!==void 0&&z.push(C("div",{class:`q-${e}__label q-anchor--skip`},I)),C("div",{ref:u,class:S.value,...O.value,onClick:F,onKeydown:_,onKeyup:E},z)}}const jb=ke({name:"QToggle",props:{...Nb,icon:String,iconColor:String},emits:Db,setup(e){function t(n,o){const i=b(()=>(n.value===!0?e.checkedIcon:o.value===!0?e.indeterminateIcon:e.uncheckedIcon)||e.icon),r=b(()=>n.value===!0?e.iconColor:null);return()=>[C("div",{class:"q-toggle__track"}),C("div",{class:"q-toggle__thumb absolute flex flex-center no-wrap"},i.value!==void 0?[C(We,{name:i.value,color:r.value})]:void 0)]}return zb("toggle",t)}}),Hb={name:"KeyboardShortcuts",data:function(){return{enableKeyboardShortcuts:!1,showShortcutHelp:!1}},methods:{enableKeyboardShortcutsChanged(){this.$store.commit("setKeyboardShortcuts",this.enableKeyboardShortcuts)}}};function Ub(e,t,n,o,i,r){return we(),ot(at,null,[G("section",null,[t[3]||(t[3]=G("br",null,null,-1)),D(jb,{modelValue:e.enableKeyboardShortcuts,"onUpdate:modelValue":t[0]||(t[0]=l=>e.enableKeyboardShortcuts=l),label:"Keyboard Shortcuts",onClick:r.enableKeyboardShortcutsChanged},null,8,["modelValue","onClick"]),D(We,{style:{"margin-left":"5px","margin-top":"3px"},color:e.$q.dark.isActive?"grey-4":"grey-10",name:"far fa-question-circle",onClick:t[1]||(t[1]=l=>e.showShortcutHelp=!0)},null,8,["color"])]),D(go,{"model-value":e.showShortcutHelp,onHide:t[2]||(t[2]=l=>e.showShortcutHelp=!1)},{default:de(()=>[D(Go,{style:{"min-width":"100px",padding:"10px","border-radius":"10px"}},{default:de(()=>[D(tn,{class:"text-body1"},{default:de(()=>t[4]||(t[4]=[G("div",{class:"column"},[G("div",{class:"row",style:{height:"40px"}},[G("div",{class:"col-4"}," Num Keys: "),G("div",{class:"col"}," Change classes ")]),G("div",{class:"row",style:{height:"60px"}},[G("div",{class:"col-4"}," Space Bar: "),G("div",{class:"col"}," Save and move to the next sentence ")]),G("div",{class:"row",style:{height:"60px"}},[G("div",{class:"col-4"}," Right Arrow: "),G("div",{class:"col"}," Skip and move to the next sentence ")]),G("div",{class:"row",style:{height:"60px"}},[G("div",{class:"col-4"}," Left Arrow: "),G("div",{class:"col"}," Go back to the previous sentence ")]),G("div",{class:"row",style:{height:"60px"}},[G("div",{class:"col-4"}," Escape: "),G("div",{class:"col"}," Discard changes to the current sentence ")])],-1)])),_:1})]),_:1})]),_:1},8,["model-value"])],64)}const Kb=it(Hb,[["render",Ub]]),Wb={name:"AnnotationSidebar",components:{ProgressBar:wb,SplitTypeSelector:Mb,AnnotationPrecisionSelector:Fb,KeyboardShortcuts:Kb},computed:{...Nn(["currentIndex","inputSentences"])}},Qb={class:"px-3"};function Gb(e,t,n,o,i,r){const l=vt("split-type-selector"),s=vt("annotation-precision-selector"),u=vt("progress-bar"),c=vt("keyboard-shortcuts");return we(),ot("nav",Qb,[D(l,{class:"mt-4 mb-5"}),D(s,{class:"mt-4 mb-5"}),D(u,{class:"mb-5",completed:e.currentIndex,total:e.inputSentences.length},null,8,["completed","total"]),D(c)])}const Yb=it(Wb,[["render",Gb]]),Jb={},Xb={class:"fullscreen column justify-center bg-black",style:{opacity:"0.85"}},Zb={class:"column items-center"},ey={class:"text-h2 text-white"};function ty(e,t){return we(),ot("div",Xb,[G("div",Zb,[G("p",ey,[D(We,{name:"fas fa-upload"})]),t[0]||(t[0]=G("p",{class:"text-h3 text-white"}," Drop file to upload. ",-1))])])}const ny=it(Jb,[["render",ty]]),oy={name:"LayoutDefault",components:{MenuBar:Ap,StartPage:Dp,AnnotationPage:hb,AnnotationSidebar:Yb,DragNDropOverlay:ny,ExitDialog:Tf},setup(){const e=Af();return{notify(t,n,o){e.notify({icon:t,message:n,color:o,position:"top",timeout:2e3,actions:[{label:"Dismiss",color:"white"}]})}}},data(){return{overlayActive:!1,pendingFileDrop:null}},computed:{...Nn(["annotations","classes","currentPage"])},methods:{...Yo(["loadClasses","loadAnnotations","setInputSentences","clearAllAnnotations","resetIndex","switchToPage"]),onDragEnter(){this.overlayActive=!0},onDragLeave(){this.overlayActive=!1},onDrop(e){this.overlayActive=!1,this.pendingFileDrop=e.dataTransfer.files[0],this.currentPage=="start"&&this.processFileDrop()},processFileDrop(){let e=new FileReader;e.onload=t=>{let n=t.target.result;try{if(this.currentPage=="start")throw new Error("Not a text file.");this.loadAnnotations(JSON.parse(n)),this.notify("fa fa-check","Annotations imported successfully","positive")}catch{try{if(this.currentPage=="start")throw new Error("Not a text file.");this.loadClasses(JSON.parse(n)),this.notify("fa fa-check",`${this.classes.length} Tags imported successfully`,"positive")}catch{try{this.setInputSentences(n),this.clearAllAnnotations(),this.resetIndex(),this.switchToPage("annotate")}catch{this.notify("fas fa-exclamation-circle","Invalid file","red-6")}}}},e.readAsText(this.pendingFileDrop),this.pendingFileDrop=null}}};function iy(e,t,n,o,i,r){const l=vt("menu-bar"),s=vt("annotation-sidebar"),u=vt("start-page"),c=vt("annotation-page"),a=vt("drag-n-drop-overlay"),f=vt("exit-dialog");return we(),ot("div",{class:"fullscreen",style:{"overflow-y":"scroll"},onDragover:t[3]||(t[3]=Mr((...d)=>r.onDragEnter&&r.onDragEnter(...d),["prevent"])),onDragenter:t[4]||(t[4]=(...d)=>r.onDragEnter&&r.onDragEnter(...d)),onDragleave:t[5]||(t[5]=Mr((...d)=>r.onDragLeave&&r.onDragLeave(...d),["self"])),onDrop:t[6]||(t[6]=Mr((...d)=>r.onDrop&&r.onDrop(...d),["stop","prevent"]))},[G("div",{style:so({"pointer-events":i.overlayActive?"none":"auto"})},[D(hm,{view:"hHh lpR lFf"},{default:de(()=>[D(l),D(am,{behavior:"desktop",bordered:"",side:"left","model-value":e.currentPage==="annotate",class:Tt(e.$q.dark.isActive?"bg-dark":"bg-grey-2")},{default:de(()=>[D(s)]),_:1},8,["model-value","class"]),D(um,null,{default:de(()=>[e.currentPage==="start"?(we(),De(u,{key:0,onFileLoaded:t[0]||(t[0]=d=>e.switchToPage("annotate"))})):On("",!0),e.currentPage==="annotate"?(we(),De(c,{key:1})):On("",!0)]),_:1})]),_:1}),D(a,{style:so({visibility:i.overlayActive&&i.pendingFileDrop==null?"visible":"hidden"})},null,8,["style"]),D(f,{show:i.pendingFileDrop!=null&&e.currentPage!="start",onHide:t[1]||(t[1]=d=>i.pendingFileDrop=null),onConfirm:t[2]||(t[2]=d=>r.processFileDrop())},null,8,["show"])],4)],32)}const ry=it(oy,[["render",iy]]);function ly(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Pf={exports:{}};/*! * @overview es6-promise - a tiny implementation of Promises/A+. * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald) * @license Licensed under MIT license * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE * @version v4.2.8+1e68dce6 - */(function(e,t){(function(n,o){e.exports=o()})(Qr,function(){function n(v){var x=typeof v;return v!==null&&(x==="object"||x==="function")}function o(v){return typeof v=="function"}var i=void 0;Array.isArray?i=Array.isArray:i=function(v){return Object.prototype.toString.call(v)==="[object Array]"};var r=i,l=0,s=void 0,u=void 0,c=function(x,q){$[l]=x,$[l+1]=q,l+=2,l===2&&(u?u(F):_())};function a(v){u=v}function f(v){c=v}var d=typeof window<"u"?window:void 0,h=d||{},g=h.MutationObserver||h.WebKitMutationObserver,P=typeof self>"u"&&typeof process<"u"&&{}.toString.call(process)==="[object process]",T=typeof Uint8ClampedArray<"u"&&typeof importScripts<"u"&&typeof MessageChannel<"u";function V(){return function(){return process.nextTick(F)}}function S(){return typeof s<"u"?function(){s(F)}:L()}function R(){var v=0,x=new g(F),q=document.createTextNode("");return x.observe(q,{characterData:!0}),function(){q.data=v=++v%2}}function A(){var v=new MessageChannel;return v.port1.onmessage=F,function(){return v.port2.postMessage(0)}}function L(){var v=setTimeout;return function(){return v(F,1)}}var $=new Array(1e3);function F(){for(var v=0;vnull;return{has:()=>!1,hasItem:()=>!1,getLength:()=>0,getItem:e,getIndex:e,getKey:e,getAll:()=>{},getAllKeys:()=>[],set:bt,setItem:bt,remove:bt,removeItem:bt,clear:bt,isEmpty:()=>!0}}function ly(e){const t=window[e+"Storage"],n=l=>{const s=t.getItem(l);return s?iy(s):null},o=l=>t.getItem(l)!==null,i=(l,s)=>{t.setItem(l,oy(s))},r=l=>{t.removeItem(l)};return{has:o,hasItem:o,getLength:()=>t.length,getItem:n,getIndex:l=>ll{let l;const s={},u=t.length;for(let c=0;c{const l=[],s=t.length;for(let u=0;u{t.clear()},isEmpty:()=>t.length===0}}const Mf=Me.has.webStorage===!1?ry():ly("local"),ho={install({$q:e}){e.localStorage=Mf}};Object.assign(ho,Mf);const ru=["red-11","blue-11","light-green-11","deep-orange-11","pink-11","light-blue-11","lime-11","brown-11","purple-11","cyan-11","yellow-11","grey-11","deep-purple-11","teal-11","amber-11","blue-grey-11","indigo-11","green-11","orange-11"],sy={setInputSentences(e,t){Array.isArray(t)||(e.originalText=t,t=t.split(e.separator)),e.inputSentences=t.map((n,o)=>({id:o,text:n}))},addClass(e,t){if(e.classes.find(r=>r.name==t))return;let o=e.classes.reduce((r,l)=>l.id>r?l.id:r,0),i={id:o+1,name:t,color:ru[o%ru.length]};e.classes=[...e.classes,i],e.classes.length===1&&(e.currentClass=e.classes[0])},removeClass(e,t){e.classes=e.classes.filter(n=>n.id!=t),e.currentClass.id===t&&(e.currentClass=e.classes[0])},setCurrentClass(e,t){e.currentClass=e.classes[t]},addAnnotation(e,t){e.annotations[e.currentIndex]=t,e.currentAnnotation=t},clearAllAnnotations(e){e.annotations=[],e.currentAnnotation={}},setSeparator(e,t){e.separator=t;const n=e.originalText.split(e.separator);e.inputSentences=n.map((o,i)=>({id:i,text:o}))},setAnnotationPrecision(e,t){e.annotationPrecision=t},setKeyboardShortcuts(e,t){e.enableKeyboardShortcuts=t},nextSentence(e){e.currentIndex0?(e.currentIndex-=1,e.currentAnnotation=e.annotations[e.currentIndex]):alert("You are at the beginning of all sentences")},resetIndex(e){e.currentIndex=0},loadClasses(e,t){if(!Array.isArray(t))throw new Error("loadClasses: payload must be an array");if(!t.reduce((o,i)=>o&&typeof i=="object"&&"id"in i&&"name"in i&&"color"in i,!0))throw new Error("loadClasses: payload has invalid schema");e.classes=t,e.currentClass=e.classes[0],ho.set("tags",e.classes)},loadAnnotations(e,t){if(!(typeof t=="object"&&"annotations"in t&&"classes"in t))throw new Error("loadAnnotations: payload has invalid schema");let o=t.classes;if(!Array.isArray(o))throw new Error("loadAnnotations: payload must be an array");let i=t.annotations;if(!Array.isArray(i))throw new Error("loadAnnotations: payload must be an array");let r=[];for(var l=0;l{e("addClass",n);try{ho.set("tags",t.classes)}catch(r){i(r)}o()})},deleteClass({commit:e,state:t},n){e("removeClass",n),ho.set("tags",t.classes)}};window.addEventListener("beforeunload",async e=>{e.returnValue="Please make sure you export annotations before closing the file."});const cy={state(){let e=ho.getItem("tags");return{annotations:[],classes:e||[],inputSentences:[],originalText:"",separator:` -`,enableKeyboardShortcuts:!1,annotationPrecision:"word",currentAnnotation:{},currentClass:e&&e[0]||{},currentIndex:0,currentSentence:"",currentPage:"start"}},getters:ay,mutations:sy,actions:uy};let fy=0;const _i={},Si={},Pt={},Lf={},dy=/^\s*$/,Rf=[],hy=[void 0,null,!0,!1,""],ms=["top-left","top-right","bottom-left","bottom-right","top","bottom","left","right","center"],vy=["top-left","top-right","bottom-left","bottom-right"],Zn={positive:{icon:e=>e.iconSet.type.positive,color:"positive"},negative:{icon:e=>e.iconSet.type.negative,color:"negative"},warning:{icon:e=>e.iconSet.type.warning,color:"warning",textColor:"dark"},info:{icon:e=>e.iconSet.type.info,color:"info"},ongoing:{group:!1,timeout:0,spinner:!0,color:"grey-8"}};function If(e,t,n){if(!e)return ko("parameter required");let o;const i={textColor:"white"};if(e.ignoreDefaults!==!0&&Object.assign(i,_i),Ho(e)===!1&&(i.type&&Object.assign(i,Zn[i.type]),e={message:e}),Object.assign(i,Zn[e.type||i.type],e),typeof i.icon=="function"&&(i.icon=i.icon(t)),i.spinner?(i.spinner===!0&&(i.spinner=cr),i.spinner=Qi(i.spinner)):i.spinner=!1,i.meta={hasMedia:!!(i.spinner!==!1||i.icon||i.avatar),hasText:lu(i.message)||lu(i.caption)},i.position){if(ms.includes(i.position)===!1)return ko("wrong position",e)}else i.position="bottom";if(hy.includes(i.timeout)===!0)i.timeout=5e3;else{const u=Number(i.timeout);if(isNaN(u)||u<0)return ko("wrong timeout",e);i.timeout=Number.isFinite(u)?u:0}i.timeout===0?i.progress=!1:i.progress===!0&&(i.meta.progressClass="q-notification__progress"+(i.progressClass?` ${i.progressClass}`:""),i.meta.progressStyle={animationDuration:`${i.timeout+1e3}ms`});const r=(Array.isArray(e.actions)===!0?e.actions:[]).concat(e.ignoreDefaults!==!0&&Array.isArray(_i.actions)===!0?_i.actions:[]).concat(Zn[e.type]!==void 0&&Array.isArray(Zn[e.type].actions)===!0?Zn[e.type].actions:[]),{closeBtn:l}=i;if(l&&r.push({label:typeof l=="string"?l:t.lang.label.close}),i.actions=r.map(({handler:u,noDismiss:c,...a})=>({flat:!0,...a,onClick:typeof u=="function"?()=>{u(),c!==!0&&s()}:()=>{s()}})),i.multiLine===void 0&&(i.multiLine=i.actions.length>1),Object.assign(i.meta,{class:`q-notification row items-stretch q-notification--${i.multiLine===!0?"multi-line":"standard"}`+(i.color!==void 0?` bg-${i.color}`:"")+(i.textColor!==void 0?` text-${i.textColor}`:"")+(i.classes!==void 0?` ${i.classes}`:""),wrapperClass:"q-notification__wrapper col relative-position border-radius-inherit "+(i.multiLine===!0?"column no-wrap justify-center":"row items-center"),contentClass:"q-notification__content row items-center"+(i.multiLine===!0?"":" col"),leftClass:i.meta.hasText===!0?"additional":"single",attrs:{role:"alert",...i.attrs}}),i.group===!1?(i.group=void 0,i.meta.group=void 0):((i.group===void 0||i.group===!0)&&(i.group=[i.message,i.caption,i.multiline].concat(i.actions.map(u=>`${u.label}*${u.icon}`)).join("|")),i.meta.group=i.group+"|"+i.position),i.actions.length===0?i.actions=void 0:i.meta.actionsClass="q-notification__actions row items-center "+(i.multiLine===!0?"justify-end":"col-auto")+(i.meta.hasMedia===!0?" q-notification__actions--with-media":""),n!==void 0){n.notif.meta.timer&&(clearTimeout(n.notif.meta.timer),n.notif.meta.timer=void 0),i.meta.uid=n.notif.meta.uid;const u=Pt[i.position].value.indexOf(n.notif);Pt[i.position].value[u]=i}else{const u=Si[i.meta.group];if(u===void 0){if(i.meta.uid=fy++,i.meta.badge=1,["left","right","center"].indexOf(i.position)!==-1)Pt[i.position].value.splice(Math.floor(Pt[i.position].value.length/2),0,i);else{const c=i.position.indexOf("top")!==-1?"unshift":"push";Pt[i.position].value[c](i)}i.group!==void 0&&(Si[i.meta.group]=i)}else{if(u.meta.timer&&(clearTimeout(u.meta.timer),u.meta.timer=void 0),i.badgePosition!==void 0){if(vy.includes(i.badgePosition)===!1)return ko("wrong badgePosition",e)}else i.badgePosition=`top-${i.position.indexOf("left")!==-1?"right":"left"}`;i.meta.uid=u.meta.uid,i.meta.badge=u.meta.badge+1,i.meta.badgeClass=`q-notification__badge q-notification__badge--${i.badgePosition}`+(i.badgeColor!==void 0?` bg-${i.badgeColor}`:"")+(i.badgeTextColor!==void 0?` text-${i.badgeTextColor}`:"")+(i.badgeClass?` ${i.badgeClass}`:"");const c=Pt[i.position].value.indexOf(u);Pt[i.position].value[c]=Si[i.meta.group]=i}}const s=()=>{my(i),o=void 0};if(i.timeout>0&&(i.meta.timer=setTimeout(()=>{i.meta.timer=void 0,s()},i.timeout+1e3)),i.group!==void 0)return u=>{u!==void 0?ko("trying to update a grouped one which is forbidden",e):s()};if(o={dismiss:s,config:e,notif:i},n!==void 0){Object.assign(n,o);return}return u=>{if(o!==void 0)if(u===void 0)o.dismiss();else{const c=Object.assign({},o.config,u,{group:!1,position:i.position});If(c,t,o)}}}function my(e){e.meta.timer&&(clearTimeout(e.meta.timer),e.meta.timer=void 0);const t=Pt[e.position].value.indexOf(e);if(t!==-1){e.group!==void 0&&delete Si[e.meta.group];const n=Rf[""+e.meta.uid];if(n){const{width:o,height:i}=getComputedStyle(n);n.style.left=`${n.offsetLeft}px`,n.style.width=o,n.style.height=i}Pt[e.position].value.splice(t,1),typeof e.onDismiss=="function"&&e.onDismiss()}}function lu(e){return e!=null&&dy.test(e)!==!0}function ko(e,t){return console.error(`Notify: ${e}`,t),!1}function gy(){return ke({name:"QNotifications",devtools:{hide:!0},setup(){return()=>C("div",{class:"q-notifications"},ms.map(e=>C(hv,{key:e,class:Lf[e],tag:"div",name:`q-notification--${e}`},()=>Pt[e].value.map(t=>{const n=t.meta,o=[];if(n.hasMedia===!0&&(t.spinner!==!1?o.push(C(t.spinner,{class:"q-notification__spinner q-notification__spinner--"+n.leftClass,color:t.spinnerColor,size:t.spinnerSize})):t.icon?o.push(C(We,{class:"q-notification__icon q-notification__icon--"+n.leftClass,name:t.icon,color:t.iconColor,size:t.iconSize,role:"img"})):t.avatar&&o.push(C(Pi,{class:"q-notification__avatar q-notification__avatar--"+n.leftClass},()=>C("img",{src:t.avatar,"aria-hidden":"true"})))),n.hasText===!0){let r;const l={class:"q-notification__message col"};if(t.html===!0)l.innerHTML=t.caption?`
${t.message}
${t.caption}
`:t.message;else{const s=[t.message];r=t.caption?[C("div",s),C("div",{class:"q-notification__caption"},[t.caption])]:s}o.push(C("div",l,r))}const i=[C("div",{class:n.contentClass},o)];return t.progress===!0&&i.push(C("div",{key:`${n.uid}|p|${n.badge}`,class:n.progressClass,style:n.progressStyle})),t.actions!==void 0&&i.push(C("div",{class:n.actionsClass},t.actions.map(r=>C(nt,r)))),n.badge>1&&i.push(C("div",{key:`${n.uid}|${n.badge}`,class:t.meta.badgeClass,style:t.badgeStyle},[n.badge])),C("div",{ref:r=>{Rf[""+n.uid]=r},key:n.uid,class:n.class,...n.attrs},[C("div",{class:n.wrapperClass},i)])}))))}})}const py={setDefaults(e){Ho(e)===!0&&Object.assign(_i,e)},registerType(e,t){Ho(t)===!0&&(Zn[e]=t)},install({$q:e,parentApp:t}){if(e.notify=this.create=n=>If(n,e),e.notify.setDefaults=this.setDefaults,e.notify.registerType=this.registerType,e.config.notify!==void 0&&this.setDefaults(e.config.notify),this.__installed!==!0){ms.forEach(o=>{Pt[o]=se([]);const i=["left","center","right"].includes(o)===!0?"center":o.indexOf("top")!==-1?"top":"bottom",r=o.indexOf("left")!==-1?"start":o.indexOf("right")!==-1?"end":"center",l=["left","right"].includes(o)?`items-${o==="left"?"start":"end"} justify-center`:o==="center"?"flex-center":`items-${r}`;Lf[o]=`q-notifications__list q-notifications__list--${i} fixed column no-wrap ${l}`});const n=Xc("q-notify");Qv(gy(),t).mount(n)}}},by={name:"fontawesome-v6",type:{positive:"fas fa-check",negative:"fas fa-triangle-exclamation",info:"fas fa-circle-info",warning:"fas fa-exclamation"},arrow:{up:"fas fa-arrow-up",right:"fas fa-arrow-right",down:"fas fa-arrow-down",left:"fas fa-arrow-left",dropdown:"fas fa-caret-down"},chevron:{left:"fas fa-chevron-left",right:"fas fa-chevron-right"},colorPicker:{spectrum:"fas fa-eye-dropper",tune:"fas fa-sliders",palette:"fas fa-swatchbook"},pullToRefresh:{icon:"fas fa-rotate"},carousel:{left:"fas fa-chevron-left",right:"fas fa-chevron-right",up:"fas fa-chevron-up",down:"fas fa-chevron-down",navigationIcon:"fas fa-circle"},chip:{remove:"fas fa-circle-xmark",selected:"fas fa-check"},datetime:{arrowLeft:"fas fa-chevron-left",arrowRight:"fas fa-chevron-right",now:"far fa-clock",today:"far fa-calendar-check"},editor:{bold:"fas fa-bold",italic:"fas fa-italic",strikethrough:"fas fa-strikethrough",underline:"fas fa-underline",unorderedList:"fas fa-list-ul",orderedList:"fas fa-list-ol",subscript:"fas fa-subscript",superscript:"fas fa-superscript",hyperlink:"fas fa-link",toggleFullscreen:"fas fa-maximize",quote:"fas fa-quote-right",left:"fas fa-align-left",center:"fas fa-align-center",right:"fas fa-align-right",justify:"fas fa-align-justify",print:"fas fa-print",outdent:"fas fa-outdent",indent:"fas fa-indent",removeFormat:"fas fa-eraser",formatting:"fas fa-heading",fontSize:"fas fa-text-height",align:"fas fa-align-left",hr:"far fa-square-minus",undo:"fas fa-rotate-left",redo:"fas fa-rotate-right",heading:"fas fa-heading",code:"fas fa-code",size:"fas fa-text-height",font:"fas fa-font",viewSource:"fas fa-code"},expansionItem:{icon:"fas fa-chevron-down",denseIcon:"fas fa-caret-down"},fab:{icon:"fas fa-plus",activeIcon:"fas fa-xmark"},field:{clear:"fas fa-circle-xmark",error:"fas fa-circle-exclamation"},pagination:{first:"fas fa-backward-step",prev:"fas fa-chevron-left",next:"fas fa-chevron-right",last:"fas fa-forward-step"},rating:{icon:"fas fa-star"},stepper:{done:"fas fa-check",active:"fas fa-pencil",error:"fas fa-triangle-exclamation"},tabs:{left:"fas fa-chevron-left",right:"fas fa-chevron-right",up:"fas fa-chevron-up",down:"fas fa-chevron-down"},table:{arrowUp:"fas fa-arrow-up",warning:"fas fa-triangle-exclamation",firstPage:"fas fa-backward-step",prevPage:"fas fa-chevron-left",nextPage:"fas fa-chevron-right",lastPage:"fas fa-forward-step"},tree:{icon:"fas fa-play"},uploader:{done:"fas fa-check",clear:"fas fa-xmark",add:"fas fa-square-plus",upload:"fas fa-upload",removeQueue:"fas fa-bars-staggered",removeUploaded:"fas fa-clipboard-check"}},yy={config:{dark:"auto"},plugins:{Dark:et,Notify:py},iconSet:by},wy=Tc(ey).use(Jv,yy).use(Hg(cy));wy.mount("#app"); + */(function(e,t){(function(n,o){e.exports=o()})(Qr,function(){function n(v){var x=typeof v;return v!==null&&(x==="object"||x==="function")}function o(v){return typeof v=="function"}var i=void 0;Array.isArray?i=Array.isArray:i=function(v){return Object.prototype.toString.call(v)==="[object Array]"};var r=i,l=0,s=void 0,u=void 0,c=function(x,q){O[l]=x,O[l+1]=q,l+=2,l===2&&(u?u(F):_())};function a(v){u=v}function f(v){c=v}var d=typeof window<"u"?window:void 0,h=d||{},g=h.MutationObserver||h.WebKitMutationObserver,P=typeof self>"u"&&typeof process<"u"&&{}.toString.call(process)==="[object process]",A=typeof Uint8ClampedArray<"u"&&typeof importScripts<"u"&&typeof MessageChannel<"u";function V(){return function(){return process.nextTick(F)}}function S(){return typeof s<"u"?function(){s(F)}:L()}function R(){var v=0,x=new g(F),q=document.createTextNode("");return x.observe(q,{characterData:!0}),function(){q.data=v=++v%2}}function T(){var v=new MessageChannel;return v.port1.onmessage=F,function(){return v.port2.postMessage(0)}}function L(){var v=setTimeout;return function(){return v(F,1)}}var O=new Array(1e3);function F(){for(var v=0;vnull;return{has:()=>!1,hasItem:()=>!1,getLength:()=>0,getItem:e,getIndex:e,getKey:e,getAll:()=>{},getAllKeys:()=>[],set:bt,setItem:bt,remove:bt,removeItem:bt,clear:bt,isEmpty:()=>!0}}function fy(e){const t=window[e+"Storage"],n=l=>{const s=t.getItem(l);return s?uy(s):null},o=l=>t.getItem(l)!==null,i=(l,s)=>{t.setItem(l,ay(s))},r=l=>{t.removeItem(l)};return{has:o,hasItem:o,getLength:()=>t.length,getItem:n,getIndex:l=>ll{let l;const s={},u=t.length;for(let c=0;c{const l=[],s=t.length;for(let u=0;u{t.clear()},isEmpty:()=>t.length===0}}const Mf=Me.has.webStorage===!1?cy():fy("local"),ho={install({$q:e}){e.localStorage=Mf}};Object.assign(ho,Mf);const ru=["red-11","blue-11","light-green-11","deep-orange-11","pink-11","light-blue-11","lime-11","brown-11","purple-11","cyan-11","yellow-11","grey-11","deep-purple-11","teal-11","amber-11","blue-grey-11","indigo-11","green-11","orange-11"],dy={setInputSentences(e,t){Array.isArray(t)||(e.originalText=t,t=t.split(e.separator)),e.inputSentences=t.map((n,o)=>({id:o,text:n}))},addClass(e,t){if(e.classes.find(r=>r.name==t))return;let o=e.classes.reduce((r,l)=>l.id>r?l.id:r,0),i={id:o+1,name:t,color:ru[o%ru.length]};e.classes=[...e.classes,i],e.classes.length===1&&(e.currentClass=e.classes[0])},removeClass(e,t){e.classes=e.classes.filter(n=>n.id!=t),e.currentClass.id===t&&(e.currentClass=e.classes[0])},setCurrentClass(e,t){e.currentClass=e.classes[t]},addAnnotation(e,t){e.annotations[e.currentIndex]=t,e.currentAnnotation=t},clearAllAnnotations(e){e.annotations=[],e.currentAnnotation={}},setSeparator(e,t){e.separator=t;const n=e.originalText.split(e.separator);e.inputSentences=n.map((o,i)=>({id:i,text:o}))},setAnnotationPrecision(e,t){e.annotationPrecision=t},setKeyboardShortcuts(e,t){e.enableKeyboardShortcuts=t},nextSentence(e){e.currentIndex0?(e.currentIndex-=1,e.currentAnnotation=e.annotations[e.currentIndex]):alert("You are at the beginning of all sentences")},resetIndex(e){e.currentIndex=0},loadClasses(e,t){if(!Array.isArray(t))throw new Error("loadClasses: payload must be an array");if(!t.reduce((o,i)=>o&&typeof i=="object"&&"id"in i&&"name"in i&&"color"in i,!0))throw new Error("loadClasses: payload has invalid schema");e.classes=t,e.currentClass=e.classes[0],ho.set("tags",e.classes)},loadAnnotations(e,t){if(!(typeof t=="object"&&"annotations"in t&&"classes"in t))throw new Error("loadAnnotations: payload has invalid schema");let o=t.classes;if(!Array.isArray(o))throw new Error("loadAnnotations: payload must be an array");let i=t.annotations;if(!Array.isArray(i))throw new Error("loadAnnotations: payload must be an array");let r=[];for(var l=0;l{e("addClass",n);try{ho.set("tags",t.classes)}catch(r){i(r)}o()})},deleteClass({commit:e,state:t},n){e("removeClass",n),ho.set("tags",t.classes)}};window.addEventListener("beforeunload",async e=>{e.returnValue="Please make sure you export annotations before closing the file."});const my={state(){let e=ho.getItem("tags");return{annotations:[],classes:e||[],inputSentences:[],originalText:"",separator:` +`,enableKeyboardShortcuts:!1,annotationPrecision:"word",currentAnnotation:{},currentClass:e&&e[0]||{},currentIndex:0,currentSentence:"",currentPage:"start"}},getters:hy,mutations:dy,actions:vy};let gy=0;const _i={},Si={},Pt={},Lf={},py=/^\s*$/,Rf=[],by=[void 0,null,!0,!1,""],ms=["top-left","top-right","bottom-left","bottom-right","top","bottom","left","right","center"],yy=["top-left","top-right","bottom-left","bottom-right"],Zn={positive:{icon:e=>e.iconSet.type.positive,color:"positive"},negative:{icon:e=>e.iconSet.type.negative,color:"negative"},warning:{icon:e=>e.iconSet.type.warning,color:"warning",textColor:"dark"},info:{icon:e=>e.iconSet.type.info,color:"info"},ongoing:{group:!1,timeout:0,spinner:!0,color:"grey-8"}};function If(e,t,n){if(!e)return ko("parameter required");let o;const i={textColor:"white"};if(e.ignoreDefaults!==!0&&Object.assign(i,_i),Ho(e)===!1&&(i.type&&Object.assign(i,Zn[i.type]),e={message:e}),Object.assign(i,Zn[e.type||i.type],e),typeof i.icon=="function"&&(i.icon=i.icon(t)),i.spinner?(i.spinner===!0&&(i.spinner=cr),i.spinner=Qi(i.spinner)):i.spinner=!1,i.meta={hasMedia:!!(i.spinner!==!1||i.icon||i.avatar),hasText:lu(i.message)||lu(i.caption)},i.position){if(ms.includes(i.position)===!1)return ko("wrong position",e)}else i.position="bottom";if(by.includes(i.timeout)===!0)i.timeout=5e3;else{const u=Number(i.timeout);if(isNaN(u)||u<0)return ko("wrong timeout",e);i.timeout=Number.isFinite(u)?u:0}i.timeout===0?i.progress=!1:i.progress===!0&&(i.meta.progressClass="q-notification__progress"+(i.progressClass?` ${i.progressClass}`:""),i.meta.progressStyle={animationDuration:`${i.timeout+1e3}ms`});const r=(Array.isArray(e.actions)===!0?e.actions:[]).concat(e.ignoreDefaults!==!0&&Array.isArray(_i.actions)===!0?_i.actions:[]).concat(Zn[e.type]!==void 0&&Array.isArray(Zn[e.type].actions)===!0?Zn[e.type].actions:[]),{closeBtn:l}=i;if(l&&r.push({label:typeof l=="string"?l:t.lang.label.close}),i.actions=r.map(({handler:u,noDismiss:c,...a})=>({flat:!0,...a,onClick:typeof u=="function"?()=>{u(),c!==!0&&s()}:()=>{s()}})),i.multiLine===void 0&&(i.multiLine=i.actions.length>1),Object.assign(i.meta,{class:`q-notification row items-stretch q-notification--${i.multiLine===!0?"multi-line":"standard"}`+(i.color!==void 0?` bg-${i.color}`:"")+(i.textColor!==void 0?` text-${i.textColor}`:"")+(i.classes!==void 0?` ${i.classes}`:""),wrapperClass:"q-notification__wrapper col relative-position border-radius-inherit "+(i.multiLine===!0?"column no-wrap justify-center":"row items-center"),contentClass:"q-notification__content row items-center"+(i.multiLine===!0?"":" col"),leftClass:i.meta.hasText===!0?"additional":"single",attrs:{role:"alert",...i.attrs}}),i.group===!1?(i.group=void 0,i.meta.group=void 0):((i.group===void 0||i.group===!0)&&(i.group=[i.message,i.caption,i.multiline].concat(i.actions.map(u=>`${u.label}*${u.icon}`)).join("|")),i.meta.group=i.group+"|"+i.position),i.actions.length===0?i.actions=void 0:i.meta.actionsClass="q-notification__actions row items-center "+(i.multiLine===!0?"justify-end":"col-auto")+(i.meta.hasMedia===!0?" q-notification__actions--with-media":""),n!==void 0){n.notif.meta.timer&&(clearTimeout(n.notif.meta.timer),n.notif.meta.timer=void 0),i.meta.uid=n.notif.meta.uid;const u=Pt[i.position].value.indexOf(n.notif);Pt[i.position].value[u]=i}else{const u=Si[i.meta.group];if(u===void 0){if(i.meta.uid=gy++,i.meta.badge=1,["left","right","center"].indexOf(i.position)!==-1)Pt[i.position].value.splice(Math.floor(Pt[i.position].value.length/2),0,i);else{const c=i.position.indexOf("top")!==-1?"unshift":"push";Pt[i.position].value[c](i)}i.group!==void 0&&(Si[i.meta.group]=i)}else{if(u.meta.timer&&(clearTimeout(u.meta.timer),u.meta.timer=void 0),i.badgePosition!==void 0){if(yy.includes(i.badgePosition)===!1)return ko("wrong badgePosition",e)}else i.badgePosition=`top-${i.position.indexOf("left")!==-1?"right":"left"}`;i.meta.uid=u.meta.uid,i.meta.badge=u.meta.badge+1,i.meta.badgeClass=`q-notification__badge q-notification__badge--${i.badgePosition}`+(i.badgeColor!==void 0?` bg-${i.badgeColor}`:"")+(i.badgeTextColor!==void 0?` text-${i.badgeTextColor}`:"")+(i.badgeClass?` ${i.badgeClass}`:"");const c=Pt[i.position].value.indexOf(u);Pt[i.position].value[c]=Si[i.meta.group]=i}}const s=()=>{wy(i),o=void 0};if(i.timeout>0&&(i.meta.timer=setTimeout(()=>{i.meta.timer=void 0,s()},i.timeout+1e3)),i.group!==void 0)return u=>{u!==void 0?ko("trying to update a grouped one which is forbidden",e):s()};if(o={dismiss:s,config:e,notif:i},n!==void 0){Object.assign(n,o);return}return u=>{if(o!==void 0)if(u===void 0)o.dismiss();else{const c=Object.assign({},o.config,u,{group:!1,position:i.position});If(c,t,o)}}}function wy(e){e.meta.timer&&(clearTimeout(e.meta.timer),e.meta.timer=void 0);const t=Pt[e.position].value.indexOf(e);if(t!==-1){e.group!==void 0&&delete Si[e.meta.group];const n=Rf[""+e.meta.uid];if(n){const{width:o,height:i}=getComputedStyle(n);n.style.left=`${n.offsetLeft}px`,n.style.width=o,n.style.height=i}Pt[e.position].value.splice(t,1),typeof e.onDismiss=="function"&&e.onDismiss()}}function lu(e){return e!=null&&py.test(e)!==!0}function ko(e,t){return console.error(`Notify: ${e}`,t),!1}function _y(){return ke({name:"QNotifications",devtools:{hide:!0},setup(){return()=>C("div",{class:"q-notifications"},ms.map(e=>C(hv,{key:e,class:Lf[e],tag:"div",name:`q-notification--${e}`},()=>Pt[e].value.map(t=>{const n=t.meta,o=[];if(n.hasMedia===!0&&(t.spinner!==!1?o.push(C(t.spinner,{class:"q-notification__spinner q-notification__spinner--"+n.leftClass,color:t.spinnerColor,size:t.spinnerSize})):t.icon?o.push(C(We,{class:"q-notification__icon q-notification__icon--"+n.leftClass,name:t.icon,color:t.iconColor,size:t.iconSize,role:"img"})):t.avatar&&o.push(C(Pi,{class:"q-notification__avatar q-notification__avatar--"+n.leftClass},()=>C("img",{src:t.avatar,"aria-hidden":"true"})))),n.hasText===!0){let r;const l={class:"q-notification__message col"};if(t.html===!0)l.innerHTML=t.caption?`
${t.message}
${t.caption}
`:t.message;else{const s=[t.message];r=t.caption?[C("div",s),C("div",{class:"q-notification__caption"},[t.caption])]:s}o.push(C("div",l,r))}const i=[C("div",{class:n.contentClass},o)];return t.progress===!0&&i.push(C("div",{key:`${n.uid}|p|${n.badge}`,class:n.progressClass,style:n.progressStyle})),t.actions!==void 0&&i.push(C("div",{class:n.actionsClass},t.actions.map(r=>C(nt,r)))),n.badge>1&&i.push(C("div",{key:`${n.uid}|${n.badge}`,class:t.meta.badgeClass,style:t.badgeStyle},[n.badge])),C("div",{ref:r=>{Rf[""+n.uid]=r},key:n.uid,class:n.class,...n.attrs},[C("div",{class:n.wrapperClass},i)])}))))}})}const Sy={setDefaults(e){Ho(e)===!0&&Object.assign(_i,e)},registerType(e,t){Ho(t)===!0&&(Zn[e]=t)},install({$q:e,parentApp:t}){if(e.notify=this.create=n=>If(n,e),e.notify.setDefaults=this.setDefaults,e.notify.registerType=this.registerType,e.config.notify!==void 0&&this.setDefaults(e.config.notify),this.__installed!==!0){ms.forEach(o=>{Pt[o]=se([]);const i=["left","center","right"].includes(o)===!0?"center":o.indexOf("top")!==-1?"top":"bottom",r=o.indexOf("left")!==-1?"start":o.indexOf("right")!==-1?"end":"center",l=["left","right"].includes(o)?`items-${o==="left"?"start":"end"} justify-center`:o==="center"?"flex-center":`items-${r}`;Lf[o]=`q-notifications__list q-notifications__list--${i} fixed column no-wrap ${l}`});const n=Xc("q-notify");Qv(_y(),t).mount(n)}}},xy={name:"fontawesome-v6",type:{positive:"fas fa-check",negative:"fas fa-triangle-exclamation",info:"fas fa-circle-info",warning:"fas fa-exclamation"},arrow:{up:"fas fa-arrow-up",right:"fas fa-arrow-right",down:"fas fa-arrow-down",left:"fas fa-arrow-left",dropdown:"fas fa-caret-down"},chevron:{left:"fas fa-chevron-left",right:"fas fa-chevron-right"},colorPicker:{spectrum:"fas fa-eye-dropper",tune:"fas fa-sliders",palette:"fas fa-swatchbook"},pullToRefresh:{icon:"fas fa-rotate"},carousel:{left:"fas fa-chevron-left",right:"fas fa-chevron-right",up:"fas fa-chevron-up",down:"fas fa-chevron-down",navigationIcon:"fas fa-circle"},chip:{remove:"fas fa-circle-xmark",selected:"fas fa-check"},datetime:{arrowLeft:"fas fa-chevron-left",arrowRight:"fas fa-chevron-right",now:"far fa-clock",today:"far fa-calendar-check"},editor:{bold:"fas fa-bold",italic:"fas fa-italic",strikethrough:"fas fa-strikethrough",underline:"fas fa-underline",unorderedList:"fas fa-list-ul",orderedList:"fas fa-list-ol",subscript:"fas fa-subscript",superscript:"fas fa-superscript",hyperlink:"fas fa-link",toggleFullscreen:"fas fa-maximize",quote:"fas fa-quote-right",left:"fas fa-align-left",center:"fas fa-align-center",right:"fas fa-align-right",justify:"fas fa-align-justify",print:"fas fa-print",outdent:"fas fa-outdent",indent:"fas fa-indent",removeFormat:"fas fa-eraser",formatting:"fas fa-heading",fontSize:"fas fa-text-height",align:"fas fa-align-left",hr:"far fa-square-minus",undo:"fas fa-rotate-left",redo:"fas fa-rotate-right",heading:"fas fa-heading",code:"fas fa-code",size:"fas fa-text-height",font:"fas fa-font",viewSource:"fas fa-code"},expansionItem:{icon:"fas fa-chevron-down",denseIcon:"fas fa-caret-down"},fab:{icon:"fas fa-plus",activeIcon:"fas fa-xmark"},field:{clear:"fas fa-circle-xmark",error:"fas fa-circle-exclamation"},pagination:{first:"fas fa-backward-step",prev:"fas fa-chevron-left",next:"fas fa-chevron-right",last:"fas fa-forward-step"},rating:{icon:"fas fa-star"},stepper:{done:"fas fa-check",active:"fas fa-pencil",error:"fas fa-triangle-exclamation"},tabs:{left:"fas fa-chevron-left",right:"fas fa-chevron-right",up:"fas fa-chevron-up",down:"fas fa-chevron-down"},table:{arrowUp:"fas fa-arrow-up",warning:"fas fa-triangle-exclamation",firstPage:"fas fa-backward-step",prevPage:"fas fa-chevron-left",nextPage:"fas fa-chevron-right",lastPage:"fas fa-forward-step"},tree:{icon:"fas fa-play"},uploader:{done:"fas fa-check",clear:"fas fa-xmark",add:"fas fa-square-plus",upload:"fas fa-upload",removeQueue:"fas fa-bars-staggered",removeUploaded:"fas fa-clipboard-check"}},Cy={config:{dark:"auto"},plugins:{Dark:et,Notify:Sy},iconSet:xy},ky=Ac(ry).use(Jv,Cy).use(Hg(my));ky.mount("#app"); diff --git a/docs/assets/step-1.png b/docs/assets/step-1-DkgUeXE1.png similarity index 100% rename from docs/assets/step-1.png rename to docs/assets/step-1-DkgUeXE1.png diff --git a/docs/assets/step-2.png b/docs/assets/step-2-B_Lc3D-V.png similarity index 100% rename from docs/assets/step-2.png rename to docs/assets/step-2-B_Lc3D-V.png diff --git a/docs/assets/step-3.png b/docs/assets/step-3-BA0D2192.png similarity index 100% rename from docs/assets/step-3.png rename to docs/assets/step-3-BA0D2192.png diff --git a/docs/assets/styles.scss b/docs/assets/styles.scss deleted file mode 100644 index a0f6785..0000000 --- a/docs/assets/styles.scss +++ /dev/null @@ -1,5 +0,0 @@ -@charset "utf-8"; - -$primary: #2a9d8f; - -@import 'bulma/css/bulma.css'; \ No newline at end of file diff --git a/docs/index.html b/docs/index.html index 13fe8da..27b64e3 100644 --- a/docs/index.html +++ b/docs/index.html @@ -5,7 +5,7 @@ NER Annotator for SpaCy - + diff --git a/public/assets/icon_32.png b/public/assets/icon_32.png deleted file mode 100644 index 9cc279f..0000000 Binary files a/public/assets/icon_32.png and /dev/null differ diff --git a/public/assets/styles.scss b/public/assets/styles.scss deleted file mode 100644 index a0f6785..0000000 --- a/public/assets/styles.scss +++ /dev/null @@ -1,5 +0,0 @@ -@charset "utf-8"; - -$primary: #2a9d8f; - -@import 'bulma/css/bulma.css'; \ No newline at end of file diff --git a/docs/assets/icon_32.png b/src/assets/icon_32.png similarity index 100% rename from docs/assets/icon_32.png rename to src/assets/icon_32.png diff --git a/public/assets/step-1.png b/src/assets/step-1.png similarity index 100% rename from public/assets/step-1.png rename to src/assets/step-1.png diff --git a/public/assets/step-2.png b/src/assets/step-2.png similarity index 100% rename from public/assets/step-2.png rename to src/assets/step-2.png diff --git a/public/assets/step-3.png b/src/assets/step-3.png similarity index 100% rename from public/assets/step-3.png rename to src/assets/step-3.png diff --git a/src/components/HelpDialog.vue b/src/components/HelpDialog.vue index c9e3147..b4f9c5f 100644 --- a/src/components/HelpDialog.vue +++ b/src/components/HelpDialog.vue @@ -27,7 +27,7 @@ color="blue" >
- + NER Annotator @@ -168,6 +168,7 @@ import { useQuasar } from "quasar"; import AboutDialog from "../AboutDialog.vue"; import ExitDialog from "../ExitDialog.vue"; import HelpDialog from "../HelpDialog.vue"; +import AppIcon from "../../assets/icon_32.png"; export default { name: "MenuBar", @@ -199,6 +200,7 @@ export default { showAbout: false, pendingClick: null, showHelp: false, + appIconUrl: AppIcon, }; }, computed: {