@selfeesas/shared-components 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),Qt={xs:18,sm:24,md:32,lg:38,xl:46},rt={size:String};function it(e,l=Qt){return t.computed(()=>e.size!==void 0?{fontSize:e.size in l?`${l[e.size]}px`:e.size}:null)}function nl(e,l,n,r){return Object.defineProperty(e,l,{get:n,set:r,enumerable:!0}),e}function W(e){return t.markRaw(t.defineComponent(e))}function bn(e){return t.markRaw(e)}function ue(e,l){return e!==void 0&&e()||l}function pn(e,l){if(e!==void 0){const n=e();if(n!=null)return n.slice()}return l}function he(e,l){return e!==void 0?l.concat(e()):l}function yn(e,l){return e===void 0?l:l!==void 0?l.concat(e()):e()}function zo(e,l,n,r,o,i){l.key=r+o;const a=t.h(e,l,n);return o===!0?t.withDirectives(a,i()):a}const zl="0 0 24 24",Vt=e=>e,Et=e=>`ionicons ${e}`,wn={"mdi-":e=>`mdi ${e}`,"icon-":Vt,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":Et,"ion-ios":Et,"ion-logo":Et,"iconfont ":Vt,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`,"i-":Vt},Sn={o_:"-outlined",r_:"-round",s_:"-sharp"},Cn={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},Bo=new RegExp("^("+Object.keys(wn).join("|")+")"),Vo=new RegExp("^("+Object.keys(Sn).join("|")+")"),Bl=new RegExp("^("+Object.keys(Cn).join("|")+")"),Eo=/^[Mm]\s?[-+]?\.?\d/,To=/^img:/,$o=/^svguse:/,Lo=/^ion-/,Ao=/^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,ce=W({name:"QIcon",props:{...rt,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:l}){const{proxy:{$q:n}}=t.getCurrentInstance(),r=it(e),o=t.computed(()=>"q-icon"+(e.left===!0?" on-left":"")+(e.right===!0?" on-right":"")+(e.color!==void 0?` text-${e.color}`:"")),i=t.computed(()=>{let a,u=e.name;if(u==="none"||!u)return{none:!0};if(n.iconMapFn!==null){const d=n.iconMapFn(u);if(d!==void 0)if(d.icon!==void 0){if(u=d.icon,u==="none"||!u)return{none:!0}}else return{cls:d.cls,content:d.content!==void 0?d.content:" "}}if(Eo.test(u)===!0){const[d,b=zl]=u.split("|");return{svg:!0,viewBox:b,nodes:d.split("&&").map(m=>{const[v,g,k]=m.split("@@");return t.h("path",{style:g,d:v,transform:k})})}}if(To.test(u)===!0)return{img:!0,src:u.substring(4)};if($o.test(u)===!0){const[d,b=zl]=u.split("|");return{svguse:!0,src:d.substring(7),viewBox:b}}let c=" ";const f=u.match(Bo);if(f!==null)a=wn[f[1]](u);else if(Ao.test(u)===!0)a=u;else if(Lo.test(u)===!0)a=`ionicons ion-${n.platform.is.ios===!0?"ios":"md"}${u.substring(3)}`;else if(Bl.test(u)===!0){a="notranslate material-symbols";const d=u.match(Bl);d!==null&&(u=u.substring(6),a+=Cn[d[1]]),c=u}else{a="notranslate material-icons";const d=u.match(Vo);d!==null&&(u=u.substring(2),a+=Sn[d[1]]),c=u}return{cls:a,content:c}});return()=>{const a={class:o.value,style:r.value,"aria-hidden":"true"};return i.value.none===!0?t.h(e.tag,a,ue(l.default)):i.value.img===!0?t.h(e.tag,a,he(l.default,[t.h("img",{src:i.value.src})])):i.value.svg===!0?t.h(e.tag,a,he(l.default,[t.h("svg",{viewBox:i.value.viewBox||"0 0 24 24"},i.value.nodes)])):i.value.svguse===!0?t.h(e.tag,a,he(l.default,[t.h("svg",{viewBox:i.value.viewBox},[t.h("use",{"xlink:href":i.value.src})])])):(i.value.cls!==void 0&&(a.class+=" "+i.value.cls),t.h(e.tag,a,he(l.default,[i.value.content])))}}});function Tt(e){if(Object(e.$parent)===e.$parent)return e.$parent;let{parent:l}=e.$;for(;Object(l)===l;){if(Object(l.proxy)===l.proxy)return l.proxy;l=l.parent}}function xn(e,l){typeof l.type=="symbol"?Array.isArray(l.children)===!0&&l.children.forEach(n=>{xn(e,n)}):e.add(l)}function Oo(e){const l=new Set;return e.forEach(n=>{xn(l,n)}),Array.from(l)}function kn(e){return e.appContext.config.globalProperties.$router!==void 0}function qn(e){return e.isUnmounted===!0||e.isDeactivated===!0}function Vl(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function El(e,l){return(e.aliasOf||e)===(l.aliasOf||l)}function Mo(e,l){for(const n in l){const r=l[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(Array.isArray(o)===!1||o.length!==r.length||r.some((i,a)=>i!==o[a]))return!1}return!0}function Tl(e,l){return Array.isArray(l)===!0?e.length===l.length&&e.every((n,r)=>n===l[r]):e.length===1&&e[0]===l}function Po(e,l){return Array.isArray(e)===!0?Tl(e,l):Array.isArray(l)===!0?Tl(l,e):e===l}function Ro(e,l){if(Object.keys(e).length!==Object.keys(l).length)return!1;for(const n in e)if(Po(e[n],l[n])===!1)return!1;return!0}const _n={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},zn={..._n,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function ol({fallbackTag:e,useDisableForRouterLinkProps:l=!0}={}){const n=t.getCurrentInstance(),{props:r,proxy:o,emit:i}=n,a=kn(n),u=t.computed(()=>r.disable!==!0&&r.href!==void 0),c=l===!0?t.computed(()=>a===!0&&r.disable!==!0&&u.value!==!0&&r.to!==void 0&&r.to!==null&&r.to!==""):t.computed(()=>a===!0&&u.value!==!0&&r.to!==void 0&&r.to!==null&&r.to!==""),f=t.computed(()=>c.value===!0?w(r.to):null),d=t.computed(()=>f.value!==null),b=t.computed(()=>u.value===!0||d.value===!0),m=t.computed(()=>r.type==="a"||b.value===!0?"a":r.tag||e||"div"),v=t.computed(()=>u.value===!0?{href:r.href,target:r.target}:d.value===!0?{href:f.value.href,target:r.target}:{}),g=t.computed(()=>{if(d.value===!1)return-1;const{matched:S}=f.value,{length:q}=S,$=S[q-1];if($===void 0)return-1;const P=o.$route.matched;if(P.length===0)return-1;const I=P.findIndex(El.bind(null,$));if(I!==-1)return I;const K=Vl(S[q-2]);return q>1&&Vl($)===K&&P[P.length-1].path!==K?P.findIndex(El.bind(null,S[q-2])):I}),k=t.computed(()=>d.value===!0&&g.value!==-1&&Mo(o.$route.params,f.value.params)),h=t.computed(()=>k.value===!0&&g.value===o.$route.matched.length-1&&Ro(o.$route.params,f.value.params)),B=t.computed(()=>d.value===!0?h.value===!0?` ${r.exactActiveClass} ${r.activeClass}`:r.exact===!0?"":k.value===!0?` ${r.activeClass}`:"":"");function w(S){try{return o.$router.resolve(S)}catch{}return null}function C(S,{returnRouterError:q,to:$=r.to,replace:P=r.replace}={}){if(r.disable===!0)return S.preventDefault(),Promise.resolve(!1);if(S.metaKey||S.altKey||S.ctrlKey||S.shiftKey||S.button!==void 0&&S.button!==0||r.target==="_blank")return Promise.resolve(!1);S.preventDefault();const I=o.$router[P===!0?"replace":"push"]($);return q===!0?I:I.then(()=>{}).catch(()=>{})}function x(S){if(d.value===!0){const q=$=>C(S,$);i("click",S,q),S.defaultPrevented!==!0&&q()}else i("click",S)}return{hasRouterLink:d,hasHrefLink:u,hasLink:b,linkTag:m,resolvedLink:f,linkIsActive:k,linkIsExactActive:h,linkClass:B,linkAttrs:v,getLink:w,navigateToRouterLink:C,navigateOnClick:x}}const Fo=W({name:"QBreadcrumbsEl",props:{...zn,label:String,icon:String,tag:{type:String,default:"span"}},emits:["click"],setup(e,{slots:l}){const{linkTag:n,linkAttrs:r,linkClass:o,navigateOnClick:i}=ol(),a=t.computed(()=>({class:"q-breadcrumbs__el q-link flex inline items-center relative-position "+(e.disable!==!0?"q-link--focusable"+o.value:"q-breadcrumbs__el--disable"),...r.value,onClick:i})),u=t.computed(()=>"q-breadcrumbs__el-icon"+(e.label!==void 0?" q-breadcrumbs__el-icon--with-label":""));return()=>{const c=[];return e.icon!==void 0&&c.push(t.h(ce,{class:u.value,name:e.icon})),e.label!==void 0&&c.push(e.label),t.h(n.value,{...a.value},he(l.default,c))}}}),Bn={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},Io=Object.keys(Bn),Vn={align:{type:String,validator:e=>Io.includes(e)}};function En(e){return t.computed(()=>{const l=e.align===void 0?e.vertical===!0?"stretch":"left":e.align;return`${e.vertical===!0?"items":"justify"}-${Bn[l]}`})}const Ho=["",!0],Do=W({name:"QBreadcrumbs",props:{...Vn,separator:{type:String,default:"/"},separatorColor:String,activeColor:{type:String,default:"primary"},gutter:{type:String,validator:e=>["none","xs","sm","md","lg","xl"].includes(e),default:"sm"}},setup(e,{slots:l}){const n=En(e),r=t.computed(()=>`flex items-center ${n.value}${e.gutter==="none"?"":` q-gutter-${e.gutter}`}`),o=t.computed(()=>e.separatorColor?` text-${e.separatorColor}`:""),i=t.computed(()=>` text-${e.activeColor}`);return()=>{if(l.default===void 0)return;const a=Oo(ue(l.default));if(a.length===0)return;let u=1;const c=[],f=a.filter(b=>{var m;return((m=b.type)==null?void 0:m.name)==="QBreadcrumbsEl"}).length,d=l.separator!==void 0?l.separator:()=>e.separator;return a.forEach(b=>{var m;if(((m=b.type)==null?void 0:m.name)==="QBreadcrumbsEl"){const v=u<f,g=b.props!==null&&Ho.includes(b.props.disable),k=(v===!0?"":" q-breadcrumbs--last")+(g!==!0&&v===!0?i.value:"");u++,c.push(t.h("div",{class:`flex items-center${k}`},[b])),v===!0&&c.push(t.h("div",{class:"q-breadcrumbs__separator"+o.value},d()))}else c.push(b)}),t.h("div",{class:"q-breadcrumbs"},[t.h("div",{class:r.value},c)])}}}),jo=t.defineComponent({inheritAttrs:!1,__name:"Breadcrumbs",props:{activeColor:{},separatorIcon:{},separatorSize:{},separatorColor:{},store:{},navStore:{},route:{},router:{},breadcrumbConfig:{},separator:{},gutter:{},align:{}},setup(e){const l=e,n=t.useAttrs(),r=t.computed(()=>{const{activeColor:m,separatorIcon:v,separatorSize:g,separatorColor:k,...h}=n;return h}),o=m=>({"data-cy":m.dataCy,class:"cursor-pointer text-h5",color:m.color}),i=t.computed(()=>l.activeColor||"primary"),a=t.computed(()=>l.separatorIcon||"chevron_right"),u=t.computed(()=>l.separatorSize||"2em"),c=t.computed(()=>l.separatorColor||"primary"),f=t.computed(()=>({store:l.store,route:l.route,navStore:l.navStore||{}})),d=t.computed(()=>{const m=[];return l.breadcrumbConfig.forEach(v=>{if(!v.shouldRender(f.value))return;const g=v.getLabel?v.getLabel(f.value):v.defaultLabel,k=v.getColor?v.getColor(f.value):"dark",h={name:v.routeName,...v.getRouteParams&&{params:v.getRouteParams(f.value)}},B=v.clearActions?v.clearActions.map(w=>()=>w(f.value)):[];m.push({label:g,dataCy:v.dataCy,color:k,route:h,clearActions:B})}),m}),b=m=>{m.clearActions&&m.clearActions.forEach(v=>v()),l.router.push(m.route)};return(m,v)=>(t.openBlock(),t.createBlock(Do,t.mergeProps({"active-color":i.value,class:"text-brown"},r.value),{separator:t.withCtx(()=>[t.createVNode(ce,{size:u.value,name:a.value,color:c.value},null,8,["size","name","color"])]),default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.value,(g,k)=>(t.openBlock(),t.createBlock(Fo,t.mergeProps({key:k},{ref_for:!0},o(g),{label:g.label,onClick:h=>b(g)}),null,16,["label","onClick"]))),128))]),_:1},16,["active-color"]))}}),No={size:{type:[String,Number],default:"1em"},color:String};function Qo(e){return{cSize:t.computed(()=>e.size in Qt?`${Qt[e.size]}px`:e.size),classes:t.computed(()=>"q-spinner"+(e.color?` text-${e.color}`:""))}}const Tn=W({name:"QSpinner",props:{...No,thickness:{type:Number,default:5}},setup(e){const{cSize:l,classes:n}=Qo(e);return()=>t.h("svg",{class:n.value+" q-spinner-mat",width:l.value,height:l.value,viewBox:"25 25 50 50"},[t.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":e.thickness,"stroke-miterlimit":"10"})])}});function Wt(e,l){const n=e.style;for(const r in l)n[r]=l[r]}function Wo(e){if(e==null)return;if(typeof e=="string")try{return document.querySelector(e)||void 0}catch{return}const l=t.unref(e);if(l)return l.$el||l}function $n(e,l){if(e==null||e.contains(l)===!0)return!0;for(let n=e.nextElementSibling;n!==null;n=n.nextElementSibling)if(n.contains(l))return!0;return!1}const ne={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const e=Object.defineProperty({},"passive",{get(){Object.assign(ne,{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 xt(){}function Uo(e){return e.button===0}function nt(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 Ko(e){if(e.path)return e.path;if(e.composedPath)return e.composedPath();const l=[];let n=e.target;for(;n;){if(l.push(n),n.tagName==="HTML")return l.push(document),l.push(window),l;n=n.parentElement}}function ve(e){e.stopPropagation()}function ae(e){e.cancelable!==!1&&e.preventDefault()}function le(e){e.cancelable!==!1&&e.preventDefault(),e.stopPropagation()}function $t(e,l){if(e===void 0||l===!0&&e.__dragPrevented===!0)return;const n=l===!0?r=>{r.__dragPrevented=!0,r.addEventListener("dragstart",ae,ne.notPassiveCapture)}:r=>{delete r.__dragPrevented,r.removeEventListener("dragstart",ae,ne.notPassiveCapture)};e.querySelectorAll("a, img").forEach(n)}function Be(e,l,n){const r=`__q_${l}_evt`;e[r]=e[r]!==void 0?e[r].concat(n):n,n.forEach(o=>{o[0].addEventListener(o[1],e[o[2]],ne[o[3]])})}function tt(e,l){const n=`__q_${l}_evt`;e[n]!==void 0&&(e[n].forEach(r=>{r[0].removeEventListener(r[1],e[r[2]],ne[r[3]])}),e[n]=void 0)}function Ln(e){return e!==Object(e)||e.isComposing===!0||e.qKeyEvent===!0}function Le(e,l){return Ln(e)===!0?!1:[].concat(l).includes(e.keyCode)}function Xo(e,l=250){let n=!1,r;return function(){return n===!1&&(n=!0,setTimeout(()=>{n=!1},l),r=e.apply(this,arguments)),r}}function $l(e,l,n,r){n.modifiers.stop===!0&&ve(e);const o=n.modifiers.color;let i=n.modifiers.center;i=i===!0||r===!0;const a=document.createElement("span"),u=document.createElement("span"),c=nt(e),{left:f,top:d,width:b,height:m}=l.getBoundingClientRect(),v=Math.sqrt(b*b+m*m),g=v/2,k=`${(b-v)/2}px`,h=i?k:`${c.left-f-g}px`,B=`${(m-v)/2}px`,w=i?B:`${c.top-d-g}px`;u.className="q-ripple__inner",Wt(u,{height:`${v}px`,width:`${v}px`,transform:`translate3d(${h},${w},0) scale3d(.2,.2,1)`,opacity:0}),a.className=`q-ripple${o?" text-"+o:""}`,a.setAttribute("dir","ltr"),a.appendChild(u),l.appendChild(a);const C=()=>{a.remove(),clearTimeout(x)};n.abort.push(C);let x=setTimeout(()=>{u.classList.add("q-ripple__inner--enter"),u.style.transform=`translate3d(${k},${B},0) scale3d(1,1,1)`,u.style.opacity=.2,x=setTimeout(()=>{u.classList.remove("q-ripple__inner--enter"),u.classList.add("q-ripple__inner--leave"),u.style.opacity=0,x=setTimeout(()=>{a.remove(),n.abort.splice(n.abort.indexOf(C),1)},275)},250)},50)}function Ll(e,{modifiers:l,value:n,arg:r}){const o=Object.assign({},e.cfg.ripple,l,n);e.modifiers={early:o.early===!0,stop:o.stop===!0,center:o.center===!0,color:o.color||r,keyCodes:[].concat(o.keyCodes||13)}}const An=bn({name:"ripple",beforeMount(e,l){const n=l.instance.$.appContext.config.globalProperties.$q.config||{};if(n.ripple===!1)return;const r={cfg:n,enabled:l.value!==!1,modifiers:{},abort:[],start(o){r.enabled===!0&&o.qSkipRipple!==!0&&o.type===(r.modifiers.early===!0?"pointerdown":"click")&&$l(o,e,r,o.qKeyEvent===!0)},keystart:Xo(o=>{r.enabled===!0&&o.qSkipRipple!==!0&&Le(o,r.modifiers.keyCodes)===!0&&o.type===`key${r.modifiers.early===!0?"down":"up"}`&&$l(o,e,r,!0)},300)};Ll(r,l),e.__qripple=r,Be(r,"main",[[e,"pointerdown","start","passive"],[e,"click","start","passive"],[e,"keydown","keystart","passive"],[e,"keyup","keystart","passive"]])},updated(e,l){if(l.oldValue!==l.value){const n=e.__qripple;n!==void 0&&(n.enabled=l.value!==!1,n.enabled===!0&&Object(l.value)===l.value&&Ll(n,l))}},beforeUnmount(e){const l=e.__qripple;l!==void 0&&(l.abort.forEach(n=>{n()}),tt(l,"main"),delete e._qripple)}}),Al={none:0,xs:4,sm:8,md:16,lg:24,xl:32},Yo={xs:8,sm:10,md:14,lg:20,xl:24},Go=["button","submit","reset"],Zo=/[^\s]\/[^\s]/,Jo=["flat","outline","push","unelevated"];function er(e,l){return e.flat===!0?"flat":e.outline===!0?"outline":e.push===!0?"push":e.unelevated===!0?"unelevated":l}const tr={...rt,..._n,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...Jo.reduce((e,l)=>(e[l]=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:{...Vn.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},lr={...tr,round:Boolean};function nr(e){const l=it(e,Yo),n=En(e),{hasRouterLink:r,hasLink:o,linkTag:i,linkAttrs:a,navigateOnClick:u}=ol({fallbackTag:"button"}),c=t.computed(()=>{const h=e.fab===!1&&e.fabMini===!1?l.value:{};return e.padding!==void 0?Object.assign({},h,{padding:e.padding.split(/\s+/).map(B=>B in Al?Al[B]+"px":B).join(" "),minWidth:"0",minHeight:"0"}):h}),f=t.computed(()=>e.rounded===!0||e.fab===!0||e.fabMini===!0),d=t.computed(()=>e.disable!==!0&&e.loading!==!0),b=t.computed(()=>d.value===!0?e.tabindex||0:-1),m=t.computed(()=>er(e,"standard")),v=t.computed(()=>{const h={tabindex:b.value};return o.value===!0?Object.assign(h,a.value):Go.includes(e.type)===!0&&(h.type=e.type),i.value==="a"?(e.disable===!0?h["aria-disabled"]="true":h.href===void 0&&(h.role="button"),r.value!==!0&&Zo.test(e.type)===!0&&(h.type=e.type)):e.disable===!0&&(h.disabled="",h["aria-disabled"]="true"),e.loading===!0&&e.percentage!==void 0&&Object.assign(h,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e.percentage}),h}),g=t.computed(()=>{let h;e.color!==void 0?e.flat===!0||e.outline===!0?h=`text-${e.textColor||e.color}`:h=`bg-${e.color} text-${e.textColor||"white"}`:e.textColor&&(h=`text-${e.textColor}`);const B=e.round===!0?"round":`rectangle${f.value===!0?" q-btn--rounded":e.square===!0?" q-btn--square":""}`;return`q-btn--${m.value} q-btn--${B}`+(h!==void 0?" "+h:"")+(d.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":"")}),k=t.computed(()=>n.value+(e.stack===!0?" column":" row")+(e.noWrap===!0?" no-wrap text-no-wrap":"")+(e.loading===!0?" q-btn__content--hidden":""));return{classes:g,style:c,innerClasses:k,attributes:v,hasLink:o,linkTag:i,navigateOnClick:u,isActionable:d}}const{passiveCapture:de}=ne;let De=null,je=null,Ne=null;const Ol=W({name:"QBtn",props:{...lr,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(e,{slots:l,emit:n}){const{proxy:r}=t.getCurrentInstance(),{classes:o,style:i,innerClasses:a,attributes:u,hasLink:c,linkTag:f,navigateOnClick:d,isActionable:b}=nr(e),m=t.ref(null),v=t.ref(null);let g=null,k,h=null;const B=t.computed(()=>e.label!==void 0&&e.label!==null&&e.label!==""),w=t.computed(()=>e.disable===!0||e.ripple===!1?!1:{keyCodes:c.value===!0?[13,32]:[13],...e.ripple===!0?{}:e.ripple}),C=t.computed(()=>({center:e.round})),x=t.computed(()=>{const p=Math.max(0,Math.min(100,e.percentage));return p>0?{transition:"transform 0.6s",transform:`translateX(${p-100}%)`}:{}}),S=t.computed(()=>{if(e.loading===!0)return{onMousedown:Q,onTouchstart:Q,onClick:Q,onKeydown:Q,onKeyup:Q};if(b.value===!0){const p={onClick:$,onKeydown:P,onMousedown:K};if(r.$q.platform.has.touch===!0){const _=e.onTouchstart!==void 0?"":"Passive";p[`onTouchstart${_}`]=I}return p}return{onClick:le}}),q=t.computed(()=>({ref:m,class:"q-btn q-btn-item non-selectable no-outline "+o.value,style:i.value,...u.value,...S.value}));function $(p){if(m.value!==null){if(p!==void 0){if(p.defaultPrevented===!0)return;const _=document.activeElement;if(e.type==="submit"&&_!==document.body&&m.value.contains(_)===!1&&_.contains(m.value)===!1){p.qAvoidFocus!==!0&&m.value.focus();const M=()=>{var G;document.removeEventListener("keydown",le,!0),document.removeEventListener("keyup",M,de),(G=m.value)==null||G.removeEventListener("blur",M,de)};document.addEventListener("keydown",le,!0),document.addEventListener("keyup",M,de),m.value.addEventListener("blur",M,de)}}d(p)}}function P(p){m.value!==null&&(n("keydown",p),Le(p,[13,32])===!0&&je!==m.value&&(je!==null&&O(),p.defaultPrevented!==!0&&(p.qAvoidFocus!==!0&&m.value.focus(),je=m.value,m.value.classList.add("q-btn--active"),document.addEventListener("keyup",U,!0),m.value.addEventListener("blur",U,de)),le(p)))}function I(p){m.value!==null&&(n("touchstart",p),p.defaultPrevented!==!0&&(De!==m.value&&(De!==null&&O(),De=m.value,g=p.target,g.addEventListener("touchcancel",U,de),g.addEventListener("touchend",U,de)),k=!0,h!==null&&clearTimeout(h),h=setTimeout(()=>{h=null,k=!1},200)))}function K(p){m.value!==null&&(p.qSkipRipple=k===!0,n("mousedown",p),p.defaultPrevented!==!0&&Ne!==m.value&&(Ne!==null&&O(),Ne=m.value,m.value.classList.add("q-btn--active"),document.addEventListener("mouseup",U,de)))}function U(p){if(m.value!==null&&!((p==null?void 0:p.type)==="blur"&&document.activeElement===m.value)){if((p==null?void 0:p.type)==="keyup"){if(je===m.value&&Le(p,[13,32])===!0){const _=new MouseEvent("click",p);_.qKeyEvent=!0,p.defaultPrevented===!0&&ae(_),p.cancelBubble===!0&&ve(_),m.value.dispatchEvent(_),le(p),p.qKeyEvent=!0}n("keyup",p)}O()}}function O(p){var M,G;const _=v.value;p!==!0&&(De===m.value||Ne===m.value)&&_!==null&&_!==document.activeElement&&(_.setAttribute("tabindex",-1),_.focus()),De===m.value&&(g!==null&&(g.removeEventListener("touchcancel",U,de),g.removeEventListener("touchend",U,de)),De=g=null),Ne===m.value&&(document.removeEventListener("mouseup",U,de),Ne=null),je===m.value&&(document.removeEventListener("keyup",U,!0),(M=m.value)==null||M.removeEventListener("blur",U,de),je=null),(G=m.value)==null||G.classList.remove("q-btn--active")}function Q(p){le(p),p.qSkipRipple=!0}return t.onBeforeUnmount(()=>{O(!0)}),Object.assign(r,{click:p=>{b.value===!0&&$(p)}}),()=>{let p=[];e.icon!==void 0&&p.push(t.h(ce,{name:e.icon,left:e.stack!==!0&&B.value===!0,role:"img"})),B.value===!0&&p.push(t.h("span",{class:"block"},[e.label])),p=he(l.default,p),e.iconRight!==void 0&&e.round===!1&&p.push(t.h(ce,{name:e.iconRight,right:e.stack!==!0&&B.value===!0,role:"img"}));const _=[t.h("span",{class:"q-focus-helper",ref:v})];return e.loading===!0&&e.percentage!==void 0&&_.push(t.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(e.darkPercentage===!0?" q-btn__progress--dark":"")},[t.h("span",{class:"q-btn__progress-indicator fit block",style:x.value})])),_.push(t.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+a.value},p)),e.loading!==null&&_.push(t.h(t.Transition,{name:"q-transition--fade"},()=>e.loading===!0?[t.h("span",{key:"loading",class:"absolute-full flex flex-center"},l.loading!==void 0?l.loading():[t.h(Tn)])]:null)),t.withDirectives(t.h(f.value,q.value,_),[[An,w.value,void 0,C.value]])}}}),or={class:"row justify-between"},rr=t.defineComponent({__name:"NavButton",props:{from:{},to:{default:void 0},labelFrom:{},labelTo:{default:void 0},params:{default:()=>({})}},setup(e){const l=e,n=t.inject("navContext",null),r=t.inject("router");function o(i){if(!r){console.warn("Dependencies not available:",{router:r});return}n==null||n.setTabs();const a=i==="back"?l.from:l.to;if(!a){console.warn("Destination not provided:",i);return}r.push({name:a,params:l.params})}return(i,a)=>(t.openBlock(),t.createElementBlock("div",or,[t.createVNode(Ol,{icon:"chevron_left","rounded-sm":"",label:i.labelFrom,onClick:a[0]||(a[0]=u=>o("back")),"data-cy":"go-back"},null,8,["label"]),i.labelTo?(t.openBlock(),t.createBlock(Ol,{key:0,label:i.labelTo,color:"primary","text-color":"white","icon-right":"chevron_right","rounded-sm":"","data-cy":"go-next",onClick:a[1]||(a[1]=u=>o("next"))},null,8,["label"])):t.createCommentVNode("",!0)]))}}),rl=(e,l)=>{const n=e.__vccOpts||e;for(const[r,o]of l)n[r]=o;return n},ir=rl(rr,[["__scopeId","data-v-c5e3fee0"]]),ye={dark:{type:Boolean,default:null}};function we(e,l){return t.computed(()=>e.dark===null?l.dark.isActive:e.dark)}function ar(e,l){const n=t.ref(null),r=t.computed(()=>e.disable===!0?null:t.h("span",{ref:n,class:"no-outline",tabindex:-1}));function o(i){const a=l.value;(i==null?void 0:i.qAvoidFocus)!==!0&&((i==null?void 0:i.type.indexOf("key"))===0?document.activeElement!==a&&(a==null?void 0:a.contains(document.activeElement))===!0&&a.focus():n.value!==null&&(i===void 0||(a==null?void 0:a.contains(i.target))===!0)&&n.value.focus())}return{refocusTargetEl:r,refocusTarget:o}}const On={name:String};function ur(e={}){return(l,n,r)=>{l[n](t.h("input",{class:"hidden"+(r||""),...e.value}))}}function sr(e){return t.computed(()=>e.name||e.for)}const cr={xs:30,sm:35,md:40,lg:50,xl:60},dr={...ye,...rt,...On,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]},fr=["update:modelValue"];function vr(e,l){const{props:n,slots:r,emit:o,proxy:i}=t.getCurrentInstance(),{$q:a}=i,u=we(n,a),c=t.ref(null),{refocusTargetEl:f,refocusTarget:d}=ar(n,c),b=it(n,cr),m=t.computed(()=>n.val!==void 0&&Array.isArray(n.modelValue)),v=t.computed(()=>{const O=t.toRaw(n.val);return m.value===!0?n.modelValue.findIndex(Q=>t.toRaw(Q)===O):-1}),g=t.computed(()=>m.value===!0?v.value!==-1:t.toRaw(n.modelValue)===t.toRaw(n.trueValue)),k=t.computed(()=>m.value===!0?v.value===-1:t.toRaw(n.modelValue)===t.toRaw(n.falseValue)),h=t.computed(()=>g.value===!1&&k.value===!1),B=t.computed(()=>n.disable===!0?-1:n.tabindex||0),w=t.computed(()=>`q-${e} cursor-pointer no-outline row inline no-wrap items-center`+(n.disable===!0?" disabled":"")+(u.value===!0?` q-${e}--dark`:"")+(n.dense===!0?` q-${e}--dense`:"")+(n.leftLabel===!0?" reverse":"")),C=t.computed(()=>{const O=g.value===!0?"truthy":k.value===!0?"falsy":"indet",Q=n.color!==void 0&&(n.keepColor===!0||k.value!==!0)?` text-${n.color}`:"";return`q-${e}__inner relative-position non-selectable q-${e}__inner--${O}${Q}`}),x=t.computed(()=>{const O={type:"checkbox"};return n.name!==void 0&&Object.assign(O,{".checked":g.value,"^checked":g.value===!0?"checked":void 0,name:n.name,value:m.value===!0?n.val:n.trueValue}),O}),S=ur(x),q=t.computed(()=>{const O={tabindex:B.value,role:"checkbox","aria-label":n.label,"aria-checked":h.value===!0?"mixed":g.value===!0?"true":"false"};return n.disable===!0&&(O["aria-disabled"]="true"),O});function $(O){O!==void 0&&(le(O),d(O)),n.disable!==!0&&o("update:modelValue",P(),O)}function P(){if(m.value===!0){if(g.value===!0){const O=n.modelValue.slice();return O.splice(v.value,1),O}return n.modelValue.concat([n.val])}if(g.value===!0){if(n.toggleOrder!=="ft"||n.toggleIndeterminate===!1)return n.falseValue}else if(k.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 I(O){(O.keyCode===13||O.keyCode===32)&&le(O)}function K(O){(O.keyCode===13||O.keyCode===32)&&$(O)}const U=l(g,h);return Object.assign(i,{toggle:$}),()=>{const O=U();n.disable!==!0&&S(O,"unshift",` q-${e}__native absolute q-ma-none q-pa-none`);const Q=[t.h("div",{class:C.value,style:b.value,"aria-hidden":"true"},O)];f.value!==null&&Q.push(f.value);const p=n.label!==void 0?he(r.default,[n.label]):ue(r.default);return p!==void 0&&Q.push(t.h("div",{class:`q-${e}__label q-anchor--skip`},p)),t.h("div",{ref:c,class:w.value,...q.value,onClick:$,onKeydown:I,onKeyup:K},Q)}}const mr=()=>t.h("div",{key:"svg",class:"q-checkbox__bg absolute"},[t.h("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24"},[t.h("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),t.h("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]),hr=W({name:"QCheckbox",props:dr,emits:fr,setup(e){const l=mr();function n(r,o){const i=t.computed(()=>(r.value===!0?e.checkedIcon:o.value===!0?e.indeterminateIcon:e.uncheckedIcon)||null);return()=>i.value!==null?[t.h("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[t.h(ce,{class:"q-checkbox__icon",name:i.value})])]:[l]}return vr("checkbox",n)}}),gr=W({props:["store","barStyle","verticalBarStyle","horizontalBarStyle"],setup(e){return()=>[t.h("div",{class:e.store.scroll.vertical.barClass.value,style:[e.barStyle,e.verticalBarStyle],"aria-hidden":"true",onMousedown:e.store.onVerticalMousedown}),t.h("div",{class:e.store.scroll.horizontal.barClass.value,style:[e.barStyle,e.horizontalBarStyle],"aria-hidden":"true",onMousedown:e.store.onHorizontalMousedown}),t.withDirectives(t.h("div",{ref:e.store.scroll.vertical.ref,class:e.store.scroll.vertical.thumbClass.value,style:e.store.scroll.vertical.style.value,"aria-hidden":"true"}),e.store.thumbVertDir),t.withDirectives(t.h("div",{ref:e.store.scroll.horizontal.ref,class:e.store.scroll.horizontal.thumbClass.value,style:e.store.scroll.horizontal.style.value,"aria-hidden":"true"}),e.store.thumbHorizDir)]}}),Ce=t.ref(!1);let Ut;function br(e,l){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:l[0]||""}}function pr(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 Mn="ontouchstart"in window||window.navigator.maxTouchPoints>0;function yr(e){const l=e.toLowerCase(),n=pr(l),r=br(l,n),o={mobile:!1,desktop:!1,cordova:!1,capacitor:!1,nativeMobile:!1,electron:!1,bex:!1,linux:!1,mac:!1,win:!1,cros:!1,chrome:!1,firefox:!1,opera:!1,safari:!1,vivaldi:!1,edge:!1,edgeChromium:!1,ie:!1,webkit:!1,android:!1,ios:!1,ipad:!1,iphone:!1,ipod:!1,kindle:!1,winphone:!1,blackberry:!1,playbook:!1,silk:!1};r.browser&&(o[r.browser]=!0,o.version=r.version,o.versionNumber=parseInt(r.version,10)),r.platform&&(o[r.platform]=!0);const i=o.android||o.ios||o.bb||o.blackberry||o.ipad||o.iphone||o.ipod||o.kindle||o.playbook||o.silk||o["windows phone"];if(i===!0||l.indexOf("mobile")!==-1?o.mobile=!0:o.desktop=!0,o["windows phone"]&&(o.winphone=!0,delete o["windows phone"]),o.edga||o.edgios||o.edg?(o.edge=!0,r.browser="edge"):o.crios?(o.chrome=!0,r.browser="chrome"):o.fxios&&(o.firefox=!0,r.browser="firefox"),(o.ipod||o.ipad||o.iphone)&&(o.ios=!0),o.vivaldi&&(r.browser="vivaldi",o.vivaldi=!0),(o.chrome||o.opr||o.safari||o.vivaldi||o.mobile===!0&&o.ios!==!0&&i!==!0)&&(o.webkit=!0),o.opr&&(r.browser="opera",o.opera=!0),o.safari&&(o.blackberry||o.bb?(r.browser="blackberry",o.blackberry=!0):o.playbook?(r.browser="playbook",o.playbook=!0):o.android?(r.browser="android",o.android=!0):o.kindle?(r.browser="kindle",o.kindle=!0):o.silk&&(r.browser="silk",o.silk=!0)),o.name=r.browser,o.platform=r.platform,l.indexOf("electron")!==-1)o.electron=!0;else if(document.location.href.indexOf("-extension://")!==-1)o.bex=!0;else{if(window.Capacitor!==void 0?(o.capacitor=!0,o.nativeMobile=!0,o.nativeMobileWrapper="capacitor"):(window._cordovaNative!==void 0||window.cordova!==void 0)&&(o.cordova=!0,o.nativeMobile=!0,o.nativeMobileWrapper="cordova"),Ce.value===!0&&(Ut={is:{...o}}),Mn===!0&&o.mac===!0&&(o.desktop===!0&&o.safari===!0||o.nativeMobile===!0&&o.android!==!0&&o.ios!==!0&&o.ipad!==!0)){delete o.mac,delete o.desktop;const a=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(o,{mobile:!0,ios:!0,platform:a,[a]:!0})}o.mobile!==!0&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete o.desktop,o.mobile=!0)}return o}const Ml=navigator.userAgent||navigator.vendor||window.opera,wr={has:{touch:!1,webStorage:!1},within:{iframe:!1}},oe={userAgent:Ml,is:yr(Ml),has:{touch:Mn},within:{iframe:window.self!==window.top}},Kt={install(e){const{$q:l}=e;Ce.value===!0?(e.onSSRHydrated.push(()=>{Object.assign(l.platform,oe),Ce.value=!1}),l.platform=t.reactive(this)):l.platform=this}};{let e;nl(oe.has,"webStorage",()=>{if(e!==void 0)return e;try{if(window.localStorage)return e=!0,!0}catch{}return e=!1,!1}),Object.assign(Kt,oe),Ce.value===!0&&(Object.assign(Kt,Ut,wr),Ut=null)}function Sr(){const e=t.ref(!Ce.value);return e.value===!1&&t.onMounted(()=>{e.value=!0}),{isHydrated:e}}const Pn=typeof ResizeObserver<"u",Pl=Pn===!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"},We=W({name:"QResizeObserver",props:{debounce:{type:[String,Number],default:100}},emits:["resize"],setup(e,{emit:l}){let n=null,r,o={width:-1,height:-1};function i(c){c===!0||e.debounce===0||e.debounce==="0"?a():n===null&&(n=setTimeout(a,e.debounce))}function a(){if(n!==null&&(clearTimeout(n),n=null),r){const{offsetWidth:c,offsetHeight:f}=r;(c!==o.width||f!==o.height)&&(o={width:c,height:f},l("resize",o))}}const{proxy:u}=t.getCurrentInstance();if(u.trigger=i,Pn===!0){let c;const f=d=>{r=u.$el.parentNode,r?(c=new ResizeObserver(i),c.observe(r),a()):d!==!0&&t.nextTick(()=>{f(!0)})};return t.onMounted(()=>{f()}),t.onBeforeUnmount(()=>{n!==null&&clearTimeout(n),c!==void 0&&(c.disconnect!==void 0?c.disconnect():r&&c.unobserve(r))}),xt}else{let c=function(){n!==null&&(clearTimeout(n),n=null),b!==void 0&&(b.removeEventListener!==void 0&&b.removeEventListener("resize",i,ne.passive),b=void 0)},f=function(){c(),r!=null&&r.contentDocument&&(b=r.contentDocument.defaultView,b.addEventListener("resize",i,ne.passive),a())};const{isHydrated:d}=Sr();let b;return t.onMounted(()=>{t.nextTick(()=>{r=u.$el,r&&f()})}),t.onBeforeUnmount(c),()=>{if(d.value===!0)return t.h("object",{class:"q--avoid-card-border",style:Pl.style,tabindex:-1,type:"text/html",data:Pl.url,"aria-hidden":"true",onLoad:f})}}}}),Rn=[Element,String],Cr=[null,document,document.body,document.scrollingElement,document.documentElement];function Fn(e,l){let n=Wo(l);if(n===void 0){if(e==null)return window;n=e.closest(".scroll,.scroll-y,.overflow-auto")}return Cr.includes(n)?window:n}function il(e){return e===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:e.scrollTop}function al(e){return e===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:e.scrollLeft}function In(e,l,n=0){const r=arguments[3]===void 0?performance.now():arguments[3],o=il(e);if(n<=0){o!==l&&Xt(e,l);return}requestAnimationFrame(i=>{const a=i-r,u=o+(l-o)/Math.max(a,n)*a;Xt(e,u),u!==l&&In(e,l,n-a,i)})}function Hn(e,l,n=0){const r=arguments[3]===void 0?performance.now():arguments[3],o=al(e);if(n<=0){o!==l&&Yt(e,l);return}requestAnimationFrame(i=>{const a=i-r,u=o+(l-o)/Math.max(a,n)*a;Yt(e,u),u!==l&&Hn(e,l,n-a,i)})}function Xt(e,l){if(e===window){window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,l);return}e.scrollTop=l}function Yt(e,l){if(e===window){window.scrollTo(l,window.pageYOffset||window.scrollY||document.body.scrollTop||0);return}e.scrollLeft=l}function Rl(e,l,n){if(n){In(e,l,n);return}Xt(e,l)}function Lt(e,l,n){if(n){Hn(e,l,n);return}Yt(e,l)}let ft;function pt(){if(ft!==void 0)return ft;const e=document.createElement("p"),l=document.createElement("div");Wt(e,{width:"100%",height:"200px"}),Wt(l,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),l.appendChild(e),document.body.appendChild(l);const n=e.offsetWidth;l.style.overflow="scroll";let r=e.offsetWidth;return n===r&&(r=l.clientWidth),l.remove(),ft=n-r,ft}function xr(e,l=!0){return!e||e.nodeType!==Node.ELEMENT_NODE?!1:l?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"]))}const{passive:Fl}=ne,kr=["both","horizontal","vertical"],Dn=W({name:"QScrollObserver",props:{axis:{type:String,validator:e=>kr.includes(e),default:"vertical"},debounce:[String,Number],scrollTarget:Rn},emits:["scroll"],setup(e,{emit:l}){const n={position:{top:0,left:0},direction:"down",directionChanged:!1,delta:{top:0,left:0},inflectionPoint:{top:0,left:0}};let r=null,o,i;t.watch(()=>e.scrollTarget,()=>{c(),u()});function a(){r==null||r();const b=Math.max(0,il(o)),m=al(o),v={top:b-n.position.top,left:m-n.position.left};if(e.axis==="vertical"&&v.top===0||e.axis==="horizontal"&&v.left===0)return;const g=Math.abs(v.top)>=Math.abs(v.left)?v.top<0?"up":"down":v.left<0?"left":"right";n.position={top:b,left:m},n.directionChanged=n.direction!==g,n.delta=v,n.directionChanged===!0&&(n.direction=g,n.inflectionPoint=n.position),l("scroll",{...n})}function u(){o=Fn(i,e.scrollTarget),o.addEventListener("scroll",f,Fl),f(!0)}function c(){o!==void 0&&(o.removeEventListener("scroll",f,Fl),o=void 0)}function f(b){if(b===!0||e.debounce===0||e.debounce==="0")a();else if(r===null){const[m,v]=e.debounce?[setTimeout(a,e.debounce),clearTimeout]:[requestAnimationFrame(a),cancelAnimationFrame];r=()=>{v(m),r=null}}}const{proxy:d}=t.getCurrentInstance();return t.watch(()=>d.$q.lang.rtl,a),t.onMounted(()=>{i=d.$el.parentNode,u()}),t.onBeforeUnmount(()=>{r==null||r(),c()}),Object.assign(d,{trigger:f,getPosition:()=>n}),xt}}),ul={left:!0,right:!0,up:!0,down:!0,horizontal:!0,vertical:!0},qr=Object.keys(ul);ul.all=!0;function Il(e){const l={};for(const n of qr)e[n]===!0&&(l[n]=!0);return Object.keys(l).length===0?ul:(l.horizontal===!0?l.left=l.right=!0:l.left===!0&&l.right===!0&&(l.horizontal=!0),l.vertical===!0?l.up=l.down=!0:l.up===!0&&l.down===!0&&(l.vertical=!0),l.horizontal===!0&&l.vertical===!0&&(l.all=!0),l)}const _r=["INPUT","TEXTAREA"];function Hl(e,l){return l.event===void 0&&e.target!==void 0&&e.target.draggable!==!0&&typeof l.handler=="function"&&_r.includes(e.target.nodeName.toUpperCase())===!1&&(e.qClonedBy===void 0||e.qClonedBy.indexOf(l.uid)===-1)}function jn(){if(window.getSelection!==void 0){const e=window.getSelection();e.empty!==void 0?e.empty():e.removeAllRanges!==void 0&&(e.removeAllRanges(),Kt.is.mobile!==!0&&e.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}function At(e,l,n){const r=nt(e);let o,i=r.left-l.event.x,a=r.top-l.event.y,u=Math.abs(i),c=Math.abs(a);const f=l.direction;f.horizontal===!0&&f.vertical!==!0?o=i<0?"left":"right":f.horizontal!==!0&&f.vertical===!0?o=a<0?"up":"down":f.up===!0&&a<0?(o="up",u>c&&(f.left===!0&&i<0?o="left":f.right===!0&&i>0&&(o="right"))):f.down===!0&&a>0?(o="down",u>c&&(f.left===!0&&i<0?o="left":f.right===!0&&i>0&&(o="right"))):f.left===!0&&i<0?(o="left",u<c&&(f.up===!0&&a<0?o="up":f.down===!0&&a>0&&(o="down"))):f.right===!0&&i>0&&(o="right",u<c&&(f.up===!0&&a<0?o="up":f.down===!0&&a>0&&(o="down")));let d=!1;if(o===void 0&&n===!1){if(l.event.isFirst===!0||l.event.lastDir===void 0)return{};o=l.event.lastDir,d=!0,o==="left"||o==="right"?(r.left-=i,u=0,i=0):(r.top-=a,c=0,a=0)}return{synthetic:d,payload:{evt:e,touch:l.event.mouse!==!0,mouse:l.event.mouse===!0,position:r,direction:o,isFirst:l.event.isFirst,isFinal:n===!0,duration:Date.now()-l.event.time,distance:{x:u,y:c},offset:{x:i,y:a},delta:{x:r.left-l.event.lastX,y:r.top-l.event.lastY}}}}let zr=0;const Dl=bn({name:"touch-pan",beforeMount(e,{value:l,modifiers:n}){if(n.mouse!==!0&&oe.has.touch!==!0)return;function r(i,a){n.mouse===!0&&a===!0?le(i):(n.stop===!0&&ve(i),n.prevent===!0&&ae(i))}const o={uid:"qvtp_"+zr++,handler:l,modifiers:n,direction:Il(n),noop:xt,mouseStart(i){Hl(i,o)&&Uo(i)&&(Be(o,"temp",[[document,"mousemove","move","notPassiveCapture"],[document,"mouseup","end","passiveCapture"]]),o.start(i,!0))},touchStart(i){if(Hl(i,o)){const a=i.target;Be(o,"temp",[[a,"touchmove","move","notPassiveCapture"],[a,"touchcancel","end","passiveCapture"],[a,"touchend","end","passiveCapture"]]),o.start(i)}},start(i,a){if(oe.is.firefox===!0&&$t(e,!0),o.lastEvt=i,a===!0||n.stop===!0){if(o.direction.all!==!0&&(a!==!0||o.modifiers.mouseAllDir!==!0&&o.modifiers.mousealldir!==!0)){const f=i.type.indexOf("mouse")!==-1?new MouseEvent(i.type,i):new TouchEvent(i.type,i);i.defaultPrevented===!0&&ae(f),i.cancelBubble===!0&&ve(f),Object.assign(f,{qKeyEvent:i.qKeyEvent,qClickOutside:i.qClickOutside,qAnchorHandled:i.qAnchorHandled,qClonedBy:i.qClonedBy===void 0?[o.uid]:i.qClonedBy.concat(o.uid)}),o.initialEvent={target:i.target,event:f}}ve(i)}const{left:u,top:c}=nt(i);o.event={x:u,y:c,time:Date.now(),mouse:a===!0,detected:!1,isFirst:!0,isFinal:!1,lastX:u,lastY:c}},move(i){if(o.event===void 0)return;const a=nt(i),u=a.left-o.event.x,c=a.top-o.event.y;if(u===0&&c===0)return;o.lastEvt=i;const f=o.event.mouse===!0,d=()=>{r(i,f);let v;n.preserveCursor!==!0&&n.preservecursor!==!0&&(v=document.documentElement.style.cursor||"",document.documentElement.style.cursor="grabbing"),f===!0&&document.body.classList.add("no-pointer-events--children"),document.body.classList.add("non-selectable"),jn(),o.styleCleanup=g=>{if(o.styleCleanup=void 0,v!==void 0&&(document.documentElement.style.cursor=v),document.body.classList.remove("non-selectable"),f===!0){const k=()=>{document.body.classList.remove("no-pointer-events--children")};g!==void 0?setTimeout(()=>{k(),g()},50):k()}else g!==void 0&&g()}};if(o.event.detected===!0){o.event.isFirst!==!0&&r(i,o.event.mouse);const{payload:v,synthetic:g}=At(i,o,!1);v!==void 0&&(o.handler(v)===!1?o.end(i):(o.styleCleanup===void 0&&o.event.isFirst===!0&&d(),o.event.lastX=v.position.left,o.event.lastY=v.position.top,o.event.lastDir=g===!0?void 0:v.direction,o.event.isFirst=!1));return}if(o.direction.all===!0||f===!0&&(o.modifiers.mouseAllDir===!0||o.modifiers.mousealldir===!0)){d(),o.event.detected=!0,o.move(i);return}const b=Math.abs(u),m=Math.abs(c);b!==m&&(o.direction.horizontal===!0&&b>m||o.direction.vertical===!0&&b<m||o.direction.up===!0&&b<m&&c<0||o.direction.down===!0&&b<m&&c>0||o.direction.left===!0&&b>m&&u<0||o.direction.right===!0&&b>m&&u>0?(o.event.detected=!0,o.move(i)):o.end(i,!0))},end(i,a){var u;if(o.event!==void 0){if(tt(o,"temp"),oe.is.firefox===!0&&$t(e,!1),a===!0)(u=o.styleCleanup)==null||u.call(o),o.event.detected!==!0&&o.initialEvent!==void 0&&o.initialEvent.target.dispatchEvent(o.initialEvent.event);else if(o.event.detected===!0){o.event.isFirst===!0&&o.handler(At(i===void 0?o.lastEvt:i,o).payload);const{payload:c}=At(i===void 0?o.lastEvt:i,o,!0),f=()=>{o.handler(c)};o.styleCleanup!==void 0?o.styleCleanup(f):f()}o.event=void 0,o.initialEvent=void 0,o.lastEvt=void 0}}};if(e.__qtouchpan=o,n.mouse===!0){const i=n.mouseCapture===!0||n.mousecapture===!0?"Capture":"";Be(o,"main",[[e,"mousedown","mouseStart",`passive${i}`]])}oe.has.touch===!0&&Be(o,"main",[[e,"touchstart","touchStart",`passive${n.capture===!0?"Capture":""}`],[e,"touchmove","noop","notPassiveCapture"]])},updated(e,l){const n=e.__qtouchpan;n!==void 0&&(l.oldValue!==l.value&&(typeof value!="function"&&n.end(),n.handler=l.value),n.direction=Il(l.modifiers))},beforeUnmount(e){var n;const l=e.__qtouchpan;l!==void 0&&(l.event!==void 0&&l.end(),tt(l,"main"),tt(l,"temp"),oe.is.firefox===!0&&$t(e,!1),(n=l.styleCleanup)==null||n.call(l),delete e.__qtouchpan)}});function Ge(e,l,n){return n<=l?l:Math.min(n,Math.max(l,e))}function jl(e,l,n){if(n<=l)return l;const r=n-l+1;let o=l+(e-l)%r;return o<l&&(o=r+o),o===0?0:o}function sl(e,l=250,n){let r=null;function o(){const i=arguments,a=()=>{r=null,e.apply(this,i)};r!==null&&clearTimeout(r),r=setTimeout(a,l)}return o.cancel=()=>{r!==null&&clearTimeout(r)},o}const Nl=["vertical","horizontal"],Ot={vertical:{offset:"offsetY",scroll:"scrollTop",dir:"down",dist:"y"},horizontal:{offset:"offsetX",scroll:"scrollLeft",dir:"right",dist:"x"}},Ql={prevent:!0,mouse:!0,mouseAllDir:!0},Wl=e=>e>=250?50:Math.ceil(e/5),Br=W({name:"QScrollArea",props:{...ye,thumbStyle:Object,verticalThumbStyle:Object,horizontalThumbStyle:Object,barStyle:[Array,String,Object],verticalBarStyle:[Array,String,Object],horizontalBarStyle:[Array,String,Object],verticalOffset:{type:Array,default:[0,0]},horizontalOffset:{type:Array,default:[0,0]},contentStyle:[Array,String,Object],contentActiveStyle:[Array,String,Object],delay:{type:[String,Number],default:1e3},visible:{type:Boolean,default:null},tabindex:[String,Number],onScroll:Function},setup(e,{slots:l,emit:n}){const r=t.ref(!1),o=t.ref(!1),i=t.ref(!1),a={vertical:t.ref(0),horizontal:t.ref(0)},u={vertical:{ref:t.ref(null),position:t.ref(0),size:t.ref(0)},horizontal:{ref:t.ref(null),position:t.ref(0),size:t.ref(0)}},{proxy:c}=t.getCurrentInstance(),f=we(e,c.$q);let d=null,b;const m=t.ref(null),v=t.computed(()=>"q-scrollarea"+(f.value===!0?" q-scrollarea--dark":""));Object.assign(a,{verticalInner:t.computed(()=>a.vertical.value-e.verticalOffset[0]-e.verticalOffset[1]),horizontalInner:t.computed(()=>a.horizontal.value-e.horizontalOffset[0]-e.horizontalOffset[1])}),u.vertical.percentage=t.computed(()=>{const p=u.vertical.size.value-a.vertical.value;if(p<=0)return 0;const _=Ge(u.vertical.position.value/p,0,1);return Math.round(_*1e4)/1e4}),u.vertical.thumbHidden=t.computed(()=>(e.visible===null?i.value:e.visible)!==!0&&r.value===!1&&o.value===!1||u.vertical.size.value<=a.vertical.value+1),u.vertical.thumbStart=t.computed(()=>e.verticalOffset[0]+u.vertical.percentage.value*(a.verticalInner.value-u.vertical.thumbSize.value)),u.vertical.thumbSize=t.computed(()=>Math.round(Ge(a.verticalInner.value*a.verticalInner.value/u.vertical.size.value,Wl(a.verticalInner.value),a.verticalInner.value))),u.vertical.style=t.computed(()=>({...e.thumbStyle,...e.verticalThumbStyle,top:`${u.vertical.thumbStart.value}px`,height:`${u.vertical.thumbSize.value}px`,right:`${e.horizontalOffset[1]}px`})),u.vertical.thumbClass=t.computed(()=>"q-scrollarea__thumb q-scrollarea__thumb--v absolute-right"+(u.vertical.thumbHidden.value===!0?" q-scrollarea__thumb--invisible":"")),u.vertical.barClass=t.computed(()=>"q-scrollarea__bar q-scrollarea__bar--v absolute-right"+(u.vertical.thumbHidden.value===!0?" q-scrollarea__bar--invisible":"")),u.horizontal.percentage=t.computed(()=>{const p=u.horizontal.size.value-a.horizontal.value;if(p<=0)return 0;const _=Ge(Math.abs(u.horizontal.position.value)/p,0,1);return Math.round(_*1e4)/1e4}),u.horizontal.thumbHidden=t.computed(()=>(e.visible===null?i.value:e.visible)!==!0&&r.value===!1&&o.value===!1||u.horizontal.size.value<=a.horizontal.value+1),u.horizontal.thumbStart=t.computed(()=>e.horizontalOffset[0]+u.horizontal.percentage.value*(a.horizontalInner.value-u.horizontal.thumbSize.value)),u.horizontal.thumbSize=t.computed(()=>Math.round(Ge(a.horizontalInner.value*a.horizontalInner.value/u.horizontal.size.value,Wl(a.horizontalInner.value),a.horizontalInner.value))),u.horizontal.style=t.computed(()=>({...e.thumbStyle,...e.horizontalThumbStyle,[c.$q.lang.rtl===!0?"right":"left"]:`${u.horizontal.thumbStart.value}px`,width:`${u.horizontal.thumbSize.value}px`,bottom:`${e.verticalOffset[1]}px`})),u.horizontal.thumbClass=t.computed(()=>"q-scrollarea__thumb q-scrollarea__thumb--h absolute-bottom"+(u.horizontal.thumbHidden.value===!0?" q-scrollarea__thumb--invisible":"")),u.horizontal.barClass=t.computed(()=>"q-scrollarea__bar q-scrollarea__bar--h absolute-bottom"+(u.horizontal.thumbHidden.value===!0?" q-scrollarea__bar--invisible":""));const g=t.computed(()=>u.vertical.thumbHidden.value===!0&&u.horizontal.thumbHidden.value===!0?e.contentStyle:e.contentActiveStyle);function k(){const p={};return Nl.forEach(_=>{const M=u[_];Object.assign(p,{[_+"Position"]:M.position.value,[_+"Percentage"]:M.percentage.value,[_+"Size"]:M.size.value,[_+"ContainerSize"]:a[_].value,[_+"ContainerInnerSize"]:a[_+"Inner"].value})}),p}const h=sl(()=>{const p=k();p.ref=c,n("scroll",p)},0);function B(p,_,M){if(Nl.includes(p)===!1){console.error("[QScrollArea]: wrong first param of setScrollPosition (vertical/horizontal)");return}(p==="vertical"?Rl:Lt)(m.value,_,M)}function w({height:p,width:_}){let M=!1;a.vertical.value!==p&&(a.vertical.value=p,M=!0),a.horizontal.value!==_&&(a.horizontal.value=_,M=!0),M===!0&&$()}function C({position:p}){let _=!1;u.vertical.position.value!==p.top&&(u.vertical.position.value=p.top,_=!0),u.horizontal.position.value!==p.left&&(u.horizontal.position.value=p.left,_=!0),_===!0&&$()}function x({height:p,width:_}){u.horizontal.size.value!==_&&(u.horizontal.size.value=_,$()),u.vertical.size.value!==p&&(u.vertical.size.value=p,$())}function S(p,_){const M=u[_];if(p.isFirst===!0){if(M.thumbHidden.value===!0)return;b=M.position.value,o.value=!0}else if(o.value!==!0)return;p.isFinal===!0&&(o.value=!1);const G=Ot[_],T=(M.size.value-a[_].value)/(a[_+"Inner"].value-M.thumbSize.value),R=p.distance[G.dist],J=b+(p.direction===G.dir?1:-1)*R*T;P(J,_)}function q(p,_){const M=u[_];if(M.thumbHidden.value!==!0){const G=_==="vertical"?e.verticalOffset[0]:e.horizontalOffset[0],T=p[Ot[_].offset]-G,R=M.thumbStart.value-G;if(T<R||T>R+M.thumbSize.value){const J=T-M.thumbSize.value/2,y=Ge(J/(a[_+"Inner"].value-M.thumbSize.value),0,1);P(y*Math.max(0,M.size.value-a[_].value),_)}M.ref.value!==null&&M.ref.value.dispatchEvent(new MouseEvent(p.type,p))}}function $(){r.value=!0,d!==null&&clearTimeout(d),d=setTimeout(()=>{d=null,r.value=!1},e.delay),e.onScroll!==void 0&&h()}function P(p,_){m.value[Ot[_].scroll]=p}let I=null;function K(){I!==null&&clearTimeout(I),I=setTimeout(()=>{I=null,i.value=!0},c.$q.platform.is.ios?50:0)}function U(){I!==null&&(clearTimeout(I),I=null),i.value=!1}let O=null;t.watch(()=>c.$q.lang.rtl,p=>{m.value!==null&&Lt(m.value,Math.abs(u.horizontal.position.value)*(p===!0?-1:1))}),t.onDeactivated(()=>{O={top:u.vertical.position.value,left:u.horizontal.position.value}}),t.onActivated(()=>{if(O===null)return;const p=m.value;p!==null&&(Lt(p,O.left),Rl(p,O.top))}),t.onBeforeUnmount(h.cancel),Object.assign(c,{getScrollTarget:()=>m.value,getScroll:k,getScrollPosition:()=>({top:u.vertical.position.value,left:u.horizontal.position.value}),getScrollPercentage:()=>({top:u.vertical.percentage.value,left:u.horizontal.percentage.value}),setScrollPosition:B,setScrollPercentage(p,_,M){B(p,_*(u[p].size.value-a[p].value)*(p==="horizontal"&&c.$q.lang.rtl===!0?-1:1),M)}});const Q={scroll:u,thumbVertDir:[[Dl,p=>{S(p,"vertical")},void 0,{vertical:!0,...Ql}]],thumbHorizDir:[[Dl,p=>{S(p,"horizontal")},void 0,{horizontal:!0,...Ql}]],onVerticalMousedown(p){q(p,"vertical")},onHorizontalMousedown(p){q(p,"horizontal")}};return()=>t.h("div",{class:v.value,onMouseenter:K,onMouseleave:U},[t.h("div",{ref:m,class:"q-scrollarea__container scroll relative-position fit hide-scrollbar",tabindex:e.tabindex!==void 0?e.tabindex:void 0},[t.h("div",{class:"q-scrollarea__content absolute",style:g.value},he(l.default,[t.h(We,{debounce:0,onResize:x})])),t.h(Dn,{axis:"both",onScroll:C})]),t.h(We,{debounce:0,onResize:w}),t.h(gr,{store:Q,barStyle:e.barStyle,verticalBarStyle:e.verticalBarStyle,horizontalBarStyle:e.horizontalBarStyle})])}}),Vr=W({name:"QCard",props:{...ye,tag:{type:String,default:"div"},square:Boolean,flat:Boolean,bordered:Boolean},setup(e,{slots:l}){const{proxy:{$q:n}}=t.getCurrentInstance(),r=we(e,n),o=t.computed(()=>"q-card"+(r.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()=>t.h(e.tag,{class:o.value},ue(l.default))}}),Er={target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},Tr={...Er,contextMenu:Boolean};function $r({showing:e,avoidEmit:l,configureAnchorEl:n}){const{props:r,proxy:o,emit:i}=t.getCurrentInstance(),a=t.ref(null);let u=null;function c(v){return a.value===null?!1:v===void 0||v.touches===void 0||v.touches.length<=1}const f={};n===void 0&&(Object.assign(f,{hide(v){o.hide(v)},toggle(v){o.toggle(v),v.qAnchorHandled=!0},toggleKey(v){Le(v,13)===!0&&f.toggle(v)},contextClick(v){o.hide(v),ae(v),t.nextTick(()=>{o.show(v),v.qAnchorHandled=!0})},prevent:ae,mobileTouch(v){if(f.mobileCleanup(v),c(v)!==!0)return;o.hide(v),a.value.classList.add("non-selectable");const g=v.target;Be(f,"anchor",[[g,"touchmove","mobileCleanup","passive"],[g,"touchend","mobileCleanup","passive"],[g,"touchcancel","mobileCleanup","passive"],[a.value,"contextmenu","prevent","notPassive"]]),u=setTimeout(()=>{u=null,o.show(v),v.qAnchorHandled=!0},300)},mobileCleanup(v){a.value.classList.remove("non-selectable"),u!==null&&(clearTimeout(u),u=null),e.value===!0&&v!==void 0&&jn()}}),n=function(v=r.contextMenu){if(r.noParentEvent===!0||a.value===null)return;let g;v===!0?o.$q.platform.is.mobile===!0?g=[[a.value,"touchstart","mobileTouch","passive"]]:g=[[a.value,"mousedown","hide","passive"],[a.value,"contextmenu","contextClick","notPassive"]]:g=[[a.value,"click","toggle","passive"],[a.value,"keyup","toggleKey","passive"]],Be(f,"anchor",g)});function d(){tt(f,"anchor")}function b(v){for(a.value=v;a.value.classList.contains("q-anchor--skip");)a.value=a.value.parentNode;n()}function m(){if(r.target===!1||r.target===""||o.$el.parentNode===null)a.value=null;else if(r.target===!0)b(o.$el.parentNode);else{let v=r.target;if(typeof r.target=="string")try{v=document.querySelector(r.target)}catch{v=void 0}v!=null?(a.value=v.$el||v,n()):(a.value=null,console.error(`Anchor: target "${r.target}" not found`))}}return t.watch(()=>r.contextMenu,v=>{a.value!==null&&(d(),n(v))}),t.watch(()=>r.target,()=>{a.value!==null&&d(),m()}),t.watch(()=>r.noParentEvent,v=>{a.value!==null&&(v===!0?d():n())}),t.onMounted(()=>{m(),l!==!0&&r.modelValue===!0&&a.value===null&&i("update:modelValue",!1)}),t.onBeforeUnmount(()=>{u!==null&&clearTimeout(u),d()}),{anchorEl:a,canShow:c,anchorEvents:f}}function Lr(e,l){const n=t.ref(null);let r;function o(u,c){const f=`${c!==void 0?"add":"remove"}EventListener`,d=c!==void 0?c:r;u!==window&&u[f]("scroll",d,ne.passive),window[f]("scroll",d,ne.passive),r=c}function i(){n.value!==null&&(o(n.value),n.value=null)}const a=t.watch(()=>e.noParentEvent,()=>{n.value!==null&&(i(),l())});return t.onBeforeUnmount(a),{localScrollTarget:n,unconfigureScrollTarget:i,changeScrollEvent:o}}const Nn={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},Qn=["beforeShow","show","beforeHide","hide"];function Wn({showing:e,canShow:l,hideOnRouteChange:n,handleShow:r,handleHide:o,processOnMount:i}){const a=t.getCurrentInstance(),{props:u,emit:c,proxy:f}=a;let d;function b(w){e.value===!0?g(w):m(w)}function m(w){if(u.disable===!0||(w==null?void 0:w.qAnchorHandled)===!0||l!==void 0&&l(w)!==!0)return;const C=u["onUpdate:modelValue"]!==void 0;C===!0&&(c("update:modelValue",!0),d=w,t.nextTick(()=>{d===w&&(d=void 0)})),(u.modelValue===null||C===!1)&&v(w)}function v(w){e.value!==!0&&(e.value=!0,c("beforeShow",w),r!==void 0?r(w):c("show",w))}function g(w){if(u.disable===!0)return;const C=u["onUpdate:modelValue"]!==void 0;C===!0&&(c("update:modelValue",!1),d=w,t.nextTick(()=>{d===w&&(d=void 0)})),(u.modelValue===null||C===!1)&&k(w)}function k(w){e.value!==!1&&(e.value=!1,c("beforeHide",w),o!==void 0?o(w):c("hide",w))}function h(w){u.disable===!0&&w===!0?u["onUpdate:modelValue"]!==void 0&&c("update:modelValue",!1):w===!0!==e.value&&(w===!0?v:k)(d)}t.watch(()=>u.modelValue,h),n!==void 0&&kn(a)===!0&&t.watch(()=>f.$route.fullPath,()=>{n.value===!0&&e.value===!0&&g()}),t.onMounted(()=>{h(u.modelValue)});const B={show:m,hide:g,toggle:b};return Object.assign(f,B),B}let Ve=[],ot=[];function Un(e){ot=ot.filter(l=>l!==e)}function Ar(e){Un(e),ot.push(e)}function Ul(e){Un(e),ot.length===0&&Ve.length!==0&&(Ve[Ve.length-1](),Ve=[])}function cl(e){ot.length===0?e():Ve.push(e)}function Or(e){Ve=Ve.filter(l=>l!==e)}const Kl={};let Mr=1,Pr=document.body;function Rr(e,l){const n=document.createElement("div");if(n.id=l!==void 0?`q-portal--${l}--${Mr++}`:e,Kl.globalNodes!==void 0){const r=Kl.globalNodes.class;r!==void 0&&(n.className=r)}return Pr.appendChild(n),n}function Fr(e){e.remove()}const lt=[];function Ir(e,l){do{if(e.$options.name==="QMenu"){if(e.hide(l),e.$props.separateClosePopup===!0)return Tt(e)}else if(e.__qPortal===!0){const n=Tt(e);return(n==null?void 0:n.$options.name)==="QPopupProxy"?(e.hide(l),n):e}e=Tt(e)}while(e!=null)}const Hr=W({name:"QPortal",setup(e,{slots:l}){return()=>l.default()}});function Dr(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 Kn(e,l,n,r){const o=t.ref(!1),i=t.ref(!1);let a=null;const u={},c=r==="dialog"&&Dr(e);function f(b){if(b===!0){Ul(u),i.value=!0;return}i.value=!1,o.value===!1&&(c===!1&&a===null&&(a=Rr(!1,r)),o.value=!0,lt.push(e.proxy),Ar(u))}function d(b){if(i.value=!1,b!==!0)return;Ul(u),o.value=!1;const m=lt.indexOf(e.proxy);m!==-1&&lt.splice(m,1),a!==null&&(Fr(a),a=null)}return t.onUnmounted(()=>{d(!0)}),e.proxy.__qPortal=!0,nl(e.proxy,"contentEl",()=>l.value),{showPortal:f,hidePortal:d,portalIsActive:o,portalIsAccessible:i,renderPortal:()=>c===!0?n():o.value===!0?[t.h(t.Teleport,{to:a},t.h(Hr,n))]:void 0}}const Xn={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function Yn(e,l=()=>{},n=()=>{}){return{transitionProps:t.computed(()=>{const r=`q-transition--${e.transitionShow||l()}`,o=`q-transition--${e.transitionHide||n()}`;return{appear:!0,enterFromClass:`${r}-enter-from`,enterActiveClass:`${r}-enter-active`,enterToClass:`${r}-enter-to`,leaveFromClass:`${o}-leave-from`,leaveActiveClass:`${o}-leave-active`,leaveToClass:`${o}-leave-to`}}),transitionStyle:t.computed(()=>`--q-transition-duration: ${e.transitionDuration}ms`)}}function Gn(){let e;const l=t.getCurrentInstance();function n(){e=void 0}return t.onDeactivated(n),t.onBeforeUnmount(n),{removeTick:n,registerTick(r){e=r,t.nextTick(()=>{e===r&&(qn(l)===!1&&e(),e=void 0)})}}}function Zn(){let e=null;const l=t.getCurrentInstance();function n(){e!==null&&(clearTimeout(e),e=null)}return t.onDeactivated(n),t.onBeforeUnmount(n),{removeTimeout:n,registerTimeout(r,o){n(),qn(l)===!1&&(e=setTimeout(()=>{e=null,r()},o))}}}const Ee=[];let Ue;function jr(e){Ue=e.keyCode===27}function Nr(){Ue===!0&&(Ue=!1)}function Qr(e){Ue===!0&&(Ue=!1,Le(e,27)===!0&&Ee[Ee.length-1](e))}function Jn(e){window[e]("keydown",jr),window[e]("blur",Nr),window[e]("keyup",Qr),Ue=!1}function eo(e){oe.is.desktop===!0&&(Ee.push(e),Ee.length===1&&Jn("addEventListener"))}function yt(e){const l=Ee.indexOf(e);l!==-1&&(Ee.splice(l,1),Ee.length===0&&Jn("removeEventListener"))}const Te=[];function to(e){Te[Te.length-1](e)}function lo(e){oe.is.desktop===!0&&(Te.push(e),Te.length===1&&document.body.addEventListener("focusin",to))}function Gt(e){const l=Te.indexOf(e);l!==-1&&(Te.splice(l,1),Te.length===0&&document.body.removeEventListener("focusin",to))}const{notPassiveCapture:wt}=ne,$e=[];function St(e){const l=e.target;if(l===void 0||l.nodeType===8||l.classList.contains("no-pointer-events")===!0)return;let n=lt.length-1;for(;n>=0;){const r=lt[n].$;if(r.type.name==="QTooltip"){n--;continue}if(r.type.name!=="QDialog")break;if(r.props.seamless!==!0)return;n--}for(let r=$e.length-1;r>=0;r--){const o=$e[r];if((o.anchorEl.value===null||o.anchorEl.value.contains(l)===!1)&&(l===document.body||o.innerRef.value!==null&&o.innerRef.value.contains(l)===!1))e.qClickOutside=!0,o.onClickOutside(e);else return}}function Wr(e){$e.push(e),$e.length===1&&(document.addEventListener("mousedown",St,wt),document.addEventListener("touchstart",St,wt))}function Xl(e){const l=$e.findIndex(n=>n===e);l!==-1&&($e.splice(l,1),$e.length===0&&(document.removeEventListener("mousedown",St,wt),document.removeEventListener("touchstart",St,wt)))}let Yl,Gl;function Zl(e){const l=e.split(" ");return l.length!==2?!1:["top","center","bottom"].includes(l[0])!==!0?(console.error("Anchor/Self position must start with one of top/center/bottom"),!1):["left","middle","right","start","end"].includes(l[1])!==!0?(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1):!0}function Ur(e){return e?!(e.length!==2||typeof e[0]!="number"||typeof e[1]!="number"):!0}const Zt={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(e=>{Zt[`${e}#ltr`]=e,Zt[`${e}#rtl`]=e});function Jl(e,l){const n=e.split(" ");return{vertical:n[0],horizontal:Zt[`${n[1]}#${l===!0?"rtl":"ltr"}`]}}function Kr(e,l){let{top:n,left:r,right:o,bottom:i,width:a,height:u}=e.getBoundingClientRect();return l!==void 0&&(n-=l[1],r-=l[0],i+=l[1],o+=l[0],a+=l[0],u+=l[1]),{top:n,bottom:i,height:u,left:r,right:o,width:a,middle:r+(o-r)/2,center:n+(i-n)/2}}function Xr(e,l,n){let{top:r,left:o}=e.getBoundingClientRect();return r+=l.top,o+=l.left,n!==void 0&&(r+=n[1],o+=n[0]),{top:r,bottom:r+1,height:1,left:o,right:o+1,width:1,middle:o,center:r}}function Yr(e,l){return{top:0,center:l/2,bottom:l,left:0,middle:e/2,right:e}}function en(e,l,n,r){return{top:e[n.vertical]-l[r.vertical],left:e[n.horizontal]-l[r.horizontal]}}function no(e,l=0){if(e.targetEl===null||e.anchorEl===null||l>5)return;if(e.targetEl.offsetHeight===0||e.targetEl.offsetWidth===0){setTimeout(()=>{no(e,l+1)},10);return}const{targetEl:n,offset:r,anchorEl:o,anchorOrigin:i,selfOrigin:a,absoluteOffset:u,fit:c,cover:f,maxHeight:d,maxWidth:b}=e;if(oe.is.ios===!0&&window.visualViewport!==void 0){const q=document.body.style,{offsetLeft:$,offsetTop:P}=window.visualViewport;$!==Yl&&(q.setProperty("--q-pe-left",$+"px"),Yl=$),P!==Gl&&(q.setProperty("--q-pe-top",P+"px"),Gl=P)}const{scrollLeft:m,scrollTop:v}=n,g=u===void 0?Kr(o,f===!0?[0,0]:r):Xr(o,u,r);Object.assign(n.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:b,maxHeight:d,visibility:"visible"});const{offsetWidth:k,offsetHeight:h}=n,{elWidth:B,elHeight:w}=c===!0||f===!0?{elWidth:Math.max(g.width,k),elHeight:f===!0?Math.max(g.height,h):h}:{elWidth:k,elHeight:h};let C={maxWidth:b,maxHeight:d};(c===!0||f===!0)&&(C.minWidth=g.width+"px",f===!0&&(C.minHeight=g.height+"px")),Object.assign(n.style,C);const x=Yr(B,w);let S=en(g,x,i,a);if(u===void 0||r===void 0)Mt(S,g,x,i,a);else{const{top:q,left:$}=S;Mt(S,g,x,i,a);let P=!1;if(S.top!==q){P=!0;const I=2*r[1];g.center=g.top-=I,g.bottom-=I+2}if(S.left!==$){P=!0;const I=2*r[0];g.middle=g.left-=I,g.right-=I+2}P===!0&&(S=en(g,x,i,a),Mt(S,g,x,i,a))}C={top:S.top+"px",left:S.left+"px"},S.maxHeight!==void 0&&(C.maxHeight=S.maxHeight+"px",g.height>S.maxHeight&&(C.minHeight=C.maxHeight)),S.maxWidth!==void 0&&(C.maxWidth=S.maxWidth+"px",g.width>S.maxWidth&&(C.minWidth=C.maxWidth)),Object.assign(n.style,C),n.scrollTop!==v&&(n.scrollTop=v),n.scrollLeft!==m&&(n.scrollLeft=m)}function Mt(e,l,n,r,o){const i=n.bottom,a=n.right,u=pt(),c=window.innerHeight-u,f=document.body.clientWidth;if(e.top<0||e.top+i>c)if(o.vertical==="center")e.top=l[r.vertical]>c/2?Math.max(0,c-i):0,e.maxHeight=Math.min(i,c);else if(l[r.vertical]>c/2){const d=Math.min(c,r.vertical==="center"?l.center:r.vertical===o.vertical?l.bottom:l.top);e.maxHeight=Math.min(i,d),e.top=Math.max(0,d-i)}else e.top=Math.max(0,r.vertical==="center"?l.center:r.vertical===o.vertical?l.top:l.bottom),e.maxHeight=Math.min(i,c-e.top);if(e.left<0||e.left+a>f)if(e.maxWidth=Math.min(a,f),o.horizontal==="middle")e.left=l[r.horizontal]>f/2?Math.max(0,f-a):0;else if(l[r.horizontal]>f/2){const d=Math.min(f,r.horizontal==="middle"?l.middle:r.horizontal===o.horizontal?l.right:l.left);e.maxWidth=Math.min(a,d),e.left=Math.max(0,d-e.maxWidth)}else e.left=Math.max(0,r.horizontal==="middle"?l.middle:r.horizontal===o.horizontal?l.left:l.right),e.maxWidth=Math.min(a,f-e.left)}const dl=W({name:"QMenu",inheritAttrs:!1,props:{...Tr,...Nn,...ye,...Xn,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noEscDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:Zl},self:{type:String,validator:Zl},offset:{type:Array,validator:Ur},scrollTarget:Rn,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...Qn,"click","escapeKey"],setup(e,{slots:l,emit:n,attrs:r}){let o=null,i,a,u;const c=t.getCurrentInstance(),{proxy:f}=c,{$q:d}=f,b=t.ref(null),m=t.ref(!1),v=t.computed(()=>e.persistent!==!0&&e.noRouteDismiss!==!0),g=we(e,d),{registerTick:k,removeTick:h}=Gn(),{registerTimeout:B}=Zn(),{transitionProps:w,transitionStyle:C}=Yn(e),{localScrollTarget:x,changeScrollEvent:S,unconfigureScrollTarget:q}=Lr(e,H),{anchorEl:$,canShow:P}=$r({showing:m}),{hide:I}=Wn({showing:m,canShow:P,handleShow:J,handleHide:y,hideOnRouteChange:v,processOnMount:!0}),{showPortal:K,hidePortal:U,renderPortal:O}=Kn(c,b,Z,"menu"),Q={anchorEl:$,innerRef:b,onClickOutside(z){if(e.persistent!==!0&&m.value===!0)return I(z),(z.type==="touchstart"||z.target.classList.contains("q-dialog__backdrop"))&&le(z),!0}},p=t.computed(()=>Jl(e.anchor||(e.cover===!0?"center middle":"bottom start"),d.lang.rtl)),_=t.computed(()=>e.cover===!0?p.value:Jl(e.self||"top start",d.lang.rtl)),M=t.computed(()=>(e.square===!0?" q-menu--square":"")+(g.value===!0?" q-menu--dark q-dark":"")),G=t.computed(()=>e.autoClose===!0?{onClick:A}:{}),T=t.computed(()=>m.value===!0&&e.persistent!==!0);t.watch(T,z=>{z===!0?(eo(D),Wr(Q)):(yt(D),Xl(Q))});function R(){cl(()=>{let z=b.value;z&&z.contains(document.activeElement)!==!0&&(z=z.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||z.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||z.querySelector("[autofocus], [data-autofocus]")||z,z.focus({preventScroll:!0}))})}function J(z){if(o=e.noRefocus===!1?document.activeElement:null,lo(j),K(),H(),i=void 0,z!==void 0&&(e.touchPosition||e.contextMenu)){const re=nt(z);if(re.left!==void 0){const{top:ge,left:Ae}=$.value.getBoundingClientRect();i={left:re.left-Ae,top:re.top-ge}}}a===void 0&&(a=t.watch(()=>d.screen.width+"|"+d.screen.height+"|"+e.self+"|"+e.anchor+"|"+d.lang.rtl,F)),e.noFocus!==!0&&document.activeElement.blur(),k(()=>{F(),e.noFocus!==!0&&R()}),B(()=>{d.platform.is.ios===!0&&(u=e.autoClose,b.value.click()),F(),K(!0),n("show",z)},e.transitionDuration)}function y(z){h(),U(),V(!0),o!==null&&(z===void 0||z.qClickOutside!==!0)&&((((z==null?void 0:z.type.indexOf("key"))===0?o.closest('[tabindex]:not([tabindex^="-"])'):void 0)||o).focus(),o=null),B(()=>{U(!0),n("hide",z)},e.transitionDuration)}function V(z){i=void 0,a!==void 0&&(a(),a=void 0),(z===!0||m.value===!0)&&(Gt(j),q(),Xl(Q),yt(D)),z!==!0&&(o=null)}function H(){($.value!==null||e.scrollTarget!==void 0)&&(x.value=Fn($.value,e.scrollTarget),S(x.value,F))}function A(z){u!==!0?(Ir(f,z),n("click",z)):u=!1}function j(z){T.value===!0&&e.noFocus!==!0&&$n(b.value,z.target)!==!0&&R()}function D(z){e.noEscDismiss!==!0&&(n("escapeKey"),I(z))}function F(){no({targetEl:b.value,offset:e.offset,anchorEl:$.value,anchorOrigin:p.value,selfOrigin:_.value,absoluteOffset:i,fit:e.fit,cover:e.cover,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function Z(){return t.h(t.Transition,w.value,()=>m.value===!0?t.h("div",{role:"menu",...r,ref:b,tabindex:-1,class:["q-menu q-position-engine scroll"+M.value,r.class],style:[r.style,C.value],...G.value},ue(l.default)):null)}return t.onBeforeUnmount(V),Object.assign(f,{focus:R,updatePosition:F}),O}});let Pt,vt=0;const ie=new Array(256);for(let e=0;e<256;e++)ie[e]=(e+256).toString(16).substring(1);const Gr=(()=>{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 l=>{const n=new Uint8Array(l);return e.getRandomValues(n),n}}return l=>{const n=[];for(let r=l;r>0;r--)n.push(Math.floor(Math.random()*256));return n}})(),tn=4096;function Jt(){(Pt===void 0||vt+16>tn)&&(vt=0,Pt=Gr(tn));const e=Array.prototype.slice.call(Pt,vt,vt+=16);return e[6]=e[6]&15|64,e[8]=e[8]&63|128,ie[e[0]]+ie[e[1]]+ie[e[2]]+ie[e[3]]+"-"+ie[e[4]]+ie[e[5]]+"-"+ie[e[6]]+ie[e[7]]+"-"+ie[e[8]]+ie[e[9]]+"-"+ie[e[10]]+ie[e[11]]+ie[e[12]]+ie[e[13]]+ie[e[14]]+ie[e[15]]}function Zr(e){return e??null}function ln(e,l){return e??(l===!0?`f_${Jt()}`:null)}function Jr({getValue:e,required:l=!0}={}){if(Ce.value===!0){const n=e!==void 0?t.ref(Zr(e())):t.ref(null);return l===!0&&n.value===null&&t.onMounted(()=>{n.value=`f_${Jt()}`}),e!==void 0&&t.watch(e,r=>{n.value=ln(r,l)}),n}return e!==void 0?t.computed(()=>ln(e(),l)):t.ref(`f_${Jt()}`)}const nn=/^on[A-Z]/;function ei(){const{attrs:e,vnode:l}=t.getCurrentInstance(),n={listeners:t.ref({}),attributes:t.ref({})};function r(){const o={},i={};for(const a in e)a!=="class"&&a!=="style"&&nn.test(a)===!1&&(o[a]=e[a]);for(const a in l.props)nn.test(a)===!0&&(i[a]=l.props[a]);n.attributes.value=o,n.listeners.value=i}return t.onBeforeUpdate(r),r(),n}const kt="_q_l_",ti="_q_pc_",li="_q_fo_";function pe(){}function ni({validate:e,resetValidation:l,requiresQForm:n}){const r=t.inject(li,!1);if(r!==!1){const{props:o,proxy:i}=t.getCurrentInstance();Object.assign(i,{validate:e,resetValidation:l}),t.watch(()=>o.disable,a=>{a===!0?(typeof l=="function"&&l(),r.unbindComponent(i)):r.bindComponent(i)}),t.onMounted(()=>{o.disable!==!0&&r.bindComponent(i)}),t.onBeforeUnmount(()=>{o.disable!==!0&&r.unbindComponent(i)})}else n===!0&&console.error("Parent QForm not found on useFormChild()!")}const on=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,rn=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,an=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,mt=/^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])\)$/,ht=/^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)\)$/,Rt={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=>on.test(e),hexaColor:e=>rn.test(e),hexOrHexaColor:e=>an.test(e),rgbColor:e=>mt.test(e),rgbaColor:e=>ht.test(e),rgbOrRgbaColor:e=>mt.test(e)||ht.test(e),hexOrRgbColor:e=>on.test(e)||mt.test(e),hexaOrRgbaColor:e=>rn.test(e)||ht.test(e),anyColor:e=>an.test(e)||mt.test(e)||ht.test(e)},oi=[!0,!1,"ondemand"],ri={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:e=>oi.includes(e)}};function ii(e,l){const{props:n,proxy:r}=t.getCurrentInstance(),o=t.ref(!1),i=t.ref(null),a=t.ref(!1);ni({validate:k,resetValidation:g});let u=0,c;const f=t.computed(()=>n.rules!==void 0&&n.rules!==null&&n.rules.length!==0),d=t.computed(()=>n.disable!==!0&&f.value===!0&&l.value===!1),b=t.computed(()=>n.error===!0||o.value===!0),m=t.computed(()=>typeof n.errorMessage=="string"&&n.errorMessage.length!==0?n.errorMessage:i.value);t.watch(()=>n.modelValue,()=>{a.value=!0,d.value===!0&&n.lazyRules===!1&&h()});function v(){n.lazyRules!=="ondemand"&&d.value===!0&&a.value===!0&&h()}t.watch(()=>n.reactiveRules,B=>{B===!0?c===void 0&&(c=t.watch(()=>n.rules,v,{immediate:!0,deep:!0})):c!==void 0&&(c(),c=void 0)},{immediate:!0}),t.watch(()=>n.lazyRules,v),t.watch(e,B=>{B===!0?a.value=!0:d.value===!0&&n.lazyRules!=="ondemand"&&h()});function g(){u++,l.value=!1,a.value=!1,o.value=!1,i.value=null,h.cancel()}function k(B=n.modelValue){if(n.disable===!0||f.value===!1)return!0;const w=++u,C=l.value!==!0?()=>{a.value=!0}:()=>{},x=(q,$)=>{q===!0&&C(),o.value=q,i.value=$||null,l.value=!1},S=[];for(let q=0;q<n.rules.length;q++){const $=n.rules[q];let P;if(typeof $=="function"?P=$(B,Rt):typeof $=="string"&&Rt[$]!==void 0&&(P=Rt[$](B)),P===!1||typeof P=="string")return x(!0,P),!1;P!==!0&&P!==void 0&&S.push(P)}return S.length===0?(x(!1),!0):(l.value=!0,Promise.all(S).then(q=>{if(q===void 0||Array.isArray(q)===!1||q.length===0)return w===u&&x(!1),!0;const $=q.find(P=>P===!1||typeof P=="string");return w===u&&x($!==void 0,$),$===void 0},q=>(w===u&&(console.error(q),x(!0)),!1)))}const h=sl(k,0);return t.onBeforeUnmount(()=>{c==null||c(),h.cancel()}),Object.assign(r,{resetValidation:g,validate:k}),nl(r,"hasError",()=>b.value),{isDirtyModel:a,hasRules:f,hasError:b,errorMessage:m,validate:k,resetValidation:g}}function el(e){return e!=null&&(""+e).length!==0}const ai={...ye,...ri,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},fl={...ai,maxlength:[Number,String]},oo=["update:modelValue","clear","focus","blur"];function ro({requiredForAttr:e=!0,tagProp:l,changeEvent:n=!1}={}){const{props:r,proxy:o}=t.getCurrentInstance(),i=we(r,o.$q),a=Jr({required:e,getValue:()=>r.for});return{requiredForAttr:e,changeEvent:n,tag:l===!0?t.computed(()=>r.tag):{value:"label"},isDark:i,editable:t.computed(()=>r.disable!==!0&&r.readonly!==!0),innerLoading:t.ref(!1),focused:t.ref(!1),hasPopupOpen:!1,splitAttrs:ei(),targetUid:a,rootRef:t.ref(null),targetRef:t.ref(null),controlRef:t.ref(null)}}function io(e){const{props:l,emit:n,slots:r,attrs:o,proxy:i}=t.getCurrentInstance(),{$q:a}=i;let u=null;e.hasValue===void 0&&(e.hasValue=t.computed(()=>el(l.modelValue))),e.emitValue===void 0&&(e.emitValue=T=>{n("update:modelValue",T)}),e.controlEvents===void 0&&(e.controlEvents={onFocusin:I,onFocusout:K}),Object.assign(e,{clearValue:U,onControlFocusin:I,onControlFocusout:K,focus:$}),e.computedCounter===void 0&&(e.computedCounter=t.computed(()=>{if(l.counter!==!1){const T=typeof l.modelValue=="string"||typeof l.modelValue=="number"?(""+l.modelValue).length:Array.isArray(l.modelValue)===!0?l.modelValue.length:0,R=l.maxlength!==void 0?l.maxlength:l.maxValues;return T+(R!==void 0?" / "+R:"")}}));const{isDirtyModel:c,hasRules:f,hasError:d,errorMessage:b,resetValidation:m}=ii(e.focused,e.innerLoading),v=e.floatingLabel!==void 0?t.computed(()=>l.stackLabel===!0||e.focused.value===!0||e.floatingLabel.value===!0):t.computed(()=>l.stackLabel===!0||e.focused.value===!0||e.hasValue.value===!0),g=t.computed(()=>l.bottomSlots===!0||l.hint!==void 0||f.value===!0||l.counter===!0||l.error!==null),k=t.computed(()=>l.filled===!0?"filled":l.outlined===!0?"outlined":l.borderless===!0?"borderless":l.standout?"standout":"standard"),h=t.computed(()=>`q-field row no-wrap items-start q-field--${k.value}`+(e.fieldClass!==void 0?` ${e.fieldClass.value}`:"")+(l.rounded===!0?" q-field--rounded":"")+(l.square===!0?" q-field--square":"")+(v.value===!0?" q-field--float":"")+(w.value===!0?" q-field--labeled":"")+(l.dense===!0?" q-field--dense":"")+(l.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":"")+(d.value===!0?" q-field--error":"")+(d.value===!0||e.focused.value===!0?" q-field--highlighted":"")+(l.hideBottomSpace!==!0&&g.value===!0?" q-field--with-bottom":"")+(l.disable===!0?" q-field--disabled":l.readonly===!0?" q-field--readonly":"")),B=t.computed(()=>"q-field__control relative-position row no-wrap"+(l.bgColor!==void 0?` bg-${l.bgColor}`:"")+(d.value===!0?" text-negative":typeof l.standout=="string"&&l.standout.length!==0&&e.focused.value===!0?` ${l.standout}`:l.color!==void 0?` text-${l.color}`:"")),w=t.computed(()=>l.labelSlot===!0||l.label!==void 0),C=t.computed(()=>"q-field__label no-pointer-events absolute ellipsis"+(l.labelColor!==void 0&&d.value!==!0?` text-${l.labelColor}`:"")),x=t.computed(()=>({id:e.targetUid.value,editable:e.editable.value,focused:e.focused.value,floatingLabel:v.value,modelValue:l.modelValue,emitValue:e.emitValue})),S=t.computed(()=>{const T={};return e.targetUid.value&&(T.for=e.targetUid.value),l.disable===!0&&(T["aria-disabled"]="true"),T});function q(){var J;const T=document.activeElement;let R=(J=e.targetRef)==null?void 0:J.value;R&&(T===null||T.id!==e.targetUid.value)&&(R.hasAttribute("tabindex")===!0||(R=R.querySelector("[tabindex]")),R!==T&&(R==null||R.focus({preventScroll:!0})))}function $(){cl(q)}function P(){Or(q);const T=document.activeElement;T!==null&&e.rootRef.value.contains(T)&&T.blur()}function I(T){u!==null&&(clearTimeout(u),u=null),e.editable.value===!0&&e.focused.value===!1&&(e.focused.value=!0,n("focus",T))}function K(T,R){u!==null&&clearTimeout(u),u=setTimeout(()=>{u=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",T)),R==null||R())})}function U(T){var R;le(T),a.platform.is.mobile!==!0?(((R=e.targetRef)==null?void 0:R.value)||e.rootRef.value).focus():e.rootRef.value.contains(document.activeElement)===!0&&document.activeElement.blur(),l.type==="file"&&(e.inputRef.value.value=null),n("update:modelValue",null),e.changeEvent===!0&&n("change",null),n("clear",l.modelValue),t.nextTick(()=>{const J=c.value;m(),c.value=J})}function O(T){[13,32].includes(T.keyCode)&&U(T)}function Q(){const T=[];return r.prepend!==void 0&&T.push(t.h("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:ae},r.prepend())),T.push(t.h("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},p())),d.value===!0&&l.noErrorIcon===!1&&T.push(M("error",[t.h(ce,{name:a.iconSet.field.error,color:"negative"})])),l.loading===!0||e.innerLoading.value===!0?T.push(M("inner-loading-append",r.loading!==void 0?r.loading():[t.h(Tn,{color:l.color})])):l.clearable===!0&&e.hasValue.value===!0&&e.editable.value===!0&&T.push(M("inner-clearable-append",[t.h(ce,{class:"q-field__focusable-action",name:l.clearIcon||a.iconSet.field.clear,tabindex:0,role:"button","aria-hidden":"false","aria-label":a.lang.label.clear,onKeyup:O,onClick:U})])),r.append!==void 0&&T.push(t.h("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:ae},r.append())),e.getInnerAppend!==void 0&&T.push(M("inner-append",e.getInnerAppend())),e.getControlChild!==void 0&&T.push(e.getControlChild()),T}function p(){const T=[];return l.prefix!==void 0&&l.prefix!==null&&T.push(t.h("div",{class:"q-field__prefix no-pointer-events row items-center"},l.prefix)),e.getShadowControl!==void 0&&e.hasShadow.value===!0&&T.push(e.getShadowControl()),e.getControl!==void 0?T.push(e.getControl()):r.rawControl!==void 0?T.push(r.rawControl()):r.control!==void 0&&T.push(t.h("div",{ref:e.targetRef,class:"q-field__native row",tabindex:-1,...e.splitAttrs.attributes.value,"data-autofocus":l.autofocus===!0||void 0},r.control(x.value))),w.value===!0&&T.push(t.h("div",{class:C.value},ue(r.label,l.label))),l.suffix!==void 0&&l.suffix!==null&&T.push(t.h("div",{class:"q-field__suffix no-pointer-events row items-center"},l.suffix)),T.concat(ue(r.default))}function _(){let T,R;d.value===!0?b.value!==null?(T=[t.h("div",{role:"alert"},b.value)],R=`q--slot-error-${b.value}`):(T=ue(r.error),R="q--slot-error"):(l.hideHint!==!0||e.focused.value===!0)&&(l.hint!==void 0?(T=[t.h("div",l.hint)],R=`q--slot-hint-${l.hint}`):(T=ue(r.hint),R="q--slot-hint"));const J=l.counter===!0||r.counter!==void 0;if(l.hideBottomSpace===!0&&J===!1&&T===void 0)return;const y=t.h("div",{key:R,class:"q-field__messages col"},T);return t.h("div",{class:"q-field__bottom row items-start q-field__bottom--"+(l.hideBottomSpace!==!0?"animated":"stale"),onClick:ae},[l.hideBottomSpace===!0?y:t.h(t.Transition,{name:"q-transition--field-message"},()=>y),J===!0?t.h("div",{class:"q-field__counter"},r.counter!==void 0?r.counter():e.computedCounter.value):null])}function M(T,R){return R===null?null:t.h("div",{key:T,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},R)}let G=!1;return t.onDeactivated(()=>{G=!0}),t.onActivated(()=>{G===!0&&l.autofocus===!0&&i.focus()}),l.autofocus===!0&&t.onMounted(()=>{i.focus()}),t.onBeforeUnmount(()=>{u!==null&&clearTimeout(u)}),Object.assign(i,{focus:$,blur:P}),function(){const R=e.getControl===void 0&&r.control===void 0?{...e.splitAttrs.attributes.value,"data-autofocus":l.autofocus===!0||void 0,...S.value}:S.value;return t.h(e.tag.value,{ref:e.rootRef,class:[h.value,o.class],style:o.style,...R},[r.before!==void 0?t.h("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:ae},r.before()):null,t.h("div",{class:"q-field__inner relative-position col self-stretch"},[t.h("div",{ref:e.controlRef,class:B.value,tabindex:-1,...e.controlEvents},Q()),g.value===!0?_():null]),r.after!==void 0?t.h("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:ae},r.after()):null])}}const ui=W({name:"QField",inheritAttrs:!1,props:{...fl,tag:{type:String,default:"label"}},emits:oo,setup(){return io(ro({tagProp:!0}))}}),si={xs:8,sm:10,md:14,lg:20,xl:24},ci=W({name:"QChip",props:{...ye,...rt,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:l,emit:n}){const{proxy:{$q:r}}=t.getCurrentInstance(),o=we(e,r),i=it(e,si),a=t.computed(()=>e.selected===!0||e.icon!==void 0),u=t.computed(()=>e.selected===!0?e.iconSelected||r.iconSet.chip.selected:e.icon),c=t.computed(()=>e.iconRemove||r.iconSet.chip.remove),f=t.computed(()=>e.disable===!1&&(e.clickable===!0||e.selected!==null)),d=t.computed(()=>{const h=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}`:"")+(h?` text-${h} 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":"")+(f.value===!0?" q-chip--clickable cursor-pointer non-selectable q-hoverable":"")+(e.square===!0?" q-chip--square":"")+(o.value===!0?" q-chip--dark q-dark":"")}),b=t.computed(()=>{const h=e.disable===!0?{tabindex:-1,"aria-disabled":"true"}:{tabindex:e.tabindex||0},B={...h,role:"button","aria-hidden":"false","aria-label":e.removeAriaLabel||r.lang.label.remove};return{chip:h,remove:B}});function m(h){h.keyCode===13&&v(h)}function v(h){e.disable||(n("update:selected",!e.selected),n("click",h))}function g(h){(h.keyCode===void 0||h.keyCode===13)&&(le(h),e.disable===!1&&(n("update:modelValue",!1),n("remove")))}function k(){const h=[];f.value===!0&&h.push(t.h("div",{class:"q-focus-helper"})),a.value===!0&&h.push(t.h(ce,{class:"q-chip__icon q-chip__icon--left",name:u.value}));const B=e.label!==void 0?[t.h("div",{class:"ellipsis"},[e.label])]:void 0;return h.push(t.h("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},yn(l.default,B))),e.iconRight&&h.push(t.h(ce,{class:"q-chip__icon q-chip__icon--right",name:e.iconRight})),e.removable===!0&&h.push(t.h(ce,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:c.value,...b.value.remove,onClick:g,onKeyup:g})),h}return()=>{if(e.modelValue===!1)return;const h={class:d.value,style:i.value};return f.value===!0&&Object.assign(h,b.value.chip,{onClick:v,onKeyup:m}),zo("div",h,k(),"ripple",e.ripple!==!1&&e.disable!==!0,()=>[[An,e.ripple]])}}}),tl=W({name:"QItem",props:{...ye,...zn,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:l,emit:n}){const{proxy:{$q:r}}=t.getCurrentInstance(),o=we(e,r),{hasLink:i,linkAttrs:a,linkClass:u,linkTag:c,navigateOnClick:f}=ol(),d=t.ref(null),b=t.ref(null),m=t.computed(()=>e.clickable===!0||i.value===!0||e.tag==="label"),v=t.computed(()=>e.disable!==!0&&m.value===!0),g=t.computed(()=>"q-item q-item-type row no-wrap"+(e.dense===!0?" q-item--dense":"")+(o.value===!0?" q-item--dark":"")+(i.value===!0&&e.active===null?u.value:e.active===!0?` q-item--active${e.activeClass!==void 0?` ${e.activeClass}`:""}`:"")+(e.disable===!0?" disabled":"")+(v.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":""):"")),k=t.computed(()=>e.insetLevel===void 0?null:{["padding"+(r.lang.rtl===!0?"Right":"Left")]:16+e.insetLevel*56+"px"});function h(C){v.value===!0&&(b.value!==null&&C.qAvoidFocus!==!0&&(C.qKeyEvent!==!0&&document.activeElement===d.value?b.value.focus():document.activeElement===b.value&&d.value.focus()),f(C))}function B(C){if(v.value===!0&&Le(C,[13,32])===!0){le(C),C.qKeyEvent=!0;const x=new MouseEvent("click",C);x.qKeyEvent=!0,d.value.dispatchEvent(x)}n("keyup",C)}function w(){const C=pn(l.default,[]);return v.value===!0&&C.unshift(t.h("div",{class:"q-focus-helper",tabindex:-1,ref:b})),C}return()=>{const C={ref:d,class:g.value,style:k.value,role:"listitem",onClick:h,onKeyup:B};return v.value===!0?(C.tabindex=e.tabindex||"0",Object.assign(C,a.value)):m.value===!0&&(C["aria-disabled"]="true"),t.h(c.value,C,w())}}}),ll=W({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(e,{slots:l}){const n=t.computed(()=>`q-item__section column q-item__section--${e.avatar===!0||e.side===!0||e.thumbnail===!0?"side":"main"}`+(e.top===!0?" q-item__section--top justify-start":" justify-center")+(e.avatar===!0?" q-item__section--avatar":"")+(e.thumbnail===!0?" q-item__section--thumbnail":"")+(e.noWrap===!0?" q-item__section--nowrap":""));return()=>t.h("div",{class:n.value},ue(l.default))}}),di=W({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(e,{slots:l}){const n=t.computed(()=>parseInt(e.lines,10)),r=t.computed(()=>"q-item__label"+(e.overline===!0?" q-item__label--overline text-overline":"")+(e.caption===!0?" q-item__label--caption text-caption":"")+(e.header===!0?" q-item__label--header":"")+(n.value===1?" ellipsis":"")),o=t.computed(()=>e.lines!==void 0&&n.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":n.value}:null);return()=>t.h("div",{style:o.value,class:r.value},ue(l.default))}});function fi(e,l,n){function r(){}return t.onBeforeUnmount(()=>{e.value===!0&&void 0}),{removeFromHistory:r,addToHistory(){}}}let Ze=0,Ft,It,et,Ht=!1,un,sn,cn,ze=null;function vi(e){mi(e)&&le(e)}function mi(e){if(e.target===document.body||e.target.classList.contains("q-layout__backdrop"))return!0;const l=Ko(e),n=e.shiftKey&&!e.deltaX,r=!n&&Math.abs(e.deltaX)<=Math.abs(e.deltaY),o=n||r?e.deltaY:e.deltaX;for(let i=0;i<l.length;i++){const a=l[i];if(xr(a,r))return r?o<0&&a.scrollTop===0?!0:o>0&&a.scrollTop+a.clientHeight===a.scrollHeight:o<0&&a.scrollLeft===0?!0:o>0&&a.scrollLeft+a.clientWidth===a.scrollWidth}return!0}function dn(e){e.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function gt(e){Ht!==!0&&(Ht=!0,requestAnimationFrame(()=>{Ht=!1;const{height:l}=e.target,{clientHeight:n,scrollTop:r}=document.scrollingElement;(et===void 0||l!==window.innerHeight)&&(et=n-l,document.scrollingElement.scrollTop=r),r>et&&(document.scrollingElement.scrollTop-=Math.ceil((r-et)/8))}))}function fn(e){const l=document.body,n=window.visualViewport!==void 0;if(e==="add"){const{overflowY:r,overflowX:o}=window.getComputedStyle(l);Ft=al(window),It=il(window),un=l.style.left,sn=l.style.top,cn=window.location.href,l.style.left=`-${Ft}px`,l.style.top=`-${It}px`,o!=="hidden"&&(o==="scroll"||l.scrollWidth>window.innerWidth)&&l.classList.add("q-body--force-scrollbar-x"),r!=="hidden"&&(r==="scroll"||l.scrollHeight>window.innerHeight)&&l.classList.add("q-body--force-scrollbar-y"),l.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,oe.is.ios===!0&&(n===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",gt,ne.passiveCapture),window.visualViewport.addEventListener("scroll",gt,ne.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",dn,ne.passiveCapture))}oe.is.desktop===!0&&oe.is.mac===!0&&window[`${e}EventListener`]("wheel",vi,ne.notPassive),e==="remove"&&(oe.is.ios===!0&&(n===!0?(window.visualViewport.removeEventListener("resize",gt,ne.passiveCapture),window.visualViewport.removeEventListener("scroll",gt,ne.passiveCapture)):window.removeEventListener("scroll",dn,ne.passiveCapture)),l.classList.remove("q-body--prevent-scroll"),l.classList.remove("q-body--force-scrollbar-x"),l.classList.remove("q-body--force-scrollbar-y"),document.qScrollPrevented=!1,l.style.left=un,l.style.top=sn,window.location.href===cn&&window.scrollTo(Ft,It),et=void 0)}function hi(e){let l="add";if(e===!0){if(Ze++,ze!==null){clearTimeout(ze),ze=null;return}if(Ze>1)return}else{if(Ze===0||(Ze--,Ze>0))return;if(l="remove",oe.is.ios===!0&&oe.is.nativeMobile===!0){ze!==null&&clearTimeout(ze),ze=setTimeout(()=>{fn(l),ze=null},100);return}}fn(l)}function gi(){let e;return{preventBodyScroll(l){l!==e&&(e!==void 0||l===!0)&&(e=l,hi(l))}}}let bt=0;const bi={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"},vn={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},pi=W({name:"QDialog",inheritAttrs:!1,props:{...Nn,...Xn,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:[...Qn,"shake","click","escapeKey"],setup(e,{slots:l,emit:n,attrs:r}){const o=t.getCurrentInstance(),i=t.ref(null),a=t.ref(!1),u=t.ref(!1);let c=null,f=null,d,b;const m=t.computed(()=>e.persistent!==!0&&e.noRouteDismiss!==!0&&e.seamless!==!0),{preventBodyScroll:v}=gi(),{registerTimeout:g}=Zn(),{registerTick:k,removeTick:h}=Gn(),{transitionProps:B,transitionStyle:w}=Yn(e,()=>vn[e.position][0],()=>vn[e.position][1]),C=t.computed(()=>w.value+(e.backdropFilter!==void 0?`;backdrop-filter:${e.backdropFilter};-webkit-backdrop-filter:${e.backdropFilter}`:"")),{showPortal:x,hidePortal:S,portalIsAccessible:q,renderPortal:$}=Kn(o,i,H,"dialog"),{hide:P}=Wn({showing:a,hideOnRouteChange:m,handleShow:Q,handleHide:p,processOnMount:!0});fi(a);const I=t.computed(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${e.maximized===!0?"maximized":"minimized"} q-dialog__inner--${e.position} ${bi[e.position]}`+(u.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":"")),K=t.computed(()=>a.value===!0&&e.seamless!==!0),U=t.computed(()=>e.autoClose===!0?{onClick:J}:{}),O=t.computed(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${K.value===!0?"modal":"seamless"}`,r.class]);t.watch(()=>e.maximized,A=>{a.value===!0&&R(A)}),t.watch(K,A=>{v(A),A===!0?(lo(V),eo(G)):(Gt(V),yt(G))});function Q(A){var j;f=e.noRefocus===!1&&document.activeElement!==null?document.activeElement:null,R(e.maximized),x(),u.value=!0,e.noFocus!==!0?((j=document.activeElement)==null||j.blur(),k(_)):h(),g(()=>{if(o.proxy.$q.platform.is.ios===!0){if(e.seamless!==!0&&document.activeElement){const{top:D,bottom:F}=document.activeElement.getBoundingClientRect(),{innerHeight:Z}=window,z=window.visualViewport!==void 0?window.visualViewport.height:Z;D>0&&F>z/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-z,F>=Z?1/0:Math.ceil(document.scrollingElement.scrollTop+F-z/2))),document.activeElement.scrollIntoView()}b=!0,i.value.click(),b=!1}x(!0),u.value=!1,n("show",A)},e.transitionDuration)}function p(A){h(),T(!0),u.value=!0,S(),f!==null&&((((A==null?void 0:A.type.indexOf("key"))===0?f.closest('[tabindex]:not([tabindex^="-"])'):void 0)||f).focus(),f=null),g(()=>{S(!0),u.value=!1,n("hide",A)},e.transitionDuration)}function _(A){cl(()=>{let j=i.value;if(j!==null){if(A!==void 0){const D=j.querySelector(A);if(D!==null){D.focus({preventScroll:!0});return}}j.contains(document.activeElement)!==!0&&(j=j.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||j.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||j.querySelector("[autofocus], [data-autofocus]")||j,j.focus({preventScroll:!0}))}})}function M(A){A&&typeof A.focus=="function"?A.focus({preventScroll:!0}):_(),n("shake");const j=i.value;j!==null&&(j.classList.remove("q-animate--scale"),j.classList.add("q-animate--scale"),c!==null&&clearTimeout(c),c=setTimeout(()=>{c=null,i.value!==null&&(j.classList.remove("q-animate--scale"),_())},170))}function G(){e.seamless!==!0&&(e.persistent===!0||e.noEscDismiss===!0?e.maximized!==!0&&e.noShake!==!0&&M():(n("escapeKey"),P()))}function T(A){c!==null&&(clearTimeout(c),c=null),(A===!0||a.value===!0)&&(R(!1),e.seamless!==!0&&(v(!1),Gt(V),yt(G))),A!==!0&&(f=null)}function R(A){A===!0?d!==!0&&(bt<1&&document.body.classList.add("q-body--dialog"),bt++,d=!0):d===!0&&(bt<2&&document.body.classList.remove("q-body--dialog"),bt--,d=!1)}function J(A){b!==!0&&(P(A),n("click",A))}function y(A){e.persistent!==!0&&e.noBackdropDismiss!==!0?P(A):e.noShake!==!0&&M()}function V(A){e.allowFocusOutside!==!0&&q.value===!0&&$n(i.value,A.target)!==!0&&_('[tabindex]:not([tabindex="-1"])')}Object.assign(o.proxy,{focus:_,shake:M,__updateRefocusTarget(A){f=A||null}}),t.onBeforeUnmount(T);function H(){return t.h("div",{role:"dialog","aria-modal":K.value===!0?"true":"false",...r,class:O.value},[t.h(t.Transition,{name:"q-transition--fade",appear:!0},()=>K.value===!0?t.h("div",{class:"q-dialog__backdrop fixed-full",style:C.value,"aria-hidden":"true",tabindex:-1,onClick:y}):null),t.h(t.Transition,B.value,()=>a.value===!0?t.h("div",{ref:i,class:I.value,style:w.value,tabindex:-1,...U.value},ue(l.default)):null)])}return $}});let Ct=!1;{const e=document.createElement("div");e.setAttribute("dir","rtl"),Object.assign(e.style,{width:"1px",height:"1px",overflow:"auto"});const l=document.createElement("div");Object.assign(l.style,{width:"1000px",height:"1px"}),document.body.appendChild(e),e.appendChild(l),e.scrollLeft=-1e3,Ct=e.scrollLeft>=0,e.remove()}const me=1e3,yi=["start","center","end","start-force","center-force","end-force"],ao=Array.prototype.filter,wi=window.getComputedStyle(document.body).overflowAnchor===void 0?xt:function(e,l){e!==null&&(e._qOverflowAnimationFrame!==void 0&&cancelAnimationFrame(e._qOverflowAnimationFrame),e._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(e===null)return;e._qOverflowAnimationFrame=void 0;const n=e.children||[];ao.call(n,o=>o.dataset&&o.dataset.qVsAnchor!==void 0).forEach(o=>{delete o.dataset.qVsAnchor});const r=n[l];r!=null&&r.dataset&&(r.dataset.qVsAnchor="")}))};function Qe(e,l){return e+l}function Dt(e,l,n,r,o,i,a,u){const c=e===window?document.scrollingElement||document.documentElement:e,f=o===!0?"offsetWidth":"offsetHeight",d={scrollStart:0,scrollViewSize:-a-u,scrollMaxSize:0,offsetStart:-a,offsetEnd:-u};if(o===!0?(e===window?(d.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,d.scrollViewSize+=document.documentElement.clientWidth):(d.scrollStart=c.scrollLeft,d.scrollViewSize+=c.clientWidth),d.scrollMaxSize=c.scrollWidth,i===!0&&(d.scrollStart=(Ct===!0?d.scrollMaxSize-d.scrollViewSize:0)-d.scrollStart)):(e===window?(d.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,d.scrollViewSize+=document.documentElement.clientHeight):(d.scrollStart=c.scrollTop,d.scrollViewSize+=c.clientHeight),d.scrollMaxSize=c.scrollHeight),n!==null)for(let b=n.previousElementSibling;b!==null;b=b.previousElementSibling)b.classList.contains("q-virtual-scroll--skip")===!1&&(d.offsetStart+=b[f]);if(r!==null)for(let b=r.nextElementSibling;b!==null;b=b.nextElementSibling)b.classList.contains("q-virtual-scroll--skip")===!1&&(d.offsetEnd+=b[f]);if(l!==e){const b=c.getBoundingClientRect(),m=l.getBoundingClientRect();o===!0?(d.offsetStart+=m.left-b.left,d.offsetEnd-=m.width):(d.offsetStart+=m.top-b.top,d.offsetEnd-=m.height),e!==window&&(d.offsetStart+=d.scrollStart),d.offsetEnd+=d.scrollMaxSize-d.offsetStart}return d}function mn(e,l,n,r){l==="end"&&(l=(e===window?document.body:e)[n===!0?"scrollWidth":"scrollHeight"]),e===window?n===!0?(r===!0&&(l=(Ct===!0?document.body.scrollWidth-document.documentElement.clientWidth:0)-l),window.scrollTo(l,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,l):n===!0?(r===!0&&(l=(Ct===!0?e.scrollWidth-e.offsetWidth:0)-l),e.scrollLeft=l):e.scrollTop=l}function Je(e,l,n,r){if(n>=r)return 0;const o=l.length,i=Math.floor(n/me),a=Math.floor((r-1)/me)+1;let u=e.slice(i,a).reduce(Qe,0);return n%me!==0&&(u-=l.slice(i*me,n).reduce(Qe,0)),r%me!==0&&r!==o&&(u-=l.slice(r,a*me).reduce(Qe,0)),u}const Si={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]},hn={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,...Si};function Ci({virtualScrollLength:e,getVirtualScrollTarget:l,getVirtualScrollEl:n,virtualScrollItemSizeComputed:r}){const o=t.getCurrentInstance(),{props:i,emit:a,proxy:u}=o,{$q:c}=u;let f,d,b,m=[],v;const g=t.ref(0),k=t.ref(0),h=t.ref({}),B=t.ref(null),w=t.ref(null),C=t.ref(null),x=t.ref({from:0,to:0}),S=t.computed(()=>i.tableColspan!==void 0?i.tableColspan:100);r===void 0&&(r=t.computed(()=>i.virtualScrollItemSize));const q=t.computed(()=>r.value+";"+i.virtualScrollHorizontal),$=t.computed(()=>q.value+";"+i.virtualScrollSliceRatioBefore+";"+i.virtualScrollSliceRatioAfter);t.watch($,()=>{M()}),t.watch(q,P);function P(){_(d,!0)}function I(y){_(y===void 0?d:y)}function K(y,V){const H=l();if(H==null||H.nodeType===8)return;const A=Dt(H,n(),B.value,w.value,i.virtualScrollHorizontal,c.lang.rtl,i.virtualScrollStickySizeStart,i.virtualScrollStickySizeEnd);b!==A.scrollViewSize&&M(A.scrollViewSize),O(H,A,Math.min(e.value-1,Math.max(0,parseInt(y,10)||0)),0,yi.indexOf(V)!==-1?V:d!==-1&&y>d?"end":"start")}function U(){const y=l();if(y==null||y.nodeType===8)return;const V=Dt(y,n(),B.value,w.value,i.virtualScrollHorizontal,c.lang.rtl,i.virtualScrollStickySizeStart,i.virtualScrollStickySizeEnd),H=e.value-1,A=V.scrollMaxSize-V.offsetStart-V.offsetEnd-k.value;if(f===V.scrollStart)return;if(V.scrollMaxSize<=0){O(y,V,0,0);return}b!==V.scrollViewSize&&M(V.scrollViewSize),Q(x.value.from);const j=Math.floor(V.scrollMaxSize-Math.max(V.scrollViewSize,V.offsetEnd)-Math.min(v[H],V.scrollViewSize/2));if(j>0&&Math.ceil(V.scrollStart)>=j){O(y,V,H,V.scrollMaxSize-V.offsetEnd-m.reduce(Qe,0));return}let D=0,F=V.scrollStart-V.offsetStart,Z=F;if(F<=A&&F+V.scrollViewSize>=g.value)F-=g.value,D=x.value.from,Z=F;else for(let z=0;F>=m[z]&&D<H;z++)F-=m[z],D+=me;for(;F>0&&D<H;)F-=v[D],F>-V.scrollViewSize?(D++,Z=F):Z=v[D]+F;O(y,V,D,Z)}function O(y,V,H,A,j){const D=typeof j=="string"&&j.indexOf("-force")!==-1,F=D===!0?j.replace("-force",""):j,Z=F!==void 0?F:"start";let z=Math.max(0,H-h.value[Z]),re=z+h.value.total;re>e.value&&(re=e.value,z=Math.max(0,re-h.value.total)),f=V.scrollStart;const ge=z!==x.value.from||re!==x.value.to;if(ge===!1&&F===void 0){T(H);return}const{activeElement:Ae}=document,fe=C.value;ge===!0&&fe!==null&&fe!==Ae&&fe.contains(Ae)===!0&&(fe.addEventListener("focusout",p),setTimeout(()=>{fe==null||fe.removeEventListener("focusout",p)})),wi(fe,H-z);const at=F!==void 0?v.slice(z,H).reduce(Qe,0):0;if(ge===!0){const xe=re>=x.value.from&&z<=x.value.to?x.value.to:re;x.value={from:z,to:xe},g.value=Je(m,v,0,z),k.value=Je(m,v,re,e.value),requestAnimationFrame(()=>{x.value.to!==re&&f===V.scrollStart&&(x.value={from:x.value.from,to:re},k.value=Je(m,v,re,e.value))})}requestAnimationFrame(()=>{if(f!==V.scrollStart)return;ge===!0&&Q(z);const xe=v.slice(z,H).reduce(Qe,0),ke=xe+V.offsetStart+g.value,ut=ke+v[H];let Ke=ke+A;if(F!==void 0){const qt=xe-at,Xe=V.scrollStart+qt;Ke=D!==!0&&Xe<ke&&ut<Xe+V.scrollViewSize?Xe:F==="end"?ut-V.scrollViewSize:ke-(F==="start"?0:Math.round((V.scrollViewSize-v[H])/2))}f=Ke,mn(y,Ke,i.virtualScrollHorizontal,c.lang.rtl),T(H)})}function Q(y){const V=C.value;if(V){const H=ao.call(V.children,z=>z.classList&&z.classList.contains("q-virtual-scroll--skip")===!1),A=H.length,j=i.virtualScrollHorizontal===!0?z=>z.getBoundingClientRect().width:z=>z.offsetHeight;let D=y,F,Z;for(let z=0;z<A;){for(F=j(H[z]),z++;z<A&&H[z].classList.contains("q-virtual-scroll--with-prev")===!0;)F+=j(H[z]),z++;Z=F-v[D],Z!==0&&(v[D]+=Z,m[Math.floor(D/me)]+=Z),D++}}}function p(){var y;(y=C.value)==null||y.focus()}function _(y,V){const H=1*r.value;(V===!0||Array.isArray(v)===!1)&&(v=[]);const A=v.length;v.length=e.value;for(let D=e.value-1;D>=A;D--)v[D]=H;const j=Math.floor((e.value-1)/me);m=[];for(let D=0;D<=j;D++){let F=0;const Z=Math.min((D+1)*me,e.value);for(let z=D*me;z<Z;z++)F+=v[z];m.push(F)}d=-1,f=void 0,g.value=Je(m,v,0,x.value.from),k.value=Je(m,v,x.value.to,e.value),y>=0?(Q(x.value.from),t.nextTick(()=>{K(y)})):R()}function M(y){if(y===void 0&&typeof window<"u"){const F=l();F!=null&&F.nodeType!==8&&(y=Dt(F,n(),B.value,w.value,i.virtualScrollHorizontal,c.lang.rtl,i.virtualScrollStickySizeStart,i.virtualScrollStickySizeEnd).scrollViewSize)}b=y;const V=parseFloat(i.virtualScrollSliceRatioBefore)||0,H=parseFloat(i.virtualScrollSliceRatioAfter)||0,A=1+V+H,j=y===void 0||y<=0?1:Math.ceil(y/r.value),D=Math.max(1,j,Math.ceil((i.virtualScrollSliceSize>0?i.virtualScrollSliceSize:10)/A));h.value={total:Math.ceil(D*A),start:Math.ceil(D*V),center:Math.ceil(D*(.5+V)),end:Math.ceil(D*(1+V)),view:j}}function G(y,V){const H=i.virtualScrollHorizontal===!0?"width":"height",A={["--q-virtual-scroll-item-"+H]:r.value+"px"};return[y==="tbody"?t.h(y,{class:"q-virtual-scroll__padding",key:"before",ref:B},[t.h("tr",[t.h("td",{style:{[H]:`${g.value}px`,...A},colspan:S.value})])]):t.h(y,{class:"q-virtual-scroll__padding",key:"before",ref:B,style:{[H]:`${g.value}px`,...A}}),t.h(y,{class:"q-virtual-scroll__content",key:"content",ref:C,tabindex:-1},V.flat()),y==="tbody"?t.h(y,{class:"q-virtual-scroll__padding",key:"after",ref:w},[t.h("tr",[t.h("td",{style:{[H]:`${k.value}px`,...A},colspan:S.value})])]):t.h(y,{class:"q-virtual-scroll__padding",key:"after",ref:w,style:{[H]:`${k.value}px`,...A}})]}function T(y){d!==y&&(i.onVirtualScroll!==void 0&&a("virtualScroll",{index:y,from:x.value.from,to:x.value.to-1,direction:y<d?"decrease":"increase",ref:u}),d=y)}M();const R=sl(U,c.platform.is.ios===!0?120:35);t.onBeforeMount(()=>{M()});let J=!1;return t.onDeactivated(()=>{J=!0}),t.onActivated(()=>{if(J!==!0)return;const y=l();f!==void 0&&y!==void 0&&y!==null&&y.nodeType!==8?mn(y,f,i.virtualScrollHorizontal,c.lang.rtl):K(d)}),t.onBeforeUnmount(()=>{R.cancel()}),Object.assign(u,{scrollTo:K,reset:P,refresh:I}),{virtualScrollSliceRange:x,virtualScrollSliceSizeComputed:h,setVirtualScrollSize:M,onVirtualScrollEvt:R,localResetVirtualScroll:_,padVirtualScroll:G,scrollTo:K,reset:P,refresh:I}}const xi=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,ki=/[\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,qi=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,_i=/[a-z0-9_ -]$/i;function zi(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"&&(oe.is.firefox===!0?_i.test(n.data)===!1:xi.test(n.data)===!0||ki.test(n.data)===!0||qi.test(n.data)===!0)===!0&&(n.target.qComposing=!0)}}function Se(e,l){if(e===l)return!0;if(e!==null&&l!==null&&typeof e=="object"&&typeof l=="object"){if(e.constructor!==l.constructor)return!1;let n,r;if(e.constructor===Array){if(n=e.length,n!==l.length)return!1;for(r=n;r--!==0;)if(Se(e[r],l[r])!==!0)return!1;return!0}if(e.constructor===Map){if(e.size!==l.size)return!1;let i=e.entries();for(r=i.next();r.done!==!0;){if(l.has(r.value[0])!==!0)return!1;r=i.next()}for(i=e.entries(),r=i.next();r.done!==!0;){if(Se(r.value[1],l.get(r.value[0]))!==!0)return!1;r=i.next()}return!0}if(e.constructor===Set){if(e.size!==l.size)return!1;const i=e.entries();for(r=i.next();r.done!==!0;){if(l.has(r.value[0])!==!0)return!1;r=i.next()}return!0}if(e.buffer!=null&&e.buffer.constructor===ArrayBuffer){if(n=e.length,n!==l.length)return!1;for(r=n;r--!==0;)if(e[r]!==l[r])return!1;return!0}if(e.constructor===RegExp)return e.source===l.source&&e.flags===l.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===l.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===l.toString();const o=Object.keys(e).filter(i=>e[i]!==void 0);if(n=o.length,n!==Object.keys(l).filter(i=>l[i]!==void 0).length)return!1;for(r=n;r--!==0;){const i=o[r];if(Se(e[i],l[i])!==!0)return!1}return!0}return e!==e&&l!==l}const gn=e=>["add","add-unique","toggle"].includes(e),Bi=".*+?^${}()|[]\\",Vi=Object.keys(fl);function jt(e,l){if(typeof e=="function")return e;const n=e!==void 0?e:l;return r=>r!==null&&typeof r=="object"&&n in r?r[n]:r}const uo=W({name:"QSelect",inheritAttrs:!1,props:{...hn,...On,...fl,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:gn},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:hn.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...oo,"add","remove","inputValue","keyup","keypress","keydown","popupShow","popupHide","filterAbort"],setup(e,{slots:l,emit:n}){const{proxy:r}=t.getCurrentInstance(),{$q:o}=r,i=t.ref(!1),a=t.ref(!1),u=t.ref(-1),c=t.ref(""),f=t.ref(!1),d=t.ref(!1);let b=null,m=null,v,g,k,h=null,B,w,C,x;const S=t.ref(null),q=t.ref(null),$=t.ref(null),P=t.ref(null),I=t.ref(null),K=sr(e),U=zi(Cl),O=t.computed(()=>Array.isArray(e.options)?e.options.length:0),Q=t.computed(()=>e.virtualScrollItemSize===void 0?e.optionsDense===!0?24:48:e.virtualScrollItemSize),{virtualScrollSliceRange:p,virtualScrollSliceSizeComputed:_,localResetVirtualScroll:M,padVirtualScroll:G,onVirtualScrollEvt:T,scrollTo:R,setVirtualScrollSize:J}=Ci({virtualScrollLength:O,getVirtualScrollTarget:mo,getVirtualScrollEl:wl,virtualScrollItemSizeComputed:Q}),y=ro(),V=t.computed(()=>{const s=e.mapOptions===!0&&e.multiple!==!0,E=e.modelValue!==void 0&&(e.modelValue!==null||s===!0)?e.multiple===!0&&Array.isArray(e.modelValue)?e.modelValue:[e.modelValue]:[];if(e.mapOptions===!0&&Array.isArray(e.options)===!0){const L=e.mapOptions===!0&&v!==void 0?v:[],N=E.map(X=>vo(X,L));return e.modelValue===null&&s===!0?N.filter(X=>X!==null):N}return E}),H=t.computed(()=>{const s={};return Vi.forEach(E=>{const L=e[E];L!==void 0&&(s[E]=L)}),s}),A=t.computed(()=>e.optionsDark===null?y.isDark.value:e.optionsDark),j=t.computed(()=>el(V.value)),D=t.computed(()=>{let s="q-field__input q-placeholder col";return e.hideSelected===!0||V.value.length===0?[s,e.inputClass]:(s+=" q-field__input--padding",e.inputClass===void 0?s:[s,e.inputClass])}),F=t.computed(()=>(e.virtualScrollHorizontal===!0?"q-virtual-scroll--horizontal":"")+(e.popupContentClass?" "+e.popupContentClass:"")),Z=t.computed(()=>O.value===0),z=t.computed(()=>V.value.map(s=>se.value(s)).join(", ")),re=t.computed(()=>e.displayValue!==void 0?e.displayValue:z.value),ge=t.computed(()=>e.optionsHtml===!0?()=>!0:s=>(s==null?void 0:s.html)===!0),Ae=t.computed(()=>e.displayValueHtml===!0||e.displayValue===void 0&&(e.optionsHtml===!0||V.value.some(ge.value))),fe=t.computed(()=>y.focused.value===!0?e.tabindex:-1),at=t.computed(()=>{const s={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":i.value===!0?"true":"false","aria-controls":`${y.targetUid.value}_lb`};return u.value>=0&&(s["aria-activedescendant"]=`${y.targetUid.value}_${u.value}`),s}),xe=t.computed(()=>({id:`${y.targetUid.value}_lb`,role:"listbox","aria-multiselectable":e.multiple===!0?"true":"false"})),ke=t.computed(()=>V.value.map((s,E)=>({index:E,opt:s,html:ge.value(s),selected:!0,removeAtIndex:fo,toggleOption:qe,tabindex:fe.value}))),ut=t.computed(()=>{if(O.value===0)return[];const{from:s,to:E}=p.value;return e.options.slice(s,E).map((L,N)=>{const X=Oe.value(L)===!0,ee=zt(L)===!0,Y=s+N,te={clickable:!0,active:ee,activeClass:Xe.value,manualFocus:!0,focused:!1,disable:X,tabindex:-1,dense:e.optionsDense,dark:A.value,role:"option","aria-selected":ee===!0?"true":"false",id:`${y.targetUid.value}_${Y}`,onClick:()=>{qe(L)}};return X!==!0&&(u.value===Y&&(te.focused=!0),o.platform.is.desktop===!0&&(te.onMousemove=()=>{i.value===!0&&Me(Y)})),{index:Y,opt:L,html:ge.value(L),label:se.value(L),selected:te.active,focused:te.focused,toggleOption:qe,setOptionIndex:Me,itemProps:te}})}),Ke=t.computed(()=>e.dropdownIcon!==void 0?e.dropdownIcon:o.iconSet.arrow.dropdown),qt=t.computed(()=>e.optionsCover===!1&&e.outlined!==!0&&e.standout!==!0&&e.borderless!==!0&&e.rounded!==!0),Xe=t.computed(()=>e.optionsSelectedClass!==void 0?e.optionsSelectedClass:e.color!==void 0?`text-${e.color}`:""),be=t.computed(()=>jt(e.optionValue,"value")),se=t.computed(()=>jt(e.optionLabel,"label")),Oe=t.computed(()=>jt(e.optionDisable,"disable")),st=t.computed(()=>V.value.map(be.value)),co=t.computed(()=>{const s={onInput:Cl,onChange:U,onKeydown:yl,onKeyup:bl,onKeypress:pl,onFocus:hl,onClick(E){g===!0&&ve(E)}};return s.onCompositionstart=s.onCompositionupdate=s.onCompositionend=U,s});t.watch(V,s=>{v=s,e.useInput===!0&&e.fillInput===!0&&e.multiple!==!0&&y.innerLoading.value!==!0&&(a.value!==!0&&i.value!==!0||j.value!==!0)&&(k!==!0&&Ie(),(a.value===!0||i.value===!0)&&Pe(""))},{immediate:!0}),t.watch(()=>e.fillInput,Ie),t.watch(i,Bt),t.watch(O,_o);function vl(s){return e.emitValue===!0?be.value(s):s}function _t(s){if(s!==-1&&s<V.value.length)if(e.multiple===!0){const E=e.modelValue.slice();n("remove",{index:s,value:E.splice(s,1)[0]}),n("update:modelValue",E)}else n("update:modelValue",null)}function fo(s){_t(s),y.focus()}function ml(s,E){const L=vl(s);if(e.multiple!==!0){e.fillInput===!0&&Ye(se.value(s),!0,!0),n("update:modelValue",L);return}if(V.value.length===0){n("add",{index:0,value:L}),n("update:modelValue",e.multiple===!0?[L]:L);return}if(E===!0&&zt(s)===!0||e.maxValues!==void 0&&e.modelValue.length>=e.maxValues)return;const N=e.modelValue.slice();n("add",{index:N.length,value:L}),N.push(L),n("update:modelValue",N)}function qe(s,E){var ee;if(y.editable.value!==!0||s===void 0||Oe.value(s)===!0)return;const L=be.value(s);if(e.multiple!==!0){E!==!0&&(Ye(e.fillInput===!0?se.value(s):"",!0,!0),_e()),(ee=q.value)==null||ee.focus(),(V.value.length===0||Se(be.value(V.value[0]),L)!==!0)&&n("update:modelValue",e.emitValue===!0?L:s);return}if((g!==!0||f.value===!0)&&y.focus(),hl(),V.value.length===0){const Y=e.emitValue===!0?L:s;n("add",{index:0,value:Y}),n("update:modelValue",e.multiple===!0?[Y]:Y);return}const N=e.modelValue.slice(),X=st.value.findIndex(Y=>Se(Y,L));if(X!==-1)n("remove",{index:X,value:N.splice(X,1)[0]});else{if(e.maxValues!==void 0&&N.length>=e.maxValues)return;const Y=e.emitValue===!0?L:s;n("add",{index:N.length,value:Y}),N.push(Y)}n("update:modelValue",N)}function Me(s){if(o.platform.is.desktop!==!0)return;const E=s!==-1&&s<O.value?s:-1;u.value!==E&&(u.value=E)}function ct(s=1,E){if(i.value===!0){let L=u.value;do L=jl(L+s,-1,O.value-1);while(L!==-1&&L!==u.value&&Oe.value(e.options[L])===!0);u.value!==L&&(Me(L),R(L),E!==!0&&e.useInput===!0&&e.fillInput===!0&&dt(L>=0?se.value(e.options[L]):B,!0))}}function vo(s,E){const L=N=>Se(be.value(N),s);return e.options.find(L)||E.find(L)||s}function zt(s){const E=be.value(s);return st.value.find(L=>Se(L,E))!==void 0}function hl(s){e.useInput===!0&&q.value!==null&&(s===void 0||q.value===s.target&&s.target.value===z.value)&&q.value.select()}function gl(s){Le(s,27)===!0&&i.value===!0&&(ve(s),_e(),Ie()),n("keyup",s)}function bl(s){const{value:E}=s.target;if(s.keyCode!==void 0){gl(s);return}if(s.target.value="",b!==null&&(clearTimeout(b),b=null),m!==null&&(clearTimeout(m),m=null),Ie(),typeof E=="string"&&E.length!==0){const L=E.toLocaleLowerCase(),N=ee=>{const Y=e.options.find(te=>String(ee.value(te)).toLocaleLowerCase()===L);return Y===void 0?!1:(V.value.indexOf(Y)===-1?qe(Y):_e(),!0)},X=ee=>{N(be)!==!0&&ee!==!0&&N(se)!==!0&&Pe(E,!0,()=>X(!0))};X()}else y.clearValue(s)}function pl(s){n("keypress",s)}function yl(s){if(n("keydown",s),Ln(s)===!0)return;const E=c.value.length!==0&&(e.newValueMode!==void 0||e.onNewValue!==void 0),L=s.shiftKey!==!0&&e.disableTabSelection!==!0&&e.multiple!==!0&&(u.value!==-1||E===!0);if(s.keyCode===27){ae(s);return}if(s.keyCode===9&&L===!1){Re();return}if(s.target===void 0||s.target.id!==y.targetUid.value||y.editable.value!==!0)return;if(s.keyCode===40&&y.innerLoading.value!==!0&&i.value===!1){le(s),Fe();return}if(s.keyCode===8&&(e.useChips===!0||e.clearable===!0)&&e.hideSelected!==!0&&c.value.length===0){e.multiple===!0&&Array.isArray(e.modelValue)===!0?_t(e.modelValue.length-1):e.multiple!==!0&&e.modelValue!==null&&n("update:modelValue",null);return}(s.keyCode===35||s.keyCode===36)&&(typeof c.value!="string"||c.value.length===0)&&(le(s),u.value=-1,ct(s.keyCode===36?1:-1,e.multiple)),(s.keyCode===33||s.keyCode===34)&&_.value!==void 0&&(le(s),u.value=Math.max(-1,Math.min(O.value,u.value+(s.keyCode===33?-1:1)*_.value.view)),ct(s.keyCode===33?1:-1,e.multiple)),(s.keyCode===38||s.keyCode===40)&&(le(s),ct(s.keyCode===38?-1:1,e.multiple));const N=O.value;if((C===void 0||x<Date.now())&&(C=""),N>0&&e.useInput!==!0&&s.key!==void 0&&s.key.length===1&&s.altKey===!1&&s.ctrlKey===!1&&s.metaKey===!1&&(s.keyCode!==32||C.length!==0)){i.value!==!0&&Fe(s);const X=s.key.toLocaleLowerCase(),ee=C.length===1&&C[0]===X;x=Date.now()+1500,ee===!1&&(le(s),C+=X);const Y=new RegExp("^"+C.split("").map(He=>Bi.indexOf(He)!==-1?"\\"+He:He).join(".*"),"i");let te=u.value;if(ee===!0||te<0||Y.test(se.value(e.options[te]))!==!0)do te=jl(te+1,-1,N-1);while(te!==u.value&&(Oe.value(e.options[te])===!0||Y.test(se.value(e.options[te]))!==!0));u.value!==te&&t.nextTick(()=>{Me(te),R(te),te>=0&&e.useInput===!0&&e.fillInput===!0&&dt(se.value(e.options[te]),!0)});return}if(!(s.keyCode!==13&&(s.keyCode!==32||e.useInput===!0||C!=="")&&(s.keyCode!==9||L===!1))){if(s.keyCode!==9&&le(s),u.value!==-1&&u.value<N){qe(e.options[u.value]);return}if(E===!0){const X=(ee,Y)=>{var He;if(Y){if(gn(Y)!==!0)return}else Y=e.newValueMode;if(Ye("",e.multiple!==!0,!0),ee==null)return;(Y==="toggle"?qe:ml)(ee,Y==="add-unique"),e.multiple!==!0&&((He=q.value)==null||He.focus(),_e())};if(e.onNewValue!==void 0?n("newValue",c.value,X):X(c.value),e.multiple!==!0)return}i.value===!0?Re():y.innerLoading.value!==!0&&Fe()}}function wl(){return g===!0?I.value:$.value!==null&&$.value.contentEl!==null?$.value.contentEl:void 0}function mo(){return wl()}function ho(){return e.hideSelected===!0?[]:l["selected-item"]!==void 0?ke.value.map(s=>l["selected-item"](s)).slice():l.selected!==void 0?[].concat(l.selected()):e.useChips===!0?ke.value.map((s,E)=>t.h(ci,{key:"option-"+E,removable:y.editable.value===!0&&Oe.value(s.opt)!==!0,dense:!0,textColor:e.color,tabindex:fe.value,onRemove(){s.removeAtIndex(E)}},()=>t.h("span",{class:"ellipsis",[s.html===!0?"innerHTML":"textContent"]:se.value(s.opt)}))):[t.h("span",{class:"ellipsis",[Ae.value===!0?"innerHTML":"textContent"]:re.value})]}function Sl(){if(Z.value===!0)return l["no-option"]!==void 0?l["no-option"]({inputValue:c.value}):void 0;const s=l.option!==void 0?l.option:L=>t.h(tl,{key:L.index,...L.itemProps},()=>t.h(ll,()=>t.h(di,()=>t.h("span",{[L.html===!0?"innerHTML":"textContent"]:L.label}))));let E=G("div",ut.value.map(s));return l["before-options"]!==void 0&&(E=l["before-options"]().concat(E)),he(l["after-options"],E)}function go(s,E){const L=E===!0?{...at.value,...y.splitAttrs.attributes.value}:void 0,N={ref:E===!0?q:void 0,key:"i_t",class:D.value,style:e.inputStyle,value:c.value!==void 0?c.value:"",type:"search",...L,id:E===!0?y.targetUid.value:void 0,maxlength:e.maxlength,autocomplete:e.autocomplete,"data-autofocus":s===!0||e.autofocus===!0||void 0,disabled:e.disable===!0,readonly:e.readonly===!0,...co.value};return s!==!0&&g===!0&&(Array.isArray(N.class)===!0?N.class=[...N.class,"no-pointer-events"]:N.class+=" no-pointer-events"),t.h("input",N)}function Cl(s){b!==null&&(clearTimeout(b),b=null),m!==null&&(clearTimeout(m),m=null),!(s&&s.target&&s.target.qComposing===!0)&&(dt(s.target.value||""),k=!0,B=c.value,y.focused.value!==!0&&(g!==!0||f.value===!0)&&y.focus(),e.onFilter!==void 0&&(b=setTimeout(()=>{b=null,Pe(c.value)},e.inputDebounce)))}function dt(s,E){c.value!==s&&(c.value=s,E===!0||e.inputDebounce===0||e.inputDebounce==="0"?n("inputValue",s):m=setTimeout(()=>{m=null,n("inputValue",s)},e.inputDebounce))}function Ye(s,E,L){k=L!==!0,e.useInput===!0&&(dt(s,!0),(E===!0||L!==!0)&&(B=s),E!==!0&&Pe(s))}function Pe(s,E,L){if(e.onFilter===void 0||E!==!0&&y.focused.value!==!0)return;y.innerLoading.value===!0?n("filterAbort"):(y.innerLoading.value=!0,d.value=!0),s!==""&&e.multiple!==!0&&V.value.length!==0&&k!==!0&&s===se.value(V.value[0])&&(s="");const N=setTimeout(()=>{i.value===!0&&(i.value=!1)},10);h!==null&&clearTimeout(h),h=N,n("filter",s,(X,ee)=>{(E===!0||y.focused.value===!0)&&h===N&&(clearTimeout(h),typeof X=="function"&&X(),d.value=!1,t.nextTick(()=>{y.innerLoading.value=!1,y.editable.value===!0&&(E===!0?i.value===!0&&_e():i.value===!0?Bt(!0):i.value=!0),typeof ee=="function"&&t.nextTick(()=>{ee(r)}),typeof L=="function"&&t.nextTick(()=>{L(r)})}))},()=>{y.focused.value===!0&&h===N&&(clearTimeout(h),y.innerLoading.value=!1,d.value=!1),i.value===!0&&(i.value=!1)})}function bo(){return t.h(dl,{ref:$,class:F.value,style:e.popupContentStyle,modelValue:i.value,fit:e.menuShrink!==!0,cover:e.optionsCover===!0&&Z.value!==!0&&e.useInput!==!0,anchor:e.menuAnchor,self:e.menuSelf,offset:e.menuOffset,dark:A.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,noRouteDismiss:e.popupNoRouteDismiss,square:qt.value,transitionShow:e.transitionShow,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,separateClosePopup:!0,...xe.value,onScrollPassive:T,onBeforeShow:kl,onBeforeHide:po,onShow:yo},Sl)}function po(s){ql(s),Re()}function yo(){J()}function wo(s){var E;ve(s),(E=q.value)==null||E.focus(),f.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function So(s){ve(s),t.nextTick(()=>{f.value=!1})}function Co(){const s=[t.h(ui,{class:`col-auto ${y.fieldClass.value}`,...H.value,for:y.targetUid.value,dark:A.value,square:!0,loading:d.value,itemAligned:!1,filled:!0,stackLabel:c.value.length!==0,...y.splitAttrs.listeners.value,onFocus:wo,onBlur:So},{...l,rawControl:()=>y.getControl(!0),before:void 0,after:void 0})];return i.value===!0&&s.push(t.h("div",{ref:I,class:F.value+" scroll",style:e.popupContentStyle,...xe.value,onClick:ae,onScrollPassive:T},Sl())),t.h(pi,{ref:P,modelValue:a.value,position:e.useInput===!0?"top":void 0,transitionShow:w,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,noRouteDismiss:e.popupNoRouteDismiss,onBeforeShow:kl,onBeforeHide:xo,onHide:ko,onShow:qo},()=>t.h("div",{class:"q-select__dialog"+(A.value===!0?" q-select__dialog--dark q-dark":"")+(f.value===!0?" q-select__dialog--focused":"")},s))}function xo(s){ql(s),P.value!==null&&P.value.__updateRefocusTarget(y.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),y.focused.value=!1}function ko(s){_e(),y.focused.value===!1&&n("blur",s),Ie()}function qo(){const s=document.activeElement;(s===null||s.id!==y.targetUid.value)&&q.value!==null&&q.value!==s&&q.value.focus(),J()}function Re(){a.value!==!0&&(u.value=-1,i.value===!0&&(i.value=!1),y.focused.value===!1&&(h!==null&&(clearTimeout(h),h=null),y.innerLoading.value===!0&&(n("filterAbort"),y.innerLoading.value=!1,d.value=!1)))}function Fe(s){y.editable.value===!0&&(g===!0?(y.onControlFocusin(s),a.value=!0,t.nextTick(()=>{y.focus()})):y.focus(),e.onFilter!==void 0?Pe(c.value):(Z.value!==!0||l["no-option"]!==void 0)&&(i.value=!0))}function _e(){a.value=!1,Re()}function Ie(){e.useInput===!0&&Ye(e.multiple!==!0&&e.fillInput===!0&&V.value.length!==0&&se.value(V.value[0])||"",!0,!0)}function Bt(s){let E=-1;if(s===!0){if(V.value.length!==0){const L=be.value(V.value[0]);E=e.options.findIndex(N=>Se(be.value(N),L))}M(E)}Me(E)}function _o(s,E){i.value===!0&&y.innerLoading.value===!1&&(M(-1,!0),t.nextTick(()=>{i.value===!0&&y.innerLoading.value===!1&&(s>E?M():Bt(!0))}))}function xl(){a.value===!1&&$.value!==null&&$.value.updatePosition()}function kl(s){s!==void 0&&ve(s),n("popupShow",s),y.hasPopupOpen=!0,y.onControlFocusin(s)}function ql(s){s!==void 0&&ve(s),n("popupHide",s),y.hasPopupOpen=!1,y.onControlFocusout(s)}function _l(){g=o.platform.is.mobile!==!0&&e.behavior!=="dialog"?!1:e.behavior!=="menu"&&(e.useInput===!0?l["no-option"]!==void 0||e.onFilter!==void 0||Z.value===!1:!0),w=o.platform.is.ios===!0&&g===!0&&e.useInput===!0?"fade":e.transitionShow}return t.onBeforeUpdate(_l),t.onUpdated(xl),_l(),t.onBeforeUnmount(()=>{b!==null&&clearTimeout(b),m!==null&&clearTimeout(m)}),Object.assign(r,{showPopup:Fe,hidePopup:_e,removeAtIndex:_t,add:ml,toggleOption:qe,getOptionIndex:()=>u.value,setOptionIndex:Me,moveOptionSelection:ct,filter:Pe,updateMenuPosition:xl,updateInputValue:Ye,isOptionSelected:zt,getEmittingOptionValue:vl,isOptionDisabled:(...s)=>Oe.value.apply(null,s)===!0,getOptionValue:(...s)=>be.value.apply(null,s),getOptionLabel:(...s)=>se.value.apply(null,s)}),Object.assign(y,{innerValue:V,fieldClass:t.computed(()=>`q-select q-field--auto-height q-select--with${e.useInput!==!0?"out":""}-input q-select--with${e.useChips!==!0?"out":""}-chips q-select--${e.multiple===!0?"multiple":"single"}`),inputRef:S,targetRef:q,hasValue:j,showPopup:Fe,floatingLabel:t.computed(()=>e.hideSelected!==!0&&j.value===!0||typeof c.value=="number"||c.value.length!==0||el(e.displayValue)),getControlChild:()=>{if(y.editable.value!==!1&&(a.value===!0||Z.value!==!0||l["no-option"]!==void 0))return g===!0?Co():bo();y.hasPopupOpen===!0&&(y.hasPopupOpen=!1)},controlEvents:{onFocusin(s){y.onControlFocusin(s)},onFocusout(s){y.onControlFocusout(s,()=>{Ie(),Re()})},onClick(s){var E;if(ae(s),g!==!0&&i.value===!0){Re(),(E=q.value)==null||E.focus();return}Fe(s)}},getControl:s=>{const E=ho(),L=s===!0||a.value!==!0||g!==!0;if(e.useInput===!0)E.push(go(s,L));else if(y.editable.value===!0){const X=L===!0?at.value:void 0;E.push(t.h("input",{ref:L===!0?q:void 0,key:"d_t",class:"q-select__focus-target",id:L===!0?y.targetUid.value:void 0,value:re.value,readonly:!0,"data-autofocus":s===!0||e.autofocus===!0||void 0,...X,onKeydown:yl,onKeyup:gl,onKeypress:pl})),L===!0&&typeof e.autocomplete=="string"&&e.autocomplete.length!==0&&E.push(t.h("input",{class:"q-select__autocomplete-input",autocomplete:e.autocomplete,tabindex:-1,onKeyup:bl}))}if(K.value!==void 0&&e.disable!==!0&&st.value.length!==0){const X=st.value.map(ee=>t.h("option",{value:ee,selected:!0}));E.push(t.h("select",{class:"hidden",name:K.value,multiple:e.multiple},X))}const N=e.useInput===!0||L!==!0?void 0:y.splitAttrs.attributes.value;return t.h("div",{class:"q-field__native row items-center",...N,...y.splitAttrs.listeners.value},E)},getInnerAppend:()=>e.loading!==!0&&d.value!==!0&&e.hideDropdownIcon!==!0?[t.h(ce,{class:"q-select__dropdown-icon"+(i.value===!0?" rotate-180":""),name:Ke.value})]:null}),io(y)}}),Ei={class:"q-pa-none"},Ti=t.defineComponent({__name:"CheckboxFilter",props:{options:{},label:{default:"Sélectionner les options"},modelValue:{default:()=>[]},scrollAreaHeight:{default:"200px"},scrollAreaWidth:{default:"250px"}},emits:["update:modelValue"],setup(e,{emit:l}){const n=e,r=l,o=t.ref(!1),i=t.ref(n.modelValue||[]),a=t.computed(()=>({height:n.scrollAreaHeight,width:n.scrollAreaWidth}));return t.watch(i,u=>{r("update:modelValue",u)}),t.watch(()=>n.modelValue,u=>{u&&(i.value=u)}),(u,c)=>(t.openBlock(),t.createElementBlock("div",Ei,[t.createVNode(uo,t.mergeProps({outlined:"",dense:"",label:n.label,class:"full-width cursor-pointer","data-cy":"checkbox-filter","model-value":null,options:[],"hide-dropdown-icon":""},u.$attrs),{append:t.withCtx(()=>[t.createVNode(ce,{name:"arrow_drop_down",class:t.normalizeClass(["cursor-pointer smooth-rotate",{"rotate-180":o.value}])},null,8,["class"])]),default:t.withCtx(()=>[t.createVNode(dl,{modelValue:o.value,"onUpdate:modelValue":c[1]||(c[1]=f=>o.value=f),anchor:"bottom left",self:"top left",offset:[0,8],"transition-show":"scale","transition-hide":"scale"},{default:t.withCtx(()=>[t.createVNode(Vr,{class:"q-pa-sm"},{default:t.withCtx(()=>[t.createVNode(Br,{style:t.normalizeStyle(a.value)},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.options,f=>(t.openBlock(),t.createBlock(hr,{key:f.value,modelValue:i.value,"onUpdate:modelValue":c[0]||(c[0]=d=>i.value=d),val:f,label:f.label,disable:f.disabled,color:"primary",class:"q-mb-sm q-ml-sm q-mr-sm","data-cy":`checkbox-option-${f.label}`},null,8,["modelValue","val","label","disable","data-cy"]))),128))]),_:1},8,["style"])]),_:1})]),_:1},8,["modelValue"])]),_:1},16,["label"])]))}}),$i=rl(Ti,[["__scopeId","data-v-42c19597"]]),Li=t.defineComponent({__name:"SelectSearch",props:{options:{default:()=>[]},fetchOptions:{},label:{default:"Selectionner un option"},modelValue:{default:null}},emits:["update:modelValue"],setup(e,{emit:l}){const n=e,r=l,o=t.ref(),i=t.ref(n.modelValue??null),a=t.ref(""),u=t.ref(n.options??[]),c=t.ref(!1),f=t.ref(!0);t.watch(()=>n.options,h=>{u.value=h??[],d()},{immediate:!0}),t.watch(()=>n.modelValue,h=>{i.value=h,d(),c.value=!1});function d(){const h=u.value.find(B=>B.value===i.value);a.value=(h==null?void 0:h.label)??""}function b(h){i.value=h,r("update:modelValue",h),d(),c.value=!1}function m(h){a.value=h,h===""&&(c.value=!0)}function v(){var h;if(f.value){f.value=!1;return}i.value!==null&&!c.value?(a.value="",c.value=!0,(h=o.value)==null||h.showPopup()):c.value&&(a.value="")}function g(){f.value=!0;const h=a.value.trim();if(h==="")c.value&&(i.value=null,r("update:modelValue",null));else{const B=u.value.find(w=>w.label.toLowerCase()===h.toLowerCase());B?(i.value=B.value,r("update:modelValue",B.value),a.value=B.label):d()}c.value=!1}function k(h,B,w){if(n.fetchOptions)n.fetchOptions(h).then(C=>{u.value=C,B(()=>{})}).catch(w).finally(()=>{});else{const C=n.options??[];u.value=C.filter(x=>x.label.toLowerCase().includes(h.toLowerCase())),B(()=>{})}}return(h,B)=>(t.openBlock(),t.createBlock(uo,t.mergeProps({ref_key:"selectRef",ref:o,"model-value":i.value,"input-value":a.value,"use-input":"","fill-input":"","hide-selected":"","input-debounce":"300",label:h.label,options:u.value,"onUpdate:modelValue":b,"onUpdate:inputValue":m,onFocus:v,onBlur:g,onFilter:k,"data-cy":"client-select",dense:"",outlined:"",class:"full-width cursor-pointer"},h.$attrs),null,16,["model-value","input-value","label","options"]))}}),so=W({name:"QAvatar",props:{...rt,fontSize:String,color:String,textColor:String,icon:String,square:Boolean,rounded:Boolean},setup(e,{slots:l}){const n=it(e),r=t.computed(()=>"q-avatar"+(e.color?` bg-${e.color}`:"")+(e.textColor?` text-${e.textColor} q-chip--colored`:"")+(e.square===!0?" q-avatar--square":e.rounded===!0?" rounded-borders":"")),o=t.computed(()=>e.fontSize?{fontSize:e.fontSize}:null);return()=>{const i=e.icon!==void 0?[t.h(ce,{name:e.icon})]:void 0;return t.h("div",{class:r.value,style:n.value},[t.h("div",{class:"q-avatar__content row flex-center overflow-hidden",style:o.value},yn(l.default,i))])}}}),Ai=W({name:"QSpace",setup(){const e=t.h("div",{class:"q-space"});return()=>e}}),Oi=W({name:"QToolbar",props:{inset:Boolean},setup(e,{slots:l}){const n=t.computed(()=>"q-toolbar row no-wrap items-center"+(e.inset===!0?" q-toolbar--inset":""));return()=>t.h("div",{class:n.value,role:"toolbar"},ue(l.default))}}),Mi=W({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:l,emit:n}){const{proxy:{$q:r}}=t.getCurrentInstance(),o=t.inject(kt,pe);if(o===pe)return console.error("QHeader needs to be child of QLayout"),pe;const i=t.ref(parseInt(e.heightHint,10)),a=t.ref(!0),u=t.computed(()=>e.reveal===!0||o.view.value.indexOf("H")!==-1||r.platform.is.ios&&o.isContainer.value===!0),c=t.computed(()=>{if(e.modelValue!==!0)return 0;if(u.value===!0)return a.value===!0?i.value:0;const w=i.value-o.scroll.value.position;return w>0?w:0}),f=t.computed(()=>e.modelValue!==!0||u.value===!0&&a.value!==!0),d=t.computed(()=>e.modelValue===!0&&f.value===!0&&e.reveal===!0),b=t.computed(()=>"q-header q-layout__section--marginal "+(u.value===!0?"fixed":"absolute")+"-top"+(e.bordered===!0?" q-header--bordered":"")+(f.value===!0?" q-header--hidden":"")+(e.modelValue!==!0?" q-layout--prevent-focus":"")),m=t.computed(()=>{const w=o.rows.value.top,C={};return w[0]==="l"&&o.left.space===!0&&(C[r.lang.rtl===!0?"right":"left"]=`${o.left.size}px`),w[2]==="r"&&o.right.space===!0&&(C[r.lang.rtl===!0?"left":"right"]=`${o.right.size}px`),C});function v(w,C){o.update("header",w,C)}function g(w,C){w.value!==C&&(w.value=C)}function k({height:w}){g(i,w),v("size",w)}function h(w){d.value===!0&&g(a,!0),n("focusin",w)}t.watch(()=>e.modelValue,w=>{v("space",w),g(a,!0),o.animate()}),t.watch(c,w=>{v("offset",w)}),t.watch(()=>e.reveal,w=>{w===!1&&g(a,e.modelValue)}),t.watch(a,w=>{o.animate(),n("reveal",w)}),t.watch(o.scroll,w=>{e.reveal===!0&&g(a,w.direction==="up"||w.position<=e.revealOffset||w.position-w.inflectionPoint<100)});const B={};return o.instances.header=B,e.modelValue===!0&&v("size",i.value),v("space",e.modelValue),v("offset",c.value),t.onBeforeUnmount(()=>{o.instances.header===B&&(o.instances.header=void 0,v("size",0),v("offset",0),v("space",!1))}),()=>{const w=pn(l.default,[]);return e.elevated===!0&&w.push(t.h("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),w.push(t.h(We,{debounce:0,onResize:k})),t.h("header",{class:b.value,style:m.value,onFocusin:h},w)}}}),Pi=["src","alt"],Ri=t.defineComponent({__name:"SelfeeHeader",props:{logoSrc:{},logoAlt:{},logoTo:{}},setup(e){const l=e,n=l.logoAlt??"Logo",r=l.logoTo??"/";return(o,i)=>{const a=t.resolveComponent("router-link");return t.openBlock(),t.createBlock(Mi,{elevated:""},{default:t.withCtx(()=>[t.createVNode(Oi,null,{default:t.withCtx(()=>[t.createVNode(a,{to:t.unref(r),class:"q-mr-md"},{default:t.withCtx(()=>[t.createVNode(so,{class:"logo"},{default:t.withCtx(()=>[t.createElementVNode("img",{src:o.logoSrc,alt:t.unref(n)},null,8,Pi)]),_:1})]),_:1},8,["to"]),t.createVNode(Ai),t.renderSlot(o.$slots,"user-avatar",{},void 0,!0)]),_:3})]),_:3})}}}),Fi=rl(Ri,[["__scopeId","data-v-67697ca7"]]),Ii=W({name:"QFooter",props:{modelValue:{type:Boolean,default:!0},reveal:Boolean,bordered:Boolean,elevated:Boolean,heightHint:{type:[String,Number],default:50}},emits:["reveal","focusin"],setup(e,{slots:l,emit:n}){const{proxy:{$q:r}}=t.getCurrentInstance(),o=t.inject(kt,pe);if(o===pe)return console.error("QFooter needs to be child of QLayout"),pe;const i=t.ref(parseInt(e.heightHint,10)),a=t.ref(!0),u=t.ref(Ce.value===!0||o.isContainer.value===!0?0:window.innerHeight),c=t.computed(()=>e.reveal===!0||o.view.value.indexOf("F")!==-1||r.platform.is.ios&&o.isContainer.value===!0),f=t.computed(()=>o.isContainer.value===!0?o.containerHeight.value:u.value),d=t.computed(()=>{if(e.modelValue!==!0)return 0;if(c.value===!0)return a.value===!0?i.value:0;const S=o.scroll.value.position+f.value+i.value-o.height.value;return S>0?S:0}),b=t.computed(()=>e.modelValue!==!0||c.value===!0&&a.value!==!0),m=t.computed(()=>e.modelValue===!0&&b.value===!0&&e.reveal===!0),v=t.computed(()=>"q-footer q-layout__section--marginal "+(c.value===!0?"fixed":"absolute")+"-bottom"+(e.bordered===!0?" q-footer--bordered":"")+(b.value===!0?" q-footer--hidden":"")+(e.modelValue!==!0?" q-layout--prevent-focus"+(c.value!==!0?" hidden":""):"")),g=t.computed(()=>{const S=o.rows.value.bottom,q={};return S[0]==="l"&&o.left.space===!0&&(q[r.lang.rtl===!0?"right":"left"]=`${o.left.size}px`),S[2]==="r"&&o.right.space===!0&&(q[r.lang.rtl===!0?"left":"right"]=`${o.right.size}px`),q});function k(S,q){o.update("footer",S,q)}function h(S,q){S.value!==q&&(S.value=q)}function B({height:S}){h(i,S),k("size",S)}function w(){if(e.reveal!==!0)return;const{direction:S,position:q,inflectionPoint:$}=o.scroll.value;h(a,S==="up"||q-$<100||o.height.value-f.value-q-i.value<300)}function C(S){m.value===!0&&h(a,!0),n("focusin",S)}t.watch(()=>e.modelValue,S=>{k("space",S),h(a,!0),o.animate()}),t.watch(d,S=>{k("offset",S)}),t.watch(()=>e.reveal,S=>{S===!1&&h(a,e.modelValue)}),t.watch(a,S=>{o.animate(),n("reveal",S)}),t.watch([i,o.scroll,o.height],w),t.watch(()=>r.screen.height,S=>{o.isContainer.value!==!0&&h(u,S)});const x={};return o.instances.footer=x,e.modelValue===!0&&k("size",i.value),k("space",e.modelValue),k("offset",d.value),t.onBeforeUnmount(()=>{o.instances.footer===x&&(o.instances.footer=void 0,k("size",0),k("offset",0),k("space",!1))}),()=>{const S=he(l.default,[t.h(We,{debounce:0,onResize:B})]);return e.elevated===!0&&S.push(t.h("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),t.h("footer",{class:v.value,style:g.value,onFocusin:C},S)}}}),Hi={class:"row justify-between"},Di={class:"col-3 q-py-md flex justify-center"},ji={class:"col-3 q-py-md flex justify-center"},Ni={class:"col-3 q-py-md flex justify-center"},Qi=t.defineComponent({__name:"SelfeeFooter",props:{frontVersion:{},backVersion:{},platform:{}},setup(e){return(l,n)=>(t.openBlock(),t.createBlock(Ii,{elevated:""},{default:t.withCtx(()=>[t.createElementVNode("div",Hi,[t.createElementVNode("div",Di,"Front: "+t.toDisplayString(l.frontVersion),1),t.createElementVNode("div",ji,"Back: "+t.toDisplayString(l.backVersion),1),t.createElementVNode("div",Ni,"Platform: "+t.toDisplayString(l.platform),1)])]),_:1}))}}),Wi={true:"inset",item:"item-inset","item-thumbnail":"item-thumbnail-inset"},Nt={xs:2,sm:4,md:8,lg:16,xl:24},Ui=W({name:"QSeparator",props:{...ye,spaced:[Boolean,String],inset:[Boolean,String],vertical:Boolean,color:String,size:String},setup(e){const l=t.getCurrentInstance(),n=we(e,l.proxy.$q),r=t.computed(()=>e.vertical===!0?"vertical":"horizontal"),o=t.computed(()=>` q-separator--${r.value}`),i=t.computed(()=>e.inset!==!1?`${o.value}-${Wi[e.inset]}`:""),a=t.computed(()=>`q-separator${o.value}${i.value}`+(e.color!==void 0?` bg-${e.color}`:"")+(n.value===!0?" q-separator--dark":"")),u=t.computed(()=>{const c={};if(e.size!==void 0&&(c[e.vertical===!0?"width":"height"]=e.size),e.spaced!==!1){const f=e.spaced===!0?`${Nt.md}px`:e.spaced in Nt?`${Nt[e.spaced]}px`:e.spaced,d=e.vertical===!0?["Left","Right"]:["Top","Bottom"];c[`margin${d[0]}`]=c[`margin${d[1]}`]=f}return c});return()=>t.h("hr",{class:a.value,style:u.value,"aria-orientation":r.value})}}),Ki=["ul","ol"],Xi=W({name:"QList",props:{...ye,bordered:Boolean,dense:Boolean,separator:Boolean,padding:Boolean,tag:{type:String,default:"div"}},setup(e,{slots:l}){const n=t.getCurrentInstance(),r=we(e,n.proxy.$q),o=t.computed(()=>Ki.includes(e.tag)?null:"list"),i=t.computed(()=>"q-list"+(e.bordered===!0?" q-list--bordered":"")+(e.dense===!0?" q-list--dense":"")+(e.separator===!0?" q-list--separator":"")+(r.value===!0?" q-list--dark":"")+(e.padding===!0?" q-list--padding":""));return()=>t.h(e.tag,{class:i.value,role:o.value},ue(l.default))}}),Yi={class:"text-h6 text-primary"},Gi=t.defineComponent({__name:"UserAvatar",props:{username:{},onLogout:{type:Function},logoutLabel:{}},setup(e){const l=e,n=t.computed(()=>{var o;return((o=l.username)==null?void 0:o.charAt(0).toUpperCase())??""}),r=l.logoutLabel??"Logout";return(o,i)=>(t.openBlock(),t.createElementBlock("div",null,[t.createVNode(so,{class:"cursor-pointer",size:"40px",color:"white","data-cy":"cy-avatar"},{default:t.withCtx(()=>[t.createElementVNode("span",Yi,t.toDisplayString(n.value),1),t.createVNode(dl,{"transition-show":"flip-right","transition-hide":"flip-left"},{default:t.withCtx(()=>[t.createVNode(Xi,null,{default:t.withCtx(()=>[t.createVNode(tl,null,{default:t.withCtx(()=>[t.createVNode(ll,null,{default:t.withCtx(()=>[t.createElementVNode("div",null,t.toDisplayString(o.username),1)]),_:1})]),_:1}),t.createVNode(Ui),t.createVNode(tl,{clickable:"",onClick:o.onLogout,"data-cy":"cy-logout-button"},{default:t.withCtx(()=>[t.createVNode(ll,null,{default:t.withCtx(()=>[t.createElementVNode("div",null,t.toDisplayString(t.unref(r)),1)]),_:1})]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1})]))}}),Zi=W({name:"QPageContainer",setup(e,{slots:l}){const{proxy:{$q:n}}=t.getCurrentInstance(),r=t.inject(kt,pe);if(r===pe)return console.error("QPageContainer needs to be child of QLayout"),pe;t.provide(ti,!0);const o=t.computed(()=>{const i={};return r.header.space===!0&&(i.paddingTop=`${r.header.size}px`),r.right.space===!0&&(i[`padding${n.lang.rtl===!0?"Left":"Right"}`]=`${r.right.size}px`),r.footer.space===!0&&(i.paddingBottom=`${r.footer.size}px`),r.left.space===!0&&(i[`padding${n.lang.rtl===!0?"Right":"Left"}`]=`${r.left.size}px`),i});return()=>t.h("div",{class:"q-page-container",style:o.value},ue(l.default))}}),Ji=W({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:l,emit:n}){const{proxy:{$q:r}}=t.getCurrentInstance(),o=t.ref(null),i=t.ref(r.screen.height),a=t.ref(e.container===!0?0:r.screen.width),u=t.ref({position:0,direction:"down",inflectionPoint:0}),c=t.ref(0),f=t.ref(Ce.value===!0?0:pt()),d=t.computed(()=>"q-layout q-layout--"+(e.container===!0?"containerized":"standard")),b=t.computed(()=>e.container===!1?{minHeight:r.screen.height+"px"}:null),m=t.computed(()=>f.value!==0?{[r.lang.rtl===!0?"left":"right"]:`${f.value}px`}:null),v=t.computed(()=>f.value!==0?{[r.lang.rtl===!0?"right":"left"]:0,[r.lang.rtl===!0?"left":"right"]:`-${f.value}px`,width:`calc(100% + ${f.value}px)`}:null);function g(x){if(e.container===!0||document.qScrollPrevented!==!0){const S={position:x.position.top,direction:x.direction,directionChanged:x.directionChanged,inflectionPoint:x.inflectionPoint.top,delta:x.delta.top};u.value=S,e.onScroll!==void 0&&n("scroll",S)}}function k(x){const{height:S,width:q}=x;let $=!1;i.value!==S&&($=!0,i.value=S,e.onScrollHeight!==void 0&&n("scrollHeight",S),B()),a.value!==q&&($=!0,a.value=q),$===!0&&e.onResize!==void 0&&n("resize",x)}function h({height:x}){c.value!==x&&(c.value=x,B())}function B(){if(e.container===!0){const x=i.value>c.value?pt():0;f.value!==x&&(f.value=x)}}let w=null;const C={instances:{},view:t.computed(()=>e.view),isContainer:t.computed(()=>e.container),rootRef:o,height:i,containerHeight:c,scrollbarWidth:f,totalWidth:t.computed(()=>a.value+f.value),rows:t.computed(()=>{const x=e.view.toLowerCase().split(" ");return{top:x[0].split(""),middle:x[1].split(""),bottom:x[2].split("")}}),header:t.reactive({size:0,offset:0,space:!1}),right:t.reactive({size:300,offset:0,space:!1}),footer:t.reactive({size:0,offset:0,space:!1}),left:t.reactive({size:300,offset:0,space:!1}),scroll:u,animate(){w!==null?clearTimeout(w):document.body.classList.add("q-body--layout-animate"),w=setTimeout(()=>{w=null,document.body.classList.remove("q-body--layout-animate")},155)},update(x,S,q){C[x][S]=q}};if(t.provide(kt,C),pt()>0){let x=function(){$=null,P.classList.remove("hide-scrollbar")},S=function(){if($===null){if(P.scrollHeight>r.screen.height)return;P.classList.add("hide-scrollbar")}else clearTimeout($);$=setTimeout(x,300)},q=function(I){$!==null&&I==="remove"&&(clearTimeout($),x()),window[`${I}EventListener`]("resize",S)},$=null;const P=document.body;t.watch(()=>e.container!==!0?"add":"remove",q),e.container!==!0&&q("add"),t.onUnmounted(()=>{q("remove")})}return()=>{const x=he(l.default,[t.h(Dn,{onScroll:g}),t.h(We,{onResize:k})]),S=t.h("div",{class:d.value,style:b.value,ref:e.container===!0?void 0:o,tabindex:-1},x);return e.container===!0?t.h("div",{class:"q-layout-container overflow-hidden",ref:o},[t.h(We,{onResize:h}),t.h("div",{class:"absolute-full",style:m.value},[t.h("div",{class:"scroll",style:v.value},[S])])]):S}}}),ea=t.defineComponent({name:"Layout",__name:"Layout",props:{view:{default:"HHh Lpr Fff"},layoutClass:{default:"bg-dark"},pageContainerClass:{default:"q-pa-sm"}},setup(e){return(l,n)=>(t.openBlock(),t.createBlock(Ji,{view:l.view,class:t.normalizeClass(l.layoutClass)},{default:t.withCtx(()=>[t.renderSlot(l.$slots,"header"),t.createVNode(Zi,{class:t.normalizeClass(l.pageContainerClass)},{default:t.withCtx(()=>[t.renderSlot(l.$slots,"default")]),_:3},8,["class"]),t.renderSlot(l.$slots,"footer")]),_:3},8,["view","class"]))}});function ta(e){var l,n;return{entity:e.entity,dataCy:e.dataCy,defaultLabel:e.defaultLabel,routeName:e.routeName,shouldRender:e.customShouldRender||(({store:r})=>e.storeField?!!r[e.storeField]:!0),getLabel:e.getLabel||(e.labelField?({store:r})=>{var o;return e.storeField&&((o=r[e.storeField])==null?void 0:o[e.labelField])||e.defaultLabel}:void 0),getColor:e.customGetColor||(({store:r})=>e.storeField&&r[e.storeField]?"primary":"dark"),getRouteParams:e.routeParamKey&&e.routeParamField?({store:r})=>{var o;return{[e.routeParamKey]:e.storeField&&((o=r[e.storeField])==null?void 0:o[e.routeParamField])}}:void 0,clearActions:[...((l=e.clearMethods)==null?void 0:l.map(r=>({store:o})=>{var i;return(i=o[r])==null?void 0:i.call(o)}))||[],...((n=e.navActions)==null?void 0:n.map(r=>({navStore:o})=>r(o)))||[]]}}exports.Breadcrumbs=jo;exports.CheckboxFilter=$i;exports.Layout=ea;exports.NavButton=ir;exports.SelectSearch=Li;exports.SelfeeFooter=Qi;exports.SelfeeHeader=Fi;exports.UserAvatar=Gi;exports.createBreadcrumb=ta;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),Yn={xs:18,sm:24,md:32,lg:38,xl:46},Nt={size:String};function jt(e,n=Yn){return t.computed(()=>e.size!==void 0?{fontSize:e.size in n?`${n[e.size]}px`:e.size}:null)}function Et(e,n,l,a){return Object.defineProperty(e,n,{get:l,set:a,enumerable:!0}),e}function ae(e){return t.markRaw(t.defineComponent(e))}function al(e){return t.markRaw(e)}const Sa=(e,n)=>{const l=t.reactive(e);for(const a in e)Et(n,a,()=>l[a],o=>{l[a]=o});return n};function xe(e,n){return e!==void 0&&e()||n}function po(e,n){if(e!==void 0){const l=e();if(l!=null)return l.slice()}return n}function Ae(e,n){return e!==void 0?n.concat(e()):n}function yo(e,n){return e===void 0?n:n!==void 0?n.concat(e()):e()}function xa(e,n,l,a,o,r){n.key=a+o;const u=t.h(e,n,l);return o===!0?t.withDirectives(u,r()):u}const wl="0 0 24 24",qn=e=>e,Mn=e=>`ionicons ${e}`,wo={"mdi-":e=>`mdi ${e}`,"icon-":qn,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":Mn,"ion-ios":Mn,"ion-logo":Mn,"iconfont ":qn,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`,"i-":qn},So={o_:"-outlined",r_:"-round",s_:"-sharp"},xo={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},ka=new RegExp("^("+Object.keys(wo).join("|")+")"),Ca=new RegExp("^("+Object.keys(So).join("|")+")"),Sl=new RegExp("^("+Object.keys(xo).join("|")+")"),_a=/^[Mm]\s?[-+]?\.?\d/,qa=/^img:/,Ma=/^svguse:/,Va=/^ion-/,Ea=/^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,qe=ae({name:"QIcon",props:{...Nt,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:n}){const{proxy:{$q:l}}=t.getCurrentInstance(),a=jt(e),o=t.computed(()=>"q-icon"+(e.left===!0?" on-left":"")+(e.right===!0?" on-right":"")+(e.color!==void 0?` text-${e.color}`:"")),r=t.computed(()=>{let u,i=e.name;if(i==="none"||!i)return{none:!0};if(l.iconMapFn!==null){const s=l.iconMapFn(i);if(s!==void 0)if(s.icon!==void 0){if(i=s.icon,i==="none"||!i)return{none:!0}}else return{cls:s.cls,content:s.content!==void 0?s.content:" "}}if(_a.test(i)===!0){const[s,h=wl]=i.split("|");return{svg:!0,viewBox:h,nodes:s.split("&&").map(p=>{const[m,S,E]=p.split("@@");return t.h("path",{style:S,d:m,transform:E})})}}if(qa.test(i)===!0)return{img:!0,src:i.substring(4)};if(Ma.test(i)===!0){const[s,h=wl]=i.split("|");return{svguse:!0,src:s.substring(7),viewBox:h}}let c=" ";const f=i.match(ka);if(f!==null)u=wo[f[1]](i);else if(Ea.test(i)===!0)u=i;else if(Va.test(i)===!0)u=`ionicons ion-${l.platform.is.ios===!0?"ios":"md"}${i.substring(3)}`;else if(Sl.test(i)===!0){u="notranslate material-symbols";const s=i.match(Sl);s!==null&&(i=i.substring(6),u+=xo[s[1]]),c=i}else{u="notranslate material-icons";const s=i.match(Ca);s!==null&&(i=i.substring(2),u+=So[s[1]]),c=i}return{cls:u,content:c}});return()=>{const u={class:o.value,style:a.value,"aria-hidden":"true"};return r.value.none===!0?t.h(e.tag,u,xe(n.default)):r.value.img===!0?t.h(e.tag,u,Ae(n.default,[t.h("img",{src:r.value.src})])):r.value.svg===!0?t.h(e.tag,u,Ae(n.default,[t.h("svg",{viewBox:r.value.viewBox||"0 0 24 24"},r.value.nodes)])):r.value.svguse===!0?t.h(e.tag,u,Ae(n.default,[t.h("svg",{viewBox:r.value.viewBox},[t.h("use",{"xlink:href":r.value.src})])])):(r.value.cls!==void 0&&(u.class+=" "+r.value.cls),t.h(e.tag,u,Ae(n.default,[r.value.content])))}}});function on(e){if(Object(e.$parent)===e.$parent)return e.$parent;let{parent:n}=e.$;for(;Object(n)===n;){if(Object(n.proxy)===n.proxy)return n.proxy;n=n.parent}}function ko(e,n){typeof n.type=="symbol"?Array.isArray(n.children)===!0&&n.children.forEach(l=>{ko(e,l)}):e.add(n)}function za(e){const n=new Set;return e.forEach(l=>{ko(n,l)}),Array.from(n)}function Co(e){return e.appContext.config.globalProperties.$router!==void 0}function _o(e){return e.isUnmounted===!0||e.isDeactivated===!0}function xl(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function kl(e,n){return(e.aliasOf||e)===(n.aliasOf||n)}function Ta(e,n){for(const l in n){const a=n[l],o=e[l];if(typeof a=="string"){if(a!==o)return!1}else if(Array.isArray(o)===!1||o.length!==a.length||a.some((r,u)=>r!==o[u]))return!1}return!0}function Cl(e,n){return Array.isArray(n)===!0?e.length===n.length&&e.every((l,a)=>l===n[a]):e.length===1&&e[0]===n}function Ba(e,n){return Array.isArray(e)===!0?Cl(e,n):Array.isArray(n)===!0?Cl(n,e):e===n}function Da(e,n){if(Object.keys(e).length!==Object.keys(n).length)return!1;for(const l in e)if(Ba(e[l],n[l])===!1)return!1;return!0}const qo={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},Mo={...qo,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function rl({fallbackTag:e,useDisableForRouterLinkProps:n=!0}={}){const l=t.getCurrentInstance(),{props:a,proxy:o,emit:r}=l,u=Co(l),i=t.computed(()=>a.disable!==!0&&a.href!==void 0),c=n===!0?t.computed(()=>u===!0&&a.disable!==!0&&i.value!==!0&&a.to!==void 0&&a.to!==null&&a.to!==""):t.computed(()=>u===!0&&i.value!==!0&&a.to!==void 0&&a.to!==null&&a.to!==""),f=t.computed(()=>c.value===!0?M(a.to):null),s=t.computed(()=>f.value!==null),h=t.computed(()=>i.value===!0||s.value===!0),p=t.computed(()=>a.type==="a"||h.value===!0?"a":a.tag||e||"div"),m=t.computed(()=>i.value===!0?{href:a.href,target:a.target}:s.value===!0?{href:f.value.href,target:a.target}:{}),S=t.computed(()=>{if(s.value===!1)return-1;const{matched:q}=f.value,{length:D}=q,A=q[D-1];if(A===void 0)return-1;const K=o.$route.matched;if(K.length===0)return-1;const V=K.findIndex(kl.bind(null,A));if(V!==-1)return V;const z=xl(q[D-2]);return D>1&&xl(A)===z&&K[K.length-1].path!==z?K.findIndex(kl.bind(null,q[D-2])):V}),E=t.computed(()=>s.value===!0&&S.value!==-1&&Ta(o.$route.params,f.value.params)),b=t.computed(()=>E.value===!0&&S.value===o.$route.matched.length-1&&Da(o.$route.params,f.value.params)),H=t.computed(()=>s.value===!0?b.value===!0?` ${a.exactActiveClass} ${a.activeClass}`:a.exact===!0?"":E.value===!0?` ${a.activeClass}`:"":"");function M(q){try{return o.$router.resolve(q)}catch{}return null}function B(q,{returnRouterError:D,to:A=a.to,replace:K=a.replace}={}){if(a.disable===!0)return q.preventDefault(),Promise.resolve(!1);if(q.metaKey||q.altKey||q.ctrlKey||q.shiftKey||q.button!==void 0&&q.button!==0||a.target==="_blank")return Promise.resolve(!1);q.preventDefault();const V=o.$router[K===!0?"replace":"push"](A);return D===!0?V:V.then(()=>{}).catch(()=>{})}function k(q){if(s.value===!0){const D=A=>B(q,A);r("click",q,D),q.defaultPrevented!==!0&&D()}else r("click",q)}return{hasRouterLink:s,hasHrefLink:i,hasLink:h,linkTag:p,resolvedLink:f,linkIsActive:E,linkIsExactActive:b,linkClass:H,linkAttrs:m,getLink:M,navigateToRouterLink:B,navigateOnClick:k}}const $a=ae({name:"QBreadcrumbsEl",props:{...Mo,label:String,icon:String,tag:{type:String,default:"span"}},emits:["click"],setup(e,{slots:n}){const{linkTag:l,linkAttrs:a,linkClass:o,navigateOnClick:r}=rl(),u=t.computed(()=>({class:"q-breadcrumbs__el q-link flex inline items-center relative-position "+(e.disable!==!0?"q-link--focusable"+o.value:"q-breadcrumbs__el--disable"),...a.value,onClick:r})),i=t.computed(()=>"q-breadcrumbs__el-icon"+(e.label!==void 0?" q-breadcrumbs__el-icon--with-label":""));return()=>{const c=[];return e.icon!==void 0&&c.push(t.h(qe,{class:i.value,name:e.icon})),e.label!==void 0&&c.push(e.label),t.h(l.value,{...u.value},Ae(n.default,c))}}}),Vo={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},Oa=Object.keys(Vo),Eo={align:{type:String,validator:e=>Oa.includes(e)}};function zo(e){return t.computed(()=>{const n=e.align===void 0?e.vertical===!0?"stretch":"left":e.align;return`${e.vertical===!0?"items":"justify"}-${Vo[n]}`})}const Aa=["",!0],La=ae({name:"QBreadcrumbs",props:{...Eo,separator:{type:String,default:"/"},separatorColor:String,activeColor:{type:String,default:"primary"},gutter:{type:String,validator:e=>["none","xs","sm","md","lg","xl"].includes(e),default:"sm"}},setup(e,{slots:n}){const l=zo(e),a=t.computed(()=>`flex items-center ${l.value}${e.gutter==="none"?"":` q-gutter-${e.gutter}`}`),o=t.computed(()=>e.separatorColor?` text-${e.separatorColor}`:""),r=t.computed(()=>` text-${e.activeColor}`);return()=>{if(n.default===void 0)return;const u=za(xe(n.default));if(u.length===0)return;let i=1;const c=[],f=u.filter(h=>{var p;return((p=h.type)==null?void 0:p.name)==="QBreadcrumbsEl"}).length,s=n.separator!==void 0?n.separator:()=>e.separator;return u.forEach(h=>{var p;if(((p=h.type)==null?void 0:p.name)==="QBreadcrumbsEl"){const m=i<f,S=h.props!==null&&Aa.includes(h.props.disable),E=(m===!0?"":" q-breadcrumbs--last")+(S!==!0&&m===!0?r.value:"");i++,c.push(t.h("div",{class:`flex items-center${E}`},[h])),m===!0&&c.push(t.h("div",{class:"q-breadcrumbs__separator"+o.value},s()))}else c.push(h)}),t.h("div",{class:"q-breadcrumbs"},[t.h("div",{class:a.value},c)])}}}),Ra=t.defineComponent({inheritAttrs:!1,__name:"Breadcrumbs",props:{activeColor:{},separatorIcon:{},separatorSize:{},separatorColor:{},store:{},navStore:{},route:{},router:{},breadcrumbConfig:{},separator:{},gutter:{},align:{}},setup(e){const n=e,l=t.useAttrs(),a=t.computed(()=>{const{activeColor:p,separatorIcon:m,separatorSize:S,separatorColor:E,...b}=l;return b}),o=p=>({"data-cy":p.dataCy,class:"cursor-pointer text-h5",color:p.color}),r=t.computed(()=>n.activeColor||"primary"),u=t.computed(()=>n.separatorIcon||"chevron_right"),i=t.computed(()=>n.separatorSize||"2em"),c=t.computed(()=>n.separatorColor||"primary"),f=t.computed(()=>({store:n.store,route:n.route,navStore:n.navStore||{}})),s=t.computed(()=>{const p=[];return n.breadcrumbConfig.forEach(m=>{if(!m.shouldRender(f.value))return;const S=m.getLabel?m.getLabel(f.value):m.defaultLabel,E=m.getColor?m.getColor(f.value):"dark",b={name:m.routeName,...m.getRouteParams&&{params:m.getRouteParams(f.value)}},H=m.clearActions?m.clearActions.map(M=>()=>M(f.value)):[];p.push({label:S,dataCy:m.dataCy,color:E,route:b,clearActions:H})}),p}),h=p=>{p.clearActions&&p.clearActions.forEach(m=>m()),n.router.push(p.route)};return(p,m)=>(t.openBlock(),t.createBlock(La,t.mergeProps({"active-color":r.value,class:"text-brown"},a.value),{separator:t.withCtx(()=>[t.createVNode(qe,{size:i.value,name:u.value,color:c.value},null,8,["size","name","color"])]),default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.value,(S,E)=>(t.openBlock(),t.createBlock($a,t.mergeProps({key:E},{ref_for:!0},o(S),{label:S.label,onClick:b=>h(S)}),null,16,["label","onClick"]))),128))]),_:1},16,["active-color"]))}}),Ha={size:{type:[String,Number],default:"1em"},color:String};function Fa(e){return{cSize:t.computed(()=>e.size in Yn?`${Yn[e.size]}px`:e.size),classes:t.computed(()=>"q-spinner"+(e.color?` text-${e.color}`:""))}}const To=ae({name:"QSpinner",props:{...Ha,thickness:{type:Number,default:5}},setup(e){const{cSize:n,classes:l}=Fa(e);return()=>t.h("svg",{class:l.value+" q-spinner-mat",width:n.value,height:n.value,viewBox:"25 25 50 50"},[t.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":e.thickness,"stroke-miterlimit":"10"})])}});function Qn(e,n){const l=e.style;for(const a in n)l[a]=n[a]}function Pa(e){if(e==null)return;if(typeof e=="string")try{return document.querySelector(e)||void 0}catch{return}const n=t.unref(e);if(n)return n.$el||n}function Bo(e,n){if(e==null||e.contains(n)===!0)return!0;for(let l=e.nextElementSibling;l!==null;l=l.nextElementSibling)if(l.contains(n))return!0;return!1}const pe={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const e=Object.defineProperty({},"passive",{get(){Object.assign(pe,{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 vn(){}function Ia(e){return e.button===0}function Ft(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 Na(e){if(e.path)return e.path;if(e.composedPath)return e.composedPath();const n=[];let l=e.target;for(;l;){if(n.push(l),l.tagName==="HTML")return n.push(document),n.push(window),n;l=l.parentElement}}function Ee(e){e.stopPropagation()}function _e(e){e.cancelable!==!1&&e.preventDefault()}function ge(e){e.cancelable!==!1&&e.preventDefault(),e.stopPropagation()}function Vn(e,n){if(e===void 0||n===!0&&e.__dragPrevented===!0)return;const l=n===!0?a=>{a.__dragPrevented=!0,a.addEventListener("dragstart",_e,pe.notPassiveCapture)}:a=>{delete a.__dragPrevented,a.removeEventListener("dragstart",_e,pe.notPassiveCapture)};e.querySelectorAll("a, img").forEach(l)}function ft(e,n,l){const a=`__q_${n}_evt`;e[a]=e[a]!==void 0?e[a].concat(l):l,l.forEach(o=>{o[0].addEventListener(o[1],e[o[2]],pe[o[3]])})}function Ht(e,n){const l=`__q_${n}_evt`;e[l]!==void 0&&(e[l].forEach(a=>{a[0].removeEventListener(a[1],e[a[2]],pe[a[3]])}),e[l]=void 0)}function il(e){return e!==Object(e)||e.isComposing===!0||e.qKeyEvent===!0}function tt(e,n){return il(e)===!0?!1:[].concat(n).includes(e.keyCode)}function ja(e,n=250){let l=!1,a;return function(){return l===!1&&(l=!0,setTimeout(()=>{l=!1},n),a=e.apply(this,arguments)),a}}function _l(e,n,l,a){l.modifiers.stop===!0&&Ee(e);const o=l.modifiers.color;let r=l.modifiers.center;r=r===!0||a===!0;const u=document.createElement("span"),i=document.createElement("span"),c=Ft(e),{left:f,top:s,width:h,height:p}=n.getBoundingClientRect(),m=Math.sqrt(h*h+p*p),S=m/2,E=`${(h-m)/2}px`,b=r?E:`${c.left-f-S}px`,H=`${(p-m)/2}px`,M=r?H:`${c.top-s-S}px`;i.className="q-ripple__inner",Qn(i,{height:`${m}px`,width:`${m}px`,transform:`translate3d(${b},${M},0) scale3d(.2,.2,1)`,opacity:0}),u.className=`q-ripple${o?" text-"+o:""}`,u.setAttribute("dir","ltr"),u.appendChild(i),n.appendChild(u);const B=()=>{u.remove(),clearTimeout(k)};l.abort.push(B);let k=setTimeout(()=>{i.classList.add("q-ripple__inner--enter"),i.style.transform=`translate3d(${E},${H},0) scale3d(1,1,1)`,i.style.opacity=.2,k=setTimeout(()=>{i.classList.remove("q-ripple__inner--enter"),i.classList.add("q-ripple__inner--leave"),i.style.opacity=0,k=setTimeout(()=>{u.remove(),l.abort.splice(l.abort.indexOf(B),1)},275)},250)},50)}function ql(e,{modifiers:n,value:l,arg:a}){const o=Object.assign({},e.cfg.ripple,n,l);e.modifiers={early:o.early===!0,stop:o.stop===!0,center:o.center===!0,color:o.color||a,keyCodes:[].concat(o.keyCodes||13)}}const Do=al({name:"ripple",beforeMount(e,n){const l=n.instance.$.appContext.config.globalProperties.$q.config||{};if(l.ripple===!1)return;const a={cfg:l,enabled:n.value!==!1,modifiers:{},abort:[],start(o){a.enabled===!0&&o.qSkipRipple!==!0&&o.type===(a.modifiers.early===!0?"pointerdown":"click")&&_l(o,e,a,o.qKeyEvent===!0)},keystart:ja(o=>{a.enabled===!0&&o.qSkipRipple!==!0&&tt(o,a.modifiers.keyCodes)===!0&&o.type===`key${a.modifiers.early===!0?"down":"up"}`&&_l(o,e,a,!0)},300)};ql(a,n),e.__qripple=a,ft(a,"main",[[e,"pointerdown","start","passive"],[e,"click","start","passive"],[e,"keydown","keystart","passive"],[e,"keyup","keystart","passive"]])},updated(e,n){if(n.oldValue!==n.value){const l=e.__qripple;l!==void 0&&(l.enabled=n.value!==!1,l.enabled===!0&&Object(n.value)===n.value&&ql(l,n))}},beforeUnmount(e){const n=e.__qripple;n!==void 0&&(n.abort.forEach(l=>{l()}),Ht(n,"main"),delete e._qripple)}}),Ml={none:0,xs:4,sm:8,md:16,lg:24,xl:32},Ya={xs:8,sm:10,md:14,lg:20,xl:24},Qa=["button","submit","reset"],Ua=/[^\s]\/[^\s]/,Wa=["flat","outline","push","unelevated"];function Ka(e,n){return e.flat===!0?"flat":e.outline===!0?"outline":e.push===!0?"push":e.unelevated===!0?"unelevated":n}const Xa={...Nt,...qo,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...Wa.reduce((e,n)=>(e[n]=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:{...Eo.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},Za={...Xa,round:Boolean};function Ja(e){const n=jt(e,Ya),l=zo(e),{hasRouterLink:a,hasLink:o,linkTag:r,linkAttrs:u,navigateOnClick:i}=rl({fallbackTag:"button"}),c=t.computed(()=>{const b=e.fab===!1&&e.fabMini===!1?n.value:{};return e.padding!==void 0?Object.assign({},b,{padding:e.padding.split(/\s+/).map(H=>H in Ml?Ml[H]+"px":H).join(" "),minWidth:"0",minHeight:"0"}):b}),f=t.computed(()=>e.rounded===!0||e.fab===!0||e.fabMini===!0),s=t.computed(()=>e.disable!==!0&&e.loading!==!0),h=t.computed(()=>s.value===!0?e.tabindex||0:-1),p=t.computed(()=>Ka(e,"standard")),m=t.computed(()=>{const b={tabindex:h.value};return o.value===!0?Object.assign(b,u.value):Qa.includes(e.type)===!0&&(b.type=e.type),r.value==="a"?(e.disable===!0?b["aria-disabled"]="true":b.href===void 0&&(b.role="button"),a.value!==!0&&Ua.test(e.type)===!0&&(b.type=e.type)):e.disable===!0&&(b.disabled="",b["aria-disabled"]="true"),e.loading===!0&&e.percentage!==void 0&&Object.assign(b,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e.percentage}),b}),S=t.computed(()=>{let b;e.color!==void 0?e.flat===!0||e.outline===!0?b=`text-${e.textColor||e.color}`:b=`bg-${e.color} text-${e.textColor||"white"}`:e.textColor&&(b=`text-${e.textColor}`);const H=e.round===!0?"round":`rectangle${f.value===!0?" q-btn--rounded":e.square===!0?" q-btn--square":""}`;return`q-btn--${p.value} q-btn--${H}`+(b!==void 0?" "+b:"")+(s.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":"")}),E=t.computed(()=>l.value+(e.stack===!0?" column":" row")+(e.noWrap===!0?" no-wrap text-no-wrap":"")+(e.loading===!0?" q-btn__content--hidden":""));return{classes:S,style:c,innerClasses:E,attributes:m,hasLink:o,linkTag:r,navigateOnClick:i,isActionable:s}}const{passiveCapture:Be}=pe;let wt=null,St=null,xt=null;const De=ae({name:"QBtn",props:{...Za,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(e,{slots:n,emit:l}){const{proxy:a}=t.getCurrentInstance(),{classes:o,style:r,innerClasses:u,attributes:i,hasLink:c,linkTag:f,navigateOnClick:s,isActionable:h}=Ja(e),p=t.ref(null),m=t.ref(null);let S=null,E,b=null;const H=t.computed(()=>e.label!==void 0&&e.label!==null&&e.label!==""),M=t.computed(()=>e.disable===!0||e.ripple===!1?!1:{keyCodes:c.value===!0?[13,32]:[13],...e.ripple===!0?{}:e.ripple}),B=t.computed(()=>({center:e.round})),k=t.computed(()=>{const y=Math.max(0,Math.min(100,e.percentage));return y>0?{transition:"transform 0.6s",transform:`translateX(${y-100}%)`}:{}}),q=t.computed(()=>{if(e.loading===!0)return{onMousedown:j,onTouchstart:j,onClick:j,onKeydown:j,onKeyup:j};if(h.value===!0){const y={onClick:A,onKeydown:K,onMousedown:z};if(a.$q.platform.has.touch===!0){const T=e.onTouchstart!==void 0?"":"Passive";y[`onTouchstart${T}`]=V}return y}return{onClick:ge}}),D=t.computed(()=>({ref:p,class:"q-btn q-btn-item non-selectable no-outline "+o.value,style:r.value,...i.value,...q.value}));function A(y){if(p.value!==null){if(y!==void 0){if(y.defaultPrevented===!0)return;const T=document.activeElement;if(e.type==="submit"&&T!==document.body&&p.value.contains(T)===!1&&T.contains(p.value)===!1){y.qAvoidFocus!==!0&&p.value.focus();const O=()=>{var W;document.removeEventListener("keydown",ge,!0),document.removeEventListener("keyup",O,Be),(W=p.value)==null||W.removeEventListener("blur",O,Be)};document.addEventListener("keydown",ge,!0),document.addEventListener("keyup",O,Be),p.value.addEventListener("blur",O,Be)}}s(y)}}function K(y){p.value!==null&&(l("keydown",y),tt(y,[13,32])===!0&&St!==p.value&&(St!==null&&C(),y.defaultPrevented!==!0&&(y.qAvoidFocus!==!0&&p.value.focus(),St=p.value,p.value.classList.add("q-btn--active"),document.addEventListener("keyup",$,!0),p.value.addEventListener("blur",$,Be)),ge(y)))}function V(y){p.value!==null&&(l("touchstart",y),y.defaultPrevented!==!0&&(wt!==p.value&&(wt!==null&&C(),wt=p.value,S=y.target,S.addEventListener("touchcancel",$,Be),S.addEventListener("touchend",$,Be)),E=!0,b!==null&&clearTimeout(b),b=setTimeout(()=>{b=null,E=!1},200)))}function z(y){p.value!==null&&(y.qSkipRipple=E===!0,l("mousedown",y),y.defaultPrevented!==!0&&xt!==p.value&&(xt!==null&&C(),xt=p.value,p.value.classList.add("q-btn--active"),document.addEventListener("mouseup",$,Be)))}function $(y){if(p.value!==null&&!((y==null?void 0:y.type)==="blur"&&document.activeElement===p.value)){if((y==null?void 0:y.type)==="keyup"){if(St===p.value&&tt(y,[13,32])===!0){const T=new MouseEvent("click",y);T.qKeyEvent=!0,y.defaultPrevented===!0&&_e(T),y.cancelBubble===!0&&Ee(T),p.value.dispatchEvent(T),ge(y),y.qKeyEvent=!0}l("keyup",y)}C()}}function C(y){var O,W;const T=m.value;y!==!0&&(wt===p.value||xt===p.value)&&T!==null&&T!==document.activeElement&&(T.setAttribute("tabindex",-1),T.focus()),wt===p.value&&(S!==null&&(S.removeEventListener("touchcancel",$,Be),S.removeEventListener("touchend",$,Be)),wt=S=null),xt===p.value&&(document.removeEventListener("mouseup",$,Be),xt=null),St===p.value&&(document.removeEventListener("keyup",$,!0),(O=p.value)==null||O.removeEventListener("blur",$,Be),St=null),(W=p.value)==null||W.classList.remove("q-btn--active")}function j(y){ge(y),y.qSkipRipple=!0}return t.onBeforeUnmount(()=>{C(!0)}),Object.assign(a,{click:y=>{h.value===!0&&A(y)}}),()=>{let y=[];e.icon!==void 0&&y.push(t.h(qe,{name:e.icon,left:e.stack!==!0&&H.value===!0,role:"img"})),H.value===!0&&y.push(t.h("span",{class:"block"},[e.label])),y=Ae(n.default,y),e.iconRight!==void 0&&e.round===!1&&y.push(t.h(qe,{name:e.iconRight,right:e.stack!==!0&&H.value===!0,role:"img"}));const T=[t.h("span",{class:"q-focus-helper",ref:m})];return e.loading===!0&&e.percentage!==void 0&&T.push(t.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(e.darkPercentage===!0?" q-btn__progress--dark":"")},[t.h("span",{class:"q-btn__progress-indicator fit block",style:k.value})])),T.push(t.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+u.value},y)),e.loading!==null&&T.push(t.h(t.Transition,{name:"q-transition--fade"},()=>e.loading===!0?[t.h("span",{key:"loading",class:"absolute-full flex flex-center"},n.loading!==void 0?n.loading():[t.h(To)])]:null)),t.withDirectives(t.h(f.value,D.value,T),[[Do,M.value,void 0,B.value]])}}}),Ga={class:"row justify-between"},er=t.defineComponent({__name:"NavButton",props:{from:{},to:{default:void 0},labelFrom:{},labelTo:{default:void 0},params:{default:()=>({})}},setup(e){const n=e,l=t.inject("navContext",null),a=t.inject("router");function o(r){if(!a){console.warn("Dependencies not available:",{router:a});return}l==null||l.setTabs();const u=r==="back"?n.from:n.to;if(!u){console.warn("Destination not provided:",r);return}a.push({name:u,params:n.params})}return(r,u)=>(t.openBlock(),t.createElementBlock("div",Ga,[t.createVNode(De,{icon:"chevron_left","rounded-sm":"",label:r.labelFrom,onClick:u[0]||(u[0]=i=>o("back")),"data-cy":"go-back"},null,8,["label"]),r.labelTo?(t.openBlock(),t.createBlock(De,{key:0,label:r.labelTo,color:"primary","text-color":"white","icon-right":"chevron_right","rounded-sm":"","data-cy":"go-next",onClick:u[1]||(u[1]=i=>o("next"))},null,8,["label"])):t.createCommentVNode("",!0)]))}}),mn=(e,n)=>{const l=e.__vccOpts||e;for(const[a,o]of n)l[a]=o;return l},tr=mn(er,[["__scopeId","data-v-c5e3fee0"]]),Pe={dark:{type:Boolean,default:null}};function Ie(e,n){return t.computed(()=>e.dark===null?n.dark.isActive:e.dark)}function nr(e,n){const l=t.ref(null),a=t.computed(()=>e.disable===!0?null:t.h("span",{ref:l,class:"no-outline",tabindex:-1}));function o(r){const u=n.value;(r==null?void 0:r.qAvoidFocus)!==!0&&((r==null?void 0:r.type.indexOf("key"))===0?document.activeElement!==u&&(u==null?void 0:u.contains(document.activeElement))===!0&&u.focus():l.value!==null&&(r===void 0||(u==null?void 0:u.contains(r.target))===!0)&&l.value.focus())}return{refocusTargetEl:a,refocusTarget:o}}const hn={name:String};function lr(e){return t.computed(()=>({type:"hidden",name:e.name,value:e.modelValue}))}function $o(e={}){return(n,l,a)=>{n[l](t.h("input",{class:"hidden"+(a||""),...e.value}))}}function Oo(e){return t.computed(()=>e.name||e.for)}const or={xs:30,sm:35,md:40,lg:50,xl:60},ar={...Pe,...Nt,...hn,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]},rr=["update:modelValue"];function ir(e,n){const{props:l,slots:a,emit:o,proxy:r}=t.getCurrentInstance(),{$q:u}=r,i=Ie(l,u),c=t.ref(null),{refocusTargetEl:f,refocusTarget:s}=nr(l,c),h=jt(l,or),p=t.computed(()=>l.val!==void 0&&Array.isArray(l.modelValue)),m=t.computed(()=>{const C=t.toRaw(l.val);return p.value===!0?l.modelValue.findIndex(j=>t.toRaw(j)===C):-1}),S=t.computed(()=>p.value===!0?m.value!==-1:t.toRaw(l.modelValue)===t.toRaw(l.trueValue)),E=t.computed(()=>p.value===!0?m.value===-1:t.toRaw(l.modelValue)===t.toRaw(l.falseValue)),b=t.computed(()=>S.value===!1&&E.value===!1),H=t.computed(()=>l.disable===!0?-1:l.tabindex||0),M=t.computed(()=>`q-${e} cursor-pointer no-outline row inline no-wrap items-center`+(l.disable===!0?" disabled":"")+(i.value===!0?` q-${e}--dark`:"")+(l.dense===!0?` q-${e}--dense`:"")+(l.leftLabel===!0?" reverse":"")),B=t.computed(()=>{const C=S.value===!0?"truthy":E.value===!0?"falsy":"indet",j=l.color!==void 0&&(l.keepColor===!0||E.value!==!0)?` text-${l.color}`:"";return`q-${e}__inner relative-position non-selectable q-${e}__inner--${C}${j}`}),k=t.computed(()=>{const C={type:"checkbox"};return l.name!==void 0&&Object.assign(C,{".checked":S.value,"^checked":S.value===!0?"checked":void 0,name:l.name,value:p.value===!0?l.val:l.trueValue}),C}),q=$o(k),D=t.computed(()=>{const C={tabindex:H.value,role:"checkbox","aria-label":l.label,"aria-checked":b.value===!0?"mixed":S.value===!0?"true":"false"};return l.disable===!0&&(C["aria-disabled"]="true"),C});function A(C){C!==void 0&&(ge(C),s(C)),l.disable!==!0&&o("update:modelValue",K(),C)}function K(){if(p.value===!0){if(S.value===!0){const C=l.modelValue.slice();return C.splice(m.value,1),C}return l.modelValue.concat([l.val])}if(S.value===!0){if(l.toggleOrder!=="ft"||l.toggleIndeterminate===!1)return l.falseValue}else if(E.value===!0){if(l.toggleOrder==="ft"||l.toggleIndeterminate===!1)return l.trueValue}else return l.toggleOrder!=="ft"?l.trueValue:l.falseValue;return l.indeterminateValue}function V(C){(C.keyCode===13||C.keyCode===32)&&ge(C)}function z(C){(C.keyCode===13||C.keyCode===32)&&A(C)}const $=n(S,b);return Object.assign(r,{toggle:A}),()=>{const C=$();l.disable!==!0&&q(C,"unshift",` q-${e}__native absolute q-ma-none q-pa-none`);const j=[t.h("div",{class:B.value,style:h.value,"aria-hidden":"true"},C)];f.value!==null&&j.push(f.value);const y=l.label!==void 0?Ae(a.default,[l.label]):xe(a.default);return y!==void 0&&j.push(t.h("div",{class:`q-${e}__label q-anchor--skip`},y)),t.h("div",{ref:c,class:M.value,...D.value,onClick:A,onKeydown:V,onKeyup:z},j)}}const ur=()=>t.h("div",{key:"svg",class:"q-checkbox__bg absolute"},[t.h("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24"},[t.h("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),t.h("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]),sr=ae({name:"QCheckbox",props:ar,emits:rr,setup(e){const n=ur();function l(a,o){const r=t.computed(()=>(a.value===!0?e.checkedIcon:o.value===!0?e.indeterminateIcon:e.uncheckedIcon)||null);return()=>r.value!==null?[t.h("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[t.h(qe,{class:"q-checkbox__icon",name:r.value})])]:[n]}return ir("checkbox",l)}}),cr=ae({props:["store","barStyle","verticalBarStyle","horizontalBarStyle"],setup(e){return()=>[t.h("div",{class:e.store.scroll.vertical.barClass.value,style:[e.barStyle,e.verticalBarStyle],"aria-hidden":"true",onMousedown:e.store.onVerticalMousedown}),t.h("div",{class:e.store.scroll.horizontal.barClass.value,style:[e.barStyle,e.horizontalBarStyle],"aria-hidden":"true",onMousedown:e.store.onHorizontalMousedown}),t.withDirectives(t.h("div",{ref:e.store.scroll.vertical.ref,class:e.store.scroll.vertical.thumbClass.value,style:e.store.scroll.vertical.style.value,"aria-hidden":"true"}),e.store.thumbVertDir),t.withDirectives(t.h("div",{ref:e.store.scroll.horizontal.ref,class:e.store.scroll.horizontal.thumbClass.value,style:e.store.scroll.horizontal.style.value,"aria-hidden":"true"}),e.store.thumbHorizDir)]}}),nt=t.ref(!1);let Un;function dr(e,n){const l=/(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:l[5]||l[3]||l[1]||"",version:l[4]||l[2]||"0",platform:n[0]||""}}function fr(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 Ao="ontouchstart"in window||window.navigator.maxTouchPoints>0;function vr(e){const n=e.toLowerCase(),l=fr(n),a=dr(n,l),o={mobile:!1,desktop:!1,cordova:!1,capacitor:!1,nativeMobile:!1,electron:!1,bex:!1,linux:!1,mac:!1,win:!1,cros:!1,chrome:!1,firefox:!1,opera:!1,safari:!1,vivaldi:!1,edge:!1,edgeChromium:!1,ie:!1,webkit:!1,android:!1,ios:!1,ipad:!1,iphone:!1,ipod:!1,kindle:!1,winphone:!1,blackberry:!1,playbook:!1,silk:!1};a.browser&&(o[a.browser]=!0,o.version=a.version,o.versionNumber=parseInt(a.version,10)),a.platform&&(o[a.platform]=!0);const r=o.android||o.ios||o.bb||o.blackberry||o.ipad||o.iphone||o.ipod||o.kindle||o.playbook||o.silk||o["windows phone"];if(r===!0||n.indexOf("mobile")!==-1?o.mobile=!0:o.desktop=!0,o["windows phone"]&&(o.winphone=!0,delete o["windows phone"]),o.edga||o.edgios||o.edg?(o.edge=!0,a.browser="edge"):o.crios?(o.chrome=!0,a.browser="chrome"):o.fxios&&(o.firefox=!0,a.browser="firefox"),(o.ipod||o.ipad||o.iphone)&&(o.ios=!0),o.vivaldi&&(a.browser="vivaldi",o.vivaldi=!0),(o.chrome||o.opr||o.safari||o.vivaldi||o.mobile===!0&&o.ios!==!0&&r!==!0)&&(o.webkit=!0),o.opr&&(a.browser="opera",o.opera=!0),o.safari&&(o.blackberry||o.bb?(a.browser="blackberry",o.blackberry=!0):o.playbook?(a.browser="playbook",o.playbook=!0):o.android?(a.browser="android",o.android=!0):o.kindle?(a.browser="kindle",o.kindle=!0):o.silk&&(a.browser="silk",o.silk=!0)),o.name=a.browser,o.platform=a.platform,n.indexOf("electron")!==-1)o.electron=!0;else if(document.location.href.indexOf("-extension://")!==-1)o.bex=!0;else{if(window.Capacitor!==void 0?(o.capacitor=!0,o.nativeMobile=!0,o.nativeMobileWrapper="capacitor"):(window._cordovaNative!==void 0||window.cordova!==void 0)&&(o.cordova=!0,o.nativeMobile=!0,o.nativeMobileWrapper="cordova"),nt.value===!0&&(Un={is:{...o}}),Ao===!0&&o.mac===!0&&(o.desktop===!0&&o.safari===!0||o.nativeMobile===!0&&o.android!==!0&&o.ios!==!0&&o.ipad!==!0)){delete o.mac,delete o.desktop;const u=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(o,{mobile:!0,ios:!0,platform:u,[u]:!0})}o.mobile!==!0&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete o.desktop,o.mobile=!0)}return o}const Vl=navigator.userAgent||navigator.vendor||window.opera,mr={has:{touch:!1,webStorage:!1},within:{iframe:!1}},ye={userAgent:Vl,is:vr(Vl),has:{touch:Ao},within:{iframe:window.self!==window.top}},Wn={install(e){const{$q:n}=e;nt.value===!0?(e.onSSRHydrated.push(()=>{Object.assign(n.platform,ye),nt.value=!1}),n.platform=t.reactive(this)):n.platform=this}};{let e;Et(ye.has,"webStorage",()=>{if(e!==void 0)return e;try{if(window.localStorage)return e=!0,!0}catch{}return e=!1,!1}),Object.assign(Wn,ye),nt.value===!0&&(Object.assign(Wn,Un,mr),Un=null)}function hr(){const e=t.ref(!nt.value);return e.value===!1&&t.onMounted(()=>{e.value=!0}),{isHydrated:e}}const Lo=typeof ResizeObserver<"u",El=Lo===!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"},Mt=ae({name:"QResizeObserver",props:{debounce:{type:[String,Number],default:100}},emits:["resize"],setup(e,{emit:n}){let l=null,a,o={width:-1,height:-1};function r(c){c===!0||e.debounce===0||e.debounce==="0"?u():l===null&&(l=setTimeout(u,e.debounce))}function u(){if(l!==null&&(clearTimeout(l),l=null),a){const{offsetWidth:c,offsetHeight:f}=a;(c!==o.width||f!==o.height)&&(o={width:c,height:f},n("resize",o))}}const{proxy:i}=t.getCurrentInstance();if(i.trigger=r,Lo===!0){let c;const f=s=>{a=i.$el.parentNode,a?(c=new ResizeObserver(r),c.observe(a),u()):s!==!0&&t.nextTick(()=>{f(!0)})};return t.onMounted(()=>{f()}),t.onBeforeUnmount(()=>{l!==null&&clearTimeout(l),c!==void 0&&(c.disconnect!==void 0?c.disconnect():a&&c.unobserve(a))}),vn}else{let c=function(){l!==null&&(clearTimeout(l),l=null),h!==void 0&&(h.removeEventListener!==void 0&&h.removeEventListener("resize",r,pe.passive),h=void 0)},f=function(){c(),a!=null&&a.contentDocument&&(h=a.contentDocument.defaultView,h.addEventListener("resize",r,pe.passive),u())};const{isHydrated:s}=hr();let h;return t.onMounted(()=>{t.nextTick(()=>{a=i.$el,a&&f()})}),t.onBeforeUnmount(c),()=>{if(s.value===!0)return t.h("object",{class:"q--avoid-card-border",style:El.style,tabindex:-1,type:"text/html",data:El.url,"aria-hidden":"true",onLoad:f})}}}}),Ro=[Element,String],gr=[null,document,document.body,document.scrollingElement,document.documentElement];function Ho(e,n){let l=Pa(n);if(l===void 0){if(e==null)return window;l=e.closest(".scroll,.scroll-y,.overflow-auto")}return gr.includes(l)?window:l}function ul(e){return e===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:e.scrollTop}function sl(e){return e===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:e.scrollLeft}function Fo(e,n,l=0){const a=arguments[3]===void 0?performance.now():arguments[3],o=ul(e);if(l<=0){o!==n&&Kn(e,n);return}requestAnimationFrame(r=>{const u=r-a,i=o+(n-o)/Math.max(u,l)*u;Kn(e,i),i!==n&&Fo(e,n,l-u,r)})}function Po(e,n,l=0){const a=arguments[3]===void 0?performance.now():arguments[3],o=sl(e);if(l<=0){o!==n&&Xn(e,n);return}requestAnimationFrame(r=>{const u=r-a,i=o+(n-o)/Math.max(u,l)*u;Xn(e,i),i!==n&&Po(e,n,l-u,r)})}function Kn(e,n){if(e===window){window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,n);return}e.scrollTop=n}function Xn(e,n){if(e===window){window.scrollTo(n,window.pageYOffset||window.scrollY||document.body.scrollTop||0);return}e.scrollLeft=n}function zl(e,n,l){if(l){Fo(e,n,l);return}Kn(e,n)}function En(e,n,l){if(l){Po(e,n,l);return}Xn(e,n)}let Zt;function an(){if(Zt!==void 0)return Zt;const e=document.createElement("p"),n=document.createElement("div");Qn(e,{width:"100%",height:"200px"}),Qn(n,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),n.appendChild(e),document.body.appendChild(n);const l=e.offsetWidth;n.style.overflow="scroll";let a=e.offsetWidth;return l===a&&(a=n.clientWidth),n.remove(),Zt=l-a,Zt}function br(e,n=!0){return!e||e.nodeType!==Node.ELEMENT_NODE?!1:n?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"]))}const{passive:Tl}=pe,pr=["both","horizontal","vertical"],Io=ae({name:"QScrollObserver",props:{axis:{type:String,validator:e=>pr.includes(e),default:"vertical"},debounce:[String,Number],scrollTarget:Ro},emits:["scroll"],setup(e,{emit:n}){const l={position:{top:0,left:0},direction:"down",directionChanged:!1,delta:{top:0,left:0},inflectionPoint:{top:0,left:0}};let a=null,o,r;t.watch(()=>e.scrollTarget,()=>{c(),i()});function u(){a==null||a();const h=Math.max(0,ul(o)),p=sl(o),m={top:h-l.position.top,left:p-l.position.left};if(e.axis==="vertical"&&m.top===0||e.axis==="horizontal"&&m.left===0)return;const S=Math.abs(m.top)>=Math.abs(m.left)?m.top<0?"up":"down":m.left<0?"left":"right";l.position={top:h,left:p},l.directionChanged=l.direction!==S,l.delta=m,l.directionChanged===!0&&(l.direction=S,l.inflectionPoint=l.position),n("scroll",{...l})}function i(){o=Ho(r,e.scrollTarget),o.addEventListener("scroll",f,Tl),f(!0)}function c(){o!==void 0&&(o.removeEventListener("scroll",f,Tl),o=void 0)}function f(h){if(h===!0||e.debounce===0||e.debounce==="0")u();else if(a===null){const[p,m]=e.debounce?[setTimeout(u,e.debounce),clearTimeout]:[requestAnimationFrame(u),cancelAnimationFrame];a=()=>{m(p),a=null}}}const{proxy:s}=t.getCurrentInstance();return t.watch(()=>s.$q.lang.rtl,u),t.onMounted(()=>{r=s.$el.parentNode,i()}),t.onBeforeUnmount(()=>{a==null||a(),c()}),Object.assign(s,{trigger:f,getPosition:()=>l}),vn}}),cl={left:!0,right:!0,up:!0,down:!0,horizontal:!0,vertical:!0},yr=Object.keys(cl);cl.all=!0;function Bl(e){const n={};for(const l of yr)e[l]===!0&&(n[l]=!0);return Object.keys(n).length===0?cl:(n.horizontal===!0?n.left=n.right=!0:n.left===!0&&n.right===!0&&(n.horizontal=!0),n.vertical===!0?n.up=n.down=!0:n.up===!0&&n.down===!0&&(n.vertical=!0),n.horizontal===!0&&n.vertical===!0&&(n.all=!0),n)}const wr=["INPUT","TEXTAREA"];function Dl(e,n){return n.event===void 0&&e.target!==void 0&&e.target.draggable!==!0&&typeof n.handler=="function"&&wr.includes(e.target.nodeName.toUpperCase())===!1&&(e.qClonedBy===void 0||e.qClonedBy.indexOf(n.uid)===-1)}function No(){if(window.getSelection!==void 0){const e=window.getSelection();e.empty!==void 0?e.empty():e.removeAllRanges!==void 0&&(e.removeAllRanges(),Wn.is.mobile!==!0&&e.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}function zn(e,n,l){const a=Ft(e);let o,r=a.left-n.event.x,u=a.top-n.event.y,i=Math.abs(r),c=Math.abs(u);const f=n.direction;f.horizontal===!0&&f.vertical!==!0?o=r<0?"left":"right":f.horizontal!==!0&&f.vertical===!0?o=u<0?"up":"down":f.up===!0&&u<0?(o="up",i>c&&(f.left===!0&&r<0?o="left":f.right===!0&&r>0&&(o="right"))):f.down===!0&&u>0?(o="down",i>c&&(f.left===!0&&r<0?o="left":f.right===!0&&r>0&&(o="right"))):f.left===!0&&r<0?(o="left",i<c&&(f.up===!0&&u<0?o="up":f.down===!0&&u>0&&(o="down"))):f.right===!0&&r>0&&(o="right",i<c&&(f.up===!0&&u<0?o="up":f.down===!0&&u>0&&(o="down")));let s=!1;if(o===void 0&&l===!1){if(n.event.isFirst===!0||n.event.lastDir===void 0)return{};o=n.event.lastDir,s=!0,o==="left"||o==="right"?(a.left-=r,i=0,r=0):(a.top-=u,c=0,u=0)}return{synthetic:s,payload:{evt:e,touch:n.event.mouse!==!0,mouse:n.event.mouse===!0,position:a,direction:o,isFirst:n.event.isFirst,isFinal:l===!0,duration:Date.now()-n.event.time,distance:{x:i,y:c},offset:{x:r,y:u},delta:{x:a.left-n.event.lastX,y:a.top-n.event.lastY}}}}let Sr=0;const $l=al({name:"touch-pan",beforeMount(e,{value:n,modifiers:l}){if(l.mouse!==!0&&ye.has.touch!==!0)return;function a(r,u){l.mouse===!0&&u===!0?ge(r):(l.stop===!0&&Ee(r),l.prevent===!0&&_e(r))}const o={uid:"qvtp_"+Sr++,handler:n,modifiers:l,direction:Bl(l),noop:vn,mouseStart(r){Dl(r,o)&&Ia(r)&&(ft(o,"temp",[[document,"mousemove","move","notPassiveCapture"],[document,"mouseup","end","passiveCapture"]]),o.start(r,!0))},touchStart(r){if(Dl(r,o)){const u=r.target;ft(o,"temp",[[u,"touchmove","move","notPassiveCapture"],[u,"touchcancel","end","passiveCapture"],[u,"touchend","end","passiveCapture"]]),o.start(r)}},start(r,u){if(ye.is.firefox===!0&&Vn(e,!0),o.lastEvt=r,u===!0||l.stop===!0){if(o.direction.all!==!0&&(u!==!0||o.modifiers.mouseAllDir!==!0&&o.modifiers.mousealldir!==!0)){const f=r.type.indexOf("mouse")!==-1?new MouseEvent(r.type,r):new TouchEvent(r.type,r);r.defaultPrevented===!0&&_e(f),r.cancelBubble===!0&&Ee(f),Object.assign(f,{qKeyEvent:r.qKeyEvent,qClickOutside:r.qClickOutside,qAnchorHandled:r.qAnchorHandled,qClonedBy:r.qClonedBy===void 0?[o.uid]:r.qClonedBy.concat(o.uid)}),o.initialEvent={target:r.target,event:f}}Ee(r)}const{left:i,top:c}=Ft(r);o.event={x:i,y:c,time:Date.now(),mouse:u===!0,detected:!1,isFirst:!0,isFinal:!1,lastX:i,lastY:c}},move(r){if(o.event===void 0)return;const u=Ft(r),i=u.left-o.event.x,c=u.top-o.event.y;if(i===0&&c===0)return;o.lastEvt=r;const f=o.event.mouse===!0,s=()=>{a(r,f);let m;l.preserveCursor!==!0&&l.preservecursor!==!0&&(m=document.documentElement.style.cursor||"",document.documentElement.style.cursor="grabbing"),f===!0&&document.body.classList.add("no-pointer-events--children"),document.body.classList.add("non-selectable"),No(),o.styleCleanup=S=>{if(o.styleCleanup=void 0,m!==void 0&&(document.documentElement.style.cursor=m),document.body.classList.remove("non-selectable"),f===!0){const E=()=>{document.body.classList.remove("no-pointer-events--children")};S!==void 0?setTimeout(()=>{E(),S()},50):E()}else S!==void 0&&S()}};if(o.event.detected===!0){o.event.isFirst!==!0&&a(r,o.event.mouse);const{payload:m,synthetic:S}=zn(r,o,!1);m!==void 0&&(o.handler(m)===!1?o.end(r):(o.styleCleanup===void 0&&o.event.isFirst===!0&&s(),o.event.lastX=m.position.left,o.event.lastY=m.position.top,o.event.lastDir=S===!0?void 0:m.direction,o.event.isFirst=!1));return}if(o.direction.all===!0||f===!0&&(o.modifiers.mouseAllDir===!0||o.modifiers.mousealldir===!0)){s(),o.event.detected=!0,o.move(r);return}const h=Math.abs(i),p=Math.abs(c);h!==p&&(o.direction.horizontal===!0&&h>p||o.direction.vertical===!0&&h<p||o.direction.up===!0&&h<p&&c<0||o.direction.down===!0&&h<p&&c>0||o.direction.left===!0&&h>p&&i<0||o.direction.right===!0&&h>p&&i>0?(o.event.detected=!0,o.move(r)):o.end(r,!0))},end(r,u){var i;if(o.event!==void 0){if(Ht(o,"temp"),ye.is.firefox===!0&&Vn(e,!1),u===!0)(i=o.styleCleanup)==null||i.call(o),o.event.detected!==!0&&o.initialEvent!==void 0&&o.initialEvent.target.dispatchEvent(o.initialEvent.event);else if(o.event.detected===!0){o.event.isFirst===!0&&o.handler(zn(r===void 0?o.lastEvt:r,o).payload);const{payload:c}=zn(r===void 0?o.lastEvt:r,o,!0),f=()=>{o.handler(c)};o.styleCleanup!==void 0?o.styleCleanup(f):f()}o.event=void 0,o.initialEvent=void 0,o.lastEvt=void 0}}};if(e.__qtouchpan=o,l.mouse===!0){const r=l.mouseCapture===!0||l.mousecapture===!0?"Capture":"";ft(o,"main",[[e,"mousedown","mouseStart",`passive${r}`]])}ye.has.touch===!0&&ft(o,"main",[[e,"touchstart","touchStart",`passive${l.capture===!0?"Capture":""}`],[e,"touchmove","noop","notPassiveCapture"]])},updated(e,n){const l=e.__qtouchpan;l!==void 0&&(n.oldValue!==n.value&&(typeof value!="function"&&l.end(),l.handler=n.value),l.direction=Bl(n.modifiers))},beforeUnmount(e){var l;const n=e.__qtouchpan;n!==void 0&&(n.event!==void 0&&n.end(),Ht(n,"main"),Ht(n,"temp"),ye.is.firefox===!0&&Vn(e,!1),(l=n.styleCleanup)==null||l.call(n),delete e.__qtouchpan)}});function $t(e,n,l){return l<=n?n:Math.min(l,Math.max(n,e))}function Ol(e,n,l){if(l<=n)return n;const a=l-n+1;let o=n+(e-n)%a;return o<n&&(o=a+o),o===0?0:o}function re(e,n=2,l="0"){if(e==null)return e;const a=""+e;return a.length>=n?a:new Array(n-a.length+1).join(l)+a}function dl(e,n=250,l){let a=null;function o(){const r=arguments,u=()=>{a=null,e.apply(this,r)};a!==null&&clearTimeout(a),a=setTimeout(u,n)}return o.cancel=()=>{a!==null&&clearTimeout(a)},o}const Al=["vertical","horizontal"],Tn={vertical:{offset:"offsetY",scroll:"scrollTop",dir:"down",dist:"y"},horizontal:{offset:"offsetX",scroll:"scrollLeft",dir:"right",dist:"x"}},Ll={prevent:!0,mouse:!0,mouseAllDir:!0},Rl=e=>e>=250?50:Math.ceil(e/5),xr=ae({name:"QScrollArea",props:{...Pe,thumbStyle:Object,verticalThumbStyle:Object,horizontalThumbStyle:Object,barStyle:[Array,String,Object],verticalBarStyle:[Array,String,Object],horizontalBarStyle:[Array,String,Object],verticalOffset:{type:Array,default:[0,0]},horizontalOffset:{type:Array,default:[0,0]},contentStyle:[Array,String,Object],contentActiveStyle:[Array,String,Object],delay:{type:[String,Number],default:1e3},visible:{type:Boolean,default:null},tabindex:[String,Number],onScroll:Function},setup(e,{slots:n,emit:l}){const a=t.ref(!1),o=t.ref(!1),r=t.ref(!1),u={vertical:t.ref(0),horizontal:t.ref(0)},i={vertical:{ref:t.ref(null),position:t.ref(0),size:t.ref(0)},horizontal:{ref:t.ref(null),position:t.ref(0),size:t.ref(0)}},{proxy:c}=t.getCurrentInstance(),f=Ie(e,c.$q);let s=null,h;const p=t.ref(null),m=t.computed(()=>"q-scrollarea"+(f.value===!0?" q-scrollarea--dark":""));Object.assign(u,{verticalInner:t.computed(()=>u.vertical.value-e.verticalOffset[0]-e.verticalOffset[1]),horizontalInner:t.computed(()=>u.horizontal.value-e.horizontalOffset[0]-e.horizontalOffset[1])}),i.vertical.percentage=t.computed(()=>{const y=i.vertical.size.value-u.vertical.value;if(y<=0)return 0;const T=$t(i.vertical.position.value/y,0,1);return Math.round(T*1e4)/1e4}),i.vertical.thumbHidden=t.computed(()=>(e.visible===null?r.value:e.visible)!==!0&&a.value===!1&&o.value===!1||i.vertical.size.value<=u.vertical.value+1),i.vertical.thumbStart=t.computed(()=>e.verticalOffset[0]+i.vertical.percentage.value*(u.verticalInner.value-i.vertical.thumbSize.value)),i.vertical.thumbSize=t.computed(()=>Math.round($t(u.verticalInner.value*u.verticalInner.value/i.vertical.size.value,Rl(u.verticalInner.value),u.verticalInner.value))),i.vertical.style=t.computed(()=>({...e.thumbStyle,...e.verticalThumbStyle,top:`${i.vertical.thumbStart.value}px`,height:`${i.vertical.thumbSize.value}px`,right:`${e.horizontalOffset[1]}px`})),i.vertical.thumbClass=t.computed(()=>"q-scrollarea__thumb q-scrollarea__thumb--v absolute-right"+(i.vertical.thumbHidden.value===!0?" q-scrollarea__thumb--invisible":"")),i.vertical.barClass=t.computed(()=>"q-scrollarea__bar q-scrollarea__bar--v absolute-right"+(i.vertical.thumbHidden.value===!0?" q-scrollarea__bar--invisible":"")),i.horizontal.percentage=t.computed(()=>{const y=i.horizontal.size.value-u.horizontal.value;if(y<=0)return 0;const T=$t(Math.abs(i.horizontal.position.value)/y,0,1);return Math.round(T*1e4)/1e4}),i.horizontal.thumbHidden=t.computed(()=>(e.visible===null?r.value:e.visible)!==!0&&a.value===!1&&o.value===!1||i.horizontal.size.value<=u.horizontal.value+1),i.horizontal.thumbStart=t.computed(()=>e.horizontalOffset[0]+i.horizontal.percentage.value*(u.horizontalInner.value-i.horizontal.thumbSize.value)),i.horizontal.thumbSize=t.computed(()=>Math.round($t(u.horizontalInner.value*u.horizontalInner.value/i.horizontal.size.value,Rl(u.horizontalInner.value),u.horizontalInner.value))),i.horizontal.style=t.computed(()=>({...e.thumbStyle,...e.horizontalThumbStyle,[c.$q.lang.rtl===!0?"right":"left"]:`${i.horizontal.thumbStart.value}px`,width:`${i.horizontal.thumbSize.value}px`,bottom:`${e.verticalOffset[1]}px`})),i.horizontal.thumbClass=t.computed(()=>"q-scrollarea__thumb q-scrollarea__thumb--h absolute-bottom"+(i.horizontal.thumbHidden.value===!0?" q-scrollarea__thumb--invisible":"")),i.horizontal.barClass=t.computed(()=>"q-scrollarea__bar q-scrollarea__bar--h absolute-bottom"+(i.horizontal.thumbHidden.value===!0?" q-scrollarea__bar--invisible":""));const S=t.computed(()=>i.vertical.thumbHidden.value===!0&&i.horizontal.thumbHidden.value===!0?e.contentStyle:e.contentActiveStyle);function E(){const y={};return Al.forEach(T=>{const O=i[T];Object.assign(y,{[T+"Position"]:O.position.value,[T+"Percentage"]:O.percentage.value,[T+"Size"]:O.size.value,[T+"ContainerSize"]:u[T].value,[T+"ContainerInnerSize"]:u[T+"Inner"].value})}),y}const b=dl(()=>{const y=E();y.ref=c,l("scroll",y)},0);function H(y,T,O){if(Al.includes(y)===!1){console.error("[QScrollArea]: wrong first param of setScrollPosition (vertical/horizontal)");return}(y==="vertical"?zl:En)(p.value,T,O)}function M({height:y,width:T}){let O=!1;u.vertical.value!==y&&(u.vertical.value=y,O=!0),u.horizontal.value!==T&&(u.horizontal.value=T,O=!0),O===!0&&A()}function B({position:y}){let T=!1;i.vertical.position.value!==y.top&&(i.vertical.position.value=y.top,T=!0),i.horizontal.position.value!==y.left&&(i.horizontal.position.value=y.left,T=!0),T===!0&&A()}function k({height:y,width:T}){i.horizontal.size.value!==T&&(i.horizontal.size.value=T,A()),i.vertical.size.value!==y&&(i.vertical.size.value=y,A())}function q(y,T){const O=i[T];if(y.isFirst===!0){if(O.thumbHidden.value===!0)return;h=O.position.value,o.value=!0}else if(o.value!==!0)return;y.isFinal===!0&&(o.value=!1);const W=Tn[T],L=(O.size.value-u[T].value)/(u[T+"Inner"].value-O.thumbSize.value),X=y.distance[W.dist],ee=h+(y.direction===W.dir?1:-1)*X*L;K(ee,T)}function D(y,T){const O=i[T];if(O.thumbHidden.value!==!0){const W=T==="vertical"?e.verticalOffset[0]:e.horizontalOffset[0],L=y[Tn[T].offset]-W,X=O.thumbStart.value-W;if(L<X||L>X+O.thumbSize.value){const ee=L-O.thumbSize.value/2,x=$t(ee/(u[T+"Inner"].value-O.thumbSize.value),0,1);K(x*Math.max(0,O.size.value-u[T].value),T)}O.ref.value!==null&&O.ref.value.dispatchEvent(new MouseEvent(y.type,y))}}function A(){a.value=!0,s!==null&&clearTimeout(s),s=setTimeout(()=>{s=null,a.value=!1},e.delay),e.onScroll!==void 0&&b()}function K(y,T){p.value[Tn[T].scroll]=y}let V=null;function z(){V!==null&&clearTimeout(V),V=setTimeout(()=>{V=null,r.value=!0},c.$q.platform.is.ios?50:0)}function $(){V!==null&&(clearTimeout(V),V=null),r.value=!1}let C=null;t.watch(()=>c.$q.lang.rtl,y=>{p.value!==null&&En(p.value,Math.abs(i.horizontal.position.value)*(y===!0?-1:1))}),t.onDeactivated(()=>{C={top:i.vertical.position.value,left:i.horizontal.position.value}}),t.onActivated(()=>{if(C===null)return;const y=p.value;y!==null&&(En(y,C.left),zl(y,C.top))}),t.onBeforeUnmount(b.cancel),Object.assign(c,{getScrollTarget:()=>p.value,getScroll:E,getScrollPosition:()=>({top:i.vertical.position.value,left:i.horizontal.position.value}),getScrollPercentage:()=>({top:i.vertical.percentage.value,left:i.horizontal.percentage.value}),setScrollPosition:H,setScrollPercentage(y,T,O){H(y,T*(i[y].size.value-u[y].value)*(y==="horizontal"&&c.$q.lang.rtl===!0?-1:1),O)}});const j={scroll:i,thumbVertDir:[[$l,y=>{q(y,"vertical")},void 0,{vertical:!0,...Ll}]],thumbHorizDir:[[$l,y=>{q(y,"horizontal")},void 0,{horizontal:!0,...Ll}]],onVerticalMousedown(y){D(y,"vertical")},onHorizontalMousedown(y){D(y,"horizontal")}};return()=>t.h("div",{class:m.value,onMouseenter:z,onMouseleave:$},[t.h("div",{ref:p,class:"q-scrollarea__container scroll relative-position fit hide-scrollbar",tabindex:e.tabindex!==void 0?e.tabindex:void 0},[t.h("div",{class:"q-scrollarea__content absolute",style:S.value},Ae(n.default,[t.h(Mt,{debounce:0,onResize:k})])),t.h(Io,{axis:"both",onScroll:B})]),t.h(Mt,{debounce:0,onResize:M}),t.h(cr,{store:j,barStyle:e.barStyle,verticalBarStyle:e.verticalBarStyle,horizontalBarStyle:e.horizontalBarStyle})])}}),kr=ae({name:"QCard",props:{...Pe,tag:{type:String,default:"div"},square:Boolean,flat:Boolean,bordered:Boolean},setup(e,{slots:n}){const{proxy:{$q:l}}=t.getCurrentInstance(),a=Ie(e,l),o=t.computed(()=>"q-card"+(a.value===!0?" q-card--dark q-dark":"")+(e.bordered===!0?" q-card--bordered":"")+(e.square===!0?" q-card--square no-border-radius":"")+(e.flat===!0?" q-card--flat no-shadow":""));return()=>t.h(e.tag,{class:o.value},xe(n.default))}}),Cr={target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},jo={...Cr,contextMenu:Boolean};function Yo({showing:e,avoidEmit:n,configureAnchorEl:l}){const{props:a,proxy:o,emit:r}=t.getCurrentInstance(),u=t.ref(null);let i=null;function c(m){return u.value===null?!1:m===void 0||m.touches===void 0||m.touches.length<=1}const f={};l===void 0&&(Object.assign(f,{hide(m){o.hide(m)},toggle(m){o.toggle(m),m.qAnchorHandled=!0},toggleKey(m){tt(m,13)===!0&&f.toggle(m)},contextClick(m){o.hide(m),_e(m),t.nextTick(()=>{o.show(m),m.qAnchorHandled=!0})},prevent:_e,mobileTouch(m){if(f.mobileCleanup(m),c(m)!==!0)return;o.hide(m),u.value.classList.add("non-selectable");const S=m.target;ft(f,"anchor",[[S,"touchmove","mobileCleanup","passive"],[S,"touchend","mobileCleanup","passive"],[S,"touchcancel","mobileCleanup","passive"],[u.value,"contextmenu","prevent","notPassive"]]),i=setTimeout(()=>{i=null,o.show(m),m.qAnchorHandled=!0},300)},mobileCleanup(m){u.value.classList.remove("non-selectable"),i!==null&&(clearTimeout(i),i=null),e.value===!0&&m!==void 0&&No()}}),l=function(m=a.contextMenu){if(a.noParentEvent===!0||u.value===null)return;let S;m===!0?o.$q.platform.is.mobile===!0?S=[[u.value,"touchstart","mobileTouch","passive"]]:S=[[u.value,"mousedown","hide","passive"],[u.value,"contextmenu","contextClick","notPassive"]]:S=[[u.value,"click","toggle","passive"],[u.value,"keyup","toggleKey","passive"]],ft(f,"anchor",S)});function s(){Ht(f,"anchor")}function h(m){for(u.value=m;u.value.classList.contains("q-anchor--skip");)u.value=u.value.parentNode;l()}function p(){if(a.target===!1||a.target===""||o.$el.parentNode===null)u.value=null;else if(a.target===!0)h(o.$el.parentNode);else{let m=a.target;if(typeof a.target=="string")try{m=document.querySelector(a.target)}catch{m=void 0}m!=null?(u.value=m.$el||m,l()):(u.value=null,console.error(`Anchor: target "${a.target}" not found`))}}return t.watch(()=>a.contextMenu,m=>{u.value!==null&&(s(),l(m))}),t.watch(()=>a.target,()=>{u.value!==null&&s(),p()}),t.watch(()=>a.noParentEvent,m=>{u.value!==null&&(m===!0?s():l())}),t.onMounted(()=>{p(),n!==!0&&a.modelValue===!0&&u.value===null&&r("update:modelValue",!1)}),t.onBeforeUnmount(()=>{i!==null&&clearTimeout(i),s()}),{anchorEl:u,canShow:c,anchorEvents:f}}function _r(e,n){const l=t.ref(null);let a;function o(i,c){const f=`${c!==void 0?"add":"remove"}EventListener`,s=c!==void 0?c:a;i!==window&&i[f]("scroll",s,pe.passive),window[f]("scroll",s,pe.passive),a=c}function r(){l.value!==null&&(o(l.value),l.value=null)}const u=t.watch(()=>e.noParentEvent,()=>{l.value!==null&&(r(),n())});return t.onBeforeUnmount(u),{localScrollTarget:l,unconfigureScrollTarget:r,changeScrollEvent:o}}const Qo={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},Uo=["beforeShow","show","beforeHide","hide"];function Wo({showing:e,canShow:n,hideOnRouteChange:l,handleShow:a,handleHide:o,processOnMount:r}){const u=t.getCurrentInstance(),{props:i,emit:c,proxy:f}=u;let s;function h(M){e.value===!0?S(M):p(M)}function p(M){if(i.disable===!0||(M==null?void 0:M.qAnchorHandled)===!0||n!==void 0&&n(M)!==!0)return;const B=i["onUpdate:modelValue"]!==void 0;B===!0&&(c("update:modelValue",!0),s=M,t.nextTick(()=>{s===M&&(s=void 0)})),(i.modelValue===null||B===!1)&&m(M)}function m(M){e.value!==!0&&(e.value=!0,c("beforeShow",M),a!==void 0?a(M):c("show",M))}function S(M){if(i.disable===!0)return;const B=i["onUpdate:modelValue"]!==void 0;B===!0&&(c("update:modelValue",!1),s=M,t.nextTick(()=>{s===M&&(s=void 0)})),(i.modelValue===null||B===!1)&&E(M)}function E(M){e.value!==!1&&(e.value=!1,c("beforeHide",M),o!==void 0?o(M):c("hide",M))}function b(M){i.disable===!0&&M===!0?i["onUpdate:modelValue"]!==void 0&&c("update:modelValue",!1):M===!0!==e.value&&(M===!0?m:E)(s)}t.watch(()=>i.modelValue,b),l!==void 0&&Co(u)===!0&&t.watch(()=>f.$route.fullPath,()=>{l.value===!0&&e.value===!0&&S()}),t.onMounted(()=>{b(i.modelValue)});const H={show:p,hide:S,toggle:h};return Object.assign(f,H),H}let vt=[],Pt=[];function Ko(e){Pt=Pt.filter(n=>n!==e)}function qr(e){Ko(e),Pt.push(e)}function Hl(e){Ko(e),Pt.length===0&&vt.length!==0&&(vt[vt.length-1](),vt=[])}function gn(e){Pt.length===0?e():vt.push(e)}function Mr(e){vt=vt.filter(n=>n!==e)}const Fl={};let Vr=1,Er=document.body;function zr(e,n){const l=document.createElement("div");if(l.id=n!==void 0?`q-portal--${n}--${Vr++}`:e,Fl.globalNodes!==void 0){const a=Fl.globalNodes.class;a!==void 0&&(l.className=a)}return Er.appendChild(l),l}function Tr(e){e.remove()}const _t=[];function Br(e){return _t.find(n=>n.contentEl!==null&&n.contentEl.contains(e))}function Xo(e,n){do{if(e.$options.name==="QMenu"){if(e.hide(n),e.$props.separateClosePopup===!0)return on(e)}else if(e.__qPortal===!0){const l=on(e);return(l==null?void 0:l.$options.name)==="QPopupProxy"?(e.hide(n),l):e}e=on(e)}while(e!=null)}function Dr(e,n,l){for(;l!==0&&e!==void 0&&e!==null;){if(e.__qPortal===!0){if(l--,e.$options.name==="QMenu"){e=Xo(e,n);continue}e.hide(n)}e=on(e)}}const $r=ae({name:"QPortal",setup(e,{slots:n}){return()=>n.default()}});function Or(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 Zo(e,n,l,a){const o=t.ref(!1),r=t.ref(!1);let u=null;const i={},c=a==="dialog"&&Or(e);function f(h){if(h===!0){Hl(i),r.value=!0;return}r.value=!1,o.value===!1&&(c===!1&&u===null&&(u=zr(!1,a)),o.value=!0,_t.push(e.proxy),qr(i))}function s(h){if(r.value=!1,h!==!0)return;Hl(i),o.value=!1;const p=_t.indexOf(e.proxy);p!==-1&&_t.splice(p,1),u!==null&&(Tr(u),u=null)}return t.onUnmounted(()=>{s(!0)}),e.proxy.__qPortal=!0,Et(e.proxy,"contentEl",()=>n.value),{showPortal:f,hidePortal:s,portalIsActive:o,portalIsAccessible:r,renderPortal:()=>c===!0?l():o.value===!0?[t.h(t.Teleport,{to:u},t.h($r,l))]:void 0}}const Jo={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function Go(e,n=()=>{},l=()=>{}){return{transitionProps:t.computed(()=>{const a=`q-transition--${e.transitionShow||n()}`,o=`q-transition--${e.transitionHide||l()}`;return{appear:!0,enterFromClass:`${a}-enter-from`,enterActiveClass:`${a}-enter-active`,enterToClass:`${a}-enter-to`,leaveFromClass:`${o}-leave-from`,leaveActiveClass:`${o}-leave-active`,leaveToClass:`${o}-leave-to`}}),transitionStyle:t.computed(()=>`--q-transition-duration: ${e.transitionDuration}ms`)}}function ea(){let e;const n=t.getCurrentInstance();function l(){e=void 0}return t.onDeactivated(l),t.onBeforeUnmount(l),{removeTick:l,registerTick(a){e=a,t.nextTick(()=>{e===a&&(_o(n)===!1&&e(),e=void 0)})}}}function ta(){let e=null;const n=t.getCurrentInstance();function l(){e!==null&&(clearTimeout(e),e=null)}return t.onDeactivated(l),t.onBeforeUnmount(l),{removeTimeout:l,registerTimeout(a,o){l(),_o(n)===!1&&(e=setTimeout(()=>{e=null,a()},o))}}}const mt=[];let Vt;function Ar(e){Vt=e.keyCode===27}function Lr(){Vt===!0&&(Vt=!1)}function Rr(e){Vt===!0&&(Vt=!1,tt(e,27)===!0&&mt[mt.length-1](e))}function na(e){window[e]("keydown",Ar),window[e]("blur",Lr),window[e]("keyup",Rr),Vt=!1}function la(e){ye.is.desktop===!0&&(mt.push(e),mt.length===1&&na("addEventListener"))}function un(e){const n=mt.indexOf(e);n!==-1&&(mt.splice(n,1),mt.length===0&&na("removeEventListener"))}const ht=[];function oa(e){ht[ht.length-1](e)}function aa(e){ye.is.desktop===!0&&(ht.push(e),ht.length===1&&document.body.addEventListener("focusin",oa))}function Zn(e){const n=ht.indexOf(e);n!==-1&&(ht.splice(n,1),ht.length===0&&document.body.removeEventListener("focusin",oa))}const{notPassiveCapture:sn}=pe,gt=[];function cn(e){const n=e.target;if(n===void 0||n.nodeType===8||n.classList.contains("no-pointer-events")===!0)return;let l=_t.length-1;for(;l>=0;){const a=_t[l].$;if(a.type.name==="QTooltip"){l--;continue}if(a.type.name!=="QDialog")break;if(a.props.seamless!==!0)return;l--}for(let a=gt.length-1;a>=0;a--){const o=gt[a];if((o.anchorEl.value===null||o.anchorEl.value.contains(n)===!1)&&(n===document.body||o.innerRef.value!==null&&o.innerRef.value.contains(n)===!1))e.qClickOutside=!0,o.onClickOutside(e);else return}}function Hr(e){gt.push(e),gt.length===1&&(document.addEventListener("mousedown",cn,sn),document.addEventListener("touchstart",cn,sn))}function Pl(e){const n=gt.findIndex(l=>l===e);n!==-1&&(gt.splice(n,1),gt.length===0&&(document.removeEventListener("mousedown",cn,sn),document.removeEventListener("touchstart",cn,sn)))}let Il,Nl;function jl(e){const n=e.split(" ");return n.length!==2?!1:["top","center","bottom"].includes(n[0])!==!0?(console.error("Anchor/Self position must start with one of top/center/bottom"),!1):["left","middle","right","start","end"].includes(n[1])!==!0?(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1):!0}function Fr(e){return e?!(e.length!==2||typeof e[0]!="number"||typeof e[1]!="number"):!0}const Jn={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(e=>{Jn[`${e}#ltr`]=e,Jn[`${e}#rtl`]=e});function Yl(e,n){const l=e.split(" ");return{vertical:l[0],horizontal:Jn[`${l[1]}#${n===!0?"rtl":"ltr"}`]}}function Pr(e,n){let{top:l,left:a,right:o,bottom:r,width:u,height:i}=e.getBoundingClientRect();return n!==void 0&&(l-=n[1],a-=n[0],r+=n[1],o+=n[0],u+=n[0],i+=n[1]),{top:l,bottom:r,height:i,left:a,right:o,width:u,middle:a+(o-a)/2,center:l+(r-l)/2}}function Ir(e,n,l){let{top:a,left:o}=e.getBoundingClientRect();return a+=n.top,o+=n.left,l!==void 0&&(a+=l[1],o+=l[0]),{top:a,bottom:a+1,height:1,left:o,right:o+1,width:1,middle:o,center:a}}function Nr(e,n){return{top:0,center:n/2,bottom:n,left:0,middle:e/2,right:e}}function Ql(e,n,l,a){return{top:e[l.vertical]-n[a.vertical],left:e[l.horizontal]-n[a.horizontal]}}function ra(e,n=0){if(e.targetEl===null||e.anchorEl===null||n>5)return;if(e.targetEl.offsetHeight===0||e.targetEl.offsetWidth===0){setTimeout(()=>{ra(e,n+1)},10);return}const{targetEl:l,offset:a,anchorEl:o,anchorOrigin:r,selfOrigin:u,absoluteOffset:i,fit:c,cover:f,maxHeight:s,maxWidth:h}=e;if(ye.is.ios===!0&&window.visualViewport!==void 0){const D=document.body.style,{offsetLeft:A,offsetTop:K}=window.visualViewport;A!==Il&&(D.setProperty("--q-pe-left",A+"px"),Il=A),K!==Nl&&(D.setProperty("--q-pe-top",K+"px"),Nl=K)}const{scrollLeft:p,scrollTop:m}=l,S=i===void 0?Pr(o,f===!0?[0,0]:a):Ir(o,i,a);Object.assign(l.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:h,maxHeight:s,visibility:"visible"});const{offsetWidth:E,offsetHeight:b}=l,{elWidth:H,elHeight:M}=c===!0||f===!0?{elWidth:Math.max(S.width,E),elHeight:f===!0?Math.max(S.height,b):b}:{elWidth:E,elHeight:b};let B={maxWidth:h,maxHeight:s};(c===!0||f===!0)&&(B.minWidth=S.width+"px",f===!0&&(B.minHeight=S.height+"px")),Object.assign(l.style,B);const k=Nr(H,M);let q=Ql(S,k,r,u);if(i===void 0||a===void 0)Bn(q,S,k,r,u);else{const{top:D,left:A}=q;Bn(q,S,k,r,u);let K=!1;if(q.top!==D){K=!0;const V=2*a[1];S.center=S.top-=V,S.bottom-=V+2}if(q.left!==A){K=!0;const V=2*a[0];S.middle=S.left-=V,S.right-=V+2}K===!0&&(q=Ql(S,k,r,u),Bn(q,S,k,r,u))}B={top:q.top+"px",left:q.left+"px"},q.maxHeight!==void 0&&(B.maxHeight=q.maxHeight+"px",S.height>q.maxHeight&&(B.minHeight=B.maxHeight)),q.maxWidth!==void 0&&(B.maxWidth=q.maxWidth+"px",S.width>q.maxWidth&&(B.minWidth=B.maxWidth)),Object.assign(l.style,B),l.scrollTop!==m&&(l.scrollTop=m),l.scrollLeft!==p&&(l.scrollLeft=p)}function Bn(e,n,l,a,o){const r=l.bottom,u=l.right,i=an(),c=window.innerHeight-i,f=document.body.clientWidth;if(e.top<0||e.top+r>c)if(o.vertical==="center")e.top=n[a.vertical]>c/2?Math.max(0,c-r):0,e.maxHeight=Math.min(r,c);else if(n[a.vertical]>c/2){const s=Math.min(c,a.vertical==="center"?n.center:a.vertical===o.vertical?n.bottom:n.top);e.maxHeight=Math.min(r,s),e.top=Math.max(0,s-r)}else e.top=Math.max(0,a.vertical==="center"?n.center:a.vertical===o.vertical?n.top:n.bottom),e.maxHeight=Math.min(r,c-e.top);if(e.left<0||e.left+u>f)if(e.maxWidth=Math.min(u,f),o.horizontal==="middle")e.left=n[a.horizontal]>f/2?Math.max(0,f-u):0;else if(n[a.horizontal]>f/2){const s=Math.min(f,a.horizontal==="middle"?n.middle:a.horizontal===o.horizontal?n.right:n.left);e.maxWidth=Math.min(u,s),e.left=Math.max(0,s-e.maxWidth)}else e.left=Math.max(0,a.horizontal==="middle"?n.middle:a.horizontal===o.horizontal?n.left:n.right),e.maxWidth=Math.min(u,f-e.left)}const bn=ae({name:"QMenu",inheritAttrs:!1,props:{...jo,...Qo,...Pe,...Jo,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noEscDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:jl},self:{type:String,validator:jl},offset:{type:Array,validator:Fr},scrollTarget:Ro,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...Uo,"click","escapeKey"],setup(e,{slots:n,emit:l,attrs:a}){let o=null,r,u,i;const c=t.getCurrentInstance(),{proxy:f}=c,{$q:s}=f,h=t.ref(null),p=t.ref(!1),m=t.computed(()=>e.persistent!==!0&&e.noRouteDismiss!==!0),S=Ie(e,s),{registerTick:E,removeTick:b}=ea(),{registerTimeout:H}=ta(),{transitionProps:M,transitionStyle:B}=Go(e),{localScrollTarget:k,changeScrollEvent:q,unconfigureScrollTarget:D}=_r(e,Q),{anchorEl:A,canShow:K}=Yo({showing:p}),{hide:V}=Wo({showing:p,canShow:K,handleShow:ee,handleHide:x,hideOnRouteChange:m,processOnMount:!0}),{showPortal:z,hidePortal:$,renderPortal:C}=Zo(c,h,ie,"menu"),j={anchorEl:A,innerRef:h,onClickOutside(R){if(e.persistent!==!0&&p.value===!0)return V(R),(R.type==="touchstart"||R.target.classList.contains("q-dialog__backdrop"))&&ge(R),!0}},y=t.computed(()=>Yl(e.anchor||(e.cover===!0?"center middle":"bottom start"),s.lang.rtl)),T=t.computed(()=>e.cover===!0?y.value:Yl(e.self||"top start",s.lang.rtl)),O=t.computed(()=>(e.square===!0?" q-menu--square":"")+(S.value===!0?" q-menu--dark q-dark":"")),W=t.computed(()=>e.autoClose===!0?{onClick:I}:{}),L=t.computed(()=>p.value===!0&&e.persistent!==!0);t.watch(L,R=>{R===!0?(la(Z),Hr(j)):(un(Z),Pl(j))});function X(){gn(()=>{let R=h.value;R&&R.contains(document.activeElement)!==!0&&(R=R.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||R.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||R.querySelector("[autofocus], [data-autofocus]")||R,R.focus({preventScroll:!0}))})}function ee(R){if(o=e.noRefocus===!1?document.activeElement:null,aa(J),z(),Q(),r=void 0,R!==void 0&&(e.touchPosition||e.contextMenu)){const be=Ft(R);if(be.left!==void 0){const{top:ue,left:fe}=A.value.getBoundingClientRect();r={left:be.left-fe,top:be.top-ue}}}u===void 0&&(u=t.watch(()=>s.screen.width+"|"+s.screen.height+"|"+e.self+"|"+e.anchor+"|"+s.lang.rtl,G)),e.noFocus!==!0&&document.activeElement.blur(),E(()=>{G(),e.noFocus!==!0&&X()}),H(()=>{s.platform.is.ios===!0&&(i=e.autoClose,h.value.click()),G(),z(!0),l("show",R)},e.transitionDuration)}function x(R){b(),$(),w(!0),o!==null&&(R===void 0||R.qClickOutside!==!0)&&((((R==null?void 0:R.type.indexOf("key"))===0?o.closest('[tabindex]:not([tabindex^="-"])'):void 0)||o).focus(),o=null),H(()=>{$(!0),l("hide",R)},e.transitionDuration)}function w(R){r=void 0,u!==void 0&&(u(),u=void 0),(R===!0||p.value===!0)&&(Zn(J),D(),Pl(j),un(Z)),R!==!0&&(o=null)}function Q(){(A.value!==null||e.scrollTarget!==void 0)&&(k.value=Ho(A.value,e.scrollTarget),q(k.value,G))}function I(R){i!==!0?(Xo(f,R),l("click",R)):i=!1}function J(R){L.value===!0&&e.noFocus!==!0&&Bo(h.value,R.target)!==!0&&X()}function Z(R){e.noEscDismiss!==!0&&(l("escapeKey"),V(R))}function G(){ra({targetEl:h.value,offset:e.offset,anchorEl:A.value,anchorOrigin:y.value,selfOrigin:T.value,absoluteOffset:r,fit:e.fit,cover:e.cover,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function ie(){return t.h(t.Transition,M.value,()=>p.value===!0?t.h("div",{role:"menu",...a,ref:h,tabindex:-1,class:["q-menu q-position-engine scroll"+O.value,a.class],style:[a.style,B.value],...W.value},xe(n.default)):null)}return t.onBeforeUnmount(w),Object.assign(f,{focus:X,updatePosition:G}),C}});let Dn,Jt=0;const Se=new Array(256);for(let e=0;e<256;e++)Se[e]=(e+256).toString(16).substring(1);const jr=(()=>{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 n=>{const l=new Uint8Array(n);return e.getRandomValues(l),l}}return n=>{const l=[];for(let a=n;a>0;a--)l.push(Math.floor(Math.random()*256));return l}})(),Ul=4096;function Gn(){(Dn===void 0||Jt+16>Ul)&&(Jt=0,Dn=jr(Ul));const e=Array.prototype.slice.call(Dn,Jt,Jt+=16);return e[6]=e[6]&15|64,e[8]=e[8]&63|128,Se[e[0]]+Se[e[1]]+Se[e[2]]+Se[e[3]]+"-"+Se[e[4]]+Se[e[5]]+"-"+Se[e[6]]+Se[e[7]]+"-"+Se[e[8]]+Se[e[9]]+"-"+Se[e[10]]+Se[e[11]]+Se[e[12]]+Se[e[13]]+Se[e[14]]+Se[e[15]]}function Yr(e){return e??null}function Wl(e,n){return e??(n===!0?`f_${Gn()}`:null)}function Qr({getValue:e,required:n=!0}={}){if(nt.value===!0){const l=e!==void 0?t.ref(Yr(e())):t.ref(null);return n===!0&&l.value===null&&t.onMounted(()=>{l.value=`f_${Gn()}`}),e!==void 0&&t.watch(e,a=>{l.value=Wl(a,n)}),l}return e!==void 0?t.computed(()=>Wl(e(),n)):t.ref(`f_${Gn()}`)}const Kl=/^on[A-Z]/;function Ur(){const{attrs:e,vnode:n}=t.getCurrentInstance(),l={listeners:t.ref({}),attributes:t.ref({})};function a(){const o={},r={};for(const u in e)u!=="class"&&u!=="style"&&Kl.test(u)===!1&&(o[u]=e[u]);for(const u in n.props)Kl.test(u)===!0&&(r[u]=n.props[u]);l.attributes.value=o,l.listeners.value=r}return t.onBeforeUpdate(a),a(),l}const pn="_q_l_",Wr="_q_pc_",Kr="_q_fo_";function Ke(){}function Xr({validate:e,resetValidation:n,requiresQForm:l}){const a=t.inject(Kr,!1);if(a!==!1){const{props:o,proxy:r}=t.getCurrentInstance();Object.assign(r,{validate:e,resetValidation:n}),t.watch(()=>o.disable,u=>{u===!0?(typeof n=="function"&&n(),a.unbindComponent(r)):a.bindComponent(r)}),t.onMounted(()=>{o.disable!==!0&&a.bindComponent(r)}),t.onBeforeUnmount(()=>{o.disable!==!0&&a.unbindComponent(r)})}else l===!0&&console.error("Parent QForm not found on useFormChild()!")}const Xl=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,Zl=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,Jl=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,Gt=/^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])\)$/,en=/^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)\)$/,$n={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=>Xl.test(e),hexaColor:e=>Zl.test(e),hexOrHexaColor:e=>Jl.test(e),rgbColor:e=>Gt.test(e),rgbaColor:e=>en.test(e),rgbOrRgbaColor:e=>Gt.test(e)||en.test(e),hexOrRgbColor:e=>Xl.test(e)||Gt.test(e),hexaOrRgbaColor:e=>Zl.test(e)||en.test(e),anyColor:e=>Jl.test(e)||Gt.test(e)||en.test(e)},Zr=[!0,!1,"ondemand"],Jr={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:e=>Zr.includes(e)}};function Gr(e,n){const{props:l,proxy:a}=t.getCurrentInstance(),o=t.ref(!1),r=t.ref(null),u=t.ref(!1);Xr({validate:E,resetValidation:S});let i=0,c;const f=t.computed(()=>l.rules!==void 0&&l.rules!==null&&l.rules.length!==0),s=t.computed(()=>l.disable!==!0&&f.value===!0&&n.value===!1),h=t.computed(()=>l.error===!0||o.value===!0),p=t.computed(()=>typeof l.errorMessage=="string"&&l.errorMessage.length!==0?l.errorMessage:r.value);t.watch(()=>l.modelValue,()=>{u.value=!0,s.value===!0&&l.lazyRules===!1&&b()});function m(){l.lazyRules!=="ondemand"&&s.value===!0&&u.value===!0&&b()}t.watch(()=>l.reactiveRules,H=>{H===!0?c===void 0&&(c=t.watch(()=>l.rules,m,{immediate:!0,deep:!0})):c!==void 0&&(c(),c=void 0)},{immediate:!0}),t.watch(()=>l.lazyRules,m),t.watch(e,H=>{H===!0?u.value=!0:s.value===!0&&l.lazyRules!=="ondemand"&&b()});function S(){i++,n.value=!1,u.value=!1,o.value=!1,r.value=null,b.cancel()}function E(H=l.modelValue){if(l.disable===!0||f.value===!1)return!0;const M=++i,B=n.value!==!0?()=>{u.value=!0}:()=>{},k=(D,A)=>{D===!0&&B(),o.value=D,r.value=A||null,n.value=!1},q=[];for(let D=0;D<l.rules.length;D++){const A=l.rules[D];let K;if(typeof A=="function"?K=A(H,$n):typeof A=="string"&&$n[A]!==void 0&&(K=$n[A](H)),K===!1||typeof K=="string")return k(!0,K),!1;K!==!0&&K!==void 0&&q.push(K)}return q.length===0?(k(!1),!0):(n.value=!0,Promise.all(q).then(D=>{if(D===void 0||Array.isArray(D)===!1||D.length===0)return M===i&&k(!1),!0;const A=D.find(K=>K===!1||typeof K=="string");return M===i&&k(A!==void 0,A),A===void 0},D=>(M===i&&(console.error(D),k(!0)),!1)))}const b=dl(E,0);return t.onBeforeUnmount(()=>{c==null||c(),b.cancel()}),Object.assign(a,{resetValidation:S,validate:E}),Et(a,"hasError",()=>h.value),{isDirtyModel:u,hasRules:f,hasError:h,errorMessage:p,validate:E,resetValidation:S}}function It(e){return e!=null&&(""+e).length!==0}const ei={...Pe,...Jr,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},yn={...ei,maxlength:[Number,String]},fl=["update:modelValue","clear","focus","blur"];function vl({requiredForAttr:e=!0,tagProp:n,changeEvent:l=!1}={}){const{props:a,proxy:o}=t.getCurrentInstance(),r=Ie(a,o.$q),u=Qr({required:e,getValue:()=>a.for});return{requiredForAttr:e,changeEvent:l,tag:n===!0?t.computed(()=>a.tag):{value:"label"},isDark:r,editable:t.computed(()=>a.disable!==!0&&a.readonly!==!0),innerLoading:t.ref(!1),focused:t.ref(!1),hasPopupOpen:!1,splitAttrs:Ur(),targetUid:u,rootRef:t.ref(null),targetRef:t.ref(null),controlRef:t.ref(null)}}function ml(e){const{props:n,emit:l,slots:a,attrs:o,proxy:r}=t.getCurrentInstance(),{$q:u}=r;let i=null;e.hasValue===void 0&&(e.hasValue=t.computed(()=>It(n.modelValue))),e.emitValue===void 0&&(e.emitValue=L=>{l("update:modelValue",L)}),e.controlEvents===void 0&&(e.controlEvents={onFocusin:V,onFocusout:z}),Object.assign(e,{clearValue:$,onControlFocusin:V,onControlFocusout:z,focus:A}),e.computedCounter===void 0&&(e.computedCounter=t.computed(()=>{if(n.counter!==!1){const L=typeof n.modelValue=="string"||typeof n.modelValue=="number"?(""+n.modelValue).length:Array.isArray(n.modelValue)===!0?n.modelValue.length:0,X=n.maxlength!==void 0?n.maxlength:n.maxValues;return L+(X!==void 0?" / "+X:"")}}));const{isDirtyModel:c,hasRules:f,hasError:s,errorMessage:h,resetValidation:p}=Gr(e.focused,e.innerLoading),m=e.floatingLabel!==void 0?t.computed(()=>n.stackLabel===!0||e.focused.value===!0||e.floatingLabel.value===!0):t.computed(()=>n.stackLabel===!0||e.focused.value===!0||e.hasValue.value===!0),S=t.computed(()=>n.bottomSlots===!0||n.hint!==void 0||f.value===!0||n.counter===!0||n.error!==null),E=t.computed(()=>n.filled===!0?"filled":n.outlined===!0?"outlined":n.borderless===!0?"borderless":n.standout?"standout":"standard"),b=t.computed(()=>`q-field row no-wrap items-start q-field--${E.value}`+(e.fieldClass!==void 0?` ${e.fieldClass.value}`:"")+(n.rounded===!0?" q-field--rounded":"")+(n.square===!0?" q-field--square":"")+(m.value===!0?" q-field--float":"")+(M.value===!0?" q-field--labeled":"")+(n.dense===!0?" q-field--dense":"")+(n.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":"")+(s.value===!0?" q-field--error":"")+(s.value===!0||e.focused.value===!0?" q-field--highlighted":"")+(n.hideBottomSpace!==!0&&S.value===!0?" q-field--with-bottom":"")+(n.disable===!0?" q-field--disabled":n.readonly===!0?" q-field--readonly":"")),H=t.computed(()=>"q-field__control relative-position row no-wrap"+(n.bgColor!==void 0?` bg-${n.bgColor}`:"")+(s.value===!0?" text-negative":typeof n.standout=="string"&&n.standout.length!==0&&e.focused.value===!0?` ${n.standout}`:n.color!==void 0?` text-${n.color}`:"")),M=t.computed(()=>n.labelSlot===!0||n.label!==void 0),B=t.computed(()=>"q-field__label no-pointer-events absolute ellipsis"+(n.labelColor!==void 0&&s.value!==!0?` text-${n.labelColor}`:"")),k=t.computed(()=>({id:e.targetUid.value,editable:e.editable.value,focused:e.focused.value,floatingLabel:m.value,modelValue:n.modelValue,emitValue:e.emitValue})),q=t.computed(()=>{const L={};return e.targetUid.value&&(L.for=e.targetUid.value),n.disable===!0&&(L["aria-disabled"]="true"),L});function D(){var ee;const L=document.activeElement;let X=(ee=e.targetRef)==null?void 0:ee.value;X&&(L===null||L.id!==e.targetUid.value)&&(X.hasAttribute("tabindex")===!0||(X=X.querySelector("[tabindex]")),X!==L&&(X==null||X.focus({preventScroll:!0})))}function A(){gn(D)}function K(){Mr(D);const L=document.activeElement;L!==null&&e.rootRef.value.contains(L)&&L.blur()}function V(L){i!==null&&(clearTimeout(i),i=null),e.editable.value===!0&&e.focused.value===!1&&(e.focused.value=!0,l("focus",L))}function z(L,X){i!==null&&clearTimeout(i),i=setTimeout(()=>{i=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,l("blur",L)),X==null||X())})}function $(L){var X;ge(L),u.platform.is.mobile!==!0?(((X=e.targetRef)==null?void 0:X.value)||e.rootRef.value).focus():e.rootRef.value.contains(document.activeElement)===!0&&document.activeElement.blur(),n.type==="file"&&(e.inputRef.value.value=null),l("update:modelValue",null),e.changeEvent===!0&&l("change",null),l("clear",n.modelValue),t.nextTick(()=>{const ee=c.value;p(),c.value=ee})}function C(L){[13,32].includes(L.keyCode)&&$(L)}function j(){const L=[];return a.prepend!==void 0&&L.push(t.h("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:_e},a.prepend())),L.push(t.h("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},y())),s.value===!0&&n.noErrorIcon===!1&&L.push(O("error",[t.h(qe,{name:u.iconSet.field.error,color:"negative"})])),n.loading===!0||e.innerLoading.value===!0?L.push(O("inner-loading-append",a.loading!==void 0?a.loading():[t.h(To,{color:n.color})])):n.clearable===!0&&e.hasValue.value===!0&&e.editable.value===!0&&L.push(O("inner-clearable-append",[t.h(qe,{class:"q-field__focusable-action",name:n.clearIcon||u.iconSet.field.clear,tabindex:0,role:"button","aria-hidden":"false","aria-label":u.lang.label.clear,onKeyup:C,onClick:$})])),a.append!==void 0&&L.push(t.h("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:_e},a.append())),e.getInnerAppend!==void 0&&L.push(O("inner-append",e.getInnerAppend())),e.getControlChild!==void 0&&L.push(e.getControlChild()),L}function y(){const L=[];return n.prefix!==void 0&&n.prefix!==null&&L.push(t.h("div",{class:"q-field__prefix no-pointer-events row items-center"},n.prefix)),e.getShadowControl!==void 0&&e.hasShadow.value===!0&&L.push(e.getShadowControl()),e.getControl!==void 0?L.push(e.getControl()):a.rawControl!==void 0?L.push(a.rawControl()):a.control!==void 0&&L.push(t.h("div",{ref:e.targetRef,class:"q-field__native row",tabindex:-1,...e.splitAttrs.attributes.value,"data-autofocus":n.autofocus===!0||void 0},a.control(k.value))),M.value===!0&&L.push(t.h("div",{class:B.value},xe(a.label,n.label))),n.suffix!==void 0&&n.suffix!==null&&L.push(t.h("div",{class:"q-field__suffix no-pointer-events row items-center"},n.suffix)),L.concat(xe(a.default))}function T(){let L,X;s.value===!0?h.value!==null?(L=[t.h("div",{role:"alert"},h.value)],X=`q--slot-error-${h.value}`):(L=xe(a.error),X="q--slot-error"):(n.hideHint!==!0||e.focused.value===!0)&&(n.hint!==void 0?(L=[t.h("div",n.hint)],X=`q--slot-hint-${n.hint}`):(L=xe(a.hint),X="q--slot-hint"));const ee=n.counter===!0||a.counter!==void 0;if(n.hideBottomSpace===!0&&ee===!1&&L===void 0)return;const x=t.h("div",{key:X,class:"q-field__messages col"},L);return t.h("div",{class:"q-field__bottom row items-start q-field__bottom--"+(n.hideBottomSpace!==!0?"animated":"stale"),onClick:_e},[n.hideBottomSpace===!0?x:t.h(t.Transition,{name:"q-transition--field-message"},()=>x),ee===!0?t.h("div",{class:"q-field__counter"},a.counter!==void 0?a.counter():e.computedCounter.value):null])}function O(L,X){return X===null?null:t.h("div",{key:L,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},X)}let W=!1;return t.onDeactivated(()=>{W=!0}),t.onActivated(()=>{W===!0&&n.autofocus===!0&&r.focus()}),n.autofocus===!0&&t.onMounted(()=>{r.focus()}),t.onBeforeUnmount(()=>{i!==null&&clearTimeout(i)}),Object.assign(r,{focus:A,blur:K}),function(){const X=e.getControl===void 0&&a.control===void 0?{...e.splitAttrs.attributes.value,"data-autofocus":n.autofocus===!0||void 0,...q.value}:q.value;return t.h(e.tag.value,{ref:e.rootRef,class:[b.value,o.class],style:o.style,...X},[a.before!==void 0?t.h("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:_e},a.before()):null,t.h("div",{class:"q-field__inner relative-position col self-stretch"},[t.h("div",{ref:e.controlRef,class:H.value,tabindex:-1,...e.controlEvents},j()),S.value===!0?T():null]),a.after!==void 0?t.h("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:_e},a.after()):null])}}const ti=ae({name:"QField",inheritAttrs:!1,props:{...yn,tag:{type:String,default:"label"}},emits:fl,setup(){return ml(vl({tagProp:!0}))}}),ni={xs:8,sm:10,md:14,lg:20,xl:24},li=ae({name:"QChip",props:{...Pe,...Nt,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:n,emit:l}){const{proxy:{$q:a}}=t.getCurrentInstance(),o=Ie(e,a),r=jt(e,ni),u=t.computed(()=>e.selected===!0||e.icon!==void 0),i=t.computed(()=>e.selected===!0?e.iconSelected||a.iconSet.chip.selected:e.icon),c=t.computed(()=>e.iconRemove||a.iconSet.chip.remove),f=t.computed(()=>e.disable===!1&&(e.clickable===!0||e.selected!==null)),s=t.computed(()=>{const b=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}`:"")+(b?` text-${b} 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":"")+(f.value===!0?" q-chip--clickable cursor-pointer non-selectable q-hoverable":"")+(e.square===!0?" q-chip--square":"")+(o.value===!0?" q-chip--dark q-dark":"")}),h=t.computed(()=>{const b=e.disable===!0?{tabindex:-1,"aria-disabled":"true"}:{tabindex:e.tabindex||0},H={...b,role:"button","aria-hidden":"false","aria-label":e.removeAriaLabel||a.lang.label.remove};return{chip:b,remove:H}});function p(b){b.keyCode===13&&m(b)}function m(b){e.disable||(l("update:selected",!e.selected),l("click",b))}function S(b){(b.keyCode===void 0||b.keyCode===13)&&(ge(b),e.disable===!1&&(l("update:modelValue",!1),l("remove")))}function E(){const b=[];f.value===!0&&b.push(t.h("div",{class:"q-focus-helper"})),u.value===!0&&b.push(t.h(qe,{class:"q-chip__icon q-chip__icon--left",name:i.value}));const H=e.label!==void 0?[t.h("div",{class:"ellipsis"},[e.label])]:void 0;return b.push(t.h("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},yo(n.default,H))),e.iconRight&&b.push(t.h(qe,{class:"q-chip__icon q-chip__icon--right",name:e.iconRight})),e.removable===!0&&b.push(t.h(qe,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:c.value,...h.value.remove,onClick:S,onKeyup:S})),b}return()=>{if(e.modelValue===!1)return;const b={class:s.value,style:r.value};return f.value===!0&&Object.assign(b,h.value.chip,{onClick:m,onKeyup:p}),xa("div",b,E(),"ripple",e.ripple!==!1&&e.disable!==!0,()=>[[Do,e.ripple]])}}}),el=ae({name:"QItem",props:{...Pe,...Mo,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:n,emit:l}){const{proxy:{$q:a}}=t.getCurrentInstance(),o=Ie(e,a),{hasLink:r,linkAttrs:u,linkClass:i,linkTag:c,navigateOnClick:f}=rl(),s=t.ref(null),h=t.ref(null),p=t.computed(()=>e.clickable===!0||r.value===!0||e.tag==="label"),m=t.computed(()=>e.disable!==!0&&p.value===!0),S=t.computed(()=>"q-item q-item-type row no-wrap"+(e.dense===!0?" q-item--dense":"")+(o.value===!0?" q-item--dark":"")+(r.value===!0&&e.active===null?i.value:e.active===!0?` q-item--active${e.activeClass!==void 0?` ${e.activeClass}`:""}`:"")+(e.disable===!0?" disabled":"")+(m.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":""):"")),E=t.computed(()=>e.insetLevel===void 0?null:{["padding"+(a.lang.rtl===!0?"Right":"Left")]:16+e.insetLevel*56+"px"});function b(B){m.value===!0&&(h.value!==null&&B.qAvoidFocus!==!0&&(B.qKeyEvent!==!0&&document.activeElement===s.value?h.value.focus():document.activeElement===h.value&&s.value.focus()),f(B))}function H(B){if(m.value===!0&&tt(B,[13,32])===!0){ge(B),B.qKeyEvent=!0;const k=new MouseEvent("click",B);k.qKeyEvent=!0,s.value.dispatchEvent(k)}l("keyup",B)}function M(){const B=po(n.default,[]);return m.value===!0&&B.unshift(t.h("div",{class:"q-focus-helper",tabindex:-1,ref:h})),B}return()=>{const B={ref:s,class:S.value,style:E.value,role:"listitem",onClick:b,onKeyup:H};return m.value===!0?(B.tabindex=e.tabindex||"0",Object.assign(B,u.value)):p.value===!0&&(B["aria-disabled"]="true"),t.h(c.value,B,M())}}}),tl=ae({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(e,{slots:n}){const l=t.computed(()=>`q-item__section column q-item__section--${e.avatar===!0||e.side===!0||e.thumbnail===!0?"side":"main"}`+(e.top===!0?" q-item__section--top justify-start":" justify-center")+(e.avatar===!0?" q-item__section--avatar":"")+(e.thumbnail===!0?" q-item__section--thumbnail":"")+(e.noWrap===!0?" q-item__section--nowrap":""));return()=>t.h("div",{class:l.value},xe(n.default))}}),oi=ae({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(e,{slots:n}){const l=t.computed(()=>parseInt(e.lines,10)),a=t.computed(()=>"q-item__label"+(e.overline===!0?" q-item__label--overline text-overline":"")+(e.caption===!0?" q-item__label--caption text-caption":"")+(e.header===!0?" q-item__label--header":"")+(l.value===1?" ellipsis":"")),o=t.computed(()=>e.lines!==void 0&&l.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":l.value}:null);return()=>t.h("div",{style:o.value,class:a.value},xe(n.default))}});function ai(e,n,l){function a(){}return t.onBeforeUnmount(()=>{e.value===!0&&void 0}),{removeFromHistory:a,addToHistory(){}}}let Ot=0,On,An,Lt,Ln=!1,Gl,eo,to,dt=null;function ri(e){ii(e)&&ge(e)}function ii(e){if(e.target===document.body||e.target.classList.contains("q-layout__backdrop"))return!0;const n=Na(e),l=e.shiftKey&&!e.deltaX,a=!l&&Math.abs(e.deltaX)<=Math.abs(e.deltaY),o=l||a?e.deltaY:e.deltaX;for(let r=0;r<n.length;r++){const u=n[r];if(br(u,a))return a?o<0&&u.scrollTop===0?!0:o>0&&u.scrollTop+u.clientHeight===u.scrollHeight:o<0&&u.scrollLeft===0?!0:o>0&&u.scrollLeft+u.clientWidth===u.scrollWidth}return!0}function no(e){e.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function tn(e){Ln!==!0&&(Ln=!0,requestAnimationFrame(()=>{Ln=!1;const{height:n}=e.target,{clientHeight:l,scrollTop:a}=document.scrollingElement;(Lt===void 0||n!==window.innerHeight)&&(Lt=l-n,document.scrollingElement.scrollTop=a),a>Lt&&(document.scrollingElement.scrollTop-=Math.ceil((a-Lt)/8))}))}function lo(e){const n=document.body,l=window.visualViewport!==void 0;if(e==="add"){const{overflowY:a,overflowX:o}=window.getComputedStyle(n);On=sl(window),An=ul(window),Gl=n.style.left,eo=n.style.top,to=window.location.href,n.style.left=`-${On}px`,n.style.top=`-${An}px`,o!=="hidden"&&(o==="scroll"||n.scrollWidth>window.innerWidth)&&n.classList.add("q-body--force-scrollbar-x"),a!=="hidden"&&(a==="scroll"||n.scrollHeight>window.innerHeight)&&n.classList.add("q-body--force-scrollbar-y"),n.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,ye.is.ios===!0&&(l===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",tn,pe.passiveCapture),window.visualViewport.addEventListener("scroll",tn,pe.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",no,pe.passiveCapture))}ye.is.desktop===!0&&ye.is.mac===!0&&window[`${e}EventListener`]("wheel",ri,pe.notPassive),e==="remove"&&(ye.is.ios===!0&&(l===!0?(window.visualViewport.removeEventListener("resize",tn,pe.passiveCapture),window.visualViewport.removeEventListener("scroll",tn,pe.passiveCapture)):window.removeEventListener("scroll",no,pe.passiveCapture)),n.classList.remove("q-body--prevent-scroll"),n.classList.remove("q-body--force-scrollbar-x"),n.classList.remove("q-body--force-scrollbar-y"),document.qScrollPrevented=!1,n.style.left=Gl,n.style.top=eo,window.location.href===to&&window.scrollTo(On,An),Lt=void 0)}function ui(e){let n="add";if(e===!0){if(Ot++,dt!==null){clearTimeout(dt),dt=null;return}if(Ot>1)return}else{if(Ot===0||(Ot--,Ot>0))return;if(n="remove",ye.is.ios===!0&&ye.is.nativeMobile===!0){dt!==null&&clearTimeout(dt),dt=setTimeout(()=>{lo(n),dt=null},100);return}}lo(n)}function si(){let e;return{preventBodyScroll(n){n!==e&&(e!==void 0||n===!0)&&(e=n,ui(n))}}}let nn=0;const ci={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"},oo={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},ia=ae({name:"QDialog",inheritAttrs:!1,props:{...Qo,...Jo,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:[...Uo,"shake","click","escapeKey"],setup(e,{slots:n,emit:l,attrs:a}){const o=t.getCurrentInstance(),r=t.ref(null),u=t.ref(!1),i=t.ref(!1);let c=null,f=null,s,h;const p=t.computed(()=>e.persistent!==!0&&e.noRouteDismiss!==!0&&e.seamless!==!0),{preventBodyScroll:m}=si(),{registerTimeout:S}=ta(),{registerTick:E,removeTick:b}=ea(),{transitionProps:H,transitionStyle:M}=Go(e,()=>oo[e.position][0],()=>oo[e.position][1]),B=t.computed(()=>M.value+(e.backdropFilter!==void 0?`;backdrop-filter:${e.backdropFilter};-webkit-backdrop-filter:${e.backdropFilter}`:"")),{showPortal:k,hidePortal:q,portalIsAccessible:D,renderPortal:A}=Zo(o,r,Q,"dialog"),{hide:K}=Wo({showing:u,hideOnRouteChange:p,handleShow:j,handleHide:y,processOnMount:!0});ai(u);const V=t.computed(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${e.maximized===!0?"maximized":"minimized"} q-dialog__inner--${e.position} ${ci[e.position]}`+(i.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":"")),z=t.computed(()=>u.value===!0&&e.seamless!==!0),$=t.computed(()=>e.autoClose===!0?{onClick:ee}:{}),C=t.computed(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${z.value===!0?"modal":"seamless"}`,a.class]);t.watch(()=>e.maximized,I=>{u.value===!0&&X(I)}),t.watch(z,I=>{m(I),I===!0?(aa(w),la(W)):(Zn(w),un(W))});function j(I){var J;f=e.noRefocus===!1&&document.activeElement!==null?document.activeElement:null,X(e.maximized),k(),i.value=!0,e.noFocus!==!0?((J=document.activeElement)==null||J.blur(),E(T)):b(),S(()=>{if(o.proxy.$q.platform.is.ios===!0){if(e.seamless!==!0&&document.activeElement){const{top:Z,bottom:G}=document.activeElement.getBoundingClientRect(),{innerHeight:ie}=window,R=window.visualViewport!==void 0?window.visualViewport.height:ie;Z>0&&G>R/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-R,G>=ie?1/0:Math.ceil(document.scrollingElement.scrollTop+G-R/2))),document.activeElement.scrollIntoView()}h=!0,r.value.click(),h=!1}k(!0),i.value=!1,l("show",I)},e.transitionDuration)}function y(I){b(),L(!0),i.value=!0,q(),f!==null&&((((I==null?void 0:I.type.indexOf("key"))===0?f.closest('[tabindex]:not([tabindex^="-"])'):void 0)||f).focus(),f=null),S(()=>{q(!0),i.value=!1,l("hide",I)},e.transitionDuration)}function T(I){gn(()=>{let J=r.value;if(J!==null){if(I!==void 0){const Z=J.querySelector(I);if(Z!==null){Z.focus({preventScroll:!0});return}}J.contains(document.activeElement)!==!0&&(J=J.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||J.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||J.querySelector("[autofocus], [data-autofocus]")||J,J.focus({preventScroll:!0}))}})}function O(I){I&&typeof I.focus=="function"?I.focus({preventScroll:!0}):T(),l("shake");const J=r.value;J!==null&&(J.classList.remove("q-animate--scale"),J.classList.add("q-animate--scale"),c!==null&&clearTimeout(c),c=setTimeout(()=>{c=null,r.value!==null&&(J.classList.remove("q-animate--scale"),T())},170))}function W(){e.seamless!==!0&&(e.persistent===!0||e.noEscDismiss===!0?e.maximized!==!0&&e.noShake!==!0&&O():(l("escapeKey"),K()))}function L(I){c!==null&&(clearTimeout(c),c=null),(I===!0||u.value===!0)&&(X(!1),e.seamless!==!0&&(m(!1),Zn(w),un(W))),I!==!0&&(f=null)}function X(I){I===!0?s!==!0&&(nn<1&&document.body.classList.add("q-body--dialog"),nn++,s=!0):s===!0&&(nn<2&&document.body.classList.remove("q-body--dialog"),nn--,s=!1)}function ee(I){h!==!0&&(K(I),l("click",I))}function x(I){e.persistent!==!0&&e.noBackdropDismiss!==!0?K(I):e.noShake!==!0&&O()}function w(I){e.allowFocusOutside!==!0&&D.value===!0&&Bo(r.value,I.target)!==!0&&T('[tabindex]:not([tabindex="-1"])')}Object.assign(o.proxy,{focus:T,shake:O,__updateRefocusTarget(I){f=I||null}}),t.onBeforeUnmount(L);function Q(){return t.h("div",{role:"dialog","aria-modal":z.value===!0?"true":"false",...a,class:C.value},[t.h(t.Transition,{name:"q-transition--fade",appear:!0},()=>z.value===!0?t.h("div",{class:"q-dialog__backdrop fixed-full",style:B.value,"aria-hidden":"true",tabindex:-1,onClick:x}):null),t.h(t.Transition,H.value,()=>u.value===!0?t.h("div",{ref:r,class:V.value,style:M.value,tabindex:-1,...$.value},xe(n.default)):null)])}return A}});let dn=!1;{const e=document.createElement("div");e.setAttribute("dir","rtl"),Object.assign(e.style,{width:"1px",height:"1px",overflow:"auto"});const n=document.createElement("div");Object.assign(n.style,{width:"1000px",height:"1px"}),document.body.appendChild(e),e.appendChild(n),e.scrollLeft=-1e3,dn=e.scrollLeft>=0,e.remove()}const Oe=1e3,di=["start","center","end","start-force","center-force","end-force"],ua=Array.prototype.filter,fi=window.getComputedStyle(document.body).overflowAnchor===void 0?vn:function(e,n){e!==null&&(e._qOverflowAnimationFrame!==void 0&&cancelAnimationFrame(e._qOverflowAnimationFrame),e._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(e===null)return;e._qOverflowAnimationFrame=void 0;const l=e.children||[];ua.call(l,o=>o.dataset&&o.dataset.qVsAnchor!==void 0).forEach(o=>{delete o.dataset.qVsAnchor});const a=l[n];a!=null&&a.dataset&&(a.dataset.qVsAnchor="")}))};function qt(e,n){return e+n}function Rn(e,n,l,a,o,r,u,i){const c=e===window?document.scrollingElement||document.documentElement:e,f=o===!0?"offsetWidth":"offsetHeight",s={scrollStart:0,scrollViewSize:-u-i,scrollMaxSize:0,offsetStart:-u,offsetEnd:-i};if(o===!0?(e===window?(s.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,s.scrollViewSize+=document.documentElement.clientWidth):(s.scrollStart=c.scrollLeft,s.scrollViewSize+=c.clientWidth),s.scrollMaxSize=c.scrollWidth,r===!0&&(s.scrollStart=(dn===!0?s.scrollMaxSize-s.scrollViewSize:0)-s.scrollStart)):(e===window?(s.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,s.scrollViewSize+=document.documentElement.clientHeight):(s.scrollStart=c.scrollTop,s.scrollViewSize+=c.clientHeight),s.scrollMaxSize=c.scrollHeight),l!==null)for(let h=l.previousElementSibling;h!==null;h=h.previousElementSibling)h.classList.contains("q-virtual-scroll--skip")===!1&&(s.offsetStart+=h[f]);if(a!==null)for(let h=a.nextElementSibling;h!==null;h=h.nextElementSibling)h.classList.contains("q-virtual-scroll--skip")===!1&&(s.offsetEnd+=h[f]);if(n!==e){const h=c.getBoundingClientRect(),p=n.getBoundingClientRect();o===!0?(s.offsetStart+=p.left-h.left,s.offsetEnd-=p.width):(s.offsetStart+=p.top-h.top,s.offsetEnd-=p.height),e!==window&&(s.offsetStart+=s.scrollStart),s.offsetEnd+=s.scrollMaxSize-s.offsetStart}return s}function ao(e,n,l,a){n==="end"&&(n=(e===window?document.body:e)[l===!0?"scrollWidth":"scrollHeight"]),e===window?l===!0?(a===!0&&(n=(dn===!0?document.body.scrollWidth-document.documentElement.clientWidth:0)-n),window.scrollTo(n,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,n):l===!0?(a===!0&&(n=(dn===!0?e.scrollWidth-e.offsetWidth:0)-n),e.scrollLeft=n):e.scrollTop=n}function At(e,n,l,a){if(l>=a)return 0;const o=n.length,r=Math.floor(l/Oe),u=Math.floor((a-1)/Oe)+1;let i=e.slice(r,u).reduce(qt,0);return l%Oe!==0&&(i-=n.slice(r*Oe,l).reduce(qt,0)),a%Oe!==0&&a!==o&&(i-=n.slice(a,u*Oe).reduce(qt,0)),i}const vi={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]},ro={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,...vi};function mi({virtualScrollLength:e,getVirtualScrollTarget:n,getVirtualScrollEl:l,virtualScrollItemSizeComputed:a}){const o=t.getCurrentInstance(),{props:r,emit:u,proxy:i}=o,{$q:c}=i;let f,s,h,p=[],m;const S=t.ref(0),E=t.ref(0),b=t.ref({}),H=t.ref(null),M=t.ref(null),B=t.ref(null),k=t.ref({from:0,to:0}),q=t.computed(()=>r.tableColspan!==void 0?r.tableColspan:100);a===void 0&&(a=t.computed(()=>r.virtualScrollItemSize));const D=t.computed(()=>a.value+";"+r.virtualScrollHorizontal),A=t.computed(()=>D.value+";"+r.virtualScrollSliceRatioBefore+";"+r.virtualScrollSliceRatioAfter);t.watch(A,()=>{O()}),t.watch(D,K);function K(){T(s,!0)}function V(x){T(x===void 0?s:x)}function z(x,w){const Q=n();if(Q==null||Q.nodeType===8)return;const I=Rn(Q,l(),H.value,M.value,r.virtualScrollHorizontal,c.lang.rtl,r.virtualScrollStickySizeStart,r.virtualScrollStickySizeEnd);h!==I.scrollViewSize&&O(I.scrollViewSize),C(Q,I,Math.min(e.value-1,Math.max(0,parseInt(x,10)||0)),0,di.indexOf(w)!==-1?w:s!==-1&&x>s?"end":"start")}function $(){const x=n();if(x==null||x.nodeType===8)return;const w=Rn(x,l(),H.value,M.value,r.virtualScrollHorizontal,c.lang.rtl,r.virtualScrollStickySizeStart,r.virtualScrollStickySizeEnd),Q=e.value-1,I=w.scrollMaxSize-w.offsetStart-w.offsetEnd-E.value;if(f===w.scrollStart)return;if(w.scrollMaxSize<=0){C(x,w,0,0);return}h!==w.scrollViewSize&&O(w.scrollViewSize),j(k.value.from);const J=Math.floor(w.scrollMaxSize-Math.max(w.scrollViewSize,w.offsetEnd)-Math.min(m[Q],w.scrollViewSize/2));if(J>0&&Math.ceil(w.scrollStart)>=J){C(x,w,Q,w.scrollMaxSize-w.offsetEnd-p.reduce(qt,0));return}let Z=0,G=w.scrollStart-w.offsetStart,ie=G;if(G<=I&&G+w.scrollViewSize>=S.value)G-=S.value,Z=k.value.from,ie=G;else for(let R=0;G>=p[R]&&Z<Q;R++)G-=p[R],Z+=Oe;for(;G>0&&Z<Q;)G-=m[Z],G>-w.scrollViewSize?(Z++,ie=G):ie=m[Z]+G;C(x,w,Z,ie)}function C(x,w,Q,I,J){const Z=typeof J=="string"&&J.indexOf("-force")!==-1,G=Z===!0?J.replace("-force",""):J,ie=G!==void 0?G:"start";let R=Math.max(0,Q-b.value[ie]),be=R+b.value.total;be>e.value&&(be=e.value,R=Math.max(0,be-b.value.total)),f=w.scrollStart;const ue=R!==k.value.from||be!==k.value.to;if(ue===!1&&G===void 0){L(Q);return}const{activeElement:fe}=document,ke=B.value;ue===!0&&ke!==null&&ke!==fe&&ke.contains(fe)===!0&&(ke.addEventListener("focusout",y),setTimeout(()=>{ke==null||ke.removeEventListener("focusout",y)})),fi(ke,Q-R);const Ne=G!==void 0?m.slice(R,Q).reduce(qt,0):0;if(ue===!0){const Le=be>=k.value.from&&R<=k.value.to?k.value.to:be;k.value={from:R,to:Le},S.value=At(p,m,0,R),E.value=At(p,m,be,e.value),requestAnimationFrame(()=>{k.value.to!==be&&f===w.scrollStart&&(k.value={from:k.value.from,to:be},E.value=At(p,m,be,e.value))})}requestAnimationFrame(()=>{if(f!==w.scrollStart)return;ue===!0&&j(R);const Le=m.slice(R,Q).reduce(qt,0),Me=Le+w.offsetStart+S.value,we=Me+m[Q];let lt=Me+I;if(G!==void 0){const zt=Le-Ne,ot=w.scrollStart+zt;lt=Z!==!0&&ot<Me&&we<ot+w.scrollViewSize?ot:G==="end"?we-w.scrollViewSize:Me-(G==="start"?0:Math.round((w.scrollViewSize-m[Q])/2))}f=lt,ao(x,lt,r.virtualScrollHorizontal,c.lang.rtl),L(Q)})}function j(x){const w=B.value;if(w){const Q=ua.call(w.children,R=>R.classList&&R.classList.contains("q-virtual-scroll--skip")===!1),I=Q.length,J=r.virtualScrollHorizontal===!0?R=>R.getBoundingClientRect().width:R=>R.offsetHeight;let Z=x,G,ie;for(let R=0;R<I;){for(G=J(Q[R]),R++;R<I&&Q[R].classList.contains("q-virtual-scroll--with-prev")===!0;)G+=J(Q[R]),R++;ie=G-m[Z],ie!==0&&(m[Z]+=ie,p[Math.floor(Z/Oe)]+=ie),Z++}}}function y(){var x;(x=B.value)==null||x.focus()}function T(x,w){const Q=1*a.value;(w===!0||Array.isArray(m)===!1)&&(m=[]);const I=m.length;m.length=e.value;for(let Z=e.value-1;Z>=I;Z--)m[Z]=Q;const J=Math.floor((e.value-1)/Oe);p=[];for(let Z=0;Z<=J;Z++){let G=0;const ie=Math.min((Z+1)*Oe,e.value);for(let R=Z*Oe;R<ie;R++)G+=m[R];p.push(G)}s=-1,f=void 0,S.value=At(p,m,0,k.value.from),E.value=At(p,m,k.value.to,e.value),x>=0?(j(k.value.from),t.nextTick(()=>{z(x)})):X()}function O(x){if(x===void 0&&typeof window<"u"){const G=n();G!=null&&G.nodeType!==8&&(x=Rn(G,l(),H.value,M.value,r.virtualScrollHorizontal,c.lang.rtl,r.virtualScrollStickySizeStart,r.virtualScrollStickySizeEnd).scrollViewSize)}h=x;const w=parseFloat(r.virtualScrollSliceRatioBefore)||0,Q=parseFloat(r.virtualScrollSliceRatioAfter)||0,I=1+w+Q,J=x===void 0||x<=0?1:Math.ceil(x/a.value),Z=Math.max(1,J,Math.ceil((r.virtualScrollSliceSize>0?r.virtualScrollSliceSize:10)/I));b.value={total:Math.ceil(Z*I),start:Math.ceil(Z*w),center:Math.ceil(Z*(.5+w)),end:Math.ceil(Z*(1+w)),view:J}}function W(x,w){const Q=r.virtualScrollHorizontal===!0?"width":"height",I={["--q-virtual-scroll-item-"+Q]:a.value+"px"};return[x==="tbody"?t.h(x,{class:"q-virtual-scroll__padding",key:"before",ref:H},[t.h("tr",[t.h("td",{style:{[Q]:`${S.value}px`,...I},colspan:q.value})])]):t.h(x,{class:"q-virtual-scroll__padding",key:"before",ref:H,style:{[Q]:`${S.value}px`,...I}}),t.h(x,{class:"q-virtual-scroll__content",key:"content",ref:B,tabindex:-1},w.flat()),x==="tbody"?t.h(x,{class:"q-virtual-scroll__padding",key:"after",ref:M},[t.h("tr",[t.h("td",{style:{[Q]:`${E.value}px`,...I},colspan:q.value})])]):t.h(x,{class:"q-virtual-scroll__padding",key:"after",ref:M,style:{[Q]:`${E.value}px`,...I}})]}function L(x){s!==x&&(r.onVirtualScroll!==void 0&&u("virtualScroll",{index:x,from:k.value.from,to:k.value.to-1,direction:x<s?"decrease":"increase",ref:i}),s=x)}O();const X=dl($,c.platform.is.ios===!0?120:35);t.onBeforeMount(()=>{O()});let ee=!1;return t.onDeactivated(()=>{ee=!0}),t.onActivated(()=>{if(ee!==!0)return;const x=n();f!==void 0&&x!==void 0&&x!==null&&x.nodeType!==8?ao(x,f,r.virtualScrollHorizontal,c.lang.rtl):z(s)}),t.onBeforeUnmount(()=>{X.cancel()}),Object.assign(i,{scrollTo:z,reset:K,refresh:V}),{virtualScrollSliceRange:k,virtualScrollSliceSizeComputed:b,setVirtualScrollSize:O,onVirtualScrollEvt:X,localResetVirtualScroll:T,padVirtualScroll:W,scrollTo:z,reset:K,refresh:V}}const hi=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,gi=/[\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,bi=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,pi=/[a-z0-9_ -]$/i;function sa(e){return function(l){if(l.type==="compositionend"||l.type==="change"){if(l.target.qComposing!==!0)return;l.target.qComposing=!1,e(l)}else l.type==="compositionupdate"&&l.target.qComposing!==!0&&typeof l.data=="string"&&(ye.is.firefox===!0?pi.test(l.data)===!1:hi.test(l.data)===!0||gi.test(l.data)===!0||bi.test(l.data)===!0)===!0&&(l.target.qComposing=!0)}}function Ge(e,n){if(e===n)return!0;if(e!==null&&n!==null&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;let l,a;if(e.constructor===Array){if(l=e.length,l!==n.length)return!1;for(a=l;a--!==0;)if(Ge(e[a],n[a])!==!0)return!1;return!0}if(e.constructor===Map){if(e.size!==n.size)return!1;let r=e.entries();for(a=r.next();a.done!==!0;){if(n.has(a.value[0])!==!0)return!1;a=r.next()}for(r=e.entries(),a=r.next();a.done!==!0;){if(Ge(a.value[1],n.get(a.value[0]))!==!0)return!1;a=r.next()}return!0}if(e.constructor===Set){if(e.size!==n.size)return!1;const r=e.entries();for(a=r.next();a.done!==!0;){if(n.has(a.value[0])!==!0)return!1;a=r.next()}return!0}if(e.buffer!=null&&e.buffer.constructor===ArrayBuffer){if(l=e.length,l!==n.length)return!1;for(a=l;a--!==0;)if(e[a]!==n[a])return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();const o=Object.keys(e).filter(r=>e[r]!==void 0);if(l=o.length,l!==Object.keys(n).filter(r=>n[r]!==void 0).length)return!1;for(a=l;a--!==0;){const r=o[a];if(Ge(e[r],n[r])!==!0)return!1}return!0}return e!==e&&n!==n}function yi(e){return e!==null&&typeof e=="object"&&Array.isArray(e)!==!0}const io=e=>["add","add-unique","toggle"].includes(e),wi=".*+?^${}()|[]\\",Si=Object.keys(yn);function Hn(e,n){if(typeof e=="function")return e;const l=e!==void 0?e:n;return a=>a!==null&&typeof a=="object"&&l in a?a[l]:a}const ca=ae({name:"QSelect",inheritAttrs:!1,props:{...ro,...hn,...yn,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:io},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:ro.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...fl,"add","remove","inputValue","keyup","keypress","keydown","popupShow","popupHide","filterAbort"],setup(e,{slots:n,emit:l}){const{proxy:a}=t.getCurrentInstance(),{$q:o}=a,r=t.ref(!1),u=t.ref(!1),i=t.ref(-1),c=t.ref(""),f=t.ref(!1),s=t.ref(!1);let h=null,p=null,m,S,E,b=null,H,M,B,k;const q=t.ref(null),D=t.ref(null),A=t.ref(null),K=t.ref(null),V=t.ref(null),z=Oo(e),$=sa(pt),C=t.computed(()=>Array.isArray(e.options)?e.options.length:0),j=t.computed(()=>e.virtualScrollItemSize===void 0?e.optionsDense===!0?24:48:e.virtualScrollItemSize),{virtualScrollSliceRange:y,virtualScrollSliceSizeComputed:T,localResetVirtualScroll:O,padVirtualScroll:W,onVirtualScrollEvt:L,scrollTo:X,setVirtualScrollSize:ee}=mi({virtualScrollLength:C,getVirtualScrollTarget:bt,getVirtualScrollEl:Bt,virtualScrollItemSizeComputed:j}),x=vl(),w=t.computed(()=>{const v=e.mapOptions===!0&&e.multiple!==!0,P=e.modelValue!==void 0&&(e.modelValue!==null||v===!0)?e.multiple===!0&&Array.isArray(e.modelValue)?e.modelValue:[e.modelValue]:[];if(e.mapOptions===!0&&Array.isArray(e.options)===!0){const Y=e.mapOptions===!0&&m!==void 0?m:[],le=P.map(se=>Qt(se,Y));return e.modelValue===null&&v===!0?le.filter(se=>se!==null):le}return P}),Q=t.computed(()=>{const v={};return Si.forEach(P=>{const Y=e[P];Y!==void 0&&(v[P]=Y)}),v}),I=t.computed(()=>e.optionsDark===null?x.isDark.value:e.optionsDark),J=t.computed(()=>It(w.value)),Z=t.computed(()=>{let v="q-field__input q-placeholder col";return e.hideSelected===!0||w.value.length===0?[v,e.inputClass]:(v+=" q-field__input--padding",e.inputClass===void 0?v:[v,e.inputClass])}),G=t.computed(()=>(e.virtualScrollHorizontal===!0?"q-virtual-scroll--horizontal":"")+(e.popupContentClass?" "+e.popupContentClass:"")),ie=t.computed(()=>C.value===0),R=t.computed(()=>w.value.map(v=>Ce.value(v)).join(", ")),be=t.computed(()=>e.displayValue!==void 0?e.displayValue:R.value),ue=t.computed(()=>e.optionsHtml===!0?()=>!0:v=>(v==null?void 0:v.html)===!0),fe=t.computed(()=>e.displayValueHtml===!0||e.displayValue===void 0&&(e.optionsHtml===!0||w.value.some(ue.value))),ke=t.computed(()=>x.focused.value===!0?e.tabindex:-1),Ne=t.computed(()=>{const v={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":`${x.targetUid.value}_lb`};return i.value>=0&&(v["aria-activedescendant"]=`${x.targetUid.value}_${i.value}`),v}),Le=t.computed(()=>({id:`${x.targetUid.value}_lb`,role:"listbox","aria-multiselectable":e.multiple===!0?"true":"false"})),Me=t.computed(()=>w.value.map((v,P)=>({index:P,opt:v,html:ue.value(v),selected:!0,removeAtIndex:Sn,toggleOption:$e,tabindex:ke.value}))),we=t.computed(()=>{if(C.value===0)return[];const{from:v,to:P}=y.value;return e.options.slice(v,P).map((Y,le)=>{const se=Re.value(Y)===!0,ve=ut(Y)===!0,ce=v+le,me={clickable:!0,active:ve,activeClass:ot.value,manualFocus:!0,focused:!1,disable:se,tabindex:-1,dense:e.optionsDense,dark:I.value,role:"option","aria-selected":ve===!0?"true":"false",id:`${x.targetUid.value}_${ce}`,onClick:()=>{$e(Y)}};return se!==!0&&(i.value===ce&&(me.focused=!0),o.platform.is.desktop===!0&&(me.onMousemove=()=>{r.value===!0&&je(ce)})),{index:ce,opt:Y,html:ue.value(Y),label:Ce.value(Y),selected:me.active,focused:me.focused,toggleOption:$e,setOptionIndex:je,itemProps:me}})}),lt=t.computed(()=>e.dropdownIcon!==void 0?e.dropdownIcon:o.iconSet.arrow.dropdown),zt=t.computed(()=>e.optionsCover===!1&&e.outlined!==!0&&e.standout!==!0&&e.borderless!==!0&&e.rounded!==!0),ot=t.computed(()=>e.optionsSelectedClass!==void 0?e.optionsSelectedClass:e.color!==void 0?`text-${e.color}`:""),Ve=t.computed(()=>Hn(e.optionValue,"value")),Ce=t.computed(()=>Hn(e.optionLabel,"label")),Re=t.computed(()=>Hn(e.optionDisable,"disable")),at=t.computed(()=>w.value.map(Ve.value)),wn=t.computed(()=>{const v={onInput:pt,onChange:$,onKeydown:Ye,onKeyup:Kt,onKeypress:He,onFocus:Ut,onClick(P){S===!0&&Ee(P)}};return v.onCompositionstart=v.onCompositionupdate=v.onCompositionend=$,v});t.watch(w,v=>{m=v,e.useInput===!0&&e.fillInput===!0&&e.multiple!==!0&&x.innerLoading.value!==!0&&(u.value!==!0&&r.value!==!0||J.value!==!0)&&(E!==!0&&Te(),(u.value===!0||r.value===!0)&&Fe(""))},{immediate:!0}),t.watch(()=>e.fillInput,Te),t.watch(r,_n),t.watch(C,wa);function Yt(v){return e.emitValue===!0?Ve.value(v):v}function rt(v){if(v!==-1&&v<w.value.length)if(e.multiple===!0){const P=e.modelValue.slice();l("remove",{index:v,value:P.splice(v,1)[0]}),l("update:modelValue",P)}else l("update:modelValue",null)}function Sn(v){rt(v),x.focus()}function Tt(v,P){const Y=Yt(v);if(e.multiple!==!0){e.fillInput===!0&&ct(Ce.value(v),!0,!0),l("update:modelValue",Y);return}if(w.value.length===0){l("add",{index:0,value:Y}),l("update:modelValue",e.multiple===!0?[Y]:Y);return}if(P===!0&&ut(v)===!0||e.maxValues!==void 0&&e.modelValue.length>=e.maxValues)return;const le=e.modelValue.slice();l("add",{index:le.length,value:Y}),le.push(Y),l("update:modelValue",le)}function $e(v,P){var ve;if(x.editable.value!==!0||v===void 0||Re.value(v)===!0)return;const Y=Ve.value(v);if(e.multiple!==!0){P!==!0&&(ct(e.fillInput===!0?Ce.value(v):"",!0,!0),oe()),(ve=D.value)==null||ve.focus(),(w.value.length===0||Ge(Ve.value(w.value[0]),Y)!==!0)&&l("update:modelValue",e.emitValue===!0?Y:v);return}if((S!==!0||f.value===!0)&&x.focus(),Ut(),w.value.length===0){const ce=e.emitValue===!0?Y:v;l("add",{index:0,value:ce}),l("update:modelValue",e.multiple===!0?[ce]:ce);return}const le=e.modelValue.slice(),se=at.value.findIndex(ce=>Ge(ce,Y));if(se!==-1)l("remove",{index:se,value:le.splice(se,1)[0]});else{if(e.maxValues!==void 0&&le.length>=e.maxValues)return;const ce=e.emitValue===!0?Y:v;l("add",{index:le.length,value:ce}),le.push(ce)}l("update:modelValue",le)}function je(v){if(o.platform.is.desktop!==!0)return;const P=v!==-1&&v<C.value?v:-1;i.value!==P&&(i.value=P)}function it(v=1,P){if(r.value===!0){let Y=i.value;do Y=Ol(Y+v,-1,C.value-1);while(Y!==-1&&Y!==i.value&&Re.value(e.options[Y])===!0);i.value!==Y&&(je(Y),X(Y),P!==!0&&e.useInput===!0&&e.fillInput===!0&&st(Y>=0?Ce.value(e.options[Y]):H,!0))}}function Qt(v,P){const Y=le=>Ge(Ve.value(le),v);return e.options.find(Y)||P.find(Y)||v}function ut(v){const P=Ve.value(v);return at.value.find(Y=>Ge(Y,P))!==void 0}function Ut(v){e.useInput===!0&&D.value!==null&&(v===void 0||D.value===v.target&&v.target.value===R.value)&&D.value.select()}function Wt(v){tt(v,27)===!0&&r.value===!0&&(Ee(v),oe(),Te()),l("keyup",v)}function Kt(v){const{value:P}=v.target;if(v.keyCode!==void 0){Wt(v);return}if(v.target.value="",h!==null&&(clearTimeout(h),h=null),p!==null&&(clearTimeout(p),p=null),Te(),typeof P=="string"&&P.length!==0){const Y=P.toLocaleLowerCase(),le=ve=>{const ce=e.options.find(me=>String(ve.value(me)).toLocaleLowerCase()===Y);return ce===void 0?!1:(w.value.indexOf(ce)===-1?$e(ce):oe(),!0)},se=ve=>{le(Ve)!==!0&&ve!==!0&&le(Ce)!==!0&&Fe(P,!0,()=>se(!0))};se()}else x.clearValue(v)}function He(v){l("keypress",v)}function Ye(v){if(l("keydown",v),il(v)===!0)return;const P=c.value.length!==0&&(e.newValueMode!==void 0||e.onNewValue!==void 0),Y=v.shiftKey!==!0&&e.disableTabSelection!==!0&&e.multiple!==!0&&(i.value!==-1||P===!0);if(v.keyCode===27){_e(v);return}if(v.keyCode===9&&Y===!1){U();return}if(v.target===void 0||v.target.id!==x.targetUid.value||x.editable.value!==!0)return;if(v.keyCode===40&&x.innerLoading.value!==!0&&r.value===!1){ge(v),te();return}if(v.keyCode===8&&(e.useChips===!0||e.clearable===!0)&&e.hideSelected!==!0&&c.value.length===0){e.multiple===!0&&Array.isArray(e.modelValue)===!0?rt(e.modelValue.length-1):e.multiple!==!0&&e.modelValue!==null&&l("update:modelValue",null);return}(v.keyCode===35||v.keyCode===36)&&(typeof c.value!="string"||c.value.length===0)&&(ge(v),i.value=-1,it(v.keyCode===36?1:-1,e.multiple)),(v.keyCode===33||v.keyCode===34)&&T.value!==void 0&&(ge(v),i.value=Math.max(-1,Math.min(C.value,i.value+(v.keyCode===33?-1:1)*T.value.view)),it(v.keyCode===33?1:-1,e.multiple)),(v.keyCode===38||v.keyCode===40)&&(ge(v),it(v.keyCode===38?-1:1,e.multiple));const le=C.value;if((B===void 0||k<Date.now())&&(B=""),le>0&&e.useInput!==!0&&v.key!==void 0&&v.key.length===1&&v.altKey===!1&&v.ctrlKey===!1&&v.metaKey===!1&&(v.keyCode!==32||B.length!==0)){r.value!==!0&&te(v);const se=v.key.toLocaleLowerCase(),ve=B.length===1&&B[0]===se;k=Date.now()+1500,ve===!1&&(ge(v),B+=se);const ce=new RegExp("^"+B.split("").map(yt=>wi.indexOf(yt)!==-1?"\\"+yt:yt).join(".*"),"i");let me=i.value;if(ve===!0||me<0||ce.test(Ce.value(e.options[me]))!==!0)do me=Ol(me+1,-1,le-1);while(me!==i.value&&(Re.value(e.options[me])===!0||ce.test(Ce.value(e.options[me]))!==!0));i.value!==me&&t.nextTick(()=>{je(me),X(me),me>=0&&e.useInput===!0&&e.fillInput===!0&&st(Ce.value(e.options[me]),!0)});return}if(!(v.keyCode!==13&&(v.keyCode!==32||e.useInput===!0||B!=="")&&(v.keyCode!==9||Y===!1))){if(v.keyCode!==9&&ge(v),i.value!==-1&&i.value<le){$e(e.options[i.value]);return}if(P===!0){const se=(ve,ce)=>{var yt;if(ce){if(io(ce)!==!0)return}else ce=e.newValueMode;if(ct("",e.multiple!==!0,!0),ve==null)return;(ce==="toggle"?$e:Tt)(ve,ce==="add-unique"),e.multiple!==!0&&((yt=D.value)==null||yt.focus(),oe())};if(e.onNewValue!==void 0?l("newValue",c.value,se):se(c.value),e.multiple!==!0)return}r.value===!0?U():x.innerLoading.value!==!0&&te()}}function Bt(){return S===!0?V.value:A.value!==null&&A.value.contentEl!==null?A.value.contentEl:void 0}function bt(){return Bt()}function Xt(){return e.hideSelected===!0?[]:n["selected-item"]!==void 0?Me.value.map(v=>n["selected-item"](v)).slice():n.selected!==void 0?[].concat(n.selected()):e.useChips===!0?Me.value.map((v,P)=>t.h(li,{key:"option-"+P,removable:x.editable.value===!0&&Re.value(v.opt)!==!0,dense:!0,textColor:e.color,tabindex:ke.value,onRemove(){v.removeAtIndex(P)}},()=>t.h("span",{class:"ellipsis",[v.html===!0?"innerHTML":"textContent"]:Ce.value(v.opt)}))):[t.h("span",{class:"ellipsis",[fe.value===!0?"innerHTML":"textContent"]:be.value})]}function Qe(){if(ie.value===!0)return n["no-option"]!==void 0?n["no-option"]({inputValue:c.value}):void 0;const v=n.option!==void 0?n.option:Y=>t.h(el,{key:Y.index,...Y.itemProps},()=>t.h(tl,()=>t.h(oi,()=>t.h("span",{[Y.html===!0?"innerHTML":"textContent"]:Y.label}))));let P=W("div",we.value.map(v));return n["before-options"]!==void 0&&(P=n["before-options"]().concat(P)),Ae(n["after-options"],P)}function Dt(v,P){const Y=P===!0?{...Ne.value,...x.splitAttrs.attributes.value}:void 0,le={ref:P===!0?D:void 0,key:"i_t",class:Z.value,style:e.inputStyle,value:c.value!==void 0?c.value:"",type:"search",...Y,id:P===!0?x.targetUid.value:void 0,maxlength:e.maxlength,autocomplete:e.autocomplete,"data-autofocus":v===!0||e.autofocus===!0||void 0,disabled:e.disable===!0,readonly:e.readonly===!0,...wn.value};return v!==!0&&S===!0&&(Array.isArray(le.class)===!0?le.class=[...le.class,"no-pointer-events"]:le.class+=" no-pointer-events"),t.h("input",le)}function pt(v){h!==null&&(clearTimeout(h),h=null),p!==null&&(clearTimeout(p),p=null),!(v&&v.target&&v.target.qComposing===!0)&&(st(v.target.value||""),E=!0,H=c.value,x.focused.value!==!0&&(S!==!0||f.value===!0)&&x.focus(),e.onFilter!==void 0&&(h=setTimeout(()=>{h=null,Fe(c.value)},e.inputDebounce)))}function st(v,P){c.value!==v&&(c.value=v,P===!0||e.inputDebounce===0||e.inputDebounce==="0"?l("inputValue",v):p=setTimeout(()=>{p=null,l("inputValue",v)},e.inputDebounce))}function ct(v,P,Y){E=Y!==!0,e.useInput===!0&&(st(v,!0),(P===!0||Y!==!0)&&(H=v),P!==!0&&Fe(v))}function Fe(v,P,Y){if(e.onFilter===void 0||P!==!0&&x.focused.value!==!0)return;x.innerLoading.value===!0?l("filterAbort"):(x.innerLoading.value=!0,s.value=!0),v!==""&&e.multiple!==!0&&w.value.length!==0&&E!==!0&&v===Ce.value(w.value[0])&&(v="");const le=setTimeout(()=>{r.value===!0&&(r.value=!1)},10);b!==null&&clearTimeout(b),b=le,l("filter",v,(se,ve)=>{(P===!0||x.focused.value===!0)&&b===le&&(clearTimeout(b),typeof se=="function"&&se(),s.value=!1,t.nextTick(()=>{x.innerLoading.value=!1,x.editable.value===!0&&(P===!0?r.value===!0&&oe():r.value===!0?_n(!0):r.value=!0),typeof ve=="function"&&t.nextTick(()=>{ve(a)}),typeof Y=="function"&&t.nextTick(()=>{Y(a)})}))},()=>{x.focused.value===!0&&b===le&&(clearTimeout(b),x.innerLoading.value=!1,s.value=!1),r.value===!0&&(r.value=!1)})}function xn(){return t.h(bn,{ref:A,class:G.value,style:e.popupContentStyle,modelValue:r.value,fit:e.menuShrink!==!0,cover:e.optionsCover===!0&&ie.value!==!0&&e.useInput!==!0,anchor:e.menuAnchor,self:e.menuSelf,offset:e.menuOffset,dark:I.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,noRouteDismiss:e.popupNoRouteDismiss,square:zt.value,transitionShow:e.transitionShow,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,separateClosePopup:!0,...Le.value,onScrollPassive:L,onBeforeShow:bl,onBeforeHide:kn,onShow:Cn},Qe)}function kn(v){pl(v),U()}function Cn(){ee()}function d(v){var P;Ee(v),(P=D.value)==null||P.focus(),f.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function g(v){Ee(v),t.nextTick(()=>{f.value=!1})}function _(){const v=[t.h(ti,{class:`col-auto ${x.fieldClass.value}`,...Q.value,for:x.targetUid.value,dark:I.value,square:!0,loading:s.value,itemAligned:!1,filled:!0,stackLabel:c.value.length!==0,...x.splitAttrs.listeners.value,onFocus:d,onBlur:g},{...n,rawControl:()=>x.getControl(!0),before:void 0,after:void 0})];return r.value===!0&&v.push(t.h("div",{ref:V,class:G.value+" scroll",style:e.popupContentStyle,...Le.value,onClick:_e,onScrollPassive:L},Qe())),t.h(ia,{ref:K,modelValue:u.value,position:e.useInput===!0?"top":void 0,transitionShow:M,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,noRouteDismiss:e.popupNoRouteDismiss,onBeforeShow:bl,onBeforeHide:F,onHide:N,onShow:ne},()=>t.h("div",{class:"q-select__dialog"+(I.value===!0?" q-select__dialog--dark q-dark":"")+(f.value===!0?" q-select__dialog--focused":"")},v))}function F(v){pl(v),K.value!==null&&K.value.__updateRefocusTarget(x.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),x.focused.value=!1}function N(v){oe(),x.focused.value===!1&&l("blur",v),Te()}function ne(){const v=document.activeElement;(v===null||v.id!==x.targetUid.value)&&D.value!==null&&D.value!==v&&D.value.focus(),ee()}function U(){u.value!==!0&&(i.value=-1,r.value===!0&&(r.value=!1),x.focused.value===!1&&(b!==null&&(clearTimeout(b),b=null),x.innerLoading.value===!0&&(l("filterAbort"),x.innerLoading.value=!1,s.value=!1)))}function te(v){x.editable.value===!0&&(S===!0?(x.onControlFocusin(v),u.value=!0,t.nextTick(()=>{x.focus()})):x.focus(),e.onFilter!==void 0?Fe(c.value):(ie.value!==!0||n["no-option"]!==void 0)&&(r.value=!0))}function oe(){u.value=!1,U()}function Te(){e.useInput===!0&&ct(e.multiple!==!0&&e.fillInput===!0&&w.value.length!==0&&Ce.value(w.value[0])||"",!0,!0)}function _n(v){let P=-1;if(v===!0){if(w.value.length!==0){const Y=Ve.value(w.value[0]);P=e.options.findIndex(le=>Ge(Ve.value(le),Y))}O(P)}je(P)}function wa(v,P){r.value===!0&&x.innerLoading.value===!1&&(O(-1,!0),t.nextTick(()=>{r.value===!0&&x.innerLoading.value===!1&&(v>P?O():_n(!0))}))}function gl(){u.value===!1&&A.value!==null&&A.value.updatePosition()}function bl(v){v!==void 0&&Ee(v),l("popupShow",v),x.hasPopupOpen=!0,x.onControlFocusin(v)}function pl(v){v!==void 0&&Ee(v),l("popupHide",v),x.hasPopupOpen=!1,x.onControlFocusout(v)}function yl(){S=o.platform.is.mobile!==!0&&e.behavior!=="dialog"?!1:e.behavior!=="menu"&&(e.useInput===!0?n["no-option"]!==void 0||e.onFilter!==void 0||ie.value===!1:!0),M=o.platform.is.ios===!0&&S===!0&&e.useInput===!0?"fade":e.transitionShow}return t.onBeforeUpdate(yl),t.onUpdated(gl),yl(),t.onBeforeUnmount(()=>{h!==null&&clearTimeout(h),p!==null&&clearTimeout(p)}),Object.assign(a,{showPopup:te,hidePopup:oe,removeAtIndex:rt,add:Tt,toggleOption:$e,getOptionIndex:()=>i.value,setOptionIndex:je,moveOptionSelection:it,filter:Fe,updateMenuPosition:gl,updateInputValue:ct,isOptionSelected:ut,getEmittingOptionValue:Yt,isOptionDisabled:(...v)=>Re.value.apply(null,v)===!0,getOptionValue:(...v)=>Ve.value.apply(null,v),getOptionLabel:(...v)=>Ce.value.apply(null,v)}),Object.assign(x,{innerValue:w,fieldClass:t.computed(()=>`q-select q-field--auto-height q-select--with${e.useInput!==!0?"out":""}-input q-select--with${e.useChips!==!0?"out":""}-chips q-select--${e.multiple===!0?"multiple":"single"}`),inputRef:q,targetRef:D,hasValue:J,showPopup:te,floatingLabel:t.computed(()=>e.hideSelected!==!0&&J.value===!0||typeof c.value=="number"||c.value.length!==0||It(e.displayValue)),getControlChild:()=>{if(x.editable.value!==!1&&(u.value===!0||ie.value!==!0||n["no-option"]!==void 0))return S===!0?_():xn();x.hasPopupOpen===!0&&(x.hasPopupOpen=!1)},controlEvents:{onFocusin(v){x.onControlFocusin(v)},onFocusout(v){x.onControlFocusout(v,()=>{Te(),U()})},onClick(v){var P;if(_e(v),S!==!0&&r.value===!0){U(),(P=D.value)==null||P.focus();return}te(v)}},getControl:v=>{const P=Xt(),Y=v===!0||u.value!==!0||S!==!0;if(e.useInput===!0)P.push(Dt(v,Y));else if(x.editable.value===!0){const se=Y===!0?Ne.value:void 0;P.push(t.h("input",{ref:Y===!0?D:void 0,key:"d_t",class:"q-select__focus-target",id:Y===!0?x.targetUid.value:void 0,value:be.value,readonly:!0,"data-autofocus":v===!0||e.autofocus===!0||void 0,...se,onKeydown:Ye,onKeyup:Wt,onKeypress:He})),Y===!0&&typeof e.autocomplete=="string"&&e.autocomplete.length!==0&&P.push(t.h("input",{class:"q-select__autocomplete-input",autocomplete:e.autocomplete,tabindex:-1,onKeyup:Kt}))}if(z.value!==void 0&&e.disable!==!0&&at.value.length!==0){const se=at.value.map(ve=>t.h("option",{value:ve,selected:!0}));P.push(t.h("select",{class:"hidden",name:z.value,multiple:e.multiple},se))}const le=e.useInput===!0||Y!==!0?void 0:x.splitAttrs.attributes.value;return t.h("div",{class:"q-field__native row items-center",...le,...x.splitAttrs.listeners.value},P)},getInnerAppend:()=>e.loading!==!0&&s.value!==!0&&e.hideDropdownIcon!==!0?[t.h(qe,{class:"q-select__dropdown-icon"+(r.value===!0?" rotate-180":""),name:lt.value})]:null}),ml(x)}}),xi={class:"q-pa-none"},ki=t.defineComponent({__name:"CheckboxFilter",props:{options:{},label:{default:"Sélectionner les options"},modelValue:{default:()=>[]},scrollAreaHeight:{default:"200px"},scrollAreaWidth:{default:"250px"}},emits:["update:modelValue"],setup(e,{emit:n}){const l=e,a=n,o=t.ref(!1),r=t.ref(l.modelValue||[]),u=t.computed(()=>({height:l.scrollAreaHeight,width:l.scrollAreaWidth}));return t.watch(r,i=>{a("update:modelValue",i)}),t.watch(()=>l.modelValue,i=>{i&&(r.value=i)}),(i,c)=>(t.openBlock(),t.createElementBlock("div",xi,[t.createVNode(ca,t.mergeProps({outlined:"",dense:"",label:l.label,class:"full-width cursor-pointer","data-cy":"checkbox-filter","model-value":null,options:[],"hide-dropdown-icon":""},i.$attrs),{append:t.withCtx(()=>[t.createVNode(qe,{name:"arrow_drop_down",class:t.normalizeClass(["cursor-pointer smooth-rotate",{"rotate-180":o.value}])},null,8,["class"])]),default:t.withCtx(()=>[t.createVNode(bn,{modelValue:o.value,"onUpdate:modelValue":c[1]||(c[1]=f=>o.value=f),anchor:"bottom left",self:"top left",offset:[0,8],"transition-show":"scale","transition-hide":"scale"},{default:t.withCtx(()=>[t.createVNode(kr,{class:"q-pa-sm"},{default:t.withCtx(()=>[t.createVNode(xr,{style:t.normalizeStyle(u.value)},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.options,f=>(t.openBlock(),t.createBlock(sr,{key:f.value,modelValue:r.value,"onUpdate:modelValue":c[0]||(c[0]=s=>r.value=s),val:f,label:f.label,disable:f.disabled,color:"primary",class:"q-mb-sm q-ml-sm q-mr-sm","data-cy":`checkbox-option-${f.label}`},null,8,["modelValue","val","label","disable","data-cy"]))),128))]),_:1},8,["style"])]),_:1})]),_:1},8,["modelValue"])]),_:1},16,["label"])]))}}),Ci=mn(ki,[["__scopeId","data-v-42c19597"]]),_i=t.defineComponent({__name:"SelectSearch",props:{options:{default:()=>[]},fetchOptions:{},label:{default:"Selectionner un option"},modelValue:{default:null}},emits:["update:modelValue"],setup(e,{emit:n}){const l=e,a=n,o=t.ref(),r=t.ref(l.modelValue??null),u=t.ref(""),i=t.ref(l.options??[]),c=t.ref(!1),f=t.ref(!0);t.watch(()=>l.options,b=>{i.value=b??[],s()},{immediate:!0}),t.watch(()=>l.modelValue,b=>{r.value=b,s(),c.value=!1});function s(){const b=i.value.find(H=>H.value===r.value);u.value=(b==null?void 0:b.label)??""}function h(b){r.value=b,a("update:modelValue",b),s(),c.value=!1}function p(b){u.value=b,b===""&&(c.value=!0)}function m(){var b;if(f.value){f.value=!1;return}r.value!==null&&!c.value?(u.value="",c.value=!0,(b=o.value)==null||b.showPopup()):c.value&&(u.value="")}function S(){f.value=!0;const b=u.value.trim();if(b==="")c.value&&(r.value=null,a("update:modelValue",null));else{const H=i.value.find(M=>M.label.toLowerCase()===b.toLowerCase());H?(r.value=H.value,a("update:modelValue",H.value),u.value=H.label):s()}c.value=!1}function E(b,H,M){if(l.fetchOptions)l.fetchOptions(b).then(B=>{i.value=B,H(()=>{})}).catch(M).finally(()=>{});else{const B=l.options??[];i.value=B.filter(k=>k.label.toLowerCase().includes(b.toLowerCase())),H(()=>{})}}return(b,H)=>(t.openBlock(),t.createBlock(ca,t.mergeProps({ref_key:"selectRef",ref:o,"model-value":r.value,"input-value":u.value,"use-input":"","fill-input":"","hide-selected":"","input-debounce":"300",label:b.label,options:i.value,"onUpdate:modelValue":h,"onUpdate:inputValue":p,onFocus:m,onBlur:S,onFilter:E,"data-cy":"client-select",dense:"",outlined:"",class:"full-width cursor-pointer"},b.$attrs),null,16,["model-value","input-value","label","options"]))}}),da=ae({name:"QAvatar",props:{...Nt,fontSize:String,color:String,textColor:String,icon:String,square:Boolean,rounded:Boolean},setup(e,{slots:n}){const l=jt(e),a=t.computed(()=>"q-avatar"+(e.color?` bg-${e.color}`:"")+(e.textColor?` text-${e.textColor} q-chip--colored`:"")+(e.square===!0?" q-avatar--square":e.rounded===!0?" rounded-borders":"")),o=t.computed(()=>e.fontSize?{fontSize:e.fontSize}:null);return()=>{const r=e.icon!==void 0?[t.h(qe,{name:e.icon})]:void 0;return t.h("div",{class:a.value,style:l.value},[t.h("div",{class:"q-avatar__content row flex-center overflow-hidden",style:o.value},yo(n.default,r))])}}}),qi=ae({name:"QSpace",setup(){const e=t.h("div",{class:"q-space"});return()=>e}}),Mi=ae({name:"QToolbar",props:{inset:Boolean},setup(e,{slots:n}){const l=t.computed(()=>"q-toolbar row no-wrap items-center"+(e.inset===!0?" q-toolbar--inset":""));return()=>t.h("div",{class:l.value,role:"toolbar"},xe(n.default))}}),Vi=ae({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:n,emit:l}){const{proxy:{$q:a}}=t.getCurrentInstance(),o=t.inject(pn,Ke);if(o===Ke)return console.error("QHeader needs to be child of QLayout"),Ke;const r=t.ref(parseInt(e.heightHint,10)),u=t.ref(!0),i=t.computed(()=>e.reveal===!0||o.view.value.indexOf("H")!==-1||a.platform.is.ios&&o.isContainer.value===!0),c=t.computed(()=>{if(e.modelValue!==!0)return 0;if(i.value===!0)return u.value===!0?r.value:0;const M=r.value-o.scroll.value.position;return M>0?M:0}),f=t.computed(()=>e.modelValue!==!0||i.value===!0&&u.value!==!0),s=t.computed(()=>e.modelValue===!0&&f.value===!0&&e.reveal===!0),h=t.computed(()=>"q-header q-layout__section--marginal "+(i.value===!0?"fixed":"absolute")+"-top"+(e.bordered===!0?" q-header--bordered":"")+(f.value===!0?" q-header--hidden":"")+(e.modelValue!==!0?" q-layout--prevent-focus":"")),p=t.computed(()=>{const M=o.rows.value.top,B={};return M[0]==="l"&&o.left.space===!0&&(B[a.lang.rtl===!0?"right":"left"]=`${o.left.size}px`),M[2]==="r"&&o.right.space===!0&&(B[a.lang.rtl===!0?"left":"right"]=`${o.right.size}px`),B});function m(M,B){o.update("header",M,B)}function S(M,B){M.value!==B&&(M.value=B)}function E({height:M}){S(r,M),m("size",M)}function b(M){s.value===!0&&S(u,!0),l("focusin",M)}t.watch(()=>e.modelValue,M=>{m("space",M),S(u,!0),o.animate()}),t.watch(c,M=>{m("offset",M)}),t.watch(()=>e.reveal,M=>{M===!1&&S(u,e.modelValue)}),t.watch(u,M=>{o.animate(),l("reveal",M)}),t.watch(o.scroll,M=>{e.reveal===!0&&S(u,M.direction==="up"||M.position<=e.revealOffset||M.position-M.inflectionPoint<100)});const H={};return o.instances.header=H,e.modelValue===!0&&m("size",r.value),m("space",e.modelValue),m("offset",c.value),t.onBeforeUnmount(()=>{o.instances.header===H&&(o.instances.header=void 0,m("size",0),m("offset",0),m("space",!1))}),()=>{const M=po(n.default,[]);return e.elevated===!0&&M.push(t.h("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),M.push(t.h(Mt,{debounce:0,onResize:E})),t.h("header",{class:h.value,style:p.value,onFocusin:b},M)}}}),Ei=["src","alt"],zi=t.defineComponent({__name:"SelfeeHeader",props:{logoSrc:{},logoAlt:{},logoTo:{}},setup(e){const n=e,l=n.logoAlt??"Logo",a=n.logoTo??"/";return(o,r)=>{const u=t.resolveComponent("router-link");return t.openBlock(),t.createBlock(Vi,{elevated:""},{default:t.withCtx(()=>[t.createVNode(Mi,null,{default:t.withCtx(()=>[t.createVNode(u,{to:t.unref(a),class:"q-mr-md"},{default:t.withCtx(()=>[t.createVNode(da,{class:"logo"},{default:t.withCtx(()=>[t.createElementVNode("img",{src:o.logoSrc,alt:t.unref(l)},null,8,Ei)]),_:1})]),_:1},8,["to"]),t.createVNode(qi),t.renderSlot(o.$slots,"user-avatar",{},void 0,!0)]),_:3})]),_:3})}}}),Ti=mn(zi,[["__scopeId","data-v-67697ca7"]]),Bi=ae({name:"QFooter",props:{modelValue:{type:Boolean,default:!0},reveal:Boolean,bordered:Boolean,elevated:Boolean,heightHint:{type:[String,Number],default:50}},emits:["reveal","focusin"],setup(e,{slots:n,emit:l}){const{proxy:{$q:a}}=t.getCurrentInstance(),o=t.inject(pn,Ke);if(o===Ke)return console.error("QFooter needs to be child of QLayout"),Ke;const r=t.ref(parseInt(e.heightHint,10)),u=t.ref(!0),i=t.ref(nt.value===!0||o.isContainer.value===!0?0:window.innerHeight),c=t.computed(()=>e.reveal===!0||o.view.value.indexOf("F")!==-1||a.platform.is.ios&&o.isContainer.value===!0),f=t.computed(()=>o.isContainer.value===!0?o.containerHeight.value:i.value),s=t.computed(()=>{if(e.modelValue!==!0)return 0;if(c.value===!0)return u.value===!0?r.value:0;const q=o.scroll.value.position+f.value+r.value-o.height.value;return q>0?q:0}),h=t.computed(()=>e.modelValue!==!0||c.value===!0&&u.value!==!0),p=t.computed(()=>e.modelValue===!0&&h.value===!0&&e.reveal===!0),m=t.computed(()=>"q-footer q-layout__section--marginal "+(c.value===!0?"fixed":"absolute")+"-bottom"+(e.bordered===!0?" q-footer--bordered":"")+(h.value===!0?" q-footer--hidden":"")+(e.modelValue!==!0?" q-layout--prevent-focus"+(c.value!==!0?" hidden":""):"")),S=t.computed(()=>{const q=o.rows.value.bottom,D={};return q[0]==="l"&&o.left.space===!0&&(D[a.lang.rtl===!0?"right":"left"]=`${o.left.size}px`),q[2]==="r"&&o.right.space===!0&&(D[a.lang.rtl===!0?"left":"right"]=`${o.right.size}px`),D});function E(q,D){o.update("footer",q,D)}function b(q,D){q.value!==D&&(q.value=D)}function H({height:q}){b(r,q),E("size",q)}function M(){if(e.reveal!==!0)return;const{direction:q,position:D,inflectionPoint:A}=o.scroll.value;b(u,q==="up"||D-A<100||o.height.value-f.value-D-r.value<300)}function B(q){p.value===!0&&b(u,!0),l("focusin",q)}t.watch(()=>e.modelValue,q=>{E("space",q),b(u,!0),o.animate()}),t.watch(s,q=>{E("offset",q)}),t.watch(()=>e.reveal,q=>{q===!1&&b(u,e.modelValue)}),t.watch(u,q=>{o.animate(),l("reveal",q)}),t.watch([r,o.scroll,o.height],M),t.watch(()=>a.screen.height,q=>{o.isContainer.value!==!0&&b(i,q)});const k={};return o.instances.footer=k,e.modelValue===!0&&E("size",r.value),E("space",e.modelValue),E("offset",s.value),t.onBeforeUnmount(()=>{o.instances.footer===k&&(o.instances.footer=void 0,E("size",0),E("offset",0),E("space",!1))}),()=>{const q=Ae(n.default,[t.h(Mt,{debounce:0,onResize:H})]);return e.elevated===!0&&q.push(t.h("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),t.h("footer",{class:m.value,style:S.value,onFocusin:B},q)}}}),Di={class:"row justify-between"},$i={class:"col-3 q-py-md flex justify-center"},Oi={class:"col-3 q-py-md flex justify-center"},Ai={class:"col-3 q-py-md flex justify-center"},Li=t.defineComponent({__name:"SelfeeFooter",props:{frontVersion:{},backVersion:{},platform:{}},setup(e){return(n,l)=>(t.openBlock(),t.createBlock(Bi,{elevated:""},{default:t.withCtx(()=>[t.createElementVNode("div",Di,[t.createElementVNode("div",$i,"Front: "+t.toDisplayString(n.frontVersion),1),t.createElementVNode("div",Oi,"Back: "+t.toDisplayString(n.backVersion),1),t.createElementVNode("div",Ai,"Platform: "+t.toDisplayString(n.platform),1)])]),_:1}))}}),Ri={true:"inset",item:"item-inset","item-thumbnail":"item-thumbnail-inset"},Fn={xs:2,sm:4,md:8,lg:16,xl:24},Hi=ae({name:"QSeparator",props:{...Pe,spaced:[Boolean,String],inset:[Boolean,String],vertical:Boolean,color:String,size:String},setup(e){const n=t.getCurrentInstance(),l=Ie(e,n.proxy.$q),a=t.computed(()=>e.vertical===!0?"vertical":"horizontal"),o=t.computed(()=>` q-separator--${a.value}`),r=t.computed(()=>e.inset!==!1?`${o.value}-${Ri[e.inset]}`:""),u=t.computed(()=>`q-separator${o.value}${r.value}`+(e.color!==void 0?` bg-${e.color}`:"")+(l.value===!0?" q-separator--dark":"")),i=t.computed(()=>{const c={};if(e.size!==void 0&&(c[e.vertical===!0?"width":"height"]=e.size),e.spaced!==!1){const f=e.spaced===!0?`${Fn.md}px`:e.spaced in Fn?`${Fn[e.spaced]}px`:e.spaced,s=e.vertical===!0?["Left","Right"]:["Top","Bottom"];c[`margin${s[0]}`]=c[`margin${s[1]}`]=f}return c});return()=>t.h("hr",{class:u.value,style:i.value,"aria-orientation":a.value})}}),Fi=["ul","ol"],Pi=ae({name:"QList",props:{...Pe,bordered:Boolean,dense:Boolean,separator:Boolean,padding:Boolean,tag:{type:String,default:"div"}},setup(e,{slots:n}){const l=t.getCurrentInstance(),a=Ie(e,l.proxy.$q),o=t.computed(()=>Fi.includes(e.tag)?null:"list"),r=t.computed(()=>"q-list"+(e.bordered===!0?" q-list--bordered":"")+(e.dense===!0?" q-list--dense":"")+(e.separator===!0?" q-list--separator":"")+(a.value===!0?" q-list--dark":"")+(e.padding===!0?" q-list--padding":""));return()=>t.h(e.tag,{class:r.value,role:o.value},xe(n.default))}}),Ii={class:"text-h6 text-primary"},Ni=t.defineComponent({__name:"UserAvatar",props:{username:{},onLogout:{type:Function},logoutLabel:{}},setup(e){const n=e,l=t.computed(()=>{var o;return((o=n.username)==null?void 0:o.charAt(0).toUpperCase())??""}),a=n.logoutLabel??"Logout";return(o,r)=>(t.openBlock(),t.createElementBlock("div",null,[t.createVNode(da,{class:"cursor-pointer",size:"40px",color:"white","data-cy":"cy-avatar"},{default:t.withCtx(()=>[t.createElementVNode("span",Ii,t.toDisplayString(l.value),1),t.createVNode(bn,{"transition-show":"flip-right","transition-hide":"flip-left"},{default:t.withCtx(()=>[t.createVNode(Pi,null,{default:t.withCtx(()=>[t.createVNode(el,null,{default:t.withCtx(()=>[t.createVNode(tl,null,{default:t.withCtx(()=>[t.createElementVNode("div",null,t.toDisplayString(o.username),1)]),_:1})]),_:1}),t.createVNode(Hi),t.createVNode(el,{clickable:"",onClick:o.onLogout,"data-cy":"cy-logout-button"},{default:t.withCtx(()=>[t.createVNode(tl,null,{default:t.withCtx(()=>[t.createElementVNode("div",null,t.toDisplayString(t.unref(a)),1)]),_:1})]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1})]))}}),ji=ae({name:"QPageContainer",setup(e,{slots:n}){const{proxy:{$q:l}}=t.getCurrentInstance(),a=t.inject(pn,Ke);if(a===Ke)return console.error("QPageContainer needs to be child of QLayout"),Ke;t.provide(Wr,!0);const o=t.computed(()=>{const r={};return a.header.space===!0&&(r.paddingTop=`${a.header.size}px`),a.right.space===!0&&(r[`padding${l.lang.rtl===!0?"Left":"Right"}`]=`${a.right.size}px`),a.footer.space===!0&&(r.paddingBottom=`${a.footer.size}px`),a.left.space===!0&&(r[`padding${l.lang.rtl===!0?"Right":"Left"}`]=`${a.left.size}px`),r});return()=>t.h("div",{class:"q-page-container",style:o.value},xe(n.default))}}),Yi=ae({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:n,emit:l}){const{proxy:{$q:a}}=t.getCurrentInstance(),o=t.ref(null),r=t.ref(a.screen.height),u=t.ref(e.container===!0?0:a.screen.width),i=t.ref({position:0,direction:"down",inflectionPoint:0}),c=t.ref(0),f=t.ref(nt.value===!0?0:an()),s=t.computed(()=>"q-layout q-layout--"+(e.container===!0?"containerized":"standard")),h=t.computed(()=>e.container===!1?{minHeight:a.screen.height+"px"}:null),p=t.computed(()=>f.value!==0?{[a.lang.rtl===!0?"left":"right"]:`${f.value}px`}:null),m=t.computed(()=>f.value!==0?{[a.lang.rtl===!0?"right":"left"]:0,[a.lang.rtl===!0?"left":"right"]:`-${f.value}px`,width:`calc(100% + ${f.value}px)`}:null);function S(k){if(e.container===!0||document.qScrollPrevented!==!0){const q={position:k.position.top,direction:k.direction,directionChanged:k.directionChanged,inflectionPoint:k.inflectionPoint.top,delta:k.delta.top};i.value=q,e.onScroll!==void 0&&l("scroll",q)}}function E(k){const{height:q,width:D}=k;let A=!1;r.value!==q&&(A=!0,r.value=q,e.onScrollHeight!==void 0&&l("scrollHeight",q),H()),u.value!==D&&(A=!0,u.value=D),A===!0&&e.onResize!==void 0&&l("resize",k)}function b({height:k}){c.value!==k&&(c.value=k,H())}function H(){if(e.container===!0){const k=r.value>c.value?an():0;f.value!==k&&(f.value=k)}}let M=null;const B={instances:{},view:t.computed(()=>e.view),isContainer:t.computed(()=>e.container),rootRef:o,height:r,containerHeight:c,scrollbarWidth:f,totalWidth:t.computed(()=>u.value+f.value),rows:t.computed(()=>{const k=e.view.toLowerCase().split(" ");return{top:k[0].split(""),middle:k[1].split(""),bottom:k[2].split("")}}),header:t.reactive({size:0,offset:0,space:!1}),right:t.reactive({size:300,offset:0,space:!1}),footer:t.reactive({size:0,offset:0,space:!1}),left:t.reactive({size:300,offset:0,space:!1}),scroll:i,animate(){M!==null?clearTimeout(M):document.body.classList.add("q-body--layout-animate"),M=setTimeout(()=>{M=null,document.body.classList.remove("q-body--layout-animate")},155)},update(k,q,D){B[k][q]=D}};if(t.provide(pn,B),an()>0){let k=function(){A=null,K.classList.remove("hide-scrollbar")},q=function(){if(A===null){if(K.scrollHeight>a.screen.height)return;K.classList.add("hide-scrollbar")}else clearTimeout(A);A=setTimeout(k,300)},D=function(V){A!==null&&V==="remove"&&(clearTimeout(A),k()),window[`${V}EventListener`]("resize",q)},A=null;const K=document.body;t.watch(()=>e.container!==!0?"add":"remove",D),e.container!==!0&&D("add"),t.onUnmounted(()=>{D("remove")})}return()=>{const k=Ae(n.default,[t.h(Io,{onScroll:S}),t.h(Mt,{onResize:E})]),q=t.h("div",{class:s.value,style:h.value,ref:e.container===!0?void 0:o,tabindex:-1},k);return e.container===!0?t.h("div",{class:"q-layout-container overflow-hidden",ref:o},[t.h(Mt,{onResize:b}),t.h("div",{class:"absolute-full",style:p.value},[t.h("div",{class:"scroll",style:m.value},[q])])]):q}}}),Qi=t.defineComponent({name:"Layout",__name:"Layout",props:{view:{default:"HHh Lpr Fff"},layoutClass:{default:"bg-dark"},pageContainerClass:{default:"q-pa-sm"}},setup(e){return(n,l)=>(t.openBlock(),t.createBlock(Yi,{view:n.view,class:t.normalizeClass(n.layoutClass)},{default:t.withCtx(()=>[t.renderSlot(n.$slots,"header"),t.createVNode(ji,{class:t.normalizeClass(n.pageContainerClass)},{default:t.withCtx(()=>[t.renderSlot(n.$slots,"default")]),_:3},8,["class"]),t.renderSlot(n.$slots,"footer")]),_:3},8,["view","class"]))}});function Ui(){let e=Object.create(null);return{getCache:(n,l)=>e[n]===void 0?e[n]=typeof l=="function"?l():l:e[n],setCache(n,l){e[n]=l},hasCache(n){return Object.hasOwnProperty.call(e,n)},clearCache(n){n!==void 0?delete e[n]:e=Object.create(null)}}}const et=[-61,9,38,199,426,686,756,818,1111,1181,1210,1635,2060,2097,2192,2262,2324,2394,2456,3178];function Wi(e,n,l){return Object.prototype.toString.call(e)==="[object Date]"&&(l=e.getDate(),n=e.getMonth()+1,e=e.getFullYear()),Ji(hl(e,n,l))}function uo(e,n,l){return va(Zi(e,n,l))}function Ki(e){return Xi(e)===0}function rn(e,n){return n<=6?31:n<=11||Ki(e)?30:29}function Xi(e){const n=et.length;let l=et[0],a,o,r,u,i;if(e<l||e>=et[n-1])throw new Error("Invalid Jalaali year "+e);for(i=1;i<n&&(a=et[i],o=a-l,!(e<a));i+=1)l=a;return u=e-l,o-u<6&&(u=u-o+de(o+4,33)*33),r=ze(ze(u+1,33)-1,4),r===-1&&(r=4),r}function fa(e,n){const l=et.length,a=e+621;let o=-14,r=et[0],u,i,c,f,s;if(e<r||e>=et[l-1])throw new Error("Invalid Jalaali year "+e);for(s=1;s<l&&(u=et[s],i=u-r,!(e<u));s+=1)o=o+de(i,33)*8+de(ze(i,33),4),r=u;f=e-r,o=o+de(f,33)*8+de(ze(f,33)+3,4),ze(i,33)===4&&i-f===4&&(o+=1);const h=de(a,4)-de((de(a,100)+1)*3,4)-150,p=20+o-h;return n||(i-f<6&&(f=f-i+de(i+4,33)*33),c=ze(ze(f+1,33)-1,4),c===-1&&(c=4)),{leap:c,gy:a,march:p}}function Zi(e,n,l){const a=fa(e,!0);return hl(a.gy,3,a.march)+(n-1)*31-de(n,7)*(n-7)+l-1}function Ji(e){const n=va(e).gy;let l=n-621,a,o,r;const u=fa(l,!1),i=hl(n,3,u.march);if(r=e-i,r>=0){if(r<=185)return o=1+de(r,31),a=ze(r,31)+1,{jy:l,jm:o,jd:a};r-=186}else l-=1,r+=179,u.leap===1&&(r+=1);return o=7+de(r,30),a=ze(r,30)+1,{jy:l,jm:o,jd:a}}function hl(e,n,l){let a=de((e+de(n-8,6)+100100)*1461,4)+de(153*ze(n+9,12)+2,5)+l-34840408;return a=a-de(de(e+100100+de(n-8,6),100)*3,4)+752,a}function va(e){let n=4*e+139361631;n=n+de(de(4*e+183187720,146097)*3,4)*4-3908;const l=de(ze(n,1461),4)*5+308,a=de(ze(l,153),5)+1,o=ze(de(l,153),12)+1;return{gy:de(n,1461)-100100+de(8-o,6),gm:o,gd:a}}function de(e,n){return~~(e/n)}function ze(e,n){return e-~~(e/n)*n}const Gi=["gregorian","persian"],so={mask:{type:String},locale:Object,calendar:{type:String,validator:e=>Gi.includes(e),default:"gregorian"},landscape:Boolean,color:String,textColor:String,square:Boolean,flat:Boolean,bordered:Boolean,readonly:Boolean,disable:Boolean},eu=["update:modelValue"];function Xe(e){return e.year+"/"+re(e.month)+"/"+re(e.day)}function tu(e,n){const l=t.computed(()=>e.disable!==!0&&e.readonly!==!0),a=t.computed(()=>l.value===!0?0:-1),o=t.computed(()=>{const i=[];return e.color!==void 0&&i.push(`bg-${e.color}`),e.textColor!==void 0&&i.push(`text-${e.textColor}`),i.join(" ")});function r(){return e.locale!==void 0?{...n.lang.date,...e.locale}:n.lang.date}function u(i){const c=new Date,f=i===!0?null:0;if(e.calendar==="persian"){const s=Wi(c);return{year:s.jy,month:s.jm,day:s.jd}}return{year:c.getFullYear(),month:c.getMonth()+1,day:c.getDate(),hour:f,minute:f,second:f,millisecond:f}}return{editable:l,tabindex:a,headerClass:o,getLocale:r,getCurrentDate:u}}const nl={isoName:"en-US",nativeName:"English (US)",label:{clear:"Clear",ok:"OK",cancel:"Cancel",close:"Close",set:"Set",select:"Select",reset:"Reset",remove:"Remove",update:"Update",create:"Create",search:"Search",filter:"Filter",refresh:"Refresh",expand:e=>e?`Expand "${e}"`:"Expand",collapse:e=>e?`Collapse "${e}"`:"Collapse"},date:{days:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),daysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),firstDayOfWeek:0,format24h:!1,pluralDay:"days",prevMonth:"Previous month",nextMonth:"Next month",prevYear:"Previous year",nextYear:"Next year",today:"Today",prevRangeYears:e=>`Previous ${e} years`,nextRangeYears:e=>`Next ${e} years`},table:{noData:"No data available",noResults:"No matching records found",loading:"Loading...",selectedRecords:e=>e===1?"1 record selected.":(e===0?"No":e)+" records selected.",recordsPerPage:"Records per page:",allRows:"All",pagination:(e,n,l)=>e+"-"+n+" of "+l,columns:"Columns"},pagination:{first:"First page",prev:"Previous page",next:"Next page",last:"Last page"},editor:{url:"URL",bold:"Bold",italic:"Italic",strikethrough:"Strikethrough",underline:"Underline",unorderedList:"Unordered List",orderedList:"Ordered List",subscript:"Subscript",superscript:"Superscript",hyperlink:"Hyperlink",toggleFullscreen:"Toggle Fullscreen",quote:"Quote",left:"Left align",center:"Center align",right:"Right align",justify:"Justify align",print:"Print",outdent:"Decrease indentation",indent:"Increase indentation",removeFormat:"Remove formatting",formatting:"Formatting",fontSize:"Font Size",align:"Align",hr:"Insert Horizontal Rule",undo:"Undo",redo:"Redo",heading1:"Heading 1",heading2:"Heading 2",heading3:"Heading 3",heading4:"Heading 4",heading5:"Heading 5",heading6:"Heading 6",paragraph:"Paragraph",code:"Code",size1:"Very small",size2:"A bit small",size3:"Normal",size4:"Medium-large",size5:"Big",size6:"Very big",size7:"Maximum",defaultFont:"Default Font",viewSource:"View Source"},tree:{noNodes:"No nodes available",noResults:"No matching nodes found"}};function co(){const e=Array.isArray(navigator.languages)===!0&&navigator.languages.length!==0?navigator.languages[0]:navigator.language;if(typeof e=="string")return e.split(/[-_]/).map((n,l)=>l===0?n.toLowerCase():l>1||n.length<4?n.toUpperCase():n[0].toUpperCase()+n.slice(1).toLowerCase()).join("-")}const Je=Sa({__qLang:{}},{getLocale:co,set(e=nl,n){const l={...e,rtl:e.rtl===!0,getLocale:co};{if(l.set=Je.set,Je.__langConfig===void 0||Je.__langConfig.noHtmlAttrs!==!0){const a=document.documentElement;a.setAttribute("dir",l.rtl===!0?"rtl":"ltr"),a.setAttribute("lang",l.isoName)}Object.assign(Je.__qLang,l)}},install({$q:e,lang:n,ssrContext:l}){e.lang=Je.__qLang,Je.__langConfig=e.config.lang,this.__installed===!0?n!==void 0&&this.set(n):(this.props=new Proxy(this.__qLang,{get(){return Reflect.get(...arguments)},ownKeys(a){return Reflect.ownKeys(a).filter(o=>o!=="set"&&o!=="getLocale")}}),this.set(n||nl))}}),ma=864e5,nu=36e5,ll=6e4,ha="YYYY-MM-DDTHH:mm:ss.SSSZ",lu=/\[((?:[^\]\\]|\\]|\\)*)\]|do|d{1,4}|Mo|M{1,4}|m{1,2}|wo|w{1,2}|Qo|Do|DDDo|D{1,4}|YY(?:YY)?|H{1,2}|h{1,2}|s{1,2}|S{1,3}|Z{1,2}|a{1,2}|[AQExX]/g,ou=/(\[[^\]]*\])|do|d{1,4}|Mo|M{1,4}|m{1,2}|wo|w{1,2}|Qo|Do|DDDo|D{1,4}|YY(?:YY)?|H{1,2}|h{1,2}|s{1,2}|S{1,3}|Z{1,2}|a{1,2}|[AQExX]|([.*+:?^,\s${}()|\\]+)/g,Pn={};function au(e,n){const l="("+n.days.join("|")+")",a=e+l;if(Pn[a]!==void 0)return Pn[a];const o="("+n.daysShort.join("|")+")",r="("+n.months.join("|")+")",u="("+n.monthsShort.join("|")+")",i={};let c=0;const f=e.replace(ou,h=>{switch(c++,h){case"YY":return i.YY=c,"(-?\\d{1,2})";case"YYYY":return i.YYYY=c,"(-?\\d{1,4})";case"M":return i.M=c,"(\\d{1,2})";case"Mo":return i.M=c++,"(\\d{1,2}(st|nd|rd|th))";case"MM":return i.M=c,"(\\d{2})";case"MMM":return i.MMM=c,u;case"MMMM":return i.MMMM=c,r;case"D":return i.D=c,"(\\d{1,2})";case"Do":return i.D=c++,"(\\d{1,2}(st|nd|rd|th))";case"DD":return i.D=c,"(\\d{2})";case"H":return i.H=c,"(\\d{1,2})";case"HH":return i.H=c,"(\\d{2})";case"h":return i.h=c,"(\\d{1,2})";case"hh":return i.h=c,"(\\d{2})";case"m":return i.m=c,"(\\d{1,2})";case"mm":return i.m=c,"(\\d{2})";case"s":return i.s=c,"(\\d{1,2})";case"ss":return i.s=c,"(\\d{2})";case"S":return i.S=c,"(\\d{1})";case"SS":return i.S=c,"(\\d{2})";case"SSS":return i.S=c,"(\\d{3})";case"A":return i.A=c,"(AM|PM)";case"a":return i.a=c,"(am|pm)";case"aa":return i.aa=c,"(a\\.m\\.|p\\.m\\.)";case"ddd":return o;case"dddd":return l;case"Q":case"d":case"E":return"(\\d{1})";case"do":return c++,"(\\d{1}(st|nd|rd|th))";case"Qo":return"(1st|2nd|3rd|4th)";case"DDD":case"DDDD":return"(\\d{1,3})";case"DDDo":return c++,"(\\d{1,3}(st|nd|rd|th))";case"w":return"(\\d{1,2})";case"wo":return c++,"(\\d{1,2}(st|nd|rd|th))";case"ww":return"(\\d{2})";case"Z":return i.Z=c,"(Z|[+-]\\d{2}:\\d{2})";case"ZZ":return i.ZZ=c,"(Z|[+-]\\d{2}\\d{2})";case"X":return i.X=c,"(-?\\d+)";case"x":return i.x=c,"(-?\\d{4,})";default:return c--,h[0]==="["&&(h=h.substring(1,h.length-1)),h.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}}),s={map:i,regex:new RegExp("^"+f)};return Pn[a]=s,s}function ga(e,n){return e!==void 0?e:n!==void 0?n.date:nl.date}function fo(e,n=""){const l=e>0?"-":"+",a=Math.abs(e),o=Math.floor(a/60),r=a%60;return l+re(o)+n+re(r)}function ru(e,n,l,a,o){const r={year:null,month:null,day:null,hour:null,minute:null,second:null,millisecond:null,timezoneOffset:null,dateHash:null,timeHash:null};if(o!==void 0&&Object.assign(r,o),e==null||e===""||typeof e!="string")return r;n===void 0&&(n=ha);const u=ga(l,Je.props),i=u.months,c=u.monthsShort,{regex:f,map:s}=au(n,u),h=e.match(f);if(h===null)return r;let p="";if(s.X!==void 0||s.x!==void 0){const m=parseInt(h[s.X!==void 0?s.X:s.x],10);if(isNaN(m)===!0||m<0)return r;const S=new Date(m*(s.X!==void 0?1e3:1));r.year=S.getFullYear(),r.month=S.getMonth()+1,r.day=S.getDate(),r.hour=S.getHours(),r.minute=S.getMinutes(),r.second=S.getSeconds(),r.millisecond=S.getMilliseconds()}else{if(s.YYYY!==void 0)r.year=parseInt(h[s.YYYY],10);else if(s.YY!==void 0){const m=parseInt(h[s.YY],10);r.year=m<0?m:2e3+m}if(s.M!==void 0){if(r.month=parseInt(h[s.M],10),r.month<1||r.month>12)return r}else s.MMM!==void 0?r.month=c.indexOf(h[s.MMM])+1:s.MMMM!==void 0&&(r.month=i.indexOf(h[s.MMMM])+1);if(s.D!==void 0){if(r.day=parseInt(h[s.D],10),r.year===null||r.month===null||r.day<1)return r;const m=a!=="persian"?new Date(r.year,r.month,0).getDate():rn(r.year,r.month);if(r.day>m)return r}s.H!==void 0?r.hour=parseInt(h[s.H],10)%24:s.h!==void 0&&(r.hour=parseInt(h[s.h],10)%12,(s.A&&h[s.A]==="PM"||s.a&&h[s.a]==="pm"||s.aa&&h[s.aa]==="p.m.")&&(r.hour+=12),r.hour=r.hour%24),s.m!==void 0&&(r.minute=parseInt(h[s.m],10)%60),s.s!==void 0&&(r.second=parseInt(h[s.s],10)%60),s.S!==void 0&&(r.millisecond=parseInt(h[s.S],10)*10**(3-h[s.S].length)),(s.Z!==void 0||s.ZZ!==void 0)&&(p=s.Z!==void 0?h[s.Z].replace(":",""):h[s.ZZ],r.timezoneOffset=(p[0]==="+"?-1:1)*(60*p.slice(1,3)+1*p.slice(3,5)))}return r.dateHash=re(r.year,6)+"/"+re(r.month)+"/"+re(r.day),r.timeHash=re(r.hour)+":"+re(r.minute)+":"+re(r.second)+p,r}function In(e){const n=new Date(e.getFullYear(),e.getMonth(),e.getDate());n.setDate(n.getDate()-(n.getDay()+6)%7+3);const l=new Date(n.getFullYear(),0,4);l.setDate(l.getDate()-(l.getDay()+6)%7+3);const a=n.getTimezoneOffset()-l.getTimezoneOffset();n.setHours(n.getHours()-a);const o=(n-l)/(ma*7);return 1+Math.floor(o)}function We(e,n,l){const a=new Date(e),o=`set${l===!0?"UTC":""}`;switch(n){case"year":case"years":a[`${o}Month`](0);case"month":case"months":a[`${o}Date`](1);case"day":case"days":case"date":a[`${o}Hours`](0);case"hour":case"hours":a[`${o}Minutes`](0);case"minute":case"minutes":a[`${o}Seconds`](0);case"second":case"seconds":a[`${o}Milliseconds`](0)}return a}function ln(e,n,l){return(e.getTime()-e.getTimezoneOffset()*ll-(n.getTime()-n.getTimezoneOffset()*ll))/l}function ba(e,n,l="days"){const a=new Date(e),o=new Date(n);switch(l){case"years":case"year":return a.getFullYear()-o.getFullYear();case"months":case"month":return(a.getFullYear()-o.getFullYear())*12+a.getMonth()-o.getMonth();case"days":case"day":case"date":return ln(We(a,"day"),We(o,"day"),ma);case"hours":case"hour":return ln(We(a,"hour"),We(o,"hour"),nu);case"minutes":case"minute":return ln(We(a,"minute"),We(o,"minute"),ll);case"seconds":case"second":return ln(We(a,"second"),We(o,"second"),1e3)}}function Nn(e){return ba(e,We(e,"year"),"days")+1}function kt(e){if(e>=11&&e<=13)return`${e}th`;switch(e%10){case 1:return`${e}st`;case 2:return`${e}nd`;case 3:return`${e}rd`}return`${e}th`}const vo={YY(e,n,l){const a=this.YYYY(e,n,l)%100;return a>=0?re(a):"-"+re(Math.abs(a))},YYYY(e,n,l){return l??e.getFullYear()},M(e){return e.getMonth()+1},Mo(e){return kt(e.getMonth()+1)},MM(e){return re(e.getMonth()+1)},MMM(e,n){return n.monthsShort[e.getMonth()]},MMMM(e,n){return n.months[e.getMonth()]},Q(e){return Math.ceil((e.getMonth()+1)/3)},Qo(e){return kt(this.Q(e))},D(e){return e.getDate()},Do(e){return kt(e.getDate())},DD(e){return re(e.getDate())},DDD(e){return Nn(e)},DDDo(e){return kt(Nn(e))},DDDD(e){return re(Nn(e),3)},d(e){return e.getDay()},do(e){return kt(e.getDay())},dd(e,n){return n.days[e.getDay()].slice(0,2)},ddd(e,n){return n.daysShort[e.getDay()]},dddd(e,n){return n.days[e.getDay()]},E(e){return e.getDay()||7},w(e){return In(e)},wo(e){return kt(In(e))},ww(e){return re(In(e))},H(e){return e.getHours()},HH(e){return re(e.getHours())},h(e){const n=e.getHours();return n===0?12:n>12?n%12:n},hh(e){return re(this.h(e))},m(e){return e.getMinutes()},mm(e){return re(e.getMinutes())},s(e){return e.getSeconds()},ss(e){return re(e.getSeconds())},S(e){return Math.floor(e.getMilliseconds()/100)},SS(e){return re(Math.floor(e.getMilliseconds()/10))},SSS(e){return re(e.getMilliseconds(),3)},A(e){return e.getHours()<12?"AM":"PM"},a(e){return e.getHours()<12?"am":"pm"},aa(e){return e.getHours()<12?"a.m.":"p.m."},Z(e,n,l,a){const o=a??e.getTimezoneOffset();return fo(o,":")},ZZ(e,n,l,a){const o=a??e.getTimezoneOffset();return fo(o)},X(e){return Math.floor(e.getTime()/1e3)},x(e){return e.getTime()}};function iu(e,n,l,a,o){if(e!==0&&!e||e===1/0||e===-1/0)return;const r=new Date(e);if(isNaN(r))return;n===void 0&&(n=ha);const u=ga(l,Je.props);return n.replace(lu,(i,c)=>i in vo?vo[i](r,u,a,o):c===void 0?i:c.split("\\]").join("]"))}const Ue=20,uu=["Calendar","Years","Months"],mo=e=>uu.includes(e),jn=e=>/^-?[\d]+\/[0-1]\d$/.test(e),Ct=" — ";function Ze(e){return e.year+"/"+re(e.month)}const su=ae({name:"QDate",props:{...so,...hn,...Pe,modelValue:{required:!0,validator:e=>typeof e=="string"||Array.isArray(e)===!0||Object(e)===e||e===null},multiple:Boolean,range:Boolean,title:String,subtitle:String,mask:{...so.mask,default:"YYYY/MM/DD"},defaultYearMonth:{type:String,validator:jn},yearsInMonthView:Boolean,events:[Array,Function],eventColor:[String,Function],emitImmediately:Boolean,options:[Array,Function],navigationMinYearMonth:{type:String,validator:jn},navigationMaxYearMonth:{type:String,validator:jn},noUnset:Boolean,firstDayOfWeek:[String,Number],todayBtn:Boolean,minimal:Boolean,defaultView:{type:String,default:"Calendar",validator:mo}},emits:[...eu,"rangeStart","rangeEnd","navigation"],setup(e,{slots:n,emit:l}){const{proxy:a}=t.getCurrentInstance(),{$q:o}=a,r=Ie(e,o),{getCache:u}=Ui(),{tabindex:i,headerClass:c,getLocale:f,getCurrentDate:s}=tu(e,o);let h;const p=lr(e),m=$o(p),S=t.ref(null),E=t.ref(Tt()),b=t.ref(f()),H=t.computed(()=>Tt()),M=t.computed(()=>f()),B=t.computed(()=>s()),k=t.ref(je(E.value,b.value)),q=t.ref(e.defaultView),D=t.computed(()=>o.lang.rtl===!0?"right":"left"),A=t.ref(D.value),K=t.ref(D.value),V=k.value.year,z=t.ref(V-V%Ue-(V<0?Ue:0)),$=t.ref(null),C=t.computed(()=>{const d=e.landscape===!0?"landscape":"portrait";return`q-date q-date--${d} q-date--${d}-${e.minimal===!0?"minimal":"standard"}`+(r.value===!0?" q-date--dark q-dark":"")+(e.bordered===!0?" q-date--bordered":"")+(e.square===!0?" q-date--square no-border-radius":"")+(e.flat===!0?" q-date--flat no-shadow":"")+(e.disable===!0?" disabled":e.readonly===!0?" q-date--readonly":"")}),j=t.computed(()=>e.color||"primary"),y=t.computed(()=>e.textColor||"white"),T=t.computed(()=>e.emitImmediately===!0&&e.multiple!==!0&&e.range!==!0),O=t.computed(()=>Array.isArray(e.modelValue)===!0?e.modelValue:e.modelValue!==null&&e.modelValue!==void 0?[e.modelValue]:[]),W=t.computed(()=>O.value.filter(d=>typeof d=="string").map(d=>$e(d,E.value,b.value)).filter(d=>d.dateHash!==null&&d.day!==null&&d.month!==null&&d.year!==null)),L=t.computed(()=>{const d=g=>$e(g,E.value,b.value);return O.value.filter(g=>yi(g)===!0&&g.from!==void 0&&g.to!==void 0).map(g=>({from:d(g.from),to:d(g.to)})).filter(g=>g.from.dateHash!==null&&g.to.dateHash!==null&&g.from.dateHash<g.to.dateHash)}),X=t.computed(()=>e.calendar!=="persian"?d=>new Date(d.year,d.month-1,d.day):d=>{const g=uo(d.year,d.month,d.day);return new Date(g.gy,g.gm-1,g.gd)}),ee=t.computed(()=>e.calendar==="persian"?Xe:(d,g,_)=>iu(new Date(d.year,d.month-1,d.day,d.hour,d.minute,d.second,d.millisecond),g===void 0?E.value:g,_===void 0?b.value:_,d.year,d.timezoneOffset)),x=t.computed(()=>W.value.length+L.value.reduce((d,g)=>d+1+ba(X.value(g.to),X.value(g.from)),0)),w=t.computed(()=>{if(e.title!==void 0&&e.title!==null&&e.title.length!==0)return e.title;if($.value!==null){const _=$.value.init,F=X.value(_);return b.value.daysShort[F.getDay()]+", "+b.value.monthsShort[_.month-1]+" "+_.day+Ct+"?"}if(x.value===0)return Ct;if(x.value>1)return`${x.value} ${b.value.pluralDay}`;const d=W.value[0],g=X.value(d);return isNaN(g.valueOf())===!0?Ct:b.value.headerTitle!==void 0?b.value.headerTitle(g,d):b.value.daysShort[g.getDay()]+", "+b.value.monthsShort[d.month-1]+" "+d.day}),Q=t.computed(()=>W.value.concat(L.value.map(g=>g.from)).sort((g,_)=>g.year-_.year||g.month-_.month)[0]),I=t.computed(()=>W.value.concat(L.value.map(g=>g.to)).sort((g,_)=>_.year-g.year||_.month-g.month)[0]),J=t.computed(()=>{if(e.subtitle!==void 0&&e.subtitle!==null&&e.subtitle.length!==0)return e.subtitle;if(x.value===0)return Ct;if(x.value>1){const d=Q.value,g=I.value,_=b.value.monthsShort;return _[d.month-1]+(d.year!==g.year?" "+d.year+Ct+_[g.month-1]+" ":d.month!==g.month?Ct+_[g.month-1]:"")+" "+g.year}return W.value[0].year}),Z=t.computed(()=>{const d=[o.iconSet.datetime.arrowLeft,o.iconSet.datetime.arrowRight];return o.lang.rtl===!0?d.reverse():d}),G=t.computed(()=>e.firstDayOfWeek!==void 0?Number(e.firstDayOfWeek):b.value.firstDayOfWeek),ie=t.computed(()=>{const d=b.value.daysShort,g=G.value;return g>0?d.slice(g,7).concat(d.slice(0,g)):d}),R=t.computed(()=>{const d=k.value;return e.calendar!=="persian"?new Date(d.year,d.month,0).getDate():rn(d.year,d.month)}),be=t.computed(()=>typeof e.eventColor=="function"?e.eventColor:()=>e.eventColor),ue=t.computed(()=>{if(e.navigationMinYearMonth===void 0)return null;const d=e.navigationMinYearMonth.split("/");return{year:parseInt(d[0],10),month:parseInt(d[1],10)}}),fe=t.computed(()=>{if(e.navigationMaxYearMonth===void 0)return null;const d=e.navigationMaxYearMonth.split("/");return{year:parseInt(d[0],10),month:parseInt(d[1],10)}}),ke=t.computed(()=>{const d={month:{prev:!0,next:!0},year:{prev:!0,next:!0}};return ue.value!==null&&ue.value.year>=k.value.year&&(d.year.prev=!1,ue.value.year===k.value.year&&ue.value.month>=k.value.month&&(d.month.prev=!1)),fe.value!==null&&fe.value.year<=k.value.year&&(d.year.next=!1,fe.value.year===k.value.year&&fe.value.month<=k.value.month&&(d.month.next=!1)),d}),Ne=t.computed(()=>{const d={};return W.value.forEach(g=>{const _=Ze(g);d[_]===void 0&&(d[_]=[]),d[_].push(g.day)}),d}),Le=t.computed(()=>{const d={};return L.value.forEach(g=>{const _=Ze(g.from),F=Ze(g.to);if(d[_]===void 0&&(d[_]=[]),d[_].push({from:g.from.day,to:_===F?g.to.day:void 0,range:g}),_<F){let N;const{year:ne,month:U}=g.from,te=U<12?{year:ne,month:U+1}:{year:ne+1,month:1};for(;(N=Ze(te))<=F;)d[N]===void 0&&(d[N]=[]),d[N].push({from:void 0,to:N===F?g.to.day:void 0,range:g}),te.month++,te.month>12&&(te.year++,te.month=1)}}),d}),Me=t.computed(()=>{if($.value===null)return;const{init:d,initHash:g,final:_,finalHash:F}=$.value,[N,ne]=g<=F?[d,_]:[_,d],U=Ze(N),te=Ze(ne);if(U!==we.value&&te!==we.value)return;const oe={};return U===we.value?(oe.from=N.day,oe.includeFrom=!0):oe.from=1,te===we.value?(oe.to=ne.day,oe.includeTo=!0):oe.to=R.value,oe}),we=t.computed(()=>Ze(k.value)),lt=t.computed(()=>{const d={};if(e.options===void 0){for(let _=1;_<=R.value;_++)d[_]=!0;return d}const g=typeof e.options=="function"?e.options:_=>e.options.includes(_);for(let _=1;_<=R.value;_++){const F=we.value+"/"+re(_);d[_]=g(F)}return d}),zt=t.computed(()=>{const d={};if(e.events===void 0)for(let g=1;g<=R.value;g++)d[g]=!1;else{const g=typeof e.events=="function"?e.events:_=>e.events.includes(_);for(let _=1;_<=R.value;_++){const F=we.value+"/"+re(_);d[_]=g(F)===!0&&be.value(F)}}return d}),ot=t.computed(()=>{let d,g;const{year:_,month:F}=k.value;if(e.calendar!=="persian")d=new Date(_,F-1,1),g=new Date(_,F-1,0).getDate();else{const N=uo(_,F,1);d=new Date(N.gy,N.gm-1,N.gd);let ne=F-1,U=_;ne===0&&(ne=12,U--),g=rn(U,ne)}return{days:d.getDay()-G.value-1,endDay:g}}),Ve=t.computed(()=>{const d=[],{days:g,endDay:_}=ot.value,F=g<0?g+7:g;if(F<6)for(let U=_-F;U<=_;U++)d.push({i:U,fill:!0});const N=d.length;for(let U=1;U<=R.value;U++){const te={i:U,event:zt.value[U],classes:[]};lt.value[U]===!0&&(te.in=!0,te.flat=!0),d.push(te)}if(Ne.value[we.value]!==void 0&&Ne.value[we.value].forEach(U=>{const te=N+U-1;Object.assign(d[te],{selected:!0,unelevated:!0,flat:!1,color:j.value,textColor:y.value})}),Le.value[we.value]!==void 0&&Le.value[we.value].forEach(U=>{if(U.from!==void 0){const te=N+U.from-1,oe=N+(U.to||R.value)-1;for(let Te=te;Te<=oe;Te++)Object.assign(d[Te],{range:U.range,unelevated:!0,color:j.value,textColor:y.value});Object.assign(d[te],{rangeFrom:!0,flat:!1}),U.to!==void 0&&Object.assign(d[oe],{rangeTo:!0,flat:!1})}else if(U.to!==void 0){const te=N+U.to-1;for(let oe=N;oe<=te;oe++)Object.assign(d[oe],{range:U.range,unelevated:!0,color:j.value,textColor:y.value});Object.assign(d[te],{flat:!1,rangeTo:!0})}else{const te=N+R.value-1;for(let oe=N;oe<=te;oe++)Object.assign(d[oe],{range:U.range,unelevated:!0,color:j.value,textColor:y.value})}}),Me.value!==void 0){const U=N+Me.value.from-1,te=N+Me.value.to-1;for(let oe=U;oe<=te;oe++)d[oe].color=j.value,d[oe].editRange=!0;Me.value.includeFrom===!0&&(d[U].editRangeFrom=!0),Me.value.includeTo===!0&&(d[te].editRangeTo=!0)}k.value.year===B.value.year&&k.value.month===B.value.month&&(d[N+B.value.day-1].today=!0);const ne=d.length%7;if(ne>0){const U=7-ne;for(let te=1;te<=U;te++)d.push({i:te,fill:!0})}return d.forEach(U=>{let te="q-date__calendar-item ";U.fill===!0?te+="q-date__calendar-item--fill":(te+=`q-date__calendar-item--${U.in===!0?"in":"out"}`,U.range!==void 0&&(te+=` q-date__range${U.rangeTo===!0?"-to":U.rangeFrom===!0?"-from":""}`),U.editRange===!0&&(te+=` q-date__edit-range${U.editRangeFrom===!0?"-from":""}${U.editRangeTo===!0?"-to":""}`),(U.range!==void 0||U.editRange===!0)&&(te+=` text-${U.color}`)),U.classes=te}),d}),Ce=t.computed(()=>e.disable===!0?{"aria-disabled":"true"}:{});t.watch(()=>e.modelValue,d=>{if(h===JSON.stringify(d))h=0;else{const g=je(E.value,b.value);Ye(g.year,g.month,g)}}),t.watch(q,()=>{S.value!==null&&a.$el.contains(document.activeElement)===!0&&S.value.focus()}),t.watch(()=>k.value.year+"|"+k.value.month,()=>{l("navigation",{year:k.value.year,month:k.value.month})}),t.watch(H,d=>{st(d,b.value,"mask"),E.value=d}),t.watch(M,d=>{st(E.value,d,"locale"),b.value=d});function Re(d){h=JSON.stringify(d)}function at(){const{year:d,month:g,day:_}=B.value,F={...k.value,year:d,month:g,day:_},N=Ne.value[Ze(F)];(N===void 0||N.includes(F.day)===!1)&&Dt(F),rt(F.year,F.month)}function wn(d){mo(d)===!0&&(q.value=d)}function Yt(d,g){["month","year"].includes(d)&&(d==="month"?Qt:ut)(g===!0?-1:1)}function rt(d,g){q.value="Calendar",Ye(d,g)}function Sn(d,g){if(e.range===!1||!d){$.value=null;return}const _=Object.assign({...k.value},d),F=g!==void 0?Object.assign({...k.value},g):_;$.value={init:_,initHash:Xe(_),final:F,finalHash:Xe(F)},rt(_.year,_.month)}function Tt(){return e.calendar==="persian"?"YYYY/MM/DD":e.mask}function $e(d,g,_){return ru(d,g,_,e.calendar,{hour:0,minute:0,second:0,millisecond:0})}function je(d,g){const _=Array.isArray(e.modelValue)===!0?e.modelValue:e.modelValue?[e.modelValue]:[];if(_.length===0)return it();const F=_[_.length-1],N=$e(F.from!==void 0?F.from:F,d,g);return N.dateHash===null?it():N}function it(){let d,g;if(e.defaultYearMonth!==void 0){const _=e.defaultYearMonth.split("/");d=parseInt(_[0],10),g=parseInt(_[1],10)}else{const _=B.value!==void 0?B.value:s();d=_.year,g=_.month}return{year:d,month:g,day:1,hour:0,minute:0,second:0,millisecond:0,dateHash:d+"/"+re(g)+"/01"}}function Qt(d){let g=k.value.year,_=Number(k.value.month)+d;_===13?(_=1,g++):_===0&&(_=12,g--),Ye(g,_),T.value===!0&&bt("month")}function ut(d){const g=Number(k.value.year)+d;Ye(g,k.value.month),T.value===!0&&bt("year")}function Ut(d){Ye(d,k.value.month),q.value=e.defaultView==="Years"?"Months":"Calendar",T.value===!0&&bt("year")}function Wt(d){Ye(k.value.year,d),q.value="Calendar",T.value===!0&&bt("month")}function Kt(d,g){const _=Ne.value[g];((_==null?void 0:_.includes(d.day))===!0?pt:Dt)(d)}function He(d){return{year:d.year,month:d.month,day:d.day}}function Ye(d,g,_){if(ue.value!==null&&d<=ue.value.year&&((g<ue.value.month||d<ue.value.year)&&(g=ue.value.month),d=ue.value.year),fe.value!==null&&d>=fe.value.year&&((g>fe.value.month||d>fe.value.year)&&(g=fe.value.month),d=fe.value.year),_!==void 0){const{hour:N,minute:ne,second:U,millisecond:te,timezoneOffset:oe,timeHash:Te}=_;Object.assign(k.value,{hour:N,minute:ne,second:U,millisecond:te,timezoneOffset:oe,timeHash:Te})}const F=d+"/"+re(g)+"/01";F!==k.value.dateHash&&(A.value=k.value.dateHash<F==(o.lang.rtl!==!0)?"left":"right",d!==k.value.year&&(K.value=A.value),t.nextTick(()=>{z.value=d-d%Ue-(d<0?Ue:0),Object.assign(k.value,{year:d,month:g,day:1,dateHash:F})}))}function Bt(d,g,_){const F=d!==null&&d.length===1&&e.multiple===!1?d[0]:d,{reason:N,details:ne}=Xt(g,_);Re(F),l("update:modelValue",F,N,ne)}function bt(d){const g=W.value[0]!==void 0&&W.value[0].dateHash!==null?{...W.value[0]}:{...k.value};t.nextTick(()=>{g.year=k.value.year,g.month=k.value.month;const _=e.calendar!=="persian"?new Date(g.year,g.month,0).getDate():rn(g.year,g.month);g.day=Math.min(Math.max(1,g.day),_);const F=Qe(g),{details:N}=Xt("",g);Re(F),l("update:modelValue",F,d,N)})}function Xt(d,g){return g.from!==void 0?{reason:`${d}-range`,details:{...He(g.target),from:He(g.from),to:He(g.to)}}:{reason:`${d}-day`,details:He(g)}}function Qe(d,g,_){return d.from!==void 0?{from:ee.value(d.from,g,_),to:ee.value(d.to,g,_)}:ee.value(d,g,_)}function Dt(d){let g;if(e.multiple===!0)if(d.from!==void 0){const _=Xe(d.from),F=Xe(d.to),N=W.value.filter(U=>U.dateHash<_||U.dateHash>F),ne=L.value.filter(({from:U,to:te})=>te.dateHash<_||U.dateHash>F);g=N.concat(ne).concat(d).map(U=>Qe(U))}else{const _=O.value.slice();_.push(Qe(d)),g=_}else g=Qe(d);Bt(g,"add",d)}function pt(d){if(e.noUnset===!0)return;let g=null;if(e.multiple===!0&&Array.isArray(e.modelValue)===!0){const _=Qe(d);d.from!==void 0?g=e.modelValue.filter(F=>F.from!==void 0?F.from!==_.from&&F.to!==_.to:!0):g=e.modelValue.filter(F=>F!==_),g.length===0&&(g=null)}Bt(g,"remove",d)}function st(d,g,_){const F=W.value.concat(L.value).map(ne=>Qe(ne,d,g)).filter(ne=>ne.from!==void 0?ne.from.dateHash!==null&&ne.to.dateHash!==null:ne.dateHash!==null),N=(e.multiple===!0?F:F[0])||null;Re(N),l("update:modelValue",N,_)}function ct(){if(e.minimal!==!0)return t.h("div",{class:"q-date__header "+c.value},[t.h("div",{class:"relative-position"},[t.h(t.Transition,{name:"q-transition--fade"},()=>t.h("div",{key:"h-yr-"+J.value,class:"q-date__header-subtitle q-date__header-link "+(q.value==="Years"?"q-date__header-link--active":"cursor-pointer"),tabindex:i.value,...u("vY",{onClick(){q.value="Years"},onKeyup(d){d.keyCode===13&&(q.value="Years")}})},[J.value]))]),t.h("div",{class:"q-date__header-title relative-position flex no-wrap"},[t.h("div",{class:"relative-position col"},[t.h(t.Transition,{name:"q-transition--fade"},()=>t.h("div",{key:"h-sub"+w.value,class:"q-date__header-title-label q-date__header-link "+(q.value==="Calendar"?"q-date__header-link--active":"cursor-pointer"),tabindex:i.value,...u("vC",{onClick(){q.value="Calendar"},onKeyup(d){d.keyCode===13&&(q.value="Calendar")}})},[w.value]))]),e.todayBtn===!0?t.h(De,{class:"q-date__header-today self-start",icon:o.iconSet.datetime.today,ariaLabel:o.lang.date.today,flat:!0,size:"sm",round:!0,tabindex:i.value,onClick:at}):null])])}function Fe({label:d,type:g,key:_,dir:F,goTo:N,boundaries:ne,cls:U}){return[t.h("div",{class:"row items-center q-date__arrow"},[t.h(De,{round:!0,dense:!0,size:"sm",flat:!0,icon:Z.value[0],ariaLabel:g==="Years"?o.lang.date.prevYear:o.lang.date.prevMonth,tabindex:i.value,disable:ne.prev===!1,...u("go-#"+g,{onClick(){N(-1)}})})]),t.h("div",{class:"relative-position overflow-hidden flex flex-center"+U},[t.h(t.Transition,{name:"q-transition--jump-"+F},()=>t.h("div",{key:_},[t.h(De,{flat:!0,dense:!0,noCaps:!0,label:d,tabindex:i.value,...u("view#"+g,{onClick:()=>{q.value=g}})})]))]),t.h("div",{class:"row items-center q-date__arrow"},[t.h(De,{round:!0,dense:!0,size:"sm",flat:!0,icon:Z.value[1],ariaLabel:g==="Years"?o.lang.date.nextYear:o.lang.date.nextMonth,tabindex:i.value,disable:ne.next===!1,...u("go+#"+g,{onClick(){N(1)}})})])]}const xn={Calendar:()=>[t.h("div",{key:"calendar-view",class:"q-date__view q-date__calendar"},[t.h("div",{class:"q-date__navigation row items-center no-wrap"},Fe({label:b.value.months[k.value.month-1],type:"Months",key:k.value.month,dir:A.value,goTo:Qt,boundaries:ke.value.month,cls:" col"}).concat(Fe({label:k.value.year,type:"Years",key:k.value.year,dir:K.value,goTo:ut,boundaries:ke.value.year,cls:""}))),t.h("div",{class:"q-date__calendar-weekdays row items-center no-wrap"},ie.value.map(d=>t.h("div",{class:"q-date__calendar-item"},[t.h("div",d)]))),t.h("div",{class:"q-date__calendar-days-container relative-position overflow-hidden"},[t.h(t.Transition,{name:"q-transition--slide-"+A.value},()=>t.h("div",{key:we.value,class:"q-date__calendar-days fit"},Ve.value.map(d=>t.h("div",{class:d.classes},[d.in===!0?t.h(De,{class:d.today===!0?"q-date__today":"",dense:!0,flat:d.flat,unelevated:d.unelevated,color:d.color,textColor:d.textColor,label:d.i,tabindex:i.value,...u("day#"+d.i,{onClick:()=>{kn(d.i)},onMouseover:()=>{Cn(d.i)}})},d.event!==!1?()=>t.h("div",{class:"q-date__event bg-"+d.event}):null):t.h("div",""+d.i)]))))])])],Months(){const d=k.value.year===B.value.year,g=F=>ue.value!==null&&k.value.year===ue.value.year&&ue.value.month>F||fe.value!==null&&k.value.year===fe.value.year&&fe.value.month<F,_=b.value.monthsShort.map((F,N)=>{const ne=k.value.month===N+1;return t.h("div",{class:"q-date__months-item flex flex-center"},[t.h(De,{class:d===!0&&B.value.month===N+1?"q-date__today":null,flat:ne!==!0,label:F,unelevated:ne,color:ne===!0?j.value:null,textColor:ne===!0?y.value:null,tabindex:i.value,disable:g(N+1),...u("month#"+N,{onClick:()=>{Wt(N+1)}})})])});return e.yearsInMonthView===!0&&_.unshift(t.h("div",{class:"row no-wrap full-width"},[Fe({label:k.value.year,type:"Years",key:k.value.year,dir:K.value,goTo:ut,boundaries:ke.value.year,cls:" col"})])),t.h("div",{key:"months-view",class:"q-date__view q-date__months flex flex-center"},_)},Years(){const d=z.value,g=d+Ue,_=[],F=N=>ue.value!==null&&ue.value.year>N||fe.value!==null&&fe.value.year<N;for(let N=d;N<=g;N++){const ne=k.value.year===N;_.push(t.h("div",{class:"q-date__years-item flex flex-center"},[t.h(De,{key:"yr"+N,class:B.value.year===N?"q-date__today":null,flat:!ne,label:N,dense:!0,unelevated:ne,color:ne===!0?j.value:null,textColor:ne===!0?y.value:null,tabindex:i.value,disable:F(N),...u("yr#"+N,{onClick:()=>{Ut(N)}})})]))}return t.h("div",{class:"q-date__view q-date__years flex flex-center"},[t.h("div",{class:"col-auto"},[t.h(De,{round:!0,dense:!0,flat:!0,icon:Z.value[0],ariaLabel:o.lang.date.prevRangeYears(Ue),tabindex:i.value,disable:F(d),...u("y-",{onClick:()=>{z.value-=Ue}})})]),t.h("div",{class:"q-date__years-content col self-stretch row items-center"},_),t.h("div",{class:"col-auto"},[t.h(De,{round:!0,dense:!0,flat:!0,icon:Z.value[1],ariaLabel:o.lang.date.nextRangeYears(Ue),tabindex:i.value,disable:F(g),...u("y+",{onClick:()=>{z.value+=Ue}})})])])}};function kn(d){const g={...k.value,day:d};if(e.range===!1){Kt(g,we.value);return}if($.value===null){const _=Ve.value.find(N=>N.fill!==!0&&N.i===d);if(e.noUnset!==!0&&_.range!==void 0){pt({target:g,from:_.range.from,to:_.range.to});return}if(_.selected===!0){pt(g);return}const F=Xe(g);$.value={init:g,initHash:F,final:g,finalHash:F},l("rangeStart",He(g))}else{const _=$.value.initHash,F=Xe(g),N=_<=F?{from:$.value.init,to:g}:{from:g,to:$.value.init};$.value=null,Dt(_===F?g:{target:g,...N}),l("rangeEnd",{from:He(N.from),to:He(N.to)})}}function Cn(d){if($.value!==null){const g={...k.value,day:d};Object.assign($.value,{final:g,finalHash:Xe(g)})}}return Object.assign(a,{setToday:at,setView:wn,offsetCalendar:Yt,setCalendarTo:rt,setEditingRange:Sn}),()=>{const d=[t.h("div",{class:"q-date__content col relative-position"},[t.h(t.Transition,{name:"q-transition--fade"},xn[q.value])])],g=xe(n.default);return g!==void 0&&d.push(t.h("div",{class:"q-date__actions"},g)),e.name!==void 0&&e.disable!==!0&&m(d,"push"),t.h("div",{class:C.value,...Ce.value},[ct(),t.h("div",{ref:S,class:"q-date__main col column",tabindex:-1},d)])}}}),cu=ae({name:"QPopupProxy",props:{...jo,breakpoint:{type:[String,Number],default:450}},emits:["show","hide"],setup(e,{slots:n,emit:l,attrs:a}){const{proxy:o}=t.getCurrentInstance(),{$q:r}=o,u=t.ref(!1),i=t.ref(null),c=t.computed(()=>parseInt(e.breakpoint,10)),{canShow:f}=Yo({showing:u});function s(){return r.screen.width<c.value||r.screen.height<c.value?"dialog":"menu"}const h=t.ref(s()),p=t.computed(()=>h.value==="menu"?{maxHeight:"99vh"}:{});t.watch(()=>s(),E=>{u.value!==!0&&(h.value=E)});function m(E){u.value=!0,l("show",E)}function S(E){u.value=!1,h.value=s(),l("hide",E)}return Object.assign(o,{show(E){f(E)===!0&&i.value.show(E)},hide(E){i.value.hide(E)},toggle(E){i.value.toggle(E)}}),Et(o,"currentComponent",()=>({type:h.value,ref:i.value})),()=>{const E={ref:i,...p.value,...a,onShow:m,onHide:S};let b;return h.value==="dialog"?b=ia:(b=bn,Object.assign(E,{target:e.target,contextMenu:e.contextMenu,noParentEvent:!0,separateClosePopup:!0})),t.h(b,E,n.default)}}}),ho={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},fn={"#":{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()}},pa=Object.keys(fn);pa.forEach(e=>{fn[e].regex=new RegExp(fn[e].pattern)});const du=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+pa.join("")+"])|(.)","g"),go=/[.*+?^${}()|[\]\\]/g,he="",fu={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean};function vu(e,n,l,a){let o,r,u,i,c,f;const s=t.ref(null),h=t.ref(m());function p(){return e.autogrow===!0||["textarea","text","search","url","tel","password"].includes(e.type)}t.watch(()=>e.type+e.autogrow,E),t.watch(()=>e.mask,V=>{if(V!==void 0)b(h.value,!0);else{const z=A(h.value);E(),e.modelValue!==z&&n("update:modelValue",z)}}),t.watch(()=>e.fillMask+e.reverseFillMask,()=>{s.value===!0&&b(h.value,!0)}),t.watch(()=>e.unmaskedValue,()=>{s.value===!0&&b(h.value)});function m(){if(E(),s.value===!0){const V=q(A(e.modelValue));return e.fillMask!==!1?K(V):V}return e.modelValue}function S(V){if(V<o.length)return o.slice(-V);let z="",$=o;const C=$.indexOf(he);if(C!==-1){for(let j=V-$.length;j>0;j--)z+=he;$=$.slice(0,C)+z+$.slice(C)}return $}function E(){if(s.value=e.mask!==void 0&&e.mask.length!==0&&p(),s.value===!1){i=void 0,o="",r="";return}const V=ho[e.mask]===void 0?e.mask:ho[e.mask],z=typeof e.fillMask=="string"&&e.fillMask.length!==0?e.fillMask.slice(0,1):"_",$=z.replace(go,"\\$&"),C=[],j=[],y=[];let T=e.reverseFillMask===!0,O="",W="";V.replace(du,(x,w,Q,I,J)=>{if(I!==void 0){const Z=fn[I];y.push(Z),W=Z.negate,T===!0&&(j.push("(?:"+W+"+)?("+Z.pattern+"+)?(?:"+W+"+)?("+Z.pattern+"+)?"),T=!1),j.push("(?:"+W+"+)?("+Z.pattern+")?")}else if(Q!==void 0)O="\\"+(Q==="\\"?"":Q),y.push(Q),C.push("([^"+O+"]+)?"+O+"?");else{const Z=w!==void 0?w:J;O=Z==="\\"?"\\\\\\\\":Z.replace(go,"\\\\$&"),y.push(Z),C.push("([^"+O+"]+)?"+O+"?")}});const L=new RegExp("^"+C.join("")+"("+(O===""?".":"[^"+O+"]")+"+)?"+(O===""?"":"["+O+"]*")+"$"),X=j.length-1,ee=j.map((x,w)=>w===0&&e.reverseFillMask===!0?new RegExp("^"+$+"*"+x):w===X?new RegExp("^"+x+"("+(W===""?".":W)+"+)?"+(e.reverseFillMask===!0?"$":$+"*")):new RegExp("^"+x));u=y,i=x=>{const w=L.exec(e.reverseFillMask===!0?x:x.slice(0,y.length+1));w!==null&&(x=w.slice(1).join(""));const Q=[],I=ee.length;for(let J=0,Z=x;J<I;J++){const G=ee[J].exec(Z);if(G===null)break;Z=Z.slice(G.shift().length),Q.push(...G)}return Q.length!==0?Q.join(""):x},o=y.map(x=>typeof x=="string"?x:he).join(""),r=o.split(he).join(z)}function b(V,z,$){const C=a.value,j=C.selectionEnd,y=C.value.length-j,T=A(V);z===!0&&E();const O=q(T),W=e.fillMask!==!1?K(O):O,L=h.value!==W;C.value!==W&&(C.value=W),L===!0&&(h.value=W),document.activeElement===C&&t.nextTick(()=>{if(W===r){const ee=e.reverseFillMask===!0?r.length:0;C.setSelectionRange(ee,ee,"forward");return}if($==="insertFromPaste"&&e.reverseFillMask!==!0){const ee=C.selectionEnd;let x=j-1;for(let w=c;w<=x&&w<ee;w++)o[w]!==he&&x++;M.right(C,x);return}if(["deleteContentBackward","deleteContentForward"].indexOf($)!==-1){const ee=e.reverseFillMask===!0?j===0?W.length>O.length?1:0:Math.max(0,W.length-(W===r?0:Math.min(O.length,y)+1))+1:j;C.setSelectionRange(ee,ee,"forward");return}if(e.reverseFillMask===!0)if(L===!0){const ee=Math.max(0,W.length-(W===r?0:Math.min(O.length,y+1)));ee===1&&j===1?C.setSelectionRange(ee,ee,"forward"):M.rightReverse(C,ee)}else{const ee=W.length-y;C.setSelectionRange(ee,ee,"backward")}else if(L===!0){const ee=Math.max(0,o.indexOf(he),Math.min(O.length,j)-1);M.right(C,ee)}else{const ee=j-1;M.right(C,ee)}});const X=e.unmaskedValue===!0?A(W):W;String(e.modelValue)!==X&&(e.modelValue!==null||X!=="")&&l(X,!0)}function H(V,z,$){const C=q(A(V.value));z=Math.max(0,o.indexOf(he),Math.min(C.length,z)),c=z,V.setSelectionRange(z,$,"forward")}const M={left(V,z){const $=o.slice(z-1).indexOf(he)===-1;let C=Math.max(0,z-1);for(;C>=0;C--)if(o[C]===he){z=C,$===!0&&z++;break}if(C<0&&o[z]!==void 0&&o[z]!==he)return M.right(V,0);z>=0&&V.setSelectionRange(z,z,"backward")},right(V,z){const $=V.value.length;let C=Math.min($,z+1);for(;C<=$;C++)if(o[C]===he){z=C;break}else o[C-1]===he&&(z=C);if(C>$&&o[z-1]!==void 0&&o[z-1]!==he)return M.left(V,$);V.setSelectionRange(z,z,"forward")},leftReverse(V,z){const $=S(V.value.length);let C=Math.max(0,z-1);for(;C>=0;C--)if($[C-1]===he){z=C;break}else if($[C]===he&&(z=C,C===0))break;if(C<0&&$[z]!==void 0&&$[z]!==he)return M.rightReverse(V,0);z>=0&&V.setSelectionRange(z,z,"backward")},rightReverse(V,z){const $=V.value.length,C=S($),j=C.slice(0,z+1).indexOf(he)===-1;let y=Math.min($,z+1);for(;y<=$;y++)if(C[y-1]===he){z=y,z>0&&j===!0&&z--;break}if(y>$&&C[z-1]!==void 0&&C[z-1]!==he)return M.leftReverse(V,$);V.setSelectionRange(z,z,"forward")}};function B(V){n("click",V),f=void 0}function k(V){if(n("keydown",V),il(V)===!0||V.altKey===!0)return;const z=a.value,$=z.selectionStart,C=z.selectionEnd;if(V.shiftKey||(f=void 0),V.keyCode===37||V.keyCode===39){V.shiftKey&&f===void 0&&(f=z.selectionDirection==="forward"?$:C);const j=M[(V.keyCode===39?"right":"left")+(e.reverseFillMask===!0?"Reverse":"")];if(V.preventDefault(),j(z,f===$?C:$),V.shiftKey){const y=z.selectionStart;z.setSelectionRange(Math.min(f,y),Math.max(f,y),"forward")}}else V.keyCode===8&&e.reverseFillMask!==!0&&$===C?(M.left(z,$),z.setSelectionRange(z.selectionStart,C,"backward")):V.keyCode===46&&e.reverseFillMask===!0&&$===C&&(M.rightReverse(z,C),z.setSelectionRange($,z.selectionEnd,"forward"))}function q(V){if(V==null||V==="")return"";if(e.reverseFillMask===!0)return D(V);const z=u;let $=0,C="";for(let j=0;j<z.length;j++){const y=V[$],T=z[j];if(typeof T=="string")C+=T,y===T&&$++;else if(y!==void 0&&T.regex.test(y))C+=T.transform!==void 0?T.transform(y):y,$++;else return C}return C}function D(V){const z=u,$=o.indexOf(he);let C=V.length-1,j="";for(let y=z.length-1;y>=0&&C!==-1;y--){const T=z[y];let O=V[C];if(typeof T=="string")j=T+j,O===T&&C--;else if(O!==void 0&&T.regex.test(O))do j=(T.transform!==void 0?T.transform(O):O)+j,C--,O=V[C];while($===y&&O!==void 0&&T.regex.test(O));else return j}return j}function A(V){return typeof V!="string"||i===void 0?typeof V=="number"?i(""+V):V:i(V)}function K(V){return r.length-V.length<=0?V:e.reverseFillMask===!0&&V.length!==0?r.slice(0,-V.length)+V:V+r.slice(V.length)}return{innerValue:h,hasMask:s,moveCursorForPaste:H,updateMaskValue:b,onMaskedKeydown:k,onMaskedClick:B}}function mu(e,n){function l(){const a=e.modelValue;try{const o="DataTransfer"in window?new DataTransfer:"ClipboardEvent"in window?new ClipboardEvent("").clipboardData:void 0;return Object(a)===a&&("length"in a?Array.from(a):[a]).forEach(r=>{o.items.add(r)}),{files:o.files}}catch{return{files:void 0}}}return t.computed(()=>{if(e.type==="file")return l()})}const hu=ae({name:"QInput",inheritAttrs:!1,props:{...yn,...fu,...hn,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:[...fl,"paste","change","keydown","click","animationend"],setup(e,{emit:n,attrs:l}){const{proxy:a}=t.getCurrentInstance(),{$q:o}=a,r={};let u=NaN,i,c,f=null,s;const h=t.ref(null),p=Oo(e),{innerValue:m,hasMask:S,moveCursorForPaste:E,updateMaskValue:b,onMaskedKeydown:H,onMaskedClick:M}=vu(e,n,O,h),B=mu(e),k=t.computed(()=>It(m.value)),q=sa(y),D=vl({changeEvent:!0}),A=t.computed(()=>e.type==="textarea"||e.autogrow===!0),K=t.computed(()=>A.value===!0||["text","search","url","tel","password"].includes(e.type)),V=t.computed(()=>{const w={...D.splitAttrs.listeners.value,onInput:y,onPaste:j,onChange:L,onBlur:X,onFocus:Ee};return w.onCompositionstart=w.onCompositionupdate=w.onCompositionend=q,S.value===!0&&(w.onKeydown=H,w.onClick=M),e.autogrow===!0&&(w.onAnimationend=T),w}),z=t.computed(()=>{const w={tabindex:0,"data-autofocus":e.autofocus===!0||void 0,rows:e.type==="textarea"?6:void 0,"aria-label":e.label,name:p.value,...D.splitAttrs.attributes.value,id:D.targetUid.value,maxlength:e.maxlength,disabled:e.disable===!0,readonly:e.readonly===!0};return A.value===!1&&(w.type=e.type),e.autogrow===!0&&(w.rows=1),w});t.watch(()=>e.type,()=>{h.value&&(h.value.value=e.modelValue)}),t.watch(()=>e.modelValue,w=>{if(S.value===!0){if(c===!0&&(c=!1,String(w)===u))return;b(w)}else m.value!==w&&(m.value=w,e.type==="number"&&r.hasOwnProperty("value")===!0&&(i===!0?i=!1:delete r.value));e.autogrow===!0&&t.nextTick(W)}),t.watch(()=>e.autogrow,w=>{w===!0?t.nextTick(W):h.value!==null&&l.rows>0&&(h.value.style.height="auto")}),t.watch(()=>e.dense,()=>{e.autogrow===!0&&t.nextTick(W)});function $(){gn(()=>{const w=document.activeElement;h.value!==null&&h.value!==w&&(w===null||w.id!==D.targetUid.value)&&h.value.focus({preventScroll:!0})})}function C(){var w;(w=h.value)==null||w.select()}function j(w){if(S.value===!0&&e.reverseFillMask!==!0){const Q=w.target;E(Q,Q.selectionStart,Q.selectionEnd)}n("paste",w)}function y(w){if(!w||!w.target)return;if(e.type==="file"){n("update:modelValue",w.target.files);return}const Q=w.target.value;if(w.target.qComposing===!0){r.value=Q;return}if(S.value===!0)b(Q,!1,w.inputType);else if(O(Q),K.value===!0&&w.target===document.activeElement){const{selectionStart:I,selectionEnd:J}=w.target;I!==void 0&&J!==void 0&&t.nextTick(()=>{w.target===document.activeElement&&Q.indexOf(w.target.value)===0&&w.target.setSelectionRange(I,J)})}e.autogrow===!0&&W()}function T(w){n("animationend",w),W()}function O(w,Q){s=()=>{f=null,e.type!=="number"&&r.hasOwnProperty("value")===!0&&delete r.value,e.modelValue!==w&&u!==w&&(u=w,Q===!0&&(c=!0),n("update:modelValue",w),t.nextTick(()=>{u===w&&(u=NaN)})),s=void 0},e.type==="number"&&(i=!0,r.value=w),e.debounce!==void 0?(f!==null&&clearTimeout(f),r.value=w,f=setTimeout(s,e.debounce)):s()}function W(){requestAnimationFrame(()=>{const w=h.value;if(w!==null){const Q=w.parentNode.style,{scrollTop:I}=w,{overflowY:J,maxHeight:Z}=o.platform.is.firefox===!0?{}:window.getComputedStyle(w),G=J!==void 0&&J!=="scroll";G===!0&&(w.style.overflowY="hidden"),Q.marginBottom=w.scrollHeight-1+"px",w.style.height="1px",w.style.height=w.scrollHeight+"px",G===!0&&(w.style.overflowY=parseInt(Z,10)<w.scrollHeight?"auto":"hidden"),Q.marginBottom="",w.scrollTop=I}})}function L(w){q(w),f!==null&&(clearTimeout(f),f=null),s==null||s(),n("change",w.target.value)}function X(w){w!==void 0&&Ee(w),f!==null&&(clearTimeout(f),f=null),s==null||s(),i=!1,c=!1,delete r.value,e.type!=="file"&&setTimeout(()=>{h.value!==null&&(h.value.value=m.value!==void 0?m.value:"")})}function ee(){return r.hasOwnProperty("value")===!0?r.value:m.value!==void 0?m.value:""}t.onBeforeUnmount(()=>{X()}),t.onMounted(()=>{e.autogrow===!0&&W()}),Object.assign(D,{innerValue:m,fieldClass:t.computed(()=>`q-${A.value===!0?"textarea":"input"}`+(e.autogrow===!0?" q-textarea--autogrow":"")),hasShadow:t.computed(()=>e.type!=="file"&&typeof e.shadowText=="string"&&e.shadowText.length!==0),inputRef:h,emitValue:O,hasValue:k,floatingLabel:t.computed(()=>k.value===!0&&(e.type!=="number"||isNaN(m.value)===!1)||It(e.displayValue)),getControl:()=>t.h(A.value===!0?"textarea":"input",{ref:h,class:["q-field__native q-placeholder",e.inputClass],style:e.inputStyle,...z.value,...V.value,...e.type!=="file"?{value:ee()}:B.value}),getShadowControl:()=>t.h("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(A.value===!0?"":" text-no-wrap")},[t.h("span",{class:"invisible"},ee()),t.h("span",e.shadowText)])});const x=ml(D);return Object.assign(a,{focus:$,select:C,getNativeElement:()=>h.value}),Et(a,"nativeEl",()=>h.value),x}});function bo(e){if(e===!1)return 0;if(e===!0||e===void 0)return 1;const n=parseInt(e,10);return isNaN(n)?0:n}const gu=al({name:"close-popup",beforeMount(e,{value:n}){const l={depth:bo(n),handler(a){l.depth!==0&&setTimeout(()=>{const o=Br(e);o!==void 0&&Dr(o,a,l.depth)})},handlerKey(a){tt(a,13)===!0&&l.handler(a)}};e.__qclosepopup=l,e.addEventListener("click",l.handler),e.addEventListener("keyup",l.handlerKey)},updated(e,{value:n,oldValue:l}){n!==l&&(e.__qclosepopup.depth=bo(n))},beforeUnmount(e){const n=e.__qclosepopup;e.removeEventListener("click",n.handler),e.removeEventListener("keyup",n.handlerKey),delete e.__qclosepopup}});function bu(e){var n,l;return{entity:e.entity,dataCy:e.dataCy,defaultLabel:e.defaultLabel,routeName:e.routeName,shouldRender:e.customShouldRender||(({store:a})=>e.storeField?!!a[e.storeField]:!0),getLabel:e.getLabel||(e.labelField?({store:a})=>{var o;return e.storeField&&((o=a[e.storeField])==null?void 0:o[e.labelField])||e.defaultLabel}:void 0),getColor:e.customGetColor||(({store:a})=>e.storeField&&a[e.storeField]?"primary":"dark"),getRouteParams:e.routeParamKey&&e.routeParamField?({store:a})=>{var o;return{[e.routeParamKey]:e.storeField&&((o=a[e.storeField])==null?void 0:o[e.routeParamField])}}:void 0,clearActions:[...((n=e.clearMethods)==null?void 0:n.map(a=>({store:o})=>{var r;return(r=o[a])==null?void 0:r.call(o)}))||[],...((l=e.navActions)==null?void 0:l.map(a=>({navStore:o})=>a(o)))||[]]}}function ol(e){const n=e.getTimezoneOffset()*6e4;return new Date(e.getTime()+n)}function Rt(e){const n=/^\d{4}-\d{2}-\d{2}$/,l=/^\d{2}-\d{2}-\d{4}$/;if(n.test(e))return e;if(l.test(e)){const a=e.split("-");return`${a[2]}-${a[1]}-${a[0]}`}return console.warn("'Invalid date format. Expected DD-MM-YYYY' or 'YYYY-MM-DD' but got: "+e),""}function ya(e,n,l,a=[]){const o=new Date(Rt(e));if(n){const r=ol(new Date(n));if(o<r)return!1}if(l){const r=ol(new Date(l));if(o>r)return!1}return!a.some(r=>{if(typeof r=="string"){const c=new Date(Rt(r));return o.toDateString()===c.toDateString()}const u=new Date(Rt(r.start_date));u.setDate(u.getDate()-1);const i=new Date(Rt(r.end_date));return o>=u&&o<=i})}const pu={class:"columns justify-end"},yu={class:"row items-center justify-end"},wu=t.defineComponent({__name:"DatePicker",props:{label:{default:"Date"},date:{default:""},required:{type:Boolean,default:!1},minDate:{default:void 0},maxDate:{default:void 0},datesDisabled:{default:()=>[]},requiredErrorMessage:{default:"Field is required"},disabled:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},placeholder:{default:void 0},closeLabel:{default:"Close"}},emits:["update:date"],setup(e,{emit:n}){const l=e,a=n,o=t.useAttrs(),r=t.ref(l.date),u=t.ref(l.date),i=t.computed(()=>s=>ya(s,l.minDate,l.maxDate,l.datesDisabled)),c=s=>{r.value=s,u.value=s,a("update:date",s)},f=s=>{typeof s=="string"&&(r.value=s,u.value=s,a("update:date",s))};return t.watch(()=>l.date,s=>{s!==r.value&&(r.value=s,u.value=s)}),(s,h)=>(t.openBlock(),t.createElementBlock("div",pu,[t.createVNode(hu,t.mergeProps(t.unref(o),{class:"full-width","model-value":u.value,mask:"##-##-####",dense:"",label:s.label,"data-cy":"datePick","onUpdate:modelValue":f,rules:s.required?[p=>!!p||s.requiredErrorMessage]:[],disable:s.disabled,outlined:s.outlined,placeholder:s.placeholder}),{append:t.withCtx(()=>[t.createVNode(qe,{name:"event",class:"cursor-pointer"},{default:t.withCtx(()=>[t.createVNode(cu,{cover:"","transition-show":"scale","transition-hide":"scale"},{default:t.withCtx(()=>[t.createVNode(su,{mask:"DD-MM-YYYY","model-value":r.value,options:i.value,disable:s.disabled,"onUpdate:modelValue":c},{default:t.withCtx(()=>[t.createElementVNode("div",yu,[t.withDirectives(t.createVNode(De,{label:s.closeLabel,color:"primary",flat:""},null,8,["label"]),[[gu]])])]),_:1},8,["model-value","options","disable"])]),_:1})]),_:1})]),_:1},16,["model-value","label","rules","disable","outlined","placeholder"])]))}}),Su=mn(wu,[["__scopeId","data-v-618766fa"]]);exports.Breadcrumbs=Ra;exports.CheckboxFilter=Ci;exports.DatePicker=Su;exports.Layout=Qi;exports.NavButton=tr;exports.SelectSearch=_i;exports.SelfeeFooter=Li;exports.SelfeeHeader=Ti;exports.UserAvatar=Ni;exports.createBreadcrumb=bu;exports.dateWithoutTimezone=ol;exports.formatDate=Rt;exports.isDateSelectable=ya;