@selfeesas/shared-components 0.4.3 → 0.4.5

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,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("vue"),Zn={xs:18,sm:24,md:32,lg:38,xl:46},Cr={size:String};function Mr(u,P=Zn){return C.computed(()=>u.size!==void 0?{fontSize:u.size in P?`${P[u.size]}px`:u.size}:null)}function Lt(u,P,t,v){return Object.defineProperty(u,P,{get:t,set:v,enumerable:!0}),u}function Zo(u,P){for(const t in P)Lt(u,t,P[t]);return u}function it(u){return C.markRaw(C.defineComponent(u))}function di(u){return C.markRaw(u)}const Go=(u,P)=>{const t=C.reactive(u);for(const v in u)Lt(P,v,()=>t[v],b=>{t[v]=b});return P};function vt(u,P){return u!==void 0&&u()||P}function hi(u,P){if(u!==void 0){const t=u();if(t!=null)return t.slice()}return P}function Nt(u,P){return u!==void 0?P.concat(u()):P}function Vs(u,P){return u===void 0?P:P!==void 0?P.concat(u()):u()}function Qo(u,P,t,v,b,f){P.key=v+b;const o=C.h(u,P,t);return b===!0?C.withDirectives(o,f()):o}const Vi="0 0 24 24",Rn=u=>u,On=u=>`ionicons ${u}`,Hs={"mdi-":u=>`mdi ${u}`,"icon-":Rn,"bt-":u=>`bt ${u}`,"eva-":u=>`eva ${u}`,"ion-md":On,"ion-ios":On,"ion-logo":On,"iconfont ":Rn,"ti-":u=>`themify-icon ${u}`,"bi-":u=>`bootstrap-icons ${u}`,"i-":Rn},Us={o_:"-outlined",r_:"-round",s_:"-sharp"},Ws={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},Jo=new RegExp("^("+Object.keys(Hs).join("|")+")"),ea=new RegExp("^("+Object.keys(Us).join("|")+")"),Hi=new RegExp("^("+Object.keys(Ws).join("|")+")"),ta=/^[Mm]\s?[-+]?\.?\d/,ra=/^img:/,na=/^svguse:/,ia=/^ion-/,sa=/^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,kt=it({name:"QIcon",props:{...Cr,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(u,{slots:P}){const{proxy:{$q:t}}=C.getCurrentInstance(),v=Mr(u),b=C.computed(()=>"q-icon"+(u.left===!0?" on-left":"")+(u.right===!0?" on-right":"")+(u.color!==void 0?` text-${u.color}`:"")),f=C.computed(()=>{let o,a=u.name;if(a==="none"||!a)return{none:!0};if(t.iconMapFn!==null){const r=t.iconMapFn(a);if(r!==void 0)if(r.icon!==void 0){if(a=r.icon,a==="none"||!a)return{none:!0}}else return{cls:r.cls,content:r.content!==void 0?r.content:" "}}if(ta.test(a)===!0){const[r,l=Vi]=a.split("|");return{svg:!0,viewBox:l,nodes:r.split("&&").map(s=>{const[i,d,h]=s.split("@@");return C.h("path",{style:d,d:i,transform:h})})}}if(ra.test(a)===!0)return{img:!0,src:a.substring(4)};if(na.test(a)===!0){const[r,l=Vi]=a.split("|");return{svguse:!0,src:r.substring(7),viewBox:l}}let n=" ";const e=a.match(Jo);if(e!==null)o=Hs[e[1]](a);else if(sa.test(a)===!0)o=a;else if(ia.test(a)===!0)o=`ionicons ion-${t.platform.is.ios===!0?"ios":"md"}${a.substring(3)}`;else if(Hi.test(a)===!0){o="notranslate material-symbols";const r=a.match(Hi);r!==null&&(a=a.substring(6),o+=Ws[r[1]]),n=a}else{o="notranslate material-icons";const r=a.match(ea);r!==null&&(a=a.substring(2),o+=Us[r[1]]),n=a}return{cls:o,content:n}});return()=>{const o={class:b.value,style:v.value,"aria-hidden":"true"};return f.value.none===!0?C.h(u.tag,o,vt(P.default)):f.value.img===!0?C.h(u.tag,o,Nt(P.default,[C.h("img",{src:f.value.src})])):f.value.svg===!0?C.h(u.tag,o,Nt(P.default,[C.h("svg",{viewBox:f.value.viewBox||"0 0 24 24"},f.value.nodes)])):f.value.svguse===!0?C.h(u.tag,o,Nt(P.default,[C.h("svg",{viewBox:f.value.viewBox},[C.h("use",{"xlink:href":f.value.src})])])):(f.value.cls!==void 0&&(o.class+=" "+f.value.cls),C.h(u.tag,o,Nt(P.default,[f.value.content])))}}});function on(u){if(Object(u.$parent)===u.$parent)return u.$parent;let{parent:P}=u.$;for(;Object(P)===P;){if(Object(P.proxy)===P.proxy)return P.proxy;P=P.parent}}function Ys(u,P){typeof P.type=="symbol"?Array.isArray(P.children)===!0&&P.children.forEach(t=>{Ys(u,t)}):u.add(P)}function oa(u){const P=new Set;return u.forEach(t=>{Ys(P,t)}),Array.from(P)}function pi(u){return u.appContext.config.globalProperties.$router!==void 0}function mi(u){return u.isUnmounted===!0||u.isDeactivated===!0}function Ui(u){return u?u.aliasOf?u.aliasOf.path:u.path:""}function Wi(u,P){return(u.aliasOf||u)===(P.aliasOf||P)}function aa(u,P){for(const t in P){const v=P[t],b=u[t];if(typeof v=="string"){if(v!==b)return!1}else if(Array.isArray(b)===!1||b.length!==v.length||v.some((f,o)=>f!==b[o]))return!1}return!0}function Yi(u,P){return Array.isArray(P)===!0?u.length===P.length&&u.every((t,v)=>t===P[v]):u.length===1&&u[0]===P}function la(u,P){return Array.isArray(u)===!0?Yi(u,P):Array.isArray(P)===!0?Yi(P,u):u===P}function ua(u,P){if(Object.keys(u).length!==Object.keys(P).length)return!1;for(const t in u)if(la(u[t],P[t])===!1)return!1;return!0}const Xs={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},Ks={...Xs,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function bi({fallbackTag:u,useDisableForRouterLinkProps:P=!0}={}){const t=C.getCurrentInstance(),{props:v,proxy:b,emit:f}=t,o=pi(t),a=C.computed(()=>v.disable!==!0&&v.href!==void 0),n=P===!0?C.computed(()=>o===!0&&v.disable!==!0&&a.value!==!0&&v.to!==void 0&&v.to!==null&&v.to!==""):C.computed(()=>o===!0&&a.value!==!0&&v.to!==void 0&&v.to!==null&&v.to!==""),e=C.computed(()=>n.value===!0?p(v.to):null),r=C.computed(()=>e.value!==null),l=C.computed(()=>a.value===!0||r.value===!0),s=C.computed(()=>v.type==="a"||l.value===!0?"a":v.tag||u||"div"),i=C.computed(()=>a.value===!0?{href:v.href,target:v.target}:r.value===!0?{href:e.value.href,target:v.target}:{}),d=C.computed(()=>{if(r.value===!1)return-1;const{matched:A}=e.value,{length:N}=A,q=A[N-1];if(q===void 0)return-1;const D=b.$route.matched;if(D.length===0)return-1;const F=D.findIndex(Wi.bind(null,q));if(F!==-1)return F;const L=Ui(A[N-2]);return N>1&&Ui(q)===L&&D[D.length-1].path!==L?D.findIndex(Wi.bind(null,A[N-2])):F}),h=C.computed(()=>r.value===!0&&d.value!==-1&&aa(b.$route.params,e.value.params)),c=C.computed(()=>h.value===!0&&d.value===b.$route.matched.length-1&&ua(b.$route.params,e.value.params)),m=C.computed(()=>r.value===!0?c.value===!0?` ${v.exactActiveClass} ${v.activeClass}`:v.exact===!0?"":h.value===!0?` ${v.activeClass}`:"":"");function p(A){try{return b.$router.resolve(A)}catch{}return null}function x(A,{returnRouterError:N,to:q=v.to,replace:D=v.replace}={}){if(v.disable===!0)return A.preventDefault(),Promise.resolve(!1);if(A.metaKey||A.altKey||A.ctrlKey||A.shiftKey||A.button!==void 0&&A.button!==0||v.target==="_blank")return Promise.resolve(!1);A.preventDefault();const F=b.$router[D===!0?"replace":"push"](q);return N===!0?F:F.then(()=>{}).catch(()=>{})}function k(A){if(r.value===!0){const N=q=>x(A,q);f("click",A,N),A.defaultPrevented!==!0&&N()}else f("click",A)}return{hasRouterLink:r,hasHrefLink:a,hasLink:l,linkTag:s,resolvedLink:e,linkIsActive:h,linkIsExactActive:c,linkClass:m,linkAttrs:i,getLink:p,navigateToRouterLink:x,navigateOnClick:k}}const ca=it({name:"QBreadcrumbsEl",props:{...Ks,label:String,icon:String,tag:{type:String,default:"span"}},emits:["click"],setup(u,{slots:P}){const{linkTag:t,linkAttrs:v,linkClass:b,navigateOnClick:f}=bi(),o=C.computed(()=>({class:"q-breadcrumbs__el q-link flex inline items-center relative-position "+(u.disable!==!0?"q-link--focusable"+b.value:"q-breadcrumbs__el--disable"),...v.value,onClick:f})),a=C.computed(()=>"q-breadcrumbs__el-icon"+(u.label!==void 0?" q-breadcrumbs__el-icon--with-label":""));return()=>{const n=[];return u.icon!==void 0&&n.push(C.h(kt,{class:a.value,name:u.icon})),u.label!==void 0&&n.push(u.label),C.h(t.value,{...o.value},Nt(P.default,n))}}}),Zs={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},fa=Object.keys(Zs),Gs={align:{type:String,validator:u=>fa.includes(u)}};function Qs(u){return C.computed(()=>{const P=u.align===void 0?u.vertical===!0?"stretch":"left":u.align;return`${u.vertical===!0?"items":"justify"}-${Zs[P]}`})}const da=["",!0],ha=it({name:"QBreadcrumbs",props:{...Gs,separator:{type:String,default:"/"},separatorColor:String,activeColor:{type:String,default:"primary"},gutter:{type:String,validator:u=>["none","xs","sm","md","lg","xl"].includes(u),default:"sm"}},setup(u,{slots:P}){const t=Qs(u),v=C.computed(()=>`flex items-center ${t.value}${u.gutter==="none"?"":` q-gutter-${u.gutter}`}`),b=C.computed(()=>u.separatorColor?` text-${u.separatorColor}`:""),f=C.computed(()=>` text-${u.activeColor}`);return()=>{if(P.default===void 0)return;const o=oa(vt(P.default));if(o.length===0)return;let a=1;const n=[],e=o.filter(l=>l.type?.name==="QBreadcrumbsEl").length,r=P.separator!==void 0?P.separator:()=>u.separator;return o.forEach(l=>{if(l.type?.name==="QBreadcrumbsEl"){const s=a<e,i=l.props!==null&&da.includes(l.props.disable),d=(s===!0?"":" q-breadcrumbs--last")+(i!==!0&&s===!0?f.value:"");a++,n.push(C.h("div",{class:`flex items-center${d}`},[l])),s===!0&&n.push(C.h("div",{class:"q-breadcrumbs__separator"+b.value},r()))}else n.push(l)}),C.h("div",{class:"q-breadcrumbs"},[C.h("div",{class:v.value},n)])}}}),pa=C.defineComponent({inheritAttrs:!1,__name:"Breadcrumbs",props:{activeColor:{},separatorIcon:{},separatorSize:{},separatorColor:{},store:{},navStore:{},route:{},router:{},breadcrumbConfig:{},separator:{},gutter:{},align:{}},setup(u){const P=u,t=C.useAttrs(),v=C.computed(()=>{const{activeColor:s,separatorIcon:i,separatorSize:d,separatorColor:h,...c}=t;return c}),b=s=>({"data-cy":s.dataCy,class:"cursor-pointer text-h5",color:s.color}),f=C.computed(()=>P.activeColor||"primary"),o=C.computed(()=>P.separatorIcon||"chevron_right"),a=C.computed(()=>P.separatorSize||"2em"),n=C.computed(()=>P.separatorColor||"primary"),e=C.computed(()=>({store:P.store,route:P.route,navStore:P.navStore||{}})),r=C.computed(()=>{const s=[];return P.breadcrumbConfig.forEach(i=>{if(!i.shouldRender(e.value))return;const d=i.getLabel?i.getLabel(e.value):i.defaultLabel,h=i.getColor?i.getColor(e.value):"dark",c={name:i.routeName,...i.getRouteParams&&{params:i.getRouteParams(e.value)}},m=i.clearActions?i.clearActions.map(p=>()=>p(e.value)):[];s.push({label:d,dataCy:i.dataCy,color:h,route:c,clearActions:m})}),s}),l=s=>{s.clearActions&&s.clearActions.forEach(i=>i()),P.router.push(s.route)};return(s,i)=>(C.openBlock(),C.createBlock(ha,C.mergeProps({"active-color":f.value,class:"text-brown"},v.value),{separator:C.withCtx(()=>[C.createVNode(kt,{size:a.value,name:o.value,color:n.value},null,8,["size","name","color"])]),default:C.withCtx(()=>[(C.openBlock(!0),C.createElementBlock(C.Fragment,null,C.renderList(r.value,(d,h)=>(C.openBlock(),C.createBlock(ca,C.mergeProps({key:h},{ref_for:!0},b(d),{label:d.label,onClick:c=>l(d)}),null,16,["label","onClick"]))),128))]),_:1},16,["active-color"]))}}),ma={size:{type:[String,Number],default:"1em"},color:String};function ba(u){return{cSize:C.computed(()=>u.size in Zn?`${Zn[u.size]}px`:u.size),classes:C.computed(()=>"q-spinner"+(u.color?` text-${u.color}`:""))}}const Js=it({name:"QSpinner",props:{...ma,thickness:{type:Number,default:5}},setup(u){const{cSize:P,classes:t}=ba(u);return()=>C.h("svg",{class:t.value+" q-spinner-mat",width:P.value,height:P.value,viewBox:"25 25 50 50"},[C.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":u.thickness,"stroke-miterlimit":"10"})])}});function Gn(u,P){const t=u.style;for(const v in P)t[v]=P[v]}function ga(u){if(u==null)return;if(typeof u=="string")try{return document.querySelector(u)||void 0}catch{return}const P=C.unref(u);if(P)return P.$el||P}function eo(u,P){if(u==null||u.contains(P)===!0)return!0;for(let t=u.nextElementSibling;t!==null;t=t.nextElementSibling)if(t.contains(P))return!0;return!1}const St={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const u=Object.defineProperty({},"passive",{get(){Object.assign(St,{hasPassive:!0,passive:{passive:!0},notPassive:{passive:!1},passiveCapture:{passive:!0,capture:!0},notPassiveCapture:{passive:!1,capture:!0}})}});window.addEventListener("qtest",null,u),window.removeEventListener("qtest",null,u)}catch{}function Sn(){}function va(u){return u.button===0}function Nr(u){return u.touches&&u.touches[0]?u=u.touches[0]:u.changedTouches&&u.changedTouches[0]?u=u.changedTouches[0]:u.targetTouches&&u.targetTouches[0]&&(u=u.targetTouches[0]),{top:u.clientY,left:u.clientX}}function ya(u){if(u.path)return u.path;if(u.composedPath)return u.composedPath();const P=[];let t=u.target;for(;t;){if(P.push(t),t.tagName==="HTML")return P.push(document),P.push(window),P;t=t.parentElement}}function It(u){u.stopPropagation()}function Ot(u){u.cancelable!==!1&&u.preventDefault()}function _t(u){u.cancelable!==!1&&u.preventDefault(),u.stopPropagation()}function jn(u,P){if(u===void 0||P===!0&&u.__dragPrevented===!0)return;const t=P===!0?v=>{v.__dragPrevented=!0,v.addEventListener("dragstart",Ot,St.notPassiveCapture)}:v=>{delete v.__dragPrevented,v.removeEventListener("dragstart",Ot,St.notPassiveCapture)};u.querySelectorAll("a, img").forEach(t)}function Ut(u,P,t){const v=`__q_${P}_evt`;u[v]=u[v]!==void 0?u[v].concat(t):t,t.forEach(b=>{b[0].addEventListener(b[1],u[b[2]],St[b[3]])})}function ar(u,P){const t=`__q_${P}_evt`;u[t]!==void 0&&(u[t].forEach(v=>{v[0].removeEventListener(v[1],u[v[2]],St[v[3]])}),u[t]=void 0)}function gi(u){return u!==Object(u)||u.isComposing===!0||u.qKeyEvent===!0}function er(u,P){return gi(u)===!0?!1:[].concat(P).includes(u.keyCode)}function wa(u,P=250){let t=!1,v;return function(){return t===!1&&(t=!0,setTimeout(()=>{t=!1},P),v=u.apply(this,arguments)),v}}function Xi(u,P,t,v){t.modifiers.stop===!0&&It(u);const b=t.modifiers.color;let f=t.modifiers.center;f=f===!0||v===!0;const o=document.createElement("span"),a=document.createElement("span"),n=Nr(u),{left:e,top:r,width:l,height:s}=P.getBoundingClientRect(),i=Math.sqrt(l*l+s*s),d=i/2,h=`${(l-i)/2}px`,c=f?h:`${n.left-e-d}px`,m=`${(s-i)/2}px`,p=f?m:`${n.top-r-d}px`;a.className="q-ripple__inner",Gn(a,{height:`${i}px`,width:`${i}px`,transform:`translate3d(${c},${p},0) scale3d(.2,.2,1)`,opacity:0}),o.className=`q-ripple${b?" text-"+b:""}`,o.setAttribute("dir","ltr"),o.appendChild(a),P.appendChild(o);const x=()=>{o.remove(),clearTimeout(k)};t.abort.push(x);let k=setTimeout(()=>{a.classList.add("q-ripple__inner--enter"),a.style.transform=`translate3d(${h},${m},0) scale3d(1,1,1)`,a.style.opacity=.2,k=setTimeout(()=>{a.classList.remove("q-ripple__inner--enter"),a.classList.add("q-ripple__inner--leave"),a.style.opacity=0,k=setTimeout(()=>{o.remove(),t.abort.splice(t.abort.indexOf(x),1)},275)},250)},50)}function Ki(u,{modifiers:P,value:t,arg:v}){const b=Object.assign({},u.cfg.ripple,P,t);u.modifiers={early:b.early===!0,stop:b.stop===!0,center:b.center===!0,color:b.color||v,keyCodes:[].concat(b.keyCodes||13)}}const to=di({name:"ripple",beforeMount(u,P){const t=P.instance.$.appContext.config.globalProperties.$q.config||{};if(t.ripple===!1)return;const v={cfg:t,enabled:P.value!==!1,modifiers:{},abort:[],start(b){v.enabled===!0&&b.qSkipRipple!==!0&&b.type===(v.modifiers.early===!0?"pointerdown":"click")&&Xi(b,u,v,b.qKeyEvent===!0)},keystart:wa(b=>{v.enabled===!0&&b.qSkipRipple!==!0&&er(b,v.modifiers.keyCodes)===!0&&b.type===`key${v.modifiers.early===!0?"down":"up"}`&&Xi(b,u,v,!0)},300)};Ki(v,P),u.__qripple=v,Ut(v,"main",[[u,"pointerdown","start","passive"],[u,"click","start","passive"],[u,"keydown","keystart","passive"],[u,"keyup","keystart","passive"]])},updated(u,P){if(P.oldValue!==P.value){const t=u.__qripple;t!==void 0&&(t.enabled=P.value!==!1,t.enabled===!0&&Object(P.value)===P.value&&Ki(t,P))}},beforeUnmount(u){const P=u.__qripple;P!==void 0&&(P.abort.forEach(t=>{t()}),ar(P,"main"),delete u._qripple)}}),Zi={none:0,xs:4,sm:8,md:16,lg:24,xl:32},_a={xs:8,sm:10,md:14,lg:20,xl:24},xa=["button","submit","reset"],Sa=/[^\s]\/[^\s]/,ka=["flat","outline","push","unelevated"];function Ca(u,P){return u.flat===!0?"flat":u.outline===!0?"outline":u.push===!0?"push":u.unelevated===!0?"unelevated":P}const Ma={...Cr,...Xs,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...ka.reduce((u,P)=>(u[P]=Boolean)&&u,{}),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:{...Gs.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},Ea={...Ma,round:Boolean};function Ta(u){const P=Mr(u,_a),t=Qs(u),{hasRouterLink:v,hasLink:b,linkTag:f,linkAttrs:o,navigateOnClick:a}=bi({fallbackTag:"button"}),n=C.computed(()=>{const c=u.fab===!1&&u.fabMini===!1?P.value:{};return u.padding!==void 0?Object.assign({},c,{padding:u.padding.split(/\s+/).map(m=>m in Zi?Zi[m]+"px":m).join(" "),minWidth:"0",minHeight:"0"}):c}),e=C.computed(()=>u.rounded===!0||u.fab===!0||u.fabMini===!0),r=C.computed(()=>u.disable!==!0&&u.loading!==!0),l=C.computed(()=>r.value===!0?u.tabindex||0:-1),s=C.computed(()=>Ca(u,"standard")),i=C.computed(()=>{const c={tabindex:l.value};return b.value===!0?Object.assign(c,o.value):xa.includes(u.type)===!0&&(c.type=u.type),f.value==="a"?(u.disable===!0?c["aria-disabled"]="true":c.href===void 0&&(c.role="button"),v.value!==!0&&Sa.test(u.type)===!0&&(c.type=u.type)):u.disable===!0&&(c.disabled="",c["aria-disabled"]="true"),u.loading===!0&&u.percentage!==void 0&&Object.assign(c,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":u.percentage}),c}),d=C.computed(()=>{let c;u.color!==void 0?u.flat===!0||u.outline===!0?c=`text-${u.textColor||u.color}`:c=`bg-${u.color} text-${u.textColor||"white"}`:u.textColor&&(c=`text-${u.textColor}`);const m=u.round===!0?"round":`rectangle${e.value===!0?" q-btn--rounded":u.square===!0?" q-btn--square":""}`;return`q-btn--${s.value} q-btn--${m}`+(c!==void 0?" "+c:"")+(r.value===!0?" q-btn--actionable q-focusable q-hoverable":u.disable===!0?" disabled":"")+(u.fab===!0?" q-btn--fab":u.fabMini===!0?" q-btn--fab-mini":"")+(u.noCaps===!0?" q-btn--no-uppercase":"")+(u.dense===!0?" q-btn--dense":"")+(u.stretch===!0?" no-border-radius self-stretch":"")+(u.glossy===!0?" glossy":"")+(u.square?" q-btn--square":"")}),h=C.computed(()=>t.value+(u.stack===!0?" column":" row")+(u.noWrap===!0?" no-wrap text-no-wrap":"")+(u.loading===!0?" q-btn__content--hidden":""));return{classes:d,style:n,innerClasses:h,attributes:i,hasLink:b,linkTag:f,navigateOnClick:a,isActionable:r}}const{passiveCapture:Ft}=St;let mr=null,br=null,gr=null;const wt=it({name:"QBtn",props:{...Ea,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(u,{slots:P,emit:t}){const{proxy:v}=C.getCurrentInstance(),{classes:b,style:f,innerClasses:o,attributes:a,hasLink:n,linkTag:e,navigateOnClick:r,isActionable:l}=Ta(u),s=C.ref(null),i=C.ref(null);let d=null,h,c=null;const m=C.computed(()=>u.label!==void 0&&u.label!==null&&u.label!==""),p=C.computed(()=>u.disable===!0||u.ripple===!1?!1:{keyCodes:n.value===!0?[13,32]:[13],...u.ripple===!0?{}:u.ripple}),x=C.computed(()=>({center:u.round})),k=C.computed(()=>{const T=Math.max(0,Math.min(100,u.percentage));return T>0?{transition:"transform 0.6s",transform:`translateX(${T-100}%)`}:{}}),A=C.computed(()=>{if(u.loading===!0)return{onMousedown:M,onTouchstart:M,onClick:M,onKeydown:M,onKeyup:M};if(l.value===!0){const T={onClick:q,onKeydown:D,onMousedown:L};if(v.$q.platform.has.touch===!0){const S=u.onTouchstart!==void 0?"":"Passive";T[`onTouchstart${S}`]=F}return T}return{onClick:_t}}),N=C.computed(()=>({ref:s,class:"q-btn q-btn-item non-selectable no-outline "+b.value,style:f.value,...a.value,...A.value}));function q(T){if(s.value!==null){if(T!==void 0){if(T.defaultPrevented===!0)return;const S=document.activeElement;if(u.type==="submit"&&S!==document.body&&s.value.contains(S)===!1&&S.contains(s.value)===!1){T.qAvoidFocus!==!0&&s.value.focus();const g=()=>{document.removeEventListener("keydown",_t,!0),document.removeEventListener("keyup",g,Ft),s.value?.removeEventListener("blur",g,Ft)};document.addEventListener("keydown",_t,!0),document.addEventListener("keyup",g,Ft),s.value.addEventListener("blur",g,Ft)}}r(T)}}function D(T){s.value!==null&&(t("keydown",T),er(T,[13,32])===!0&&br!==s.value&&(br!==null&&z(),T.defaultPrevented!==!0&&(T.qAvoidFocus!==!0&&s.value.focus(),br=s.value,s.value.classList.add("q-btn--active"),document.addEventListener("keyup",V,!0),s.value.addEventListener("blur",V,Ft)),_t(T)))}function F(T){s.value!==null&&(t("touchstart",T),T.defaultPrevented!==!0&&(mr!==s.value&&(mr!==null&&z(),mr=s.value,d=T.target,d.addEventListener("touchcancel",V,Ft),d.addEventListener("touchend",V,Ft)),h=!0,c!==null&&clearTimeout(c),c=setTimeout(()=>{c=null,h=!1},200)))}function L(T){s.value!==null&&(T.qSkipRipple=h===!0,t("mousedown",T),T.defaultPrevented!==!0&&gr!==s.value&&(gr!==null&&z(),gr=s.value,s.value.classList.add("q-btn--active"),document.addEventListener("mouseup",V,Ft)))}function V(T){if(s.value!==null&&!(T?.type==="blur"&&document.activeElement===s.value)){if(T?.type==="keyup"){if(br===s.value&&er(T,[13,32])===!0){const S=new MouseEvent("click",T);S.qKeyEvent=!0,T.defaultPrevented===!0&&Ot(S),T.cancelBubble===!0&&It(S),s.value.dispatchEvent(S),_t(T),T.qKeyEvent=!0}t("keyup",T)}z()}}function z(T){const S=i.value;T!==!0&&(mr===s.value||gr===s.value)&&S!==null&&S!==document.activeElement&&(S.setAttribute("tabindex",-1),S.focus()),mr===s.value&&(d!==null&&(d.removeEventListener("touchcancel",V,Ft),d.removeEventListener("touchend",V,Ft)),mr=d=null),gr===s.value&&(document.removeEventListener("mouseup",V,Ft),gr=null),br===s.value&&(document.removeEventListener("keyup",V,!0),s.value?.removeEventListener("blur",V,Ft),br=null),s.value?.classList.remove("q-btn--active")}function M(T){_t(T),T.qSkipRipple=!0}return C.onBeforeUnmount(()=>{z(!0)}),Object.assign(v,{click:T=>{l.value===!0&&q(T)}}),()=>{let T=[];u.icon!==void 0&&T.push(C.h(kt,{name:u.icon,left:u.stack!==!0&&m.value===!0,role:"img"})),m.value===!0&&T.push(C.h("span",{class:"block"},[u.label])),T=Nt(P.default,T),u.iconRight!==void 0&&u.round===!1&&T.push(C.h(kt,{name:u.iconRight,right:u.stack!==!0&&m.value===!0,role:"img"}));const S=[C.h("span",{class:"q-focus-helper",ref:i})];return u.loading===!0&&u.percentage!==void 0&&S.push(C.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(u.darkPercentage===!0?" q-btn__progress--dark":"")},[C.h("span",{class:"q-btn__progress-indicator fit block",style:k.value})])),S.push(C.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+o.value},T)),u.loading!==null&&S.push(C.h(C.Transition,{name:"q-transition--fade"},()=>u.loading===!0?[C.h("span",{key:"loading",class:"absolute-full flex flex-center"},P.loading!==void 0?P.loading():[C.h(Js)])]:null)),C.withDirectives(C.h(e.value,N.value,S),[[to,p.value,void 0,x.value]])}}}),Aa={class:"row justify-between"},Ra=C.defineComponent({__name:"NavButton",props:{from:{},to:{default:void 0},labelFrom:{},labelTo:{default:void 0},params:{default:()=>({})}},setup(u){const P=u,t=C.inject("navContext",null),v=C.inject("router");function b(f){if(!v){console.warn("Dependencies not available:",{router:v});return}t?.setTabs();const o=f==="back"?P.from:P.to;if(!o){console.warn("Destination not provided:",f);return}v.push({name:o,params:P.params})}return(f,o)=>(C.openBlock(),C.createElementBlock("div",Aa,[C.createVNode(wt,{icon:"chevron_left","rounded-sm":"",label:f.labelFrom,"data-cy":"go-back","data-testid":"go-back",onClick:o[0]||(o[0]=a=>b("back"))},null,8,["label"]),f.labelTo?(C.openBlock(),C.createBlock(wt,{key:0,label:f.labelTo,color:"primary","text-color":"white","icon-right":"chevron_right","rounded-sm":"","data-cy":"go-next","data-testid":"go-next",onClick:o[1]||(o[1]=a=>b("next"))},null,8,["label"])):C.createCommentVNode("",!0)]))}}),vi=(u,P)=>{const t=u.__vccOpts||u;for(const[v,b]of P)t[v]=b;return t},Oa=vi(Ra,[["__scopeId","data-v-879abfeb"]]),Bt={dark:{type:Boolean,default:null}};function Dt(u,P){return C.computed(()=>u.dark===null?P.dark.isActive:u.dark)}function ja(u,P){const t=C.ref(null),v=C.computed(()=>u.disable===!0?null:C.h("span",{ref:t,class:"no-outline",tabindex:-1}));function b(f){const o=P.value;f?.qAvoidFocus!==!0&&(f?.type.indexOf("key")===0?document.activeElement!==o&&o?.contains(document.activeElement)===!0&&o.focus():t.value!==null&&(f===void 0||o?.contains(f.target)===!0)&&t.value.focus())}return{refocusTargetEl:v,refocusTarget:b}}const kn={name:String};function Ia(u){return C.computed(()=>({type:"hidden",name:u.name,value:u.modelValue}))}function ro(u={}){return(P,t,v)=>{P[t](C.h("input",{class:"hidden"+(v||""),...u.value}))}}function no(u){return C.computed(()=>u.name||u.for)}const Pa={xs:30,sm:35,md:40,lg:50,xl:60},Na={...Bt,...Cr,...kn,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:u=>u==="tf"||u==="ft"},toggleIndeterminate:Boolean,label:String,leftLabel:Boolean,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},Ba=["update:modelValue"];function Da(u,P){const{props:t,slots:v,emit:b,proxy:f}=C.getCurrentInstance(),{$q:o}=f,a=Dt(t,o),n=C.ref(null),{refocusTargetEl:e,refocusTarget:r}=ja(t,n),l=Mr(t,Pa),s=C.computed(()=>t.val!==void 0&&Array.isArray(t.modelValue)),i=C.computed(()=>{const z=C.toRaw(t.val);return s.value===!0?t.modelValue.findIndex(M=>C.toRaw(M)===z):-1}),d=C.computed(()=>s.value===!0?i.value!==-1:C.toRaw(t.modelValue)===C.toRaw(t.trueValue)),h=C.computed(()=>s.value===!0?i.value===-1:C.toRaw(t.modelValue)===C.toRaw(t.falseValue)),c=C.computed(()=>d.value===!1&&h.value===!1),m=C.computed(()=>t.disable===!0?-1:t.tabindex||0),p=C.computed(()=>`q-${u} cursor-pointer no-outline row inline no-wrap items-center`+(t.disable===!0?" disabled":"")+(a.value===!0?` q-${u}--dark`:"")+(t.dense===!0?` q-${u}--dense`:"")+(t.leftLabel===!0?" reverse":"")),x=C.computed(()=>{const z=d.value===!0?"truthy":h.value===!0?"falsy":"indet",M=t.color!==void 0&&(t.keepColor===!0||h.value!==!0)?` text-${t.color}`:"";return`q-${u}__inner relative-position non-selectable q-${u}__inner--${z}${M}`}),k=C.computed(()=>{const z={type:"checkbox"};return t.name!==void 0&&Object.assign(z,{".checked":d.value,"^checked":d.value===!0?"checked":void 0,name:t.name,value:s.value===!0?t.val:t.trueValue}),z}),A=ro(k),N=C.computed(()=>{const z={tabindex:m.value,role:"checkbox","aria-label":t.label,"aria-checked":c.value===!0?"mixed":d.value===!0?"true":"false"};return t.disable===!0&&(z["aria-disabled"]="true"),z});function q(z){z!==void 0&&(_t(z),r(z)),t.disable!==!0&&b("update:modelValue",D(),z)}function D(){if(s.value===!0){if(d.value===!0){const z=t.modelValue.slice();return z.splice(i.value,1),z}return t.modelValue.concat([t.val])}if(d.value===!0){if(t.toggleOrder!=="ft"||t.toggleIndeterminate===!1)return t.falseValue}else if(h.value===!0){if(t.toggleOrder==="ft"||t.toggleIndeterminate===!1)return t.trueValue}else return t.toggleOrder!=="ft"?t.trueValue:t.falseValue;return t.indeterminateValue}function F(z){(z.keyCode===13||z.keyCode===32)&&_t(z)}function L(z){(z.keyCode===13||z.keyCode===32)&&q(z)}const V=P(d,c);return Object.assign(f,{toggle:q}),()=>{const z=V();t.disable!==!0&&A(z,"unshift",` q-${u}__native absolute q-ma-none q-pa-none`);const M=[C.h("div",{class:x.value,style:l.value,"aria-hidden":"true"},z)];e.value!==null&&M.push(e.value);const T=t.label!==void 0?Nt(v.default,[t.label]):vt(v.default);return T!==void 0&&M.push(C.h("div",{class:`q-${u}__label q-anchor--skip`},T)),C.h("div",{ref:n,class:p.value,...N.value,onClick:q,onKeydown:F,onKeyup:L},M)}}const Fa=()=>C.h("div",{key:"svg",class:"q-checkbox__bg absolute"},[C.h("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24"},[C.h("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),C.h("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]),an=it({name:"QCheckbox",props:Na,emits:Ba,setup(u){const P=Fa();function t(v,b){const f=C.computed(()=>(v.value===!0?u.checkedIcon:b.value===!0?u.indeterminateIcon:u.uncheckedIcon)||null);return()=>f.value!==null?[C.h("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[C.h(kt,{class:"q-checkbox__icon",name:f.value})])]:[P]}return Da("checkbox",t)}}),La=it({props:["store","barStyle","verticalBarStyle","horizontalBarStyle"],setup(u){return()=>[C.h("div",{class:u.store.scroll.vertical.barClass.value,style:[u.barStyle,u.verticalBarStyle],"aria-hidden":"true",onMousedown:u.store.onVerticalMousedown}),C.h("div",{class:u.store.scroll.horizontal.barClass.value,style:[u.barStyle,u.horizontalBarStyle],"aria-hidden":"true",onMousedown:u.store.onHorizontalMousedown}),C.withDirectives(C.h("div",{ref:u.store.scroll.vertical.ref,class:u.store.scroll.vertical.thumbClass.value,style:u.store.scroll.vertical.style.value,"aria-hidden":"true"}),u.store.thumbVertDir),C.withDirectives(C.h("div",{ref:u.store.scroll.horizontal.ref,class:u.store.scroll.horizontal.thumbClass.value,style:u.store.scroll.horizontal.style.value,"aria-hidden":"true"}),u.store.thumbHorizDir)]}}),tr=C.ref(!1);let Qn;function za(u,P){const t=/(edg|edge|edga|edgios)\/([\w.]+)/.exec(u)||/(opr)[\/]([\w.]+)/.exec(u)||/(vivaldi)[\/]([\w.]+)/.exec(u)||/(chrome|crios)[\/]([\w.]+)/.exec(u)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(u)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(u)||/(firefox|fxios)[\/]([\w.]+)/.exec(u)||/(webkit)[\/]([\w.]+)/.exec(u)||/(opera)(?:.*version|)[\/]([\w.]+)/.exec(u)||[];return{browser:t[5]||t[3]||t[1]||"",version:t[4]||t[2]||"0",platform:P[0]||""}}function qa(u){return/(ipad)/.exec(u)||/(ipod)/.exec(u)||/(windows phone)/.exec(u)||/(iphone)/.exec(u)||/(kindle)/.exec(u)||/(silk)/.exec(u)||/(android)/.exec(u)||/(win)/.exec(u)||/(mac)/.exec(u)||/(linux)/.exec(u)||/(cros)/.exec(u)||/(playbook)/.exec(u)||/(bb)/.exec(u)||/(blackberry)/.exec(u)||[]}const io="ontouchstart"in window||window.navigator.maxTouchPoints>0;function $a(u){const P=u.toLowerCase(),t=qa(P),v=za(P,t),b={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};v.browser&&(b[v.browser]=!0,b.version=v.version,b.versionNumber=parseInt(v.version,10)),v.platform&&(b[v.platform]=!0);const f=b.android||b.ios||b.bb||b.blackberry||b.ipad||b.iphone||b.ipod||b.kindle||b.playbook||b.silk||b["windows phone"];if(f===!0||P.indexOf("mobile")!==-1?b.mobile=!0:b.desktop=!0,b["windows phone"]&&(b.winphone=!0,delete b["windows phone"]),b.edga||b.edgios||b.edg?(b.edge=!0,v.browser="edge"):b.crios?(b.chrome=!0,v.browser="chrome"):b.fxios&&(b.firefox=!0,v.browser="firefox"),(b.ipod||b.ipad||b.iphone)&&(b.ios=!0),b.vivaldi&&(v.browser="vivaldi",b.vivaldi=!0),(b.chrome||b.opr||b.safari||b.vivaldi||b.mobile===!0&&b.ios!==!0&&f!==!0)&&(b.webkit=!0),b.opr&&(v.browser="opera",b.opera=!0),b.safari&&(b.blackberry||b.bb?(v.browser="blackberry",b.blackberry=!0):b.playbook?(v.browser="playbook",b.playbook=!0):b.android?(v.browser="android",b.android=!0):b.kindle?(v.browser="kindle",b.kindle=!0):b.silk&&(v.browser="silk",b.silk=!0)),b.name=v.browser,b.platform=v.platform,P.indexOf("electron")!==-1)b.electron=!0;else if(document.location.href.indexOf("-extension://")!==-1)b.bex=!0;else{if(window.Capacitor!==void 0?(b.capacitor=!0,b.nativeMobile=!0,b.nativeMobileWrapper="capacitor"):(window._cordovaNative!==void 0||window.cordova!==void 0)&&(b.cordova=!0,b.nativeMobile=!0,b.nativeMobileWrapper="cordova"),tr.value===!0&&(Qn={is:{...b}}),io===!0&&b.mac===!0&&(b.desktop===!0&&b.safari===!0||b.nativeMobile===!0&&b.android!==!0&&b.ios!==!0&&b.ipad!==!0)){delete b.mac,delete b.desktop;const o=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(b,{mobile:!0,ios:!0,platform:o,[o]:!0})}b.mobile!==!0&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete b.desktop,b.mobile=!0)}return b}const Gi=navigator.userAgent||navigator.vendor||window.opera,Va={has:{touch:!1,webStorage:!1},within:{iframe:!1}},Et={userAgent:Gi,is:$a(Gi),has:{touch:io},within:{iframe:window.self!==window.top}},Jn={install(u){const{$q:P}=u;tr.value===!0?(u.onSSRHydrated.push(()=>{Object.assign(P.platform,Et),tr.value=!1}),P.platform=C.reactive(this)):P.platform=this}};{let u;Lt(Et.has,"webStorage",()=>{if(u!==void 0)return u;try{if(window.localStorage)return u=!0,!0}catch{}return u=!1,!1}),Object.assign(Jn,Et),tr.value===!0&&(Object.assign(Jn,Qn,Va),Qn=null)}function Ha(){const u=C.ref(!tr.value);return u.value===!1&&C.onMounted(()=>{u.value=!0}),{isHydrated:u}}const so=typeof ResizeObserver<"u",Qi=so===!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"},Sr=it({name:"QResizeObserver",props:{debounce:{type:[String,Number],default:100}},emits:["resize"],setup(u,{emit:P}){let t=null,v,b={width:-1,height:-1};function f(n){n===!0||u.debounce===0||u.debounce==="0"?o():t===null&&(t=setTimeout(o,u.debounce))}function o(){if(t!==null&&(clearTimeout(t),t=null),v){const{offsetWidth:n,offsetHeight:e}=v;(n!==b.width||e!==b.height)&&(b={width:n,height:e},P("resize",b))}}const{proxy:a}=C.getCurrentInstance();if(a.trigger=f,so===!0){let n;const e=r=>{v=a.$el.parentNode,v?(n=new ResizeObserver(f),n.observe(v),o()):r!==!0&&C.nextTick(()=>{e(!0)})};return C.onMounted(()=>{e()}),C.onBeforeUnmount(()=>{t!==null&&clearTimeout(t),n!==void 0&&(n.disconnect!==void 0?n.disconnect():v&&n.unobserve(v))}),Sn}else{let n=function(){t!==null&&(clearTimeout(t),t=null),l!==void 0&&(l.removeEventListener!==void 0&&l.removeEventListener("resize",f,St.passive),l=void 0)},e=function(){n(),v?.contentDocument&&(l=v.contentDocument.defaultView,l.addEventListener("resize",f,St.passive),o())};const{isHydrated:r}=Ha();let l;return C.onMounted(()=>{C.nextTick(()=>{v=a.$el,v&&e()})}),C.onBeforeUnmount(n),()=>{if(r.value===!0)return C.h("object",{class:"q--avoid-card-border",style:Qi.style,tabindex:-1,type:"text/html",data:Qi.url,"aria-hidden":"true",onLoad:e})}}}}),Cn=[Element,String],Ua=[null,document,document.body,document.scrollingElement,document.documentElement];function Mn(u,P){let t=ga(P);if(t===void 0){if(u==null)return window;t=u.closest(".scroll,.scroll-y,.overflow-auto")}return Ua.includes(t)?window:t}function yi(u){return u===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:u.scrollTop}function wi(u){return u===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:u.scrollLeft}function oo(u,P,t=0){const v=arguments[3]===void 0?performance.now():arguments[3],b=yi(u);if(t<=0){b!==P&&ei(u,P);return}requestAnimationFrame(f=>{const o=f-v,a=b+(P-b)/Math.max(o,t)*o;ei(u,a),a!==P&&oo(u,P,t-o,f)})}function ao(u,P,t=0){const v=arguments[3]===void 0?performance.now():arguments[3],b=wi(u);if(t<=0){b!==P&&ti(u,P);return}requestAnimationFrame(f=>{const o=f-v,a=b+(P-b)/Math.max(o,t)*o;ti(u,a),a!==P&&ao(u,P,t-o,f)})}function ei(u,P){if(u===window){window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,P);return}u.scrollTop=P}function ti(u,P){if(u===window){window.scrollTo(P,window.pageYOffset||window.scrollY||document.body.scrollTop||0);return}u.scrollLeft=P}function Ji(u,P,t){if(t){oo(u,P,t);return}ei(u,P)}function In(u,P,t){if(t){ao(u,P,t);return}ti(u,P)}let Xr;function ln(){if(Xr!==void 0)return Xr;const u=document.createElement("p"),P=document.createElement("div");Gn(u,{width:"100%",height:"200px"}),Gn(P,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),P.appendChild(u),document.body.appendChild(P);const t=u.offsetWidth;P.style.overflow="scroll";let v=u.offsetWidth;return t===v&&(v=P.clientWidth),P.remove(),Xr=t-v,Xr}function Wa(u,P=!0){return!u||u.nodeType!==Node.ELEMENT_NODE?!1:P?u.scrollHeight>u.clientHeight&&(u.classList.contains("scroll")||u.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(u)["overflow-y"])):u.scrollWidth>u.clientWidth&&(u.classList.contains("scroll")||u.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(u)["overflow-x"]))}const{passive:es}=St,Ya=["both","horizontal","vertical"],lo=it({name:"QScrollObserver",props:{axis:{type:String,validator:u=>Ya.includes(u),default:"vertical"},debounce:[String,Number],scrollTarget:Cn},emits:["scroll"],setup(u,{emit:P}){const t={position:{top:0,left:0},direction:"down",directionChanged:!1,delta:{top:0,left:0},inflectionPoint:{top:0,left:0}};let v=null,b,f;C.watch(()=>u.scrollTarget,()=>{n(),a()});function o(){v?.();const l=Math.max(0,yi(b)),s=wi(b),i={top:l-t.position.top,left:s-t.position.left};if(u.axis==="vertical"&&i.top===0||u.axis==="horizontal"&&i.left===0)return;const d=Math.abs(i.top)>=Math.abs(i.left)?i.top<0?"up":"down":i.left<0?"left":"right";t.position={top:l,left:s},t.directionChanged=t.direction!==d,t.delta=i,t.directionChanged===!0&&(t.direction=d,t.inflectionPoint=t.position),P("scroll",{...t})}function a(){b=Mn(f,u.scrollTarget),b.addEventListener("scroll",e,es),e(!0)}function n(){b!==void 0&&(b.removeEventListener("scroll",e,es),b=void 0)}function e(l){if(l===!0||u.debounce===0||u.debounce==="0")o();else if(v===null){const[s,i]=u.debounce?[setTimeout(o,u.debounce),clearTimeout]:[requestAnimationFrame(o),cancelAnimationFrame];v=()=>{i(s),v=null}}}const{proxy:r}=C.getCurrentInstance();return C.watch(()=>r.$q.lang.rtl,o),C.onMounted(()=>{f=r.$el.parentNode,a()}),C.onBeforeUnmount(()=>{v?.(),n()}),Object.assign(r,{trigger:e,getPosition:()=>t}),Sn}}),_i={left:!0,right:!0,up:!0,down:!0,horizontal:!0,vertical:!0},Xa=Object.keys(_i);_i.all=!0;function ts(u){const P={};for(const t of Xa)u[t]===!0&&(P[t]=!0);return Object.keys(P).length===0?_i:(P.horizontal===!0?P.left=P.right=!0:P.left===!0&&P.right===!0&&(P.horizontal=!0),P.vertical===!0?P.up=P.down=!0:P.up===!0&&P.down===!0&&(P.vertical=!0),P.horizontal===!0&&P.vertical===!0&&(P.all=!0),P)}const Ka=["INPUT","TEXTAREA"];function rs(u,P){return P.event===void 0&&u.target!==void 0&&u.target.draggable!==!0&&typeof P.handler=="function"&&Ka.includes(u.target.nodeName.toUpperCase())===!1&&(u.qClonedBy===void 0||u.qClonedBy.indexOf(P.uid)===-1)}function hn(){if(window.getSelection!==void 0){const u=window.getSelection();u.empty!==void 0?u.empty():u.removeAllRanges!==void 0&&(u.removeAllRanges(),Jn.is.mobile!==!0&&u.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}function Pn(u,P,t){const v=Nr(u);let b,f=v.left-P.event.x,o=v.top-P.event.y,a=Math.abs(f),n=Math.abs(o);const e=P.direction;e.horizontal===!0&&e.vertical!==!0?b=f<0?"left":"right":e.horizontal!==!0&&e.vertical===!0?b=o<0?"up":"down":e.up===!0&&o<0?(b="up",a>n&&(e.left===!0&&f<0?b="left":e.right===!0&&f>0&&(b="right"))):e.down===!0&&o>0?(b="down",a>n&&(e.left===!0&&f<0?b="left":e.right===!0&&f>0&&(b="right"))):e.left===!0&&f<0?(b="left",a<n&&(e.up===!0&&o<0?b="up":e.down===!0&&o>0&&(b="down"))):e.right===!0&&f>0&&(b="right",a<n&&(e.up===!0&&o<0?b="up":e.down===!0&&o>0&&(b="down")));let r=!1;if(b===void 0&&t===!1){if(P.event.isFirst===!0||P.event.lastDir===void 0)return{};b=P.event.lastDir,r=!0,b==="left"||b==="right"?(v.left-=f,a=0,f=0):(v.top-=o,n=0,o=0)}return{synthetic:r,payload:{evt:u,touch:P.event.mouse!==!0,mouse:P.event.mouse===!0,position:v,direction:b,isFirst:P.event.isFirst,isFinal:t===!0,duration:Date.now()-P.event.time,distance:{x:a,y:n},offset:{x:f,y:o},delta:{x:v.left-P.event.lastX,y:v.top-P.event.lastY}}}}let Za=0;const ns=di({name:"touch-pan",beforeMount(u,{value:P,modifiers:t}){if(t.mouse!==!0&&Et.has.touch!==!0)return;function v(f,o){t.mouse===!0&&o===!0?_t(f):(t.stop===!0&&It(f),t.prevent===!0&&Ot(f))}const b={uid:"qvtp_"+Za++,handler:P,modifiers:t,direction:ts(t),noop:Sn,mouseStart(f){rs(f,b)&&va(f)&&(Ut(b,"temp",[[document,"mousemove","move","notPassiveCapture"],[document,"mouseup","end","passiveCapture"]]),b.start(f,!0))},touchStart(f){if(rs(f,b)){const o=f.target;Ut(b,"temp",[[o,"touchmove","move","notPassiveCapture"],[o,"touchcancel","end","passiveCapture"],[o,"touchend","end","passiveCapture"]]),b.start(f)}},start(f,o){if(Et.is.firefox===!0&&jn(u,!0),b.lastEvt=f,o===!0||t.stop===!0){if(b.direction.all!==!0&&(o!==!0||b.modifiers.mouseAllDir!==!0&&b.modifiers.mousealldir!==!0)){const e=f.type.indexOf("mouse")!==-1?new MouseEvent(f.type,f):new TouchEvent(f.type,f);f.defaultPrevented===!0&&Ot(e),f.cancelBubble===!0&&It(e),Object.assign(e,{qKeyEvent:f.qKeyEvent,qClickOutside:f.qClickOutside,qAnchorHandled:f.qAnchorHandled,qClonedBy:f.qClonedBy===void 0?[b.uid]:f.qClonedBy.concat(b.uid)}),b.initialEvent={target:f.target,event:e}}It(f)}const{left:a,top:n}=Nr(f);b.event={x:a,y:n,time:Date.now(),mouse:o===!0,detected:!1,isFirst:!0,isFinal:!1,lastX:a,lastY:n}},move(f){if(b.event===void 0)return;const o=Nr(f),a=o.left-b.event.x,n=o.top-b.event.y;if(a===0&&n===0)return;b.lastEvt=f;const e=b.event.mouse===!0,r=()=>{v(f,e);let i;t.preserveCursor!==!0&&t.preservecursor!==!0&&(i=document.documentElement.style.cursor||"",document.documentElement.style.cursor="grabbing"),e===!0&&document.body.classList.add("no-pointer-events--children"),document.body.classList.add("non-selectable"),hn(),b.styleCleanup=d=>{if(b.styleCleanup=void 0,i!==void 0&&(document.documentElement.style.cursor=i),document.body.classList.remove("non-selectable"),e===!0){const h=()=>{document.body.classList.remove("no-pointer-events--children")};d!==void 0?setTimeout(()=>{h(),d()},50):h()}else d!==void 0&&d()}};if(b.event.detected===!0){b.event.isFirst!==!0&&v(f,b.event.mouse);const{payload:i,synthetic:d}=Pn(f,b,!1);i!==void 0&&(b.handler(i)===!1?b.end(f):(b.styleCleanup===void 0&&b.event.isFirst===!0&&r(),b.event.lastX=i.position.left,b.event.lastY=i.position.top,b.event.lastDir=d===!0?void 0:i.direction,b.event.isFirst=!1));return}if(b.direction.all===!0||e===!0&&(b.modifiers.mouseAllDir===!0||b.modifiers.mousealldir===!0)){r(),b.event.detected=!0,b.move(f);return}const l=Math.abs(a),s=Math.abs(n);l!==s&&(b.direction.horizontal===!0&&l>s||b.direction.vertical===!0&&l<s||b.direction.up===!0&&l<s&&n<0||b.direction.down===!0&&l<s&&n>0||b.direction.left===!0&&l>s&&a<0||b.direction.right===!0&&l>s&&a>0?(b.event.detected=!0,b.move(f)):b.end(f,!0))},end(f,o){if(b.event!==void 0){if(ar(b,"temp"),Et.is.firefox===!0&&jn(u,!1),o===!0)b.styleCleanup?.(),b.event.detected!==!0&&b.initialEvent!==void 0&&b.initialEvent.target.dispatchEvent(b.initialEvent.event);else if(b.event.detected===!0){b.event.isFirst===!0&&b.handler(Pn(f===void 0?b.lastEvt:f,b).payload);const{payload:a}=Pn(f===void 0?b.lastEvt:f,b,!0),n=()=>{b.handler(a)};b.styleCleanup!==void 0?b.styleCleanup(n):n()}b.event=void 0,b.initialEvent=void 0,b.lastEvt=void 0}}};if(u.__qtouchpan=b,t.mouse===!0){const f=t.mouseCapture===!0||t.mousecapture===!0?"Capture":"";Ut(b,"main",[[u,"mousedown","mouseStart",`passive${f}`]])}Et.has.touch===!0&&Ut(b,"main",[[u,"touchstart","touchStart",`passive${t.capture===!0?"Capture":""}`],[u,"touchmove","noop","notPassiveCapture"]])},updated(u,P){const t=u.__qtouchpan;t!==void 0&&(P.oldValue!==P.value&&(typeof value!="function"&&t.end(),t.handler=P.value),t.direction=ts(P.modifiers))},beforeUnmount(u){const P=u.__qtouchpan;P!==void 0&&(P.event!==void 0&&P.end(),ar(P,"main"),ar(P,"temp"),Et.is.firefox===!0&&jn(u,!1),P.styleCleanup?.(),delete u.__qtouchpan)}});function Ga(u){return u.charAt(0).toUpperCase()+u.slice(1)}function Tr(u,P,t){return t<=P?P:Math.min(t,Math.max(P,u))}function is(u,P,t){if(t<=P)return P;const v=t-P+1;let b=P+(u-P)%v;return b<P&&(b=v+b),b===0?0:b}function mt(u,P=2,t="0"){if(u==null)return u;const v=""+u;return v.length>=P?v:new Array(P-v.length+1).join(t)+v}function xi(u,P=250,t){let v=null;function b(){const f=arguments,o=()=>{v=null,u.apply(this,f)};v!==null&&clearTimeout(v),v=setTimeout(o,P)}return b.cancel=()=>{v!==null&&clearTimeout(v)},b}const ss=["vertical","horizontal"],Nn={vertical:{offset:"offsetY",scroll:"scrollTop",dir:"down",dist:"y"},horizontal:{offset:"offsetX",scroll:"scrollLeft",dir:"right",dist:"x"}},os={prevent:!0,mouse:!0,mouseAllDir:!0},as=u=>u>=250?50:Math.ceil(u/5),Qa=it({name:"QScrollArea",props:{...Bt,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(u,{slots:P,emit:t}){const v=C.ref(!1),b=C.ref(!1),f=C.ref(!1),o={vertical:C.ref(0),horizontal:C.ref(0)},a={vertical:{ref:C.ref(null),position:C.ref(0),size:C.ref(0)},horizontal:{ref:C.ref(null),position:C.ref(0),size:C.ref(0)}},{proxy:n}=C.getCurrentInstance(),e=Dt(u,n.$q);let r=null,l;const s=C.ref(null),i=C.computed(()=>"q-scrollarea"+(e.value===!0?" q-scrollarea--dark":""));Object.assign(o,{verticalInner:C.computed(()=>o.vertical.value-u.verticalOffset[0]-u.verticalOffset[1]),horizontalInner:C.computed(()=>o.horizontal.value-u.horizontalOffset[0]-u.horizontalOffset[1])}),a.vertical.percentage=C.computed(()=>{const T=a.vertical.size.value-o.vertical.value;if(T<=0)return 0;const S=Tr(a.vertical.position.value/T,0,1);return Math.round(S*1e4)/1e4}),a.vertical.thumbHidden=C.computed(()=>(u.visible===null?f.value:u.visible)!==!0&&v.value===!1&&b.value===!1||a.vertical.size.value<=o.vertical.value+1),a.vertical.thumbStart=C.computed(()=>u.verticalOffset[0]+a.vertical.percentage.value*(o.verticalInner.value-a.vertical.thumbSize.value)),a.vertical.thumbSize=C.computed(()=>Math.round(Tr(o.verticalInner.value*o.verticalInner.value/a.vertical.size.value,as(o.verticalInner.value),o.verticalInner.value))),a.vertical.style=C.computed(()=>({...u.thumbStyle,...u.verticalThumbStyle,top:`${a.vertical.thumbStart.value}px`,height:`${a.vertical.thumbSize.value}px`,right:`${u.horizontalOffset[1]}px`})),a.vertical.thumbClass=C.computed(()=>"q-scrollarea__thumb q-scrollarea__thumb--v absolute-right"+(a.vertical.thumbHidden.value===!0?" q-scrollarea__thumb--invisible":"")),a.vertical.barClass=C.computed(()=>"q-scrollarea__bar q-scrollarea__bar--v absolute-right"+(a.vertical.thumbHidden.value===!0?" q-scrollarea__bar--invisible":"")),a.horizontal.percentage=C.computed(()=>{const T=a.horizontal.size.value-o.horizontal.value;if(T<=0)return 0;const S=Tr(Math.abs(a.horizontal.position.value)/T,0,1);return Math.round(S*1e4)/1e4}),a.horizontal.thumbHidden=C.computed(()=>(u.visible===null?f.value:u.visible)!==!0&&v.value===!1&&b.value===!1||a.horizontal.size.value<=o.horizontal.value+1),a.horizontal.thumbStart=C.computed(()=>u.horizontalOffset[0]+a.horizontal.percentage.value*(o.horizontalInner.value-a.horizontal.thumbSize.value)),a.horizontal.thumbSize=C.computed(()=>Math.round(Tr(o.horizontalInner.value*o.horizontalInner.value/a.horizontal.size.value,as(o.horizontalInner.value),o.horizontalInner.value))),a.horizontal.style=C.computed(()=>({...u.thumbStyle,...u.horizontalThumbStyle,[n.$q.lang.rtl===!0?"right":"left"]:`${a.horizontal.thumbStart.value}px`,width:`${a.horizontal.thumbSize.value}px`,bottom:`${u.verticalOffset[1]}px`})),a.horizontal.thumbClass=C.computed(()=>"q-scrollarea__thumb q-scrollarea__thumb--h absolute-bottom"+(a.horizontal.thumbHidden.value===!0?" q-scrollarea__thumb--invisible":"")),a.horizontal.barClass=C.computed(()=>"q-scrollarea__bar q-scrollarea__bar--h absolute-bottom"+(a.horizontal.thumbHidden.value===!0?" q-scrollarea__bar--invisible":""));const d=C.computed(()=>a.vertical.thumbHidden.value===!0&&a.horizontal.thumbHidden.value===!0?u.contentStyle:u.contentActiveStyle);function h(){const T={};return ss.forEach(S=>{const g=a[S];Object.assign(T,{[S+"Position"]:g.position.value,[S+"Percentage"]:g.percentage.value,[S+"Size"]:g.size.value,[S+"ContainerSize"]:o[S].value,[S+"ContainerInnerSize"]:o[S+"Inner"].value})}),T}const c=xi(()=>{const T=h();T.ref=n,t("scroll",T)},0);function m(T,S,g){if(ss.includes(T)===!1){console.error("[QScrollArea]: wrong first param of setScrollPosition (vertical/horizontal)");return}(T==="vertical"?Ji:In)(s.value,S,g)}function p({height:T,width:S}){let g=!1;o.vertical.value!==T&&(o.vertical.value=T,g=!0),o.horizontal.value!==S&&(o.horizontal.value=S,g=!0),g===!0&&q()}function x({position:T}){let S=!1;a.vertical.position.value!==T.top&&(a.vertical.position.value=T.top,S=!0),a.horizontal.position.value!==T.left&&(a.horizontal.position.value=T.left,S=!0),S===!0&&q()}function k({height:T,width:S}){a.horizontal.size.value!==S&&(a.horizontal.size.value=S,q()),a.vertical.size.value!==T&&(a.vertical.size.value=T,q())}function A(T,S){const g=a[S];if(T.isFirst===!0){if(g.thumbHidden.value===!0)return;l=g.position.value,b.value=!0}else if(b.value!==!0)return;T.isFinal===!0&&(b.value=!1);const y=Nn[S],w=(g.size.value-o[S].value)/(o[S+"Inner"].value-g.thumbSize.value),_=T.distance[y.dist],E=l+(T.direction===y.dir?1:-1)*_*w;D(E,S)}function N(T,S){const g=a[S];if(g.thumbHidden.value!==!0){const y=S==="vertical"?u.verticalOffset[0]:u.horizontalOffset[0],w=T[Nn[S].offset]-y,_=g.thumbStart.value-y;if(w<_||w>_+g.thumbSize.value){const E=w-g.thumbSize.value/2,O=Tr(E/(o[S+"Inner"].value-g.thumbSize.value),0,1);D(O*Math.max(0,g.size.value-o[S].value),S)}g.ref.value!==null&&g.ref.value.dispatchEvent(new MouseEvent(T.type,T))}}function q(){v.value=!0,r!==null&&clearTimeout(r),r=setTimeout(()=>{r=null,v.value=!1},u.delay),u.onScroll!==void 0&&c()}function D(T,S){s.value[Nn[S].scroll]=T}let F=null;function L(){F!==null&&clearTimeout(F),F=setTimeout(()=>{F=null,f.value=!0},n.$q.platform.is.ios?50:0)}function V(){F!==null&&(clearTimeout(F),F=null),f.value=!1}let z=null;C.watch(()=>n.$q.lang.rtl,T=>{s.value!==null&&In(s.value,Math.abs(a.horizontal.position.value)*(T===!0?-1:1))}),C.onDeactivated(()=>{z={top:a.vertical.position.value,left:a.horizontal.position.value}}),C.onActivated(()=>{if(z===null)return;const T=s.value;T!==null&&(In(T,z.left),Ji(T,z.top))}),C.onBeforeUnmount(c.cancel),Object.assign(n,{getScrollTarget:()=>s.value,getScroll:h,getScrollPosition:()=>({top:a.vertical.position.value,left:a.horizontal.position.value}),getScrollPercentage:()=>({top:a.vertical.percentage.value,left:a.horizontal.percentage.value}),setScrollPosition:m,setScrollPercentage(T,S,g){m(T,S*(a[T].size.value-o[T].value)*(T==="horizontal"&&n.$q.lang.rtl===!0?-1:1),g)}});const M={scroll:a,thumbVertDir:[[ns,T=>{A(T,"vertical")},void 0,{vertical:!0,...os}]],thumbHorizDir:[[ns,T=>{A(T,"horizontal")},void 0,{horizontal:!0,...os}]],onVerticalMousedown(T){N(T,"vertical")},onHorizontalMousedown(T){N(T,"horizontal")}};return()=>C.h("div",{class:i.value,onMouseenter:L,onMouseleave:V},[C.h("div",{ref:s,class:"q-scrollarea__container scroll relative-position fit hide-scrollbar",tabindex:u.tabindex!==void 0?u.tabindex:void 0},[C.h("div",{class:"q-scrollarea__content absolute",style:d.value},Nt(P.default,[C.h(Sr,{debounce:0,onResize:k})])),C.h(lo,{axis:"both",onScroll:x})]),C.h(Sr,{debounce:0,onResize:p}),C.h(La,{store:M,barStyle:u.barStyle,verticalBarStyle:u.verticalBarStyle,horizontalBarStyle:u.horizontalBarStyle})])}}),Ja=it({name:"QCard",props:{...Bt,tag:{type:String,default:"div"},square:Boolean,flat:Boolean,bordered:Boolean},setup(u,{slots:P}){const{proxy:{$q:t}}=C.getCurrentInstance(),v=Dt(u,t),b=C.computed(()=>"q-card"+(v.value===!0?" q-card--dark q-dark":"")+(u.bordered===!0?" q-card--bordered":"")+(u.square===!0?" q-card--square no-border-radius":"")+(u.flat===!0?" q-card--flat no-shadow":""));return()=>C.h(u.tag,{class:b.value},vt(P.default))}}),uo={target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},co={...uo,contextMenu:Boolean};function Si({showing:u,avoidEmit:P,configureAnchorEl:t}){const{props:v,proxy:b,emit:f}=C.getCurrentInstance(),o=C.ref(null);let a=null;function n(i){return o.value===null?!1:i===void 0||i.touches===void 0||i.touches.length<=1}const e={};t===void 0&&(Object.assign(e,{hide(i){b.hide(i)},toggle(i){b.toggle(i),i.qAnchorHandled=!0},toggleKey(i){er(i,13)===!0&&e.toggle(i)},contextClick(i){b.hide(i),Ot(i),C.nextTick(()=>{b.show(i),i.qAnchorHandled=!0})},prevent:Ot,mobileTouch(i){if(e.mobileCleanup(i),n(i)!==!0)return;b.hide(i),o.value.classList.add("non-selectable");const d=i.target;Ut(e,"anchor",[[d,"touchmove","mobileCleanup","passive"],[d,"touchend","mobileCleanup","passive"],[d,"touchcancel","mobileCleanup","passive"],[o.value,"contextmenu","prevent","notPassive"]]),a=setTimeout(()=>{a=null,b.show(i),i.qAnchorHandled=!0},300)},mobileCleanup(i){o.value.classList.remove("non-selectable"),a!==null&&(clearTimeout(a),a=null),u.value===!0&&i!==void 0&&hn()}}),t=function(i=v.contextMenu){if(v.noParentEvent===!0||o.value===null)return;let d;i===!0?b.$q.platform.is.mobile===!0?d=[[o.value,"touchstart","mobileTouch","passive"]]:d=[[o.value,"mousedown","hide","passive"],[o.value,"contextmenu","contextClick","notPassive"]]:d=[[o.value,"click","toggle","passive"],[o.value,"keyup","toggleKey","passive"]],Ut(e,"anchor",d)});function r(){ar(e,"anchor")}function l(i){for(o.value=i;o.value.classList.contains("q-anchor--skip");)o.value=o.value.parentNode;t()}function s(){if(v.target===!1||v.target===""||b.$el.parentNode===null)o.value=null;else if(v.target===!0)l(b.$el.parentNode);else{let i=v.target;if(typeof v.target=="string")try{i=document.querySelector(v.target)}catch{i=void 0}i!=null?(o.value=i.$el||i,t()):(o.value=null,console.error(`Anchor: target "${v.target}" not found`))}}return C.watch(()=>v.contextMenu,i=>{o.value!==null&&(r(),t(i))}),C.watch(()=>v.target,()=>{o.value!==null&&r(),s()}),C.watch(()=>v.noParentEvent,i=>{o.value!==null&&(i===!0?r():t())}),C.onMounted(()=>{s(),P!==!0&&v.modelValue===!0&&o.value===null&&f("update:modelValue",!1)}),C.onBeforeUnmount(()=>{a!==null&&clearTimeout(a),r()}),{anchorEl:o,canShow:n,anchorEvents:e}}function fo(u,P){const t=C.ref(null);let v;function b(a,n){const e=`${n!==void 0?"add":"remove"}EventListener`,r=n!==void 0?n:v;a!==window&&a[e]("scroll",r,St.passive),window[e]("scroll",r,St.passive),v=n}function f(){t.value!==null&&(b(t.value),t.value=null)}const o=C.watch(()=>u.noParentEvent,()=>{t.value!==null&&(f(),P())});return C.onBeforeUnmount(o),{localScrollTarget:t,unconfigureScrollTarget:f,changeScrollEvent:b}}const ki={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},Ci=["beforeShow","show","beforeHide","hide"];function Mi({showing:u,canShow:P,hideOnRouteChange:t,handleShow:v,handleHide:b,processOnMount:f}){const o=C.getCurrentInstance(),{props:a,emit:n,proxy:e}=o;let r;function l(p){u.value===!0?d(p):s(p)}function s(p){if(a.disable===!0||p?.qAnchorHandled===!0||P!==void 0&&P(p)!==!0)return;const x=a["onUpdate:modelValue"]!==void 0;x===!0&&(n("update:modelValue",!0),r=p,C.nextTick(()=>{r===p&&(r=void 0)})),(a.modelValue===null||x===!1)&&i(p)}function i(p){u.value!==!0&&(u.value=!0,n("beforeShow",p),v!==void 0?v(p):n("show",p))}function d(p){if(a.disable===!0)return;const x=a["onUpdate:modelValue"]!==void 0;x===!0&&(n("update:modelValue",!1),r=p,C.nextTick(()=>{r===p&&(r=void 0)})),(a.modelValue===null||x===!1)&&h(p)}function h(p){u.value!==!1&&(u.value=!1,n("beforeHide",p),b!==void 0?b(p):n("hide",p))}function c(p){a.disable===!0&&p===!0?a["onUpdate:modelValue"]!==void 0&&n("update:modelValue",!1):p===!0!==u.value&&(p===!0?i:h)(r)}C.watch(()=>a.modelValue,c),t!==void 0&&pi(o)===!0&&C.watch(()=>e.$route.fullPath,()=>{t.value===!0&&u.value===!0&&d()}),C.onMounted(()=>{c(a.modelValue)});const m={show:s,hide:d,toggle:l};return Object.assign(e,m),m}let or=[],Br=[];function ho(u){Br=Br.filter(P=>P!==u)}function el(u){ho(u),Br.push(u)}function ls(u){ho(u),Br.length===0&&or.length!==0&&(or[or.length-1](),or=[])}function Lr(u){Br.length===0?u():or.push(u)}function tl(u){or=or.filter(P=>P!==u)}const us={};let rl=1,nl=document.body;function il(u,P){const t=document.createElement("div");if(t.id=P!==void 0?`q-portal--${P}--${rl++}`:u,us.globalNodes!==void 0){const v=us.globalNodes.class;v!==void 0&&(t.className=v)}return nl.appendChild(t),t}function sl(u){u.remove()}const _r=[];function ol(u){return _r.find(P=>P.contentEl!==null&&P.contentEl.contains(u))}function po(u,P){do{if(u.$options.name==="QMenu"){if(u.hide(P),u.$props.separateClosePopup===!0)return on(u)}else if(u.__qPortal===!0){const t=on(u);return t?.$options.name==="QPopupProxy"?(u.hide(P),t):u}u=on(u)}while(u!=null)}function al(u,P,t){for(;t!==0&&u!==void 0&&u!==null;){if(u.__qPortal===!0){if(t--,u.$options.name==="QMenu"){u=po(u,P);continue}u.hide(P)}u=on(u)}}const ll=it({name:"QPortal",setup(u,{slots:P}){return()=>P.default()}});function ul(u){for(u=u.parent;u!=null;){if(u.type.name==="QGlobalDialog")return!0;if(u.type.name==="QDialog"||u.type.name==="QMenu")return!1;u=u.parent}return!1}function Ei(u,P,t,v){const b=C.ref(!1),f=C.ref(!1);let o=null;const a={},n=v==="dialog"&&ul(u);function e(l){if(l===!0){ls(a),f.value=!0;return}f.value=!1,b.value===!1&&(n===!1&&o===null&&(o=il(!1,v)),b.value=!0,_r.push(u.proxy),el(a))}function r(l){if(f.value=!1,l!==!0)return;ls(a),b.value=!1;const s=_r.indexOf(u.proxy);s!==-1&&_r.splice(s,1),o!==null&&(sl(o),o=null)}return C.onUnmounted(()=>{r(!0)}),u.proxy.__qPortal=!0,Lt(u.proxy,"contentEl",()=>P.value),{showPortal:e,hidePortal:r,portalIsActive:b,portalIsAccessible:f,renderPortal:()=>n===!0?t():b.value===!0?[C.h(C.Teleport,{to:o},C.h(ll,t))]:void 0}}const Pr={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function Ti(u,P=()=>{},t=()=>{}){return{transitionProps:C.computed(()=>{const v=`q-transition--${u.transitionShow||P()}`,b=`q-transition--${u.transitionHide||t()}`;return{appear:!0,enterFromClass:`${v}-enter-from`,enterActiveClass:`${v}-enter-active`,enterToClass:`${v}-enter-to`,leaveFromClass:`${b}-leave-from`,leaveActiveClass:`${b}-leave-active`,leaveToClass:`${b}-leave-to`}}),transitionStyle:C.computed(()=>`--q-transition-duration: ${u.transitionDuration}ms`)}}function Ai(){let u;const P=C.getCurrentInstance();function t(){u=void 0}return C.onDeactivated(t),C.onBeforeUnmount(t),{removeTick:t,registerTick(v){u=v,C.nextTick(()=>{u===v&&(mi(P)===!1&&u(),u=void 0)})}}}function Ri(){let u=null;const P=C.getCurrentInstance();function t(){u!==null&&(clearTimeout(u),u=null)}return C.onDeactivated(t),C.onBeforeUnmount(t),{removeTimeout:t,registerTimeout(v,b){t(),mi(P)===!1&&(u=setTimeout(()=>{u=null,v()},b))}}}const lr=[];let kr;function cl(u){kr=u.keyCode===27}function fl(){kr===!0&&(kr=!1)}function dl(u){kr===!0&&(kr=!1,er(u,27)===!0&&lr[lr.length-1](u))}function mo(u){window[u]("keydown",cl),window[u]("blur",fl),window[u]("keyup",dl),kr=!1}function bo(u){Et.is.desktop===!0&&(lr.push(u),lr.length===1&&mo("addEventListener"))}function pn(u){const P=lr.indexOf(u);P!==-1&&(lr.splice(P,1),lr.length===0&&mo("removeEventListener"))}const ur=[];function go(u){ur[ur.length-1](u)}function vo(u){Et.is.desktop===!0&&(ur.push(u),ur.length===1&&document.body.addEventListener("focusin",go))}function ri(u){const P=ur.indexOf(u);P!==-1&&(ur.splice(P,1),ur.length===0&&document.body.removeEventListener("focusin",go))}const{notPassiveCapture:mn}=St,cr=[];function bn(u){const P=u.target;if(P===void 0||P.nodeType===8||P.classList.contains("no-pointer-events")===!0)return;let t=_r.length-1;for(;t>=0;){const v=_r[t].$;if(v.type.name==="QTooltip"){t--;continue}if(v.type.name!=="QDialog")break;if(v.props.seamless!==!0)return;t--}for(let v=cr.length-1;v>=0;v--){const b=cr[v];if((b.anchorEl.value===null||b.anchorEl.value.contains(P)===!1)&&(P===document.body||b.innerRef.value!==null&&b.innerRef.value.contains(P)===!1))u.qClickOutside=!0,b.onClickOutside(u);else return}}function yo(u){cr.push(u),cr.length===1&&(document.addEventListener("mousedown",bn,mn),document.addEventListener("touchstart",bn,mn))}function gn(u){const P=cr.findIndex(t=>t===u);P!==-1&&(cr.splice(P,1),cr.length===0&&(document.removeEventListener("mousedown",bn,mn),document.removeEventListener("touchstart",bn,mn)))}let cs,fs;function vn(u){const P=u.split(" ");return P.length!==2?!1:["top","center","bottom"].includes(P[0])!==!0?(console.error("Anchor/Self position must start with one of top/center/bottom"),!1):["left","middle","right","start","end"].includes(P[1])!==!0?(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1):!0}function wo(u){return u?!(u.length!==2||typeof u[0]!="number"||typeof u[1]!="number"):!0}const ni={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(u=>{ni[`${u}#ltr`]=u,ni[`${u}#rtl`]=u});function yn(u,P){const t=u.split(" ");return{vertical:t[0],horizontal:ni[`${t[1]}#${P===!0?"rtl":"ltr"}`]}}function hl(u,P){let{top:t,left:v,right:b,bottom:f,width:o,height:a}=u.getBoundingClientRect();return P!==void 0&&(t-=P[1],v-=P[0],f+=P[1],b+=P[0],o+=P[0],a+=P[1]),{top:t,bottom:f,height:a,left:v,right:b,width:o,middle:v+(b-v)/2,center:t+(f-t)/2}}function pl(u,P,t){let{top:v,left:b}=u.getBoundingClientRect();return v+=P.top,b+=P.left,t!==void 0&&(v+=t[1],b+=t[0]),{top:v,bottom:v+1,height:1,left:b,right:b+1,width:1,middle:b,center:v}}function ml(u,P){return{top:0,center:P/2,bottom:P,left:0,middle:u/2,right:u}}function ds(u,P,t,v){return{top:u[t.vertical]-P[v.vertical],left:u[t.horizontal]-P[v.horizontal]}}function Oi(u,P=0){if(u.targetEl===null||u.anchorEl===null||P>5)return;if(u.targetEl.offsetHeight===0||u.targetEl.offsetWidth===0){setTimeout(()=>{Oi(u,P+1)},10);return}const{targetEl:t,offset:v,anchorEl:b,anchorOrigin:f,selfOrigin:o,absoluteOffset:a,fit:n,cover:e,maxHeight:r,maxWidth:l}=u;if(Et.is.ios===!0&&window.visualViewport!==void 0){const N=document.body.style,{offsetLeft:q,offsetTop:D}=window.visualViewport;q!==cs&&(N.setProperty("--q-pe-left",q+"px"),cs=q),D!==fs&&(N.setProperty("--q-pe-top",D+"px"),fs=D)}const{scrollLeft:s,scrollTop:i}=t,d=a===void 0?hl(b,e===!0?[0,0]:v):pl(b,a,v);Object.assign(t.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:l,maxHeight:r,visibility:"visible"});const{offsetWidth:h,offsetHeight:c}=t,{elWidth:m,elHeight:p}=n===!0||e===!0?{elWidth:Math.max(d.width,h),elHeight:e===!0?Math.max(d.height,c):c}:{elWidth:h,elHeight:c};let x={maxWidth:l,maxHeight:r};(n===!0||e===!0)&&(x.minWidth=d.width+"px",e===!0&&(x.minHeight=d.height+"px")),Object.assign(t.style,x);const k=ml(m,p);let A=ds(d,k,f,o);if(a===void 0||v===void 0)Bn(A,d,k,f,o);else{const{top:N,left:q}=A;Bn(A,d,k,f,o);let D=!1;if(A.top!==N){D=!0;const F=2*v[1];d.center=d.top-=F,d.bottom-=F+2}if(A.left!==q){D=!0;const F=2*v[0];d.middle=d.left-=F,d.right-=F+2}D===!0&&(A=ds(d,k,f,o),Bn(A,d,k,f,o))}x={top:A.top+"px",left:A.left+"px"},A.maxHeight!==void 0&&(x.maxHeight=A.maxHeight+"px",d.height>A.maxHeight&&(x.minHeight=x.maxHeight)),A.maxWidth!==void 0&&(x.maxWidth=A.maxWidth+"px",d.width>A.maxWidth&&(x.minWidth=x.maxWidth)),Object.assign(t.style,x),t.scrollTop!==i&&(t.scrollTop=i),t.scrollLeft!==s&&(t.scrollLeft=s)}function Bn(u,P,t,v,b){const f=t.bottom,o=t.right,a=ln(),n=window.innerHeight-a,e=document.body.clientWidth;if(u.top<0||u.top+f>n)if(b.vertical==="center")u.top=P[v.vertical]>n/2?Math.max(0,n-f):0,u.maxHeight=Math.min(f,n);else if(P[v.vertical]>n/2){const r=Math.min(n,v.vertical==="center"?P.center:v.vertical===b.vertical?P.bottom:P.top);u.maxHeight=Math.min(f,r),u.top=Math.max(0,r-f)}else u.top=Math.max(0,v.vertical==="center"?P.center:v.vertical===b.vertical?P.top:P.bottom),u.maxHeight=Math.min(f,n-u.top);if(u.left<0||u.left+o>e)if(u.maxWidth=Math.min(o,e),b.horizontal==="middle")u.left=P[v.horizontal]>e/2?Math.max(0,e-o):0;else if(P[v.horizontal]>e/2){const r=Math.min(e,v.horizontal==="middle"?P.middle:v.horizontal===b.horizontal?P.right:P.left);u.maxWidth=Math.min(o,r),u.left=Math.max(0,r-u.maxWidth)}else u.left=Math.max(0,v.horizontal==="middle"?P.middle:v.horizontal===b.horizontal?P.left:P.right),u.maxWidth=Math.min(o,e-u.left)}const En=it({name:"QMenu",inheritAttrs:!1,props:{...co,...ki,...Bt,...Pr,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noEscDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:vn},self:{type:String,validator:vn},offset:{type:Array,validator:wo},scrollTarget:Cn,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...Ci,"click","escapeKey"],setup(u,{slots:P,emit:t,attrs:v}){let b=null,f,o,a;const n=C.getCurrentInstance(),{proxy:e}=n,{$q:r}=e,l=C.ref(null),s=C.ref(!1),i=C.computed(()=>u.persistent!==!0&&u.noRouteDismiss!==!0),d=Dt(u,r),{registerTick:h,removeTick:c}=Ai(),{registerTimeout:m}=Ri(),{transitionProps:p,transitionStyle:x}=Ti(u),{localScrollTarget:k,changeScrollEvent:A,unconfigureScrollTarget:N}=fo(u,H),{anchorEl:q,canShow:D}=Si({showing:s}),{hide:F}=Mi({showing:s,canShow:D,handleShow:E,handleHide:O,hideOnRouteChange:i,processOnMount:!0}),{showPortal:L,hidePortal:V,renderPortal:z}=Ei(n,l,I,"menu"),M={anchorEl:q,innerRef:l,onClickOutside(R){if(u.persistent!==!0&&s.value===!0)return F(R),(R.type==="touchstart"||R.target.classList.contains("q-dialog__backdrop"))&&_t(R),!0}},T=C.computed(()=>yn(u.anchor||(u.cover===!0?"center middle":"bottom start"),r.lang.rtl)),S=C.computed(()=>u.cover===!0?T.value:yn(u.self||"top start",r.lang.rtl)),g=C.computed(()=>(u.square===!0?" q-menu--square":"")+(d.value===!0?" q-menu--dark q-dark":"")),y=C.computed(()=>u.autoClose===!0?{onClick:U}:{}),w=C.computed(()=>s.value===!0&&u.persistent!==!0);C.watch(w,R=>{R===!0?(bo(B),yo(M)):(pn(B),gn(M))});function _(){Lr(()=>{let R=l.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 E(R){if(b=u.noRefocus===!1?document.activeElement:null,vo(X),L(),H(),f=void 0,R!==void 0&&(u.touchPosition||u.contextMenu)){const $=Nr(R);if($.left!==void 0){const{top:Y,left:J}=q.value.getBoundingClientRect();f={left:$.left-J,top:$.top-Y}}}o===void 0&&(o=C.watch(()=>r.screen.width+"|"+r.screen.height+"|"+u.self+"|"+u.anchor+"|"+r.lang.rtl,W)),u.noFocus!==!0&&document.activeElement.blur(),h(()=>{W(),u.noFocus!==!0&&_()}),m(()=>{r.platform.is.ios===!0&&(a=u.autoClose,l.value.click()),W(),L(!0),t("show",R)},u.transitionDuration)}function O(R){c(),V(),j(!0),b!==null&&(R===void 0||R.qClickOutside!==!0)&&(((R?.type.indexOf("key")===0?b.closest('[tabindex]:not([tabindex^="-"])'):void 0)||b).focus(),b=null),m(()=>{V(!0),t("hide",R)},u.transitionDuration)}function j(R){f=void 0,o!==void 0&&(o(),o=void 0),(R===!0||s.value===!0)&&(ri(X),N(),gn(M),pn(B)),R!==!0&&(b=null)}function H(){(q.value!==null||u.scrollTarget!==void 0)&&(k.value=Mn(q.value,u.scrollTarget),A(k.value,W))}function U(R){a!==!0?(po(e,R),t("click",R)):a=!1}function X(R){w.value===!0&&u.noFocus!==!0&&eo(l.value,R.target)!==!0&&_()}function B(R){u.noEscDismiss!==!0&&(t("escapeKey"),F(R))}function W(){Oi({targetEl:l.value,offset:u.offset,anchorEl:q.value,anchorOrigin:T.value,selfOrigin:S.value,absoluteOffset:f,fit:u.fit,cover:u.cover,maxHeight:u.maxHeight,maxWidth:u.maxWidth})}function I(){return C.h(C.Transition,p.value,()=>s.value===!0?C.h("div",{role:"menu",...v,ref:l,tabindex:-1,class:["q-menu q-position-engine scroll"+g.value,v.class],style:[v.style,x.value],...y.value},vt(P.default)):null)}return C.onBeforeUnmount(j),Object.assign(e,{focus:_,updatePosition:W}),z}});let Dn,Kr=0;const Tt=new Array(256);for(let u=0;u<256;u++)Tt[u]=(u+256).toString(16).substring(1);const bl=(()=>{const u=typeof crypto<"u"?crypto:typeof window<"u"?window.crypto||window.msCrypto:void 0;if(u!==void 0){if(u.randomBytes!==void 0)return u.randomBytes;if(u.getRandomValues!==void 0)return P=>{const t=new Uint8Array(P);return u.getRandomValues(t),t}}return P=>{const t=[];for(let v=P;v>0;v--)t.push(Math.floor(Math.random()*256));return t}})(),hs=4096;function ii(){(Dn===void 0||Kr+16>hs)&&(Kr=0,Dn=bl(hs));const u=Array.prototype.slice.call(Dn,Kr,Kr+=16);return u[6]=u[6]&15|64,u[8]=u[8]&63|128,Tt[u[0]]+Tt[u[1]]+Tt[u[2]]+Tt[u[3]]+"-"+Tt[u[4]]+Tt[u[5]]+"-"+Tt[u[6]]+Tt[u[7]]+"-"+Tt[u[8]]+Tt[u[9]]+"-"+Tt[u[10]]+Tt[u[11]]+Tt[u[12]]+Tt[u[13]]+Tt[u[14]]+Tt[u[15]]}function gl(u){return u??null}function ps(u,P){return u??(P===!0?`f_${ii()}`:null)}function vl({getValue:u,required:P=!0}={}){if(tr.value===!0){const t=u!==void 0?C.ref(gl(u())):C.ref(null);return P===!0&&t.value===null&&C.onMounted(()=>{t.value=`f_${ii()}`}),u!==void 0&&C.watch(u,v=>{t.value=ps(v,P)}),t}return u!==void 0?C.computed(()=>ps(u(),P)):C.ref(`f_${ii()}`)}const ms=/^on[A-Z]/;function yl(){const{attrs:u,vnode:P}=C.getCurrentInstance(),t={listeners:C.ref({}),attributes:C.ref({})};function v(){const b={},f={};for(const o in u)o!=="class"&&o!=="style"&&ms.test(o)===!1&&(b[o]=u[o]);for(const o in P.props)ms.test(o)===!0&&(f[o]=P.props[o]);t.attributes.value=b,t.listeners.value=f}return C.onBeforeUpdate(v),v(),t}const zr="_q_l_",_o="_q_pc_",xo="_q_fo_";function Rt(){}function wl({validate:u,resetValidation:P,requiresQForm:t}){const v=C.inject(xo,!1);if(v!==!1){const{props:b,proxy:f}=C.getCurrentInstance();Object.assign(f,{validate:u,resetValidation:P}),C.watch(()=>b.disable,o=>{o===!0?(typeof P=="function"&&P(),v.unbindComponent(f)):v.bindComponent(f)}),C.onMounted(()=>{b.disable!==!0&&v.bindComponent(f)}),C.onBeforeUnmount(()=>{b.disable!==!0&&v.unbindComponent(f)})}else t===!0&&console.error("Parent QForm not found on useFormChild()!")}const bs=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,gs=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,vs=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,Zr=/^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])\)$/,Gr=/^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)\)$/,Fn={date:u=>/^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(u),time:u=>/^([0-1]?\d|2[0-3]):[0-5]\d$/.test(u),fulltime:u=>/^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/.test(u),timeOrFulltime:u=>/^([0-1]?\d|2[0-3]):[0-5]\d(:[0-5]\d)?$/.test(u),email:u=>/^(([^<>()\[\]\\.,;:\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(u),hexColor:u=>bs.test(u),hexaColor:u=>gs.test(u),hexOrHexaColor:u=>vs.test(u),rgbColor:u=>Zr.test(u),rgbaColor:u=>Gr.test(u),rgbOrRgbaColor:u=>Zr.test(u)||Gr.test(u),hexOrRgbColor:u=>bs.test(u)||Zr.test(u),hexaOrRgbaColor:u=>gs.test(u)||Gr.test(u),anyColor:u=>vs.test(u)||Zr.test(u)||Gr.test(u)},_l=[!0,!1,"ondemand"],xl={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:u=>_l.includes(u)}};function Sl(u,P){const{props:t,proxy:v}=C.getCurrentInstance(),b=C.ref(!1),f=C.ref(null),o=C.ref(!1);wl({validate:h,resetValidation:d});let a=0,n;const e=C.computed(()=>t.rules!==void 0&&t.rules!==null&&t.rules.length!==0),r=C.computed(()=>t.disable!==!0&&e.value===!0&&P.value===!1),l=C.computed(()=>t.error===!0||b.value===!0),s=C.computed(()=>typeof t.errorMessage=="string"&&t.errorMessage.length!==0?t.errorMessage:f.value);C.watch(()=>t.modelValue,()=>{o.value=!0,r.value===!0&&t.lazyRules===!1&&c()});function i(){t.lazyRules!=="ondemand"&&r.value===!0&&o.value===!0&&c()}C.watch(()=>t.reactiveRules,m=>{m===!0?n===void 0&&(n=C.watch(()=>t.rules,i,{immediate:!0,deep:!0})):n!==void 0&&(n(),n=void 0)},{immediate:!0}),C.watch(()=>t.lazyRules,i),C.watch(u,m=>{m===!0?o.value=!0:r.value===!0&&t.lazyRules!=="ondemand"&&c()});function d(){a++,P.value=!1,o.value=!1,b.value=!1,f.value=null,c.cancel()}function h(m=t.modelValue){if(t.disable===!0||e.value===!1)return!0;const p=++a,x=P.value!==!0?()=>{o.value=!0}:()=>{},k=(N,q)=>{N===!0&&x(),b.value=N,f.value=q||null,P.value=!1},A=[];for(let N=0;N<t.rules.length;N++){const q=t.rules[N];let D;if(typeof q=="function"?D=q(m,Fn):typeof q=="string"&&Fn[q]!==void 0&&(D=Fn[q](m)),D===!1||typeof D=="string")return k(!0,D),!1;D!==!0&&D!==void 0&&A.push(D)}return A.length===0?(k(!1),!0):(P.value=!0,Promise.all(A).then(N=>{if(N===void 0||Array.isArray(N)===!1||N.length===0)return p===a&&k(!1),!0;const q=N.find(D=>D===!1||typeof D=="string");return p===a&&k(q!==void 0,q),q===void 0},N=>(p===a&&(console.error(N),k(!0)),!1)))}const c=xi(h,0);return C.onBeforeUnmount(()=>{n?.(),c.cancel()}),Object.assign(v,{resetValidation:d,validate:h}),Lt(v,"hasError",()=>l.value),{isDirtyModel:o,hasRules:e,hasError:l,errorMessage:s,validate:h,resetValidation:d}}function Dr(u){return u!=null&&(""+u).length!==0}const kl={...Bt,...xl,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},Tn={...kl,maxlength:[Number,String]},ji=["update:modelValue","clear","focus","blur"];function Ii({requiredForAttr:u=!0,tagProp:P,changeEvent:t=!1}={}){const{props:v,proxy:b}=C.getCurrentInstance(),f=Dt(v,b.$q),o=vl({required:u,getValue:()=>v.for});return{requiredForAttr:u,changeEvent:t,tag:P===!0?C.computed(()=>v.tag):{value:"label"},isDark:f,editable:C.computed(()=>v.disable!==!0&&v.readonly!==!0),innerLoading:C.ref(!1),focused:C.ref(!1),hasPopupOpen:!1,splitAttrs:yl(),targetUid:o,rootRef:C.ref(null),targetRef:C.ref(null),controlRef:C.ref(null)}}function Pi(u){const{props:P,emit:t,slots:v,attrs:b,proxy:f}=C.getCurrentInstance(),{$q:o}=f;let a=null;u.hasValue===void 0&&(u.hasValue=C.computed(()=>Dr(P.modelValue))),u.emitValue===void 0&&(u.emitValue=w=>{t("update:modelValue",w)}),u.controlEvents===void 0&&(u.controlEvents={onFocusin:F,onFocusout:L}),Object.assign(u,{clearValue:V,onControlFocusin:F,onControlFocusout:L,focus:q}),u.computedCounter===void 0&&(u.computedCounter=C.computed(()=>{if(P.counter!==!1){const w=typeof P.modelValue=="string"||typeof P.modelValue=="number"?(""+P.modelValue).length:Array.isArray(P.modelValue)===!0?P.modelValue.length:0,_=P.maxlength!==void 0?P.maxlength:P.maxValues;return w+(_!==void 0?" / "+_:"")}}));const{isDirtyModel:n,hasRules:e,hasError:r,errorMessage:l,resetValidation:s}=Sl(u.focused,u.innerLoading),i=u.floatingLabel!==void 0?C.computed(()=>P.stackLabel===!0||u.focused.value===!0||u.floatingLabel.value===!0):C.computed(()=>P.stackLabel===!0||u.focused.value===!0||u.hasValue.value===!0),d=C.computed(()=>P.bottomSlots===!0||P.hint!==void 0||e.value===!0||P.counter===!0||P.error!==null),h=C.computed(()=>P.filled===!0?"filled":P.outlined===!0?"outlined":P.borderless===!0?"borderless":P.standout?"standout":"standard"),c=C.computed(()=>`q-field row no-wrap items-start q-field--${h.value}`+(u.fieldClass!==void 0?` ${u.fieldClass.value}`:"")+(P.rounded===!0?" q-field--rounded":"")+(P.square===!0?" q-field--square":"")+(i.value===!0?" q-field--float":"")+(p.value===!0?" q-field--labeled":"")+(P.dense===!0?" q-field--dense":"")+(P.itemAligned===!0?" q-field--item-aligned q-item-type":"")+(u.isDark.value===!0?" q-field--dark":"")+(u.getControl===void 0?" q-field--auto-height":"")+(u.focused.value===!0?" q-field--focused":"")+(r.value===!0?" q-field--error":"")+(r.value===!0||u.focused.value===!0?" q-field--highlighted":"")+(P.hideBottomSpace!==!0&&d.value===!0?" q-field--with-bottom":"")+(P.disable===!0?" q-field--disabled":P.readonly===!0?" q-field--readonly":"")),m=C.computed(()=>"q-field__control relative-position row no-wrap"+(P.bgColor!==void 0?` bg-${P.bgColor}`:"")+(r.value===!0?" text-negative":typeof P.standout=="string"&&P.standout.length!==0&&u.focused.value===!0?` ${P.standout}`:P.color!==void 0?` text-${P.color}`:"")),p=C.computed(()=>P.labelSlot===!0||P.label!==void 0),x=C.computed(()=>"q-field__label no-pointer-events absolute ellipsis"+(P.labelColor!==void 0&&r.value!==!0?` text-${P.labelColor}`:"")),k=C.computed(()=>({id:u.targetUid.value,editable:u.editable.value,focused:u.focused.value,floatingLabel:i.value,modelValue:P.modelValue,emitValue:u.emitValue})),A=C.computed(()=>{const w={};return u.targetUid.value&&(w.for=u.targetUid.value),P.disable===!0&&(w["aria-disabled"]="true"),w});function N(){const w=document.activeElement;let _=u.targetRef?.value;_&&(w===null||w.id!==u.targetUid.value)&&(_.hasAttribute("tabindex")===!0||(_=_.querySelector("[tabindex]")),_!==w&&_?.focus({preventScroll:!0}))}function q(){Lr(N)}function D(){tl(N);const w=document.activeElement;w!==null&&u.rootRef.value.contains(w)&&w.blur()}function F(w){a!==null&&(clearTimeout(a),a=null),u.editable.value===!0&&u.focused.value===!1&&(u.focused.value=!0,t("focus",w))}function L(w,_){a!==null&&clearTimeout(a),a=setTimeout(()=>{a=null,!(document.hasFocus()===!0&&(u.hasPopupOpen===!0||u.controlRef===void 0||u.controlRef.value===null||u.controlRef.value.contains(document.activeElement)!==!1))&&(u.focused.value===!0&&(u.focused.value=!1,t("blur",w)),_?.())})}function V(w){_t(w),o.platform.is.mobile!==!0?(u.targetRef?.value||u.rootRef.value).focus():u.rootRef.value.contains(document.activeElement)===!0&&document.activeElement.blur(),P.type==="file"&&(u.inputRef.value.value=null),t("update:modelValue",null),u.changeEvent===!0&&t("change",null),t("clear",P.modelValue),C.nextTick(()=>{const _=n.value;s(),n.value=_})}function z(w){[13,32].includes(w.keyCode)&&V(w)}function M(){const w=[];return v.prepend!==void 0&&w.push(C.h("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:Ot},v.prepend())),w.push(C.h("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},T())),r.value===!0&&P.noErrorIcon===!1&&w.push(g("error",[C.h(kt,{name:o.iconSet.field.error,color:"negative"})])),P.loading===!0||u.innerLoading.value===!0?w.push(g("inner-loading-append",v.loading!==void 0?v.loading():[C.h(Js,{color:P.color})])):P.clearable===!0&&u.hasValue.value===!0&&u.editable.value===!0&&w.push(g("inner-clearable-append",[C.h(kt,{class:"q-field__focusable-action",name:P.clearIcon||o.iconSet.field.clear,tabindex:0,role:"button","aria-hidden":"false","aria-label":o.lang.label.clear,onKeyup:z,onClick:V})])),v.append!==void 0&&w.push(C.h("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:Ot},v.append())),u.getInnerAppend!==void 0&&w.push(g("inner-append",u.getInnerAppend())),u.getControlChild!==void 0&&w.push(u.getControlChild()),w}function T(){const w=[];return P.prefix!==void 0&&P.prefix!==null&&w.push(C.h("div",{class:"q-field__prefix no-pointer-events row items-center"},P.prefix)),u.getShadowControl!==void 0&&u.hasShadow.value===!0&&w.push(u.getShadowControl()),u.getControl!==void 0?w.push(u.getControl()):v.rawControl!==void 0?w.push(v.rawControl()):v.control!==void 0&&w.push(C.h("div",{ref:u.targetRef,class:"q-field__native row",tabindex:-1,...u.splitAttrs.attributes.value,"data-autofocus":P.autofocus===!0||void 0},v.control(k.value))),p.value===!0&&w.push(C.h("div",{class:x.value},vt(v.label,P.label))),P.suffix!==void 0&&P.suffix!==null&&w.push(C.h("div",{class:"q-field__suffix no-pointer-events row items-center"},P.suffix)),w.concat(vt(v.default))}function S(){let w,_;r.value===!0?l.value!==null?(w=[C.h("div",{role:"alert"},l.value)],_=`q--slot-error-${l.value}`):(w=vt(v.error),_="q--slot-error"):(P.hideHint!==!0||u.focused.value===!0)&&(P.hint!==void 0?(w=[C.h("div",P.hint)],_=`q--slot-hint-${P.hint}`):(w=vt(v.hint),_="q--slot-hint"));const E=P.counter===!0||v.counter!==void 0;if(P.hideBottomSpace===!0&&E===!1&&w===void 0)return;const O=C.h("div",{key:_,class:"q-field__messages col"},w);return C.h("div",{class:"q-field__bottom row items-start q-field__bottom--"+(P.hideBottomSpace!==!0?"animated":"stale"),onClick:Ot},[P.hideBottomSpace===!0?O:C.h(C.Transition,{name:"q-transition--field-message"},()=>O),E===!0?C.h("div",{class:"q-field__counter"},v.counter!==void 0?v.counter():u.computedCounter.value):null])}function g(w,_){return _===null?null:C.h("div",{key:w,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},_)}let y=!1;return C.onDeactivated(()=>{y=!0}),C.onActivated(()=>{y===!0&&P.autofocus===!0&&f.focus()}),P.autofocus===!0&&C.onMounted(()=>{f.focus()}),C.onBeforeUnmount(()=>{a!==null&&clearTimeout(a)}),Object.assign(f,{focus:q,blur:D}),function(){const _=u.getControl===void 0&&v.control===void 0?{...u.splitAttrs.attributes.value,"data-autofocus":P.autofocus===!0||void 0,...A.value}:A.value;return C.h(u.tag.value,{ref:u.rootRef,class:[c.value,b.class],style:b.style,..._},[v.before!==void 0?C.h("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:Ot},v.before()):null,C.h("div",{class:"q-field__inner relative-position col self-stretch"},[C.h("div",{ref:u.controlRef,class:m.value,tabindex:-1,...u.controlEvents},M()),d.value===!0?S():null]),v.after!==void 0?C.h("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:Ot},v.after()):null])}}const Cl=it({name:"QField",inheritAttrs:!1,props:{...Tn,tag:{type:String,default:"label"}},emits:ji,setup(){return Pi(Ii({tagProp:!0}))}}),Ml={xs:8,sm:10,md:14,lg:20,xl:24},El=it({name:"QChip",props:{...Bt,...Cr,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(u,{slots:P,emit:t}){const{proxy:{$q:v}}=C.getCurrentInstance(),b=Dt(u,v),f=Mr(u,Ml),o=C.computed(()=>u.selected===!0||u.icon!==void 0),a=C.computed(()=>u.selected===!0?u.iconSelected||v.iconSet.chip.selected:u.icon),n=C.computed(()=>u.iconRemove||v.iconSet.chip.remove),e=C.computed(()=>u.disable===!1&&(u.clickable===!0||u.selected!==null)),r=C.computed(()=>{const c=u.outline===!0&&u.color||u.textColor;return"q-chip row inline no-wrap items-center"+(u.outline===!1&&u.color!==void 0?` bg-${u.color}`:"")+(c?` text-${c} q-chip--colored`:"")+(u.disable===!0?" disabled":"")+(u.dense===!0?" q-chip--dense":"")+(u.outline===!0?" q-chip--outline":"")+(u.selected===!0?" q-chip--selected":"")+(e.value===!0?" q-chip--clickable cursor-pointer non-selectable q-hoverable":"")+(u.square===!0?" q-chip--square":"")+(b.value===!0?" q-chip--dark q-dark":"")}),l=C.computed(()=>{const c=u.disable===!0?{tabindex:-1,"aria-disabled":"true"}:{tabindex:u.tabindex||0},m={...c,role:"button","aria-hidden":"false","aria-label":u.removeAriaLabel||v.lang.label.remove};return{chip:c,remove:m}});function s(c){c.keyCode===13&&i(c)}function i(c){u.disable||(t("update:selected",!u.selected),t("click",c))}function d(c){(c.keyCode===void 0||c.keyCode===13)&&(_t(c),u.disable===!1&&(t("update:modelValue",!1),t("remove")))}function h(){const c=[];e.value===!0&&c.push(C.h("div",{class:"q-focus-helper"})),o.value===!0&&c.push(C.h(kt,{class:"q-chip__icon q-chip__icon--left",name:a.value}));const m=u.label!==void 0?[C.h("div",{class:"ellipsis"},[u.label])]:void 0;return c.push(C.h("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},Vs(P.default,m))),u.iconRight&&c.push(C.h(kt,{class:"q-chip__icon q-chip__icon--right",name:u.iconRight})),u.removable===!0&&c.push(C.h(kt,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:n.value,...l.value.remove,onClick:d,onKeyup:d})),c}return()=>{if(u.modelValue===!1)return;const c={class:r.value,style:f.value};return e.value===!0&&Object.assign(c,l.value.chip,{onClick:i,onKeyup:s}),Qo("div",c,h(),"ripple",u.ripple!==!1&&u.disable!==!0,()=>[[to,u.ripple]])}}}),si=it({name:"QItem",props:{...Bt,...Ks,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(u,{slots:P,emit:t}){const{proxy:{$q:v}}=C.getCurrentInstance(),b=Dt(u,v),{hasLink:f,linkAttrs:o,linkClass:a,linkTag:n,navigateOnClick:e}=bi(),r=C.ref(null),l=C.ref(null),s=C.computed(()=>u.clickable===!0||f.value===!0||u.tag==="label"),i=C.computed(()=>u.disable!==!0&&s.value===!0),d=C.computed(()=>"q-item q-item-type row no-wrap"+(u.dense===!0?" q-item--dense":"")+(b.value===!0?" q-item--dark":"")+(f.value===!0&&u.active===null?a.value:u.active===!0?` q-item--active${u.activeClass!==void 0?` ${u.activeClass}`:""}`:"")+(u.disable===!0?" disabled":"")+(i.value===!0?" q-item--clickable q-link cursor-pointer "+(u.manualFocus===!0?"q-manual-focusable":"q-focusable q-hoverable")+(u.focused===!0?" q-manual-focusable--focused":""):"")),h=C.computed(()=>u.insetLevel===void 0?null:{["padding"+(v.lang.rtl===!0?"Right":"Left")]:16+u.insetLevel*56+"px"});function c(x){i.value===!0&&(l.value!==null&&x.qAvoidFocus!==!0&&(x.qKeyEvent!==!0&&document.activeElement===r.value?l.value.focus():document.activeElement===l.value&&r.value.focus()),e(x))}function m(x){if(i.value===!0&&er(x,[13,32])===!0){_t(x),x.qKeyEvent=!0;const k=new MouseEvent("click",x);k.qKeyEvent=!0,r.value.dispatchEvent(k)}t("keyup",x)}function p(){const x=hi(P.default,[]);return i.value===!0&&x.unshift(C.h("div",{class:"q-focus-helper",tabindex:-1,ref:l})),x}return()=>{const x={ref:r,class:d.value,style:h.value,role:"listitem",onClick:c,onKeyup:m};return i.value===!0?(x.tabindex=u.tabindex||"0",Object.assign(x,o.value)):s.value===!0&&(x["aria-disabled"]="true"),C.h(n.value,x,p())}}}),oi=it({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(u,{slots:P}){const t=C.computed(()=>`q-item__section column q-item__section--${u.avatar===!0||u.side===!0||u.thumbnail===!0?"side":"main"}`+(u.top===!0?" q-item__section--top justify-start":" justify-center")+(u.avatar===!0?" q-item__section--avatar":"")+(u.thumbnail===!0?" q-item__section--thumbnail":"")+(u.noWrap===!0?" q-item__section--nowrap":""));return()=>C.h("div",{class:t.value},vt(P.default))}}),Tl=it({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(u,{slots:P}){const t=C.computed(()=>parseInt(u.lines,10)),v=C.computed(()=>"q-item__label"+(u.overline===!0?" q-item__label--overline text-overline":"")+(u.caption===!0?" q-item__label--caption text-caption":"")+(u.header===!0?" q-item__label--header":"")+(t.value===1?" ellipsis":"")),b=C.computed(()=>u.lines!==void 0&&t.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":t.value}:null);return()=>C.h("div",{style:b.value,class:v.value},vt(P.default))}});function Al(u,P,t){function v(){}return C.onBeforeUnmount(()=>{u.value===!0&&void 0}),{removeFromHistory:v,addToHistory(){}}}let Ar=0,Ln,zn,jr,qn=!1,ys,ws,_s,ir=null;function Rl(u){Ol(u)&&_t(u)}function Ol(u){if(u.target===document.body||u.target.classList.contains("q-layout__backdrop"))return!0;const P=ya(u),t=u.shiftKey&&!u.deltaX,v=!t&&Math.abs(u.deltaX)<=Math.abs(u.deltaY),b=t||v?u.deltaY:u.deltaX;for(let f=0;f<P.length;f++){const o=P[f];if(Wa(o,v))return v?b<0&&o.scrollTop===0?!0:b>0&&o.scrollTop+o.clientHeight===o.scrollHeight:b<0&&o.scrollLeft===0?!0:b>0&&o.scrollLeft+o.clientWidth===o.scrollWidth}return!0}function xs(u){u.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function Qr(u){qn!==!0&&(qn=!0,requestAnimationFrame(()=>{qn=!1;const{height:P}=u.target,{clientHeight:t,scrollTop:v}=document.scrollingElement;(jr===void 0||P!==window.innerHeight)&&(jr=t-P,document.scrollingElement.scrollTop=v),v>jr&&(document.scrollingElement.scrollTop-=Math.ceil((v-jr)/8))}))}function Ss(u){const P=document.body,t=window.visualViewport!==void 0;if(u==="add"){const{overflowY:v,overflowX:b}=window.getComputedStyle(P);Ln=wi(window),zn=yi(window),ys=P.style.left,ws=P.style.top,_s=window.location.href,P.style.left=`-${Ln}px`,P.style.top=`-${zn}px`,b!=="hidden"&&(b==="scroll"||P.scrollWidth>window.innerWidth)&&P.classList.add("q-body--force-scrollbar-x"),v!=="hidden"&&(v==="scroll"||P.scrollHeight>window.innerHeight)&&P.classList.add("q-body--force-scrollbar-y"),P.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,Et.is.ios===!0&&(t===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",Qr,St.passiveCapture),window.visualViewport.addEventListener("scroll",Qr,St.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",xs,St.passiveCapture))}Et.is.desktop===!0&&Et.is.mac===!0&&window[`${u}EventListener`]("wheel",Rl,St.notPassive),u==="remove"&&(Et.is.ios===!0&&(t===!0?(window.visualViewport.removeEventListener("resize",Qr,St.passiveCapture),window.visualViewport.removeEventListener("scroll",Qr,St.passiveCapture)):window.removeEventListener("scroll",xs,St.passiveCapture)),P.classList.remove("q-body--prevent-scroll"),P.classList.remove("q-body--force-scrollbar-x"),P.classList.remove("q-body--force-scrollbar-y"),document.qScrollPrevented=!1,P.style.left=ys,P.style.top=ws,window.location.href===_s&&window.scrollTo(Ln,zn),jr=void 0)}function jl(u){let P="add";if(u===!0){if(Ar++,ir!==null){clearTimeout(ir),ir=null;return}if(Ar>1)return}else{if(Ar===0||(Ar--,Ar>0))return;if(P="remove",Et.is.ios===!0&&Et.is.nativeMobile===!0){ir!==null&&clearTimeout(ir),ir=setTimeout(()=>{Ss(P),ir=null},100);return}}Ss(P)}function Il(){let u;return{preventBodyScroll(P){P!==u&&(u!==void 0||P===!0)&&(u=P,jl(P))}}}let Jr=0;const Pl={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"},ks={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},So=it({name:"QDialog",inheritAttrs:!1,props:{...ki,...Pr,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:u=>["standard","top","bottom","left","right"].includes(u)}},emits:[...Ci,"shake","click","escapeKey"],setup(u,{slots:P,emit:t,attrs:v}){const b=C.getCurrentInstance(),f=C.ref(null),o=C.ref(!1),a=C.ref(!1);let n=null,e=null,r,l;const s=C.computed(()=>u.persistent!==!0&&u.noRouteDismiss!==!0&&u.seamless!==!0),{preventBodyScroll:i}=Il(),{registerTimeout:d}=Ri(),{registerTick:h,removeTick:c}=Ai(),{transitionProps:m,transitionStyle:p}=Ti(u,()=>ks[u.position][0],()=>ks[u.position][1]),x=C.computed(()=>p.value+(u.backdropFilter!==void 0?`;backdrop-filter:${u.backdropFilter};-webkit-backdrop-filter:${u.backdropFilter}`:"")),{showPortal:k,hidePortal:A,portalIsAccessible:N,renderPortal:q}=Ei(b,f,H,"dialog"),{hide:D}=Mi({showing:o,hideOnRouteChange:s,handleShow:M,handleHide:T,processOnMount:!0});Al(o);const F=C.computed(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${u.maximized===!0?"maximized":"minimized"} q-dialog__inner--${u.position} ${Pl[u.position]}`+(a.value===!0?" q-dialog__inner--animating":"")+(u.fullWidth===!0?" q-dialog__inner--fullwidth":"")+(u.fullHeight===!0?" q-dialog__inner--fullheight":"")+(u.square===!0?" q-dialog__inner--square":"")),L=C.computed(()=>o.value===!0&&u.seamless!==!0),V=C.computed(()=>u.autoClose===!0?{onClick:E}:{}),z=C.computed(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${L.value===!0?"modal":"seamless"}`,v.class]);C.watch(()=>u.maximized,U=>{o.value===!0&&_(U)}),C.watch(L,U=>{i(U),U===!0?(vo(j),bo(y)):(ri(j),pn(y))});function M(U){e=u.noRefocus===!1&&document.activeElement!==null?document.activeElement:null,_(u.maximized),k(),a.value=!0,u.noFocus!==!0?(document.activeElement?.blur(),h(S)):c(),d(()=>{if(b.proxy.$q.platform.is.ios===!0){if(u.seamless!==!0&&document.activeElement){const{top:X,bottom:B}=document.activeElement.getBoundingClientRect(),{innerHeight:W}=window,I=window.visualViewport!==void 0?window.visualViewport.height:W;X>0&&B>I/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-I,B>=W?1/0:Math.ceil(document.scrollingElement.scrollTop+B-I/2))),document.activeElement.scrollIntoView()}l=!0,f.value.click(),l=!1}k(!0),a.value=!1,t("show",U)},u.transitionDuration)}function T(U){c(),w(!0),a.value=!0,A(),e!==null&&(((U?.type.indexOf("key")===0?e.closest('[tabindex]:not([tabindex^="-"])'):void 0)||e).focus(),e=null),d(()=>{A(!0),a.value=!1,t("hide",U)},u.transitionDuration)}function S(U){Lr(()=>{let X=f.value;if(X!==null){if(U!==void 0){const B=X.querySelector(U);if(B!==null){B.focus({preventScroll:!0});return}}X.contains(document.activeElement)!==!0&&(X=X.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||X.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||X.querySelector("[autofocus], [data-autofocus]")||X,X.focus({preventScroll:!0}))}})}function g(U){U&&typeof U.focus=="function"?U.focus({preventScroll:!0}):S(),t("shake");const X=f.value;X!==null&&(X.classList.remove("q-animate--scale"),X.classList.add("q-animate--scale"),n!==null&&clearTimeout(n),n=setTimeout(()=>{n=null,f.value!==null&&(X.classList.remove("q-animate--scale"),S())},170))}function y(){u.seamless!==!0&&(u.persistent===!0||u.noEscDismiss===!0?u.maximized!==!0&&u.noShake!==!0&&g():(t("escapeKey"),D()))}function w(U){n!==null&&(clearTimeout(n),n=null),(U===!0||o.value===!0)&&(_(!1),u.seamless!==!0&&(i(!1),ri(j),pn(y))),U!==!0&&(e=null)}function _(U){U===!0?r!==!0&&(Jr<1&&document.body.classList.add("q-body--dialog"),Jr++,r=!0):r===!0&&(Jr<2&&document.body.classList.remove("q-body--dialog"),Jr--,r=!1)}function E(U){l!==!0&&(D(U),t("click",U))}function O(U){u.persistent!==!0&&u.noBackdropDismiss!==!0?D(U):u.noShake!==!0&&g()}function j(U){u.allowFocusOutside!==!0&&N.value===!0&&eo(f.value,U.target)!==!0&&S('[tabindex]:not([tabindex="-1"])')}Object.assign(b.proxy,{focus:S,shake:g,__updateRefocusTarget(U){e=U||null}}),C.onBeforeUnmount(w);function H(){return C.h("div",{role:"dialog","aria-modal":L.value===!0?"true":"false",...v,class:z.value},[C.h(C.Transition,{name:"q-transition--fade",appear:!0},()=>L.value===!0?C.h("div",{class:"q-dialog__backdrop fixed-full",style:x.value,"aria-hidden":"true",tabindex:-1,onClick:O}):null),C.h(C.Transition,m.value,()=>o.value===!0?C.h("div",{ref:f,class:F.value,style:p.value,tabindex:-1,...V.value},vt(P.default)):null)])}return q}});let wn=!1;{const u=document.createElement("div");u.setAttribute("dir","rtl"),Object.assign(u.style,{width:"1px",height:"1px",overflow:"auto"});const P=document.createElement("div");Object.assign(P.style,{width:"1000px",height:"1px"}),document.body.appendChild(u),u.appendChild(P),u.scrollLeft=-1e3,wn=u.scrollLeft>=0,u.remove()}const qt=1e3,Nl=["start","center","end","start-force","center-force","end-force"],ko=Array.prototype.filter,Bl=window.getComputedStyle(document.body).overflowAnchor===void 0?Sn:function(u,P){u!==null&&(u._qOverflowAnimationFrame!==void 0&&cancelAnimationFrame(u._qOverflowAnimationFrame),u._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(u===null)return;u._qOverflowAnimationFrame=void 0;const t=u.children||[];ko.call(t,b=>b.dataset&&b.dataset.qVsAnchor!==void 0).forEach(b=>{delete b.dataset.qVsAnchor});const v=t[P];v?.dataset&&(v.dataset.qVsAnchor="")}))};function xr(u,P){return u+P}function $n(u,P,t,v,b,f,o,a){const n=u===window?document.scrollingElement||document.documentElement:u,e=b===!0?"offsetWidth":"offsetHeight",r={scrollStart:0,scrollViewSize:-o-a,scrollMaxSize:0,offsetStart:-o,offsetEnd:-a};if(b===!0?(u===window?(r.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,r.scrollViewSize+=document.documentElement.clientWidth):(r.scrollStart=n.scrollLeft,r.scrollViewSize+=n.clientWidth),r.scrollMaxSize=n.scrollWidth,f===!0&&(r.scrollStart=(wn===!0?r.scrollMaxSize-r.scrollViewSize:0)-r.scrollStart)):(u===window?(r.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,r.scrollViewSize+=document.documentElement.clientHeight):(r.scrollStart=n.scrollTop,r.scrollViewSize+=n.clientHeight),r.scrollMaxSize=n.scrollHeight),t!==null)for(let l=t.previousElementSibling;l!==null;l=l.previousElementSibling)l.classList.contains("q-virtual-scroll--skip")===!1&&(r.offsetStart+=l[e]);if(v!==null)for(let l=v.nextElementSibling;l!==null;l=l.nextElementSibling)l.classList.contains("q-virtual-scroll--skip")===!1&&(r.offsetEnd+=l[e]);if(P!==u){const l=n.getBoundingClientRect(),s=P.getBoundingClientRect();b===!0?(r.offsetStart+=s.left-l.left,r.offsetEnd-=s.width):(r.offsetStart+=s.top-l.top,r.offsetEnd-=s.height),u!==window&&(r.offsetStart+=r.scrollStart),r.offsetEnd+=r.scrollMaxSize-r.offsetStart}return r}function Cs(u,P,t,v){P==="end"&&(P=(u===window?document.body:u)[t===!0?"scrollWidth":"scrollHeight"]),u===window?t===!0?(v===!0&&(P=(wn===!0?document.body.scrollWidth-document.documentElement.clientWidth:0)-P),window.scrollTo(P,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,P):t===!0?(v===!0&&(P=(wn===!0?u.scrollWidth-u.offsetWidth:0)-P),u.scrollLeft=P):u.scrollTop=P}function Rr(u,P,t,v){if(t>=v)return 0;const b=P.length,f=Math.floor(t/qt),o=Math.floor((v-1)/qt)+1;let a=u.slice(f,o).reduce(xr,0);return t%qt!==0&&(a-=P.slice(f*qt,t).reduce(xr,0)),v%qt!==0&&v!==b&&(a-=P.slice(v,o*qt).reduce(xr,0)),a}const Co={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]},Mo=Object.keys(Co),ai={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,...Co};function Eo({virtualScrollLength:u,getVirtualScrollTarget:P,getVirtualScrollEl:t,virtualScrollItemSizeComputed:v}){const b=C.getCurrentInstance(),{props:f,emit:o,proxy:a}=b,{$q:n}=a;let e,r,l,s=[],i;const d=C.ref(0),h=C.ref(0),c=C.ref({}),m=C.ref(null),p=C.ref(null),x=C.ref(null),k=C.ref({from:0,to:0}),A=C.computed(()=>f.tableColspan!==void 0?f.tableColspan:100);v===void 0&&(v=C.computed(()=>f.virtualScrollItemSize));const N=C.computed(()=>v.value+";"+f.virtualScrollHorizontal),q=C.computed(()=>N.value+";"+f.virtualScrollSliceRatioBefore+";"+f.virtualScrollSliceRatioAfter);C.watch(q,()=>{g()}),C.watch(N,D);function D(){S(r,!0)}function F(O){S(O===void 0?r:O)}function L(O,j){const H=P();if(H==null||H.nodeType===8)return;const U=$n(H,t(),m.value,p.value,f.virtualScrollHorizontal,n.lang.rtl,f.virtualScrollStickySizeStart,f.virtualScrollStickySizeEnd);l!==U.scrollViewSize&&g(U.scrollViewSize),z(H,U,Math.min(u.value-1,Math.max(0,parseInt(O,10)||0)),0,Nl.indexOf(j)!==-1?j:r!==-1&&O>r?"end":"start")}function V(){const O=P();if(O==null||O.nodeType===8)return;const j=$n(O,t(),m.value,p.value,f.virtualScrollHorizontal,n.lang.rtl,f.virtualScrollStickySizeStart,f.virtualScrollStickySizeEnd),H=u.value-1,U=j.scrollMaxSize-j.offsetStart-j.offsetEnd-h.value;if(e===j.scrollStart)return;if(j.scrollMaxSize<=0){z(O,j,0,0);return}l!==j.scrollViewSize&&g(j.scrollViewSize),M(k.value.from);const X=Math.floor(j.scrollMaxSize-Math.max(j.scrollViewSize,j.offsetEnd)-Math.min(i[H],j.scrollViewSize/2));if(X>0&&Math.ceil(j.scrollStart)>=X){z(O,j,H,j.scrollMaxSize-j.offsetEnd-s.reduce(xr,0));return}let B=0,W=j.scrollStart-j.offsetStart,I=W;if(W<=U&&W+j.scrollViewSize>=d.value)W-=d.value,B=k.value.from,I=W;else for(let R=0;W>=s[R]&&B<H;R++)W-=s[R],B+=qt;for(;W>0&&B<H;)W-=i[B],W>-j.scrollViewSize?(B++,I=W):I=i[B]+W;z(O,j,B,I)}function z(O,j,H,U,X){const B=typeof X=="string"&&X.indexOf("-force")!==-1,W=B===!0?X.replace("-force",""):X,I=W!==void 0?W:"start";let R=Math.max(0,H-c.value[I]),$=R+c.value.total;$>u.value&&($=u.value,R=Math.max(0,$-c.value.total)),e=j.scrollStart;const Y=R!==k.value.from||$!==k.value.to;if(Y===!1&&W===void 0){w(H);return}const{activeElement:J}=document,Z=x.value;Y===!0&&Z!==null&&Z!==J&&Z.contains(J)===!0&&(Z.addEventListener("focusout",T),setTimeout(()=>{Z?.removeEventListener("focusout",T)})),Bl(Z,H-R);const ee=W!==void 0?i.slice(R,H).reduce(xr,0):0;if(Y===!0){const ae=$>=k.value.from&&R<=k.value.to?k.value.to:$;k.value={from:R,to:ae},d.value=Rr(s,i,0,R),h.value=Rr(s,i,$,u.value),requestAnimationFrame(()=>{k.value.to!==$&&e===j.scrollStart&&(k.value={from:k.value.from,to:$},h.value=Rr(s,i,$,u.value))})}requestAnimationFrame(()=>{if(e!==j.scrollStart)return;Y===!0&&M(R);const ae=i.slice(R,H).reduce(xr,0),se=ae+j.offsetStart+d.value,G=se+i[H];let ne=se+U;if(W!==void 0){const ie=ae-ee,fe=j.scrollStart+ie;ne=B!==!0&&fe<se&&G<fe+j.scrollViewSize?fe:W==="end"?G-j.scrollViewSize:se-(W==="start"?0:Math.round((j.scrollViewSize-i[H])/2))}e=ne,Cs(O,ne,f.virtualScrollHorizontal,n.lang.rtl),w(H)})}function M(O){const j=x.value;if(j){const H=ko.call(j.children,R=>R.classList&&R.classList.contains("q-virtual-scroll--skip")===!1),U=H.length,X=f.virtualScrollHorizontal===!0?R=>R.getBoundingClientRect().width:R=>R.offsetHeight;let B=O,W,I;for(let R=0;R<U;){for(W=X(H[R]),R++;R<U&&H[R].classList.contains("q-virtual-scroll--with-prev")===!0;)W+=X(H[R]),R++;I=W-i[B],I!==0&&(i[B]+=I,s[Math.floor(B/qt)]+=I),B++}}}function T(){x.value?.focus()}function S(O,j){const H=1*v.value;(j===!0||Array.isArray(i)===!1)&&(i=[]);const U=i.length;i.length=u.value;for(let B=u.value-1;B>=U;B--)i[B]=H;const X=Math.floor((u.value-1)/qt);s=[];for(let B=0;B<=X;B++){let W=0;const I=Math.min((B+1)*qt,u.value);for(let R=B*qt;R<I;R++)W+=i[R];s.push(W)}r=-1,e=void 0,d.value=Rr(s,i,0,k.value.from),h.value=Rr(s,i,k.value.to,u.value),O>=0?(M(k.value.from),C.nextTick(()=>{L(O)})):_()}function g(O){if(O===void 0&&typeof window<"u"){const W=P();W!=null&&W.nodeType!==8&&(O=$n(W,t(),m.value,p.value,f.virtualScrollHorizontal,n.lang.rtl,f.virtualScrollStickySizeStart,f.virtualScrollStickySizeEnd).scrollViewSize)}l=O;const j=parseFloat(f.virtualScrollSliceRatioBefore)||0,H=parseFloat(f.virtualScrollSliceRatioAfter)||0,U=1+j+H,X=O===void 0||O<=0?1:Math.ceil(O/v.value),B=Math.max(1,X,Math.ceil((f.virtualScrollSliceSize>0?f.virtualScrollSliceSize:10)/U));c.value={total:Math.ceil(B*U),start:Math.ceil(B*j),center:Math.ceil(B*(.5+j)),end:Math.ceil(B*(1+j)),view:X}}function y(O,j){const H=f.virtualScrollHorizontal===!0?"width":"height",U={["--q-virtual-scroll-item-"+H]:v.value+"px"};return[O==="tbody"?C.h(O,{class:"q-virtual-scroll__padding",key:"before",ref:m},[C.h("tr",[C.h("td",{style:{[H]:`${d.value}px`,...U},colspan:A.value})])]):C.h(O,{class:"q-virtual-scroll__padding",key:"before",ref:m,style:{[H]:`${d.value}px`,...U}}),C.h(O,{class:"q-virtual-scroll__content",key:"content",ref:x,tabindex:-1},j.flat()),O==="tbody"?C.h(O,{class:"q-virtual-scroll__padding",key:"after",ref:p},[C.h("tr",[C.h("td",{style:{[H]:`${h.value}px`,...U},colspan:A.value})])]):C.h(O,{class:"q-virtual-scroll__padding",key:"after",ref:p,style:{[H]:`${h.value}px`,...U}})]}function w(O){r!==O&&(f.onVirtualScroll!==void 0&&o("virtualScroll",{index:O,from:k.value.from,to:k.value.to-1,direction:O<r?"decrease":"increase",ref:a}),r=O)}g();const _=xi(V,n.platform.is.ios===!0?120:35);C.onBeforeMount(()=>{g()});let E=!1;return C.onDeactivated(()=>{E=!0}),C.onActivated(()=>{if(E!==!0)return;const O=P();e!==void 0&&O!==void 0&&O!==null&&O.nodeType!==8?Cs(O,e,f.virtualScrollHorizontal,n.lang.rtl):L(r)}),C.onBeforeUnmount(()=>{_.cancel()}),Object.assign(a,{scrollTo:L,reset:D,refresh:F}),{virtualScrollSliceRange:k,virtualScrollSliceSizeComputed:c,setVirtualScrollSize:g,onVirtualScrollEvt:_,localResetVirtualScroll:S,padVirtualScroll:y,scrollTo:L,reset:D,refresh:F}}const Dl=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,Fl=/[\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,Ll=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,zl=/[a-z0-9_ -]$/i;function To(u){return function(t){if(t.type==="compositionend"||t.type==="change"){if(t.target.qComposing!==!0)return;t.target.qComposing=!1,u(t)}else t.type==="compositionupdate"&&t.target.qComposing!==!0&&typeof t.data=="string"&&(Et.is.firefox===!0?zl.test(t.data)===!1:Dl.test(t.data)===!0||Fl.test(t.data)===!0||Ll.test(t.data)===!0)===!0&&(t.target.qComposing=!0)}}function Qt(u,P){if(u===P)return!0;if(u!==null&&P!==null&&typeof u=="object"&&typeof P=="object"){if(u.constructor!==P.constructor)return!1;let t,v;if(u.constructor===Array){if(t=u.length,t!==P.length)return!1;for(v=t;v--!==0;)if(Qt(u[v],P[v])!==!0)return!1;return!0}if(u.constructor===Map){if(u.size!==P.size)return!1;let f=u.entries();for(v=f.next();v.done!==!0;){if(P.has(v.value[0])!==!0)return!1;v=f.next()}for(f=u.entries(),v=f.next();v.done!==!0;){if(Qt(v.value[1],P.get(v.value[0]))!==!0)return!1;v=f.next()}return!0}if(u.constructor===Set){if(u.size!==P.size)return!1;const f=u.entries();for(v=f.next();v.done!==!0;){if(P.has(v.value[0])!==!0)return!1;v=f.next()}return!0}if(u.buffer!=null&&u.buffer.constructor===ArrayBuffer){if(t=u.length,t!==P.length)return!1;for(v=t;v--!==0;)if(u[v]!==P[v])return!1;return!0}if(u.constructor===RegExp)return u.source===P.source&&u.flags===P.flags;if(u.valueOf!==Object.prototype.valueOf)return u.valueOf()===P.valueOf();if(u.toString!==Object.prototype.toString)return u.toString()===P.toString();const b=Object.keys(u).filter(f=>u[f]!==void 0);if(t=b.length,t!==Object.keys(P).filter(f=>P[f]!==void 0).length)return!1;for(v=t;v--!==0;){const f=b[v];if(Qt(u[f],P[f])!==!0)return!1}return!0}return u!==u&&P!==P}function Ao(u){return u!==null&&typeof u=="object"&&Array.isArray(u)!==!0}function _n(u){return Object.prototype.toString.call(u)==="[object Date]"}function li(u){return typeof u=="number"&&isFinite(u)}const Ms=u=>["add","add-unique","toggle"].includes(u),ql=".*+?^${}()|[]\\",$l=Object.keys(Tn);function Vn(u,P){if(typeof u=="function")return u;const t=u!==void 0?u:P;return v=>v!==null&&typeof v=="object"&&t in v?v[t]:v}const Ni=it({name:"QSelect",inheritAttrs:!1,props:{...ai,...kn,...Tn,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:Ms},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:u=>["default","menu","dialog"].includes(u),default:"default"},virtualScrollItemSize:ai.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...ji,"add","remove","inputValue","keyup","keypress","keydown","popupShow","popupHide","filterAbort"],setup(u,{slots:P,emit:t}){const{proxy:v}=C.getCurrentInstance(),{$q:b}=v,f=C.ref(!1),o=C.ref(!1),a=C.ref(-1),n=C.ref(""),e=C.ref(!1),r=C.ref(!1);let l=null,s=null,i,d,h,c=null,m,p,x,k;const A=C.ref(null),N=C.ref(null),q=C.ref(null),D=C.ref(null),F=C.ref(null),L=no(u),V=To(he),z=C.computed(()=>Array.isArray(u.options)?u.options.length:0),M=C.computed(()=>u.virtualScrollItemSize===void 0?u.optionsDense===!0?24:48:u.virtualScrollItemSize),{virtualScrollSliceRange:T,virtualScrollSliceSizeComputed:S,localResetVirtualScroll:g,padVirtualScroll:y,onVirtualScrollEvt:w,scrollTo:_,setVirtualScrollSize:E}=Eo({virtualScrollLength:z,getVirtualScrollTarget:rt,getVirtualScrollEl:Ue,virtualScrollItemSizeComputed:M}),O=Ii(),j=C.computed(()=>{const oe=u.mapOptions===!0&&u.multiple!==!0,Ne=u.modelValue!==void 0&&(u.modelValue!==null||oe===!0)?u.multiple===!0&&Array.isArray(u.modelValue)?u.modelValue:[u.modelValue]:[];if(u.mapOptions===!0&&Array.isArray(u.options)===!0){const Q=u.mapOptions===!0&&i!==void 0?i:[],ue=Ne.map(ve=>Pe(ve,Q));return u.modelValue===null&&oe===!0?ue.filter(ve=>ve!==null):ue}return Ne}),H=C.computed(()=>{const oe={};return $l.forEach(Ne=>{const Q=u[Ne];Q!==void 0&&(oe[Ne]=Q)}),oe}),U=C.computed(()=>u.optionsDark===null?O.isDark.value:u.optionsDark),X=C.computed(()=>Dr(j.value)),B=C.computed(()=>{let oe="q-field__input q-placeholder col";return u.hideSelected===!0||j.value.length===0?[oe,u.inputClass]:(oe+=" q-field__input--padding",u.inputClass===void 0?oe:[oe,u.inputClass])}),W=C.computed(()=>(u.virtualScrollHorizontal===!0?"q-virtual-scroll--horizontal":"")+(u.popupContentClass?" "+u.popupContentClass:"")),I=C.computed(()=>z.value===0),R=C.computed(()=>j.value.map(oe=>de.value(oe)).join(", ")),$=C.computed(()=>u.displayValue!==void 0?u.displayValue:R.value),Y=C.computed(()=>u.optionsHtml===!0?()=>!0:oe=>oe?.html===!0),J=C.computed(()=>u.displayValueHtml===!0||u.displayValue===void 0&&(u.optionsHtml===!0||j.value.some(Y.value))),Z=C.computed(()=>O.focused.value===!0?u.tabindex:-1),ee=C.computed(()=>{const oe={tabindex:u.tabindex,role:"combobox","aria-label":u.label,"aria-readonly":u.readonly===!0?"true":"false","aria-autocomplete":u.useInput===!0?"list":"none","aria-expanded":f.value===!0?"true":"false","aria-controls":`${O.targetUid.value}_lb`};return a.value>=0&&(oe["aria-activedescendant"]=`${O.targetUid.value}_${a.value}`),oe}),ae=C.computed(()=>({id:`${O.targetUid.value}_lb`,role:"listbox","aria-multiselectable":u.multiple===!0?"true":"false"})),se=C.computed(()=>j.value.map((oe,Ne)=>({index:Ne,opt:oe,html:Y.value(oe),selected:!0,removeAtIndex:Te,toggleOption:ze,tabindex:Z.value}))),G=C.computed(()=>{if(z.value===0)return[];const{from:oe,to:Ne}=T.value;return u.options.slice(oe,Ne).map((Q,ue)=>{const ve=me.value(Q)===!0,ye=Se(Q)===!0,De=oe+ue,xe={clickable:!0,active:ye,activeClass:fe.value,manualFocus:!0,focused:!1,disable:ve,tabindex:-1,dense:u.optionsDense,dark:U.value,role:"option","aria-selected":ye===!0?"true":"false",id:`${O.targetUid.value}_${De}`,onClick:()=>{ze(Q)}};return ve!==!0&&(a.value===De&&(xe.focused=!0),b.platform.is.desktop===!0&&(xe.onMousemove=()=>{f.value===!0&&Fe(De)})),{index:De,opt:Q,html:Y.value(Q),label:de.value(Q),selected:xe.active,focused:xe.focused,toggleOption:ze,setOptionIndex:Fe,itemProps:xe}})}),ne=C.computed(()=>u.dropdownIcon!==void 0?u.dropdownIcon:b.iconSet.arrow.dropdown),ie=C.computed(()=>u.optionsCover===!1&&u.outlined!==!0&&u.standout!==!0&&u.borderless!==!0&&u.rounded!==!0),fe=C.computed(()=>u.optionsSelectedClass!==void 0?u.optionsSelectedClass:u.color!==void 0?`text-${u.color}`:""),ce=C.computed(()=>Vn(u.optionValue,"value")),de=C.computed(()=>Vn(u.optionLabel,"label")),me=C.computed(()=>Vn(u.optionDisable,"disable")),ge=C.computed(()=>j.value.map(ce.value)),_e=C.computed(()=>{const oe={onInput:he,onChange:V,onKeydown:Je,onKeyup:Le,onKeypress:Ze,onFocus:Be,onClick(Ne){d===!0&&It(Ne)}};return oe.onCompositionstart=oe.onCompositionupdate=oe.onCompositionend=V,oe});C.watch(j,oe=>{i=oe,u.useInput===!0&&u.fillInput===!0&&u.multiple!==!0&&O.innerLoading.value!==!0&&(o.value!==!0&&f.value!==!0||X.value!==!0)&&(h!==!0&&$e(),(o.value===!0||f.value===!0)&&Ie(""))},{immediate:!0}),C.watch(()=>u.fillInput,$e),C.watch(f,Ge),C.watch(z,Qe);function je(oe){return u.emitValue===!0?ce.value(oe):oe}function Ee(oe){if(oe!==-1&&oe<j.value.length)if(u.multiple===!0){const Ne=u.modelValue.slice();t("remove",{index:oe,value:Ne.splice(oe,1)[0]}),t("update:modelValue",Ne)}else t("update:modelValue",null)}function Te(oe){Ee(oe),O.focus()}function He(oe,Ne){const Q=je(oe);if(u.multiple!==!0){u.fillInput===!0&&Ae(de.value(oe),!0,!0),t("update:modelValue",Q);return}if(j.value.length===0){t("add",{index:0,value:Q}),t("update:modelValue",u.multiple===!0?[Q]:Q);return}if(Ne===!0&&Se(oe)===!0||u.maxValues!==void 0&&u.modelValue.length>=u.maxValues)return;const ue=u.modelValue.slice();t("add",{index:ue.length,value:Q}),ue.push(Q),t("update:modelValue",ue)}function ze(oe,Ne){if(O.editable.value!==!0||oe===void 0||me.value(oe)===!0)return;const Q=ce.value(oe);if(u.multiple!==!0){Ne!==!0&&(Ae(u.fillInput===!0?de.value(oe):"",!0,!0),Re()),N.value?.focus(),(j.value.length===0||Qt(ce.value(j.value[0]),Q)!==!0)&&t("update:modelValue",u.emitValue===!0?Q:oe);return}if((d!==!0||e.value===!0)&&O.focus(),Be(),j.value.length===0){const ye=u.emitValue===!0?Q:oe;t("add",{index:0,value:ye}),t("update:modelValue",u.multiple===!0?[ye]:ye);return}const ue=u.modelValue.slice(),ve=ge.value.findIndex(ye=>Qt(ye,Q));if(ve!==-1)t("remove",{index:ve,value:ue.splice(ve,1)[0]});else{if(u.maxValues!==void 0&&ue.length>=u.maxValues)return;const ye=u.emitValue===!0?Q:oe;t("add",{index:ue.length,value:ye}),ue.push(ye)}t("update:modelValue",ue)}function Fe(oe){if(b.platform.is.desktop!==!0)return;const Ne=oe!==-1&&oe<z.value?oe:-1;a.value!==Ne&&(a.value=Ne)}function qe(oe=1,Ne){if(f.value===!0){let Q=a.value;do Q=is(Q+oe,-1,z.value-1);while(Q!==-1&&Q!==a.value&&me.value(u.options[Q])===!0);a.value!==Q&&(Fe(Q),_(Q),Ne!==!0&&u.useInput===!0&&u.fillInput===!0&&we(Q>=0?de.value(u.options[Q]):m,!0))}}function Pe(oe,Ne){const Q=ue=>Qt(ce.value(ue),oe);return u.options.find(Q)||Ne.find(Q)||oe}function Se(oe){const Ne=ce.value(oe);return ge.value.find(Q=>Qt(Q,Ne))!==void 0}function Be(oe){u.useInput===!0&&N.value!==null&&(oe===void 0||N.value===oe.target&&oe.target.value===R.value)&&N.value.select()}function Ve(oe){er(oe,27)===!0&&f.value===!0&&(It(oe),Re(),$e()),t("keyup",oe)}function Le(oe){const{value:Ne}=oe.target;if(oe.keyCode!==void 0){Ve(oe);return}if(oe.target.value="",l!==null&&(clearTimeout(l),l=null),s!==null&&(clearTimeout(s),s=null),$e(),typeof Ne=="string"&&Ne.length!==0){const Q=Ne.toLocaleLowerCase(),ue=ye=>{const De=u.options.find(xe=>String(ye.value(xe)).toLocaleLowerCase()===Q);return De===void 0?!1:(j.value.indexOf(De)===-1?ze(De):Re(),!0)},ve=ye=>{ue(ce)!==!0&&ye!==!0&&ue(de)!==!0&&Ie(Ne,!0,()=>ve(!0))};ve()}else O.clearValue(oe)}function Ze(oe){t("keypress",oe)}function Je(oe){if(t("keydown",oe),gi(oe)===!0)return;const Ne=n.value.length!==0&&(u.newValueMode!==void 0||u.onNewValue!==void 0),Q=oe.shiftKey!==!0&&u.disableTabSelection!==!0&&u.multiple!==!0&&(a.value!==-1||Ne===!0);if(oe.keyCode===27){Ot(oe);return}if(oe.keyCode===9&&Q===!1){be();return}if(oe.target===void 0||oe.target.id!==O.targetUid.value||O.editable.value!==!0)return;if(oe.keyCode===40&&O.innerLoading.value!==!0&&f.value===!1){_t(oe),ke();return}if(oe.keyCode===8&&(u.useChips===!0||u.clearable===!0)&&u.hideSelected!==!0&&n.value.length===0){u.multiple===!0&&Array.isArray(u.modelValue)===!0?Ee(u.modelValue.length-1):u.multiple!==!0&&u.modelValue!==null&&t("update:modelValue",null);return}(oe.keyCode===35||oe.keyCode===36)&&(typeof n.value!="string"||n.value.length===0)&&(_t(oe),a.value=-1,qe(oe.keyCode===36?1:-1,u.multiple)),(oe.keyCode===33||oe.keyCode===34)&&S.value!==void 0&&(_t(oe),a.value=Math.max(-1,Math.min(z.value,a.value+(oe.keyCode===33?-1:1)*S.value.view)),qe(oe.keyCode===33?1:-1,u.multiple)),(oe.keyCode===38||oe.keyCode===40)&&(_t(oe),qe(oe.keyCode===38?-1:1,u.multiple));const ue=z.value;if((x===void 0||k<Date.now())&&(x=""),ue>0&&u.useInput!==!0&&oe.key!==void 0&&oe.key.length===1&&oe.altKey===!1&&oe.ctrlKey===!1&&oe.metaKey===!1&&(oe.keyCode!==32||x.length!==0)){f.value!==!0&&ke(oe);const ve=oe.key.toLocaleLowerCase(),ye=x.length===1&&x[0]===ve;k=Date.now()+1500,ye===!1&&(_t(oe),x+=ve);const De=new RegExp("^"+x.split("").map(Oe=>ql.indexOf(Oe)!==-1?"\\"+Oe:Oe).join(".*"),"i");let xe=a.value;if(ye===!0||xe<0||De.test(de.value(u.options[xe]))!==!0)do xe=is(xe+1,-1,ue-1);while(xe!==a.value&&(me.value(u.options[xe])===!0||De.test(de.value(u.options[xe]))!==!0));a.value!==xe&&C.nextTick(()=>{Fe(xe),_(xe),xe>=0&&u.useInput===!0&&u.fillInput===!0&&we(de.value(u.options[xe]),!0)});return}if(!(oe.keyCode!==13&&(oe.keyCode!==32||u.useInput===!0||x!=="")&&(oe.keyCode!==9||Q===!1))){if(oe.keyCode!==9&&_t(oe),a.value!==-1&&a.value<ue){ze(u.options[a.value]);return}if(Ne===!0){const ve=(ye,De)=>{if(De){if(Ms(De)!==!0)return}else De=u.newValueMode;if(Ae("",u.multiple!==!0,!0),ye==null)return;(De==="toggle"?ze:He)(ye,De==="add-unique"),u.multiple!==!0&&(N.value?.focus(),Re())};if(u.onNewValue!==void 0?t("newValue",n.value,ve):ve(n.value),u.multiple!==!0)return}f.value===!0?be():O.innerLoading.value!==!0&&ke()}}function Ue(){return d===!0?F.value:q.value!==null&&q.value.contentEl!==null?q.value.contentEl:void 0}function rt(){return Ue()}function et(){return u.hideSelected===!0?[]:P["selected-item"]!==void 0?se.value.map(oe=>P["selected-item"](oe)).slice():P.selected!==void 0?[].concat(P.selected()):u.useChips===!0?se.value.map((oe,Ne)=>C.h(El,{key:"option-"+Ne,removable:O.editable.value===!0&&me.value(oe.opt)!==!0,dense:!0,textColor:u.color,tabindex:Z.value,onRemove(){oe.removeAtIndex(Ne)}},()=>C.h("span",{class:"ellipsis",[oe.html===!0?"innerHTML":"textContent"]:de.value(oe.opt)}))):[C.h("span",{class:"ellipsis",[J.value===!0?"innerHTML":"textContent"]:$.value})]}function We(){if(I.value===!0)return P["no-option"]!==void 0?P["no-option"]({inputValue:n.value}):void 0;const oe=P.option!==void 0?P.option:Q=>C.h(si,{key:Q.index,...Q.itemProps},()=>C.h(oi,()=>C.h(Tl,()=>C.h("span",{[Q.html===!0?"innerHTML":"textContent"]:Q.label}))));let Ne=y("div",G.value.map(oe));return P["before-options"]!==void 0&&(Ne=P["before-options"]().concat(Ne)),Nt(P["after-options"],Ne)}function ot(oe,Ne){const Q=Ne===!0?{...ee.value,...O.splitAttrs.attributes.value}:void 0,ue={ref:Ne===!0?N:void 0,key:"i_t",class:B.value,style:u.inputStyle,value:n.value!==void 0?n.value:"",type:"search",...Q,id:Ne===!0?O.targetUid.value:void 0,maxlength:u.maxlength,autocomplete:u.autocomplete,"data-autofocus":oe===!0||u.autofocus===!0||void 0,disabled:u.disable===!0,readonly:u.readonly===!0,..._e.value};return oe!==!0&&d===!0&&(Array.isArray(ue.class)===!0?ue.class=[...ue.class,"no-pointer-events"]:ue.class+=" no-pointer-events"),C.h("input",ue)}function he(oe){l!==null&&(clearTimeout(l),l=null),s!==null&&(clearTimeout(s),s=null),!(oe&&oe.target&&oe.target.qComposing===!0)&&(we(oe.target.value||""),h=!0,m=n.value,O.focused.value!==!0&&(d!==!0||e.value===!0)&&O.focus(),u.onFilter!==void 0&&(l=setTimeout(()=>{l=null,Ie(n.value)},u.inputDebounce)))}function we(oe,Ne){n.value!==oe&&(n.value=oe,Ne===!0||u.inputDebounce===0||u.inputDebounce==="0"?t("inputValue",oe):s=setTimeout(()=>{s=null,t("inputValue",oe)},u.inputDebounce))}function Ae(oe,Ne,Q){h=Q!==!0,u.useInput===!0&&(we(oe,!0),(Ne===!0||Q!==!0)&&(m=oe),Ne!==!0&&Ie(oe))}function Ie(oe,Ne,Q){if(u.onFilter===void 0||Ne!==!0&&O.focused.value!==!0)return;O.innerLoading.value===!0?t("filterAbort"):(O.innerLoading.value=!0,r.value=!0),oe!==""&&u.multiple!==!0&&j.value.length!==0&&h!==!0&&oe===de.value(j.value[0])&&(oe="");const ue=setTimeout(()=>{f.value===!0&&(f.value=!1)},10);c!==null&&clearTimeout(c),c=ue,t("filter",oe,(ve,ye)=>{(Ne===!0||O.focused.value===!0)&&c===ue&&(clearTimeout(c),typeof ve=="function"&&ve(),r.value=!1,C.nextTick(()=>{O.innerLoading.value=!1,O.editable.value===!0&&(Ne===!0?f.value===!0&&Re():f.value===!0?Ge(!0):f.value=!0),typeof ye=="function"&&C.nextTick(()=>{ye(v)}),typeof Q=="function"&&C.nextTick(()=>{Q(v)})}))},()=>{O.focused.value===!0&&c===ue&&(clearTimeout(c),O.innerLoading.value=!1,r.value=!1),f.value===!0&&(f.value=!1)})}function Ce(){return C.h(En,{ref:q,class:W.value,style:u.popupContentStyle,modelValue:f.value,fit:u.menuShrink!==!0,cover:u.optionsCover===!0&&I.value!==!0&&u.useInput!==!0,anchor:u.menuAnchor,self:u.menuSelf,offset:u.menuOffset,dark:U.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,noRouteDismiss:u.popupNoRouteDismiss,square:ie.value,transitionShow:u.transitionShow,transitionHide:u.transitionHide,transitionDuration:u.transitionDuration,separateClosePopup:!0,...ae.value,onScrollPassive:w,onBeforeShow:bt,onBeforeHide:Ye,onShow:Xe},We)}function Ye(oe){ct(oe),be()}function Xe(){E()}function te(oe){It(oe),N.value?.focus(),e.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function K(oe){It(oe),C.nextTick(()=>{e.value=!1})}function re(){const oe=[C.h(Cl,{class:`col-auto ${O.fieldClass.value}`,...H.value,for:O.targetUid.value,dark:U.value,square:!0,loading:r.value,itemAligned:!1,filled:!0,stackLabel:n.value.length!==0,...O.splitAttrs.listeners.value,onFocus:te,onBlur:K},{...P,rawControl:()=>O.getControl(!0),before:void 0,after:void 0})];return f.value===!0&&oe.push(C.h("div",{ref:F,class:W.value+" scroll",style:u.popupContentStyle,...ae.value,onClick:Ot,onScrollPassive:w},We())),C.h(So,{ref:D,modelValue:o.value,position:u.useInput===!0?"top":void 0,transitionShow:p,transitionHide:u.transitionHide,transitionDuration:u.transitionDuration,noRouteDismiss:u.popupNoRouteDismiss,onBeforeShow:bt,onBeforeHide:le,onHide:pe,onShow:Me},()=>C.h("div",{class:"q-select__dialog"+(U.value===!0?" q-select__dialog--dark q-dark":"")+(e.value===!0?" q-select__dialog--focused":"")},oe))}function le(oe){ct(oe),D.value!==null&&D.value.__updateRefocusTarget(O.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),O.focused.value=!1}function pe(oe){Re(),O.focused.value===!1&&t("blur",oe),$e()}function Me(){const oe=document.activeElement;(oe===null||oe.id!==O.targetUid.value)&&N.value!==null&&N.value!==oe&&N.value.focus(),E()}function be(){o.value!==!0&&(a.value=-1,f.value===!0&&(f.value=!1),O.focused.value===!1&&(c!==null&&(clearTimeout(c),c=null),O.innerLoading.value===!0&&(t("filterAbort"),O.innerLoading.value=!1,r.value=!1)))}function ke(oe){O.editable.value===!0&&(d===!0?(O.onControlFocusin(oe),o.value=!0,C.nextTick(()=>{O.focus()})):O.focus(),u.onFilter!==void 0?Ie(n.value):(I.value!==!0||P["no-option"]!==void 0)&&(f.value=!0))}function Re(){o.value=!1,be()}function $e(){u.useInput===!0&&Ae(u.multiple!==!0&&u.fillInput===!0&&j.value.length!==0&&de.value(j.value[0])||"",!0,!0)}function Ge(oe){let Ne=-1;if(oe===!0){if(j.value.length!==0){const Q=ce.value(j.value[0]);Ne=u.options.findIndex(ue=>Qt(ce.value(ue),Q))}g(Ne)}Fe(Ne)}function Qe(oe,Ne){f.value===!0&&O.innerLoading.value===!1&&(g(-1,!0),C.nextTick(()=>{f.value===!0&&O.innerLoading.value===!1&&(oe>Ne?g():Ge(!0))}))}function tt(){o.value===!1&&q.value!==null&&q.value.updatePosition()}function bt(oe){oe!==void 0&&It(oe),t("popupShow",oe),O.hasPopupOpen=!0,O.onControlFocusin(oe)}function ct(oe){oe!==void 0&&It(oe),t("popupHide",oe),O.hasPopupOpen=!1,O.onControlFocusout(oe)}function xt(){d=b.platform.is.mobile!==!0&&u.behavior!=="dialog"?!1:u.behavior!=="menu"&&(u.useInput===!0?P["no-option"]!==void 0||u.onFilter!==void 0||I.value===!1:!0),p=b.platform.is.ios===!0&&d===!0&&u.useInput===!0?"fade":u.transitionShow}return C.onBeforeUpdate(xt),C.onUpdated(tt),xt(),C.onBeforeUnmount(()=>{l!==null&&clearTimeout(l),s!==null&&clearTimeout(s)}),Object.assign(v,{showPopup:ke,hidePopup:Re,removeAtIndex:Ee,add:He,toggleOption:ze,getOptionIndex:()=>a.value,setOptionIndex:Fe,moveOptionSelection:qe,filter:Ie,updateMenuPosition:tt,updateInputValue:Ae,isOptionSelected:Se,getEmittingOptionValue:je,isOptionDisabled:(...oe)=>me.value.apply(null,oe)===!0,getOptionValue:(...oe)=>ce.value.apply(null,oe),getOptionLabel:(...oe)=>de.value.apply(null,oe)}),Object.assign(O,{innerValue:j,fieldClass:C.computed(()=>`q-select q-field--auto-height q-select--with${u.useInput!==!0?"out":""}-input q-select--with${u.useChips!==!0?"out":""}-chips q-select--${u.multiple===!0?"multiple":"single"}`),inputRef:A,targetRef:N,hasValue:X,showPopup:ke,floatingLabel:C.computed(()=>u.hideSelected!==!0&&X.value===!0||typeof n.value=="number"||n.value.length!==0||Dr(u.displayValue)),getControlChild:()=>{if(O.editable.value!==!1&&(o.value===!0||I.value!==!0||P["no-option"]!==void 0))return d===!0?re():Ce();O.hasPopupOpen===!0&&(O.hasPopupOpen=!1)},controlEvents:{onFocusin(oe){O.onControlFocusin(oe)},onFocusout(oe){O.onControlFocusout(oe,()=>{$e(),be()})},onClick(oe){if(Ot(oe),d!==!0&&f.value===!0){be(),N.value?.focus();return}ke(oe)}},getControl:oe=>{const Ne=et(),Q=oe===!0||o.value!==!0||d!==!0;if(u.useInput===!0)Ne.push(ot(oe,Q));else if(O.editable.value===!0){const ve=Q===!0?ee.value:void 0;Ne.push(C.h("input",{ref:Q===!0?N:void 0,key:"d_t",class:"q-select__focus-target",id:Q===!0?O.targetUid.value:void 0,value:$.value,readonly:!0,"data-autofocus":oe===!0||u.autofocus===!0||void 0,...ve,onKeydown:Je,onKeyup:Ve,onKeypress:Ze})),Q===!0&&typeof u.autocomplete=="string"&&u.autocomplete.length!==0&&Ne.push(C.h("input",{class:"q-select__autocomplete-input",autocomplete:u.autocomplete,tabindex:-1,onKeyup:Le}))}if(L.value!==void 0&&u.disable!==!0&&ge.value.length!==0){const ve=ge.value.map(ye=>C.h("option",{value:ye,selected:!0}));Ne.push(C.h("select",{class:"hidden",name:L.value,multiple:u.multiple},ve))}const ue=u.useInput===!0||Q!==!0?void 0:O.splitAttrs.attributes.value;return C.h("div",{class:"q-field__native row items-center",...ue,...O.splitAttrs.listeners.value},Ne)},getInnerAppend:()=>u.loading!==!0&&r.value!==!0&&u.hideDropdownIcon!==!0?[C.h(kt,{class:"q-select__dropdown-icon"+(f.value===!0?" rotate-180":""),name:ne.value})]:null}),Pi(O)}}),Vl={class:"q-pa-none"},Hl=C.defineComponent({__name:"CheckboxFilter",props:{options:{},label:{default:"Sélectionner les options"},modelValue:{default:()=>[]},scrollAreaHeight:{default:"200px"},scrollAreaWidth:{default:"250px"},dataCy:{default:"checkbox-filter"}},emits:["update:modelValue"],setup(u,{emit:P}){const t=u,v=P,b=C.ref(!1),f=C.ref(t.modelValue||[]),o=C.computed(()=>({height:t.scrollAreaHeight,width:t.scrollAreaWidth})),a=C.computed(()=>t.dataCy||"checkbox-filter");return C.watch(f,n=>{v("update:modelValue",n)}),C.watch(()=>t.modelValue,n=>{n&&(f.value=n)},{immediate:!0}),(n,e)=>(C.openBlock(),C.createElementBlock("div",Vl,[C.createVNode(Ni,C.mergeProps({outlined:"",dense:"",label:t.label,class:["full-width","cursor-pointer"],"data-cy":a.value,"model-value":null,options:[],"hide-dropdown-icon":""},n.$attrs),{append:C.withCtx(()=>[C.createVNode(kt,{name:"arrow_drop_down",class:C.normalizeClass(["cursor-pointer smooth-rotate",{"rotate-180":b.value}])},null,8,["class"])]),default:C.withCtx(()=>[C.createVNode(En,{modelValue:b.value,"onUpdate:modelValue":e[1]||(e[1]=r=>b.value=r),anchor:"bottom left",self:"top left",offset:[0,8],"transition-show":"scale","transition-hide":"scale"},{default:C.withCtx(()=>[C.createVNode(Ja,{class:"q-pa-sm"},{default:C.withCtx(()=>[C.createVNode(Qa,{style:C.normalizeStyle(o.value)},{default:C.withCtx(()=>[(C.openBlock(!0),C.createElementBlock(C.Fragment,null,C.renderList(t.options,r=>(C.openBlock(),C.createBlock(an,{key:r.value,modelValue:f.value,"onUpdate:modelValue":e[0]||(e[0]=l=>f.value=l),val:r,label:r.label,disable:r.disabled,color:"primary",class:"q-mb-sm q-ml-sm q-mr-sm","data-cy":`${a.value}-option-${r.label}`},null,8,["modelValue","val","label","disable","data-cy"]))),128))]),_:1},8,["style"])]),_:1})]),_:1},8,["modelValue"])]),_:1},16,["label","data-cy"])]))}}),Ul=vi(Hl,[["__scopeId","data-v-0e12eb7b"]]),Wl=C.defineComponent({__name:"SelectSearch",props:{options:{default:()=>[]},fetchOptions:{},label:{default:"Selectionner un option"},modelValue:{default:null}},emits:["update:modelValue"],setup(u,{emit:P}){const t=u,v=P,b=C.ref(),f=C.ref(t.modelValue??null),o=C.ref(""),a=C.ref(t.options??[]),n=C.ref(!1),e=C.ref(!0);C.watch(()=>t.options,c=>{a.value=c??[],r()},{immediate:!0}),C.watch(()=>t.modelValue,c=>{f.value=c,r(),n.value=!1});function r(){const c=a.value.find(m=>m.value===f.value);o.value=c?.label??""}function l(c){f.value=c,v("update:modelValue",c),r(),n.value=!1}function s(c){o.value=c,c===""&&(n.value=!0)}function i(){if(e.value){e.value=!1;return}f.value!==null&&!n.value?(o.value="",n.value=!0,b.value?.showPopup()):n.value&&(o.value="")}function d(){e.value=!0;const c=o.value.trim();if(c==="")n.value&&(f.value=null,v("update:modelValue",null));else{const m=a.value.find(p=>p.label.toLowerCase()===c.toLowerCase());m?(f.value=m.value,v("update:modelValue",m.value),o.value=m.label):r()}n.value=!1}function h(c,m,p){if(t.fetchOptions)t.fetchOptions(c).then(x=>{a.value=x,m(()=>{})}).catch(p).finally(()=>{});else{const x=t.options??[];a.value=x.filter(k=>k.label.toLowerCase().includes(c.toLowerCase())),m(()=>{})}}return(c,m)=>(C.openBlock(),C.createBlock(Ni,C.mergeProps({ref_key:"selectRef",ref:b,"model-value":f.value,"input-value":o.value,"use-input":"","fill-input":"","hide-selected":"","input-debounce":"300",label:c.label,options:a.value,dense:"",outlined:"",class:"full-width cursor-pointer"},c.$attrs,{"onUpdate:modelValue":l,"onUpdate:inputValue":s,onFocus:i,onBlur:d,onFilter:h}),null,16,["model-value","input-value","label","options"]))}}),Ro=it({name:"QAvatar",props:{...Cr,fontSize:String,color:String,textColor:String,icon:String,square:Boolean,rounded:Boolean},setup(u,{slots:P}){const t=Mr(u),v=C.computed(()=>"q-avatar"+(u.color?` bg-${u.color}`:"")+(u.textColor?` text-${u.textColor} q-chip--colored`:"")+(u.square===!0?" q-avatar--square":u.rounded===!0?" rounded-borders":"")),b=C.computed(()=>u.fontSize?{fontSize:u.fontSize}:null);return()=>{const f=u.icon!==void 0?[C.h(kt,{name:u.icon})]:void 0;return C.h("div",{class:v.value,style:t.value},[C.h("div",{class:"q-avatar__content row flex-center overflow-hidden",style:b.value},Vs(P.default,f))])}}}),Yl=it({name:"QSpace",setup(){const u=C.h("div",{class:"q-space"});return()=>u}}),Xl=it({name:"QToolbar",props:{inset:Boolean},setup(u,{slots:P}){const t=C.computed(()=>"q-toolbar row no-wrap items-center"+(u.inset===!0?" q-toolbar--inset":""));return()=>C.h("div",{class:t.value,role:"toolbar"},vt(P.default))}}),Kl=it({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(u,{slots:P,emit:t}){const{proxy:{$q:v}}=C.getCurrentInstance(),b=C.inject(zr,Rt);if(b===Rt)return console.error("QHeader needs to be child of QLayout"),Rt;const f=C.ref(parseInt(u.heightHint,10)),o=C.ref(!0),a=C.computed(()=>u.reveal===!0||b.view.value.indexOf("H")!==-1||v.platform.is.ios&&b.isContainer.value===!0),n=C.computed(()=>{if(u.modelValue!==!0)return 0;if(a.value===!0)return o.value===!0?f.value:0;const p=f.value-b.scroll.value.position;return p>0?p:0}),e=C.computed(()=>u.modelValue!==!0||a.value===!0&&o.value!==!0),r=C.computed(()=>u.modelValue===!0&&e.value===!0&&u.reveal===!0),l=C.computed(()=>"q-header q-layout__section--marginal "+(a.value===!0?"fixed":"absolute")+"-top"+(u.bordered===!0?" q-header--bordered":"")+(e.value===!0?" q-header--hidden":"")+(u.modelValue!==!0?" q-layout--prevent-focus":"")),s=C.computed(()=>{const p=b.rows.value.top,x={};return p[0]==="l"&&b.left.space===!0&&(x[v.lang.rtl===!0?"right":"left"]=`${b.left.size}px`),p[2]==="r"&&b.right.space===!0&&(x[v.lang.rtl===!0?"left":"right"]=`${b.right.size}px`),x});function i(p,x){b.update("header",p,x)}function d(p,x){p.value!==x&&(p.value=x)}function h({height:p}){d(f,p),i("size",p)}function c(p){r.value===!0&&d(o,!0),t("focusin",p)}C.watch(()=>u.modelValue,p=>{i("space",p),d(o,!0),b.animate()}),C.watch(n,p=>{i("offset",p)}),C.watch(()=>u.reveal,p=>{p===!1&&d(o,u.modelValue)}),C.watch(o,p=>{b.animate(),t("reveal",p)}),C.watch(b.scroll,p=>{u.reveal===!0&&d(o,p.direction==="up"||p.position<=u.revealOffset||p.position-p.inflectionPoint<100)});const m={};return b.instances.header=m,u.modelValue===!0&&i("size",f.value),i("space",u.modelValue),i("offset",n.value),C.onBeforeUnmount(()=>{b.instances.header===m&&(b.instances.header=void 0,i("size",0),i("offset",0),i("space",!1))}),()=>{const p=hi(P.default,[]);return u.elevated===!0&&p.push(C.h("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),p.push(C.h(Sr,{debounce:0,onResize:h})),C.h("header",{class:l.value,style:s.value,onFocusin:c},p)}}}),Zl=["src","alt"],Gl=C.defineComponent({__name:"SelfeeHeader",props:{logoSrc:{},logoAlt:{},logoTo:{}},setup(u){const P=u,t=P.logoAlt??"Logo",v=P.logoTo??"/",b=C.computed(()=>({width:"260px",height:"auto"}));return(f,o)=>{const a=C.resolveComponent("router-link");return C.openBlock(),C.createBlock(Kl,C.mergeProps({elevated:""},f.$attrs),{default:C.withCtx(()=>[C.createVNode(Xl,null,{default:C.withCtx(()=>[C.createVNode(a,{to:C.unref(v),class:"q-mr-md"},{default:C.withCtx(()=>[C.createVNode(Ro,{class:"logo",style:C.normalizeStyle(b.value),"data-testid":"header-logo"},{default:C.withCtx(()=>[C.createElementVNode("img",{src:f.logoSrc,alt:C.unref(t)},null,8,Zl)]),_:1},8,["style"])]),_:1},8,["to"]),C.createVNode(Yl),C.renderSlot(f.$slots,"user-avatar")]),_:3})]),_:3},16)}}}),Ql=it({name:"QFooter",props:{modelValue:{type:Boolean,default:!0},reveal:Boolean,bordered:Boolean,elevated:Boolean,heightHint:{type:[String,Number],default:50}},emits:["reveal","focusin"],setup(u,{slots:P,emit:t}){const{proxy:{$q:v}}=C.getCurrentInstance(),b=C.inject(zr,Rt);if(b===Rt)return console.error("QFooter needs to be child of QLayout"),Rt;const f=C.ref(parseInt(u.heightHint,10)),o=C.ref(!0),a=C.ref(tr.value===!0||b.isContainer.value===!0?0:window.innerHeight),n=C.computed(()=>u.reveal===!0||b.view.value.indexOf("F")!==-1||v.platform.is.ios&&b.isContainer.value===!0),e=C.computed(()=>b.isContainer.value===!0?b.containerHeight.value:a.value),r=C.computed(()=>{if(u.modelValue!==!0)return 0;if(n.value===!0)return o.value===!0?f.value:0;const A=b.scroll.value.position+e.value+f.value-b.height.value;return A>0?A:0}),l=C.computed(()=>u.modelValue!==!0||n.value===!0&&o.value!==!0),s=C.computed(()=>u.modelValue===!0&&l.value===!0&&u.reveal===!0),i=C.computed(()=>"q-footer q-layout__section--marginal "+(n.value===!0?"fixed":"absolute")+"-bottom"+(u.bordered===!0?" q-footer--bordered":"")+(l.value===!0?" q-footer--hidden":"")+(u.modelValue!==!0?" q-layout--prevent-focus"+(n.value!==!0?" hidden":""):"")),d=C.computed(()=>{const A=b.rows.value.bottom,N={};return A[0]==="l"&&b.left.space===!0&&(N[v.lang.rtl===!0?"right":"left"]=`${b.left.size}px`),A[2]==="r"&&b.right.space===!0&&(N[v.lang.rtl===!0?"left":"right"]=`${b.right.size}px`),N});function h(A,N){b.update("footer",A,N)}function c(A,N){A.value!==N&&(A.value=N)}function m({height:A}){c(f,A),h("size",A)}function p(){if(u.reveal!==!0)return;const{direction:A,position:N,inflectionPoint:q}=b.scroll.value;c(o,A==="up"||N-q<100||b.height.value-e.value-N-f.value<300)}function x(A){s.value===!0&&c(o,!0),t("focusin",A)}C.watch(()=>u.modelValue,A=>{h("space",A),c(o,!0),b.animate()}),C.watch(r,A=>{h("offset",A)}),C.watch(()=>u.reveal,A=>{A===!1&&c(o,u.modelValue)}),C.watch(o,A=>{b.animate(),t("reveal",A)}),C.watch([f,b.scroll,b.height],p),C.watch(()=>v.screen.height,A=>{b.isContainer.value!==!0&&c(a,A)});const k={};return b.instances.footer=k,u.modelValue===!0&&h("size",f.value),h("space",u.modelValue),h("offset",r.value),C.onBeforeUnmount(()=>{b.instances.footer===k&&(b.instances.footer=void 0,h("size",0),h("offset",0),h("space",!1))}),()=>{const A=Nt(P.default,[C.h(Sr,{debounce:0,onResize:m})]);return u.elevated===!0&&A.push(C.h("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),C.h("footer",{class:i.value,style:d.value,onFocusin:x},A)}}}),Jl={class:"row justify-between"},eu={class:"col-3 q-py-md flex justify-center"},tu={class:"col-3 q-py-md flex justify-center"},ru={class:"col-3 q-py-md flex justify-center"},nu=C.defineComponent({__name:"SelfeeFooter",props:{frontVersion:{},backVersion:{},platform:{}},setup(u){return(P,t)=>(C.openBlock(),C.createBlock(Ql,C.mergeProps({elevated:""},P.$attrs),{default:C.withCtx(()=>[C.createElementVNode("div",Jl,[C.createElementVNode("div",eu,"Front: "+C.toDisplayString(P.frontVersion),1),C.createElementVNode("div",tu,"Back: "+C.toDisplayString(P.backVersion),1),C.createElementVNode("div",ru,"Platform: "+C.toDisplayString(P.platform),1)])]),_:1},16))}}),iu={true:"inset",item:"item-inset","item-thumbnail":"item-thumbnail-inset"},Hn={xs:2,sm:4,md:8,lg:16,xl:24},Oo=it({name:"QSeparator",props:{...Bt,spaced:[Boolean,String],inset:[Boolean,String],vertical:Boolean,color:String,size:String},setup(u){const P=C.getCurrentInstance(),t=Dt(u,P.proxy.$q),v=C.computed(()=>u.vertical===!0?"vertical":"horizontal"),b=C.computed(()=>` q-separator--${v.value}`),f=C.computed(()=>u.inset!==!1?`${b.value}-${iu[u.inset]}`:""),o=C.computed(()=>`q-separator${b.value}${f.value}`+(u.color!==void 0?` bg-${u.color}`:"")+(t.value===!0?" q-separator--dark":"")),a=C.computed(()=>{const n={};if(u.size!==void 0&&(n[u.vertical===!0?"width":"height"]=u.size),u.spaced!==!1){const e=u.spaced===!0?`${Hn.md}px`:u.spaced in Hn?`${Hn[u.spaced]}px`:u.spaced,r=u.vertical===!0?["Left","Right"]:["Top","Bottom"];n[`margin${r[0]}`]=n[`margin${r[1]}`]=e}return n});return()=>C.h("hr",{class:o.value,style:a.value,"aria-orientation":v.value})}}),su=["ul","ol"],jo=it({name:"QList",props:{...Bt,bordered:Boolean,dense:Boolean,separator:Boolean,padding:Boolean,tag:{type:String,default:"div"}},setup(u,{slots:P}){const t=C.getCurrentInstance(),v=Dt(u,t.proxy.$q),b=C.computed(()=>su.includes(u.tag)?null:"list"),f=C.computed(()=>"q-list"+(u.bordered===!0?" q-list--bordered":"")+(u.dense===!0?" q-list--dense":"")+(u.separator===!0?" q-list--separator":"")+(v.value===!0?" q-list--dark":"")+(u.padding===!0?" q-list--padding":""));return()=>C.h(u.tag,{class:f.value,role:b.value},vt(P.default))}}),ou={class:"text-h6 text-primary","data-testid":"avatar-initial"},au=C.defineComponent({__name:"UserAvatar",props:{username:{},onLogout:{type:Function},logoutLabel:{}},setup(u){const P=u,t=C.computed(()=>P.username?.charAt(0).toUpperCase()??""),v=P.logoutLabel??"Logout";return(b,f)=>(C.openBlock(),C.createElementBlock("div",null,[C.createVNode(Ro,{class:"cursor-pointer",size:"40px",color:"white","data-cy":"cy-avatar","data-testid":"cy-avatar"},{default:C.withCtx(()=>[C.createElementVNode("span",ou,C.toDisplayString(t.value),1),C.createVNode(En,{"transition-show":"flip-right","transition-hide":"flip-left"},{default:C.withCtx(()=>[C.createVNode(jo,null,{default:C.withCtx(()=>[C.createVNode(si,null,{default:C.withCtx(()=>[C.createVNode(oi,null,{default:C.withCtx(()=>[C.createElementVNode("div",null,C.toDisplayString(b.username),1)]),_:1})]),_:1}),C.createVNode(Oo),C.createVNode(si,{clickable:"","data-cy":"cy-logout-button","data-testid":"cy-logout-button",onClick:b.onLogout},{default:C.withCtx(()=>[C.createVNode(oi,null,{default:C.withCtx(()=>[C.createElementVNode("div",null,C.toDisplayString(C.unref(v)),1)]),_:1})]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1})]))}}),lu=it({name:"QPageContainer",setup(u,{slots:P}){const{proxy:{$q:t}}=C.getCurrentInstance(),v=C.inject(zr,Rt);if(v===Rt)return console.error("QPageContainer needs to be child of QLayout"),Rt;C.provide(_o,!0);const b=C.computed(()=>{const f={};return v.header.space===!0&&(f.paddingTop=`${v.header.size}px`),v.right.space===!0&&(f[`padding${t.lang.rtl===!0?"Left":"Right"}`]=`${v.right.size}px`),v.footer.space===!0&&(f.paddingBottom=`${v.footer.size}px`),v.left.space===!0&&(f[`padding${t.lang.rtl===!0?"Right":"Left"}`]=`${v.left.size}px`),f});return()=>C.h("div",{class:"q-page-container",style:b.value},vt(P.default))}}),uu=it({name:"QLayout",props:{container:Boolean,view:{type:String,default:"hhh lpr fff",validator:u=>/^(h|l)h(h|r) lpr (f|l)f(f|r)$/.test(u.toLowerCase())},onScroll:Function,onScrollHeight:Function,onResize:Function},setup(u,{slots:P,emit:t}){const{proxy:{$q:v}}=C.getCurrentInstance(),b=C.ref(null),f=C.ref(v.screen.height),o=C.ref(u.container===!0?0:v.screen.width),a=C.ref({position:0,direction:"down",inflectionPoint:0}),n=C.ref(0),e=C.ref(tr.value===!0?0:ln()),r=C.computed(()=>"q-layout q-layout--"+(u.container===!0?"containerized":"standard")),l=C.computed(()=>u.container===!1?{minHeight:v.screen.height+"px"}:null),s=C.computed(()=>e.value!==0?{[v.lang.rtl===!0?"left":"right"]:`${e.value}px`}:null),i=C.computed(()=>e.value!==0?{[v.lang.rtl===!0?"right":"left"]:0,[v.lang.rtl===!0?"left":"right"]:`-${e.value}px`,width:`calc(100% + ${e.value}px)`}:null);function d(k){if(u.container===!0||document.qScrollPrevented!==!0){const A={position:k.position.top,direction:k.direction,directionChanged:k.directionChanged,inflectionPoint:k.inflectionPoint.top,delta:k.delta.top};a.value=A,u.onScroll!==void 0&&t("scroll",A)}}function h(k){const{height:A,width:N}=k;let q=!1;f.value!==A&&(q=!0,f.value=A,u.onScrollHeight!==void 0&&t("scrollHeight",A),m()),o.value!==N&&(q=!0,o.value=N),q===!0&&u.onResize!==void 0&&t("resize",k)}function c({height:k}){n.value!==k&&(n.value=k,m())}function m(){if(u.container===!0){const k=f.value>n.value?ln():0;e.value!==k&&(e.value=k)}}let p=null;const x={instances:{},view:C.computed(()=>u.view),isContainer:C.computed(()=>u.container),rootRef:b,height:f,containerHeight:n,scrollbarWidth:e,totalWidth:C.computed(()=>o.value+e.value),rows:C.computed(()=>{const k=u.view.toLowerCase().split(" ");return{top:k[0].split(""),middle:k[1].split(""),bottom:k[2].split("")}}),header:C.reactive({size:0,offset:0,space:!1}),right:C.reactive({size:300,offset:0,space:!1}),footer:C.reactive({size:0,offset:0,space:!1}),left:C.reactive({size:300,offset:0,space:!1}),scroll:a,animate(){p!==null?clearTimeout(p):document.body.classList.add("q-body--layout-animate"),p=setTimeout(()=>{p=null,document.body.classList.remove("q-body--layout-animate")},155)},update(k,A,N){x[k][A]=N}};if(C.provide(zr,x),ln()>0){let k=function(){q=null,D.classList.remove("hide-scrollbar")},A=function(){if(q===null){if(D.scrollHeight>v.screen.height)return;D.classList.add("hide-scrollbar")}else clearTimeout(q);q=setTimeout(k,300)},N=function(F){q!==null&&F==="remove"&&(clearTimeout(q),k()),window[`${F}EventListener`]("resize",A)},q=null;const D=document.body;C.watch(()=>u.container!==!0?"add":"remove",N),u.container!==!0&&N("add"),C.onUnmounted(()=>{N("remove")})}return()=>{const k=Nt(P.default,[C.h(lo,{onScroll:d}),C.h(Sr,{onResize:h})]),A=C.h("div",{class:r.value,style:l.value,ref:u.container===!0?void 0:b,tabindex:-1},k);return u.container===!0?C.h("div",{class:"q-layout-container overflow-hidden",ref:b},[C.h(Sr,{onResize:c}),C.h("div",{class:"absolute-full",style:s.value},[C.h("div",{class:"scroll",style:i.value},[A])])]):A}}}),cu=C.defineComponent({name:"Layout",__name:"Layout",props:{view:{default:"HHh Lpr Fff"},layoutClass:{default:"bg-dark"},pageContainerClass:{default:"q-pa-sm"}},setup(u){return(P,t)=>(C.openBlock(),C.createBlock(uu,{view:P.view,class:C.normalizeClass(P.layoutClass)},{default:C.withCtx(()=>[C.renderSlot(P.$slots,"header"),C.createVNode(lu,{class:C.normalizeClass(P.pageContainerClass)},{default:C.withCtx(()=>[C.renderSlot(P.$slots,"default")]),_:3},8,["class"]),C.renderSlot(P.$slots,"footer")]),_:3},8,["view","class"]))}});function fu(){let u=Object.create(null);return{getCache:(P,t)=>u[P]===void 0?u[P]=typeof t=="function"?t():t:u[P],setCache(P,t){u[P]=t},hasCache(P){return Object.hasOwnProperty.call(u,P)},clearCache(P){P!==void 0?delete u[P]:u=Object.create(null)}}}const Jt=[-61,9,38,199,426,686,756,818,1111,1181,1210,1635,2060,2097,2192,2262,2324,2394,2456,3178];function du(u,P,t){return Object.prototype.toString.call(u)==="[object Date]"&&(t=u.getDate(),P=u.getMonth()+1,u=u.getFullYear()),bu(Bi(u,P,t))}function Es(u,P,t){return Po(mu(u,P,t))}function hu(u){return pu(u)===0}function un(u,P){return P<=6?31:P<=11||hu(u)?30:29}function pu(u){const P=Jt.length;let t=Jt[0],v,b,f,o,a;if(u<t||u>=Jt[P-1])throw new Error("Invalid Jalaali year "+u);for(a=1;a<P&&(v=Jt[a],b=v-t,!(u<v));a+=1)t=v;return o=u-t,b-o<6&&(o=o-b+gt(b+4,33)*33),f=Pt(Pt(o+1,33)-1,4),f===-1&&(f=4),f}function Io(u,P){const t=Jt.length,v=u+621;let b=-14,f=Jt[0],o,a,n,e,r;if(u<f||u>=Jt[t-1])throw new Error("Invalid Jalaali year "+u);for(r=1;r<t&&(o=Jt[r],a=o-f,!(u<o));r+=1)b=b+gt(a,33)*8+gt(Pt(a,33),4),f=o;e=u-f,b=b+gt(e,33)*8+gt(Pt(e,33)+3,4),Pt(a,33)===4&&a-e===4&&(b+=1);const l=gt(v,4)-gt((gt(v,100)+1)*3,4)-150,s=20+b-l;return P||(a-e<6&&(e=e-a+gt(a+4,33)*33),n=Pt(Pt(e+1,33)-1,4),n===-1&&(n=4)),{leap:n,gy:v,march:s}}function mu(u,P,t){const v=Io(u,!0);return Bi(v.gy,3,v.march)+(P-1)*31-gt(P,7)*(P-7)+t-1}function bu(u){const P=Po(u).gy;let t=P-621,v,b,f;const o=Io(t,!1),a=Bi(P,3,o.march);if(f=u-a,f>=0){if(f<=185)return b=1+gt(f,31),v=Pt(f,31)+1,{jy:t,jm:b,jd:v};f-=186}else t-=1,f+=179,o.leap===1&&(f+=1);return b=7+gt(f,30),v=Pt(f,30)+1,{jy:t,jm:b,jd:v}}function Bi(u,P,t){let v=gt((u+gt(P-8,6)+100100)*1461,4)+gt(153*Pt(P+9,12)+2,5)+t-34840408;return v=v-gt(gt(u+100100+gt(P-8,6),100)*3,4)+752,v}function Po(u){let P=4*u+139361631;P=P+gt(gt(4*u+183187720,146097)*3,4)*4-3908;const t=gt(Pt(P,1461),4)*5+308,v=gt(Pt(t,153),5)+1,b=Pt(gt(t,153),12)+1;return{gy:gt(P,1461)-100100+gt(8-b,6),gm:b,gd:v}}function gt(u,P){return~~(u/P)}function Pt(u,P){return u-~~(u/P)*P}const gu=["gregorian","persian"],Ts={mask:{type:String},locale:Object,calendar:{type:String,validator:u=>gu.includes(u),default:"gregorian"},landscape:Boolean,color:String,textColor:String,square:Boolean,flat:Boolean,bordered:Boolean,readonly:Boolean,disable:Boolean},vu=["update:modelValue"];function Kt(u){return u.year+"/"+mt(u.month)+"/"+mt(u.day)}function yu(u,P){const t=C.computed(()=>u.disable!==!0&&u.readonly!==!0),v=C.computed(()=>t.value===!0?0:-1),b=C.computed(()=>{const a=[];return u.color!==void 0&&a.push(`bg-${u.color}`),u.textColor!==void 0&&a.push(`text-${u.textColor}`),a.join(" ")});function f(){return u.locale!==void 0?{...P.lang.date,...u.locale}:P.lang.date}function o(a){const n=new Date,e=a===!0?null:0;if(u.calendar==="persian"){const r=du(n);return{year:r.jy,month:r.jm,day:r.jd}}return{year:n.getFullYear(),month:n.getMonth()+1,day:n.getDate(),hour:e,minute:e,second:e,millisecond:e}}return{editable:t,tabindex:v,headerClass:b,getLocale:f,getCurrentDate:o}}const ui={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:u=>u?`Expand "${u}"`:"Expand",collapse:u=>u?`Collapse "${u}"`:"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:u=>`Previous ${u} years`,nextRangeYears:u=>`Next ${u} years`},table:{noData:"No data available",noResults:"No matching records found",loading:"Loading...",selectedRecords:u=>u===1?"1 record selected.":(u===0?"No":u)+" records selected.",recordsPerPage:"Records per page:",allRows:"All",pagination:(u,P,t)=>u+"-"+P+" of "+t,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 As(){const u=Array.isArray(navigator.languages)===!0&&navigator.languages.length!==0?navigator.languages[0]:navigator.language;if(typeof u=="string")return u.split(/[-_]/).map((P,t)=>t===0?P.toLowerCase():t>1||P.length<4?P.toUpperCase():P[0].toUpperCase()+P.slice(1).toLowerCase()).join("-")}const Gt=Go({__qLang:{}},{getLocale:As,set(u=ui,P){const t={...u,rtl:u.rtl===!0,getLocale:As};{if(t.set=Gt.set,Gt.__langConfig===void 0||Gt.__langConfig.noHtmlAttrs!==!0){const v=document.documentElement;v.setAttribute("dir",t.rtl===!0?"rtl":"ltr"),v.setAttribute("lang",t.isoName)}Object.assign(Gt.__qLang,t)}},install({$q:u,lang:P,ssrContext:t}){u.lang=Gt.__qLang,Gt.__langConfig=u.config.lang,this.__installed===!0?P!==void 0&&this.set(P):(this.props=new Proxy(this.__qLang,{get(){return Reflect.get(...arguments)},ownKeys(v){return Reflect.ownKeys(v).filter(b=>b!=="set"&&b!=="getLocale")}}),this.set(P||ui))}}),No=864e5,wu=36e5,ci=6e4,Bo="YYYY-MM-DDTHH:mm:ss.SSSZ",_u=/\[((?:[^\]\\]|\\]|\\)*)\]|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,xu=/(\[[^\]]*\])|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,Un={};function Su(u,P){const t="("+P.days.join("|")+")",v=u+t;if(Un[v]!==void 0)return Un[v];const b="("+P.daysShort.join("|")+")",f="("+P.months.join("|")+")",o="("+P.monthsShort.join("|")+")",a={};let n=0;const e=u.replace(xu,l=>{switch(n++,l){case"YY":return a.YY=n,"(-?\\d{1,2})";case"YYYY":return a.YYYY=n,"(-?\\d{1,4})";case"M":return a.M=n,"(\\d{1,2})";case"Mo":return a.M=n++,"(\\d{1,2}(st|nd|rd|th))";case"MM":return a.M=n,"(\\d{2})";case"MMM":return a.MMM=n,o;case"MMMM":return a.MMMM=n,f;case"D":return a.D=n,"(\\d{1,2})";case"Do":return a.D=n++,"(\\d{1,2}(st|nd|rd|th))";case"DD":return a.D=n,"(\\d{2})";case"H":return a.H=n,"(\\d{1,2})";case"HH":return a.H=n,"(\\d{2})";case"h":return a.h=n,"(\\d{1,2})";case"hh":return a.h=n,"(\\d{2})";case"m":return a.m=n,"(\\d{1,2})";case"mm":return a.m=n,"(\\d{2})";case"s":return a.s=n,"(\\d{1,2})";case"ss":return a.s=n,"(\\d{2})";case"S":return a.S=n,"(\\d{1})";case"SS":return a.S=n,"(\\d{2})";case"SSS":return a.S=n,"(\\d{3})";case"A":return a.A=n,"(AM|PM)";case"a":return a.a=n,"(am|pm)";case"aa":return a.aa=n,"(a\\.m\\.|p\\.m\\.)";case"ddd":return b;case"dddd":return t;case"Q":case"d":case"E":return"(\\d{1})";case"do":return n++,"(\\d{1}(st|nd|rd|th))";case"Qo":return"(1st|2nd|3rd|4th)";case"DDD":case"DDDD":return"(\\d{1,3})";case"DDDo":return n++,"(\\d{1,3}(st|nd|rd|th))";case"w":return"(\\d{1,2})";case"wo":return n++,"(\\d{1,2}(st|nd|rd|th))";case"ww":return"(\\d{2})";case"Z":return a.Z=n,"(Z|[+-]\\d{2}:\\d{2})";case"ZZ":return a.ZZ=n,"(Z|[+-]\\d{2}\\d{2})";case"X":return a.X=n,"(-?\\d+)";case"x":return a.x=n,"(-?\\d{4,})";default:return n--,l[0]==="["&&(l=l.substring(1,l.length-1)),l.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}}),r={map:a,regex:new RegExp("^"+e)};return Un[v]=r,r}function Do(u,P){return u!==void 0?u:P!==void 0?P.date:ui.date}function Rs(u,P=""){const t=u>0?"-":"+",v=Math.abs(u),b=Math.floor(v/60),f=v%60;return t+mt(b)+P+mt(f)}function ku(u,P,t){let v=u.getFullYear(),b=u.getMonth();const f=u.getDate();return P.year!==void 0&&(v+=t*P.year,delete P.year),P.month!==void 0&&(b+=t*P.month,delete P.month),u.setDate(1),u.setMonth(2),u.setFullYear(v),u.setMonth(b),u.setDate(Math.min(f,Li(u))),P.date!==void 0&&(u.setDate(u.getDate()+t*P.date),delete P.date),u}function Cu(u,P,t){const v=P.year!==void 0?P.year:u[`get${t}FullYear`](),b=P.month!==void 0?P.month-1:u[`get${t}Month`](),f=new Date(v,b+1,0).getDate(),o=Math.min(f,P.date!==void 0?P.date:u[`get${t}Date`]());return u[`set${t}Date`](1),u[`set${t}Month`](2),u[`set${t}FullYear`](v),u[`set${t}Month`](b),u[`set${t}Date`](o),delete P.year,delete P.month,delete P.date,u}function Di(u,P,t){const v=Fo(P),b=new Date(u),f=v.year!==void 0||v.month!==void 0||v.date!==void 0?ku(b,v,t):b;for(const o in v){const a=Ga(o);f[`set${a}`](f[`get${a}`]()+t*v[o])}return f}function Fo(u){const P={...u};return u.years!==void 0&&(P.year=u.years,delete P.years),u.months!==void 0&&(P.month=u.months,delete P.months),u.days!==void 0&&(P.date=u.days,delete P.days),u.day!==void 0&&(P.date=u.day,delete P.day),u.hour!==void 0&&(P.hours=u.hour,delete P.hour),u.minute!==void 0&&(P.minutes=u.minute,delete P.minute),u.second!==void 0&&(P.seconds=u.second,delete P.second),u.millisecond!==void 0&&(P.milliseconds=u.millisecond,delete P.millisecond),P}function Lo(u,P,t){const v=Fo(P),b=t===!0?"UTC":"",f=new Date(u),o=v.year!==void 0||v.month!==void 0||v.date!==void 0?Cu(f,v,b):f;for(const a in v){const n=a.charAt(0).toUpperCase()+a.slice(1);o[`set${b}${n}`](v[a])}return o}function Mu(u,P,t){const v=zo(u,P,t),b=new Date(v.year,v.month===null?null:v.month-1,v.day===null?1:v.day,v.hour,v.minute,v.second,v.millisecond),f=b.getTimezoneOffset();return v.timezoneOffset===null||v.timezoneOffset===f?b:Di(b,{minutes:v.timezoneOffset-f},1)}function zo(u,P,t,v,b){const f={year:null,month:null,day:null,hour:null,minute:null,second:null,millisecond:null,timezoneOffset:null,dateHash:null,timeHash:null};if(b!==void 0&&Object.assign(f,b),u==null||u===""||typeof u!="string")return f;P===void 0&&(P=Bo);const o=Do(t,Gt.props),a=o.months,n=o.monthsShort,{regex:e,map:r}=Su(P,o),l=u.match(e);if(l===null)return f;let s="";if(r.X!==void 0||r.x!==void 0){const i=parseInt(l[r.X!==void 0?r.X:r.x],10);if(isNaN(i)===!0||i<0)return f;const d=new Date(i*(r.X!==void 0?1e3:1));f.year=d.getFullYear(),f.month=d.getMonth()+1,f.day=d.getDate(),f.hour=d.getHours(),f.minute=d.getMinutes(),f.second=d.getSeconds(),f.millisecond=d.getMilliseconds()}else{if(r.YYYY!==void 0)f.year=parseInt(l[r.YYYY],10);else if(r.YY!==void 0){const i=parseInt(l[r.YY],10);f.year=i<0?i:2e3+i}if(r.M!==void 0){if(f.month=parseInt(l[r.M],10),f.month<1||f.month>12)return f}else r.MMM!==void 0?f.month=n.indexOf(l[r.MMM])+1:r.MMMM!==void 0&&(f.month=a.indexOf(l[r.MMMM])+1);if(r.D!==void 0){if(f.day=parseInt(l[r.D],10),f.year===null||f.month===null||f.day<1)return f;const i=v!=="persian"?new Date(f.year,f.month,0).getDate():un(f.year,f.month);if(f.day>i)return f}r.H!==void 0?f.hour=parseInt(l[r.H],10)%24:r.h!==void 0&&(f.hour=parseInt(l[r.h],10)%12,(r.A&&l[r.A]==="PM"||r.a&&l[r.a]==="pm"||r.aa&&l[r.aa]==="p.m.")&&(f.hour+=12),f.hour=f.hour%24),r.m!==void 0&&(f.minute=parseInt(l[r.m],10)%60),r.s!==void 0&&(f.second=parseInt(l[r.s],10)%60),r.S!==void 0&&(f.millisecond=parseInt(l[r.S],10)*10**(3-l[r.S].length)),(r.Z!==void 0||r.ZZ!==void 0)&&(s=r.Z!==void 0?l[r.Z].replace(":",""):l[r.ZZ],f.timezoneOffset=(s[0]==="+"?-1:1)*(60*s.slice(1,3)+1*s.slice(3,5)))}return f.dateHash=mt(f.year,4)+"/"+mt(f.month)+"/"+mt(f.day),f.timeHash=mt(f.hour)+":"+mt(f.minute)+":"+mt(f.second)+s,f}function Eu(u){return typeof u=="number"?!0:isNaN(Date.parse(u))===!1}function Tu(u,P){return Lo(new Date,u,P)}function Au(u){const P=new Date(u).getDay();return P===0?7:P}function cn(u){const P=new Date(u.getFullYear(),u.getMonth(),u.getDate());P.setDate(P.getDate()-(P.getDay()+6)%7+3);const t=new Date(P.getFullYear(),0,4);t.setDate(t.getDate()-(t.getDay()+6)%7+3);const v=P.getTimezoneOffset()-t.getTimezoneOffset();P.setHours(P.getHours()-v);const b=(P-t)/(No*7);return 1+Math.floor(b)}function Ru(u){return u.getFullYear()*1e4+u.getMonth()*100+u.getDate()}function Wn(u,P){const t=new Date(u);return P===!0?Ru(t):t.getTime()}function Ou(u,P,t,v={}){const b=Wn(P,v.onlyDate),f=Wn(t,v.onlyDate),o=Wn(u,v.onlyDate);return(o>b||v.inclusiveFrom===!0&&o===b)&&(o<f||v.inclusiveTo===!0&&o===f)}function ju(u,P){return Di(u,P,1)}function Iu(u,P){return Di(u,P,-1)}function $t(u,P,t){const v=new Date(u),b=`set${t===!0?"UTC":""}`;switch(P){case"year":case"years":v[`${b}Month`](0);case"month":case"months":v[`${b}Date`](1);case"day":case"days":case"date":v[`${b}Hours`](0);case"hour":case"hours":v[`${b}Minutes`](0);case"minute":case"minutes":v[`${b}Seconds`](0);case"second":case"seconds":v[`${b}Milliseconds`](0)}return v}function Pu(u,P,t){const v=new Date(u),b=`set${t===!0?"UTC":""}`;switch(P){case"year":case"years":v[`${b}Month`](11);case"month":case"months":v[`${b}Date`](Li(v));case"day":case"days":case"date":v[`${b}Hours`](23);case"hour":case"hours":v[`${b}Minutes`](59);case"minute":case"minutes":v[`${b}Seconds`](59);case"second":case"seconds":v[`${b}Milliseconds`](999)}return v}function Nu(u){let P=new Date(u);return Array.prototype.slice.call(arguments,1).forEach(t=>{P=Math.max(P,new Date(t))}),P}function Bu(u){let P=new Date(u);return Array.prototype.slice.call(arguments,1).forEach(t=>{P=Math.min(P,new Date(t))}),P}function en(u,P,t){return(u.getTime()-u.getTimezoneOffset()*ci-(P.getTime()-P.getTimezoneOffset()*ci))/t}function Fi(u,P,t="days"){const v=new Date(u),b=new Date(P);switch(t){case"years":case"year":return v.getFullYear()-b.getFullYear();case"months":case"month":return(v.getFullYear()-b.getFullYear())*12+v.getMonth()-b.getMonth();case"days":case"day":case"date":return en($t(v,"day"),$t(b,"day"),No);case"hours":case"hour":return en($t(v,"hour"),$t(b,"hour"),wu);case"minutes":case"minute":return en($t(v,"minute"),$t(b,"minute"),ci);case"seconds":case"second":return en($t(v,"second"),$t(b,"second"),1e3)}}function fn(u){return Fi(u,$t(u,"year"),"days")+1}function Du(u){return _n(u)===!0?"date":typeof u=="number"?"number":"string"}function Fu(u,P,t){const v=new Date(u);if(P){const b=new Date(P);if(v<b)return b}if(t){const b=new Date(t);if(v>b)return b}return v}function Lu(u,P,t){const v=new Date(u),b=new Date(P);if(t===void 0)return v.getTime()===b.getTime();switch(t){case"second":case"seconds":if(v.getSeconds()!==b.getSeconds())return!1;case"minute":case"minutes":if(v.getMinutes()!==b.getMinutes())return!1;case"hour":case"hours":if(v.getHours()!==b.getHours())return!1;case"day":case"days":case"date":if(v.getDate()!==b.getDate())return!1;case"month":case"months":if(v.getMonth()!==b.getMonth())return!1;case"year":case"years":if(v.getFullYear()!==b.getFullYear())return!1;break;default:throw new Error(`date isSameDate unknown unit ${t}`)}return!0}function Li(u){return new Date(u.getFullYear(),u.getMonth()+1,0).getDate()}function vr(u){if(u>=11&&u<=13)return`${u}th`;switch(u%10){case 1:return`${u}st`;case 2:return`${u}nd`;case 3:return`${u}rd`}return`${u}th`}const Os={YY(u,P,t){const v=this.YYYY(u,P,t)%100;return v>=0?mt(v):"-"+mt(Math.abs(v))},YYYY(u,P,t){return t??u.getFullYear()},M(u){return u.getMonth()+1},Mo(u){return vr(u.getMonth()+1)},MM(u){return mt(u.getMonth()+1)},MMM(u,P){return P.monthsShort[u.getMonth()]},MMMM(u,P){return P.months[u.getMonth()]},Q(u){return Math.ceil((u.getMonth()+1)/3)},Qo(u){return vr(this.Q(u))},D(u){return u.getDate()},Do(u){return vr(u.getDate())},DD(u){return mt(u.getDate())},DDD(u){return fn(u)},DDDo(u){return vr(fn(u))},DDDD(u){return mt(fn(u),3)},d(u){return u.getDay()},do(u){return vr(u.getDay())},dd(u,P){return P.days[u.getDay()].slice(0,2)},ddd(u,P){return P.daysShort[u.getDay()]},dddd(u,P){return P.days[u.getDay()]},E(u){return u.getDay()||7},w(u){return cn(u)},wo(u){return vr(cn(u))},ww(u){return mt(cn(u))},H(u){return u.getHours()},HH(u){return mt(u.getHours())},h(u){const P=u.getHours();return P===0?12:P>12?P%12:P},hh(u){return mt(this.h(u))},m(u){return u.getMinutes()},mm(u){return mt(u.getMinutes())},s(u){return u.getSeconds()},ss(u){return mt(u.getSeconds())},S(u){return Math.floor(u.getMilliseconds()/100)},SS(u){return mt(Math.floor(u.getMilliseconds()/10))},SSS(u){return mt(u.getMilliseconds(),3)},A(u){return u.getHours()<12?"AM":"PM"},a(u){return u.getHours()<12?"am":"pm"},aa(u){return u.getHours()<12?"a.m.":"p.m."},Z(u,P,t,v){const b=v??u.getTimezoneOffset();return Rs(b,":")},ZZ(u,P,t,v){const b=v??u.getTimezoneOffset();return Rs(b)},X(u){return Math.floor(u.getTime()/1e3)},x(u){return u.getTime()}};function qo(u,P,t,v,b){if(u!==0&&!u||u===1/0||u===-1/0)return;const f=new Date(u);if(isNaN(f))return;P===void 0&&(P=Bo);const o=Do(t,Gt.props);return P.replace(_u,(a,n)=>a in Os?Os[a](f,o,v,b):n===void 0?a:n.split("\\]").join("]"))}function zu(u){return _n(u)===!0?new Date(u.getTime()):u}const qu={isValid:Eu,extractDate:Mu,buildDate:Tu,getDayOfWeek:Au,getWeekOfYear:cn,isBetweenDates:Ou,addToDate:ju,subtractFromDate:Iu,adjustDate:Lo,startOfDate:$t,endOfDate:Pu,getMaxDate:Nu,getMinDate:Bu,getDateDiff:Fi,getDayOfYear:fn,inferDateFormat:Du,getDateBetween:Fu,isSameDate:Lu,daysInMonth:Li,formatDate:qo,clone:zu},Ht=20,$u=["Calendar","Years","Months"],js=u=>$u.includes(u),Yn=u=>/^-?[\d]+\/[0-1]\d$/.test(u),yr=" — ";function Zt(u){return u.year+"/"+mt(u.month)}const $o=it({name:"QDate",props:{...Ts,...kn,...Bt,modelValue:{required:!0,validator:u=>typeof u=="string"||Array.isArray(u)===!0||Object(u)===u||u===null},multiple:Boolean,range:Boolean,title:String,subtitle:String,mask:{...Ts.mask,default:"YYYY/MM/DD"},defaultYearMonth:{type:String,validator:Yn},yearsInMonthView:Boolean,events:[Array,Function],eventColor:[String,Function],emitImmediately:Boolean,options:[Array,Function],navigationMinYearMonth:{type:String,validator:Yn},navigationMaxYearMonth:{type:String,validator:Yn},noUnset:Boolean,firstDayOfWeek:[String,Number],todayBtn:Boolean,minimal:Boolean,defaultView:{type:String,default:"Calendar",validator:js}},emits:[...vu,"rangeStart","rangeEnd","navigation"],setup(u,{slots:P,emit:t}){const{proxy:v}=C.getCurrentInstance(),{$q:b}=v,f=Dt(u,b),{getCache:o}=fu(),{tabindex:a,headerClass:n,getLocale:e,getCurrentDate:r}=yu(u,b);let l;const s=Ia(u),i=ro(s),d=C.ref(null),h=C.ref(He()),c=C.ref(e()),m=C.computed(()=>He()),p=C.computed(()=>e()),x=C.computed(()=>r()),k=C.ref(Fe(h.value,c.value)),A=C.ref(u.defaultView),N=C.computed(()=>b.lang.rtl===!0?"right":"left"),q=C.ref(N.value),D=C.ref(N.value),F=k.value.year,L=C.ref(F-F%Ht-(F<0?Ht:0)),V=C.ref(null),z=C.computed(()=>{const te=u.landscape===!0?"landscape":"portrait";return`q-date q-date--${te} q-date--${te}-${u.minimal===!0?"minimal":"standard"}`+(f.value===!0?" q-date--dark q-dark":"")+(u.bordered===!0?" q-date--bordered":"")+(u.square===!0?" q-date--square no-border-radius":"")+(u.flat===!0?" q-date--flat no-shadow":"")+(u.disable===!0?" disabled":u.readonly===!0?" q-date--readonly":"")}),M=C.computed(()=>u.color||"primary"),T=C.computed(()=>u.textColor||"white"),S=C.computed(()=>u.emitImmediately===!0&&u.multiple!==!0&&u.range!==!0),g=C.computed(()=>Array.isArray(u.modelValue)===!0?u.modelValue:u.modelValue!==null&&u.modelValue!==void 0?[u.modelValue]:[]),y=C.computed(()=>g.value.filter(te=>typeof te=="string").map(te=>ze(te,h.value,c.value)).filter(te=>te.dateHash!==null&&te.day!==null&&te.month!==null&&te.year!==null)),w=C.computed(()=>{const te=K=>ze(K,h.value,c.value);return g.value.filter(K=>Ao(K)===!0&&K.from!==void 0&&K.to!==void 0).map(K=>({from:te(K.from),to:te(K.to)})).filter(K=>K.from.dateHash!==null&&K.to.dateHash!==null&&K.from.dateHash<K.to.dateHash)}),_=C.computed(()=>u.calendar!=="persian"?te=>new Date(te.year,te.month-1,te.day):te=>{const K=Es(te.year,te.month,te.day);return new Date(K.gy,K.gm-1,K.gd)}),E=C.computed(()=>u.calendar==="persian"?Kt:(te,K,re)=>qo(new Date(te.year,te.month-1,te.day,te.hour,te.minute,te.second,te.millisecond),K===void 0?h.value:K,re===void 0?c.value:re,te.year,te.timezoneOffset)),O=C.computed(()=>y.value.length+w.value.reduce((te,K)=>te+1+Fi(_.value(K.to),_.value(K.from)),0)),j=C.computed(()=>{if(u.title!==void 0&&u.title!==null&&u.title.length!==0)return u.title;if(V.value!==null){const re=V.value.init,le=_.value(re);return c.value.daysShort[le.getDay()]+", "+c.value.monthsShort[re.month-1]+" "+re.day+yr+"?"}if(O.value===0)return yr;if(O.value>1)return`${O.value} ${c.value.pluralDay}`;const te=y.value[0],K=_.value(te);return isNaN(K.valueOf())===!0?yr:c.value.headerTitle!==void 0?c.value.headerTitle(K,te):c.value.daysShort[K.getDay()]+", "+c.value.monthsShort[te.month-1]+" "+te.day}),H=C.computed(()=>y.value.concat(w.value.map(K=>K.from)).sort((K,re)=>K.year-re.year||K.month-re.month)[0]),U=C.computed(()=>y.value.concat(w.value.map(K=>K.to)).sort((K,re)=>re.year-K.year||re.month-K.month)[0]),X=C.computed(()=>{if(u.subtitle!==void 0&&u.subtitle!==null&&u.subtitle.length!==0)return u.subtitle;if(O.value===0)return yr;if(O.value>1){const te=H.value,K=U.value,re=c.value.monthsShort;return re[te.month-1]+(te.year!==K.year?" "+te.year+yr+re[K.month-1]+" ":te.month!==K.month?yr+re[K.month-1]:"")+" "+K.year}return y.value[0].year}),B=C.computed(()=>{const te=[b.iconSet.datetime.arrowLeft,b.iconSet.datetime.arrowRight];return b.lang.rtl===!0?te.reverse():te}),W=C.computed(()=>u.firstDayOfWeek!==void 0?Number(u.firstDayOfWeek):c.value.firstDayOfWeek),I=C.computed(()=>{const te=c.value.daysShort,K=W.value;return K>0?te.slice(K,7).concat(te.slice(0,K)):te}),R=C.computed(()=>{const te=k.value;return u.calendar!=="persian"?new Date(te.year,te.month,0).getDate():un(te.year,te.month)}),$=C.computed(()=>typeof u.eventColor=="function"?u.eventColor:()=>u.eventColor),Y=C.computed(()=>{if(u.navigationMinYearMonth===void 0)return null;const te=u.navigationMinYearMonth.split("/");return{year:parseInt(te[0],10),month:parseInt(te[1],10)}}),J=C.computed(()=>{if(u.navigationMaxYearMonth===void 0)return null;const te=u.navigationMaxYearMonth.split("/");return{year:parseInt(te[0],10),month:parseInt(te[1],10)}}),Z=C.computed(()=>{const te={month:{prev:!0,next:!0},year:{prev:!0,next:!0}};return Y.value!==null&&Y.value.year>=k.value.year&&(te.year.prev=!1,Y.value.year===k.value.year&&Y.value.month>=k.value.month&&(te.month.prev=!1)),J.value!==null&&J.value.year<=k.value.year&&(te.year.next=!1,J.value.year===k.value.year&&J.value.month<=k.value.month&&(te.month.next=!1)),te}),ee=C.computed(()=>{const te={};return y.value.forEach(K=>{const re=Zt(K);te[re]===void 0&&(te[re]=[]),te[re].push(K.day)}),te}),ae=C.computed(()=>{const te={};return w.value.forEach(K=>{const re=Zt(K.from),le=Zt(K.to);if(te[re]===void 0&&(te[re]=[]),te[re].push({from:K.from.day,to:re===le?K.to.day:void 0,range:K}),re<le){let pe;const{year:Me,month:be}=K.from,ke=be<12?{year:Me,month:be+1}:{year:Me+1,month:1};for(;(pe=Zt(ke))<=le;)te[pe]===void 0&&(te[pe]=[]),te[pe].push({from:void 0,to:pe===le?K.to.day:void 0,range:K}),ke.month++,ke.month>12&&(ke.year++,ke.month=1)}}),te}),se=C.computed(()=>{if(V.value===null)return;const{init:te,initHash:K,final:re,finalHash:le}=V.value,[pe,Me]=K<=le?[te,re]:[re,te],be=Zt(pe),ke=Zt(Me);if(be!==G.value&&ke!==G.value)return;const Re={};return be===G.value?(Re.from=pe.day,Re.includeFrom=!0):Re.from=1,ke===G.value?(Re.to=Me.day,Re.includeTo=!0):Re.to=R.value,Re}),G=C.computed(()=>Zt(k.value)),ne=C.computed(()=>{const te={};if(u.options===void 0){for(let re=1;re<=R.value;re++)te[re]=!0;return te}const K=typeof u.options=="function"?u.options:re=>u.options.includes(re);for(let re=1;re<=R.value;re++){const le=G.value+"/"+mt(re);te[re]=K(le)}return te}),ie=C.computed(()=>{const te={};if(u.events===void 0)for(let K=1;K<=R.value;K++)te[K]=!1;else{const K=typeof u.events=="function"?u.events:re=>u.events.includes(re);for(let re=1;re<=R.value;re++){const le=G.value+"/"+mt(re);te[re]=K(le)===!0&&$.value(le)}}return te}),fe=C.computed(()=>{let te,K;const{year:re,month:le}=k.value;if(u.calendar!=="persian")te=new Date(re,le-1,1),K=new Date(re,le-1,0).getDate();else{const pe=Es(re,le,1);te=new Date(pe.gy,pe.gm-1,pe.gd);let Me=le-1,be=re;Me===0&&(Me=12,be--),K=un(be,Me)}return{days:te.getDay()-W.value-1,endDay:K}}),ce=C.computed(()=>{const te=[],{days:K,endDay:re}=fe.value,le=K<0?K+7:K;if(le<6)for(let be=re-le;be<=re;be++)te.push({i:be,fill:!0});const pe=te.length;for(let be=1;be<=R.value;be++){const ke={i:be,event:ie.value[be],classes:[]};ne.value[be]===!0&&(ke.in=!0,ke.flat=!0),te.push(ke)}if(ee.value[G.value]!==void 0&&ee.value[G.value].forEach(be=>{const ke=pe+be-1;Object.assign(te[ke],{selected:!0,unelevated:!0,flat:!1,color:M.value,textColor:T.value})}),ae.value[G.value]!==void 0&&ae.value[G.value].forEach(be=>{if(be.from!==void 0){const ke=pe+be.from-1,Re=pe+(be.to||R.value)-1;for(let $e=ke;$e<=Re;$e++)Object.assign(te[$e],{range:be.range,unelevated:!0,color:M.value,textColor:T.value});Object.assign(te[ke],{rangeFrom:!0,flat:!1}),be.to!==void 0&&Object.assign(te[Re],{rangeTo:!0,flat:!1})}else if(be.to!==void 0){const ke=pe+be.to-1;for(let Re=pe;Re<=ke;Re++)Object.assign(te[Re],{range:be.range,unelevated:!0,color:M.value,textColor:T.value});Object.assign(te[ke],{flat:!1,rangeTo:!0})}else{const ke=pe+R.value-1;for(let Re=pe;Re<=ke;Re++)Object.assign(te[Re],{range:be.range,unelevated:!0,color:M.value,textColor:T.value})}}),se.value!==void 0){const be=pe+se.value.from-1,ke=pe+se.value.to-1;for(let Re=be;Re<=ke;Re++)te[Re].color=M.value,te[Re].editRange=!0;se.value.includeFrom===!0&&(te[be].editRangeFrom=!0),se.value.includeTo===!0&&(te[ke].editRangeTo=!0)}k.value.year===x.value.year&&k.value.month===x.value.month&&(te[pe+x.value.day-1].today=!0);const Me=te.length%7;if(Me>0){const be=7-Me;for(let ke=1;ke<=be;ke++)te.push({i:ke,fill:!0})}return te.forEach(be=>{let ke="q-date__calendar-item ";be.fill===!0?ke+="q-date__calendar-item--fill":(ke+=`q-date__calendar-item--${be.in===!0?"in":"out"}`,be.range!==void 0&&(ke+=` q-date__range${be.rangeTo===!0?"-to":be.rangeFrom===!0?"-from":""}`),be.editRange===!0&&(ke+=` q-date__edit-range${be.editRangeFrom===!0?"-from":""}${be.editRangeTo===!0?"-to":""}`),(be.range!==void 0||be.editRange===!0)&&(ke+=` text-${be.color}`)),be.classes=ke}),te}),de=C.computed(()=>u.disable===!0?{"aria-disabled":"true"}:{});C.watch(()=>u.modelValue,te=>{if(l===JSON.stringify(te))l=0;else{const K=Fe(h.value,c.value);Je(K.year,K.month,K)}}),C.watch(A,()=>{d.value!==null&&v.$el.contains(document.activeElement)===!0&&d.value.focus()}),C.watch(()=>k.value.year+"|"+k.value.month,()=>{t("navigation",{year:k.value.year,month:k.value.month})}),C.watch(m,te=>{we(te,c.value,"mask"),h.value=te}),C.watch(p,te=>{we(h.value,te,"locale"),c.value=te});function me(te){l=JSON.stringify(te)}function ge(){const{year:te,month:K,day:re}=x.value,le={...k.value,year:te,month:K,day:re},pe=ee.value[Zt(le)];(pe===void 0||pe.includes(le.day)===!1)&&ot(le),Ee(le.year,le.month)}function _e(te){js(te)===!0&&(A.value=te)}function je(te,K){["month","year"].includes(te)&&(te==="month"?Pe:Se)(K===!0?-1:1)}function Ee(te,K){A.value="Calendar",Je(te,K)}function Te(te,K){if(u.range===!1||!te){V.value=null;return}const re=Object.assign({...k.value},te),le=K!==void 0?Object.assign({...k.value},K):re;V.value={init:re,initHash:Kt(re),final:le,finalHash:Kt(le)},Ee(re.year,re.month)}function He(){return u.calendar==="persian"?"YYYY/MM/DD":u.mask}function ze(te,K,re){return zo(te,K,re,u.calendar,{hour:0,minute:0,second:0,millisecond:0})}function Fe(te,K){const re=Array.isArray(u.modelValue)===!0?u.modelValue:u.modelValue?[u.modelValue]:[];if(re.length===0)return qe();const le=re[re.length-1],pe=ze(le.from!==void 0?le.from:le,te,K);return pe.dateHash===null?qe():pe}function qe(){let te,K;if(u.defaultYearMonth!==void 0){const re=u.defaultYearMonth.split("/");te=parseInt(re[0],10),K=parseInt(re[1],10)}else{const re=x.value!==void 0?x.value:r();te=re.year,K=re.month}return{year:te,month:K,day:1,hour:0,minute:0,second:0,millisecond:0,dateHash:te+"/"+mt(K)+"/01"}}function Pe(te){let K=k.value.year,re=Number(k.value.month)+te;re===13?(re=1,K++):re===0&&(re=12,K--),Je(K,re),S.value===!0&&rt("month")}function Se(te){const K=Number(k.value.year)+te;Je(K,k.value.month),S.value===!0&&rt("year")}function Be(te){Je(te,k.value.month),A.value=u.defaultView==="Years"?"Months":"Calendar",S.value===!0&&rt("year")}function Ve(te){Je(k.value.year,te),A.value="Calendar",S.value===!0&&rt("month")}function Le(te,K){(ee.value[K]?.includes(te.day)===!0?he:ot)(te)}function Ze(te){return{year:te.year,month:te.month,day:te.day}}function Je(te,K,re){if(Y.value!==null&&te<=Y.value.year&&((K<Y.value.month||te<Y.value.year)&&(K=Y.value.month),te=Y.value.year),J.value!==null&&te>=J.value.year&&((K>J.value.month||te>J.value.year)&&(K=J.value.month),te=J.value.year),re!==void 0){const{hour:pe,minute:Me,second:be,millisecond:ke,timezoneOffset:Re,timeHash:$e}=re;Object.assign(k.value,{hour:pe,minute:Me,second:be,millisecond:ke,timezoneOffset:Re,timeHash:$e})}const le=te+"/"+mt(K)+"/01";le!==k.value.dateHash&&(q.value=k.value.dateHash<le==(b.lang.rtl!==!0)?"left":"right",te!==k.value.year&&(D.value=q.value),C.nextTick(()=>{L.value=te-te%Ht-(te<0?Ht:0),Object.assign(k.value,{year:te,month:K,day:1,dateHash:le})}))}function Ue(te,K,re){const le=te!==null&&te.length===1&&u.multiple===!1?te[0]:te,{reason:pe,details:Me}=et(K,re);me(le),t("update:modelValue",le,pe,Me)}function rt(te){const K=y.value[0]!==void 0&&y.value[0].dateHash!==null?{...y.value[0]}:{...k.value};C.nextTick(()=>{K.year=k.value.year,K.month=k.value.month;const re=u.calendar!=="persian"?new Date(K.year,K.month,0).getDate():un(K.year,K.month);K.day=Math.min(Math.max(1,K.day),re);const le=We(K),{details:pe}=et("",K);me(le),t("update:modelValue",le,te,pe)})}function et(te,K){return K.from!==void 0?{reason:`${te}-range`,details:{...Ze(K.target),from:Ze(K.from),to:Ze(K.to)}}:{reason:`${te}-day`,details:Ze(K)}}function We(te,K,re){return te.from!==void 0?{from:E.value(te.from,K,re),to:E.value(te.to,K,re)}:E.value(te,K,re)}function ot(te){let K;if(u.multiple===!0)if(te.from!==void 0){const re=Kt(te.from),le=Kt(te.to),pe=y.value.filter(be=>be.dateHash<re||be.dateHash>le),Me=w.value.filter(({from:be,to:ke})=>ke.dateHash<re||be.dateHash>le);K=pe.concat(Me).concat(te).map(be=>We(be))}else{const re=g.value.slice();re.push(We(te)),K=re}else K=We(te);Ue(K,"add",te)}function he(te){if(u.noUnset===!0)return;let K=null;if(u.multiple===!0&&Array.isArray(u.modelValue)===!0){const re=We(te);te.from!==void 0?K=u.modelValue.filter(le=>le.from!==void 0?le.from!==re.from&&le.to!==re.to:!0):K=u.modelValue.filter(le=>le!==re),K.length===0&&(K=null)}Ue(K,"remove",te)}function we(te,K,re){const le=y.value.concat(w.value).map(Me=>We(Me,te,K)).filter(Me=>Me.from!==void 0?Me.from.dateHash!==null&&Me.to.dateHash!==null:Me.dateHash!==null),pe=(u.multiple===!0?le:le[0])||null;me(pe),t("update:modelValue",pe,re)}function Ae(){if(u.minimal!==!0)return C.h("div",{class:"q-date__header "+n.value},[C.h("div",{class:"relative-position"},[C.h(C.Transition,{name:"q-transition--fade"},()=>C.h("div",{key:"h-yr-"+X.value,class:"q-date__header-subtitle q-date__header-link "+(A.value==="Years"?"q-date__header-link--active":"cursor-pointer"),tabindex:a.value,...o("vY",{onClick(){A.value="Years"},onKeyup(te){te.keyCode===13&&(A.value="Years")}})},[X.value]))]),C.h("div",{class:"q-date__header-title relative-position flex no-wrap"},[C.h("div",{class:"relative-position col"},[C.h(C.Transition,{name:"q-transition--fade"},()=>C.h("div",{key:"h-sub"+j.value,class:"q-date__header-title-label q-date__header-link "+(A.value==="Calendar"?"q-date__header-link--active":"cursor-pointer"),tabindex:a.value,...o("vC",{onClick(){A.value="Calendar"},onKeyup(te){te.keyCode===13&&(A.value="Calendar")}})},[j.value]))]),u.todayBtn===!0?C.h(wt,{class:"q-date__header-today self-start",icon:b.iconSet.datetime.today,"aria-label":b.lang.date.today,flat:!0,size:"sm",round:!0,tabindex:a.value,onClick:ge}):null])])}function Ie({label:te,type:K,key:re,dir:le,goTo:pe,boundaries:Me,cls:be}){return[C.h("div",{class:"row items-center q-date__arrow"},[C.h(wt,{round:!0,dense:!0,size:"sm",flat:!0,icon:B.value[0],"aria-label":K==="Years"?b.lang.date.prevYear:b.lang.date.prevMonth,tabindex:a.value,disable:Me.prev===!1,...o("go-#"+K,{onClick(){pe(-1)}})})]),C.h("div",{class:"relative-position overflow-hidden flex flex-center"+be},[C.h(C.Transition,{name:"q-transition--jump-"+le},()=>C.h("div",{key:re},[C.h(wt,{flat:!0,dense:!0,noCaps:!0,label:te,tabindex:a.value,...o("view#"+K,{onClick:()=>{A.value=K}})})]))]),C.h("div",{class:"row items-center q-date__arrow"},[C.h(wt,{round:!0,dense:!0,size:"sm",flat:!0,icon:B.value[1],"aria-label":K==="Years"?b.lang.date.nextYear:b.lang.date.nextMonth,tabindex:a.value,disable:Me.next===!1,...o("go+#"+K,{onClick(){pe(1)}})})])]}const Ce={Calendar:()=>[C.h("div",{key:"calendar-view",class:"q-date__view q-date__calendar"},[C.h("div",{class:"q-date__navigation row items-center no-wrap"},Ie({label:c.value.months[k.value.month-1],type:"Months",key:k.value.month,dir:q.value,goTo:Pe,boundaries:Z.value.month,cls:" col"}).concat(Ie({label:k.value.year,type:"Years",key:k.value.year,dir:D.value,goTo:Se,boundaries:Z.value.year,cls:""}))),C.h("div",{class:"q-date__calendar-weekdays row items-center no-wrap"},I.value.map(te=>C.h("div",{class:"q-date__calendar-item"},[C.h("div",te)]))),C.h("div",{class:"q-date__calendar-days-container relative-position overflow-hidden"},[C.h(C.Transition,{name:"q-transition--slide-"+q.value},()=>C.h("div",{key:G.value,class:"q-date__calendar-days fit"},ce.value.map(te=>C.h("div",{class:te.classes},[te.in===!0?C.h(wt,{class:te.today===!0?"q-date__today":"",dense:!0,flat:te.flat,unelevated:te.unelevated,color:te.color,textColor:te.textColor,label:te.i,tabindex:a.value,...o("day#"+te.i,{onClick:()=>{Ye(te.i)},onMouseover:()=>{Xe(te.i)}})},te.event!==!1?()=>C.h("div",{class:"q-date__event bg-"+te.event}):null):C.h("div",""+te.i)]))))])])],Months(){const te=k.value.year===x.value.year,K=le=>Y.value!==null&&k.value.year===Y.value.year&&Y.value.month>le||J.value!==null&&k.value.year===J.value.year&&J.value.month<le,re=c.value.monthsShort.map((le,pe)=>{const Me=k.value.month===pe+1;return C.h("div",{class:"q-date__months-item flex flex-center"},[C.h(wt,{class:te===!0&&x.value.month===pe+1?"q-date__today":null,flat:Me!==!0,label:le,unelevated:Me,color:Me===!0?M.value:null,textColor:Me===!0?T.value:null,tabindex:a.value,disable:K(pe+1),...o("month#"+pe,{onClick:()=>{Ve(pe+1)}})})])});return u.yearsInMonthView===!0&&re.unshift(C.h("div",{class:"row no-wrap full-width"},[Ie({label:k.value.year,type:"Years",key:k.value.year,dir:D.value,goTo:Se,boundaries:Z.value.year,cls:" col"})])),C.h("div",{key:"months-view",class:"q-date__view q-date__months flex flex-center"},re)},Years(){const te=L.value,K=te+Ht,re=[],le=pe=>Y.value!==null&&Y.value.year>pe||J.value!==null&&J.value.year<pe;for(let pe=te;pe<=K;pe++){const Me=k.value.year===pe;re.push(C.h("div",{class:"q-date__years-item flex flex-center"},[C.h(wt,{key:"yr"+pe,class:x.value.year===pe?"q-date__today":null,flat:!Me,label:pe,dense:!0,unelevated:Me,color:Me===!0?M.value:null,textColor:Me===!0?T.value:null,tabindex:a.value,disable:le(pe),...o("yr#"+pe,{onClick:()=>{Be(pe)}})})]))}return C.h("div",{class:"q-date__view q-date__years flex flex-center"},[C.h("div",{class:"col-auto"},[C.h(wt,{round:!0,dense:!0,flat:!0,icon:B.value[0],"aria-label":b.lang.date.prevRangeYears(Ht),tabindex:a.value,disable:le(te),...o("y-",{onClick:()=>{L.value-=Ht}})})]),C.h("div",{class:"q-date__years-content col self-stretch row items-center"},re),C.h("div",{class:"col-auto"},[C.h(wt,{round:!0,dense:!0,flat:!0,icon:B.value[1],"aria-label":b.lang.date.nextRangeYears(Ht),tabindex:a.value,disable:le(K),...o("y+",{onClick:()=>{L.value+=Ht}})})])])}};function Ye(te){const K={...k.value,day:te};if(u.range===!1){Le(K,G.value);return}if(V.value===null){const re=ce.value.find(pe=>pe.fill!==!0&&pe.i===te);if(u.noUnset!==!0&&re.range!==void 0){he({target:K,from:re.range.from,to:re.range.to});return}if(re.selected===!0){he(K);return}const le=Kt(K);V.value={init:K,initHash:le,final:K,finalHash:le},t("rangeStart",Ze(K))}else{const re=V.value.initHash,le=Kt(K),pe=re<=le?{from:V.value.init,to:K}:{from:K,to:V.value.init};V.value=null,ot(re===le?K:{target:K,...pe}),t("rangeEnd",{from:Ze(pe.from),to:Ze(pe.to)})}}function Xe(te){if(V.value!==null){const K={...k.value,day:te};Object.assign(V.value,{final:K,finalHash:Kt(K)})}}return Object.assign(v,{setToday:ge,setView:_e,offsetCalendar:je,setCalendarTo:Ee,setEditingRange:Te}),()=>{const te=[C.h("div",{class:"q-date__content col relative-position"},[C.h(C.Transition,{name:"q-transition--fade"},Ce[A.value])])],K=vt(P.default);return K!==void 0&&te.push(C.h("div",{class:"q-date__actions"},K)),u.name!==void 0&&u.disable!==!0&&i(te,"push"),C.h("div",{class:z.value,...de.value},[Ae(),C.h("div",{ref:d,class:"q-date__main col column",tabindex:-1},te)])}}}),Vo=it({name:"QPopupProxy",props:{...co,breakpoint:{type:[String,Number],default:450}},emits:["show","hide"],setup(u,{slots:P,emit:t,attrs:v}){const{proxy:b}=C.getCurrentInstance(),{$q:f}=b,o=C.ref(!1),a=C.ref(null),n=C.computed(()=>parseInt(u.breakpoint,10)),{canShow:e}=Si({showing:o});function r(){return f.screen.width<n.value||f.screen.height<n.value?"dialog":"menu"}const l=C.ref(r()),s=C.computed(()=>l.value==="menu"?{maxHeight:"99vh"}:{});C.watch(()=>r(),h=>{o.value!==!0&&(l.value=h)});function i(h){o.value=!0,t("show",h)}function d(h){o.value=!1,l.value=r(),t("hide",h)}return Object.assign(b,{show(h){e(h)===!0&&a.value.show(h)},hide(h){a.value.hide(h)},toggle(h){a.value.toggle(h)}}),Lt(b,"currentComponent",()=>({type:l.value,ref:a.value})),()=>{const h={ref:a,...s.value,...v,onShow:i,onHide:d};let c;return l.value==="dialog"?c=So:(c=En,Object.assign(h,{target:u.target,contextMenu:u.contextMenu,noParentEvent:!0,separateClosePopup:!0})),C.h(c,h,P.default)}}}),Is={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},xn={"#":{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:u=>u.toLocaleUpperCase()},a:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:u=>u.toLocaleLowerCase()},X:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:u=>u.toLocaleUpperCase()},x:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:u=>u.toLocaleLowerCase()}},Ho=Object.keys(xn);Ho.forEach(u=>{xn[u].regex=new RegExp(xn[u].pattern)});const Vu=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+Ho.join("")+"])|(.)","g"),Ps=/[.*+?^${}()|[\]\\]/g,Ct="",Hu={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean};function Uu(u,P,t,v){let b,f,o,a,n,e;const r=C.ref(null),l=C.ref(i());function s(){return u.autogrow===!0||["textarea","text","search","url","tel","password"].includes(u.type)}C.watch(()=>u.type+u.autogrow,h),C.watch(()=>u.mask,F=>{if(F!==void 0)c(l.value,!0);else{const L=q(l.value);h(),u.modelValue!==L&&P("update:modelValue",L)}}),C.watch(()=>u.fillMask+u.reverseFillMask,()=>{r.value===!0&&c(l.value,!0)}),C.watch(()=>u.unmaskedValue,()=>{r.value===!0&&c(l.value)});function i(){if(h(),r.value===!0){const F=A(q(u.modelValue));return u.fillMask!==!1?D(F):F}return u.modelValue}function d(F){if(F<b.length)return b.slice(-F);let L="",V=b;const z=V.indexOf(Ct);if(z!==-1){for(let M=F-V.length;M>0;M--)L+=Ct;V=V.slice(0,z)+L+V.slice(z)}return V}function h(){if(r.value=u.mask!==void 0&&u.mask.length!==0&&s(),r.value===!1){a=void 0,b="",f="";return}const F=Is[u.mask]===void 0?u.mask:Is[u.mask],L=typeof u.fillMask=="string"&&u.fillMask.length!==0?u.fillMask.slice(0,1):"_",V=L.replace(Ps,"\\$&"),z=[],M=[],T=[];let S=u.reverseFillMask===!0,g="",y="";F.replace(Vu,(O,j,H,U,X)=>{if(U!==void 0){const B=xn[U];T.push(B),y=B.negate,S===!0&&(M.push("(?:"+y+"+)?("+B.pattern+"+)?(?:"+y+"+)?("+B.pattern+"+)?"),S=!1),M.push("(?:"+y+"+)?("+B.pattern+")?")}else if(H!==void 0)g="\\"+(H==="\\"?"":H),T.push(H),z.push("([^"+g+"]+)?"+g+"?");else{const B=j!==void 0?j:X;g=B==="\\"?"\\\\\\\\":B.replace(Ps,"\\\\$&"),T.push(B),z.push("([^"+g+"]+)?"+g+"?")}});const w=new RegExp("^"+z.join("")+"("+(g===""?".":"[^"+g+"]")+"+)?"+(g===""?"":"["+g+"]*")+"$"),_=M.length-1,E=M.map((O,j)=>j===0&&u.reverseFillMask===!0?new RegExp("^"+V+"*"+O):j===_?new RegExp("^"+O+"("+(y===""?".":y)+"+)?"+(u.reverseFillMask===!0?"$":V+"*")):new RegExp("^"+O));o=T,a=O=>{const j=w.exec(u.reverseFillMask===!0?O:O.slice(0,T.length+1));j!==null&&(O=j.slice(1).join(""));const H=[],U=E.length;for(let X=0,B=O;X<U;X++){const W=E[X].exec(B);if(W===null)break;B=B.slice(W.shift().length),H.push(...W)}return H.length!==0?H.join(""):O},b=T.map(O=>typeof O=="string"?O:Ct).join(""),f=b.split(Ct).join(L)}function c(F,L,V){const z=v.value,M=z.selectionEnd,T=z.value.length-M,S=q(F);L===!0&&h();const g=A(S),y=u.fillMask!==!1?D(g):g,w=l.value!==y;z.value!==y&&(z.value=y),w===!0&&(l.value=y),document.activeElement===z&&C.nextTick(()=>{if(y===f){const E=u.reverseFillMask===!0?f.length:0;z.setSelectionRange(E,E,"forward");return}if(V==="insertFromPaste"&&u.reverseFillMask!==!0){const E=z.selectionEnd;let O=M-1;for(let j=n;j<=O&&j<E;j++)b[j]!==Ct&&O++;p.right(z,O);return}if(["deleteContentBackward","deleteContentForward"].indexOf(V)!==-1){const E=u.reverseFillMask===!0?M===0?y.length>g.length?1:0:Math.max(0,y.length-(y===f?0:Math.min(g.length,T)+1))+1:M;z.setSelectionRange(E,E,"forward");return}if(u.reverseFillMask===!0)if(w===!0){const E=Math.max(0,y.length-(y===f?0:Math.min(g.length,T+1)));E===1&&M===1?z.setSelectionRange(E,E,"forward"):p.rightReverse(z,E)}else{const E=y.length-T;z.setSelectionRange(E,E,"backward")}else if(w===!0){const E=Math.max(0,b.indexOf(Ct),Math.min(g.length,M)-1);p.right(z,E)}else{const E=M-1;p.right(z,E)}});const _=u.unmaskedValue===!0?q(y):y;String(u.modelValue)!==_&&(u.modelValue!==null||_!=="")&&t(_,!0)}function m(F,L,V){const z=A(q(F.value));L=Math.max(0,b.indexOf(Ct),Math.min(z.length,L)),n=L,F.setSelectionRange(L,V,"forward")}const p={left(F,L){const V=b.slice(L-1).indexOf(Ct)===-1;let z=Math.max(0,L-1);for(;z>=0;z--)if(b[z]===Ct){L=z,V===!0&&L++;break}if(z<0&&b[L]!==void 0&&b[L]!==Ct)return p.right(F,0);L>=0&&F.setSelectionRange(L,L,"backward")},right(F,L){const V=F.value.length;let z=Math.min(V,L+1);for(;z<=V;z++)if(b[z]===Ct){L=z;break}else b[z-1]===Ct&&(L=z);if(z>V&&b[L-1]!==void 0&&b[L-1]!==Ct)return p.left(F,V);F.setSelectionRange(L,L,"forward")},leftReverse(F,L){const V=d(F.value.length);let z=Math.max(0,L-1);for(;z>=0;z--)if(V[z-1]===Ct){L=z;break}else if(V[z]===Ct&&(L=z,z===0))break;if(z<0&&V[L]!==void 0&&V[L]!==Ct)return p.rightReverse(F,0);L>=0&&F.setSelectionRange(L,L,"backward")},rightReverse(F,L){const V=F.value.length,z=d(V),M=z.slice(0,L+1).indexOf(Ct)===-1;let T=Math.min(V,L+1);for(;T<=V;T++)if(z[T-1]===Ct){L=T,L>0&&M===!0&&L--;break}if(T>V&&z[L-1]!==void 0&&z[L-1]!==Ct)return p.leftReverse(F,V);F.setSelectionRange(L,L,"forward")}};function x(F){P("click",F),e=void 0}function k(F){if(P("keydown",F),gi(F)===!0||F.altKey===!0)return;const L=v.value,V=L.selectionStart,z=L.selectionEnd;if(F.shiftKey||(e=void 0),F.keyCode===37||F.keyCode===39){F.shiftKey&&e===void 0&&(e=L.selectionDirection==="forward"?V:z);const M=p[(F.keyCode===39?"right":"left")+(u.reverseFillMask===!0?"Reverse":"")];if(F.preventDefault(),M(L,e===V?z:V),F.shiftKey){const T=L.selectionStart;L.setSelectionRange(Math.min(e,T),Math.max(e,T),"forward")}}else F.keyCode===8&&u.reverseFillMask!==!0&&V===z?(p.left(L,V),L.setSelectionRange(L.selectionStart,z,"backward")):F.keyCode===46&&u.reverseFillMask===!0&&V===z&&(p.rightReverse(L,z),L.setSelectionRange(V,L.selectionEnd,"forward"))}function A(F){if(F==null||F==="")return"";if(u.reverseFillMask===!0)return N(F);const L=o;let V=0,z="";for(let M=0;M<L.length;M++){const T=F[V],S=L[M];if(typeof S=="string")z+=S;else if(T!==void 0&&S.regex.test(T))z+=S.transform!==void 0?S.transform(T):T,V++;else return z}return z}function N(F){const L=o,V=b.indexOf(Ct);let z=F.length-1,M="";for(let T=L.length-1;T>=0&&z!==-1;T--){const S=L[T];let g=F[z];if(typeof S=="string")M=S+M;else if(g!==void 0&&S.regex.test(g))do M=(S.transform!==void 0?S.transform(g):g)+M,z--,g=F[z];while(V===T&&g!==void 0&&S.regex.test(g));else return M}return M}function q(F){return typeof F!="string"||a===void 0?typeof F=="number"?a(""+F):F:a(F)}function D(F){return f.length-F.length<=0?F:u.reverseFillMask===!0&&F.length!==0?f.slice(0,-F.length)+F:F+f.slice(F.length)}return{innerValue:l,hasMask:r,moveCursorForPaste:m,updateMaskValue:c,onMaskedKeydown:k,onMaskedClick:x}}function Wu(u,P){function t(){const v=u.modelValue;try{const b="DataTransfer"in window?new DataTransfer:"ClipboardEvent"in window?new ClipboardEvent("").clipboardData:void 0;return Object(v)===v&&("length"in v?Array.from(v):[v]).forEach(f=>{b.items.add(f)}),{files:b.files}}catch{return{files:void 0}}}return C.computed(()=>{if(u.type==="file")return t()})}const Fr=it({name:"QInput",inheritAttrs:!1,props:{...Tn,...Hu,...kn,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:[...ji,"paste","change","keydown","click","animationend"],setup(u,{emit:P,attrs:t}){const{proxy:v}=C.getCurrentInstance(),{$q:b}=v,f={};let o=NaN,a,n,e=null,r;const l=C.ref(null),s=no(u),{innerValue:i,hasMask:d,moveCursorForPaste:h,updateMaskValue:c,onMaskedKeydown:m,onMaskedClick:p}=Uu(u,P,g,l),x=Wu(u),k=C.computed(()=>Dr(i.value)),A=To(T),N=Ii({changeEvent:!0}),q=C.computed(()=>u.type==="textarea"||u.autogrow===!0),D=C.computed(()=>q.value===!0||["text","search","url","tel","password"].includes(u.type)),F=C.computed(()=>{const j={...N.splitAttrs.listeners.value,onInput:T,onPaste:M,onChange:w,onBlur:_,onFocus:It};return j.onCompositionstart=j.onCompositionupdate=j.onCompositionend=A,d.value===!0&&(j.onKeydown=m,j.onClick=p),u.autogrow===!0&&(j.onAnimationend=S),j}),L=C.computed(()=>{const j={tabindex:0,"data-autofocus":u.autofocus===!0||void 0,rows:u.type==="textarea"?6:void 0,"aria-label":u.label,name:s.value,...N.splitAttrs.attributes.value,id:N.targetUid.value,maxlength:u.maxlength,disabled:u.disable===!0,readonly:u.readonly===!0};return q.value===!1&&(j.type=u.type),u.autogrow===!0&&(j.rows=1),j});C.watch(()=>u.type,()=>{l.value&&(l.value.value=u.modelValue)}),C.watch(()=>u.modelValue,j=>{if(d.value===!0){if(n===!0&&(n=!1,String(j)===o))return;c(j)}else i.value!==j&&(i.value=j,u.type==="number"&&f.hasOwnProperty("value")===!0&&(a===!0?a=!1:delete f.value));u.autogrow===!0&&C.nextTick(y)}),C.watch(()=>u.autogrow,j=>{j===!0?C.nextTick(y):l.value!==null&&t.rows>0&&(l.value.style.height="auto")}),C.watch(()=>u.dense,()=>{u.autogrow===!0&&C.nextTick(y)});function V(){Lr(()=>{const j=document.activeElement;l.value!==null&&l.value!==j&&(j===null||j.id!==N.targetUid.value)&&l.value.focus({preventScroll:!0})})}function z(){l.value?.select()}function M(j){if(d.value===!0&&u.reverseFillMask!==!0){const H=j.target;h(H,H.selectionStart,H.selectionEnd)}P("paste",j)}function T(j){if(!j||!j.target)return;if(u.type==="file"){P("update:modelValue",j.target.files);return}const H=j.target.value;if(j.target.qComposing===!0){f.value=H;return}if(d.value===!0)c(H,!1,j.inputType);else if(g(H),D.value===!0&&j.target===document.activeElement){const{selectionStart:U,selectionEnd:X}=j.target;U!==void 0&&X!==void 0&&C.nextTick(()=>{j.target===document.activeElement&&H.indexOf(j.target.value)===0&&j.target.setSelectionRange(U,X)})}u.autogrow===!0&&y()}function S(j){P("animationend",j),y()}function g(j,H){r=()=>{e=null,u.type!=="number"&&f.hasOwnProperty("value")===!0&&delete f.value,u.modelValue!==j&&o!==j&&(o=j,H===!0&&(n=!0),P("update:modelValue",j),C.nextTick(()=>{o===j&&(o=NaN)})),r=void 0},u.type==="number"&&(a=!0,f.value=j),u.debounce!==void 0?(e!==null&&clearTimeout(e),f.value=j,e=setTimeout(r,u.debounce)):r()}function y(){requestAnimationFrame(()=>{const j=l.value;if(j!==null){const H=j.parentNode.style,{scrollTop:U}=j,{overflowY:X,maxHeight:B}=b.platform.is.firefox===!0?{}:window.getComputedStyle(j),W=X!==void 0&&X!=="scroll";W===!0&&(j.style.overflowY="hidden"),H.marginBottom=j.scrollHeight-1+"px",j.style.height="1px",j.style.height=j.scrollHeight+"px",W===!0&&(j.style.overflowY=parseInt(B,10)<j.scrollHeight?"auto":"hidden"),H.marginBottom="",j.scrollTop=U}})}function w(j){A(j),e!==null&&(clearTimeout(e),e=null),r?.(),P("change",j.target.value)}function _(j){j!==void 0&&It(j),e!==null&&(clearTimeout(e),e=null),r?.(),a=!1,n=!1,delete f.value,u.type!=="file"&&setTimeout(()=>{l.value!==null&&(l.value.value=i.value!==void 0?i.value:"")})}function E(){return f.hasOwnProperty("value")===!0?f.value:i.value!==void 0?i.value:""}C.onBeforeUnmount(()=>{_()}),C.onMounted(()=>{u.autogrow===!0&&y()}),Object.assign(N,{innerValue:i,fieldClass:C.computed(()=>`q-${q.value===!0?"textarea":"input"}`+(u.autogrow===!0?" q-textarea--autogrow":"")),hasShadow:C.computed(()=>u.type!=="file"&&typeof u.shadowText=="string"&&u.shadowText.length!==0),inputRef:l,emitValue:g,hasValue:k,floatingLabel:C.computed(()=>k.value===!0&&(u.type!=="number"||isNaN(i.value)===!1)||Dr(u.displayValue)),getControl:()=>C.h(q.value===!0?"textarea":"input",{ref:l,class:["q-field__native q-placeholder",u.inputClass],style:u.inputStyle,...L.value,...F.value,...u.type!=="file"?{value:E()}:x.value}),getShadowControl:()=>C.h("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(q.value===!0?"":" text-no-wrap")},[C.h("span",{class:"invisible"},E()),C.h("span",u.shadowText)])});const O=Pi(N);return Object.assign(v,{focus:V,select:z,getNativeElement:()=>l.value}),Lt(v,"nativeEl",()=>l.value),O}});function Ns(u){if(u===!1)return 0;if(u===!0||u===void 0)return 1;const P=parseInt(u,10);return isNaN(P)?0:P}const Uo=di({name:"close-popup",beforeMount(u,{value:P}){const t={depth:Ns(P),handler(v){t.depth!==0&&setTimeout(()=>{const b=ol(u);b!==void 0&&al(b,v,t.depth)})},handlerKey(v){er(v,13)===!0&&t.handler(v)}};u.__qclosepopup=t,u.addEventListener("click",t.handler),u.addEventListener("keyup",t.handlerKey)},updated(u,{value:P,oldValue:t}){P!==t&&(u.__qclosepopup.depth=Ns(P))},beforeUnmount(u){const P=u.__qclosepopup;u.removeEventListener("click",P.handler),u.removeEventListener("keyup",P.handlerKey),delete u.__qclosepopup}});function Yu(u){return{entity:u.entity,dataCy:u.dataCy,defaultLabel:u.defaultLabel,routeName:u.routeName,shouldRender:u.customShouldRender||(({store:P})=>u.storeField?!!P[u.storeField]:!0),getLabel:u.getLabel||(u.labelField?({store:P})=>u.storeField&&P[u.storeField]?.[u.labelField]||u.defaultLabel:void 0),getColor:u.customGetColor||(({store:P})=>u.storeField&&P[u.storeField]?"primary":"dark"),getRouteParams:u.routeParamKey&&u.routeParamField?({store:P})=>({[u.routeParamKey]:u.storeField&&P[u.storeField]?.[u.routeParamField]}):void 0,clearActions:[...u.clearMethods?.map(P=>({store:t})=>t[P]?.())||[],...u.navActions?.map(P=>({navStore:t})=>P(t))||[]]}}const Wo=/^\d{2}-\d{2}-\d{4}$/;function Xu(u){const P=u.getTimezoneOffset()*6e4;return new Date(u.getTime()+P)}function Ir(u){const P=/^\d{4}-\d{2}-\d{2}$/,t=/^\d{2}-\d{2}-\d{4}$/;if(P.test(u))return u;if(t.test(u)){const v=u.split("-");return`${v[2]}-${v[1]}-${v[0]}`}return console.warn("'Invalid date format. Expected DD-MM-YYYY' or 'YYYY-MM-DD' but got: "+u),""}function zi(u,P,t,v=[]){const b=typeof u=="string"?new Date(Ir(u)):new Date(u);if(isNaN(b.getTime()))return!1;if(P){const f=typeof P=="string"?new Date(Ir(P)):new Date(P);if(b<f)return!1}if(t){const f=typeof t=="string"?new Date(Ir(t)):new Date(t);if(b>f)return!1}return!v.some(f=>{if(typeof f=="string"){const o=new Date(Ir(f));return b.getFullYear()===o.getFullYear()&&b.getMonth()===o.getMonth()&&b.getDate()===o.getDate()}else{if(f instanceof Date)return b.getFullYear()===f.getFullYear()&&b.getMonth()===f.getMonth()&&b.getDate()===f.getDate();{const o=new Date(f.start_date);o.setDate(o.getDate()-1);const a=new Date(f.end_date);return b>=o&&b<=a}}})}const sr={validateAndUpdate(u,P,t){if(!Wo.test(P))return u;const v=new Date(P),b=new Date(t?u.to:u.from);return t?v>b?{from:P,to:P}:{...u,from:P}:v<b?{from:P,to:P}:{...u,to:P}},handlePickerUpdate(u){return u===null?{from:"",to:""}:typeof u=="string"?{from:u,to:u}:u},reset(){return{from:"",to:""}},handleInput(u,P){typeof u=="string"&&P(u)}},Yo={days:["Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"],daysShort:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"],months:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"],monthsShort:["Janv","Févr","Mars","Avr","Mai","Juin","Juil","Août","Sept","Oct","Nov","Dec"],firstDayOfWeek:1,format24h:!0,pluralDay:"jours"},Ku={class:"columns justify-end"},Zu={class:"row items-center justify-end"},Gu=C.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(u,{emit:P}){const t=u,v=P,b=C.useAttrs(),f=C.ref(t.date),o=C.ref(t.date),a=C.computed(()=>r=>{const l=r.replace(/\//g,"-");return zi(l,t.minDate,t.maxDate,t.datesDisabled)}),n=r=>{f.value=r,o.value=r,v("update:date",r)},e=r=>{typeof r=="string"&&(f.value=r,o.value=r,v("update:date",r))};return C.watch(()=>t.date,r=>{r!==f.value&&(f.value=r,o.value=r)}),(r,l)=>(C.openBlock(),C.createElementBlock("div",Ku,[C.createVNode(Fr,C.mergeProps(C.unref(b),{class:"full-width","model-value":o.value,mask:"##-##-####",dense:"",label:r.label,"data-cy":"datePick",rules:r.required?[s=>!!s||r.requiredErrorMessage]:[],disable:r.disabled,outlined:r.outlined,placeholder:r.placeholder,"onUpdate:modelValue":e}),{append:C.withCtx(()=>[C.createVNode(kt,{name:"event",class:"cursor-pointer","data-testid":"calendar-icon-picker"},{default:C.withCtx(()=>[C.createVNode(Vo,{cover:"","transition-show":"scale","transition-hide":"scale"},{default:C.withCtx(()=>[C.createVNode($o,{mask:"DD-MM-YYYY","model-value":f.value,options:a.value,disable:r.disabled,"onUpdate:modelValue":n},{default:C.withCtx(()=>[C.createElementVNode("div",Zu,[C.withDirectives(C.createVNode(wt,{label:r.closeLabel,color:"primary",flat:""},null,8,["label"]),[[Uo]])])]),_:1},8,["model-value","options","disable"])]),_:1})]),_:1})]),_:1},16,["model-value","label","rules","disable","outlined","placeholder"])]))}}),Qu=vi(Gu,[["__scopeId","data-v-4f7c1791"]]),Ju={class:"row"},ec={class:"row no-wrap items-center"},tc={class:"row items-center justify-end"},rc={key:0,class:"row items-center text-warning text-caption"},nc={class:"row items-center justify-end q-ml-sm"},ic=C.defineComponent({__name:"DateRange",props:{from:{default:""},to:{default:""},labelStart:{default:"De"},labelEnd:{default:"à"},startDateHint:{default:""},resetLabel:{default:"Reset"},closeLabel:{default:"Close"},locale:{default:()=>Yo},required:{type:Boolean,default:!1},requiredErrorMessage:{default:"Field is required"},rules:{default:()=>[]},minDate:{default:void 0},maxDate:{default:void 0},datesDisabled:{default:()=>[]},highlightEvents:{default:()=>[]},disabled:{type:Boolean,default:!1},idCy:{default:"dateRange"}},emits:["update:dateRange"],setup(u,{expose:P,emit:t}){const v=u,b=t,f=C.ref({from:v.from,to:v.to}),o=C.computed(()=>`from-date-${v.idCy}`),a=C.computed(()=>`to-date-${v.idCy}`),n=C.computed(()=>[...v.required?[d=>!!d||v.requiredErrorMessage]:[],...v.rules]),e=C.computed(()=>d=>{const h=d.replace(/\//g,"-");return zi(h,v.minDate,v.maxDate,v.datesDisabled)}),r=d=>{sr.handleInput(d,h=>{f.value=sr.validateAndUpdate(f.value,h,!0)})},l=d=>{sr.handleInput(d,h=>{f.value=sr.validateAndUpdate(f.value,h,!1)})},s=d=>{f.value=sr.handlePickerUpdate(d)},i=()=>{f.value=sr.reset()};return C.watch(f,d=>{b("update:dateRange",{...d})},{deep:!0}),C.watch(()=>v.from,d=>{d!==f.value.from&&(f.value.from=d)}),C.watch(()=>v.to,d=>{d!==f.value.to&&(f.value.to=d)}),P({resetDate:i}),(d,h)=>(C.openBlock(),C.createElementBlock("div",Ju,[C.createElementVNode("div",ec,[C.createVNode(Fr,C.mergeProps(d.$attrs,{"data-cy":o.value,"model-value":f.value.from,mask:"##-##-####",label:d.labelStart,rules:n.value,disable:d.disabled,"hide-bottom-space":"","onUpdate:modelValue":r}),null,16,["data-cy","model-value","label","rules","disable"]),C.createVNode(Fr,C.mergeProps(d.$attrs,{"model-value":f.value.to,mask:"##-##-####",label:d.labelEnd,"hide-bottom-space":"",style:{"margin-left":"10px"},"data-cy":a.value,rules:n.value,disable:d.disabled,"onUpdate:modelValue":l}),null,16,["model-value","label","data-cy","rules","disable"]),C.createVNode(kt,{name:"event",size:"30px",class:"q-ml-sm q-mt-sm cursor-pointer",style:{opacity:"0.55"},"data-cy":"calendar-icon-range"},{default:C.withCtx(()=>[C.createVNode(Vo,{cover:"","transition-show":"scale","transition-hide":"scale"},{default:C.withCtx(()=>[C.createVNode($o,{modelValue:f.value,"onUpdate:modelValue":[h[0]||(h[0]=c=>f.value=c),s],mask:"DD-MM-YYYY","today-btn":"",range:"","data-cy":"date-picker-range",locale:d.locale,options:e.value,events:d.highlightEvents,"event-color":"warning",disable:d.disabled},{default:C.withCtx(()=>[C.createElementVNode("div",tc,[C.withDirectives(C.createVNode(wt,{label:d.closeLabel,color:"primary",flat:""},null,8,["label"]),[[Uo]])])]),_:1},8,["modelValue","locale","options","events","disable"])]),_:1})]),_:1})]),d.startDateHint?(C.openBlock(),C.createElementBlock("p",rc,C.toDisplayString(d.startDateHint),1)):C.createCommentVNode("",!0),C.createElementVNode("div",nc,[C.createVNode(wt,{class:"q-pa-sm",outlined:"",dense:"","data-cy":"reset-date",label:d.resetLabel,onClick:i},null,8,["label"])])]))}}),dn=it({name:"QTh",props:{props:Object,autoWidth:Boolean},emits:["click"],setup(u,{slots:P,emit:t}){const v=C.getCurrentInstance(),{proxy:{$q:b}}=v,f=o=>{t("click",o)};return()=>{if(u.props===void 0)return C.h("th",{class:u.autoWidth===!0?"q-table--col-auto-width":"",onClick:f},vt(P.default));let o,a;const n=v.vnode.key;if(n){if(o=u.props.colsMap[n],o===void 0)return}else o=u.props.col;if(o.sortable===!0){const r=o.align==="right"?"unshift":"push";a=hi(P.default,[]),a[r](C.h(kt,{class:o.__iconClass,name:b.iconSet.table.arrowUp}))}else a=vt(P.default);const e={class:o.__thClass+(u.autoWidth===!0?" q-table--col-auto-width":""),style:o.headerStyle,onClick:r=>{o.sortable===!0&&u.props.sort(o),f(r)}};return C.h("th",e,a)}}}),Xn=it({name:"QTr",props:{props:Object,noHover:Boolean},setup(u,{slots:P}){const t=C.computed(()=>"q-tr"+(u.props===void 0||u.props.header===!0?"":" "+u.props.__trClass)+(u.noHover===!0?" q-tr--no-hover":""));return()=>C.h("tr",{style:u.props?.__trStyle,class:t.value},vt(P.default))}}),Bs=it({name:"QTooltip",inheritAttrs:!1,props:{...uo,...ki,...Pr,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null},transitionShow:{...Pr.transitionShow,default:"jump-down"},transitionHide:{...Pr.transitionHide,default:"jump-up"},anchor:{type:String,default:"bottom middle",validator:vn},self:{type:String,default:"top middle",validator:vn},offset:{type:Array,default:()=>[14,14],validator:wo},scrollTarget:Cn,delay:{type:Number,default:0},hideDelay:{type:Number,default:0},persistent:Boolean},emits:[...Ci],setup(u,{slots:P,emit:t,attrs:v}){let b,f;const o=C.getCurrentInstance(),{proxy:{$q:a}}=o,n=C.ref(null),e=C.ref(!1),r=C.computed(()=>yn(u.anchor,a.lang.rtl)),l=C.computed(()=>yn(u.self,a.lang.rtl)),s=C.computed(()=>u.persistent!==!0),{registerTick:i,removeTick:d}=Ai(),{registerTimeout:h}=Ri(),{transitionProps:c,transitionStyle:m}=Ti(u),{localScrollTarget:p,changeScrollEvent:x,unconfigureScrollTarget:k}=fo(u,E),{anchorEl:A,canShow:N,anchorEvents:q}=Si({showing:e,configureAnchorEl:_}),{show:D,hide:F}=Mi({showing:e,canShow:N,handleShow:M,handleHide:T,hideOnRouteChange:s,processOnMount:!0});Object.assign(q,{delayShow:y,delayHide:w});const{showPortal:L,hidePortal:V,renderPortal:z}=Ei(o,n,j,"tooltip");if(a.platform.is.mobile===!0){const H={anchorEl:A,innerRef:n,onClickOutside(X){return F(X),X.target.classList.contains("q-dialog__backdrop")&&_t(X),!0}},U=C.computed(()=>u.modelValue===null&&u.persistent!==!0&&e.value===!0);C.watch(U,X=>{(X===!0?yo:gn)(H)}),C.onBeforeUnmount(()=>{gn(H)})}function M(H){L(),i(()=>{f=new MutationObserver(()=>g()),f.observe(n.value,{attributes:!1,childList:!0,characterData:!0,subtree:!0}),g(),E()}),b===void 0&&(b=C.watch(()=>a.screen.width+"|"+a.screen.height+"|"+u.self+"|"+u.anchor+"|"+a.lang.rtl,g)),h(()=>{L(!0),t("show",H)},u.transitionDuration)}function T(H){d(),V(),S(),h(()=>{V(!0),t("hide",H)},u.transitionDuration)}function S(){f!==void 0&&(f.disconnect(),f=void 0),b!==void 0&&(b(),b=void 0),k(),ar(q,"tooltipTemp")}function g(){Oi({targetEl:n.value,offset:u.offset,anchorEl:A.value,anchorOrigin:r.value,selfOrigin:l.value,maxHeight:u.maxHeight,maxWidth:u.maxWidth})}function y(H){if(a.platform.is.mobile===!0){hn(),document.body.classList.add("non-selectable");const U=A.value,X=["touchmove","touchcancel","touchend","click"].map(B=>[U,B,"delayHide","passiveCapture"]);Ut(q,"tooltipTemp",X)}h(()=>{D(H)},u.delay)}function w(H){a.platform.is.mobile===!0&&(ar(q,"tooltipTemp"),hn(),setTimeout(()=>{document.body.classList.remove("non-selectable")},10)),h(()=>{F(H)},u.hideDelay)}function _(){if(u.noParentEvent===!0||A.value===null)return;const H=a.platform.is.mobile===!0?[[A.value,"touchstart","delayShow","passive"]]:[[A.value,"mouseenter","delayShow","passive"],[A.value,"mouseleave","delayHide","passive"]];Ut(q,"anchor",H)}function E(){if(A.value!==null||u.scrollTarget!==void 0){p.value=Mn(A.value,u.scrollTarget);const H=u.noParentEvent===!0?g:F;x(p.value,H)}}function O(){return e.value===!0?C.h("div",{...v,ref:n,class:["q-tooltip q-tooltip--style q-position-engine no-pointer-events",v.class],style:[v.style,m.value],role:"tooltip"},vt(P.default)):null}function j(){return C.h(C.Transition,c.value,O)}return C.onBeforeUnmount(S),Object.assign(o.proxy,{updatePosition:g}),z}}),sc=it({name:"QTd",props:{props:Object,autoWidth:Boolean,noHover:Boolean},setup(u,{slots:P}){const t=C.getCurrentInstance(),v=C.computed(()=>"q-td"+(u.autoWidth===!0?" q-table--col-auto-width":"")+(u.noHover===!0?" q-td--no-hover":"")+" ");return()=>{if(u.props===void 0)return C.h("td",{class:v.value},vt(P.default));const b=t.vnode.key,f=(u.props.colsMap!==void 0?u.props.colsMap[b]:null)||u.props.col;if(f===void 0)return;const{row:o}=u.props;return C.h("td",{class:v.value+f.__tdClass(o),style:f.__tdStyle(o)},vt(P.default))}}}),oc=["horizontal","vertical","cell","none"],ac=it({name:"QMarkupTable",props:{...Bt,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,wrapCells:Boolean,separator:{type:String,default:"horizontal",validator:u=>oc.includes(u)}},setup(u,{slots:P}){const t=C.getCurrentInstance(),v=Dt(u,t.proxy.$q),b=C.computed(()=>`q-markup-table q-table__container q-table__card q-table--${u.separator}-separator`+(v.value===!0?" q-table--dark q-table__card--dark q-dark":"")+(u.dense===!0?" q-table--dense":"")+(u.flat===!0?" q-table--flat":"")+(u.bordered===!0?" q-table--bordered":"")+(u.square===!0?" q-table--square":"")+(u.wrapCells===!1?" q-table--no-wrap":""));return()=>C.h("div",{class:b.value},[C.h("table",{class:"q-table"},vt(P.default))])}});function Xo(u,P){return C.h("div",u,[C.h("table",{class:"q-table"},P)])}const lc={list:jo,table:ac},uc=["list","table","__qtable"],cc=it({name:"QVirtualScroll",props:{...ai,type:{type:String,default:"list",validator:u=>uc.includes(u)},items:{type:Array,default:()=>[]},itemsFn:Function,itemsSize:Number,scrollTarget:Cn},setup(u,{slots:P,attrs:t}){let v;const b=C.ref(null),f=C.computed(()=>u.itemsSize>=0&&u.itemsFn!==void 0?parseInt(u.itemsSize,10):Array.isArray(u.items)?u.items.length:0),{virtualScrollSliceRange:o,localResetVirtualScroll:a,padVirtualScroll:n,onVirtualScrollEvt:e}=Eo({virtualScrollLength:f,getVirtualScrollTarget:d,getVirtualScrollEl:i}),r=C.computed(()=>{if(f.value===0)return[];const p=(x,k)=>({index:o.value.from+k,item:x});return u.itemsFn===void 0?u.items.slice(o.value.from,o.value.to).map(p):u.itemsFn(o.value.from,o.value.to-o.value.from).map(p)}),l=C.computed(()=>"q-virtual-scroll q-virtual-scroll"+(u.virtualScrollHorizontal===!0?"--horizontal":"--vertical")+(u.scrollTarget!==void 0?"":" scroll")),s=C.computed(()=>u.scrollTarget!==void 0?{}:{tabindex:0});C.watch(f,()=>{a()}),C.watch(()=>u.scrollTarget,()=>{c(),h()});function i(){return b.value.$el||b.value}function d(){return v}function h(){v=Mn(i(),u.scrollTarget),v.addEventListener("scroll",e,St.passive)}function c(){v!==void 0&&(v.removeEventListener("scroll",e,St.passive),v=void 0)}function m(){let p=n(u.type==="list"?"div":"tbody",r.value.map(P.default));return P.before!==void 0&&(p=P.before().concat(p)),Nt(P.after,p)}return C.onBeforeMount(()=>{a()}),C.onMounted(()=>{h()}),C.onActivated(()=>{h()}),C.onDeactivated(()=>{c()}),C.onBeforeUnmount(()=>{c()}),()=>{if(P.default===void 0){console.error("QVirtualScroll: default scoped slot is required for rendering");return}return u.type==="__qtable"?Xo({ref:b,class:"q-table__middle "+l.value},m()):C.h(lc[u.type],{...t,ref:b,class:[t.class,l.value],...s.value},m)}}}),fc={xs:2,sm:4,md:6,lg:10,xl:14};function Ds(u,P,t){return{transform:P===!0?`translateX(${t.lang.rtl===!0?"-":""}100%) scale3d(${-u},1,1)`:`scale3d(${u},1,1)`}}const dc=it({name:"QLinearProgress",props:{...Bt,...Cr,value:{type:Number,default:0},buffer:Number,color:String,trackColor:String,reverse:Boolean,stripe:Boolean,indeterminate:Boolean,query:Boolean,rounded:Boolean,animationSpeed:{type:[String,Number],default:2100},instantFeedback:Boolean},setup(u,{slots:P}){const{proxy:t}=C.getCurrentInstance(),v=Dt(u,t.$q),b=Mr(u,fc),f=C.computed(()=>u.indeterminate===!0||u.query===!0),o=C.computed(()=>u.reverse!==u.query),a=C.computed(()=>({...b.value!==null?b.value:{},"--q-linear-progress-speed":`${u.animationSpeed}ms`})),n=C.computed(()=>"q-linear-progress"+(u.color!==void 0?` text-${u.color}`:"")+(u.reverse===!0||u.query===!0?" q-linear-progress--reverse":"")+(u.rounded===!0?" rounded-borders":"")),e=C.computed(()=>Ds(u.buffer!==void 0?u.buffer:1,o.value,t.$q)),r=C.computed(()=>`with${u.instantFeedback===!0?"out":""}-transition`),l=C.computed(()=>`q-linear-progress__track absolute-full q-linear-progress__track--${r.value} q-linear-progress__track--${v.value===!0?"dark":"light"}`+(u.trackColor!==void 0?` bg-${u.trackColor}`:"")),s=C.computed(()=>Ds(f.value===!0?1:u.value,o.value,t.$q)),i=C.computed(()=>`q-linear-progress__model absolute-full q-linear-progress__model--${r.value} q-linear-progress__model--${f.value===!0?"in":""}determinate`),d=C.computed(()=>({width:`${u.value*100}%`})),h=C.computed(()=>`q-linear-progress__stripe absolute-${u.reverse===!0?"right":"left"} q-linear-progress__stripe--${r.value}`);return()=>{const c=[C.h("div",{class:l.value,style:e.value}),C.h("div",{class:i.value,style:s.value})];return u.stripe===!0&&f.value===!1&&c.push(C.h("div",{class:h.value,style:d.value})),C.h("div",{class:n.value,style:a.value,role:"progressbar","aria-valuemin":0,"aria-valuemax":1,"aria-valuenow":u.indeterminate===!0?void 0:u.value},Nt(P.default,c))}}});let Or=0;const hc={fullscreen:Boolean,noRouteFullscreenExit:Boolean},pc=["update:fullscreen","fullscreen"];function mc(){const u=C.getCurrentInstance(),{props:P,emit:t,proxy:v}=u;let b,f;const o=C.ref(!1);pi(u)===!0&&C.watch(()=>v.$route.fullPath,()=>{P.noRouteFullscreenExit!==!0&&e()}),C.watch(()=>P.fullscreen,r=>{o.value!==r&&a()}),C.watch(o,r=>{t("update:fullscreen",r),t("fullscreen",r)});function a(){o.value===!0?e():n()}function n(){o.value!==!0&&(o.value=!0,f=v.$el.parentNode,f.replaceChild(b,v.$el),document.body.appendChild(v.$el),Or++,Or===1&&document.body.classList.add("q-body--fullscreen-mixin"))}function e(){o.value===!0&&(f.replaceChild(v.$el,b),o.value=!1,Or=Math.max(0,Or-1),Or===0&&(document.body.classList.remove("q-body--fullscreen-mixin"),v.$el.scrollIntoView!==void 0&&setTimeout(()=>{v.$el.scrollIntoView()})))}return C.onBeforeMount(()=>{b=document.createElement("span")}),C.onMounted(()=>{P.fullscreen===!0&&n()}),C.onBeforeUnmount(e),Object.assign(v,{toggleFullscreen:a,setFullscreen:n,exitFullscreen:e}),{inFullscreen:o,toggleFullscreen:a}}function bc(u,P){return new Date(u)-new Date(P)}const gc={sortMethod:Function,binaryStateSort:Boolean,columnSortOrder:{type:String,validator:u=>u==="ad"||u==="da",default:"ad"}};function vc(u,P,t,v){const b=C.computed(()=>{const{sortBy:a}=P.value;return a&&t.value.find(n=>n.name===a)||null}),f=C.computed(()=>u.sortMethod!==void 0?u.sortMethod:(a,n,e)=>{const r=t.value.find(i=>i.name===n);if(r===void 0||r.field===void 0)return a;const l=e===!0?-1:1,s=typeof r.field=="function"?i=>r.field(i):i=>i[r.field];return a.sort((i,d)=>{let h=s(i),c=s(d);return r.rawSort!==void 0?r.rawSort(h,c,i,d)*l:h==null?-1*l:c==null?1*l:r.sort!==void 0?r.sort(h,c,i,d)*l:li(h)===!0&&li(c)===!0?(h-c)*l:_n(h)===!0&&_n(c)===!0?bc(h,c)*l:typeof h=="boolean"&&typeof c=="boolean"?(h-c)*l:([h,c]=[h,c].map(m=>(m+"").toLocaleString().toLowerCase()),h<c?-1*l:h===c?0:l)})});function o(a){let n=u.columnSortOrder;if(Ao(a)===!0)a.sortOrder&&(n=a.sortOrder),a=a.name;else{const l=t.value.find(s=>s.name===a);l?.sortOrder&&(n=l.sortOrder)}let{sortBy:e,descending:r}=P.value;e!==a?(e=a,r=n==="da"):u.binaryStateSort===!0?r=!r:r===!0?n==="ad"?e=null:r=!1:n==="ad"?r=!0:e=null,v({sortBy:e,descending:r,page:1})}return{columnToSort:b,computedSortMethod:f,sort:o}}const yc={filter:[String,Object],filterMethod:Function};function wc(u,P){const t=C.computed(()=>u.filterMethod!==void 0?u.filterMethod:(v,b,f,o)=>{const a=b?b.toLowerCase():"";return v.filter(n=>f.some(e=>{const r=o(e,n)+"";return(r==="undefined"||r==="null"?"":r.toLowerCase()).indexOf(a)!==-1}))});return C.watch(()=>u.filter,()=>{C.nextTick(()=>{P({page:1},!0)})},{deep:!0}),{computedFilterMethod:t}}function _c(u,P){for(const t in P)if(P[t]!==u[t])return!1;return!0}function Fs(u){return u.page<1&&(u.page=1),u.rowsPerPage!==void 0&&u.rowsPerPage<1&&(u.rowsPerPage=0),u}const xc={pagination:Object,rowsPerPageOptions:{type:Array,default:()=>[5,7,10,15,20,25,50,0]},"onUpdate:pagination":[Function,Array]};function Sc(u,P){const{props:t,emit:v}=u,b=C.ref(Object.assign({sortBy:null,descending:!1,page:1,rowsPerPage:t.rowsPerPageOptions.length!==0?t.rowsPerPageOptions[0]:5},t.pagination)),f=C.computed(()=>{const r=t["onUpdate:pagination"]!==void 0?{...b.value,...t.pagination}:b.value;return Fs(r)}),o=C.computed(()=>f.value.rowsNumber!==void 0);function a(r){n({pagination:r,filter:t.filter})}function n(r={}){C.nextTick(()=>{v("request",{pagination:r.pagination||f.value,filter:r.filter||t.filter,getCellValue:P})})}function e(r,l){const s=Fs({...f.value,...r});if(_c(f.value,s)===!0){o.value===!0&&l===!0&&a(s);return}if(o.value===!0){a(s);return}t.pagination!==void 0&&t["onUpdate:pagination"]!==void 0?v("update:pagination",s):b.value=s}return{innerPagination:b,computedPagination:f,isServerSide:o,requestServerInteraction:n,setPagination:e}}function kc(u,P,t,v,b,f){const{props:o,emit:a,proxy:{$q:n}}=u,e=C.computed(()=>v.value===!0?t.value.rowsNumber||0:f.value),r=C.computed(()=>{const{page:k,rowsPerPage:A}=t.value;return(k-1)*A}),l=C.computed(()=>{const{page:k,rowsPerPage:A}=t.value;return k*A}),s=C.computed(()=>t.value.page===1),i=C.computed(()=>t.value.rowsPerPage===0?1:Math.max(1,Math.ceil(e.value/t.value.rowsPerPage))),d=C.computed(()=>l.value===0?!0:t.value.page>=i.value),h=C.computed(()=>(o.rowsPerPageOptions.includes(P.value.rowsPerPage)?o.rowsPerPageOptions:[P.value.rowsPerPage].concat(o.rowsPerPageOptions)).map(A=>({label:A===0?n.lang.table.allRows:""+A,value:A})));C.watch(i,(k,A)=>{if(k===A)return;const N=t.value.page;k&&!N?b({page:1}):k<N&&b({page:k})});function c(){b({page:1})}function m(){const{page:k}=t.value;k>1&&b({page:k-1})}function p(){const{page:k,rowsPerPage:A}=t.value;l.value>0&&k*A<e.value&&b({page:k+1})}function x(){b({page:i.value})}return o["onUpdate:pagination"]!==void 0&&a("update:pagination",{...t.value}),{firstRowIndex:r,lastRowIndex:l,isFirstPage:s,isLastPage:d,pagesNumber:i,computedRowsPerPageOptions:h,computedRowsNumber:e,firstPage:c,prevPage:m,nextPage:p,lastPage:x}}const Cc={selection:{type:String,default:"none",validator:u=>["single","multiple","none"].includes(u)},selected:{type:Array,default:()=>[]}},Mc=["update:selected","selection"];function Ec(u,P,t,v){const b=C.computed(()=>{const d={};return u.selected.map(v.value).forEach(h=>{d[h]=!0}),d}),f=C.computed(()=>u.selection!=="none"),o=C.computed(()=>u.selection==="single"),a=C.computed(()=>u.selection==="multiple"),n=C.computed(()=>t.value.length!==0&&t.value.every(d=>b.value[v.value(d)]===!0)),e=C.computed(()=>n.value!==!0&&t.value.some(d=>b.value[v.value(d)]===!0)),r=C.computed(()=>u.selected.length);function l(d){return b.value[d]===!0}function s(){P("update:selected",[])}function i(d,h,c,m){P("selection",{rows:h,added:c,keys:d,evt:m});const p=o.value===!0?c===!0?h:[]:c===!0?u.selected.concat(h):u.selected.filter(x=>d.includes(v.value(x))===!1);P("update:selected",p)}return{hasSelectionMode:f,singleSelection:o,multipleSelection:a,allRowsSelected:n,someRowsSelected:e,rowsSelectedNumber:r,isRowSelected:l,clearSelection:s,updateSelection:i}}function Ls(u){return Array.isArray(u)?u.slice():[]}const Tc={expanded:Array},Ac=["update:expanded"];function Rc(u,P){const t=C.ref(Ls(u.expanded));C.watch(()=>u.expanded,o=>{t.value=Ls(o)});function v(o){return t.value.includes(o)}function b(o){u.expanded!==void 0?P("update:expanded",o):t.value=o}function f(o,a){const n=t.value.slice(),e=n.indexOf(o);a===!0?e===-1&&(n.push(o),b(n)):e!==-1&&(n.splice(e,1),b(n))}return{isRowExpanded:v,setExpanded:b,updateExpanded:f}}const Oc={visibleColumns:Array};function jc(u,P,t){const v=C.computed(()=>{if(u.columns!==void 0)return u.columns;const a=u.rows[0];return a!==void 0?Object.keys(a).map(n=>({name:n,label:n.toUpperCase(),field:n,align:li(a[n])?"right":"left",sortable:!0})):[]}),b=C.computed(()=>{const{sortBy:a,descending:n}=P.value;return(u.visibleColumns!==void 0?v.value.filter(r=>r.required===!0||u.visibleColumns.includes(r.name)===!0):v.value).map(r=>{const l=r.align||"right",s=`text-${l}`;return{...r,align:l,__iconClass:`q-table__sort-icon q-table__sort-icon--${l}`,__thClass:s+(r.headerClasses!==void 0?" "+r.headerClasses:"")+(r.sortable===!0?" sortable":"")+(r.name===a?` sorted ${n===!0?"sort-desc":""}`:""),__tdStyle:r.style!==void 0?typeof r.style!="function"?()=>r.style:r.style:()=>null,__tdClass:r.classes!==void 0?typeof r.classes!="function"?()=>s+" "+r.classes:i=>s+" "+r.classes(i):()=>s}})}),f=C.computed(()=>{const a={};return b.value.forEach(n=>{a[n.name]=n}),a}),o=C.computed(()=>u.tableColspan!==void 0?u.tableColspan:b.value.length+(t.value===!0?1:0));return{colList:v,computedCols:b,computedColsMap:f,computedColspan:o}}const tn="q-table__bottom row items-center",Ko={};Mo.forEach(u=>{Ko[u]={}});const Ic=it({name:"QTable",props:{rows:{type:Array,required:!0},rowKey:{type:[String,Function],default:"id"},columns:Array,loading:Boolean,iconFirstPage:String,iconPrevPage:String,iconNextPage:String,iconLastPage:String,title:String,hideHeader:Boolean,grid:Boolean,gridHeader:Boolean,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,separator:{type:String,default:"horizontal",validator:u=>["horizontal","vertical","cell","none"].includes(u)},wrapCells:Boolean,virtualScroll:Boolean,virtualScrollTarget:{},...Ko,noDataLabel:String,noResultsLabel:String,loadingLabel:String,selectedRowsLabel:Function,rowsPerPageLabel:String,paginationLabel:Function,color:{type:String,default:"grey-8"},titleClass:[String,Array,Object],tableStyle:[String,Array,Object],tableClass:[String,Array,Object],tableHeaderStyle:[String,Array,Object],tableHeaderClass:[String,Array,Object],tableRowStyleFn:Function,tableRowClassFn:Function,cardContainerClass:[String,Array,Object],cardContainerStyle:[String,Array,Object],cardStyle:[String,Array,Object],cardClass:[String,Array,Object],cardStyleFn:Function,cardClassFn:Function,hideBottom:Boolean,hideSelectedBanner:Boolean,hideNoData:Boolean,hidePagination:Boolean,onRowClick:Function,onRowDblclick:Function,onRowContextmenu:Function,...Bt,...hc,...Oc,...yc,...xc,...Tc,...Cc,...gc},emits:["request","virtualScroll",...pc,...Ac,...Mc],setup(u,{slots:P,emit:t}){const v=C.getCurrentInstance(),{proxy:{$q:b}}=v,f=Dt(u,b),{inFullscreen:o,toggleFullscreen:a}=mc(),n=C.computed(()=>typeof u.rowKey=="function"?u.rowKey:he=>he[u.rowKey]),e=C.ref(null),r=C.ref(null),l=C.computed(()=>u.grid!==!0&&u.virtualScroll===!0),s=C.computed(()=>" q-table__card"+(f.value===!0?" q-table__card--dark q-dark":"")+(u.square===!0?" q-table--square":"")+(u.flat===!0?" q-table--flat":"")+(u.bordered===!0?" q-table--bordered":"")),i=C.computed(()=>`q-table__container q-table--${u.separator}-separator column no-wrap`+(u.grid===!0?" q-table--grid":s.value)+(f.value===!0?" q-table--dark":"")+(u.dense===!0?" q-table--dense":"")+(u.wrapCells===!1?" q-table--no-wrap":"")+(o.value===!0?" fullscreen scroll":"")),d=C.computed(()=>i.value+(u.loading===!0?" q-table--loading":""));C.watch(()=>u.tableStyle+u.tableClass+u.tableHeaderStyle+u.tableHeaderClass+i.value,()=>{l.value===!0&&r.value?.reset()});const{innerPagination:h,computedPagination:c,isServerSide:m,requestServerInteraction:p,setPagination:x}=Sc(v,Fe),{computedFilterMethod:k}=wc(u,x),{isRowExpanded:A,setExpanded:N,updateExpanded:q}=Rc(u,t),D=C.computed(()=>{let he=u.rows;if(m.value===!0||he.length===0)return he;const{sortBy:we,descending:Ae}=c.value;return u.filter&&(he=k.value(he,u.filter,O.value,Fe)),U.value!==null&&(he=X.value(u.rows===he?he.slice():he,we,Ae)),he}),F=C.computed(()=>D.value.length),L=C.computed(()=>{let he=D.value;if(m.value===!0)return he;const{rowsPerPage:we}=c.value;return we!==0&&(W.value===0&&u.rows!==he?he.length>I.value&&(he=he.slice(0,I.value)):he=he.slice(W.value,I.value)),he}),{hasSelectionMode:V,singleSelection:z,multipleSelection:M,allRowsSelected:T,someRowsSelected:S,rowsSelectedNumber:g,isRowSelected:y,clearSelection:w,updateSelection:_}=Ec(u,t,L,n),{colList:E,computedCols:O,computedColsMap:j,computedColspan:H}=jc(u,c,V),{columnToSort:U,computedSortMethod:X,sort:B}=vc(u,c,E,x),{firstRowIndex:W,lastRowIndex:I,isFirstPage:R,isLastPage:$,pagesNumber:Y,computedRowsPerPageOptions:J,computedRowsNumber:Z,firstPage:ee,prevPage:ae,nextPage:se,lastPage:G}=kc(v,h,c,m,x,F),ne=C.computed(()=>L.value.length===0),ie=C.computed(()=>{const he={};return Mo.forEach(we=>{he[we]=u[we]}),he.virtualScrollItemSize===void 0&&(he.virtualScrollItemSize=u.dense===!0?28:48),he});function fe(){l.value===!0&&r.value.reset()}function ce(){if(u.grid===!0)return ot();const he=u.hideHeader!==!0?Be:null;if(l.value===!0){const Ae=P["top-row"],Ie=P["bottom-row"],Ce={default:Ye=>_e(Ye.item,P.body,Ye.index)};if(Ae!==void 0){const Ye=C.h("tbody",Ae({cols:O.value}));Ce.before=he===null?()=>Ye:()=>[he()].concat(Ye)}else he!==null&&(Ce.before=he);return Ie!==void 0&&(Ce.after=()=>C.h("tbody",Ie({cols:O.value}))),C.h(cc,{ref:r,class:u.tableClass,style:u.tableStyle,...ie.value,scrollTarget:u.virtualScrollTarget,items:L.value,type:"__qtable",tableColspan:H.value,onVirtualScroll:me},Ce)}const we=[je()];return he!==null&&we.unshift(he()),Xo({class:["q-table__middle scroll",u.tableClass],style:u.tableStyle},we)}function de(he,we){if(r.value!==null){r.value.scrollTo(he,we);return}he=parseInt(he,10);const Ae=e.value.querySelector(`tbody tr:nth-of-type(${he+1})`);if(Ae!==null){const Ie=e.value.querySelector(".q-table__middle.scroll"),Ce=Ae.offsetTop-u.virtualScrollStickySizeStart,Ye=Ce<Ie.scrollTop?"decrease":"increase";Ie.scrollTop=Ce,t("virtualScroll",{index:he,from:0,to:h.value.rowsPerPage-1,direction:Ye})}}function me(he){t("virtualScroll",he)}function ge(){return[C.h(dc,{class:"q-table__linear-progress",color:u.color,dark:f.value,indeterminate:!0,trackColor:"transparent"})]}function _e(he,we,Ae){const Ie=n.value(he),Ce=y(Ie);if(we!==void 0){const K={key:Ie,row:he,pageIndex:Ae,__trClass:Ce?"selected":""};if(u.tableRowStyleFn!==void 0&&(K.__trStyle=u.tableRowStyleFn(he)),u.tableRowClassFn!==void 0){const re=u.tableRowClassFn(he);re&&(K.__trClass=`${re} ${K.__trClass}`)}return we(Ee(K))}const Ye=P["body-cell"],Xe=O.value.map(K=>{const re=P[`body-cell-${K.name}`],le=re!==void 0?re:Ye;return le!==void 0?le(Te({key:Ie,row:he,pageIndex:Ae,col:K})):C.h("td",{class:K.__tdClass(he),style:K.__tdStyle(he)},Fe(K,he))});if(V.value===!0){const K=P["body-selection"],re=K!==void 0?K(He({key:Ie,row:he,pageIndex:Ae})):[C.h(an,{modelValue:Ce,color:u.color,dark:f.value,dense:u.dense,"onUpdate:modelValue":(le,pe)=>{_([Ie],[he],le,pe)}})];Xe.unshift(C.h("td",{class:"q-table--col-auto-width"},re))}const te={key:Ie,class:{selected:Ce}};if(u.onRowClick!==void 0&&(te.class["cursor-pointer"]=!0,te.onClick=K=>{t("rowClick",K,he,Ae)}),u.onRowDblclick!==void 0&&(te.class["cursor-pointer"]=!0,te.onDblclick=K=>{t("rowDblclick",K,he,Ae)}),u.onRowContextmenu!==void 0&&(te.class["cursor-pointer"]=!0,te.onContextmenu=K=>{t("rowContextmenu",K,he,Ae)}),u.tableRowStyleFn!==void 0&&(te.style=u.tableRowStyleFn(he)),u.tableRowClassFn!==void 0){const K=u.tableRowClassFn(he);K&&(te.class[K]=!0)}return C.h("tr",te,Xe)}function je(){const he=P.body,we=P["top-row"],Ae=P["bottom-row"];let Ie=L.value.map((Ce,Ye)=>_e(Ce,he,Ye));return we!==void 0&&(Ie=we({cols:O.value}).concat(Ie)),Ae!==void 0&&(Ie=Ie.concat(Ae({cols:O.value}))),C.h("tbody",Ie)}function Ee(he){return ze(he),he.cols=he.cols.map(we=>Lt({...we},"value",()=>Fe(we,he.row))),he}function Te(he){return ze(he),Lt(he,"value",()=>Fe(he.col,he.row)),he}function He(he){return ze(he),he}function ze(he){Object.assign(he,{cols:O.value,colsMap:j.value,sort:B,rowIndex:W.value+he.pageIndex,color:u.color,dark:f.value,dense:u.dense}),V.value===!0&&Lt(he,"selected",()=>y(he.key),(we,Ae)=>{_([he.key],[he.row],we,Ae)}),Lt(he,"expand",()=>A(he.key),we=>{q(he.key,we)})}function Fe(he,we){const Ae=typeof he.field=="function"?he.field(we):we[he.field];return he.format!==void 0?he.format(Ae,we):Ae}const qe=C.computed(()=>({pagination:c.value,pagesNumber:Y.value,isFirstPage:R.value,isLastPage:$.value,firstPage:ee,prevPage:ae,nextPage:se,lastPage:G,inFullscreen:o.value,toggleFullscreen:a}));function Pe(){const he=P.top,we=P["top-left"],Ae=P["top-right"],Ie=P["top-selection"],Ce=V.value===!0&&Ie!==void 0&&g.value>0,Ye="q-table__top relative-position row items-center";if(he!==void 0)return C.h("div",{class:Ye},[he(qe.value)]);let Xe;if(Ce===!0?Xe=Ie(qe.value).slice():(Xe=[],we!==void 0?Xe.push(C.h("div",{class:"q-table__control"},[we(qe.value)])):u.title&&Xe.push(C.h("div",{class:"q-table__control"},[C.h("div",{class:["q-table__title",u.titleClass]},u.title)]))),Ae!==void 0&&(Xe.push(C.h("div",{class:"q-table__separator col"})),Xe.push(C.h("div",{class:"q-table__control"},[Ae(qe.value)]))),Xe.length!==0)return C.h("div",{class:Ye},Xe)}const Se=C.computed(()=>S.value===!0?null:T.value);function Be(){const he=Ve();return u.loading===!0&&P.loading===void 0&&he.push(C.h("tr",{class:"q-table__progress"},[C.h("th",{class:"relative-position",colspan:H.value},ge())])),C.h("thead",he)}function Ve(){const he=P.header,we=P["header-cell"];if(he!==void 0)return he(Le({header:!0})).slice();const Ae=O.value.map(Ie=>{const Ce=P[`header-cell-${Ie.name}`],Ye=Ce!==void 0?Ce:we,Xe=Le({col:Ie});return Ye!==void 0?Ye(Xe):C.h(dn,{key:Ie.name,props:Xe},()=>Ie.label)});if(z.value===!0&&u.grid!==!0)Ae.unshift(C.h("th",{class:"q-table--col-auto-width"}," "));else if(M.value===!0){const Ie=P["header-selection"],Ce=Ie!==void 0?Ie(Le({})):[C.h(an,{color:u.color,modelValue:Se.value,dark:f.value,dense:u.dense,"onUpdate:modelValue":Ze})];Ae.unshift(C.h("th",{class:"q-table--col-auto-width"},Ce))}return[C.h("tr",{class:u.tableHeaderClass,style:u.tableHeaderStyle},Ae)]}function Le(he){return Object.assign(he,{cols:O.value,sort:B,colsMap:j.value,color:u.color,dark:f.value,dense:u.dense}),M.value===!0&&Lt(he,"selected",()=>Se.value,Ze),he}function Ze(he){S.value===!0&&(he=!1),_(L.value.map(n.value),L.value,he)}const Je=C.computed(()=>{const he=[u.iconFirstPage||b.iconSet.table.firstPage,u.iconPrevPage||b.iconSet.table.prevPage,u.iconNextPage||b.iconSet.table.nextPage,u.iconLastPage||b.iconSet.table.lastPage];return b.lang.rtl===!0?he.reverse():he});function Ue(){if(u.hideBottom===!0)return;if(ne.value===!0){if(u.hideNoData===!0)return;const Ae=u.loading===!0?u.loadingLabel||b.lang.table.loading:u.filter?u.noResultsLabel||b.lang.table.noResults:u.noDataLabel||b.lang.table.noData,Ie=P["no-data"],Ce=Ie!==void 0?[Ie({message:Ae,icon:b.iconSet.table.warning,filter:u.filter})]:[C.h(kt,{class:"q-table__bottom-nodata-icon",name:b.iconSet.table.warning}),Ae];return C.h("div",{class:tn+" q-table__bottom--nodata"},Ce)}const he=P.bottom;if(he!==void 0)return C.h("div",{class:tn},[he(qe.value)]);const we=u.hideSelectedBanner!==!0&&V.value===!0&&g.value>0?[C.h("div",{class:"q-table__control"},[C.h("div",[(u.selectedRowsLabel||b.lang.table.selectedRecords)(g.value)])])]:[];if(u.hidePagination!==!0)return C.h("div",{class:tn+" justify-end"},et(we));if(we.length!==0)return C.h("div",{class:tn},we)}function rt(he){x({page:1,rowsPerPage:he.value})}function et(he){let we;const{rowsPerPage:Ae}=c.value,Ie=u.paginationLabel||b.lang.table.pagination,Ce=P.pagination,Ye=u.rowsPerPageOptions.length>1;if(he.push(C.h("div",{class:"q-table__separator col"})),Ye===!0&&he.push(C.h("div",{class:"q-table__control"},[C.h("span",{class:"q-table__bottom-item"},[u.rowsPerPageLabel||b.lang.table.recordsPerPage]),C.h(Ni,{class:"q-table__select inline q-table__bottom-item",color:u.color,modelValue:Ae,options:J.value,displayValue:Ae===0?b.lang.table.allRows:Ae,dark:f.value,borderless:!0,dense:!0,optionsDense:!0,optionsCover:!0,"onUpdate:modelValue":rt})])),Ce!==void 0)we=Ce(qe.value);else if(we=[C.h("span",Ae!==0?{class:"q-table__bottom-item"}:{},[Ae?Ie(W.value+1,Math.min(I.value,Z.value),Z.value):Ie(1,F.value,Z.value)])],Ae!==0&&Y.value>1){const Xe={color:u.color,round:!0,dense:!0,flat:!0};u.dense===!0&&(Xe.size="sm"),Y.value>2&&we.push(C.h(wt,{key:"pgFirst",...Xe,icon:Je.value[0],disable:R.value,"aria-label":b.lang.pagination.first,onClick:ee})),we.push(C.h(wt,{key:"pgPrev",...Xe,icon:Je.value[1],disable:R.value,"aria-label":b.lang.pagination.prev,onClick:ae}),C.h(wt,{key:"pgNext",...Xe,icon:Je.value[2],disable:$.value,"aria-label":b.lang.pagination.next,onClick:se})),Y.value>2&&we.push(C.h(wt,{key:"pgLast",...Xe,icon:Je.value[3],disable:$.value,"aria-label":b.lang.pagination.last,onClick:G}))}return he.push(C.h("div",{class:"q-table__control"},we)),he}function We(){const he=u.gridHeader===!0?[C.h("table",{class:"q-table"},[Be()])]:u.loading===!0&&P.loading===void 0?ge():void 0;return C.h("div",{class:"q-table__middle"},he)}function ot(){const he=P.item!==void 0?P.item:we=>{const Ae=we.cols.map(Ce=>C.h("div",{class:"q-table__grid-item-row"},[C.h("div",{class:"q-table__grid-item-title"},[Ce.label]),C.h("div",{class:"q-table__grid-item-value"},[Ce.value])]));if(V.value===!0){const Ce=P["body-selection"],Ye=Ce!==void 0?Ce(we):[C.h(an,{modelValue:we.selected,color:u.color,dark:f.value,dense:u.dense,"onUpdate:modelValue":(Xe,te)=>{_([we.key],[we.row],Xe,te)}})];Ae.unshift(C.h("div",{class:"q-table__grid-item-row"},Ye),C.h(Oo,{dark:f.value}))}const Ie={class:["q-table__grid-item-card"+s.value,u.cardClass],style:u.cardStyle};if(u.cardStyleFn!==void 0&&(Ie.style=[Ie.style,u.cardStyleFn(we.row)]),u.cardClassFn!==void 0){const Ce=u.cardClassFn(we.row);Ce&&(Ie.class[0]+=` ${Ce}`)}return(u.onRowClick!==void 0||u.onRowDblclick!==void 0||u.onRowContextmenu!==void 0)&&(Ie.class[0]+=" cursor-pointer",u.onRowClick!==void 0&&(Ie.onClick=Ce=>{t("RowClick",Ce,we.row,we.pageIndex)}),u.onRowDblclick!==void 0&&(Ie.onDblclick=Ce=>{t("RowDblclick",Ce,we.row,we.pageIndex)}),u.onRowContextmenu!==void 0&&(Ie.onContextmenu=Ce=>{t("rowContextmenu",Ce,we.row,we.pageIndex)})),C.h("div",{class:"q-table__grid-item col-xs-12 col-sm-6 col-md-4 col-lg-3"+(we.selected===!0?" q-table__grid-item--selected":"")},[C.h("div",Ie,Ae)])};return C.h("div",{class:["q-table__grid-content row",u.cardContainerClass],style:u.cardContainerStyle},L.value.map((we,Ae)=>he(Ee({key:n.value(we),row:we,pageIndex:Ae}))))}return Object.assign(v.proxy,{requestServerInteraction:p,setPagination:x,firstPage:ee,prevPage:ae,nextPage:se,lastPage:G,isRowSelected:y,clearSelection:w,isRowExpanded:A,setExpanded:N,sort:B,resetVirtualScroll:fe,scrollTo:de,getCellValue:Fe}),Zo(v.proxy,{filteredSortedRows:()=>D.value,computedRows:()=>L.value,computedRowsNumber:()=>Z.value}),()=>{const he=[Pe()],we={ref:e,class:d.value};return u.grid===!0?he.push(We()):Object.assign(we,{class:[we.class,u.cardClass],style:u.cardStyle}),he.push(ce(),Ue()),u.loading===!0&&P.loading!==void 0&&he.push(P.loading()),C.h("div",we,he)}}}),Pc={shouldShowExpandButton:()=>!0};function zs(u,P){return typeof P.field=="function"?P.field(u):u[P.field]}function fi(u,P){return typeof u.visible=="function"?u.visible(P):u.visible!==!1}function wr(u,P){return typeof u.disabled=="function"?u.disabled(P):!!u.disabled}function qs(u,P,t,v){return u.filter(b=>fi(b,P)&&(b.position===t||b.position==="both")&&(!v||b.columnName===v))}function rn(u,P){return wr(u,P)?"grey":u.color||"primary"}function nn(u,P,t,v="action"){return u.testId?typeof u.testId=="function"?u.testId(P):u.testId:`${v}-${u.id}-${P[t]}`}const Nc={key:0,"auto-width":""},Bc=["onClick"],Dc={class:"flex items-center"},Fc={colspan:"100%"},Lc=C.defineComponent({__name:"CustomTable",props:{columns:{},results:{},filter:{default:""},pagination:{},loading:{type:Boolean,default:!1},onRequest:{},rowKey:{default:"id"},services:{default:()=>({})},conditionals:{default:()=>({})},actions:{type:[Array,Function],default:()=>[]}},emits:["update:pagination"],setup(u,{emit:P}){const t=u,v=P,b=C.ref([]),f=C.useSlots(),o=C.computed(()=>!!f.expanded),a=C.computed({get(){return t.pagination},set(N){v("update:pagination",N)}}),n=C.computed(()=>({...Pc,...t.conditionals})),e=N=>n.value.shouldShowExpandButton(N),r=N=>b.value.includes(N[t.rowKey]),l=C.computed(()=>t.results.length===0?!1:typeof t.actions=="function"?!0:t.actions.some(N=>fi(N,t.results[0])&&(N.position==="row"||N.position==="both")));function s(N){return typeof t.actions=="function"?t.actions(N):t.actions.filter(q=>fi(q,N))}function i(N){return qs(s(N),N,"row")}function d(N,q){return qs(s(N),N,"cell",q)}function h(N){return i(N).length>0}function c(N){const q=m(N);q&&!wr(q,N)&&q.handler(N)}function m(N){return s(N).find(D=>D.id==="edit")}function p(N,q){d(N,q).forEach(F=>{wr(F,N)||F.handler(N)})}async function x(N,q=!1){const D=N[t.rowKey];if(r(N)||q)b.value=b.value.filter(F=>F!==D);else if(b.value=[D],t.services.fetchDetails)try{N.details=await t.services.fetchDetails(N)}catch(F){console.error("Error fetching details:",F)}}async function k(N,q){if(!wr(N,q))try{N.isCancel&&await x(q,!0),N.handler(q)}catch(D){console.error(`Error executing action ${N.id}:`,D)}}function A(N){a.value=N.pagination,t.onRequest&&t.onRequest(N)}return(N,q)=>(C.openBlock(),C.createBlock(Ic,{pagination:a.value,"onUpdate:pagination":q[0]||(q[0]=D=>a.value=D),columns:N.columns,rows:N.results,filter:N.filter,"row-key":N.rowKey,"binary-state-sort":"","rows-per-page-options":a.value.rowsPerPageOptions,loading:N.loading,onRequest:A},{header:C.withCtx(D=>[C.createVNode(Xn,{props:D},{default:C.withCtx(()=>[o.value?(C.openBlock(),C.createBlock(dn,{key:0,"auto-width":""})):C.createCommentVNode("",!0),(C.openBlock(!0),C.createElementBlock(C.Fragment,null,C.renderList(D.cols,F=>(C.openBlock(),C.createBlock(dn,{key:F.name,props:D},{default:C.withCtx(()=>[C.createTextVNode(C.toDisplayString(F.label),1)]),_:2},1032,["props"]))),128)),l.value?(C.openBlock(),C.createBlock(dn,{key:1},{default:C.withCtx(()=>q[1]||(q[1]=[C.createTextVNode("Actions")])),_:1,__:[1]})):C.createCommentVNode("",!0)]),_:2},1032,["props"])]),body:C.withCtx(D=>[C.createVNode(Xn,{"data-cy":`row-${D.row[N.rowKey]}`,props:D,class:C.normalizeClass({"bg-grey-3":D.row.archived}),onDblclick:F=>c(D.row)},{default:C.withCtx(()=>[o.value?(C.openBlock(),C.createElementBlock("td",Nc,[C.renderSlot(N.$slots,"expand-button",{row:D.row,expanded:r(D.row),toggle:()=>x(D.row)},()=>[e(D.row)?(C.openBlock(),C.createBlock(wt,{key:0,"data-cy":`expand-button-${D.row[N.rowKey]}`,size:"sm",color:"primary",round:"",dense:"",icon:r(D.row)?"remove":"add",onClick:F=>x(D.row)},null,8,["data-cy","icon","onClick"])):C.createCommentVNode("",!0)])])):C.createCommentVNode("",!0),(C.openBlock(!0),C.createElementBlock(C.Fragment,null,C.renderList(D.cols,F=>(C.openBlock(),C.createElementBlock("td",{key:F.name,onClick:C.withModifiers(L=>p(D.row,F.name),["stop"])},[C.renderSlot(N.$slots,"body-cell",{row:D.row,col:F,value:C.unref(zs)(D.row,F)},()=>[C.createElementVNode("div",Dc,[C.createElementVNode("span",null,C.toDisplayString(C.unref(zs)(D.row,F)),1),(C.openBlock(!0),C.createElementBlock(C.Fragment,null,C.renderList(d(D.row,F.name),L=>(C.openBlock(),C.createElementBlock(C.Fragment,{key:L.id},[L.isButton?(C.openBlock(),C.createBlock(wt,C.mergeProps({key:0,color:C.unref(rn)(L,D.row),size:L.size||"sm",class:L.class,disabled:C.unref(wr)(L,D.row),label:L.label},{ref_for:!0},L.buttonProps||{},{"data-cy":C.unref(nn)(L,D.row,N.rowKey),onClick:C.withModifiers(V=>k(L,D.row),["stop"])}),null,16,["color","size","class","disabled","label","data-cy","onClick"])):(C.openBlock(),C.createBlock(kt,{key:1,class:"cursor-pointer q-ml-sm",name:L.icon,color:C.unref(rn)(L,D.row),size:L.size||"20px","data-cy":C.unref(nn)(L,D.row,N.rowKey,"cell-icon"),onClick:C.withModifiers(V=>k(L,D.row),["stop"])},{default:C.withCtx(()=>[L.label?(C.openBlock(),C.createBlock(Bs,{key:0},{default:C.withCtx(()=>[C.createTextVNode(C.toDisplayString(L.label),1)]),_:2},1024)):C.createCommentVNode("",!0)]),_:2},1032,["name","color","size","data-cy","onClick"]))],64))),128))])])],8,Bc))),128)),h(D.row)?(C.openBlock(),C.createBlock(sc,{key:1,class:"row items-center justify-center no-wrap"},{default:C.withCtx(()=>[(C.openBlock(!0),C.createElementBlock(C.Fragment,null,C.renderList(i(D.row),F=>(C.openBlock(),C.createElementBlock(C.Fragment,{key:F.id},[F.isButton?(C.openBlock(),C.createBlock(wt,C.mergeProps({key:0,color:C.unref(rn)(F,D.row),size:F.size||"sm",class:F.class,disabled:C.unref(wr)(F,D.row),label:F.label},{ref_for:!0},F.buttonProps||{},{"data-cy":C.unref(nn)(F,D.row,N.rowKey),onClick:C.withModifiers(L=>k(F,D.row),["stop"])}),null,16,["color","size","class","disabled","label","data-cy","onClick"])):(C.openBlock(),C.createBlock(kt,{key:1,class:"cursor-pointer q-mr-sm",name:F.icon,color:C.unref(rn)(F,D.row),size:F.size||"25px","data-cy":C.unref(nn)(F,D.row,N.rowKey,"icon"),onClick:C.withModifiers(L=>k(F,D.row),["stop"])},{default:C.withCtx(()=>[F.label?(C.openBlock(),C.createBlock(Bs,{key:0},{default:C.withCtx(()=>[C.createTextVNode(C.toDisplayString(F.label),1)]),_:2},1024)):C.createCommentVNode("",!0)]),_:2},1032,["name","color","size","data-cy","onClick"]))],64))),128))]),_:2},1024)):C.createCommentVNode("",!0)]),_:2},1032,["data-cy","props","class","onDblclick"]),o.value&&r(D.row)?(C.openBlock(),C.createBlock(Xn,{key:0},{default:C.withCtx(()=>[C.createElementVNode("td",Fc,[C.renderSlot(N.$slots,"expanded",{row:D.row})])]),_:2},1024)):C.createCommentVNode("",!0)]),_:3},8,["pagination","columns","rows","filter","row-key","rows-per-page-options","loading"]))}});var lt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function zc(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}function sn(u){throw new Error('Could not dynamically require "'+u+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Kn={exports:{}};/*! ExcelJS 19-10-2023 */var $s;function qc(){return $s||($s=1,function(u,P){(function(t){u.exports=t()})(function(){return function t(v,b,f){function o(e,r){if(!b[e]){if(!v[e]){var l=typeof sn=="function"&&sn;if(!r&&l)return l(e,!0);if(a)return a(e,!0);var s=new Error("Cannot find module '"+e+"'");throw s.code="MODULE_NOT_FOUND",s}var i=b[e]={exports:{}};v[e][0].call(i.exports,function(d){return o(v[e][1][d]||d)},i,i.exports,t,v,b,f)}return b[e].exports}for(var a=typeof sn=="function"&&sn,n=0;n<f.length;n++)o(f[n]);return o}({1:[function(t,v,b){const f=t("fs"),o=t("fast-csv"),a=t("dayjs/plugin/customParseFormat"),n=t("dayjs/plugin/utc"),e=t("dayjs").extend(a).extend(n),r=t("../utils/stream-buf"),{fs:{exists:l}}=t("../utils/utils"),s={true:!0,false:!1,"#N/A":{error:"#N/A"},"#REF!":{error:"#REF!"},"#NAME?":{error:"#NAME?"},"#DIV/0!":{error:"#DIV/0!"},"#NULL!":{error:"#NULL!"},"#VALUE!":{error:"#VALUE!"},"#NUM!":{error:"#NUM!"}};v.exports=class{constructor(i){this.workbook=i,this.worksheet=null}async readFile(i,d){if(d=d||{},!await l(i))throw new Error("File not found: "+i);const h=f.createReadStream(i),c=await this.read(h,d);return h.close(),c}read(i,d){return d=d||{},new Promise((h,c)=>{const m=this.workbook.addWorksheet(d.sheetName),p=d.dateFormats||["YYYY-MM-DD[T]HH:mm:ssZ","YYYY-MM-DD[T]HH:mm:ss","MM-DD-YYYY","YYYY-MM-DD"],x=d.map||function(A){if(A==="")return null;const N=Number(A);if(!Number.isNaN(N)&&N!==1/0)return N;const q=p.reduce((F,L)=>{if(F)return F;const V=e(A,L,!0);return V.isValid()?V:null},null);if(q)return new Date(q.valueOf());const D=s[A];return D!==void 0?D:A},k=o.parse(d.parserOptions).on("data",A=>{m.addRow(A.map(x))}).on("end",()=>{k.emit("worksheet",m)});k.on("worksheet",h).on("error",c),i.pipe(k)})}createInputStream(){throw new Error("`CSV#createInputStream` is deprecated. You should use `CSV#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}write(i,d){return new Promise((h,c)=>{d=d||{};const m=this.workbook.getWorksheet(d.sheetName||d.sheetId),p=o.format(d.formatterOptions);i.on("finish",()=>{h()}),p.on("error",c),p.pipe(i);const{dateFormat:x,dateUTC:k}=d,A=d.map||(D=>{if(D){if(D.text||D.hyperlink)return D.hyperlink||D.text||"";if(D.formula||D.result)return D.result||"";if(D instanceof Date)return x?k?e.utc(D).format(x):e(D).format(x):k?e.utc(D).format():e(D).format();if(D.error)return D.error;if(typeof D=="object")return JSON.stringify(D)}return D}),N=d.includeEmptyRows===void 0||d.includeEmptyRows;let q=1;m&&m.eachRow((D,F)=>{if(N)for(;q++<F-1;)p.write([]);const{values:L}=D;L.shift(),p.write(L.map(A)),q=F}),p.end()})}writeFile(i,d){const h={encoding:(d=d||{}).encoding||"utf8"},c=f.createWriteStream(i,h);return this.write(c,d)}async writeBuffer(i){const d=new r;return await this.write(d,i),d.read()}}},{"../utils/stream-buf":24,"../utils/utils":27,dayjs:391,"dayjs/plugin/customParseFormat":392,"dayjs/plugin/utc":393,"fast-csv":424,fs:216}],2:[function(t,v,b){const f=t("../utils/col-cache");class o{constructor(n,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(this.worksheet=n,e)if(typeof e=="string"){const l=f.decodeAddress(e);this.nativeCol=l.col+r,this.nativeColOff=0,this.nativeRow=l.row+r,this.nativeRowOff=0}else e.nativeCol!==void 0?(this.nativeCol=e.nativeCol||0,this.nativeColOff=e.nativeColOff||0,this.nativeRow=e.nativeRow||0,this.nativeRowOff=e.nativeRowOff||0):e.col!==void 0?(this.col=e.col+r,this.row=e.row+r):(this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0);else this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0}static asInstance(n){return n instanceof o||n==null?n:new o(n)}get col(){return this.nativeCol+Math.min(this.colWidth-1,this.nativeColOff)/this.colWidth}set col(n){this.nativeCol=Math.floor(n),this.nativeColOff=Math.floor((n-this.nativeCol)*this.colWidth)}get row(){return this.nativeRow+Math.min(this.rowHeight-1,this.nativeRowOff)/this.rowHeight}set row(n){this.nativeRow=Math.floor(n),this.nativeRowOff=Math.floor((n-this.nativeRow)*this.rowHeight)}get colWidth(){return this.worksheet&&this.worksheet.getColumn(this.nativeCol+1)&&this.worksheet.getColumn(this.nativeCol+1).isCustomWidth?Math.floor(1e4*this.worksheet.getColumn(this.nativeCol+1).width):64e4}get rowHeight(){return this.worksheet&&this.worksheet.getRow(this.nativeRow+1)&&this.worksheet.getRow(this.nativeRow+1).height?Math.floor(1e4*this.worksheet.getRow(this.nativeRow+1).height):18e4}get model(){return{nativeCol:this.nativeCol,nativeColOff:this.nativeColOff,nativeRow:this.nativeRow,nativeRowOff:this.nativeRowOff}}set model(n){this.nativeCol=n.nativeCol,this.nativeColOff=n.nativeColOff,this.nativeRow=n.nativeRow,this.nativeRowOff=n.nativeRowOff}}v.exports=o},{"../utils/col-cache":19}],3:[function(t,v,b){const f=t("../utils/col-cache"),o=t("../utils/under-dash"),a=t("./enums"),{slideFormula:n}=t("../utils/shared-formula"),e=t("./note");class r{constructor(i,d,h){if(!i||!d)throw new Error("A Cell needs a Row");this._row=i,this._column=d,f.validateAddress(h),this._address=h,this._value=l.create(r.Types.Null,this),this.style=this._mergeStyle(i.style,d.style,{}),this._mergeCount=0}get worksheet(){return this._row.worksheet}get workbook(){return this._row.worksheet.workbook}destroy(){delete this.style,delete this._value,delete this._row,delete this._column,delete this._address}get numFmt(){return this.style.numFmt}set numFmt(i){this.style.numFmt=i}get font(){return this.style.font}set font(i){this.style.font=i}get alignment(){return this.style.alignment}set alignment(i){this.style.alignment=i}get border(){return this.style.border}set border(i){this.style.border=i}get fill(){return this.style.fill}set fill(i){this.style.fill=i}get protection(){return this.style.protection}set protection(i){this.style.protection=i}_mergeStyle(i,d,h){const c=i&&i.numFmt||d&&d.numFmt;c&&(h.numFmt=c);const m=i&&i.font||d&&d.font;m&&(h.font=m);const p=i&&i.alignment||d&&d.alignment;p&&(h.alignment=p);const x=i&&i.border||d&&d.border;x&&(h.border=x);const k=i&&i.fill||d&&d.fill;k&&(h.fill=k);const A=i&&i.protection||d&&d.protection;return A&&(h.protection=A),h}get address(){return this._address}get row(){return this._row.number}get col(){return this._column.number}get $col$row(){return`$${this._column.letter}$${this.row}`}get type(){return this._value.type}get effectiveType(){return this._value.effectiveType}toCsvString(){return this._value.toCsvString()}addMergeRef(){this._mergeCount++}releaseMergeRef(){this._mergeCount--}get isMerged(){return this._mergeCount>0||this.type===r.Types.Merge}merge(i,d){this._value.release(),this._value=l.create(r.Types.Merge,this,i),d||(this.style=i.style)}unmerge(){this.type===r.Types.Merge&&(this._value.release(),this._value=l.create(r.Types.Null,this),this.style=this._mergeStyle(this._row.style,this._column.style,{}))}isMergedTo(i){return this._value.type===r.Types.Merge&&this._value.isMergedTo(i)}get master(){return this.type===r.Types.Merge?this._value.master:this}get isHyperlink(){return this._value.type===r.Types.Hyperlink}get hyperlink(){return this._value.hyperlink}get value(){return this._value.value}set value(i){this.type!==r.Types.Merge?(this._value.release(),this._value=l.create(l.getType(i),this,i)):this._value.master.value=i}get note(){return this._comment&&this._comment.note}set note(i){this._comment=new e(i)}get text(){return this._value.toString()}get html(){return o.escapeHtml(this.text)}toString(){return this.text}_upgradeToHyperlink(i){this.type===r.Types.String&&(this._value=l.create(r.Types.Hyperlink,this,{text:this._value.value,hyperlink:i}))}get formula(){return this._value.formula}get result(){return this._value.result}get formulaType(){return this._value.formulaType}get fullAddress(){const{worksheet:i}=this._row;return{sheetName:i.name,address:this.address,row:this.row,col:this.col}}get name(){return this.names[0]}set name(i){this.names=[i]}get names(){return this.workbook.definedNames.getNamesEx(this.fullAddress)}set names(i){const{definedNames:d}=this.workbook;d.removeAllNames(this.fullAddress),i.forEach(h=>{d.addEx(this.fullAddress,h)})}addName(i){this.workbook.definedNames.addEx(this.fullAddress,i)}removeName(i){this.workbook.definedNames.removeEx(this.fullAddress,i)}removeAllNames(){this.workbook.definedNames.removeAllNames(this.fullAddress)}get _dataValidations(){return this.worksheet.dataValidations}get dataValidation(){return this._dataValidations.find(this.address)}set dataValidation(i){this._dataValidations.add(this.address,i)}get model(){const{model:i}=this._value;return i.style=this.style,this._comment&&(i.comment=this._comment.model),i}set model(i){if(this._value.release(),this._value=l.create(i.type,this),this._value.model=i,i.comment)switch(i.comment.type){case"note":this._comment=e.fromModel(i.comment)}i.style?this.style=i.style:this.style={}}}r.Types=a.ValueType;const l={getType:s=>s==null?r.Types.Null:s instanceof String||typeof s=="string"?r.Types.String:typeof s=="number"?r.Types.Number:typeof s=="boolean"?r.Types.Boolean:s instanceof Date?r.Types.Date:s.text&&s.hyperlink?r.Types.Hyperlink:s.formula||s.sharedFormula?r.Types.Formula:s.richText?r.Types.RichText:s.sharedString?r.Types.SharedString:s.error?r.Types.Error:r.Types.JSON,types:[{t:r.Types.Null,f:class{constructor(s){this.model={address:s.address,type:r.Types.Null}}get value(){return null}set value(s){}get type(){return r.Types.Null}get effectiveType(){return r.Types.Null}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return""}release(){}toString(){return""}}},{t:r.Types.Number,f:class{constructor(s,i){this.model={address:s.address,type:r.Types.Number,value:i}}get value(){return this.model.value}set value(s){this.model.value=s}get type(){return r.Types.Number}get effectiveType(){return r.Types.Number}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:r.Types.String,f:class{constructor(s,i){this.model={address:s.address,type:r.Types.String,value:i}}get value(){return this.model.value}set value(s){this.model.value=s}get type(){return r.Types.String}get effectiveType(){return r.Types.String}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return`"${this.model.value.replace(/"/g,'""')}"`}release(){}toString(){return this.model.value}}},{t:r.Types.Date,f:class{constructor(s,i){this.model={address:s.address,type:r.Types.Date,value:i}}get value(){return this.model.value}set value(s){this.model.value=s}get type(){return r.Types.Date}get effectiveType(){return r.Types.Date}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return this.model.value.toISOString()}release(){}toString(){return this.model.value.toString()}}},{t:r.Types.Hyperlink,f:class{constructor(s,i){this.model={address:s.address,type:r.Types.Hyperlink,text:i?i.text:void 0,hyperlink:i?i.hyperlink:void 0},i&&i.tooltip&&(this.model.tooltip=i.tooltip)}get value(){const s={text:this.model.text,hyperlink:this.model.hyperlink};return this.model.tooltip&&(s.tooltip=this.model.tooltip),s}set value(s){this.model={text:s.text,hyperlink:s.hyperlink},s.tooltip&&(this.model.tooltip=s.tooltip)}get text(){return this.model.text}set text(s){this.model.text=s}get hyperlink(){return this.model.hyperlink}set hyperlink(s){this.model.hyperlink=s}get type(){return r.Types.Hyperlink}get effectiveType(){return r.Types.Hyperlink}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return this.model.hyperlink}release(){}toString(){return this.model.text}}},{t:r.Types.Formula,f:class{constructor(s,i){this.cell=s,this.model={address:s.address,type:r.Types.Formula,shareType:i?i.shareType:void 0,ref:i?i.ref:void 0,formula:i?i.formula:void 0,sharedFormula:i?i.sharedFormula:void 0,result:i?i.result:void 0}}_copyModel(s){const i={},d=h=>{const c=s[h];c&&(i[h]=c)};return d("formula"),d("result"),d("ref"),d("shareType"),d("sharedFormula"),i}get value(){return this._copyModel(this.model)}set value(s){this.model=this._copyModel(s)}validate(s){switch(l.getType(s)){case r.Types.Null:case r.Types.String:case r.Types.Number:case r.Types.Date:break;case r.Types.Hyperlink:case r.Types.Formula:default:throw new Error("Cannot process that type of result value")}}get dependencies(){return{ranges:this.formula.match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g),cells:this.formula.replace(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g,"").match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}/g)}}get formula(){return this.model.formula||this._getTranslatedFormula()}set formula(s){this.model.formula=s}get formulaType(){return this.model.formula?a.FormulaType.Master:this.model.sharedFormula?a.FormulaType.Shared:a.FormulaType.None}get result(){return this.model.result}set result(s){this.model.result=s}get type(){return r.Types.Formula}get effectiveType(){const s=this.model.result;return s==null?a.ValueType.Null:s instanceof String||typeof s=="string"?a.ValueType.String:typeof s=="number"?a.ValueType.Number:s instanceof Date?a.ValueType.Date:s.text&&s.hyperlink?a.ValueType.Hyperlink:s.formula?a.ValueType.Formula:a.ValueType.Null}get address(){return this.model.address}set address(s){this.model.address=s}_getTranslatedFormula(){if(!this._translatedFormula&&this.model.sharedFormula){const{worksheet:s}=this.cell,i=s.findCell(this.model.sharedFormula);this._translatedFormula=i&&n(i.formula,i.address,this.model.address)}return this._translatedFormula}toCsvString(){return""+(this.model.result||"")}release(){}toString(){return this.model.result?this.model.result.toString():""}}},{t:r.Types.Merge,f:class{constructor(s,i){this.model={address:s.address,type:r.Types.Merge,master:i?i.address:void 0},this._master=i,i&&i.addMergeRef()}get value(){return this._master.value}set value(s){s instanceof r?(this._master&&this._master.releaseMergeRef(),s.addMergeRef(),this._master=s):this._master.value=s}isMergedTo(s){return s===this._master}get master(){return this._master}get type(){return r.Types.Merge}get effectiveType(){return this._master.effectiveType}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return""}release(){this._master.releaseMergeRef()}toString(){return this.value.toString()}}},{t:r.Types.JSON,f:class{constructor(s,i){this.model={address:s.address,type:r.Types.String,value:JSON.stringify(i),rawValue:i}}get value(){return this.model.rawValue}set value(s){this.model.rawValue=s,this.model.value=JSON.stringify(s)}get type(){return r.Types.String}get effectiveType(){return r.Types.String}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return this.model.value}release(){}toString(){return this.model.value}}},{t:r.Types.SharedString,f:class{constructor(s,i){this.model={address:s.address,type:r.Types.SharedString,value:i}}get value(){return this.model.value}set value(s){this.model.value=s}get type(){return r.Types.SharedString}get effectiveType(){return r.Types.SharedString}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:r.Types.RichText,f:class{constructor(s,i){this.model={address:s.address,type:r.Types.String,value:i}}get value(){return this.model.value}set value(s){this.model.value=s}toString(){return this.model.value.richText.map(s=>s.text).join("")}get type(){return r.Types.RichText}get effectiveType(){return r.Types.RichText}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return`"${this.text.replace(/"/g,'""')}"`}release(){}}},{t:r.Types.Boolean,f:class{constructor(s,i){this.model={address:s.address,type:r.Types.Boolean,value:i}}get value(){return this.model.value}set value(s){this.model.value=s}get type(){return r.Types.Boolean}get effectiveType(){return r.Types.Boolean}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return this.model.value?1:0}release(){}toString(){return this.model.value.toString()}}},{t:r.Types.Error,f:class{constructor(s,i){this.model={address:s.address,type:r.Types.Error,value:i}}get value(){return this.model.value}set value(s){this.model.value=s}get type(){return r.Types.Error}get effectiveType(){return r.Types.Error}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return this.toString()}release(){}toString(){return this.model.value.error.toString()}}}].reduce((s,i)=>(s[i.t]=i.f,s),[]),create(s,i,d){const h=this.types[s];if(!h)throw new Error("Could not create Value of type "+s);return new h(i,d)}};v.exports=r},{"../utils/col-cache":19,"../utils/shared-formula":23,"../utils/under-dash":26,"./enums":7,"./note":9}],4:[function(t,v,b){const f=t("../utils/under-dash"),o=t("./enums"),a=t("../utils/col-cache");class n{constructor(r,l,s){this._worksheet=r,this._number=l,s!==!1&&(this.defn=s)}get number(){return this._number}get worksheet(){return this._worksheet}get letter(){return a.n2l(this._number)}get isCustomWidth(){return this.width!==void 0&&this.width!==9}get defn(){return{header:this._header,key:this.key,width:this.width,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel}}set defn(r){r?(this.key=r.key,this.width=r.width!==void 0?r.width:9,this.outlineLevel=r.outlineLevel,r.style?this.style=r.style:this.style={},this.header=r.header,this._hidden=!!r.hidden):(delete this._header,delete this._key,delete this.width,this.style={},this.outlineLevel=0)}get headers(){return this._header&&this._header instanceof Array?this._header:[this._header]}get header(){return this._header}set header(r){r!==void 0?(this._header=r,this.headers.forEach((l,s)=>{this._worksheet.getCell(s+1,this.number).value=l})):this._header=void 0}get key(){return this._key}set key(r){(this._key&&this._worksheet.getColumnKey(this._key))===this&&this._worksheet.deleteColumnKey(this._key),this._key=r,r&&this._worksheet.setColumnKey(this._key,this)}get hidden(){return!!this._hidden}set hidden(r){this._hidden=r}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(r){this._outlineLevel=r}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelCol)}toString(){return JSON.stringify({key:this.key,width:this.width,headers:this.headers.length?this.headers:void 0})}equivalentTo(r){return this.width===r.width&&this.hidden===r.hidden&&this.outlineLevel===r.outlineLevel&&f.isEqual(this.style,r.style)}get isDefault(){if(this.isCustomWidth||this.hidden||this.outlineLevel)return!1;const r=this.style;return!r||!(r.font||r.numFmt||r.alignment||r.border||r.fill||r.protection)}get headerCount(){return this.headers.length}eachCell(r,l){const s=this.number;l||(l=r,r=null),this._worksheet.eachRow(r,(i,d)=>{l(i.getCell(s),d)})}get values(){const r=[];return this.eachCell((l,s)=>{l&&l.type!==o.ValueType.Null&&(r[s]=l.value)}),r}set values(r){if(!r)return;const l=this.number;let s=0;r.hasOwnProperty("0")&&(s=1),r.forEach((i,d)=>{this._worksheet.getCell(d+s,l).value=i})}_applyStyle(r,l){return this.style[r]=l,this.eachCell(s=>{s[r]=l}),l}get numFmt(){return this.style.numFmt}set numFmt(r){this._applyStyle("numFmt",r)}get font(){return this.style.font}set font(r){this._applyStyle("font",r)}get alignment(){return this.style.alignment}set alignment(r){this._applyStyle("alignment",r)}get protection(){return this.style.protection}set protection(r){this._applyStyle("protection",r)}get border(){return this.style.border}set border(r){this._applyStyle("border",r)}get fill(){return this.style.fill}set fill(r){this._applyStyle("fill",r)}static toModel(r){const l=[];let s=null;return r&&r.forEach((i,d)=>{i.isDefault?s&&(s=null):s&&i.equivalentTo(s)?s.max=d+1:(s={min:d+1,max:d+1,width:i.width!==void 0?i.width:9,style:i.style,isCustomWidth:i.isCustomWidth,hidden:i.hidden,outlineLevel:i.outlineLevel,collapsed:i.collapsed},l.push(s))}),l.length?l:void 0}static fromModel(r,l){const s=[];let i=1,d=0;for(l=(l=l||[]).sort(function(h,c){return h.min-c.min});d<l.length;){const h=l[d++];for(;i<h.min;)s.push(new n(r,i++));for(;i<=h.max;)s.push(new n(r,i++,h))}return s.length?s:null}}v.exports=n},{"../utils/col-cache":19,"../utils/under-dash":26,"./enums":7}],5:[function(t,v,b){v.exports=class{constructor(f){this.model=f||{}}add(f,o){return this.model[f]=o}find(f){return this.model[f]}remove(f){this.model[f]=void 0}}},{}],6:[function(t,v,b){const f=t("../utils/under-dash"),o=t("../utils/col-cache"),a=t("../utils/cell-matrix"),n=t("./range"),e=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/;v.exports=class{constructor(){this.matrixMap={}}getMatrix(r){return this.matrixMap[r]||(this.matrixMap[r]=new a)}add(r,l){const s=o.decodeEx(r);this.addEx(s,l)}addEx(r,l){const s=this.getMatrix(l);if(r.top)for(let i=r.left;i<=r.right;i++)for(let d=r.top;d<=r.bottom;d++){const h={sheetName:r.sheetName,address:o.n2l(i)+d,row:d,col:i};s.addCellEx(h)}else s.addCellEx(r)}remove(r,l){const s=o.decodeEx(r);this.removeEx(s,l)}removeEx(r,l){this.getMatrix(l).removeCellEx(r)}removeAllNames(r){f.each(this.matrixMap,l=>{l.removeCellEx(r)})}forEach(r){f.each(this.matrixMap,(l,s)=>{l.forEach(i=>{r(s,i)})})}getNames(r){return this.getNamesEx(o.decodeEx(r))}getNamesEx(r){return f.map(this.matrixMap,(l,s)=>l.findCellEx(r)&&s).filter(Boolean)}_explore(r,l){l.mark=!1;const{sheetName:s}=l,i=new n(l.row,l.col,l.row,l.col,s);let d,h;function c(p,x){const k=r.findCellAt(s,p,l.col);return!(!k||!k.mark)&&(i[x]=p,k.mark=!1,!0)}for(h=l.row-1;c(h,"top");h--);for(h=l.row+1;c(h,"bottom");h++);function m(p,x){const k=[];for(h=i.top;h<=i.bottom;h++){const A=r.findCellAt(s,h,p);if(!A||!A.mark)return!1;k.push(A)}i[x]=p;for(let A=0;A<k.length;A++)k[A].mark=!1;return!0}for(d=l.col-1;m(d,"left");d--);for(d=l.col+1;m(d,"right");d++);return i}getRanges(r,l){return(l=l||this.matrixMap[r])?(l.forEach(s=>{s.mark=!0}),{name:r,ranges:l.map(s=>s.mark&&this._explore(l,s)).filter(Boolean).map(s=>s.$shortRange)}):{name:r,ranges:[]}}normaliseMatrix(r,l){r.forEachInSheet(l,(s,i,d)=>{s&&(s.row===i&&s.col===d||(s.row=i,s.col=d,s.address=o.n2l(d)+i))})}spliceRows(r,l,s,i){f.each(this.matrixMap,d=>{d.spliceRows(r,l,s,i),this.normaliseMatrix(d,r)})}spliceColumns(r,l,s,i){f.each(this.matrixMap,d=>{d.spliceColumns(r,l,s,i),this.normaliseMatrix(d,r)})}get model(){return f.map(this.matrixMap,(r,l)=>this.getRanges(l,r)).filter(r=>r.ranges.length)}set model(r){const l=this.matrixMap={};r.forEach(s=>{const i=l[s.name]=new a;s.ranges.forEach(d=>{e.test(d.split("!").pop()||"")&&i.addCell(d)})})}}},{"../utils/cell-matrix":18,"../utils/col-cache":19,"../utils/under-dash":26,"./range":10}],7:[function(t,v,b){v.exports={ValueType:{Null:0,Merge:1,Number:2,String:3,Date:4,Hyperlink:5,Formula:6,SharedString:7,RichText:8,Boolean:9,Error:10},FormulaType:{None:0,Master:1,Shared:2},RelationshipType:{None:0,OfficeDocument:1,Worksheet:2,CalcChain:3,SharedStrings:4,Styles:5,Theme:6,Hyperlink:7},DocumentType:{Xlsx:1},ReadingOrder:{LeftToRight:1,RightToLeft:2},ErrorValue:{NotApplicable:"#N/A",Ref:"#REF!",Name:"#NAME?",DivZero:"#DIV/0!",Null:"#NULL!",Value:"#VALUE!",Num:"#NUM!"}}},{}],8:[function(t,v,b){const f=t("../utils/col-cache"),o=t("./anchor");v.exports=class{constructor(a,n){this.worksheet=a,this.model=n}get model(){switch(this.type){case"background":return{type:this.type,imageId:this.imageId};case"image":return{type:this.type,imageId:this.imageId,hyperlinks:this.range.hyperlinks,range:{tl:this.range.tl.model,br:this.range.br&&this.range.br.model,ext:this.range.ext,editAs:this.range.editAs}};default:throw new Error("Invalid Image Type")}}set model(a){let{type:n,imageId:e,range:r,hyperlinks:l}=a;if(this.type=n,this.imageId=e,n==="image")if(typeof r=="string"){const s=f.decode(r);this.range={tl:new o(this.worksheet,{col:s.left,row:s.top},-1),br:new o(this.worksheet,{col:s.right,row:s.bottom},0),editAs:"oneCell"}}else this.range={tl:new o(this.worksheet,r.tl,0),br:r.br&&new o(this.worksheet,r.br,0),ext:r.ext,editAs:r.editAs,hyperlinks:l||r.hyperlinks}}}},{"../utils/col-cache":19,"./anchor":2}],9:[function(t,v,b){const f=t("../utils/under-dash");class o{constructor(n){this.note=n}get model(){let n=null;switch(typeof this.note){case"string":n={type:"note",note:{texts:[{text:this.note}]}};break;default:n={type:"note",note:this.note}}return f.deepMerge({},o.DEFAULT_CONFIGS,n)}set model(n){const{note:e}=n,{texts:r}=e;r.length===1&&Object.keys(r[0]).length===1?this.note=r[0].text:this.note=e}static fromModel(n){const e=new o;return e.model=n,e}}o.DEFAULT_CONFIGS={note:{margins:{insetmode:"auto",inset:[.13,.13,.25,.25]},protection:{locked:"True",lockText:"True"},editAs:"absolute"}},v.exports=o},{"../utils/under-dash":26}],10:[function(t,v,b){const f=t("../utils/col-cache");class o{constructor(){this.decode(arguments)}setTLBR(n,e,r,l,s){if(arguments.length<4){const i=f.decodeAddress(n),d=f.decodeAddress(e);this.model={top:Math.min(i.row,d.row),left:Math.min(i.col,d.col),bottom:Math.max(i.row,d.row),right:Math.max(i.col,d.col),sheetName:r},this.setTLBR(i.row,i.col,d.row,d.col,s)}else this.model={top:Math.min(n,r),left:Math.min(e,l),bottom:Math.max(n,r),right:Math.max(e,l),sheetName:s}}decode(n){switch(n.length){case 5:this.setTLBR(n[0],n[1],n[2],n[3],n[4]);break;case 4:this.setTLBR(n[0],n[1],n[2],n[3]);break;case 3:this.setTLBR(n[0],n[1],n[2]);break;case 2:this.setTLBR(n[0],n[1]);break;case 1:{const e=n[0];if(e instanceof o)this.model={top:e.model.top,left:e.model.left,bottom:e.model.bottom,right:e.model.right,sheetName:e.sheetName};else if(e instanceof Array)this.decode(e);else if(e.top&&e.left&&e.bottom&&e.right)this.model={top:e.top,left:e.left,bottom:e.bottom,right:e.right,sheetName:e.sheetName};else{const r=f.decodeEx(e);r.top?this.model={top:r.top,left:r.left,bottom:r.bottom,right:r.right,sheetName:r.sheetName}:this.model={top:r.row,left:r.col,bottom:r.row,right:r.col,sheetName:r.sheetName}}break}case 0:this.model={top:0,left:0,bottom:0,right:0};break;default:throw new Error("Invalid number of arguments to _getDimensions() - "+n.length)}}get top(){return this.model.top||1}set top(n){this.model.top=n}get left(){return this.model.left||1}set left(n){this.model.left=n}get bottom(){return this.model.bottom||1}set bottom(n){this.model.bottom=n}get right(){return this.model.right||1}set right(n){this.model.right=n}get sheetName(){return this.model.sheetName}set sheetName(n){this.model.sheetName=n}get _serialisedSheetName(){const{sheetName:n}=this.model;return n?/^[a-zA-Z0-9]*$/.test(n)?n+"!":`'${n}'!`:""}expand(n,e,r,l){(!this.model.top||n<this.top)&&(this.top=n),(!this.model.left||e<this.left)&&(this.left=e),(!this.model.bottom||r>this.bottom)&&(this.bottom=r),(!this.model.right||l>this.right)&&(this.right=l)}expandRow(n){if(n){const{dimensions:e,number:r}=n;e&&this.expand(r,e.min,r,e.max)}}expandToAddress(n){const e=f.decodeEx(n);this.expand(e.row,e.col,e.row,e.col)}get tl(){return f.n2l(this.left)+this.top}get $t$l(){return`$${f.n2l(this.left)}$${this.top}`}get br(){return f.n2l(this.right)+this.bottom}get $b$r(){return`$${f.n2l(this.right)}$${this.bottom}`}get range(){return`${this._serialisedSheetName+this.tl}:${this.br}`}get $range(){return`${this._serialisedSheetName+this.$t$l}:${this.$b$r}`}get shortRange(){return this.count>1?this.range:this._serialisedSheetName+this.tl}get $shortRange(){return this.count>1?this.$range:this._serialisedSheetName+this.$t$l}get count(){return(1+this.bottom-this.top)*(1+this.right-this.left)}toString(){return this.range}intersects(n){return(!n.sheetName||!this.sheetName||n.sheetName===this.sheetName)&&!(n.bottom<this.top)&&!(n.top>this.bottom)&&!(n.right<this.left)&&!(n.left>this.right)}contains(n){const e=f.decodeEx(n);return this.containsEx(e)}containsEx(n){return(!n.sheetName||!this.sheetName||n.sheetName===this.sheetName)&&n.row>=this.top&&n.row<=this.bottom&&n.col>=this.left&&n.col<=this.right}forEachAddress(n){for(let e=this.left;e<=this.right;e++)for(let r=this.top;r<=this.bottom;r++)n(f.encodeAddress(r,e),r,e)}}v.exports=o},{"../utils/col-cache":19}],11:[function(t,v,b){const f=t("../utils/under-dash"),o=t("./enums"),a=t("../utils/col-cache"),n=t("./cell");v.exports=class{constructor(e,r){this._worksheet=e,this._number=r,this._cells=[],this.style={},this.outlineLevel=0}get number(){return this._number}get worksheet(){return this._worksheet}commit(){this._worksheet._commitRow(this)}destroy(){delete this._worksheet,delete this._cells,delete this.style}findCell(e){return this._cells[e-1]}getCellEx(e){let r=this._cells[e.col-1];if(!r){const l=this._worksheet.getColumn(e.col);r=new n(this,l,e.address),this._cells[e.col-1]=r}return r}getCell(e){if(typeof e=="string"){const r=this._worksheet.getColumnKey(e);e=r?r.number:a.l2n(e)}return this._cells[e-1]||this.getCellEx({address:a.encodeAddress(this._number,e),row:this._number,col:e})}splice(e,r){const l=e+r;for(var s=arguments.length,i=new Array(s>2?s-2:0),d=2;d<s;d++)i[d-2]=arguments[d];const h=i.length-r,c=this._cells.length;let m,p,x;if(h<0)for(m=e+i.length;m<=c;m++)x=this._cells[m-1],p=this._cells[m-h-1],p?(x=this.getCell(m),x.value=p.value,x.style=p.style,x._comment=p._comment):x&&(x.value=null,x.style={},x._comment=void 0);else if(h>0)for(m=c;m>=l;m--)p=this._cells[m-1],p?(x=this.getCell(m+h),x.value=p.value,x.style=p.style,x._comment=p._comment):this._cells[m+h-1]=void 0;for(m=0;m<i.length;m++)x=this.getCell(e+m),x.value=i[m],x.style={},x._comment=void 0}eachCell(e,r){if(r||(r=e,e=null),e&&e.includeEmpty){const l=this._cells.length;for(let s=1;s<=l;s++)r(this.getCell(s),s)}else this._cells.forEach((l,s)=>{l&&l.type!==o.ValueType.Null&&r(l,s+1)})}addPageBreak(e,r){const l=this._worksheet,s=Math.max(0,e-1)||0,i=Math.max(0,r-1)||16838,d={id:this._number,max:i,man:1};s&&(d.min=s),l.rowBreaks.push(d)}get values(){const e=[];return this._cells.forEach(r=>{r&&r.type!==o.ValueType.Null&&(e[r.col]=r.value)}),e}set values(e){if(this._cells=[],e)if(e instanceof Array){let r=0;e.hasOwnProperty("0")&&(r=1),e.forEach((l,s)=>{l!==void 0&&(this.getCellEx({address:a.encodeAddress(this._number,s+r),row:this._number,col:s+r}).value=l)})}else this._worksheet.eachColumnKey((r,l)=>{e[l]!==void 0&&(this.getCellEx({address:a.encodeAddress(this._number,r.number),row:this._number,col:r.number}).value=e[l])})}get hasValues(){return f.some(this._cells,e=>e&&e.type!==o.ValueType.Null)}get cellCount(){return this._cells.length}get actualCellCount(){let e=0;return this.eachCell(()=>{e++}),e}get dimensions(){let e=0,r=0;return this._cells.forEach(l=>{l&&l.type!==o.ValueType.Null&&((!e||e>l.col)&&(e=l.col),r<l.col&&(r=l.col))}),e>0?{min:e,max:r}:null}_applyStyle(e,r){return this.style[e]=r,this._cells.forEach(l=>{l&&(l[e]=r)}),r}get numFmt(){return this.style.numFmt}set numFmt(e){this._applyStyle("numFmt",e)}get font(){return this.style.font}set font(e){this._applyStyle("font",e)}get alignment(){return this.style.alignment}set alignment(e){this._applyStyle("alignment",e)}get protection(){return this.style.protection}set protection(e){this._applyStyle("protection",e)}get border(){return this.style.border}set border(e){this._applyStyle("border",e)}get fill(){return this.style.fill}set fill(e){this._applyStyle("fill",e)}get hidden(){return!!this._hidden}set hidden(e){this._hidden=e}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(e){this._outlineLevel=e}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelRow)}get model(){const e=[];let r=0,l=0;return this._cells.forEach(s=>{if(s){const i=s.model;i&&((!r||r>s.col)&&(r=s.col),l<s.col&&(l=s.col),e.push(i))}}),this.height||e.length?{cells:e,number:this.number,min:r,max:l,height:this.height,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel,collapsed:this.collapsed}:null}set model(e){if(e.number!==this._number)throw new Error("Invalid row number in model");let r;this._cells=[],e.cells.forEach(l=>{switch(l.type){case n.Types.Merge:break;default:{let s;if(l.address)s=a.decodeAddress(l.address);else if(r){const{row:i}=r,d=r.col+1;s={row:i,col:d,address:a.encodeAddress(i,d),$col$row:`$${a.n2l(d)}$${i}`}}r=s,this.getCellEx(s).model=l;break}}}),e.height?this.height=e.height:delete this.height,this.hidden=e.hidden,this.outlineLevel=e.outlineLevel||0,this.style=e.style&&JSON.parse(JSON.stringify(e.style))||{}}}},{"../utils/col-cache":19,"../utils/under-dash":26,"./cell":3,"./enums":7}],12:[function(t,v,b){const f=t("../utils/col-cache");class o{constructor(n,e,r){this.table=n,this.column=e,this.index=r}_set(n,e){this.table.cacheState(),this.column[n]=e}get name(){return this.column.name}set name(n){this._set("name",n)}get filterButton(){return this.column.filterButton}set filterButton(n){this.column.filterButton=n}get style(){return this.column.style}set style(n){this.column.style=n}get totalsRowLabel(){return this.column.totalsRowLabel}set totalsRowLabel(n){this._set("totalsRowLabel",n)}get totalsRowFunction(){return this.column.totalsRowFunction}set totalsRowFunction(n){this._set("totalsRowFunction",n)}get totalsRowResult(){return this.column.totalsRowResult}set totalsRowResult(n){this._set("totalsRowResult",n)}get totalsRowFormula(){return this.column.totalsRowFormula}set totalsRowFormula(n){this._set("totalsRowFormula",n)}}v.exports=class{constructor(a,n){this.worksheet=a,n&&(this.table=n,this.validate(),this.store())}getFormula(a){switch(a.totalsRowFunction){case"none":return null;case"average":return`SUBTOTAL(101,${this.table.name}[${a.name}])`;case"countNums":return`SUBTOTAL(102,${this.table.name}[${a.name}])`;case"count":return`SUBTOTAL(103,${this.table.name}[${a.name}])`;case"max":return`SUBTOTAL(104,${this.table.name}[${a.name}])`;case"min":return`SUBTOTAL(105,${this.table.name}[${a.name}])`;case"stdDev":return`SUBTOTAL(106,${this.table.name}[${a.name}])`;case"var":return`SUBTOTAL(107,${this.table.name}[${a.name}])`;case"sum":return`SUBTOTAL(109,${this.table.name}[${a.name}])`;case"custom":return a.totalsRowFormula;default:throw new Error("Invalid Totals Row Function: "+a.totalsRowFunction)}}get width(){return this.table.columns.length}get height(){return this.table.rows.length}get filterHeight(){return this.height+(this.table.headerRow?1:0)}get tableHeight(){return this.filterHeight+(this.table.totalsRow?1:0)}validate(){const{table:a}=this,n=(h,c,m)=>{h[c]===void 0&&(h[c]=m)};n(a,"headerRow",!0),n(a,"totalsRow",!1),n(a,"style",{}),n(a.style,"theme","TableStyleMedium2"),n(a.style,"showFirstColumn",!1),n(a.style,"showLastColumn",!1),n(a.style,"showRowStripes",!1),n(a.style,"showColumnStripes",!1);const e=(h,c)=>{if(!h)throw new Error(c)};e(a.ref,"Table must have ref"),e(a.columns,"Table must have column definitions"),e(a.rows,"Table must have row definitions"),a.tl=f.decodeAddress(a.ref);const{row:r,col:l}=a.tl;e(r>0,"Table must be on valid row"),e(l>0,"Table must be on valid col");const{width:s,filterHeight:i,tableHeight:d}=this;a.autoFilterRef=f.encode(r,l,r+i-1,l+s-1),a.tableRef=f.encode(r,l,r+d-1,l+s-1),a.columns.forEach((h,c)=>{e(h.name,`Column ${c} must have a name`),c===0?n(h,"totalsRowLabel","Total"):(n(h,"totalsRowFunction","none"),h.totalsRowFormula=this.getFormula(h))})}store(){const a=(i,d)=>{d&&Object.keys(d).forEach(h=>{i[h]=d[h]})},{worksheet:n,table:e}=this,{row:r,col:l}=e.tl;let s=0;if(e.headerRow){const i=n.getRow(r+s++);e.columns.forEach((d,h)=>{const{style:c,name:m}=d,p=i.getCell(l+h);p.value=m,a(p,c)})}if(e.rows.forEach(i=>{const d=n.getRow(r+s++);i.forEach((h,c)=>{const m=d.getCell(l+c);m.value=h,a(m,e.columns[c].style)})}),e.totalsRow){const i=n.getRow(r+s++);e.columns.forEach((d,h)=>{const c=i.getCell(l+h);if(h===0)c.value=d.totalsRowLabel;else{const m=this.getFormula(d);c.value=m?{formula:d.totalsRowFormula,result:d.totalsRowResult}:null}a(c,d.style)})}}load(a){const{table:n}=this,{row:e,col:r}=n.tl;let l=0;if(n.headerRow){const s=a.getRow(e+l++);n.columns.forEach((i,d)=>{s.getCell(r+d).value=i.name})}if(n.rows.forEach(s=>{const i=a.getRow(e+l++);s.forEach((d,h)=>{i.getCell(r+h).value=d})}),n.totalsRow){const s=a.getRow(e+l++);n.columns.forEach((i,d)=>{const h=s.getCell(r+d);d===0?h.value=i.totalsRowLabel:this.getFormula(i)&&(h.value={formula:i.totalsRowFormula,result:i.totalsRowResult})})}}get model(){return this.table}set model(a){this.table=a}cacheState(){this._cache||(this._cache={ref:this.ref,width:this.width,tableHeight:this.tableHeight})}commit(){if(!this._cache)return;this.validate();const a=f.decodeAddress(this._cache.ref);if(this.ref!==this._cache.ref)for(let n=0;n<this._cache.tableHeight;n++){const e=this.worksheet.getRow(a.row+n);for(let r=0;r<this._cache.width;r++)e.getCell(a.col+r).value=null}else{for(let n=this.tableHeight;n<this._cache.tableHeight;n++){const e=this.worksheet.getRow(a.row+n);for(let r=0;r<this._cache.width;r++)e.getCell(a.col+r).value=null}for(let n=0;n<this.tableHeight;n++){const e=this.worksheet.getRow(a.row+n);for(let r=this.width;r<this._cache.width;r++)e.getCell(a.col+r).value=null}}this.store()}addRow(a,n){this.cacheState(),n===void 0?this.table.rows.push(a):this.table.rows.splice(n,0,a)}removeRows(a){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.rows.splice(a,n)}getColumn(a){const n=this.table.columns[a];return new o(this,n,a)}addColumn(a,n,e){this.cacheState(),e===void 0?(this.table.columns.push(a),this.table.rows.forEach((r,l)=>{r.push(n[l])})):(this.table.columns.splice(e,0,a),this.table.rows.forEach((r,l)=>{r.splice(e,0,n[l])}))}removeColumns(a){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.columns.splice(a,n),this.table.rows.forEach(e=>{e.splice(a,n)})}_assign(a,n,e){this.cacheState(),a[n]=e}get ref(){return this.table.ref}set ref(a){this._assign(this.table,"ref",a)}get name(){return this.table.name}set name(a){this.table.name=a}get displayName(){return this.table.displyName||this.table.name}set displayNamename(a){this.table.displayName=a}get headerRow(){return this.table.headerRow}set headerRow(a){this._assign(this.table,"headerRow",a)}get totalsRow(){return this.table.totalsRow}set totalsRow(a){this._assign(this.table,"totalsRow",a)}get theme(){return this.table.style.name}set theme(a){this.table.style.name=a}get showFirstColumn(){return this.table.style.showFirstColumn}set showFirstColumn(a){this.table.style.showFirstColumn=a}get showLastColumn(){return this.table.style.showLastColumn}set showLastColumn(a){this.table.style.showLastColumn=a}get showRowStripes(){return this.table.style.showRowStripes}set showRowStripes(a){this.table.style.showRowStripes=a}get showColumnStripes(){return this.table.style.showColumnStripes}set showColumnStripes(a){this.table.style.showColumnStripes=a}}},{"../utils/col-cache":19}],13:[function(t,v,b){const f=t("./worksheet"),o=t("./defined-names"),a=t("../xlsx/xlsx"),n=t("../csv/csv");v.exports=class{constructor(){this.category="",this.company="",this.created=new Date,this.description="",this.keywords="",this.manager="",this.modified=this.created,this.properties={},this.calcProperties={},this._worksheets=[],this.subject="",this.title="",this.views=[],this.media=[],this._definedNames=new o}get xlsx(){return this._xlsx||(this._xlsx=new a(this)),this._xlsx}get csv(){return this._csv||(this._csv=new n(this)),this._csv}get nextId(){for(let e=1;e<this._worksheets.length;e++)if(!this._worksheets[e])return e;return this._worksheets.length||1}addWorksheet(e,r){const l=this.nextId;r&&(typeof r=="string"?(console.trace('tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { argb: "rbg value" } }'),r={properties:{tabColor:{argb:r}}}):(r.argb||r.theme||r.indexed)&&(console.trace("tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { ... } }"),r={properties:{tabColor:r}}));const s=this._worksheets.reduce((h,c)=>(c&&c.orderNo)>h?c.orderNo:h,0),i=Object.assign({},r,{id:l,name:e,orderNo:s+1,workbook:this}),d=new f(i);return this._worksheets[l]=d,d}removeWorksheetEx(e){delete this._worksheets[e.id]}removeWorksheet(e){const r=this.getWorksheet(e);r&&r.destroy()}getWorksheet(e){return e===void 0?this._worksheets.find(Boolean):typeof e=="number"?this._worksheets[e]:typeof e=="string"?this._worksheets.find(r=>r&&r.name===e):void 0}get worksheets(){return this._worksheets.slice(1).sort((e,r)=>e.orderNo-r.orderNo).filter(Boolean)}eachSheet(e){this.worksheets.forEach(r=>{e(r,r.id)})}get definedNames(){return this._definedNames}clearThemes(){this._themes=void 0}addImage(e){const r=this.media.length;return this.media.push(Object.assign({},e,{type:"image"})),r}getImage(e){return this.media[e]}get model(){return{creator:this.creator||"Unknown",lastModifiedBy:this.lastModifiedBy||"Unknown",lastPrinted:this.lastPrinted,created:this.created,modified:this.modified,properties:this.properties,worksheets:this.worksheets.map(e=>e.model),sheets:this.worksheets.map(e=>e.model).filter(Boolean),definedNames:this._definedNames.model,views:this.views,company:this.company,manager:this.manager,title:this.title,subject:this.subject,keywords:this.keywords,category:this.category,description:this.description,language:this.language,revision:this.revision,contentStatus:this.contentStatus,themes:this._themes,media:this.media,calcProperties:this.calcProperties}}set model(e){this.creator=e.creator,this.lastModifiedBy=e.lastModifiedBy,this.lastPrinted=e.lastPrinted,this.created=e.created,this.modified=e.modified,this.company=e.company,this.manager=e.manager,this.title=e.title,this.subject=e.subject,this.keywords=e.keywords,this.category=e.category,this.description=e.description,this.language=e.language,this.revision=e.revision,this.contentStatus=e.contentStatus,this.properties=e.properties,this.calcProperties=e.calcProperties,this._worksheets=[],e.worksheets.forEach(r=>{const{id:l,name:s,state:i}=r,d=e.sheets&&e.sheets.findIndex(h=>h.id===l);(this._worksheets[l]=new f({id:l,name:s,orderNo:d,state:i,workbook:this})).model=r}),this._definedNames.model=e.definedNames,this.views=e.views,this._themes=e.themes,this.media=e.media||[]}}},{"../csv/csv":1,"../xlsx/xlsx":144,"./defined-names":6,"./worksheet":14}],14:[function(t,v,b){const f=t("../utils/under-dash"),o=t("../utils/col-cache"),a=t("./range"),n=t("./row"),e=t("./column"),r=t("./enums"),l=t("./image"),s=t("./table"),i=t("./data-validations"),d=t("../utils/encryptor"),{copyStyle:h}=t("../utils/copy-style");v.exports=class{constructor(c){c=c||{},this._workbook=c.workbook,this.id=c.id,this.orderNo=c.orderNo,this.name=c.name,this.state=c.state||"visible",this._rows=[],this._columns=null,this._keys={},this._merges={},this.rowBreaks=[],this.properties=Object.assign({},{defaultRowHeight:15,dyDescent:55,outlineLevelCol:0,outlineLevelRow:0},c.properties),this.pageSetup=Object.assign({},{margins:{left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},orientation:"portrait",horizontalDpi:4294967295,verticalDpi:4294967295,fitToPage:!(!c.pageSetup||!c.pageSetup.fitToWidth&&!c.pageSetup.fitToHeight||c.pageSetup.scale),pageOrder:"downThenOver",blackAndWhite:!1,draft:!1,cellComments:"None",errors:"displayed",scale:100,fitToWidth:1,fitToHeight:1,paperSize:void 0,showRowColHeaders:!1,showGridLines:!1,firstPageNumber:void 0,horizontalCentered:!1,verticalCentered:!1,rowBreaks:null,colBreaks:null},c.pageSetup),this.headerFooter=Object.assign({},{differentFirst:!1,differentOddEven:!1,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},c.headerFooter),this.dataValidations=new i,this.views=c.views||[],this.autoFilter=c.autoFilter||null,this._media=[],this.sheetProtection=null,this.tables={},this.conditionalFormattings=[]}get name(){return this._name}set name(c){if(c===void 0&&(c="sheet"+this.id),this._name!==c){if(typeof c!="string")throw new Error("The name has to be a string.");if(c==="")throw new Error("The name can't be empty.");if(c==="History")throw new Error('The name "History" is protected. Please use a different name.');if(/[*?:/\\[\]]/.test(c))throw new Error(`Worksheet name ${c} cannot include any of the following characters: * ? : \\ / [ ]`);if(/(^')|('$)/.test(c))throw new Error("The first or last character of worksheet name cannot be a single quotation mark: "+c);if(c&&c.length>31&&(console.warn(`Worksheet name ${c} exceeds 31 chars. This will be truncated`),c=c.substring(0,31)),this._workbook._worksheets.find(m=>m&&m.name.toLowerCase()===c.toLowerCase()))throw new Error("Worksheet name already exists: "+c);this._name=c}}get workbook(){return this._workbook}destroy(){this._workbook.removeWorksheetEx(this)}get dimensions(){const c=new a;return this._rows.forEach(m=>{if(m){const p=m.dimensions;p&&c.expand(m.number,p.min,m.number,p.max)}}),c}get columns(){return this._columns}set columns(c){this._headerRowCount=c.reduce((x,k)=>{const A=(k.header?1:k.headers&&k.headers.length)||0;return Math.max(x,A)},0);let m=1;const p=this._columns=[];c.forEach(x=>{const k=new e(this,m++,!1);p.push(k),k.defn=x})}getColumnKey(c){return this._keys[c]}setColumnKey(c,m){this._keys[c]=m}deleteColumnKey(c){delete this._keys[c]}eachColumnKey(c){f.each(this._keys,c)}getColumn(c){if(typeof c=="string"){const m=this._keys[c];if(m)return m;c=o.l2n(c)}if(this._columns||(this._columns=[]),c>this._columns.length){let m=this._columns.length+1;for(;m<=c;)this._columns.push(new e(this,m++))}return this._columns[c-1]}spliceColumns(c,m){const p=this._rows.length;for(var x=arguments.length,k=new Array(x>2?x-2:0),A=2;A<x;A++)k[A-2]=arguments[A];if(k.length>0)for(let F=0;F<p;F++){const L=[c,m];k.forEach(z=>{L.push(z[F]||null)});const V=this.getRow(F+1);V.splice.apply(V,L)}else this._rows.forEach(F=>{F&&F.splice(c,m)});const N=k.length-m,q=c+m,D=this._columns.length;if(N<0)for(let F=c+k.length;F<=D;F++)this.getColumn(F).defn=this.getColumn(F-N).defn;else if(N>0)for(let F=D;F>=q;F--)this.getColumn(F+N).defn=this.getColumn(F).defn;for(let F=c;F<c+k.length;F++)this.getColumn(F).defn=null;this.workbook.definedNames.spliceColumns(this.name,c,m,k.length)}get lastColumn(){return this.getColumn(this.columnCount)}get columnCount(){let c=0;return this.eachRow(m=>{c=Math.max(c,m.cellCount)}),c}get actualColumnCount(){const c=[];let m=0;return this.eachRow(p=>{p.eachCell(x=>{let{col:k}=x;c[k]||(c[k]=!0,m++)})}),m}_commitRow(){}get _lastRowNumber(){const c=this._rows;let m=c.length;for(;m>0&&c[m-1]===void 0;)m--;return m}get _nextRow(){return this._lastRowNumber+1}get lastRow(){if(this._rows.length)return this._rows[this._rows.length-1]}findRow(c){return this._rows[c-1]}findRows(c,m){return this._rows.slice(c-1,c-1+m)}get rowCount(){return this._lastRowNumber}get actualRowCount(){let c=0;return this.eachRow(()=>{c++}),c}getRow(c){let m=this._rows[c-1];return m||(m=this._rows[c-1]=new n(this,c)),m}getRows(c,m){if(m<1)return;const p=[];for(let x=c;x<c+m;x++)p.push(this.getRow(x));return p}addRow(c){let m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";const p=this._nextRow,x=this.getRow(p);return x.values=c,this._setStyleOption(p,m[0]==="i"?m:"n"),x}addRows(c){let m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";const p=[];return c.forEach(x=>{p.push(this.addRow(x,m))}),p}insertRow(c,m){let p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";return this.spliceRows(c,0,m),this._setStyleOption(c,p),this.getRow(c)}insertRows(c,m){let p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";if(this.spliceRows(c,0,...m),p!=="n")for(let x=0;x<m.length;x++)p[0]==="o"&&this.findRow(m.length+c+x)!==void 0?this._copyStyle(m.length+c+x,c+x,p[1]==="+"):p[0]==="i"&&this.findRow(c-1)!==void 0&&this._copyStyle(c-1,c+x,p[1]==="+");return this.getRows(c,m.length)}_setStyleOption(c){let m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";m[0]==="o"&&this.findRow(c+1)!==void 0?this._copyStyle(c+1,c,m[1]==="+"):m[0]==="i"&&this.findRow(c-1)!==void 0&&this._copyStyle(c-1,c,m[1]==="+")}_copyStyle(c,m){let p=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const x=this.getRow(c),k=this.getRow(m);k.style=h(x.style),x.eachCell({includeEmpty:p},(A,N)=>{k.getCell(N).style=h(A.style)}),k.height=x.height}duplicateRow(c,m){let p=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const x=this._rows[c-1],k=new Array(m).fill(x.values);this.spliceRows(c+1,p?0:m,...k);for(let A=0;A<m;A++){const N=this._rows[c+A];N.style=x.style,N.height=x.height,x.eachCell({includeEmpty:!0},(q,D)=>{N.getCell(D).style=q.style})}}spliceRows(c,m){const p=c+m;for(var x=arguments.length,k=new Array(x>2?x-2:0),A=2;A<x;A++)k[A-2]=arguments[A];const N=k.length,q=N-m,D=this._rows.length;let F,L;if(q<0)for(c===D&&(this._rows[D-1]=void 0),F=p;F<=D;F++)if(L=this._rows[F-1],L){const V=this.getRow(F+q);V.values=L.values,V.style=L.style,V.height=L.height,L.eachCell({includeEmpty:!0},(z,M)=>{V.getCell(M).style=z.style}),this._rows[F-1]=void 0}else this._rows[F+q-1]=void 0;else if(q>0)for(F=D;F>=p;F--)if(L=this._rows[F-1],L){const V=this.getRow(F+q);V.values=L.values,V.style=L.style,V.height=L.height,L.eachCell({includeEmpty:!0},(z,M)=>{if(V.getCell(M).style=z.style,z._value.constructor.name==="MergeValue"){const T=this.getRow(z._row._number+N).getCell(M),S=z._value._master,g=this.getRow(S._row._number+N).getCell(S._column._number);T.merge(g)}})}else this._rows[F+q-1]=void 0;for(F=0;F<N;F++){const V=this.getRow(c+F);V.style={},V.values=k[F]}this.workbook.definedNames.spliceRows(this.name,c,m,N)}eachRow(c,m){if(m||(m=c,c=void 0),c&&c.includeEmpty){const p=this._rows.length;for(let x=1;x<=p;x++)m(this.getRow(x),x)}else this._rows.forEach(p=>{p&&p.hasValues&&m(p,p.number)})}getSheetValues(){const c=[];return this._rows.forEach(m=>{m&&(c[m.number]=m.values)}),c}findCell(c,m){const p=o.getAddress(c,m),x=this._rows[p.row-1];return x?x.findCell(p.col):void 0}getCell(c,m){const p=o.getAddress(c,m);return this.getRow(p.row).getCellEx(p)}mergeCells(){for(var c=arguments.length,m=new Array(c),p=0;p<c;p++)m[p]=arguments[p];const x=new a(m);this._mergeCellsInternal(x)}mergeCellsWithoutStyle(){for(var c=arguments.length,m=new Array(c),p=0;p<c;p++)m[p]=arguments[p];const x=new a(m);this._mergeCellsInternal(x,!0)}_mergeCellsInternal(c,m){f.each(this._merges,x=>{if(x.intersects(c))throw new Error("Cannot merge already merged cells")});const p=this.getCell(c.top,c.left);for(let x=c.top;x<=c.bottom;x++)for(let k=c.left;k<=c.right;k++)(x>c.top||k>c.left)&&this.getCell(x,k).merge(p,m);this._merges[p.address]=c}_unMergeMaster(c){const m=this._merges[c.address];if(m){for(let p=m.top;p<=m.bottom;p++)for(let x=m.left;x<=m.right;x++)this.getCell(p,x).unmerge();delete this._merges[c.address]}}get hasMerges(){return f.some(this._merges,Boolean)}unMergeCells(){for(var c=arguments.length,m=new Array(c),p=0;p<c;p++)m[p]=arguments[p];const x=new a(m);for(let k=x.top;k<=x.bottom;k++)for(let A=x.left;A<=x.right;A++){const N=this.findCell(k,A);N&&(N.type===r.ValueType.Merge?this._unMergeMaster(N.master):this._merges[N.address]&&this._unMergeMaster(N))}}fillFormula(c,m,p){let x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"shared";const k=o.decode(c),{top:A,left:N,bottom:q,right:D}=k,F=D-N+1,L=o.encodeAddress(A,N),V=x==="shared";let z;z=typeof p=="function"?p:Array.isArray(p)?Array.isArray(p[0])?(T,S)=>p[T-A][S-N]:(T,S)=>p[(T-A)*F+(S-N)]:()=>{};let M=!0;for(let T=A;T<=q;T++)for(let S=N;S<=D;S++)M?(this.getCell(T,S).value={shareType:x,formula:m,ref:c,result:z(T,S)},M=!1):this.getCell(T,S).value=V?{sharedFormula:L,result:z(T,S)}:z(T,S)}addImage(c,m){const p={type:"image",imageId:c,range:m};this._media.push(new l(this,p))}getImages(){return this._media.filter(c=>c.type==="image")}addBackgroundImage(c){const m={type:"background",imageId:c};this._media.push(new l(this,m))}getBackgroundImageId(){const c=this._media.find(m=>m.type==="background");return c&&c.imageId}protect(c,m){return new Promise(p=>{this.sheetProtection={sheet:!0},m&&"spinCount"in m&&(m.spinCount=Number.isFinite(m.spinCount)?Math.round(Math.max(0,m.spinCount)):1e5),c&&(this.sheetProtection.algorithmName="SHA-512",this.sheetProtection.saltValue=d.randomBytes(16).toString("base64"),this.sheetProtection.spinCount=m&&"spinCount"in m?m.spinCount:1e5,this.sheetProtection.hashValue=d.convertPasswordToHash(c,"SHA512",this.sheetProtection.saltValue,this.sheetProtection.spinCount)),m&&(this.sheetProtection=Object.assign(this.sheetProtection,m),!c&&"spinCount"in m&&delete this.sheetProtection.spinCount),p()})}unprotect(){this.sheetProtection=null}addTable(c){const m=new s(this,c);return this.tables[c.name]=m,m}getTable(c){return this.tables[c]}removeTable(c){delete this.tables[c]}getTables(){return Object.values(this.tables)}addConditionalFormatting(c){this.conditionalFormattings.push(c)}removeConditionalFormatting(c){typeof c=="number"?this.conditionalFormattings.splice(c,1):this.conditionalFormattings=c instanceof Function?this.conditionalFormattings.filter(c):[]}get tabColor(){return console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor}set tabColor(c){console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor=c}get model(){const c={id:this.id,name:this.name,dataValidations:this.dataValidations.model,properties:this.properties,state:this.state,pageSetup:this.pageSetup,headerFooter:this.headerFooter,rowBreaks:this.rowBreaks,views:this.views,autoFilter:this.autoFilter,media:this._media.map(x=>x.model),sheetProtection:this.sheetProtection,tables:Object.values(this.tables).map(x=>x.model),conditionalFormattings:this.conditionalFormattings};c.cols=e.toModel(this.columns);const m=c.rows=[],p=c.dimensions=new a;return this._rows.forEach(x=>{const k=x&&x.model;k&&(p.expand(k.number,k.min,k.number,k.max),m.push(k))}),c.merges=[],f.each(this._merges,x=>{c.merges.push(x.range)}),c}_parseRows(c){this._rows=[],c.rows.forEach(m=>{const p=new n(this,m.number);this._rows[p.number-1]=p,p.model=m})}_parseMergeCells(c){f.each(c.mergeCells,m=>{this.mergeCellsWithoutStyle(m)})}set model(c){this.name=c.name,this._columns=e.fromModel(this,c.cols),this._parseRows(c),this._parseMergeCells(c),this.dataValidations=new i(c.dataValidations),this.properties=c.properties,this.pageSetup=c.pageSetup,this.headerFooter=c.headerFooter,this.views=c.views,this.autoFilter=c.autoFilter,this._media=c.media.map(m=>new l(this,m)),this.sheetProtection=c.sheetProtection,this.tables=c.tables.reduce((m,p)=>{const x=new s;return x.model=p,m[p.name]=x,m},{}),this.conditionalFormattings=c.conditionalFormattings}}},{"../utils/col-cache":19,"../utils/copy-style":20,"../utils/encryptor":21,"../utils/under-dash":26,"./column":4,"./data-validations":5,"./enums":7,"./image":8,"./range":10,"./row":11,"./table":12}],15:[function(t,v,b){t("core-js/modules/es.promise"),t("core-js/modules/es.promise.finally"),t("core-js/modules/es.object.assign"),t("core-js/modules/es.object.keys"),t("core-js/modules/es.object.values"),t("core-js/modules/es.symbol"),t("core-js/modules/es.symbol.async-iterator"),t("core-js/modules/es.array.iterator"),t("core-js/modules/es.array.includes"),t("core-js/modules/es.array.find-index"),t("core-js/modules/es.array.find"),t("core-js/modules/es.string.from-code-point"),t("core-js/modules/es.string.includes"),t("core-js/modules/es.number.is-nan"),t("regenerator-runtime/runtime");const f={Workbook:t("./doc/workbook")},o=t("./doc/enums");Object.keys(o).forEach(a=>{f[a]=o[a]}),v.exports=f},{"./doc/enums":7,"./doc/workbook":13,"core-js/modules/es.array.find":359,"core-js/modules/es.array.find-index":358,"core-js/modules/es.array.includes":360,"core-js/modules/es.array.iterator":361,"core-js/modules/es.number.is-nan":363,"core-js/modules/es.object.assign":364,"core-js/modules/es.object.keys":366,"core-js/modules/es.object.values":367,"core-js/modules/es.promise":372,"core-js/modules/es.promise.finally":371,"core-js/modules/es.string.from-code-point":376,"core-js/modules/es.string.includes":377,"core-js/modules/es.symbol":381,"core-js/modules/es.symbol.async-iterator":378,"regenerator-runtime/runtime":492}],16:[function(t,v,b){const f=typeof TextDecoder>"u"?null:new TextDecoder("utf-8");b.bufferToString=function(o){return typeof o=="string"?o:f?f.decode(o):o.toString()}},{}],17:[function(t,v,b){const f=typeof TextEncoder>"u"?null:new TextEncoder("utf-8"),{Buffer:o}=t("buffer");b.stringToBuffer=function(a){return typeof a!="string"?a:f?o.from(f.encode(a).buffer):o.from(a)}},{buffer:220}],18:[function(t,v,b){const f=t("./under-dash"),o=t("./col-cache");v.exports=class{constructor(a){this.template=a,this.sheets={}}addCell(a){this.addCellEx(o.decodeEx(a))}getCell(a){return this.findCellEx(o.decodeEx(a),!0)}findCell(a){return this.findCellEx(o.decodeEx(a),!1)}findCellAt(a,n,e){const r=this.sheets[a],l=r&&r[n];return l&&l[e]}addCellEx(a){if(a.top)for(let n=a.top;n<=a.bottom;n++)for(let e=a.left;e<=a.right;e++)this.getCellAt(a.sheetName,n,e);else this.findCellEx(a,!0)}getCellEx(a){return this.findCellEx(a,!0)}findCellEx(a,n){const e=this.findSheet(a,n),r=this.findSheetRow(e,a,n);return this.findRowCell(r,a,n)}getCellAt(a,n,e){const r=this.sheets[a]||(this.sheets[a]=[]),l=r[n]||(r[n]=[]);return l[e]||(l[e]={sheetName:a,address:o.n2l(e)+n,row:n,col:e})}removeCellEx(a){const n=this.findSheet(a);if(!n)return;const e=this.findSheetRow(n,a);e&&delete e[a.col]}forEachInSheet(a,n){const e=this.sheets[a];e&&e.forEach((r,l)=>{r&&r.forEach((s,i)=>{s&&n(s,l,i)})})}forEach(a){f.each(this.sheets,(n,e)=>{this.forEachInSheet(e,a)})}map(a){const n=[];return this.forEach(e=>{n.push(a(e))}),n}findSheet(a,n){const e=a.sheetName;return this.sheets[e]?this.sheets[e]:n?this.sheets[e]=[]:void 0}findSheetRow(a,n,e){const{row:r}=n;return a&&a[r]?a[r]:e?a[r]=[]:void 0}findRowCell(a,n,e){const{col:r}=n;return a&&a[r]?a[r]:e?a[r]=this.template?Object.assign(n,JSON.parse(JSON.stringify(this.template))):n:void 0}spliceRows(a,n,e,r){const l=this.sheets[a];if(l){const s=[];for(let i=0;i<r;i++)s.push([]);l.splice(n,e,...s)}}spliceColumns(a,n,e,r){const l=this.sheets[a];if(l){const s=[];for(let i=0;i<r;i++)s.push(null);f.each(l,i=>{i.splice(n,e,...s)})}}}},{"./col-cache":19,"./under-dash":26}],19:[function(t,v,b){const f=/^[A-Z]+\d+$/,o={_dictionary:["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],_l2nFill:0,_l2n:{},_n2l:[],_level:a=>a<=26?1:a<=676?2:3,_fill(a){let n,e,r,l,s,i=1;if(a>=4)throw new Error("Out of bounds. Excel supports columns from 1 to 16384");if(this._l2nFill<1&&a>=1){for(;i<=26;)n=this._dictionary[i-1],this._n2l[i]=n,this._l2n[n]=i,i++;this._l2nFill=1}if(this._l2nFill<2&&a>=2){for(i=27;i<=702;)e=i-27,r=e%26,l=Math.floor(e/26),n=this._dictionary[l]+this._dictionary[r],this._n2l[i]=n,this._l2n[n]=i,i++;this._l2nFill=2}if(this._l2nFill<3&&a>=3){for(i=703;i<=16384;)e=i-703,r=e%26,l=Math.floor(e/26)%26,s=Math.floor(e/676),n=this._dictionary[s]+this._dictionary[l]+this._dictionary[r],this._n2l[i]=n,this._l2n[n]=i,i++;this._l2nFill=3}},l2n(a){if(this._l2n[a]||this._fill(a.length),!this._l2n[a])throw new Error("Out of bounds. Invalid column letter: "+a);return this._l2n[a]},n2l(a){if(a<1||a>16384)throw new Error(a+" is out of bounds. Excel supports columns from 1 to 16384");return this._n2l[a]||this._fill(this._level(a)),this._n2l[a]},_hash:{},validateAddress(a){if(!f.test(a))throw new Error("Invalid Address: "+a);return!0},decodeAddress(a){const n=a.length<5&&this._hash[a];if(n)return n;let e=!1,r="",l=0,s=!1,i="",d=0;for(let c,m=0;m<a.length;m++)if(c=a.charCodeAt(m),!s&&c>=65&&c<=90)e=!0,r+=a[m],l=26*l+c-64;else if(c>=48&&c<=57)s=!0,i+=a[m],d=10*d+c-48;else if(s&&e&&c!==36)break;if(e){if(l>16384)throw new Error("Out of bounds. Invalid column letter: "+r)}else l=void 0;s||(d=void 0);const h={address:a=r+i,col:l,row:d,$col$row:`$${r}$${i}`};return l<=100&&d<=100&&(this._hash[a]=h,this._hash[h.$col$row]=h),h},getAddress(a,n){if(n){const e=this.n2l(n)+a;return this.decodeAddress(e)}return this.decodeAddress(a)},decode(a){const n=a.split(":");if(n.length===2){const e=this.decodeAddress(n[0]),r=this.decodeAddress(n[1]),l={top:Math.min(e.row,r.row),left:Math.min(e.col,r.col),bottom:Math.max(e.row,r.row),right:Math.max(e.col,r.col)};return l.tl=this.n2l(l.left)+l.top,l.br=this.n2l(l.right)+l.bottom,l.dimensions=`${l.tl}:${l.br}`,l}return this.decodeAddress(a)},decodeEx(a){const n=a.match(/(?:(?:(?:'((?:[^']|'')*)')|([^'^ !]*))!)?(.*)/),e=n[1]||n[2],r=n[3],l=r.split(":");if(l.length>1){let i=this.decodeAddress(l[0]),d=this.decodeAddress(l[1]);const h=Math.min(i.row,d.row),c=Math.min(i.col,d.col),m=Math.max(i.row,d.row),p=Math.max(i.col,d.col);return i=this.n2l(c)+h,d=this.n2l(p)+m,{top:h,left:c,bottom:m,right:p,sheetName:e,tl:{address:i,col:c,row:h,$col$row:`$${this.n2l(c)}$${h}`,sheetName:e},br:{address:d,col:p,row:m,$col$row:`$${this.n2l(p)}$${m}`,sheetName:e},dimensions:`${i}:${d}`}}if(r.startsWith("#"))return e?{sheetName:e,error:r}:{error:r};const s=this.decodeAddress(r);return e?{sheetName:e,...s}:s},encodeAddress:(a,n)=>o.n2l(n)+a,encode(){switch(arguments.length){case 2:return o.encodeAddress(arguments[0],arguments[1]);case 4:return`${o.encodeAddress(arguments[0],arguments[1])}:${o.encodeAddress(arguments[2],arguments[3])}`;default:throw new Error("Can only encode with 2 or 4 arguments")}},inRange(a,n){const[e,r,,l,s]=a,[i,d]=n;return i>=e&&i<=l&&d>=r&&d<=s}};v.exports=o},{}],20:[function(t,v,b){const f=(a,n)=>({...a,...n.reduce((e,r)=>(a[r]&&(e[r]={...a[r]}),e),{})}),o=function(a,n,e){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];a[e]&&(n[e]=f(a[e],r))};b.copyStyle=a=>{if(!a)return a;if(n=a,Object.keys(n).length===0)return{};var n;const e={...a};return o(a,e,"font",["color"]),o(a,e,"alignment"),o(a,e,"protection"),a.border&&(o(a,e,"border"),o(a.border,e.border,"top",["color"]),o(a.border,e.border,"left",["color"]),o(a.border,e.border,"bottom",["color"]),o(a.border,e.border,"right",["color"]),o(a.border,e.border,"diagonal",["color"])),a.fill&&(o(a,e,"fill",["fgColor","bgColor","center"]),a.fill.stops&&(e.fill.stops=a.fill.stops.map(r=>f(r,["color"])))),e}},{}],21:[function(t,v,b){(function(f){(function(){const o=t("crypto"),a={hash(n){const e=o.createHash(n);for(var r=arguments.length,l=new Array(r>1?r-1:0),s=1;s<r;s++)l[s-1]=arguments[s];return e.update(f.concat(l)),e.digest()},convertPasswordToHash(n,e,r,l){if(e=e.toLowerCase(),o.getHashes().indexOf(e)<0)throw new Error(`Hash algorithm '${e}' not supported!`);const s=f.from(n,"utf16le");let i=this.hash(e,f.from(r,"base64"),s);for(let d=0;d<l;d++){const h=f.alloc(4);h.writeUInt32LE(d,0),i=this.hash(e,i,h)}return i.toString("base64")},randomBytes:n=>o.randomBytes(n)};v.exports=a}).call(this)}).call(this,t("buffer").Buffer)},{buffer:220,crypto:390}],22:[function(t,v,b){const{SaxesParser:f}=t("saxes"),{PassThrough:o}=t("readable-stream"),{bufferToString:a}=t("./browser-buffer-decode");v.exports=async function*(n){n.pipe&&!n[Symbol.asyncIterator]&&(n=n.pipe(new o));const e=new f;let r;e.on("error",s=>{r=s});let l=[];e.on("opentag",s=>l.push({eventType:"opentag",value:s})),e.on("text",s=>l.push({eventType:"text",value:s})),e.on("closetag",s=>l.push({eventType:"closetag",value:s}));for await(const s of n){if(e.write(a(s)),r)throw r;yield l,l=[]}}},{"./browser-buffer-decode":16,"readable-stream":491,saxes:496}],23:[function(t,v,b){const f=t("./col-cache"),o=/(([a-z_\-0-9]*)!)?([a-z0-9_$]{2,})([(])?/gi,a=/^([$])?([a-z]+)([$])?([1-9][0-9]*)$/i;v.exports={slideFormula:function(n,e,r){const l=f.decode(e),s=f.decode(r);return n.replace(o,(i,d,h,c,m)=>{if(m)return i;const p=a.exec(c);if(p){const x=p[1],k=p[2].toUpperCase(),A=p[3],N=p[4];if(k.length>3||k.length===3&&k>"XFD")return i;let q=f.l2n(k),D=parseInt(N,10);return x||(q+=s.col-l.col),A||(D+=s.row-l.row),(d||"")+(x||"")+f.n2l(q)+(A||"")+D}return i})}}},{"./col-cache":19}],24:[function(t,v,b){(function(f,o){(function(){const a=t("readable-stream"),n=t("./utils"),e=t("./string-buf");class r{constructor(c,m){this._data=c,this._encoding=m}get length(){return this.toBuffer().length}copy(c,m,p,x){return this.toBuffer().copy(c,m,p,x)}toBuffer(){return this._buffer||(this._buffer=o.from(this._data,this._encoding)),this._buffer}}class l{constructor(c){this._data=c}get length(){return this._data.length}copy(c,m,p,x){return this._data._buf.copy(c,m,p,x)}toBuffer(){return this._data.toBuffer()}}class s{constructor(c){this._data=c}get length(){return this._data.length}copy(c,m,p,x){this._data.copy(c,m,p,x)}toBuffer(){return this._data}}class i{constructor(c){this.size=c,this.buffer=o.alloc(c),this.iRead=0,this.iWrite=0}toBuffer(){if(this.iRead===0&&this.iWrite===this.size)return this.buffer;const c=o.alloc(this.iWrite-this.iRead);return this.buffer.copy(c,0,this.iRead,this.iWrite),c}get length(){return this.iWrite-this.iRead}get eod(){return this.iRead===this.iWrite}get full(){return this.iWrite===this.size}read(c){let m;return c===0?null:c===void 0||c>=this.length?(m=this.toBuffer(),this.iRead=this.iWrite,m):(m=o.alloc(c),this.buffer.copy(m,0,this.iRead,c),this.iRead+=c,m)}write(c,m,p){const x=Math.min(p,this.size-this.iWrite);return c.copy(this.buffer,this.iWrite,m,m+x),this.iWrite+=x,x}}const d=function(h){h=h||{},this.bufSize=h.bufSize||1048576,this.buffers=[],this.batch=h.batch||!1,this.corked=!1,this.inPos=0,this.outPos=0,this.pipes=[],this.paused=!1,this.encoding=null};n.inherits(d,a.Duplex,{toBuffer(){switch(this.buffers.length){case 0:return null;case 1:return this.buffers[0].toBuffer();default:return o.concat(this.buffers.map(h=>h.toBuffer()))}},_getWritableBuffer(){if(this.buffers.length){const c=this.buffers[this.buffers.length-1];if(!c.full)return c}const h=new i(this.bufSize);return this.buffers.push(h),h},async _pipe(h){await Promise.all(this.pipes.map(function(c){return new Promise(m=>{c.write(h.toBuffer(),()=>{m()})})}))},_writeToBuffers(h){let c=0;const m=h.length;for(;c<m;)c+=this._getWritableBuffer().write(h,c,m-c)},async write(h,c,m){let p;if(c instanceof Function&&(m=c,c="utf8"),m=m||n.nop,h instanceof e)p=new l(h);else if(h instanceof o)p=new s(h);else{if(!(typeof h=="string"||h instanceof String||h instanceof ArrayBuffer))throw new Error("Chunk must be one of type String, Buffer or StringBuf.");p=new r(h,c)}if(this.pipes.length)if(this.batch)for(this._writeToBuffers(p);!this.corked&&this.buffers.length>1;)this._pipe(this.buffers.shift());else this.corked?(this._writeToBuffers(p),f.nextTick(m)):(await this._pipe(p),m());else this.paused||this.emit("data",p.toBuffer()),this._writeToBuffers(p),this.emit("readable");return!0},cork(){this.corked=!0},_flush(){if(this.pipes.length)for(;this.buffers.length;)this._pipe(this.buffers.shift())},uncork(){this.corked=!1,this._flush()},end(h,c,m){const p=x=>{x?m(x):(this._flush(),this.pipes.forEach(k=>{k.end()}),this.emit("finish"))};h?this.write(h,c,p):p()},read(h){let c;if(h){for(c=[];h&&this.buffers.length&&!this.buffers[0].eod;){const m=this.buffers[0],p=m.read(h);h-=p.length,c.push(p),m.eod&&m.full&&this.buffers.shift()}return o.concat(c)}return c=this.buffers.map(m=>m.toBuffer()).filter(Boolean),this.buffers=[],o.concat(c)},setEncoding(h){this.encoding=h},pause(){this.paused=!0},resume(){this.paused=!1},isPaused(){return!!this.paused},pipe(h){this.pipes.push(h),!this.paused&&this.buffers.length&&this.end()},unpipe(h){this.pipes=this.pipes.filter(c=>c!==h)},unshift(){throw new Error("Not Implemented")},wrap(){throw new Error("Not Implemented")}}),v.exports=d}).call(this)}).call(this,t("_process"),t("buffer").Buffer)},{"./string-buf":25,"./utils":27,_process:467,buffer:220,"readable-stream":491}],25:[function(t,v,b){(function(f){(function(){v.exports=class{constructor(o){this._buf=f.alloc(o&&o.size||16384),this._encoding=o&&o.encoding||"utf8",this._inPos=0,this._buffer=void 0}get length(){return this._inPos}get capacity(){return this._buf.length}get buffer(){return this._buf}toBuffer(){return this._buffer||(this._buffer=f.alloc(this.length),this._buf.copy(this._buffer,0,0,this.length)),this._buffer}reset(o){o=o||0,this._buffer=void 0,this._inPos=o}_grow(o){let a=2*this._buf.length;for(;a<o;)a*=2;const n=f.alloc(a);this._buf.copy(n,0),this._buf=n}addText(o){this._buffer=void 0;let a=this._inPos+this._buf.write(o,this._inPos,this._encoding);for(;a>=this._buf.length-4;)this._grow(this._inPos+o.length),a=this._inPos+this._buf.write(o,this._inPos,this._encoding);this._inPos=a}addStringBuf(o){o.length&&(this._buffer=void 0,this.length+o.length>this.capacity&&this._grow(this.length+o.length),o._buf.copy(this._buf,this._inPos,0,o.length),this._inPos+=o.length)}}}).call(this)}).call(this,t("buffer").Buffer)},{buffer:220}],26:[function(t,v,b){const{toString:f}=Object.prototype,o=/["&<>]/,a={each:function(n,e){n&&(Array.isArray(n)?n.forEach(e):Object.keys(n).forEach(r=>{e(n[r],r)}))},some:function(n,e){return!!n&&(Array.isArray(n)?n.some(e):Object.keys(n).some(r=>e(n[r],r)))},every:function(n,e){return!n||(Array.isArray(n)?n.every(e):Object.keys(n).every(r=>e(n[r],r)))},map:function(n,e){return n?Array.isArray(n)?n.map(e):Object.keys(n).map(r=>e(n[r],r)):[]},keyBy:(n,e)=>n.reduce((r,l)=>(r[l[e]]=l,r),{}),isEqual:function(n,e){const r=typeof n,l=typeof e,s=Array.isArray(n),i=Array.isArray(e);let d;if(r!==l)return!1;switch(typeof n){case"object":if(s||i)return!(!s||!i)&&n.length===e.length&&n.every((h,c)=>{const m=e[c];return a.isEqual(h,m)});if(n===null||e===null)return n===e;if(d=Object.keys(n),Object.keys(e).length!==d.length)return!1;for(const h of d)if(!e.hasOwnProperty(h))return!1;return a.every(n,(h,c)=>{const m=e[c];return a.isEqual(h,m)});default:return n===e}},escapeHtml(n){const e=o.exec(n);if(!e)return n;let r="",l="",s=0,i=e.index;for(;i<n.length;i++){switch(n.charAt(i)){case'"':l="&quot;";break;case"&":l="&amp;";break;case"'":l="&apos;";break;case"<":l="&lt;";break;case">":l="&gt;";break;default:continue}s!==i&&(r+=n.substring(s,i)),s=i+1,r+=l}return s!==i?r+n.substring(s,i):r},strcmp:(n,e)=>n<e?-1:n>e?1:0,isUndefined:n=>f.call(n)==="[object Undefined]",isObject:n=>f.call(n)==="[object Object]",deepMerge(){const n=arguments[0]||{},{length:e}=arguments;let r,l,s;function i(d,h){r=n[h],s=Array.isArray(d),a.isObject(d)||s?(s?(s=!1,l=r&&Array.isArray(r)?r:[]):l=r&&a.isObject(r)?r:{},n[h]=a.deepMerge(l,d)):a.isUndefined(d)||(n[h]=d)}for(let d=0;d<e;d++)a.each(arguments[d],i);return n}};v.exports=a},{}],27:[function(t,v,b){(function(f,o){(function(){const a=t("fs"),n=/[<>&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/,e={nop(){},promiseImmediate:r=>new Promise(l=>{f.setImmediate?o(()=>{l(r)}):setTimeout(()=>{l(r)},1)}),inherits:function(r,l,s,i){r.super_=l,i||(i=s,s=null),s&&Object.keys(s).forEach(h=>{Object.defineProperty(r,h,Object.getOwnPropertyDescriptor(s,h))});const d={constructor:{value:r,enumerable:!1,writable:!1,configurable:!0}};i&&Object.keys(i).forEach(h=>{d[h]=Object.getOwnPropertyDescriptor(i,h)}),r.prototype=Object.create(l.prototype,d)},dateToExcel:(r,l)=>25569+r.getTime()/864e5-(l?1462:0),excelToDate(r,l){const s=Math.round(24*(r-25569+(l?1462:0))*3600*1e3);return new Date(s)},parsePath(r){const l=r.lastIndexOf("/");return{path:r.substring(0,l),name:r.substring(l+1)}},getRelsPath(r){const l=e.parsePath(r);return`${l.path}/_rels/${l.name}.rels`},xmlEncode(r){const l=n.exec(r);if(!l)return r;let s="",i="",d=0,h=l.index;for(;h<r.length;h++){const c=r.charCodeAt(h);switch(c){case 34:i="&quot;";break;case 38:i="&amp;";break;case 39:i="&apos;";break;case 60:i="&lt;";break;case 62:i="&gt;";break;case 127:i="";break;default:if(c<=31&&(c<=8||c>=11&&c!==13)){i="";break}continue}d!==h&&(s+=r.substring(d,h)),d=h+1,i&&(s+=i)}return d!==h?s+r.substring(d,h):s},xmlDecode:r=>r.replace(/&([a-z]*);/g,l=>{switch(l){case"&lt;":return"<";case"&gt;":return">";case"&amp;":return"&";case"&apos;":return"'";case"&quot;":return'"';default:return l}}),validInt(r){const l=parseInt(r,10);return Number.isNaN(l)?0:l},isDateFmt(r){return r?(r=(r=r.replace(/\[[^\]]*]/g,"")).replace(/"[^"]*"/g,"")).match(/[ymdhMsb]+/)!==null:!1},fs:{exists:r=>new Promise(l=>{a.access(r,a.constants.F_OK,s=>{l(!s)})})},toIsoDateString:r=>r.toIsoString().subsstr(0,10),parseBoolean:r=>r===!0||r==="true"||r===1||r==="1"};v.exports=e}).call(this)}).call(this,typeof lt<"u"?lt:typeof self<"u"?self:typeof window<"u"?window:{},t("timers").setImmediate)},{fs:216,timers:523}],28:[function(t,v,b){const f=t("./under-dash"),o=t("./utils");function a(r,l,s){r.push(` ${l}="${o.xmlEncode(s.toString())}"`)}function n(r,l){if(l){const s=[];f.each(l,(i,d)=>{i!==void 0&&a(s,d,i)}),r.push(s.join(""))}}class e{constructor(){this._xml=[],this._stack=[],this._rollbacks=[]}get tos(){return this._stack.length?this._stack[this._stack.length-1]:void 0}get cursor(){return this._xml.length}openXml(l){const s=this._xml;s.push("<?xml"),n(s,l),s.push(`?>
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("vue"),Zn={xs:18,sm:24,md:32,lg:38,xl:46},Cr={size:String};function Mr(u,P=Zn){return C.computed(()=>u.size!==void 0?{fontSize:u.size in P?`${P[u.size]}px`:u.size}:null)}function Lt(u,P,t,v){return Object.defineProperty(u,P,{get:t,set:v,enumerable:!0}),u}function Zo(u,P){for(const t in P)Lt(u,t,P[t]);return u}function it(u){return C.markRaw(C.defineComponent(u))}function di(u){return C.markRaw(u)}const Go=(u,P)=>{const t=C.reactive(u);for(const v in u)Lt(P,v,()=>t[v],b=>{t[v]=b});return P};function vt(u,P){return u!==void 0&&u()||P}function hi(u,P){if(u!==void 0){const t=u();if(t!=null)return t.slice()}return P}function Nt(u,P){return u!==void 0?P.concat(u()):P}function Vs(u,P){return u===void 0?P:P!==void 0?P.concat(u()):u()}function Qo(u,P,t,v,b,f){P.key=v+b;const o=C.h(u,P,t);return b===!0?C.withDirectives(o,f()):o}const Vi="0 0 24 24",Rn=u=>u,On=u=>`ionicons ${u}`,Hs={"mdi-":u=>`mdi ${u}`,"icon-":Rn,"bt-":u=>`bt ${u}`,"eva-":u=>`eva ${u}`,"ion-md":On,"ion-ios":On,"ion-logo":On,"iconfont ":Rn,"ti-":u=>`themify-icon ${u}`,"bi-":u=>`bootstrap-icons ${u}`,"i-":Rn},Us={o_:"-outlined",r_:"-round",s_:"-sharp"},Ws={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},Jo=new RegExp("^("+Object.keys(Hs).join("|")+")"),ea=new RegExp("^("+Object.keys(Us).join("|")+")"),Hi=new RegExp("^("+Object.keys(Ws).join("|")+")"),ta=/^[Mm]\s?[-+]?\.?\d/,ra=/^img:/,na=/^svguse:/,ia=/^ion-/,sa=/^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,kt=it({name:"QIcon",props:{...Cr,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(u,{slots:P}){const{proxy:{$q:t}}=C.getCurrentInstance(),v=Mr(u),b=C.computed(()=>"q-icon"+(u.left===!0?" on-left":"")+(u.right===!0?" on-right":"")+(u.color!==void 0?` text-${u.color}`:"")),f=C.computed(()=>{let o,a=u.name;if(a==="none"||!a)return{none:!0};if(t.iconMapFn!==null){const r=t.iconMapFn(a);if(r!==void 0)if(r.icon!==void 0){if(a=r.icon,a==="none"||!a)return{none:!0}}else return{cls:r.cls,content:r.content!==void 0?r.content:" "}}if(ta.test(a)===!0){const[r,l=Vi]=a.split("|");return{svg:!0,viewBox:l,nodes:r.split("&&").map(s=>{const[i,d,h]=s.split("@@");return C.h("path",{style:d,d:i,transform:h})})}}if(ra.test(a)===!0)return{img:!0,src:a.substring(4)};if(na.test(a)===!0){const[r,l=Vi]=a.split("|");return{svguse:!0,src:r.substring(7),viewBox:l}}let n=" ";const e=a.match(Jo);if(e!==null)o=Hs[e[1]](a);else if(sa.test(a)===!0)o=a;else if(ia.test(a)===!0)o=`ionicons ion-${t.platform.is.ios===!0?"ios":"md"}${a.substring(3)}`;else if(Hi.test(a)===!0){o="notranslate material-symbols";const r=a.match(Hi);r!==null&&(a=a.substring(6),o+=Ws[r[1]]),n=a}else{o="notranslate material-icons";const r=a.match(ea);r!==null&&(a=a.substring(2),o+=Us[r[1]]),n=a}return{cls:o,content:n}});return()=>{const o={class:b.value,style:v.value,"aria-hidden":"true"};return f.value.none===!0?C.h(u.tag,o,vt(P.default)):f.value.img===!0?C.h(u.tag,o,Nt(P.default,[C.h("img",{src:f.value.src})])):f.value.svg===!0?C.h(u.tag,o,Nt(P.default,[C.h("svg",{viewBox:f.value.viewBox||"0 0 24 24"},f.value.nodes)])):f.value.svguse===!0?C.h(u.tag,o,Nt(P.default,[C.h("svg",{viewBox:f.value.viewBox},[C.h("use",{"xlink:href":f.value.src})])])):(f.value.cls!==void 0&&(o.class+=" "+f.value.cls),C.h(u.tag,o,Nt(P.default,[f.value.content])))}}});function on(u){if(Object(u.$parent)===u.$parent)return u.$parent;let{parent:P}=u.$;for(;Object(P)===P;){if(Object(P.proxy)===P.proxy)return P.proxy;P=P.parent}}function Ys(u,P){typeof P.type=="symbol"?Array.isArray(P.children)===!0&&P.children.forEach(t=>{Ys(u,t)}):u.add(P)}function oa(u){const P=new Set;return u.forEach(t=>{Ys(P,t)}),Array.from(P)}function pi(u){return u.appContext.config.globalProperties.$router!==void 0}function mi(u){return u.isUnmounted===!0||u.isDeactivated===!0}function Ui(u){return u?u.aliasOf?u.aliasOf.path:u.path:""}function Wi(u,P){return(u.aliasOf||u)===(P.aliasOf||P)}function aa(u,P){for(const t in P){const v=P[t],b=u[t];if(typeof v=="string"){if(v!==b)return!1}else if(Array.isArray(b)===!1||b.length!==v.length||v.some((f,o)=>f!==b[o]))return!1}return!0}function Yi(u,P){return Array.isArray(P)===!0?u.length===P.length&&u.every((t,v)=>t===P[v]):u.length===1&&u[0]===P}function la(u,P){return Array.isArray(u)===!0?Yi(u,P):Array.isArray(P)===!0?Yi(P,u):u===P}function ua(u,P){if(Object.keys(u).length!==Object.keys(P).length)return!1;for(const t in u)if(la(u[t],P[t])===!1)return!1;return!0}const Xs={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},Ks={...Xs,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function bi({fallbackTag:u,useDisableForRouterLinkProps:P=!0}={}){const t=C.getCurrentInstance(),{props:v,proxy:b,emit:f}=t,o=pi(t),a=C.computed(()=>v.disable!==!0&&v.href!==void 0),n=P===!0?C.computed(()=>o===!0&&v.disable!==!0&&a.value!==!0&&v.to!==void 0&&v.to!==null&&v.to!==""):C.computed(()=>o===!0&&a.value!==!0&&v.to!==void 0&&v.to!==null&&v.to!==""),e=C.computed(()=>n.value===!0?p(v.to):null),r=C.computed(()=>e.value!==null),l=C.computed(()=>a.value===!0||r.value===!0),s=C.computed(()=>v.type==="a"||l.value===!0?"a":v.tag||u||"div"),i=C.computed(()=>a.value===!0?{href:v.href,target:v.target}:r.value===!0?{href:e.value.href,target:v.target}:{}),d=C.computed(()=>{if(r.value===!1)return-1;const{matched:A}=e.value,{length:N}=A,q=A[N-1];if(q===void 0)return-1;const D=b.$route.matched;if(D.length===0)return-1;const F=D.findIndex(Wi.bind(null,q));if(F!==-1)return F;const L=Ui(A[N-2]);return N>1&&Ui(q)===L&&D[D.length-1].path!==L?D.findIndex(Wi.bind(null,A[N-2])):F}),h=C.computed(()=>r.value===!0&&d.value!==-1&&aa(b.$route.params,e.value.params)),c=C.computed(()=>h.value===!0&&d.value===b.$route.matched.length-1&&ua(b.$route.params,e.value.params)),m=C.computed(()=>r.value===!0?c.value===!0?` ${v.exactActiveClass} ${v.activeClass}`:v.exact===!0?"":h.value===!0?` ${v.activeClass}`:"":"");function p(A){try{return b.$router.resolve(A)}catch{}return null}function x(A,{returnRouterError:N,to:q=v.to,replace:D=v.replace}={}){if(v.disable===!0)return A.preventDefault(),Promise.resolve(!1);if(A.metaKey||A.altKey||A.ctrlKey||A.shiftKey||A.button!==void 0&&A.button!==0||v.target==="_blank")return Promise.resolve(!1);A.preventDefault();const F=b.$router[D===!0?"replace":"push"](q);return N===!0?F:F.then(()=>{}).catch(()=>{})}function k(A){if(r.value===!0){const N=q=>x(A,q);f("click",A,N),A.defaultPrevented!==!0&&N()}else f("click",A)}return{hasRouterLink:r,hasHrefLink:a,hasLink:l,linkTag:s,resolvedLink:e,linkIsActive:h,linkIsExactActive:c,linkClass:m,linkAttrs:i,getLink:p,navigateToRouterLink:x,navigateOnClick:k}}const ca=it({name:"QBreadcrumbsEl",props:{...Ks,label:String,icon:String,tag:{type:String,default:"span"}},emits:["click"],setup(u,{slots:P}){const{linkTag:t,linkAttrs:v,linkClass:b,navigateOnClick:f}=bi(),o=C.computed(()=>({class:"q-breadcrumbs__el q-link flex inline items-center relative-position "+(u.disable!==!0?"q-link--focusable"+b.value:"q-breadcrumbs__el--disable"),...v.value,onClick:f})),a=C.computed(()=>"q-breadcrumbs__el-icon"+(u.label!==void 0?" q-breadcrumbs__el-icon--with-label":""));return()=>{const n=[];return u.icon!==void 0&&n.push(C.h(kt,{class:a.value,name:u.icon})),u.label!==void 0&&n.push(u.label),C.h(t.value,{...o.value},Nt(P.default,n))}}}),Zs={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},fa=Object.keys(Zs),Gs={align:{type:String,validator:u=>fa.includes(u)}};function Qs(u){return C.computed(()=>{const P=u.align===void 0?u.vertical===!0?"stretch":"left":u.align;return`${u.vertical===!0?"items":"justify"}-${Zs[P]}`})}const da=["",!0],ha=it({name:"QBreadcrumbs",props:{...Gs,separator:{type:String,default:"/"},separatorColor:String,activeColor:{type:String,default:"primary"},gutter:{type:String,validator:u=>["none","xs","sm","md","lg","xl"].includes(u),default:"sm"}},setup(u,{slots:P}){const t=Qs(u),v=C.computed(()=>`flex items-center ${t.value}${u.gutter==="none"?"":` q-gutter-${u.gutter}`}`),b=C.computed(()=>u.separatorColor?` text-${u.separatorColor}`:""),f=C.computed(()=>` text-${u.activeColor}`);return()=>{if(P.default===void 0)return;const o=oa(vt(P.default));if(o.length===0)return;let a=1;const n=[],e=o.filter(l=>l.type?.name==="QBreadcrumbsEl").length,r=P.separator!==void 0?P.separator:()=>u.separator;return o.forEach(l=>{if(l.type?.name==="QBreadcrumbsEl"){const s=a<e,i=l.props!==null&&da.includes(l.props.disable),d=(s===!0?"":" q-breadcrumbs--last")+(i!==!0&&s===!0?f.value:"");a++,n.push(C.h("div",{class:`flex items-center${d}`},[l])),s===!0&&n.push(C.h("div",{class:"q-breadcrumbs__separator"+b.value},r()))}else n.push(l)}),C.h("div",{class:"q-breadcrumbs"},[C.h("div",{class:v.value},n)])}}}),pa=C.defineComponent({inheritAttrs:!1,__name:"Breadcrumbs",props:{activeColor:{},separatorIcon:{},separatorSize:{},separatorColor:{},store:{},navStore:{},route:{},router:{},breadcrumbConfig:{},separator:{},gutter:{},align:{}},setup(u){const P=u,t=C.useAttrs(),v=C.computed(()=>{const{activeColor:s,separatorIcon:i,separatorSize:d,separatorColor:h,...c}=t;return c}),b=s=>({"data-cy":s.dataCy,class:"cursor-pointer text-h5",color:s.color}),f=C.computed(()=>P.activeColor||"primary"),o=C.computed(()=>P.separatorIcon||"chevron_right"),a=C.computed(()=>P.separatorSize||"2em"),n=C.computed(()=>P.separatorColor||"primary"),e=C.computed(()=>({store:P.store,route:P.route,navStore:P.navStore||{}})),r=C.computed(()=>{const s=[];return P.breadcrumbConfig.forEach(i=>{if(!i.shouldRender(e.value))return;const d=i.getLabel?i.getLabel(e.value):i.defaultLabel,h=i.getColor?i.getColor(e.value):"dark",c={name:i.routeName,...i.getRouteParams&&{params:i.getRouteParams(e.value)}},m=i.clearActions?i.clearActions.map(p=>()=>p(e.value)):[];s.push({label:d,dataCy:i.dataCy,color:h,route:c,clearActions:m})}),s}),l=s=>{s.clearActions&&s.clearActions.forEach(i=>i()),P.router.push(s.route)};return(s,i)=>(C.openBlock(),C.createBlock(ha,C.mergeProps({"active-color":f.value,class:"text-brown"},v.value),{separator:C.withCtx(()=>[C.createVNode(kt,{size:a.value,name:o.value,color:n.value},null,8,["size","name","color"])]),default:C.withCtx(()=>[(C.openBlock(!0),C.createElementBlock(C.Fragment,null,C.renderList(r.value,(d,h)=>(C.openBlock(),C.createBlock(ca,C.mergeProps({key:h},{ref_for:!0},b(d),{label:d.label,onClick:c=>l(d)}),null,16,["label","onClick"]))),128))]),_:1},16,["active-color"]))}}),ma={size:{type:[String,Number],default:"1em"},color:String};function ba(u){return{cSize:C.computed(()=>u.size in Zn?`${Zn[u.size]}px`:u.size),classes:C.computed(()=>"q-spinner"+(u.color?` text-${u.color}`:""))}}const Js=it({name:"QSpinner",props:{...ma,thickness:{type:Number,default:5}},setup(u){const{cSize:P,classes:t}=ba(u);return()=>C.h("svg",{class:t.value+" q-spinner-mat",width:P.value,height:P.value,viewBox:"25 25 50 50"},[C.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":u.thickness,"stroke-miterlimit":"10"})])}});function Gn(u,P){const t=u.style;for(const v in P)t[v]=P[v]}function ga(u){if(u==null)return;if(typeof u=="string")try{return document.querySelector(u)||void 0}catch{return}const P=C.unref(u);if(P)return P.$el||P}function eo(u,P){if(u==null||u.contains(P)===!0)return!0;for(let t=u.nextElementSibling;t!==null;t=t.nextElementSibling)if(t.contains(P))return!0;return!1}const St={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const u=Object.defineProperty({},"passive",{get(){Object.assign(St,{hasPassive:!0,passive:{passive:!0},notPassive:{passive:!1},passiveCapture:{passive:!0,capture:!0},notPassiveCapture:{passive:!1,capture:!0}})}});window.addEventListener("qtest",null,u),window.removeEventListener("qtest",null,u)}catch{}function Sn(){}function va(u){return u.button===0}function Nr(u){return u.touches&&u.touches[0]?u=u.touches[0]:u.changedTouches&&u.changedTouches[0]?u=u.changedTouches[0]:u.targetTouches&&u.targetTouches[0]&&(u=u.targetTouches[0]),{top:u.clientY,left:u.clientX}}function ya(u){if(u.path)return u.path;if(u.composedPath)return u.composedPath();const P=[];let t=u.target;for(;t;){if(P.push(t),t.tagName==="HTML")return P.push(document),P.push(window),P;t=t.parentElement}}function It(u){u.stopPropagation()}function Ot(u){u.cancelable!==!1&&u.preventDefault()}function _t(u){u.cancelable!==!1&&u.preventDefault(),u.stopPropagation()}function jn(u,P){if(u===void 0||P===!0&&u.__dragPrevented===!0)return;const t=P===!0?v=>{v.__dragPrevented=!0,v.addEventListener("dragstart",Ot,St.notPassiveCapture)}:v=>{delete v.__dragPrevented,v.removeEventListener("dragstart",Ot,St.notPassiveCapture)};u.querySelectorAll("a, img").forEach(t)}function Ut(u,P,t){const v=`__q_${P}_evt`;u[v]=u[v]!==void 0?u[v].concat(t):t,t.forEach(b=>{b[0].addEventListener(b[1],u[b[2]],St[b[3]])})}function ar(u,P){const t=`__q_${P}_evt`;u[t]!==void 0&&(u[t].forEach(v=>{v[0].removeEventListener(v[1],u[v[2]],St[v[3]])}),u[t]=void 0)}function gi(u){return u!==Object(u)||u.isComposing===!0||u.qKeyEvent===!0}function er(u,P){return gi(u)===!0?!1:[].concat(P).includes(u.keyCode)}function wa(u,P=250){let t=!1,v;return function(){return t===!1&&(t=!0,setTimeout(()=>{t=!1},P),v=u.apply(this,arguments)),v}}function Xi(u,P,t,v){t.modifiers.stop===!0&&It(u);const b=t.modifiers.color;let f=t.modifiers.center;f=f===!0||v===!0;const o=document.createElement("span"),a=document.createElement("span"),n=Nr(u),{left:e,top:r,width:l,height:s}=P.getBoundingClientRect(),i=Math.sqrt(l*l+s*s),d=i/2,h=`${(l-i)/2}px`,c=f?h:`${n.left-e-d}px`,m=`${(s-i)/2}px`,p=f?m:`${n.top-r-d}px`;a.className="q-ripple__inner",Gn(a,{height:`${i}px`,width:`${i}px`,transform:`translate3d(${c},${p},0) scale3d(.2,.2,1)`,opacity:0}),o.className=`q-ripple${b?" text-"+b:""}`,o.setAttribute("dir","ltr"),o.appendChild(a),P.appendChild(o);const x=()=>{o.remove(),clearTimeout(k)};t.abort.push(x);let k=setTimeout(()=>{a.classList.add("q-ripple__inner--enter"),a.style.transform=`translate3d(${h},${m},0) scale3d(1,1,1)`,a.style.opacity=.2,k=setTimeout(()=>{a.classList.remove("q-ripple__inner--enter"),a.classList.add("q-ripple__inner--leave"),a.style.opacity=0,k=setTimeout(()=>{o.remove(),t.abort.splice(t.abort.indexOf(x),1)},275)},250)},50)}function Ki(u,{modifiers:P,value:t,arg:v}){const b=Object.assign({},u.cfg.ripple,P,t);u.modifiers={early:b.early===!0,stop:b.stop===!0,center:b.center===!0,color:b.color||v,keyCodes:[].concat(b.keyCodes||13)}}const to=di({name:"ripple",beforeMount(u,P){const t=P.instance.$.appContext.config.globalProperties.$q.config||{};if(t.ripple===!1)return;const v={cfg:t,enabled:P.value!==!1,modifiers:{},abort:[],start(b){v.enabled===!0&&b.qSkipRipple!==!0&&b.type===(v.modifiers.early===!0?"pointerdown":"click")&&Xi(b,u,v,b.qKeyEvent===!0)},keystart:wa(b=>{v.enabled===!0&&b.qSkipRipple!==!0&&er(b,v.modifiers.keyCodes)===!0&&b.type===`key${v.modifiers.early===!0?"down":"up"}`&&Xi(b,u,v,!0)},300)};Ki(v,P),u.__qripple=v,Ut(v,"main",[[u,"pointerdown","start","passive"],[u,"click","start","passive"],[u,"keydown","keystart","passive"],[u,"keyup","keystart","passive"]])},updated(u,P){if(P.oldValue!==P.value){const t=u.__qripple;t!==void 0&&(t.enabled=P.value!==!1,t.enabled===!0&&Object(P.value)===P.value&&Ki(t,P))}},beforeUnmount(u){const P=u.__qripple;P!==void 0&&(P.abort.forEach(t=>{t()}),ar(P,"main"),delete u._qripple)}}),Zi={none:0,xs:4,sm:8,md:16,lg:24,xl:32},_a={xs:8,sm:10,md:14,lg:20,xl:24},xa=["button","submit","reset"],Sa=/[^\s]\/[^\s]/,ka=["flat","outline","push","unelevated"];function Ca(u,P){return u.flat===!0?"flat":u.outline===!0?"outline":u.push===!0?"push":u.unelevated===!0?"unelevated":P}const Ma={...Cr,...Xs,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...ka.reduce((u,P)=>(u[P]=Boolean)&&u,{}),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:{...Gs.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},Ea={...Ma,round:Boolean};function Ta(u){const P=Mr(u,_a),t=Qs(u),{hasRouterLink:v,hasLink:b,linkTag:f,linkAttrs:o,navigateOnClick:a}=bi({fallbackTag:"button"}),n=C.computed(()=>{const c=u.fab===!1&&u.fabMini===!1?P.value:{};return u.padding!==void 0?Object.assign({},c,{padding:u.padding.split(/\s+/).map(m=>m in Zi?Zi[m]+"px":m).join(" "),minWidth:"0",minHeight:"0"}):c}),e=C.computed(()=>u.rounded===!0||u.fab===!0||u.fabMini===!0),r=C.computed(()=>u.disable!==!0&&u.loading!==!0),l=C.computed(()=>r.value===!0?u.tabindex||0:-1),s=C.computed(()=>Ca(u,"standard")),i=C.computed(()=>{const c={tabindex:l.value};return b.value===!0?Object.assign(c,o.value):xa.includes(u.type)===!0&&(c.type=u.type),f.value==="a"?(u.disable===!0?c["aria-disabled"]="true":c.href===void 0&&(c.role="button"),v.value!==!0&&Sa.test(u.type)===!0&&(c.type=u.type)):u.disable===!0&&(c.disabled="",c["aria-disabled"]="true"),u.loading===!0&&u.percentage!==void 0&&Object.assign(c,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":u.percentage}),c}),d=C.computed(()=>{let c;u.color!==void 0?u.flat===!0||u.outline===!0?c=`text-${u.textColor||u.color}`:c=`bg-${u.color} text-${u.textColor||"white"}`:u.textColor&&(c=`text-${u.textColor}`);const m=u.round===!0?"round":`rectangle${e.value===!0?" q-btn--rounded":u.square===!0?" q-btn--square":""}`;return`q-btn--${s.value} q-btn--${m}`+(c!==void 0?" "+c:"")+(r.value===!0?" q-btn--actionable q-focusable q-hoverable":u.disable===!0?" disabled":"")+(u.fab===!0?" q-btn--fab":u.fabMini===!0?" q-btn--fab-mini":"")+(u.noCaps===!0?" q-btn--no-uppercase":"")+(u.dense===!0?" q-btn--dense":"")+(u.stretch===!0?" no-border-radius self-stretch":"")+(u.glossy===!0?" glossy":"")+(u.square?" q-btn--square":"")}),h=C.computed(()=>t.value+(u.stack===!0?" column":" row")+(u.noWrap===!0?" no-wrap text-no-wrap":"")+(u.loading===!0?" q-btn__content--hidden":""));return{classes:d,style:n,innerClasses:h,attributes:i,hasLink:b,linkTag:f,navigateOnClick:a,isActionable:r}}const{passiveCapture:Ft}=St;let mr=null,br=null,gr=null;const wt=it({name:"QBtn",props:{...Ea,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(u,{slots:P,emit:t}){const{proxy:v}=C.getCurrentInstance(),{classes:b,style:f,innerClasses:o,attributes:a,hasLink:n,linkTag:e,navigateOnClick:r,isActionable:l}=Ta(u),s=C.ref(null),i=C.ref(null);let d=null,h,c=null;const m=C.computed(()=>u.label!==void 0&&u.label!==null&&u.label!==""),p=C.computed(()=>u.disable===!0||u.ripple===!1?!1:{keyCodes:n.value===!0?[13,32]:[13],...u.ripple===!0?{}:u.ripple}),x=C.computed(()=>({center:u.round})),k=C.computed(()=>{const T=Math.max(0,Math.min(100,u.percentage));return T>0?{transition:"transform 0.6s",transform:`translateX(${T-100}%)`}:{}}),A=C.computed(()=>{if(u.loading===!0)return{onMousedown:M,onTouchstart:M,onClick:M,onKeydown:M,onKeyup:M};if(l.value===!0){const T={onClick:q,onKeydown:D,onMousedown:L};if(v.$q.platform.has.touch===!0){const S=u.onTouchstart!==void 0?"":"Passive";T[`onTouchstart${S}`]=F}return T}return{onClick:_t}}),N=C.computed(()=>({ref:s,class:"q-btn q-btn-item non-selectable no-outline "+b.value,style:f.value,...a.value,...A.value}));function q(T){if(s.value!==null){if(T!==void 0){if(T.defaultPrevented===!0)return;const S=document.activeElement;if(u.type==="submit"&&S!==document.body&&s.value.contains(S)===!1&&S.contains(s.value)===!1){T.qAvoidFocus!==!0&&s.value.focus();const g=()=>{document.removeEventListener("keydown",_t,!0),document.removeEventListener("keyup",g,Ft),s.value?.removeEventListener("blur",g,Ft)};document.addEventListener("keydown",_t,!0),document.addEventListener("keyup",g,Ft),s.value.addEventListener("blur",g,Ft)}}r(T)}}function D(T){s.value!==null&&(t("keydown",T),er(T,[13,32])===!0&&br!==s.value&&(br!==null&&z(),T.defaultPrevented!==!0&&(T.qAvoidFocus!==!0&&s.value.focus(),br=s.value,s.value.classList.add("q-btn--active"),document.addEventListener("keyup",V,!0),s.value.addEventListener("blur",V,Ft)),_t(T)))}function F(T){s.value!==null&&(t("touchstart",T),T.defaultPrevented!==!0&&(mr!==s.value&&(mr!==null&&z(),mr=s.value,d=T.target,d.addEventListener("touchcancel",V,Ft),d.addEventListener("touchend",V,Ft)),h=!0,c!==null&&clearTimeout(c),c=setTimeout(()=>{c=null,h=!1},200)))}function L(T){s.value!==null&&(T.qSkipRipple=h===!0,t("mousedown",T),T.defaultPrevented!==!0&&gr!==s.value&&(gr!==null&&z(),gr=s.value,s.value.classList.add("q-btn--active"),document.addEventListener("mouseup",V,Ft)))}function V(T){if(s.value!==null&&!(T?.type==="blur"&&document.activeElement===s.value)){if(T?.type==="keyup"){if(br===s.value&&er(T,[13,32])===!0){const S=new MouseEvent("click",T);S.qKeyEvent=!0,T.defaultPrevented===!0&&Ot(S),T.cancelBubble===!0&&It(S),s.value.dispatchEvent(S),_t(T),T.qKeyEvent=!0}t("keyup",T)}z()}}function z(T){const S=i.value;T!==!0&&(mr===s.value||gr===s.value)&&S!==null&&S!==document.activeElement&&(S.setAttribute("tabindex",-1),S.focus()),mr===s.value&&(d!==null&&(d.removeEventListener("touchcancel",V,Ft),d.removeEventListener("touchend",V,Ft)),mr=d=null),gr===s.value&&(document.removeEventListener("mouseup",V,Ft),gr=null),br===s.value&&(document.removeEventListener("keyup",V,!0),s.value?.removeEventListener("blur",V,Ft),br=null),s.value?.classList.remove("q-btn--active")}function M(T){_t(T),T.qSkipRipple=!0}return C.onBeforeUnmount(()=>{z(!0)}),Object.assign(v,{click:T=>{l.value===!0&&q(T)}}),()=>{let T=[];u.icon!==void 0&&T.push(C.h(kt,{name:u.icon,left:u.stack!==!0&&m.value===!0,role:"img"})),m.value===!0&&T.push(C.h("span",{class:"block"},[u.label])),T=Nt(P.default,T),u.iconRight!==void 0&&u.round===!1&&T.push(C.h(kt,{name:u.iconRight,right:u.stack!==!0&&m.value===!0,role:"img"}));const S=[C.h("span",{class:"q-focus-helper",ref:i})];return u.loading===!0&&u.percentage!==void 0&&S.push(C.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(u.darkPercentage===!0?" q-btn__progress--dark":"")},[C.h("span",{class:"q-btn__progress-indicator fit block",style:k.value})])),S.push(C.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+o.value},T)),u.loading!==null&&S.push(C.h(C.Transition,{name:"q-transition--fade"},()=>u.loading===!0?[C.h("span",{key:"loading",class:"absolute-full flex flex-center"},P.loading!==void 0?P.loading():[C.h(Js)])]:null)),C.withDirectives(C.h(e.value,N.value,S),[[to,p.value,void 0,x.value]])}}}),Aa={class:"row justify-between"},Ra=C.defineComponent({__name:"NavButton",props:{from:{},to:{default:void 0},labelFrom:{},labelTo:{default:void 0},params:{default:()=>({})}},setup(u){const P=u,t=C.inject("navContext",null),v=C.inject("router");function b(f){if(!v){console.warn("Dependencies not available:",{router:v});return}t?.setTabs();const o=f==="back"?P.from:P.to;if(!o){console.warn("Destination not provided:",f);return}v.push({name:o,params:P.params})}return(f,o)=>(C.openBlock(),C.createElementBlock("div",Aa,[C.createVNode(wt,{icon:"chevron_left","rounded-sm":"",label:f.labelFrom,"data-cy":"go-back","data-testid":"go-back",onClick:o[0]||(o[0]=a=>b("back"))},null,8,["label"]),f.labelTo?(C.openBlock(),C.createBlock(wt,{key:0,label:f.labelTo,color:"primary","text-color":"white","icon-right":"chevron_right","rounded-sm":"","data-cy":"go-next","data-testid":"go-next",onClick:o[1]||(o[1]=a=>b("next"))},null,8,["label"])):C.createCommentVNode("",!0)]))}}),vi=(u,P)=>{const t=u.__vccOpts||u;for(const[v,b]of P)t[v]=b;return t},Oa=vi(Ra,[["__scopeId","data-v-879abfeb"]]),Bt={dark:{type:Boolean,default:null}};function Dt(u,P){return C.computed(()=>u.dark===null?P.dark.isActive:u.dark)}function ja(u,P){const t=C.ref(null),v=C.computed(()=>u.disable===!0?null:C.h("span",{ref:t,class:"no-outline",tabindex:-1}));function b(f){const o=P.value;f?.qAvoidFocus!==!0&&(f?.type.indexOf("key")===0?document.activeElement!==o&&o?.contains(document.activeElement)===!0&&o.focus():t.value!==null&&(f===void 0||o?.contains(f.target)===!0)&&t.value.focus())}return{refocusTargetEl:v,refocusTarget:b}}const kn={name:String};function Ia(u){return C.computed(()=>({type:"hidden",name:u.name,value:u.modelValue}))}function ro(u={}){return(P,t,v)=>{P[t](C.h("input",{class:"hidden"+(v||""),...u.value}))}}function no(u){return C.computed(()=>u.name||u.for)}const Pa={xs:30,sm:35,md:40,lg:50,xl:60},Na={...Bt,...Cr,...kn,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:u=>u==="tf"||u==="ft"},toggleIndeterminate:Boolean,label:String,leftLabel:Boolean,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},Ba=["update:modelValue"];function Da(u,P){const{props:t,slots:v,emit:b,proxy:f}=C.getCurrentInstance(),{$q:o}=f,a=Dt(t,o),n=C.ref(null),{refocusTargetEl:e,refocusTarget:r}=ja(t,n),l=Mr(t,Pa),s=C.computed(()=>t.val!==void 0&&Array.isArray(t.modelValue)),i=C.computed(()=>{const z=C.toRaw(t.val);return s.value===!0?t.modelValue.findIndex(M=>C.toRaw(M)===z):-1}),d=C.computed(()=>s.value===!0?i.value!==-1:C.toRaw(t.modelValue)===C.toRaw(t.trueValue)),h=C.computed(()=>s.value===!0?i.value===-1:C.toRaw(t.modelValue)===C.toRaw(t.falseValue)),c=C.computed(()=>d.value===!1&&h.value===!1),m=C.computed(()=>t.disable===!0?-1:t.tabindex||0),p=C.computed(()=>`q-${u} cursor-pointer no-outline row inline no-wrap items-center`+(t.disable===!0?" disabled":"")+(a.value===!0?` q-${u}--dark`:"")+(t.dense===!0?` q-${u}--dense`:"")+(t.leftLabel===!0?" reverse":"")),x=C.computed(()=>{const z=d.value===!0?"truthy":h.value===!0?"falsy":"indet",M=t.color!==void 0&&(t.keepColor===!0||h.value!==!0)?` text-${t.color}`:"";return`q-${u}__inner relative-position non-selectable q-${u}__inner--${z}${M}`}),k=C.computed(()=>{const z={type:"checkbox"};return t.name!==void 0&&Object.assign(z,{".checked":d.value,"^checked":d.value===!0?"checked":void 0,name:t.name,value:s.value===!0?t.val:t.trueValue}),z}),A=ro(k),N=C.computed(()=>{const z={tabindex:m.value,role:"checkbox","aria-label":t.label,"aria-checked":c.value===!0?"mixed":d.value===!0?"true":"false"};return t.disable===!0&&(z["aria-disabled"]="true"),z});function q(z){z!==void 0&&(_t(z),r(z)),t.disable!==!0&&b("update:modelValue",D(),z)}function D(){if(s.value===!0){if(d.value===!0){const z=t.modelValue.slice();return z.splice(i.value,1),z}return t.modelValue.concat([t.val])}if(d.value===!0){if(t.toggleOrder!=="ft"||t.toggleIndeterminate===!1)return t.falseValue}else if(h.value===!0){if(t.toggleOrder==="ft"||t.toggleIndeterminate===!1)return t.trueValue}else return t.toggleOrder!=="ft"?t.trueValue:t.falseValue;return t.indeterminateValue}function F(z){(z.keyCode===13||z.keyCode===32)&&_t(z)}function L(z){(z.keyCode===13||z.keyCode===32)&&q(z)}const V=P(d,c);return Object.assign(f,{toggle:q}),()=>{const z=V();t.disable!==!0&&A(z,"unshift",` q-${u}__native absolute q-ma-none q-pa-none`);const M=[C.h("div",{class:x.value,style:l.value,"aria-hidden":"true"},z)];e.value!==null&&M.push(e.value);const T=t.label!==void 0?Nt(v.default,[t.label]):vt(v.default);return T!==void 0&&M.push(C.h("div",{class:`q-${u}__label q-anchor--skip`},T)),C.h("div",{ref:n,class:p.value,...N.value,onClick:q,onKeydown:F,onKeyup:L},M)}}const Fa=()=>C.h("div",{key:"svg",class:"q-checkbox__bg absolute"},[C.h("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24"},[C.h("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),C.h("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]),an=it({name:"QCheckbox",props:Na,emits:Ba,setup(u){const P=Fa();function t(v,b){const f=C.computed(()=>(v.value===!0?u.checkedIcon:b.value===!0?u.indeterminateIcon:u.uncheckedIcon)||null);return()=>f.value!==null?[C.h("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[C.h(kt,{class:"q-checkbox__icon",name:f.value})])]:[P]}return Da("checkbox",t)}}),La=it({props:["store","barStyle","verticalBarStyle","horizontalBarStyle"],setup(u){return()=>[C.h("div",{class:u.store.scroll.vertical.barClass.value,style:[u.barStyle,u.verticalBarStyle],"aria-hidden":"true",onMousedown:u.store.onVerticalMousedown}),C.h("div",{class:u.store.scroll.horizontal.barClass.value,style:[u.barStyle,u.horizontalBarStyle],"aria-hidden":"true",onMousedown:u.store.onHorizontalMousedown}),C.withDirectives(C.h("div",{ref:u.store.scroll.vertical.ref,class:u.store.scroll.vertical.thumbClass.value,style:u.store.scroll.vertical.style.value,"aria-hidden":"true"}),u.store.thumbVertDir),C.withDirectives(C.h("div",{ref:u.store.scroll.horizontal.ref,class:u.store.scroll.horizontal.thumbClass.value,style:u.store.scroll.horizontal.style.value,"aria-hidden":"true"}),u.store.thumbHorizDir)]}}),tr=C.ref(!1);let Qn;function za(u,P){const t=/(edg|edge|edga|edgios)\/([\w.]+)/.exec(u)||/(opr)[\/]([\w.]+)/.exec(u)||/(vivaldi)[\/]([\w.]+)/.exec(u)||/(chrome|crios)[\/]([\w.]+)/.exec(u)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(u)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(u)||/(firefox|fxios)[\/]([\w.]+)/.exec(u)||/(webkit)[\/]([\w.]+)/.exec(u)||/(opera)(?:.*version|)[\/]([\w.]+)/.exec(u)||[];return{browser:t[5]||t[3]||t[1]||"",version:t[4]||t[2]||"0",platform:P[0]||""}}function qa(u){return/(ipad)/.exec(u)||/(ipod)/.exec(u)||/(windows phone)/.exec(u)||/(iphone)/.exec(u)||/(kindle)/.exec(u)||/(silk)/.exec(u)||/(android)/.exec(u)||/(win)/.exec(u)||/(mac)/.exec(u)||/(linux)/.exec(u)||/(cros)/.exec(u)||/(playbook)/.exec(u)||/(bb)/.exec(u)||/(blackberry)/.exec(u)||[]}const io="ontouchstart"in window||window.navigator.maxTouchPoints>0;function $a(u){const P=u.toLowerCase(),t=qa(P),v=za(P,t),b={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};v.browser&&(b[v.browser]=!0,b.version=v.version,b.versionNumber=parseInt(v.version,10)),v.platform&&(b[v.platform]=!0);const f=b.android||b.ios||b.bb||b.blackberry||b.ipad||b.iphone||b.ipod||b.kindle||b.playbook||b.silk||b["windows phone"];if(f===!0||P.indexOf("mobile")!==-1?b.mobile=!0:b.desktop=!0,b["windows phone"]&&(b.winphone=!0,delete b["windows phone"]),b.edga||b.edgios||b.edg?(b.edge=!0,v.browser="edge"):b.crios?(b.chrome=!0,v.browser="chrome"):b.fxios&&(b.firefox=!0,v.browser="firefox"),(b.ipod||b.ipad||b.iphone)&&(b.ios=!0),b.vivaldi&&(v.browser="vivaldi",b.vivaldi=!0),(b.chrome||b.opr||b.safari||b.vivaldi||b.mobile===!0&&b.ios!==!0&&f!==!0)&&(b.webkit=!0),b.opr&&(v.browser="opera",b.opera=!0),b.safari&&(b.blackberry||b.bb?(v.browser="blackberry",b.blackberry=!0):b.playbook?(v.browser="playbook",b.playbook=!0):b.android?(v.browser="android",b.android=!0):b.kindle?(v.browser="kindle",b.kindle=!0):b.silk&&(v.browser="silk",b.silk=!0)),b.name=v.browser,b.platform=v.platform,P.indexOf("electron")!==-1)b.electron=!0;else if(document.location.href.indexOf("-extension://")!==-1)b.bex=!0;else{if(window.Capacitor!==void 0?(b.capacitor=!0,b.nativeMobile=!0,b.nativeMobileWrapper="capacitor"):(window._cordovaNative!==void 0||window.cordova!==void 0)&&(b.cordova=!0,b.nativeMobile=!0,b.nativeMobileWrapper="cordova"),tr.value===!0&&(Qn={is:{...b}}),io===!0&&b.mac===!0&&(b.desktop===!0&&b.safari===!0||b.nativeMobile===!0&&b.android!==!0&&b.ios!==!0&&b.ipad!==!0)){delete b.mac,delete b.desktop;const o=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(b,{mobile:!0,ios:!0,platform:o,[o]:!0})}b.mobile!==!0&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete b.desktop,b.mobile=!0)}return b}const Gi=navigator.userAgent||navigator.vendor||window.opera,Va={has:{touch:!1,webStorage:!1},within:{iframe:!1}},Et={userAgent:Gi,is:$a(Gi),has:{touch:io},within:{iframe:window.self!==window.top}},Jn={install(u){const{$q:P}=u;tr.value===!0?(u.onSSRHydrated.push(()=>{Object.assign(P.platform,Et),tr.value=!1}),P.platform=C.reactive(this)):P.platform=this}};{let u;Lt(Et.has,"webStorage",()=>{if(u!==void 0)return u;try{if(window.localStorage)return u=!0,!0}catch{}return u=!1,!1}),Object.assign(Jn,Et),tr.value===!0&&(Object.assign(Jn,Qn,Va),Qn=null)}function Ha(){const u=C.ref(!tr.value);return u.value===!1&&C.onMounted(()=>{u.value=!0}),{isHydrated:u}}const so=typeof ResizeObserver<"u",Qi=so===!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"},Sr=it({name:"QResizeObserver",props:{debounce:{type:[String,Number],default:100}},emits:["resize"],setup(u,{emit:P}){let t=null,v,b={width:-1,height:-1};function f(n){n===!0||u.debounce===0||u.debounce==="0"?o():t===null&&(t=setTimeout(o,u.debounce))}function o(){if(t!==null&&(clearTimeout(t),t=null),v){const{offsetWidth:n,offsetHeight:e}=v;(n!==b.width||e!==b.height)&&(b={width:n,height:e},P("resize",b))}}const{proxy:a}=C.getCurrentInstance();if(a.trigger=f,so===!0){let n;const e=r=>{v=a.$el.parentNode,v?(n=new ResizeObserver(f),n.observe(v),o()):r!==!0&&C.nextTick(()=>{e(!0)})};return C.onMounted(()=>{e()}),C.onBeforeUnmount(()=>{t!==null&&clearTimeout(t),n!==void 0&&(n.disconnect!==void 0?n.disconnect():v&&n.unobserve(v))}),Sn}else{let n=function(){t!==null&&(clearTimeout(t),t=null),l!==void 0&&(l.removeEventListener!==void 0&&l.removeEventListener("resize",f,St.passive),l=void 0)},e=function(){n(),v?.contentDocument&&(l=v.contentDocument.defaultView,l.addEventListener("resize",f,St.passive),o())};const{isHydrated:r}=Ha();let l;return C.onMounted(()=>{C.nextTick(()=>{v=a.$el,v&&e()})}),C.onBeforeUnmount(n),()=>{if(r.value===!0)return C.h("object",{class:"q--avoid-card-border",style:Qi.style,tabindex:-1,type:"text/html",data:Qi.url,"aria-hidden":"true",onLoad:e})}}}}),Cn=[Element,String],Ua=[null,document,document.body,document.scrollingElement,document.documentElement];function Mn(u,P){let t=ga(P);if(t===void 0){if(u==null)return window;t=u.closest(".scroll,.scroll-y,.overflow-auto")}return Ua.includes(t)?window:t}function yi(u){return u===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:u.scrollTop}function wi(u){return u===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:u.scrollLeft}function oo(u,P,t=0){const v=arguments[3]===void 0?performance.now():arguments[3],b=yi(u);if(t<=0){b!==P&&ei(u,P);return}requestAnimationFrame(f=>{const o=f-v,a=b+(P-b)/Math.max(o,t)*o;ei(u,a),a!==P&&oo(u,P,t-o,f)})}function ao(u,P,t=0){const v=arguments[3]===void 0?performance.now():arguments[3],b=wi(u);if(t<=0){b!==P&&ti(u,P);return}requestAnimationFrame(f=>{const o=f-v,a=b+(P-b)/Math.max(o,t)*o;ti(u,a),a!==P&&ao(u,P,t-o,f)})}function ei(u,P){if(u===window){window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,P);return}u.scrollTop=P}function ti(u,P){if(u===window){window.scrollTo(P,window.pageYOffset||window.scrollY||document.body.scrollTop||0);return}u.scrollLeft=P}function Ji(u,P,t){if(t){oo(u,P,t);return}ei(u,P)}function In(u,P,t){if(t){ao(u,P,t);return}ti(u,P)}let Xr;function ln(){if(Xr!==void 0)return Xr;const u=document.createElement("p"),P=document.createElement("div");Gn(u,{width:"100%",height:"200px"}),Gn(P,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),P.appendChild(u),document.body.appendChild(P);const t=u.offsetWidth;P.style.overflow="scroll";let v=u.offsetWidth;return t===v&&(v=P.clientWidth),P.remove(),Xr=t-v,Xr}function Wa(u,P=!0){return!u||u.nodeType!==Node.ELEMENT_NODE?!1:P?u.scrollHeight>u.clientHeight&&(u.classList.contains("scroll")||u.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(u)["overflow-y"])):u.scrollWidth>u.clientWidth&&(u.classList.contains("scroll")||u.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(u)["overflow-x"]))}const{passive:es}=St,Ya=["both","horizontal","vertical"],lo=it({name:"QScrollObserver",props:{axis:{type:String,validator:u=>Ya.includes(u),default:"vertical"},debounce:[String,Number],scrollTarget:Cn},emits:["scroll"],setup(u,{emit:P}){const t={position:{top:0,left:0},direction:"down",directionChanged:!1,delta:{top:0,left:0},inflectionPoint:{top:0,left:0}};let v=null,b,f;C.watch(()=>u.scrollTarget,()=>{n(),a()});function o(){v?.();const l=Math.max(0,yi(b)),s=wi(b),i={top:l-t.position.top,left:s-t.position.left};if(u.axis==="vertical"&&i.top===0||u.axis==="horizontal"&&i.left===0)return;const d=Math.abs(i.top)>=Math.abs(i.left)?i.top<0?"up":"down":i.left<0?"left":"right";t.position={top:l,left:s},t.directionChanged=t.direction!==d,t.delta=i,t.directionChanged===!0&&(t.direction=d,t.inflectionPoint=t.position),P("scroll",{...t})}function a(){b=Mn(f,u.scrollTarget),b.addEventListener("scroll",e,es),e(!0)}function n(){b!==void 0&&(b.removeEventListener("scroll",e,es),b=void 0)}function e(l){if(l===!0||u.debounce===0||u.debounce==="0")o();else if(v===null){const[s,i]=u.debounce?[setTimeout(o,u.debounce),clearTimeout]:[requestAnimationFrame(o),cancelAnimationFrame];v=()=>{i(s),v=null}}}const{proxy:r}=C.getCurrentInstance();return C.watch(()=>r.$q.lang.rtl,o),C.onMounted(()=>{f=r.$el.parentNode,a()}),C.onBeforeUnmount(()=>{v?.(),n()}),Object.assign(r,{trigger:e,getPosition:()=>t}),Sn}}),_i={left:!0,right:!0,up:!0,down:!0,horizontal:!0,vertical:!0},Xa=Object.keys(_i);_i.all=!0;function ts(u){const P={};for(const t of Xa)u[t]===!0&&(P[t]=!0);return Object.keys(P).length===0?_i:(P.horizontal===!0?P.left=P.right=!0:P.left===!0&&P.right===!0&&(P.horizontal=!0),P.vertical===!0?P.up=P.down=!0:P.up===!0&&P.down===!0&&(P.vertical=!0),P.horizontal===!0&&P.vertical===!0&&(P.all=!0),P)}const Ka=["INPUT","TEXTAREA"];function rs(u,P){return P.event===void 0&&u.target!==void 0&&u.target.draggable!==!0&&typeof P.handler=="function"&&Ka.includes(u.target.nodeName.toUpperCase())===!1&&(u.qClonedBy===void 0||u.qClonedBy.indexOf(P.uid)===-1)}function hn(){if(window.getSelection!==void 0){const u=window.getSelection();u.empty!==void 0?u.empty():u.removeAllRanges!==void 0&&(u.removeAllRanges(),Jn.is.mobile!==!0&&u.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}function Pn(u,P,t){const v=Nr(u);let b,f=v.left-P.event.x,o=v.top-P.event.y,a=Math.abs(f),n=Math.abs(o);const e=P.direction;e.horizontal===!0&&e.vertical!==!0?b=f<0?"left":"right":e.horizontal!==!0&&e.vertical===!0?b=o<0?"up":"down":e.up===!0&&o<0?(b="up",a>n&&(e.left===!0&&f<0?b="left":e.right===!0&&f>0&&(b="right"))):e.down===!0&&o>0?(b="down",a>n&&(e.left===!0&&f<0?b="left":e.right===!0&&f>0&&(b="right"))):e.left===!0&&f<0?(b="left",a<n&&(e.up===!0&&o<0?b="up":e.down===!0&&o>0&&(b="down"))):e.right===!0&&f>0&&(b="right",a<n&&(e.up===!0&&o<0?b="up":e.down===!0&&o>0&&(b="down")));let r=!1;if(b===void 0&&t===!1){if(P.event.isFirst===!0||P.event.lastDir===void 0)return{};b=P.event.lastDir,r=!0,b==="left"||b==="right"?(v.left-=f,a=0,f=0):(v.top-=o,n=0,o=0)}return{synthetic:r,payload:{evt:u,touch:P.event.mouse!==!0,mouse:P.event.mouse===!0,position:v,direction:b,isFirst:P.event.isFirst,isFinal:t===!0,duration:Date.now()-P.event.time,distance:{x:a,y:n},offset:{x:f,y:o},delta:{x:v.left-P.event.lastX,y:v.top-P.event.lastY}}}}let Za=0;const ns=di({name:"touch-pan",beforeMount(u,{value:P,modifiers:t}){if(t.mouse!==!0&&Et.has.touch!==!0)return;function v(f,o){t.mouse===!0&&o===!0?_t(f):(t.stop===!0&&It(f),t.prevent===!0&&Ot(f))}const b={uid:"qvtp_"+Za++,handler:P,modifiers:t,direction:ts(t),noop:Sn,mouseStart(f){rs(f,b)&&va(f)&&(Ut(b,"temp",[[document,"mousemove","move","notPassiveCapture"],[document,"mouseup","end","passiveCapture"]]),b.start(f,!0))},touchStart(f){if(rs(f,b)){const o=f.target;Ut(b,"temp",[[o,"touchmove","move","notPassiveCapture"],[o,"touchcancel","end","passiveCapture"],[o,"touchend","end","passiveCapture"]]),b.start(f)}},start(f,o){if(Et.is.firefox===!0&&jn(u,!0),b.lastEvt=f,o===!0||t.stop===!0){if(b.direction.all!==!0&&(o!==!0||b.modifiers.mouseAllDir!==!0&&b.modifiers.mousealldir!==!0)){const e=f.type.indexOf("mouse")!==-1?new MouseEvent(f.type,f):new TouchEvent(f.type,f);f.defaultPrevented===!0&&Ot(e),f.cancelBubble===!0&&It(e),Object.assign(e,{qKeyEvent:f.qKeyEvent,qClickOutside:f.qClickOutside,qAnchorHandled:f.qAnchorHandled,qClonedBy:f.qClonedBy===void 0?[b.uid]:f.qClonedBy.concat(b.uid)}),b.initialEvent={target:f.target,event:e}}It(f)}const{left:a,top:n}=Nr(f);b.event={x:a,y:n,time:Date.now(),mouse:o===!0,detected:!1,isFirst:!0,isFinal:!1,lastX:a,lastY:n}},move(f){if(b.event===void 0)return;const o=Nr(f),a=o.left-b.event.x,n=o.top-b.event.y;if(a===0&&n===0)return;b.lastEvt=f;const e=b.event.mouse===!0,r=()=>{v(f,e);let i;t.preserveCursor!==!0&&t.preservecursor!==!0&&(i=document.documentElement.style.cursor||"",document.documentElement.style.cursor="grabbing"),e===!0&&document.body.classList.add("no-pointer-events--children"),document.body.classList.add("non-selectable"),hn(),b.styleCleanup=d=>{if(b.styleCleanup=void 0,i!==void 0&&(document.documentElement.style.cursor=i),document.body.classList.remove("non-selectable"),e===!0){const h=()=>{document.body.classList.remove("no-pointer-events--children")};d!==void 0?setTimeout(()=>{h(),d()},50):h()}else d!==void 0&&d()}};if(b.event.detected===!0){b.event.isFirst!==!0&&v(f,b.event.mouse);const{payload:i,synthetic:d}=Pn(f,b,!1);i!==void 0&&(b.handler(i)===!1?b.end(f):(b.styleCleanup===void 0&&b.event.isFirst===!0&&r(),b.event.lastX=i.position.left,b.event.lastY=i.position.top,b.event.lastDir=d===!0?void 0:i.direction,b.event.isFirst=!1));return}if(b.direction.all===!0||e===!0&&(b.modifiers.mouseAllDir===!0||b.modifiers.mousealldir===!0)){r(),b.event.detected=!0,b.move(f);return}const l=Math.abs(a),s=Math.abs(n);l!==s&&(b.direction.horizontal===!0&&l>s||b.direction.vertical===!0&&l<s||b.direction.up===!0&&l<s&&n<0||b.direction.down===!0&&l<s&&n>0||b.direction.left===!0&&l>s&&a<0||b.direction.right===!0&&l>s&&a>0?(b.event.detected=!0,b.move(f)):b.end(f,!0))},end(f,o){if(b.event!==void 0){if(ar(b,"temp"),Et.is.firefox===!0&&jn(u,!1),o===!0)b.styleCleanup?.(),b.event.detected!==!0&&b.initialEvent!==void 0&&b.initialEvent.target.dispatchEvent(b.initialEvent.event);else if(b.event.detected===!0){b.event.isFirst===!0&&b.handler(Pn(f===void 0?b.lastEvt:f,b).payload);const{payload:a}=Pn(f===void 0?b.lastEvt:f,b,!0),n=()=>{b.handler(a)};b.styleCleanup!==void 0?b.styleCleanup(n):n()}b.event=void 0,b.initialEvent=void 0,b.lastEvt=void 0}}};if(u.__qtouchpan=b,t.mouse===!0){const f=t.mouseCapture===!0||t.mousecapture===!0?"Capture":"";Ut(b,"main",[[u,"mousedown","mouseStart",`passive${f}`]])}Et.has.touch===!0&&Ut(b,"main",[[u,"touchstart","touchStart",`passive${t.capture===!0?"Capture":""}`],[u,"touchmove","noop","notPassiveCapture"]])},updated(u,P){const t=u.__qtouchpan;t!==void 0&&(P.oldValue!==P.value&&(typeof value!="function"&&t.end(),t.handler=P.value),t.direction=ts(P.modifiers))},beforeUnmount(u){const P=u.__qtouchpan;P!==void 0&&(P.event!==void 0&&P.end(),ar(P,"main"),ar(P,"temp"),Et.is.firefox===!0&&jn(u,!1),P.styleCleanup?.(),delete u.__qtouchpan)}});function Ga(u){return u.charAt(0).toUpperCase()+u.slice(1)}function Tr(u,P,t){return t<=P?P:Math.min(t,Math.max(P,u))}function is(u,P,t){if(t<=P)return P;const v=t-P+1;let b=P+(u-P)%v;return b<P&&(b=v+b),b===0?0:b}function mt(u,P=2,t="0"){if(u==null)return u;const v=""+u;return v.length>=P?v:new Array(P-v.length+1).join(t)+v}function xi(u,P=250,t){let v=null;function b(){const f=arguments,o=()=>{v=null,u.apply(this,f)};v!==null&&clearTimeout(v),v=setTimeout(o,P)}return b.cancel=()=>{v!==null&&clearTimeout(v)},b}const ss=["vertical","horizontal"],Nn={vertical:{offset:"offsetY",scroll:"scrollTop",dir:"down",dist:"y"},horizontal:{offset:"offsetX",scroll:"scrollLeft",dir:"right",dist:"x"}},os={prevent:!0,mouse:!0,mouseAllDir:!0},as=u=>u>=250?50:Math.ceil(u/5),Qa=it({name:"QScrollArea",props:{...Bt,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(u,{slots:P,emit:t}){const v=C.ref(!1),b=C.ref(!1),f=C.ref(!1),o={vertical:C.ref(0),horizontal:C.ref(0)},a={vertical:{ref:C.ref(null),position:C.ref(0),size:C.ref(0)},horizontal:{ref:C.ref(null),position:C.ref(0),size:C.ref(0)}},{proxy:n}=C.getCurrentInstance(),e=Dt(u,n.$q);let r=null,l;const s=C.ref(null),i=C.computed(()=>"q-scrollarea"+(e.value===!0?" q-scrollarea--dark":""));Object.assign(o,{verticalInner:C.computed(()=>o.vertical.value-u.verticalOffset[0]-u.verticalOffset[1]),horizontalInner:C.computed(()=>o.horizontal.value-u.horizontalOffset[0]-u.horizontalOffset[1])}),a.vertical.percentage=C.computed(()=>{const T=a.vertical.size.value-o.vertical.value;if(T<=0)return 0;const S=Tr(a.vertical.position.value/T,0,1);return Math.round(S*1e4)/1e4}),a.vertical.thumbHidden=C.computed(()=>(u.visible===null?f.value:u.visible)!==!0&&v.value===!1&&b.value===!1||a.vertical.size.value<=o.vertical.value+1),a.vertical.thumbStart=C.computed(()=>u.verticalOffset[0]+a.vertical.percentage.value*(o.verticalInner.value-a.vertical.thumbSize.value)),a.vertical.thumbSize=C.computed(()=>Math.round(Tr(o.verticalInner.value*o.verticalInner.value/a.vertical.size.value,as(o.verticalInner.value),o.verticalInner.value))),a.vertical.style=C.computed(()=>({...u.thumbStyle,...u.verticalThumbStyle,top:`${a.vertical.thumbStart.value}px`,height:`${a.vertical.thumbSize.value}px`,right:`${u.horizontalOffset[1]}px`})),a.vertical.thumbClass=C.computed(()=>"q-scrollarea__thumb q-scrollarea__thumb--v absolute-right"+(a.vertical.thumbHidden.value===!0?" q-scrollarea__thumb--invisible":"")),a.vertical.barClass=C.computed(()=>"q-scrollarea__bar q-scrollarea__bar--v absolute-right"+(a.vertical.thumbHidden.value===!0?" q-scrollarea__bar--invisible":"")),a.horizontal.percentage=C.computed(()=>{const T=a.horizontal.size.value-o.horizontal.value;if(T<=0)return 0;const S=Tr(Math.abs(a.horizontal.position.value)/T,0,1);return Math.round(S*1e4)/1e4}),a.horizontal.thumbHidden=C.computed(()=>(u.visible===null?f.value:u.visible)!==!0&&v.value===!1&&b.value===!1||a.horizontal.size.value<=o.horizontal.value+1),a.horizontal.thumbStart=C.computed(()=>u.horizontalOffset[0]+a.horizontal.percentage.value*(o.horizontalInner.value-a.horizontal.thumbSize.value)),a.horizontal.thumbSize=C.computed(()=>Math.round(Tr(o.horizontalInner.value*o.horizontalInner.value/a.horizontal.size.value,as(o.horizontalInner.value),o.horizontalInner.value))),a.horizontal.style=C.computed(()=>({...u.thumbStyle,...u.horizontalThumbStyle,[n.$q.lang.rtl===!0?"right":"left"]:`${a.horizontal.thumbStart.value}px`,width:`${a.horizontal.thumbSize.value}px`,bottom:`${u.verticalOffset[1]}px`})),a.horizontal.thumbClass=C.computed(()=>"q-scrollarea__thumb q-scrollarea__thumb--h absolute-bottom"+(a.horizontal.thumbHidden.value===!0?" q-scrollarea__thumb--invisible":"")),a.horizontal.barClass=C.computed(()=>"q-scrollarea__bar q-scrollarea__bar--h absolute-bottom"+(a.horizontal.thumbHidden.value===!0?" q-scrollarea__bar--invisible":""));const d=C.computed(()=>a.vertical.thumbHidden.value===!0&&a.horizontal.thumbHidden.value===!0?u.contentStyle:u.contentActiveStyle);function h(){const T={};return ss.forEach(S=>{const g=a[S];Object.assign(T,{[S+"Position"]:g.position.value,[S+"Percentage"]:g.percentage.value,[S+"Size"]:g.size.value,[S+"ContainerSize"]:o[S].value,[S+"ContainerInnerSize"]:o[S+"Inner"].value})}),T}const c=xi(()=>{const T=h();T.ref=n,t("scroll",T)},0);function m(T,S,g){if(ss.includes(T)===!1){console.error("[QScrollArea]: wrong first param of setScrollPosition (vertical/horizontal)");return}(T==="vertical"?Ji:In)(s.value,S,g)}function p({height:T,width:S}){let g=!1;o.vertical.value!==T&&(o.vertical.value=T,g=!0),o.horizontal.value!==S&&(o.horizontal.value=S,g=!0),g===!0&&q()}function x({position:T}){let S=!1;a.vertical.position.value!==T.top&&(a.vertical.position.value=T.top,S=!0),a.horizontal.position.value!==T.left&&(a.horizontal.position.value=T.left,S=!0),S===!0&&q()}function k({height:T,width:S}){a.horizontal.size.value!==S&&(a.horizontal.size.value=S,q()),a.vertical.size.value!==T&&(a.vertical.size.value=T,q())}function A(T,S){const g=a[S];if(T.isFirst===!0){if(g.thumbHidden.value===!0)return;l=g.position.value,b.value=!0}else if(b.value!==!0)return;T.isFinal===!0&&(b.value=!1);const y=Nn[S],w=(g.size.value-o[S].value)/(o[S+"Inner"].value-g.thumbSize.value),_=T.distance[y.dist],E=l+(T.direction===y.dir?1:-1)*_*w;D(E,S)}function N(T,S){const g=a[S];if(g.thumbHidden.value!==!0){const y=S==="vertical"?u.verticalOffset[0]:u.horizontalOffset[0],w=T[Nn[S].offset]-y,_=g.thumbStart.value-y;if(w<_||w>_+g.thumbSize.value){const E=w-g.thumbSize.value/2,O=Tr(E/(o[S+"Inner"].value-g.thumbSize.value),0,1);D(O*Math.max(0,g.size.value-o[S].value),S)}g.ref.value!==null&&g.ref.value.dispatchEvent(new MouseEvent(T.type,T))}}function q(){v.value=!0,r!==null&&clearTimeout(r),r=setTimeout(()=>{r=null,v.value=!1},u.delay),u.onScroll!==void 0&&c()}function D(T,S){s.value[Nn[S].scroll]=T}let F=null;function L(){F!==null&&clearTimeout(F),F=setTimeout(()=>{F=null,f.value=!0},n.$q.platform.is.ios?50:0)}function V(){F!==null&&(clearTimeout(F),F=null),f.value=!1}let z=null;C.watch(()=>n.$q.lang.rtl,T=>{s.value!==null&&In(s.value,Math.abs(a.horizontal.position.value)*(T===!0?-1:1))}),C.onDeactivated(()=>{z={top:a.vertical.position.value,left:a.horizontal.position.value}}),C.onActivated(()=>{if(z===null)return;const T=s.value;T!==null&&(In(T,z.left),Ji(T,z.top))}),C.onBeforeUnmount(c.cancel),Object.assign(n,{getScrollTarget:()=>s.value,getScroll:h,getScrollPosition:()=>({top:a.vertical.position.value,left:a.horizontal.position.value}),getScrollPercentage:()=>({top:a.vertical.percentage.value,left:a.horizontal.percentage.value}),setScrollPosition:m,setScrollPercentage(T,S,g){m(T,S*(a[T].size.value-o[T].value)*(T==="horizontal"&&n.$q.lang.rtl===!0?-1:1),g)}});const M={scroll:a,thumbVertDir:[[ns,T=>{A(T,"vertical")},void 0,{vertical:!0,...os}]],thumbHorizDir:[[ns,T=>{A(T,"horizontal")},void 0,{horizontal:!0,...os}]],onVerticalMousedown(T){N(T,"vertical")},onHorizontalMousedown(T){N(T,"horizontal")}};return()=>C.h("div",{class:i.value,onMouseenter:L,onMouseleave:V},[C.h("div",{ref:s,class:"q-scrollarea__container scroll relative-position fit hide-scrollbar",tabindex:u.tabindex!==void 0?u.tabindex:void 0},[C.h("div",{class:"q-scrollarea__content absolute",style:d.value},Nt(P.default,[C.h(Sr,{debounce:0,onResize:k})])),C.h(lo,{axis:"both",onScroll:x})]),C.h(Sr,{debounce:0,onResize:p}),C.h(La,{store:M,barStyle:u.barStyle,verticalBarStyle:u.verticalBarStyle,horizontalBarStyle:u.horizontalBarStyle})])}}),Ja=it({name:"QCard",props:{...Bt,tag:{type:String,default:"div"},square:Boolean,flat:Boolean,bordered:Boolean},setup(u,{slots:P}){const{proxy:{$q:t}}=C.getCurrentInstance(),v=Dt(u,t),b=C.computed(()=>"q-card"+(v.value===!0?" q-card--dark q-dark":"")+(u.bordered===!0?" q-card--bordered":"")+(u.square===!0?" q-card--square no-border-radius":"")+(u.flat===!0?" q-card--flat no-shadow":""));return()=>C.h(u.tag,{class:b.value},vt(P.default))}}),uo={target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},co={...uo,contextMenu:Boolean};function Si({showing:u,avoidEmit:P,configureAnchorEl:t}){const{props:v,proxy:b,emit:f}=C.getCurrentInstance(),o=C.ref(null);let a=null;function n(i){return o.value===null?!1:i===void 0||i.touches===void 0||i.touches.length<=1}const e={};t===void 0&&(Object.assign(e,{hide(i){b.hide(i)},toggle(i){b.toggle(i),i.qAnchorHandled=!0},toggleKey(i){er(i,13)===!0&&e.toggle(i)},contextClick(i){b.hide(i),Ot(i),C.nextTick(()=>{b.show(i),i.qAnchorHandled=!0})},prevent:Ot,mobileTouch(i){if(e.mobileCleanup(i),n(i)!==!0)return;b.hide(i),o.value.classList.add("non-selectable");const d=i.target;Ut(e,"anchor",[[d,"touchmove","mobileCleanup","passive"],[d,"touchend","mobileCleanup","passive"],[d,"touchcancel","mobileCleanup","passive"],[o.value,"contextmenu","prevent","notPassive"]]),a=setTimeout(()=>{a=null,b.show(i),i.qAnchorHandled=!0},300)},mobileCleanup(i){o.value.classList.remove("non-selectable"),a!==null&&(clearTimeout(a),a=null),u.value===!0&&i!==void 0&&hn()}}),t=function(i=v.contextMenu){if(v.noParentEvent===!0||o.value===null)return;let d;i===!0?b.$q.platform.is.mobile===!0?d=[[o.value,"touchstart","mobileTouch","passive"]]:d=[[o.value,"mousedown","hide","passive"],[o.value,"contextmenu","contextClick","notPassive"]]:d=[[o.value,"click","toggle","passive"],[o.value,"keyup","toggleKey","passive"]],Ut(e,"anchor",d)});function r(){ar(e,"anchor")}function l(i){for(o.value=i;o.value.classList.contains("q-anchor--skip");)o.value=o.value.parentNode;t()}function s(){if(v.target===!1||v.target===""||b.$el.parentNode===null)o.value=null;else if(v.target===!0)l(b.$el.parentNode);else{let i=v.target;if(typeof v.target=="string")try{i=document.querySelector(v.target)}catch{i=void 0}i!=null?(o.value=i.$el||i,t()):(o.value=null,console.error(`Anchor: target "${v.target}" not found`))}}return C.watch(()=>v.contextMenu,i=>{o.value!==null&&(r(),t(i))}),C.watch(()=>v.target,()=>{o.value!==null&&r(),s()}),C.watch(()=>v.noParentEvent,i=>{o.value!==null&&(i===!0?r():t())}),C.onMounted(()=>{s(),P!==!0&&v.modelValue===!0&&o.value===null&&f("update:modelValue",!1)}),C.onBeforeUnmount(()=>{a!==null&&clearTimeout(a),r()}),{anchorEl:o,canShow:n,anchorEvents:e}}function fo(u,P){const t=C.ref(null);let v;function b(a,n){const e=`${n!==void 0?"add":"remove"}EventListener`,r=n!==void 0?n:v;a!==window&&a[e]("scroll",r,St.passive),window[e]("scroll",r,St.passive),v=n}function f(){t.value!==null&&(b(t.value),t.value=null)}const o=C.watch(()=>u.noParentEvent,()=>{t.value!==null&&(f(),P())});return C.onBeforeUnmount(o),{localScrollTarget:t,unconfigureScrollTarget:f,changeScrollEvent:b}}const ki={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},Ci=["beforeShow","show","beforeHide","hide"];function Mi({showing:u,canShow:P,hideOnRouteChange:t,handleShow:v,handleHide:b,processOnMount:f}){const o=C.getCurrentInstance(),{props:a,emit:n,proxy:e}=o;let r;function l(p){u.value===!0?d(p):s(p)}function s(p){if(a.disable===!0||p?.qAnchorHandled===!0||P!==void 0&&P(p)!==!0)return;const x=a["onUpdate:modelValue"]!==void 0;x===!0&&(n("update:modelValue",!0),r=p,C.nextTick(()=>{r===p&&(r=void 0)})),(a.modelValue===null||x===!1)&&i(p)}function i(p){u.value!==!0&&(u.value=!0,n("beforeShow",p),v!==void 0?v(p):n("show",p))}function d(p){if(a.disable===!0)return;const x=a["onUpdate:modelValue"]!==void 0;x===!0&&(n("update:modelValue",!1),r=p,C.nextTick(()=>{r===p&&(r=void 0)})),(a.modelValue===null||x===!1)&&h(p)}function h(p){u.value!==!1&&(u.value=!1,n("beforeHide",p),b!==void 0?b(p):n("hide",p))}function c(p){a.disable===!0&&p===!0?a["onUpdate:modelValue"]!==void 0&&n("update:modelValue",!1):p===!0!==u.value&&(p===!0?i:h)(r)}C.watch(()=>a.modelValue,c),t!==void 0&&pi(o)===!0&&C.watch(()=>e.$route.fullPath,()=>{t.value===!0&&u.value===!0&&d()}),C.onMounted(()=>{c(a.modelValue)});const m={show:s,hide:d,toggle:l};return Object.assign(e,m),m}let or=[],Br=[];function ho(u){Br=Br.filter(P=>P!==u)}function el(u){ho(u),Br.push(u)}function ls(u){ho(u),Br.length===0&&or.length!==0&&(or[or.length-1](),or=[])}function Lr(u){Br.length===0?u():or.push(u)}function tl(u){or=or.filter(P=>P!==u)}const us={};let rl=1,nl=document.body;function il(u,P){const t=document.createElement("div");if(t.id=P!==void 0?`q-portal--${P}--${rl++}`:u,us.globalNodes!==void 0){const v=us.globalNodes.class;v!==void 0&&(t.className=v)}return nl.appendChild(t),t}function sl(u){u.remove()}const _r=[];function ol(u){return _r.find(P=>P.contentEl!==null&&P.contentEl.contains(u))}function po(u,P){do{if(u.$options.name==="QMenu"){if(u.hide(P),u.$props.separateClosePopup===!0)return on(u)}else if(u.__qPortal===!0){const t=on(u);return t?.$options.name==="QPopupProxy"?(u.hide(P),t):u}u=on(u)}while(u!=null)}function al(u,P,t){for(;t!==0&&u!==void 0&&u!==null;){if(u.__qPortal===!0){if(t--,u.$options.name==="QMenu"){u=po(u,P);continue}u.hide(P)}u=on(u)}}const ll=it({name:"QPortal",setup(u,{slots:P}){return()=>P.default()}});function ul(u){for(u=u.parent;u!=null;){if(u.type.name==="QGlobalDialog")return!0;if(u.type.name==="QDialog"||u.type.name==="QMenu")return!1;u=u.parent}return!1}function Ei(u,P,t,v){const b=C.ref(!1),f=C.ref(!1);let o=null;const a={},n=v==="dialog"&&ul(u);function e(l){if(l===!0){ls(a),f.value=!0;return}f.value=!1,b.value===!1&&(n===!1&&o===null&&(o=il(!1,v)),b.value=!0,_r.push(u.proxy),el(a))}function r(l){if(f.value=!1,l!==!0)return;ls(a),b.value=!1;const s=_r.indexOf(u.proxy);s!==-1&&_r.splice(s,1),o!==null&&(sl(o),o=null)}return C.onUnmounted(()=>{r(!0)}),u.proxy.__qPortal=!0,Lt(u.proxy,"contentEl",()=>P.value),{showPortal:e,hidePortal:r,portalIsActive:b,portalIsAccessible:f,renderPortal:()=>n===!0?t():b.value===!0?[C.h(C.Teleport,{to:o},C.h(ll,t))]:void 0}}const Pr={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function Ti(u,P=()=>{},t=()=>{}){return{transitionProps:C.computed(()=>{const v=`q-transition--${u.transitionShow||P()}`,b=`q-transition--${u.transitionHide||t()}`;return{appear:!0,enterFromClass:`${v}-enter-from`,enterActiveClass:`${v}-enter-active`,enterToClass:`${v}-enter-to`,leaveFromClass:`${b}-leave-from`,leaveActiveClass:`${b}-leave-active`,leaveToClass:`${b}-leave-to`}}),transitionStyle:C.computed(()=>`--q-transition-duration: ${u.transitionDuration}ms`)}}function Ai(){let u;const P=C.getCurrentInstance();function t(){u=void 0}return C.onDeactivated(t),C.onBeforeUnmount(t),{removeTick:t,registerTick(v){u=v,C.nextTick(()=>{u===v&&(mi(P)===!1&&u(),u=void 0)})}}}function Ri(){let u=null;const P=C.getCurrentInstance();function t(){u!==null&&(clearTimeout(u),u=null)}return C.onDeactivated(t),C.onBeforeUnmount(t),{removeTimeout:t,registerTimeout(v,b){t(),mi(P)===!1&&(u=setTimeout(()=>{u=null,v()},b))}}}const lr=[];let kr;function cl(u){kr=u.keyCode===27}function fl(){kr===!0&&(kr=!1)}function dl(u){kr===!0&&(kr=!1,er(u,27)===!0&&lr[lr.length-1](u))}function mo(u){window[u]("keydown",cl),window[u]("blur",fl),window[u]("keyup",dl),kr=!1}function bo(u){Et.is.desktop===!0&&(lr.push(u),lr.length===1&&mo("addEventListener"))}function pn(u){const P=lr.indexOf(u);P!==-1&&(lr.splice(P,1),lr.length===0&&mo("removeEventListener"))}const ur=[];function go(u){ur[ur.length-1](u)}function vo(u){Et.is.desktop===!0&&(ur.push(u),ur.length===1&&document.body.addEventListener("focusin",go))}function ri(u){const P=ur.indexOf(u);P!==-1&&(ur.splice(P,1),ur.length===0&&document.body.removeEventListener("focusin",go))}const{notPassiveCapture:mn}=St,cr=[];function bn(u){const P=u.target;if(P===void 0||P.nodeType===8||P.classList.contains("no-pointer-events")===!0)return;let t=_r.length-1;for(;t>=0;){const v=_r[t].$;if(v.type.name==="QTooltip"){t--;continue}if(v.type.name!=="QDialog")break;if(v.props.seamless!==!0)return;t--}for(let v=cr.length-1;v>=0;v--){const b=cr[v];if((b.anchorEl.value===null||b.anchorEl.value.contains(P)===!1)&&(P===document.body||b.innerRef.value!==null&&b.innerRef.value.contains(P)===!1))u.qClickOutside=!0,b.onClickOutside(u);else return}}function yo(u){cr.push(u),cr.length===1&&(document.addEventListener("mousedown",bn,mn),document.addEventListener("touchstart",bn,mn))}function gn(u){const P=cr.findIndex(t=>t===u);P!==-1&&(cr.splice(P,1),cr.length===0&&(document.removeEventListener("mousedown",bn,mn),document.removeEventListener("touchstart",bn,mn)))}let cs,fs;function vn(u){const P=u.split(" ");return P.length!==2?!1:["top","center","bottom"].includes(P[0])!==!0?(console.error("Anchor/Self position must start with one of top/center/bottom"),!1):["left","middle","right","start","end"].includes(P[1])!==!0?(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1):!0}function wo(u){return u?!(u.length!==2||typeof u[0]!="number"||typeof u[1]!="number"):!0}const ni={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(u=>{ni[`${u}#ltr`]=u,ni[`${u}#rtl`]=u});function yn(u,P){const t=u.split(" ");return{vertical:t[0],horizontal:ni[`${t[1]}#${P===!0?"rtl":"ltr"}`]}}function hl(u,P){let{top:t,left:v,right:b,bottom:f,width:o,height:a}=u.getBoundingClientRect();return P!==void 0&&(t-=P[1],v-=P[0],f+=P[1],b+=P[0],o+=P[0],a+=P[1]),{top:t,bottom:f,height:a,left:v,right:b,width:o,middle:v+(b-v)/2,center:t+(f-t)/2}}function pl(u,P,t){let{top:v,left:b}=u.getBoundingClientRect();return v+=P.top,b+=P.left,t!==void 0&&(v+=t[1],b+=t[0]),{top:v,bottom:v+1,height:1,left:b,right:b+1,width:1,middle:b,center:v}}function ml(u,P){return{top:0,center:P/2,bottom:P,left:0,middle:u/2,right:u}}function ds(u,P,t,v){return{top:u[t.vertical]-P[v.vertical],left:u[t.horizontal]-P[v.horizontal]}}function Oi(u,P=0){if(u.targetEl===null||u.anchorEl===null||P>5)return;if(u.targetEl.offsetHeight===0||u.targetEl.offsetWidth===0){setTimeout(()=>{Oi(u,P+1)},10);return}const{targetEl:t,offset:v,anchorEl:b,anchorOrigin:f,selfOrigin:o,absoluteOffset:a,fit:n,cover:e,maxHeight:r,maxWidth:l}=u;if(Et.is.ios===!0&&window.visualViewport!==void 0){const N=document.body.style,{offsetLeft:q,offsetTop:D}=window.visualViewport;q!==cs&&(N.setProperty("--q-pe-left",q+"px"),cs=q),D!==fs&&(N.setProperty("--q-pe-top",D+"px"),fs=D)}const{scrollLeft:s,scrollTop:i}=t,d=a===void 0?hl(b,e===!0?[0,0]:v):pl(b,a,v);Object.assign(t.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:l,maxHeight:r,visibility:"visible"});const{offsetWidth:h,offsetHeight:c}=t,{elWidth:m,elHeight:p}=n===!0||e===!0?{elWidth:Math.max(d.width,h),elHeight:e===!0?Math.max(d.height,c):c}:{elWidth:h,elHeight:c};let x={maxWidth:l,maxHeight:r};(n===!0||e===!0)&&(x.minWidth=d.width+"px",e===!0&&(x.minHeight=d.height+"px")),Object.assign(t.style,x);const k=ml(m,p);let A=ds(d,k,f,o);if(a===void 0||v===void 0)Bn(A,d,k,f,o);else{const{top:N,left:q}=A;Bn(A,d,k,f,o);let D=!1;if(A.top!==N){D=!0;const F=2*v[1];d.center=d.top-=F,d.bottom-=F+2}if(A.left!==q){D=!0;const F=2*v[0];d.middle=d.left-=F,d.right-=F+2}D===!0&&(A=ds(d,k,f,o),Bn(A,d,k,f,o))}x={top:A.top+"px",left:A.left+"px"},A.maxHeight!==void 0&&(x.maxHeight=A.maxHeight+"px",d.height>A.maxHeight&&(x.minHeight=x.maxHeight)),A.maxWidth!==void 0&&(x.maxWidth=A.maxWidth+"px",d.width>A.maxWidth&&(x.minWidth=x.maxWidth)),Object.assign(t.style,x),t.scrollTop!==i&&(t.scrollTop=i),t.scrollLeft!==s&&(t.scrollLeft=s)}function Bn(u,P,t,v,b){const f=t.bottom,o=t.right,a=ln(),n=window.innerHeight-a,e=document.body.clientWidth;if(u.top<0||u.top+f>n)if(b.vertical==="center")u.top=P[v.vertical]>n/2?Math.max(0,n-f):0,u.maxHeight=Math.min(f,n);else if(P[v.vertical]>n/2){const r=Math.min(n,v.vertical==="center"?P.center:v.vertical===b.vertical?P.bottom:P.top);u.maxHeight=Math.min(f,r),u.top=Math.max(0,r-f)}else u.top=Math.max(0,v.vertical==="center"?P.center:v.vertical===b.vertical?P.top:P.bottom),u.maxHeight=Math.min(f,n-u.top);if(u.left<0||u.left+o>e)if(u.maxWidth=Math.min(o,e),b.horizontal==="middle")u.left=P[v.horizontal]>e/2?Math.max(0,e-o):0;else if(P[v.horizontal]>e/2){const r=Math.min(e,v.horizontal==="middle"?P.middle:v.horizontal===b.horizontal?P.right:P.left);u.maxWidth=Math.min(o,r),u.left=Math.max(0,r-u.maxWidth)}else u.left=Math.max(0,v.horizontal==="middle"?P.middle:v.horizontal===b.horizontal?P.left:P.right),u.maxWidth=Math.min(o,e-u.left)}const En=it({name:"QMenu",inheritAttrs:!1,props:{...co,...ki,...Bt,...Pr,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noEscDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:vn},self:{type:String,validator:vn},offset:{type:Array,validator:wo},scrollTarget:Cn,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...Ci,"click","escapeKey"],setup(u,{slots:P,emit:t,attrs:v}){let b=null,f,o,a;const n=C.getCurrentInstance(),{proxy:e}=n,{$q:r}=e,l=C.ref(null),s=C.ref(!1),i=C.computed(()=>u.persistent!==!0&&u.noRouteDismiss!==!0),d=Dt(u,r),{registerTick:h,removeTick:c}=Ai(),{registerTimeout:m}=Ri(),{transitionProps:p,transitionStyle:x}=Ti(u),{localScrollTarget:k,changeScrollEvent:A,unconfigureScrollTarget:N}=fo(u,H),{anchorEl:q,canShow:D}=Si({showing:s}),{hide:F}=Mi({showing:s,canShow:D,handleShow:E,handleHide:O,hideOnRouteChange:i,processOnMount:!0}),{showPortal:L,hidePortal:V,renderPortal:z}=Ei(n,l,I,"menu"),M={anchorEl:q,innerRef:l,onClickOutside(R){if(u.persistent!==!0&&s.value===!0)return F(R),(R.type==="touchstart"||R.target.classList.contains("q-dialog__backdrop"))&&_t(R),!0}},T=C.computed(()=>yn(u.anchor||(u.cover===!0?"center middle":"bottom start"),r.lang.rtl)),S=C.computed(()=>u.cover===!0?T.value:yn(u.self||"top start",r.lang.rtl)),g=C.computed(()=>(u.square===!0?" q-menu--square":"")+(d.value===!0?" q-menu--dark q-dark":"")),y=C.computed(()=>u.autoClose===!0?{onClick:U}:{}),w=C.computed(()=>s.value===!0&&u.persistent!==!0);C.watch(w,R=>{R===!0?(bo(B),yo(M)):(pn(B),gn(M))});function _(){Lr(()=>{let R=l.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 E(R){if(b=u.noRefocus===!1?document.activeElement:null,vo(X),L(),H(),f=void 0,R!==void 0&&(u.touchPosition||u.contextMenu)){const $=Nr(R);if($.left!==void 0){const{top:Y,left:J}=q.value.getBoundingClientRect();f={left:$.left-J,top:$.top-Y}}}o===void 0&&(o=C.watch(()=>r.screen.width+"|"+r.screen.height+"|"+u.self+"|"+u.anchor+"|"+r.lang.rtl,W)),u.noFocus!==!0&&document.activeElement.blur(),h(()=>{W(),u.noFocus!==!0&&_()}),m(()=>{r.platform.is.ios===!0&&(a=u.autoClose,l.value.click()),W(),L(!0),t("show",R)},u.transitionDuration)}function O(R){c(),V(),j(!0),b!==null&&(R===void 0||R.qClickOutside!==!0)&&(((R?.type.indexOf("key")===0?b.closest('[tabindex]:not([tabindex^="-"])'):void 0)||b).focus(),b=null),m(()=>{V(!0),t("hide",R)},u.transitionDuration)}function j(R){f=void 0,o!==void 0&&(o(),o=void 0),(R===!0||s.value===!0)&&(ri(X),N(),gn(M),pn(B)),R!==!0&&(b=null)}function H(){(q.value!==null||u.scrollTarget!==void 0)&&(k.value=Mn(q.value,u.scrollTarget),A(k.value,W))}function U(R){a!==!0?(po(e,R),t("click",R)):a=!1}function X(R){w.value===!0&&u.noFocus!==!0&&eo(l.value,R.target)!==!0&&_()}function B(R){u.noEscDismiss!==!0&&(t("escapeKey"),F(R))}function W(){Oi({targetEl:l.value,offset:u.offset,anchorEl:q.value,anchorOrigin:T.value,selfOrigin:S.value,absoluteOffset:f,fit:u.fit,cover:u.cover,maxHeight:u.maxHeight,maxWidth:u.maxWidth})}function I(){return C.h(C.Transition,p.value,()=>s.value===!0?C.h("div",{role:"menu",...v,ref:l,tabindex:-1,class:["q-menu q-position-engine scroll"+g.value,v.class],style:[v.style,x.value],...y.value},vt(P.default)):null)}return C.onBeforeUnmount(j),Object.assign(e,{focus:_,updatePosition:W}),z}});let Dn,Kr=0;const Tt=new Array(256);for(let u=0;u<256;u++)Tt[u]=(u+256).toString(16).substring(1);const bl=(()=>{const u=typeof crypto<"u"?crypto:typeof window<"u"?window.crypto||window.msCrypto:void 0;if(u!==void 0){if(u.randomBytes!==void 0)return u.randomBytes;if(u.getRandomValues!==void 0)return P=>{const t=new Uint8Array(P);return u.getRandomValues(t),t}}return P=>{const t=[];for(let v=P;v>0;v--)t.push(Math.floor(Math.random()*256));return t}})(),hs=4096;function ii(){(Dn===void 0||Kr+16>hs)&&(Kr=0,Dn=bl(hs));const u=Array.prototype.slice.call(Dn,Kr,Kr+=16);return u[6]=u[6]&15|64,u[8]=u[8]&63|128,Tt[u[0]]+Tt[u[1]]+Tt[u[2]]+Tt[u[3]]+"-"+Tt[u[4]]+Tt[u[5]]+"-"+Tt[u[6]]+Tt[u[7]]+"-"+Tt[u[8]]+Tt[u[9]]+"-"+Tt[u[10]]+Tt[u[11]]+Tt[u[12]]+Tt[u[13]]+Tt[u[14]]+Tt[u[15]]}function gl(u){return u??null}function ps(u,P){return u??(P===!0?`f_${ii()}`:null)}function vl({getValue:u,required:P=!0}={}){if(tr.value===!0){const t=u!==void 0?C.ref(gl(u())):C.ref(null);return P===!0&&t.value===null&&C.onMounted(()=>{t.value=`f_${ii()}`}),u!==void 0&&C.watch(u,v=>{t.value=ps(v,P)}),t}return u!==void 0?C.computed(()=>ps(u(),P)):C.ref(`f_${ii()}`)}const ms=/^on[A-Z]/;function yl(){const{attrs:u,vnode:P}=C.getCurrentInstance(),t={listeners:C.ref({}),attributes:C.ref({})};function v(){const b={},f={};for(const o in u)o!=="class"&&o!=="style"&&ms.test(o)===!1&&(b[o]=u[o]);for(const o in P.props)ms.test(o)===!0&&(f[o]=P.props[o]);t.attributes.value=b,t.listeners.value=f}return C.onBeforeUpdate(v),v(),t}const zr="_q_l_",_o="_q_pc_",xo="_q_fo_";function Rt(){}function wl({validate:u,resetValidation:P,requiresQForm:t}){const v=C.inject(xo,!1);if(v!==!1){const{props:b,proxy:f}=C.getCurrentInstance();Object.assign(f,{validate:u,resetValidation:P}),C.watch(()=>b.disable,o=>{o===!0?(typeof P=="function"&&P(),v.unbindComponent(f)):v.bindComponent(f)}),C.onMounted(()=>{b.disable!==!0&&v.bindComponent(f)}),C.onBeforeUnmount(()=>{b.disable!==!0&&v.unbindComponent(f)})}else t===!0&&console.error("Parent QForm not found on useFormChild()!")}const bs=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,gs=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,vs=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,Zr=/^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])\)$/,Gr=/^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)\)$/,Fn={date:u=>/^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(u),time:u=>/^([0-1]?\d|2[0-3]):[0-5]\d$/.test(u),fulltime:u=>/^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/.test(u),timeOrFulltime:u=>/^([0-1]?\d|2[0-3]):[0-5]\d(:[0-5]\d)?$/.test(u),email:u=>/^(([^<>()\[\]\\.,;:\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(u),hexColor:u=>bs.test(u),hexaColor:u=>gs.test(u),hexOrHexaColor:u=>vs.test(u),rgbColor:u=>Zr.test(u),rgbaColor:u=>Gr.test(u),rgbOrRgbaColor:u=>Zr.test(u)||Gr.test(u),hexOrRgbColor:u=>bs.test(u)||Zr.test(u),hexaOrRgbaColor:u=>gs.test(u)||Gr.test(u),anyColor:u=>vs.test(u)||Zr.test(u)||Gr.test(u)},_l=[!0,!1,"ondemand"],xl={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:u=>_l.includes(u)}};function Sl(u,P){const{props:t,proxy:v}=C.getCurrentInstance(),b=C.ref(!1),f=C.ref(null),o=C.ref(!1);wl({validate:h,resetValidation:d});let a=0,n;const e=C.computed(()=>t.rules!==void 0&&t.rules!==null&&t.rules.length!==0),r=C.computed(()=>t.disable!==!0&&e.value===!0&&P.value===!1),l=C.computed(()=>t.error===!0||b.value===!0),s=C.computed(()=>typeof t.errorMessage=="string"&&t.errorMessage.length!==0?t.errorMessage:f.value);C.watch(()=>t.modelValue,()=>{o.value=!0,r.value===!0&&t.lazyRules===!1&&c()});function i(){t.lazyRules!=="ondemand"&&r.value===!0&&o.value===!0&&c()}C.watch(()=>t.reactiveRules,m=>{m===!0?n===void 0&&(n=C.watch(()=>t.rules,i,{immediate:!0,deep:!0})):n!==void 0&&(n(),n=void 0)},{immediate:!0}),C.watch(()=>t.lazyRules,i),C.watch(u,m=>{m===!0?o.value=!0:r.value===!0&&t.lazyRules!=="ondemand"&&c()});function d(){a++,P.value=!1,o.value=!1,b.value=!1,f.value=null,c.cancel()}function h(m=t.modelValue){if(t.disable===!0||e.value===!1)return!0;const p=++a,x=P.value!==!0?()=>{o.value=!0}:()=>{},k=(N,q)=>{N===!0&&x(),b.value=N,f.value=q||null,P.value=!1},A=[];for(let N=0;N<t.rules.length;N++){const q=t.rules[N];let D;if(typeof q=="function"?D=q(m,Fn):typeof q=="string"&&Fn[q]!==void 0&&(D=Fn[q](m)),D===!1||typeof D=="string")return k(!0,D),!1;D!==!0&&D!==void 0&&A.push(D)}return A.length===0?(k(!1),!0):(P.value=!0,Promise.all(A).then(N=>{if(N===void 0||Array.isArray(N)===!1||N.length===0)return p===a&&k(!1),!0;const q=N.find(D=>D===!1||typeof D=="string");return p===a&&k(q!==void 0,q),q===void 0},N=>(p===a&&(console.error(N),k(!0)),!1)))}const c=xi(h,0);return C.onBeforeUnmount(()=>{n?.(),c.cancel()}),Object.assign(v,{resetValidation:d,validate:h}),Lt(v,"hasError",()=>l.value),{isDirtyModel:o,hasRules:e,hasError:l,errorMessage:s,validate:h,resetValidation:d}}function Dr(u){return u!=null&&(""+u).length!==0}const kl={...Bt,...xl,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},Tn={...kl,maxlength:[Number,String]},ji=["update:modelValue","clear","focus","blur"];function Ii({requiredForAttr:u=!0,tagProp:P,changeEvent:t=!1}={}){const{props:v,proxy:b}=C.getCurrentInstance(),f=Dt(v,b.$q),o=vl({required:u,getValue:()=>v.for});return{requiredForAttr:u,changeEvent:t,tag:P===!0?C.computed(()=>v.tag):{value:"label"},isDark:f,editable:C.computed(()=>v.disable!==!0&&v.readonly!==!0),innerLoading:C.ref(!1),focused:C.ref(!1),hasPopupOpen:!1,splitAttrs:yl(),targetUid:o,rootRef:C.ref(null),targetRef:C.ref(null),controlRef:C.ref(null)}}function Pi(u){const{props:P,emit:t,slots:v,attrs:b,proxy:f}=C.getCurrentInstance(),{$q:o}=f;let a=null;u.hasValue===void 0&&(u.hasValue=C.computed(()=>Dr(P.modelValue))),u.emitValue===void 0&&(u.emitValue=w=>{t("update:modelValue",w)}),u.controlEvents===void 0&&(u.controlEvents={onFocusin:F,onFocusout:L}),Object.assign(u,{clearValue:V,onControlFocusin:F,onControlFocusout:L,focus:q}),u.computedCounter===void 0&&(u.computedCounter=C.computed(()=>{if(P.counter!==!1){const w=typeof P.modelValue=="string"||typeof P.modelValue=="number"?(""+P.modelValue).length:Array.isArray(P.modelValue)===!0?P.modelValue.length:0,_=P.maxlength!==void 0?P.maxlength:P.maxValues;return w+(_!==void 0?" / "+_:"")}}));const{isDirtyModel:n,hasRules:e,hasError:r,errorMessage:l,resetValidation:s}=Sl(u.focused,u.innerLoading),i=u.floatingLabel!==void 0?C.computed(()=>P.stackLabel===!0||u.focused.value===!0||u.floatingLabel.value===!0):C.computed(()=>P.stackLabel===!0||u.focused.value===!0||u.hasValue.value===!0),d=C.computed(()=>P.bottomSlots===!0||P.hint!==void 0||e.value===!0||P.counter===!0||P.error!==null),h=C.computed(()=>P.filled===!0?"filled":P.outlined===!0?"outlined":P.borderless===!0?"borderless":P.standout?"standout":"standard"),c=C.computed(()=>`q-field row no-wrap items-start q-field--${h.value}`+(u.fieldClass!==void 0?` ${u.fieldClass.value}`:"")+(P.rounded===!0?" q-field--rounded":"")+(P.square===!0?" q-field--square":"")+(i.value===!0?" q-field--float":"")+(p.value===!0?" q-field--labeled":"")+(P.dense===!0?" q-field--dense":"")+(P.itemAligned===!0?" q-field--item-aligned q-item-type":"")+(u.isDark.value===!0?" q-field--dark":"")+(u.getControl===void 0?" q-field--auto-height":"")+(u.focused.value===!0?" q-field--focused":"")+(r.value===!0?" q-field--error":"")+(r.value===!0||u.focused.value===!0?" q-field--highlighted":"")+(P.hideBottomSpace!==!0&&d.value===!0?" q-field--with-bottom":"")+(P.disable===!0?" q-field--disabled":P.readonly===!0?" q-field--readonly":"")),m=C.computed(()=>"q-field__control relative-position row no-wrap"+(P.bgColor!==void 0?` bg-${P.bgColor}`:"")+(r.value===!0?" text-negative":typeof P.standout=="string"&&P.standout.length!==0&&u.focused.value===!0?` ${P.standout}`:P.color!==void 0?` text-${P.color}`:"")),p=C.computed(()=>P.labelSlot===!0||P.label!==void 0),x=C.computed(()=>"q-field__label no-pointer-events absolute ellipsis"+(P.labelColor!==void 0&&r.value!==!0?` text-${P.labelColor}`:"")),k=C.computed(()=>({id:u.targetUid.value,editable:u.editable.value,focused:u.focused.value,floatingLabel:i.value,modelValue:P.modelValue,emitValue:u.emitValue})),A=C.computed(()=>{const w={};return u.targetUid.value&&(w.for=u.targetUid.value),P.disable===!0&&(w["aria-disabled"]="true"),w});function N(){const w=document.activeElement;let _=u.targetRef?.value;_&&(w===null||w.id!==u.targetUid.value)&&(_.hasAttribute("tabindex")===!0||(_=_.querySelector("[tabindex]")),_!==w&&_?.focus({preventScroll:!0}))}function q(){Lr(N)}function D(){tl(N);const w=document.activeElement;w!==null&&u.rootRef.value.contains(w)&&w.blur()}function F(w){a!==null&&(clearTimeout(a),a=null),u.editable.value===!0&&u.focused.value===!1&&(u.focused.value=!0,t("focus",w))}function L(w,_){a!==null&&clearTimeout(a),a=setTimeout(()=>{a=null,!(document.hasFocus()===!0&&(u.hasPopupOpen===!0||u.controlRef===void 0||u.controlRef.value===null||u.controlRef.value.contains(document.activeElement)!==!1))&&(u.focused.value===!0&&(u.focused.value=!1,t("blur",w)),_?.())})}function V(w){_t(w),o.platform.is.mobile!==!0?(u.targetRef?.value||u.rootRef.value).focus():u.rootRef.value.contains(document.activeElement)===!0&&document.activeElement.blur(),P.type==="file"&&(u.inputRef.value.value=null),t("update:modelValue",null),u.changeEvent===!0&&t("change",null),t("clear",P.modelValue),C.nextTick(()=>{const _=n.value;s(),n.value=_})}function z(w){[13,32].includes(w.keyCode)&&V(w)}function M(){const w=[];return v.prepend!==void 0&&w.push(C.h("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:Ot},v.prepend())),w.push(C.h("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},T())),r.value===!0&&P.noErrorIcon===!1&&w.push(g("error",[C.h(kt,{name:o.iconSet.field.error,color:"negative"})])),P.loading===!0||u.innerLoading.value===!0?w.push(g("inner-loading-append",v.loading!==void 0?v.loading():[C.h(Js,{color:P.color})])):P.clearable===!0&&u.hasValue.value===!0&&u.editable.value===!0&&w.push(g("inner-clearable-append",[C.h(kt,{class:"q-field__focusable-action",name:P.clearIcon||o.iconSet.field.clear,tabindex:0,role:"button","aria-hidden":"false","aria-label":o.lang.label.clear,onKeyup:z,onClick:V})])),v.append!==void 0&&w.push(C.h("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:Ot},v.append())),u.getInnerAppend!==void 0&&w.push(g("inner-append",u.getInnerAppend())),u.getControlChild!==void 0&&w.push(u.getControlChild()),w}function T(){const w=[];return P.prefix!==void 0&&P.prefix!==null&&w.push(C.h("div",{class:"q-field__prefix no-pointer-events row items-center"},P.prefix)),u.getShadowControl!==void 0&&u.hasShadow.value===!0&&w.push(u.getShadowControl()),u.getControl!==void 0?w.push(u.getControl()):v.rawControl!==void 0?w.push(v.rawControl()):v.control!==void 0&&w.push(C.h("div",{ref:u.targetRef,class:"q-field__native row",tabindex:-1,...u.splitAttrs.attributes.value,"data-autofocus":P.autofocus===!0||void 0},v.control(k.value))),p.value===!0&&w.push(C.h("div",{class:x.value},vt(v.label,P.label))),P.suffix!==void 0&&P.suffix!==null&&w.push(C.h("div",{class:"q-field__suffix no-pointer-events row items-center"},P.suffix)),w.concat(vt(v.default))}function S(){let w,_;r.value===!0?l.value!==null?(w=[C.h("div",{role:"alert"},l.value)],_=`q--slot-error-${l.value}`):(w=vt(v.error),_="q--slot-error"):(P.hideHint!==!0||u.focused.value===!0)&&(P.hint!==void 0?(w=[C.h("div",P.hint)],_=`q--slot-hint-${P.hint}`):(w=vt(v.hint),_="q--slot-hint"));const E=P.counter===!0||v.counter!==void 0;if(P.hideBottomSpace===!0&&E===!1&&w===void 0)return;const O=C.h("div",{key:_,class:"q-field__messages col"},w);return C.h("div",{class:"q-field__bottom row items-start q-field__bottom--"+(P.hideBottomSpace!==!0?"animated":"stale"),onClick:Ot},[P.hideBottomSpace===!0?O:C.h(C.Transition,{name:"q-transition--field-message"},()=>O),E===!0?C.h("div",{class:"q-field__counter"},v.counter!==void 0?v.counter():u.computedCounter.value):null])}function g(w,_){return _===null?null:C.h("div",{key:w,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},_)}let y=!1;return C.onDeactivated(()=>{y=!0}),C.onActivated(()=>{y===!0&&P.autofocus===!0&&f.focus()}),P.autofocus===!0&&C.onMounted(()=>{f.focus()}),C.onBeforeUnmount(()=>{a!==null&&clearTimeout(a)}),Object.assign(f,{focus:q,blur:D}),function(){const _=u.getControl===void 0&&v.control===void 0?{...u.splitAttrs.attributes.value,"data-autofocus":P.autofocus===!0||void 0,...A.value}:A.value;return C.h(u.tag.value,{ref:u.rootRef,class:[c.value,b.class],style:b.style,..._},[v.before!==void 0?C.h("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:Ot},v.before()):null,C.h("div",{class:"q-field__inner relative-position col self-stretch"},[C.h("div",{ref:u.controlRef,class:m.value,tabindex:-1,...u.controlEvents},M()),d.value===!0?S():null]),v.after!==void 0?C.h("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:Ot},v.after()):null])}}const Cl=it({name:"QField",inheritAttrs:!1,props:{...Tn,tag:{type:String,default:"label"}},emits:ji,setup(){return Pi(Ii({tagProp:!0}))}}),Ml={xs:8,sm:10,md:14,lg:20,xl:24},El=it({name:"QChip",props:{...Bt,...Cr,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(u,{slots:P,emit:t}){const{proxy:{$q:v}}=C.getCurrentInstance(),b=Dt(u,v),f=Mr(u,Ml),o=C.computed(()=>u.selected===!0||u.icon!==void 0),a=C.computed(()=>u.selected===!0?u.iconSelected||v.iconSet.chip.selected:u.icon),n=C.computed(()=>u.iconRemove||v.iconSet.chip.remove),e=C.computed(()=>u.disable===!1&&(u.clickable===!0||u.selected!==null)),r=C.computed(()=>{const c=u.outline===!0&&u.color||u.textColor;return"q-chip row inline no-wrap items-center"+(u.outline===!1&&u.color!==void 0?` bg-${u.color}`:"")+(c?` text-${c} q-chip--colored`:"")+(u.disable===!0?" disabled":"")+(u.dense===!0?" q-chip--dense":"")+(u.outline===!0?" q-chip--outline":"")+(u.selected===!0?" q-chip--selected":"")+(e.value===!0?" q-chip--clickable cursor-pointer non-selectable q-hoverable":"")+(u.square===!0?" q-chip--square":"")+(b.value===!0?" q-chip--dark q-dark":"")}),l=C.computed(()=>{const c=u.disable===!0?{tabindex:-1,"aria-disabled":"true"}:{tabindex:u.tabindex||0},m={...c,role:"button","aria-hidden":"false","aria-label":u.removeAriaLabel||v.lang.label.remove};return{chip:c,remove:m}});function s(c){c.keyCode===13&&i(c)}function i(c){u.disable||(t("update:selected",!u.selected),t("click",c))}function d(c){(c.keyCode===void 0||c.keyCode===13)&&(_t(c),u.disable===!1&&(t("update:modelValue",!1),t("remove")))}function h(){const c=[];e.value===!0&&c.push(C.h("div",{class:"q-focus-helper"})),o.value===!0&&c.push(C.h(kt,{class:"q-chip__icon q-chip__icon--left",name:a.value}));const m=u.label!==void 0?[C.h("div",{class:"ellipsis"},[u.label])]:void 0;return c.push(C.h("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},Vs(P.default,m))),u.iconRight&&c.push(C.h(kt,{class:"q-chip__icon q-chip__icon--right",name:u.iconRight})),u.removable===!0&&c.push(C.h(kt,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:n.value,...l.value.remove,onClick:d,onKeyup:d})),c}return()=>{if(u.modelValue===!1)return;const c={class:r.value,style:f.value};return e.value===!0&&Object.assign(c,l.value.chip,{onClick:i,onKeyup:s}),Qo("div",c,h(),"ripple",u.ripple!==!1&&u.disable!==!0,()=>[[to,u.ripple]])}}}),si=it({name:"QItem",props:{...Bt,...Ks,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(u,{slots:P,emit:t}){const{proxy:{$q:v}}=C.getCurrentInstance(),b=Dt(u,v),{hasLink:f,linkAttrs:o,linkClass:a,linkTag:n,navigateOnClick:e}=bi(),r=C.ref(null),l=C.ref(null),s=C.computed(()=>u.clickable===!0||f.value===!0||u.tag==="label"),i=C.computed(()=>u.disable!==!0&&s.value===!0),d=C.computed(()=>"q-item q-item-type row no-wrap"+(u.dense===!0?" q-item--dense":"")+(b.value===!0?" q-item--dark":"")+(f.value===!0&&u.active===null?a.value:u.active===!0?` q-item--active${u.activeClass!==void 0?` ${u.activeClass}`:""}`:"")+(u.disable===!0?" disabled":"")+(i.value===!0?" q-item--clickable q-link cursor-pointer "+(u.manualFocus===!0?"q-manual-focusable":"q-focusable q-hoverable")+(u.focused===!0?" q-manual-focusable--focused":""):"")),h=C.computed(()=>u.insetLevel===void 0?null:{["padding"+(v.lang.rtl===!0?"Right":"Left")]:16+u.insetLevel*56+"px"});function c(x){i.value===!0&&(l.value!==null&&x.qAvoidFocus!==!0&&(x.qKeyEvent!==!0&&document.activeElement===r.value?l.value.focus():document.activeElement===l.value&&r.value.focus()),e(x))}function m(x){if(i.value===!0&&er(x,[13,32])===!0){_t(x),x.qKeyEvent=!0;const k=new MouseEvent("click",x);k.qKeyEvent=!0,r.value.dispatchEvent(k)}t("keyup",x)}function p(){const x=hi(P.default,[]);return i.value===!0&&x.unshift(C.h("div",{class:"q-focus-helper",tabindex:-1,ref:l})),x}return()=>{const x={ref:r,class:d.value,style:h.value,role:"listitem",onClick:c,onKeyup:m};return i.value===!0?(x.tabindex=u.tabindex||"0",Object.assign(x,o.value)):s.value===!0&&(x["aria-disabled"]="true"),C.h(n.value,x,p())}}}),oi=it({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(u,{slots:P}){const t=C.computed(()=>`q-item__section column q-item__section--${u.avatar===!0||u.side===!0||u.thumbnail===!0?"side":"main"}`+(u.top===!0?" q-item__section--top justify-start":" justify-center")+(u.avatar===!0?" q-item__section--avatar":"")+(u.thumbnail===!0?" q-item__section--thumbnail":"")+(u.noWrap===!0?" q-item__section--nowrap":""));return()=>C.h("div",{class:t.value},vt(P.default))}}),Tl=it({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(u,{slots:P}){const t=C.computed(()=>parseInt(u.lines,10)),v=C.computed(()=>"q-item__label"+(u.overline===!0?" q-item__label--overline text-overline":"")+(u.caption===!0?" q-item__label--caption text-caption":"")+(u.header===!0?" q-item__label--header":"")+(t.value===1?" ellipsis":"")),b=C.computed(()=>u.lines!==void 0&&t.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":t.value}:null);return()=>C.h("div",{style:b.value,class:v.value},vt(P.default))}});function Al(u,P,t){function v(){}return C.onBeforeUnmount(()=>{u.value===!0&&void 0}),{removeFromHistory:v,addToHistory(){}}}let Ar=0,Ln,zn,jr,qn=!1,ys,ws,_s,ir=null;function Rl(u){Ol(u)&&_t(u)}function Ol(u){if(u.target===document.body||u.target.classList.contains("q-layout__backdrop"))return!0;const P=ya(u),t=u.shiftKey&&!u.deltaX,v=!t&&Math.abs(u.deltaX)<=Math.abs(u.deltaY),b=t||v?u.deltaY:u.deltaX;for(let f=0;f<P.length;f++){const o=P[f];if(Wa(o,v))return v?b<0&&o.scrollTop===0?!0:b>0&&o.scrollTop+o.clientHeight===o.scrollHeight:b<0&&o.scrollLeft===0?!0:b>0&&o.scrollLeft+o.clientWidth===o.scrollWidth}return!0}function xs(u){u.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function Qr(u){qn!==!0&&(qn=!0,requestAnimationFrame(()=>{qn=!1;const{height:P}=u.target,{clientHeight:t,scrollTop:v}=document.scrollingElement;(jr===void 0||P!==window.innerHeight)&&(jr=t-P,document.scrollingElement.scrollTop=v),v>jr&&(document.scrollingElement.scrollTop-=Math.ceil((v-jr)/8))}))}function Ss(u){const P=document.body,t=window.visualViewport!==void 0;if(u==="add"){const{overflowY:v,overflowX:b}=window.getComputedStyle(P);Ln=wi(window),zn=yi(window),ys=P.style.left,ws=P.style.top,_s=window.location.href,P.style.left=`-${Ln}px`,P.style.top=`-${zn}px`,b!=="hidden"&&(b==="scroll"||P.scrollWidth>window.innerWidth)&&P.classList.add("q-body--force-scrollbar-x"),v!=="hidden"&&(v==="scroll"||P.scrollHeight>window.innerHeight)&&P.classList.add("q-body--force-scrollbar-y"),P.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,Et.is.ios===!0&&(t===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",Qr,St.passiveCapture),window.visualViewport.addEventListener("scroll",Qr,St.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",xs,St.passiveCapture))}Et.is.desktop===!0&&Et.is.mac===!0&&window[`${u}EventListener`]("wheel",Rl,St.notPassive),u==="remove"&&(Et.is.ios===!0&&(t===!0?(window.visualViewport.removeEventListener("resize",Qr,St.passiveCapture),window.visualViewport.removeEventListener("scroll",Qr,St.passiveCapture)):window.removeEventListener("scroll",xs,St.passiveCapture)),P.classList.remove("q-body--prevent-scroll"),P.classList.remove("q-body--force-scrollbar-x"),P.classList.remove("q-body--force-scrollbar-y"),document.qScrollPrevented=!1,P.style.left=ys,P.style.top=ws,window.location.href===_s&&window.scrollTo(Ln,zn),jr=void 0)}function jl(u){let P="add";if(u===!0){if(Ar++,ir!==null){clearTimeout(ir),ir=null;return}if(Ar>1)return}else{if(Ar===0||(Ar--,Ar>0))return;if(P="remove",Et.is.ios===!0&&Et.is.nativeMobile===!0){ir!==null&&clearTimeout(ir),ir=setTimeout(()=>{Ss(P),ir=null},100);return}}Ss(P)}function Il(){let u;return{preventBodyScroll(P){P!==u&&(u!==void 0||P===!0)&&(u=P,jl(P))}}}let Jr=0;const Pl={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"},ks={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},So=it({name:"QDialog",inheritAttrs:!1,props:{...ki,...Pr,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:u=>["standard","top","bottom","left","right"].includes(u)}},emits:[...Ci,"shake","click","escapeKey"],setup(u,{slots:P,emit:t,attrs:v}){const b=C.getCurrentInstance(),f=C.ref(null),o=C.ref(!1),a=C.ref(!1);let n=null,e=null,r,l;const s=C.computed(()=>u.persistent!==!0&&u.noRouteDismiss!==!0&&u.seamless!==!0),{preventBodyScroll:i}=Il(),{registerTimeout:d}=Ri(),{registerTick:h,removeTick:c}=Ai(),{transitionProps:m,transitionStyle:p}=Ti(u,()=>ks[u.position][0],()=>ks[u.position][1]),x=C.computed(()=>p.value+(u.backdropFilter!==void 0?`;backdrop-filter:${u.backdropFilter};-webkit-backdrop-filter:${u.backdropFilter}`:"")),{showPortal:k,hidePortal:A,portalIsAccessible:N,renderPortal:q}=Ei(b,f,H,"dialog"),{hide:D}=Mi({showing:o,hideOnRouteChange:s,handleShow:M,handleHide:T,processOnMount:!0});Al(o);const F=C.computed(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${u.maximized===!0?"maximized":"minimized"} q-dialog__inner--${u.position} ${Pl[u.position]}`+(a.value===!0?" q-dialog__inner--animating":"")+(u.fullWidth===!0?" q-dialog__inner--fullwidth":"")+(u.fullHeight===!0?" q-dialog__inner--fullheight":"")+(u.square===!0?" q-dialog__inner--square":"")),L=C.computed(()=>o.value===!0&&u.seamless!==!0),V=C.computed(()=>u.autoClose===!0?{onClick:E}:{}),z=C.computed(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${L.value===!0?"modal":"seamless"}`,v.class]);C.watch(()=>u.maximized,U=>{o.value===!0&&_(U)}),C.watch(L,U=>{i(U),U===!0?(vo(j),bo(y)):(ri(j),pn(y))});function M(U){e=u.noRefocus===!1&&document.activeElement!==null?document.activeElement:null,_(u.maximized),k(),a.value=!0,u.noFocus!==!0?(document.activeElement?.blur(),h(S)):c(),d(()=>{if(b.proxy.$q.platform.is.ios===!0){if(u.seamless!==!0&&document.activeElement){const{top:X,bottom:B}=document.activeElement.getBoundingClientRect(),{innerHeight:W}=window,I=window.visualViewport!==void 0?window.visualViewport.height:W;X>0&&B>I/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-I,B>=W?1/0:Math.ceil(document.scrollingElement.scrollTop+B-I/2))),document.activeElement.scrollIntoView()}l=!0,f.value.click(),l=!1}k(!0),a.value=!1,t("show",U)},u.transitionDuration)}function T(U){c(),w(!0),a.value=!0,A(),e!==null&&(((U?.type.indexOf("key")===0?e.closest('[tabindex]:not([tabindex^="-"])'):void 0)||e).focus(),e=null),d(()=>{A(!0),a.value=!1,t("hide",U)},u.transitionDuration)}function S(U){Lr(()=>{let X=f.value;if(X!==null){if(U!==void 0){const B=X.querySelector(U);if(B!==null){B.focus({preventScroll:!0});return}}X.contains(document.activeElement)!==!0&&(X=X.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||X.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||X.querySelector("[autofocus], [data-autofocus]")||X,X.focus({preventScroll:!0}))}})}function g(U){U&&typeof U.focus=="function"?U.focus({preventScroll:!0}):S(),t("shake");const X=f.value;X!==null&&(X.classList.remove("q-animate--scale"),X.classList.add("q-animate--scale"),n!==null&&clearTimeout(n),n=setTimeout(()=>{n=null,f.value!==null&&(X.classList.remove("q-animate--scale"),S())},170))}function y(){u.seamless!==!0&&(u.persistent===!0||u.noEscDismiss===!0?u.maximized!==!0&&u.noShake!==!0&&g():(t("escapeKey"),D()))}function w(U){n!==null&&(clearTimeout(n),n=null),(U===!0||o.value===!0)&&(_(!1),u.seamless!==!0&&(i(!1),ri(j),pn(y))),U!==!0&&(e=null)}function _(U){U===!0?r!==!0&&(Jr<1&&document.body.classList.add("q-body--dialog"),Jr++,r=!0):r===!0&&(Jr<2&&document.body.classList.remove("q-body--dialog"),Jr--,r=!1)}function E(U){l!==!0&&(D(U),t("click",U))}function O(U){u.persistent!==!0&&u.noBackdropDismiss!==!0?D(U):u.noShake!==!0&&g()}function j(U){u.allowFocusOutside!==!0&&N.value===!0&&eo(f.value,U.target)!==!0&&S('[tabindex]:not([tabindex="-1"])')}Object.assign(b.proxy,{focus:S,shake:g,__updateRefocusTarget(U){e=U||null}}),C.onBeforeUnmount(w);function H(){return C.h("div",{role:"dialog","aria-modal":L.value===!0?"true":"false",...v,class:z.value},[C.h(C.Transition,{name:"q-transition--fade",appear:!0},()=>L.value===!0?C.h("div",{class:"q-dialog__backdrop fixed-full",style:x.value,"aria-hidden":"true",tabindex:-1,onClick:O}):null),C.h(C.Transition,m.value,()=>o.value===!0?C.h("div",{ref:f,class:F.value,style:p.value,tabindex:-1,...V.value},vt(P.default)):null)])}return q}});let wn=!1;{const u=document.createElement("div");u.setAttribute("dir","rtl"),Object.assign(u.style,{width:"1px",height:"1px",overflow:"auto"});const P=document.createElement("div");Object.assign(P.style,{width:"1000px",height:"1px"}),document.body.appendChild(u),u.appendChild(P),u.scrollLeft=-1e3,wn=u.scrollLeft>=0,u.remove()}const qt=1e3,Nl=["start","center","end","start-force","center-force","end-force"],ko=Array.prototype.filter,Bl=window.getComputedStyle(document.body).overflowAnchor===void 0?Sn:function(u,P){u!==null&&(u._qOverflowAnimationFrame!==void 0&&cancelAnimationFrame(u._qOverflowAnimationFrame),u._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(u===null)return;u._qOverflowAnimationFrame=void 0;const t=u.children||[];ko.call(t,b=>b.dataset&&b.dataset.qVsAnchor!==void 0).forEach(b=>{delete b.dataset.qVsAnchor});const v=t[P];v?.dataset&&(v.dataset.qVsAnchor="")}))};function xr(u,P){return u+P}function $n(u,P,t,v,b,f,o,a){const n=u===window?document.scrollingElement||document.documentElement:u,e=b===!0?"offsetWidth":"offsetHeight",r={scrollStart:0,scrollViewSize:-o-a,scrollMaxSize:0,offsetStart:-o,offsetEnd:-a};if(b===!0?(u===window?(r.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,r.scrollViewSize+=document.documentElement.clientWidth):(r.scrollStart=n.scrollLeft,r.scrollViewSize+=n.clientWidth),r.scrollMaxSize=n.scrollWidth,f===!0&&(r.scrollStart=(wn===!0?r.scrollMaxSize-r.scrollViewSize:0)-r.scrollStart)):(u===window?(r.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,r.scrollViewSize+=document.documentElement.clientHeight):(r.scrollStart=n.scrollTop,r.scrollViewSize+=n.clientHeight),r.scrollMaxSize=n.scrollHeight),t!==null)for(let l=t.previousElementSibling;l!==null;l=l.previousElementSibling)l.classList.contains("q-virtual-scroll--skip")===!1&&(r.offsetStart+=l[e]);if(v!==null)for(let l=v.nextElementSibling;l!==null;l=l.nextElementSibling)l.classList.contains("q-virtual-scroll--skip")===!1&&(r.offsetEnd+=l[e]);if(P!==u){const l=n.getBoundingClientRect(),s=P.getBoundingClientRect();b===!0?(r.offsetStart+=s.left-l.left,r.offsetEnd-=s.width):(r.offsetStart+=s.top-l.top,r.offsetEnd-=s.height),u!==window&&(r.offsetStart+=r.scrollStart),r.offsetEnd+=r.scrollMaxSize-r.offsetStart}return r}function Cs(u,P,t,v){P==="end"&&(P=(u===window?document.body:u)[t===!0?"scrollWidth":"scrollHeight"]),u===window?t===!0?(v===!0&&(P=(wn===!0?document.body.scrollWidth-document.documentElement.clientWidth:0)-P),window.scrollTo(P,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,P):t===!0?(v===!0&&(P=(wn===!0?u.scrollWidth-u.offsetWidth:0)-P),u.scrollLeft=P):u.scrollTop=P}function Rr(u,P,t,v){if(t>=v)return 0;const b=P.length,f=Math.floor(t/qt),o=Math.floor((v-1)/qt)+1;let a=u.slice(f,o).reduce(xr,0);return t%qt!==0&&(a-=P.slice(f*qt,t).reduce(xr,0)),v%qt!==0&&v!==b&&(a-=P.slice(v,o*qt).reduce(xr,0)),a}const Co={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]},Mo=Object.keys(Co),ai={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,...Co};function Eo({virtualScrollLength:u,getVirtualScrollTarget:P,getVirtualScrollEl:t,virtualScrollItemSizeComputed:v}){const b=C.getCurrentInstance(),{props:f,emit:o,proxy:a}=b,{$q:n}=a;let e,r,l,s=[],i;const d=C.ref(0),h=C.ref(0),c=C.ref({}),m=C.ref(null),p=C.ref(null),x=C.ref(null),k=C.ref({from:0,to:0}),A=C.computed(()=>f.tableColspan!==void 0?f.tableColspan:100);v===void 0&&(v=C.computed(()=>f.virtualScrollItemSize));const N=C.computed(()=>v.value+";"+f.virtualScrollHorizontal),q=C.computed(()=>N.value+";"+f.virtualScrollSliceRatioBefore+";"+f.virtualScrollSliceRatioAfter);C.watch(q,()=>{g()}),C.watch(N,D);function D(){S(r,!0)}function F(O){S(O===void 0?r:O)}function L(O,j){const H=P();if(H==null||H.nodeType===8)return;const U=$n(H,t(),m.value,p.value,f.virtualScrollHorizontal,n.lang.rtl,f.virtualScrollStickySizeStart,f.virtualScrollStickySizeEnd);l!==U.scrollViewSize&&g(U.scrollViewSize),z(H,U,Math.min(u.value-1,Math.max(0,parseInt(O,10)||0)),0,Nl.indexOf(j)!==-1?j:r!==-1&&O>r?"end":"start")}function V(){const O=P();if(O==null||O.nodeType===8)return;const j=$n(O,t(),m.value,p.value,f.virtualScrollHorizontal,n.lang.rtl,f.virtualScrollStickySizeStart,f.virtualScrollStickySizeEnd),H=u.value-1,U=j.scrollMaxSize-j.offsetStart-j.offsetEnd-h.value;if(e===j.scrollStart)return;if(j.scrollMaxSize<=0){z(O,j,0,0);return}l!==j.scrollViewSize&&g(j.scrollViewSize),M(k.value.from);const X=Math.floor(j.scrollMaxSize-Math.max(j.scrollViewSize,j.offsetEnd)-Math.min(i[H],j.scrollViewSize/2));if(X>0&&Math.ceil(j.scrollStart)>=X){z(O,j,H,j.scrollMaxSize-j.offsetEnd-s.reduce(xr,0));return}let B=0,W=j.scrollStart-j.offsetStart,I=W;if(W<=U&&W+j.scrollViewSize>=d.value)W-=d.value,B=k.value.from,I=W;else for(let R=0;W>=s[R]&&B<H;R++)W-=s[R],B+=qt;for(;W>0&&B<H;)W-=i[B],W>-j.scrollViewSize?(B++,I=W):I=i[B]+W;z(O,j,B,I)}function z(O,j,H,U,X){const B=typeof X=="string"&&X.indexOf("-force")!==-1,W=B===!0?X.replace("-force",""):X,I=W!==void 0?W:"start";let R=Math.max(0,H-c.value[I]),$=R+c.value.total;$>u.value&&($=u.value,R=Math.max(0,$-c.value.total)),e=j.scrollStart;const Y=R!==k.value.from||$!==k.value.to;if(Y===!1&&W===void 0){w(H);return}const{activeElement:J}=document,Z=x.value;Y===!0&&Z!==null&&Z!==J&&Z.contains(J)===!0&&(Z.addEventListener("focusout",T),setTimeout(()=>{Z?.removeEventListener("focusout",T)})),Bl(Z,H-R);const ee=W!==void 0?i.slice(R,H).reduce(xr,0):0;if(Y===!0){const ae=$>=k.value.from&&R<=k.value.to?k.value.to:$;k.value={from:R,to:ae},d.value=Rr(s,i,0,R),h.value=Rr(s,i,$,u.value),requestAnimationFrame(()=>{k.value.to!==$&&e===j.scrollStart&&(k.value={from:k.value.from,to:$},h.value=Rr(s,i,$,u.value))})}requestAnimationFrame(()=>{if(e!==j.scrollStart)return;Y===!0&&M(R);const ae=i.slice(R,H).reduce(xr,0),se=ae+j.offsetStart+d.value,G=se+i[H];let ne=se+U;if(W!==void 0){const ie=ae-ee,fe=j.scrollStart+ie;ne=B!==!0&&fe<se&&G<fe+j.scrollViewSize?fe:W==="end"?G-j.scrollViewSize:se-(W==="start"?0:Math.round((j.scrollViewSize-i[H])/2))}e=ne,Cs(O,ne,f.virtualScrollHorizontal,n.lang.rtl),w(H)})}function M(O){const j=x.value;if(j){const H=ko.call(j.children,R=>R.classList&&R.classList.contains("q-virtual-scroll--skip")===!1),U=H.length,X=f.virtualScrollHorizontal===!0?R=>R.getBoundingClientRect().width:R=>R.offsetHeight;let B=O,W,I;for(let R=0;R<U;){for(W=X(H[R]),R++;R<U&&H[R].classList.contains("q-virtual-scroll--with-prev")===!0;)W+=X(H[R]),R++;I=W-i[B],I!==0&&(i[B]+=I,s[Math.floor(B/qt)]+=I),B++}}}function T(){x.value?.focus()}function S(O,j){const H=1*v.value;(j===!0||Array.isArray(i)===!1)&&(i=[]);const U=i.length;i.length=u.value;for(let B=u.value-1;B>=U;B--)i[B]=H;const X=Math.floor((u.value-1)/qt);s=[];for(let B=0;B<=X;B++){let W=0;const I=Math.min((B+1)*qt,u.value);for(let R=B*qt;R<I;R++)W+=i[R];s.push(W)}r=-1,e=void 0,d.value=Rr(s,i,0,k.value.from),h.value=Rr(s,i,k.value.to,u.value),O>=0?(M(k.value.from),C.nextTick(()=>{L(O)})):_()}function g(O){if(O===void 0&&typeof window<"u"){const W=P();W!=null&&W.nodeType!==8&&(O=$n(W,t(),m.value,p.value,f.virtualScrollHorizontal,n.lang.rtl,f.virtualScrollStickySizeStart,f.virtualScrollStickySizeEnd).scrollViewSize)}l=O;const j=parseFloat(f.virtualScrollSliceRatioBefore)||0,H=parseFloat(f.virtualScrollSliceRatioAfter)||0,U=1+j+H,X=O===void 0||O<=0?1:Math.ceil(O/v.value),B=Math.max(1,X,Math.ceil((f.virtualScrollSliceSize>0?f.virtualScrollSliceSize:10)/U));c.value={total:Math.ceil(B*U),start:Math.ceil(B*j),center:Math.ceil(B*(.5+j)),end:Math.ceil(B*(1+j)),view:X}}function y(O,j){const H=f.virtualScrollHorizontal===!0?"width":"height",U={["--q-virtual-scroll-item-"+H]:v.value+"px"};return[O==="tbody"?C.h(O,{class:"q-virtual-scroll__padding",key:"before",ref:m},[C.h("tr",[C.h("td",{style:{[H]:`${d.value}px`,...U},colspan:A.value})])]):C.h(O,{class:"q-virtual-scroll__padding",key:"before",ref:m,style:{[H]:`${d.value}px`,...U}}),C.h(O,{class:"q-virtual-scroll__content",key:"content",ref:x,tabindex:-1},j.flat()),O==="tbody"?C.h(O,{class:"q-virtual-scroll__padding",key:"after",ref:p},[C.h("tr",[C.h("td",{style:{[H]:`${h.value}px`,...U},colspan:A.value})])]):C.h(O,{class:"q-virtual-scroll__padding",key:"after",ref:p,style:{[H]:`${h.value}px`,...U}})]}function w(O){r!==O&&(f.onVirtualScroll!==void 0&&o("virtualScroll",{index:O,from:k.value.from,to:k.value.to-1,direction:O<r?"decrease":"increase",ref:a}),r=O)}g();const _=xi(V,n.platform.is.ios===!0?120:35);C.onBeforeMount(()=>{g()});let E=!1;return C.onDeactivated(()=>{E=!0}),C.onActivated(()=>{if(E!==!0)return;const O=P();e!==void 0&&O!==void 0&&O!==null&&O.nodeType!==8?Cs(O,e,f.virtualScrollHorizontal,n.lang.rtl):L(r)}),C.onBeforeUnmount(()=>{_.cancel()}),Object.assign(a,{scrollTo:L,reset:D,refresh:F}),{virtualScrollSliceRange:k,virtualScrollSliceSizeComputed:c,setVirtualScrollSize:g,onVirtualScrollEvt:_,localResetVirtualScroll:S,padVirtualScroll:y,scrollTo:L,reset:D,refresh:F}}const Dl=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,Fl=/[\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,Ll=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,zl=/[a-z0-9_ -]$/i;function To(u){return function(t){if(t.type==="compositionend"||t.type==="change"){if(t.target.qComposing!==!0)return;t.target.qComposing=!1,u(t)}else t.type==="compositionupdate"&&t.target.qComposing!==!0&&typeof t.data=="string"&&(Et.is.firefox===!0?zl.test(t.data)===!1:Dl.test(t.data)===!0||Fl.test(t.data)===!0||Ll.test(t.data)===!0)===!0&&(t.target.qComposing=!0)}}function Qt(u,P){if(u===P)return!0;if(u!==null&&P!==null&&typeof u=="object"&&typeof P=="object"){if(u.constructor!==P.constructor)return!1;let t,v;if(u.constructor===Array){if(t=u.length,t!==P.length)return!1;for(v=t;v--!==0;)if(Qt(u[v],P[v])!==!0)return!1;return!0}if(u.constructor===Map){if(u.size!==P.size)return!1;let f=u.entries();for(v=f.next();v.done!==!0;){if(P.has(v.value[0])!==!0)return!1;v=f.next()}for(f=u.entries(),v=f.next();v.done!==!0;){if(Qt(v.value[1],P.get(v.value[0]))!==!0)return!1;v=f.next()}return!0}if(u.constructor===Set){if(u.size!==P.size)return!1;const f=u.entries();for(v=f.next();v.done!==!0;){if(P.has(v.value[0])!==!0)return!1;v=f.next()}return!0}if(u.buffer!=null&&u.buffer.constructor===ArrayBuffer){if(t=u.length,t!==P.length)return!1;for(v=t;v--!==0;)if(u[v]!==P[v])return!1;return!0}if(u.constructor===RegExp)return u.source===P.source&&u.flags===P.flags;if(u.valueOf!==Object.prototype.valueOf)return u.valueOf()===P.valueOf();if(u.toString!==Object.prototype.toString)return u.toString()===P.toString();const b=Object.keys(u).filter(f=>u[f]!==void 0);if(t=b.length,t!==Object.keys(P).filter(f=>P[f]!==void 0).length)return!1;for(v=t;v--!==0;){const f=b[v];if(Qt(u[f],P[f])!==!0)return!1}return!0}return u!==u&&P!==P}function Ao(u){return u!==null&&typeof u=="object"&&Array.isArray(u)!==!0}function _n(u){return Object.prototype.toString.call(u)==="[object Date]"}function li(u){return typeof u=="number"&&isFinite(u)}const Ms=u=>["add","add-unique","toggle"].includes(u),ql=".*+?^${}()|[]\\",$l=Object.keys(Tn);function Vn(u,P){if(typeof u=="function")return u;const t=u!==void 0?u:P;return v=>v!==null&&typeof v=="object"&&t in v?v[t]:v}const Ni=it({name:"QSelect",inheritAttrs:!1,props:{...ai,...kn,...Tn,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:Ms},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:u=>["default","menu","dialog"].includes(u),default:"default"},virtualScrollItemSize:ai.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...ji,"add","remove","inputValue","keyup","keypress","keydown","popupShow","popupHide","filterAbort"],setup(u,{slots:P,emit:t}){const{proxy:v}=C.getCurrentInstance(),{$q:b}=v,f=C.ref(!1),o=C.ref(!1),a=C.ref(-1),n=C.ref(""),e=C.ref(!1),r=C.ref(!1);let l=null,s=null,i,d,h,c=null,m,p,x,k;const A=C.ref(null),N=C.ref(null),q=C.ref(null),D=C.ref(null),F=C.ref(null),L=no(u),V=To(he),z=C.computed(()=>Array.isArray(u.options)?u.options.length:0),M=C.computed(()=>u.virtualScrollItemSize===void 0?u.optionsDense===!0?24:48:u.virtualScrollItemSize),{virtualScrollSliceRange:T,virtualScrollSliceSizeComputed:S,localResetVirtualScroll:g,padVirtualScroll:y,onVirtualScrollEvt:w,scrollTo:_,setVirtualScrollSize:E}=Eo({virtualScrollLength:z,getVirtualScrollTarget:rt,getVirtualScrollEl:Ue,virtualScrollItemSizeComputed:M}),O=Ii(),j=C.computed(()=>{const oe=u.mapOptions===!0&&u.multiple!==!0,Ne=u.modelValue!==void 0&&(u.modelValue!==null||oe===!0)?u.multiple===!0&&Array.isArray(u.modelValue)?u.modelValue:[u.modelValue]:[];if(u.mapOptions===!0&&Array.isArray(u.options)===!0){const Q=u.mapOptions===!0&&i!==void 0?i:[],ue=Ne.map(ve=>Pe(ve,Q));return u.modelValue===null&&oe===!0?ue.filter(ve=>ve!==null):ue}return Ne}),H=C.computed(()=>{const oe={};return $l.forEach(Ne=>{const Q=u[Ne];Q!==void 0&&(oe[Ne]=Q)}),oe}),U=C.computed(()=>u.optionsDark===null?O.isDark.value:u.optionsDark),X=C.computed(()=>Dr(j.value)),B=C.computed(()=>{let oe="q-field__input q-placeholder col";return u.hideSelected===!0||j.value.length===0?[oe,u.inputClass]:(oe+=" q-field__input--padding",u.inputClass===void 0?oe:[oe,u.inputClass])}),W=C.computed(()=>(u.virtualScrollHorizontal===!0?"q-virtual-scroll--horizontal":"")+(u.popupContentClass?" "+u.popupContentClass:"")),I=C.computed(()=>z.value===0),R=C.computed(()=>j.value.map(oe=>de.value(oe)).join(", ")),$=C.computed(()=>u.displayValue!==void 0?u.displayValue:R.value),Y=C.computed(()=>u.optionsHtml===!0?()=>!0:oe=>oe?.html===!0),J=C.computed(()=>u.displayValueHtml===!0||u.displayValue===void 0&&(u.optionsHtml===!0||j.value.some(Y.value))),Z=C.computed(()=>O.focused.value===!0?u.tabindex:-1),ee=C.computed(()=>{const oe={tabindex:u.tabindex,role:"combobox","aria-label":u.label,"aria-readonly":u.readonly===!0?"true":"false","aria-autocomplete":u.useInput===!0?"list":"none","aria-expanded":f.value===!0?"true":"false","aria-controls":`${O.targetUid.value}_lb`};return a.value>=0&&(oe["aria-activedescendant"]=`${O.targetUid.value}_${a.value}`),oe}),ae=C.computed(()=>({id:`${O.targetUid.value}_lb`,role:"listbox","aria-multiselectable":u.multiple===!0?"true":"false"})),se=C.computed(()=>j.value.map((oe,Ne)=>({index:Ne,opt:oe,html:Y.value(oe),selected:!0,removeAtIndex:Te,toggleOption:ze,tabindex:Z.value}))),G=C.computed(()=>{if(z.value===0)return[];const{from:oe,to:Ne}=T.value;return u.options.slice(oe,Ne).map((Q,ue)=>{const ve=me.value(Q)===!0,ye=Se(Q)===!0,De=oe+ue,xe={clickable:!0,active:ye,activeClass:fe.value,manualFocus:!0,focused:!1,disable:ve,tabindex:-1,dense:u.optionsDense,dark:U.value,role:"option","aria-selected":ye===!0?"true":"false",id:`${O.targetUid.value}_${De}`,onClick:()=>{ze(Q)}};return ve!==!0&&(a.value===De&&(xe.focused=!0),b.platform.is.desktop===!0&&(xe.onMousemove=()=>{f.value===!0&&Fe(De)})),{index:De,opt:Q,html:Y.value(Q),label:de.value(Q),selected:xe.active,focused:xe.focused,toggleOption:ze,setOptionIndex:Fe,itemProps:xe}})}),ne=C.computed(()=>u.dropdownIcon!==void 0?u.dropdownIcon:b.iconSet.arrow.dropdown),ie=C.computed(()=>u.optionsCover===!1&&u.outlined!==!0&&u.standout!==!0&&u.borderless!==!0&&u.rounded!==!0),fe=C.computed(()=>u.optionsSelectedClass!==void 0?u.optionsSelectedClass:u.color!==void 0?`text-${u.color}`:""),ce=C.computed(()=>Vn(u.optionValue,"value")),de=C.computed(()=>Vn(u.optionLabel,"label")),me=C.computed(()=>Vn(u.optionDisable,"disable")),ge=C.computed(()=>j.value.map(ce.value)),_e=C.computed(()=>{const oe={onInput:he,onChange:V,onKeydown:Je,onKeyup:Le,onKeypress:Ze,onFocus:Be,onClick(Ne){d===!0&&It(Ne)}};return oe.onCompositionstart=oe.onCompositionupdate=oe.onCompositionend=V,oe});C.watch(j,oe=>{i=oe,u.useInput===!0&&u.fillInput===!0&&u.multiple!==!0&&O.innerLoading.value!==!0&&(o.value!==!0&&f.value!==!0||X.value!==!0)&&(h!==!0&&$e(),(o.value===!0||f.value===!0)&&Ie(""))},{immediate:!0}),C.watch(()=>u.fillInput,$e),C.watch(f,Ge),C.watch(z,Qe);function je(oe){return u.emitValue===!0?ce.value(oe):oe}function Ee(oe){if(oe!==-1&&oe<j.value.length)if(u.multiple===!0){const Ne=u.modelValue.slice();t("remove",{index:oe,value:Ne.splice(oe,1)[0]}),t("update:modelValue",Ne)}else t("update:modelValue",null)}function Te(oe){Ee(oe),O.focus()}function He(oe,Ne){const Q=je(oe);if(u.multiple!==!0){u.fillInput===!0&&Ae(de.value(oe),!0,!0),t("update:modelValue",Q);return}if(j.value.length===0){t("add",{index:0,value:Q}),t("update:modelValue",u.multiple===!0?[Q]:Q);return}if(Ne===!0&&Se(oe)===!0||u.maxValues!==void 0&&u.modelValue.length>=u.maxValues)return;const ue=u.modelValue.slice();t("add",{index:ue.length,value:Q}),ue.push(Q),t("update:modelValue",ue)}function ze(oe,Ne){if(O.editable.value!==!0||oe===void 0||me.value(oe)===!0)return;const Q=ce.value(oe);if(u.multiple!==!0){Ne!==!0&&(Ae(u.fillInput===!0?de.value(oe):"",!0,!0),Re()),N.value?.focus(),(j.value.length===0||Qt(ce.value(j.value[0]),Q)!==!0)&&t("update:modelValue",u.emitValue===!0?Q:oe);return}if((d!==!0||e.value===!0)&&O.focus(),Be(),j.value.length===0){const ye=u.emitValue===!0?Q:oe;t("add",{index:0,value:ye}),t("update:modelValue",u.multiple===!0?[ye]:ye);return}const ue=u.modelValue.slice(),ve=ge.value.findIndex(ye=>Qt(ye,Q));if(ve!==-1)t("remove",{index:ve,value:ue.splice(ve,1)[0]});else{if(u.maxValues!==void 0&&ue.length>=u.maxValues)return;const ye=u.emitValue===!0?Q:oe;t("add",{index:ue.length,value:ye}),ue.push(ye)}t("update:modelValue",ue)}function Fe(oe){if(b.platform.is.desktop!==!0)return;const Ne=oe!==-1&&oe<z.value?oe:-1;a.value!==Ne&&(a.value=Ne)}function qe(oe=1,Ne){if(f.value===!0){let Q=a.value;do Q=is(Q+oe,-1,z.value-1);while(Q!==-1&&Q!==a.value&&me.value(u.options[Q])===!0);a.value!==Q&&(Fe(Q),_(Q),Ne!==!0&&u.useInput===!0&&u.fillInput===!0&&we(Q>=0?de.value(u.options[Q]):m,!0))}}function Pe(oe,Ne){const Q=ue=>Qt(ce.value(ue),oe);return u.options.find(Q)||Ne.find(Q)||oe}function Se(oe){const Ne=ce.value(oe);return ge.value.find(Q=>Qt(Q,Ne))!==void 0}function Be(oe){u.useInput===!0&&N.value!==null&&(oe===void 0||N.value===oe.target&&oe.target.value===R.value)&&N.value.select()}function Ve(oe){er(oe,27)===!0&&f.value===!0&&(It(oe),Re(),$e()),t("keyup",oe)}function Le(oe){const{value:Ne}=oe.target;if(oe.keyCode!==void 0){Ve(oe);return}if(oe.target.value="",l!==null&&(clearTimeout(l),l=null),s!==null&&(clearTimeout(s),s=null),$e(),typeof Ne=="string"&&Ne.length!==0){const Q=Ne.toLocaleLowerCase(),ue=ye=>{const De=u.options.find(xe=>String(ye.value(xe)).toLocaleLowerCase()===Q);return De===void 0?!1:(j.value.indexOf(De)===-1?ze(De):Re(),!0)},ve=ye=>{ue(ce)!==!0&&ye!==!0&&ue(de)!==!0&&Ie(Ne,!0,()=>ve(!0))};ve()}else O.clearValue(oe)}function Ze(oe){t("keypress",oe)}function Je(oe){if(t("keydown",oe),gi(oe)===!0)return;const Ne=n.value.length!==0&&(u.newValueMode!==void 0||u.onNewValue!==void 0),Q=oe.shiftKey!==!0&&u.disableTabSelection!==!0&&u.multiple!==!0&&(a.value!==-1||Ne===!0);if(oe.keyCode===27){Ot(oe);return}if(oe.keyCode===9&&Q===!1){be();return}if(oe.target===void 0||oe.target.id!==O.targetUid.value||O.editable.value!==!0)return;if(oe.keyCode===40&&O.innerLoading.value!==!0&&f.value===!1){_t(oe),ke();return}if(oe.keyCode===8&&(u.useChips===!0||u.clearable===!0)&&u.hideSelected!==!0&&n.value.length===0){u.multiple===!0&&Array.isArray(u.modelValue)===!0?Ee(u.modelValue.length-1):u.multiple!==!0&&u.modelValue!==null&&t("update:modelValue",null);return}(oe.keyCode===35||oe.keyCode===36)&&(typeof n.value!="string"||n.value.length===0)&&(_t(oe),a.value=-1,qe(oe.keyCode===36?1:-1,u.multiple)),(oe.keyCode===33||oe.keyCode===34)&&S.value!==void 0&&(_t(oe),a.value=Math.max(-1,Math.min(z.value,a.value+(oe.keyCode===33?-1:1)*S.value.view)),qe(oe.keyCode===33?1:-1,u.multiple)),(oe.keyCode===38||oe.keyCode===40)&&(_t(oe),qe(oe.keyCode===38?-1:1,u.multiple));const ue=z.value;if((x===void 0||k<Date.now())&&(x=""),ue>0&&u.useInput!==!0&&oe.key!==void 0&&oe.key.length===1&&oe.altKey===!1&&oe.ctrlKey===!1&&oe.metaKey===!1&&(oe.keyCode!==32||x.length!==0)){f.value!==!0&&ke(oe);const ve=oe.key.toLocaleLowerCase(),ye=x.length===1&&x[0]===ve;k=Date.now()+1500,ye===!1&&(_t(oe),x+=ve);const De=new RegExp("^"+x.split("").map(Oe=>ql.indexOf(Oe)!==-1?"\\"+Oe:Oe).join(".*"),"i");let xe=a.value;if(ye===!0||xe<0||De.test(de.value(u.options[xe]))!==!0)do xe=is(xe+1,-1,ue-1);while(xe!==a.value&&(me.value(u.options[xe])===!0||De.test(de.value(u.options[xe]))!==!0));a.value!==xe&&C.nextTick(()=>{Fe(xe),_(xe),xe>=0&&u.useInput===!0&&u.fillInput===!0&&we(de.value(u.options[xe]),!0)});return}if(!(oe.keyCode!==13&&(oe.keyCode!==32||u.useInput===!0||x!=="")&&(oe.keyCode!==9||Q===!1))){if(oe.keyCode!==9&&_t(oe),a.value!==-1&&a.value<ue){ze(u.options[a.value]);return}if(Ne===!0){const ve=(ye,De)=>{if(De){if(Ms(De)!==!0)return}else De=u.newValueMode;if(Ae("",u.multiple!==!0,!0),ye==null)return;(De==="toggle"?ze:He)(ye,De==="add-unique"),u.multiple!==!0&&(N.value?.focus(),Re())};if(u.onNewValue!==void 0?t("newValue",n.value,ve):ve(n.value),u.multiple!==!0)return}f.value===!0?be():O.innerLoading.value!==!0&&ke()}}function Ue(){return d===!0?F.value:q.value!==null&&q.value.contentEl!==null?q.value.contentEl:void 0}function rt(){return Ue()}function et(){return u.hideSelected===!0?[]:P["selected-item"]!==void 0?se.value.map(oe=>P["selected-item"](oe)).slice():P.selected!==void 0?[].concat(P.selected()):u.useChips===!0?se.value.map((oe,Ne)=>C.h(El,{key:"option-"+Ne,removable:O.editable.value===!0&&me.value(oe.opt)!==!0,dense:!0,textColor:u.color,tabindex:Z.value,onRemove(){oe.removeAtIndex(Ne)}},()=>C.h("span",{class:"ellipsis",[oe.html===!0?"innerHTML":"textContent"]:de.value(oe.opt)}))):[C.h("span",{class:"ellipsis",[J.value===!0?"innerHTML":"textContent"]:$.value})]}function We(){if(I.value===!0)return P["no-option"]!==void 0?P["no-option"]({inputValue:n.value}):void 0;const oe=P.option!==void 0?P.option:Q=>C.h(si,{key:Q.index,...Q.itemProps},()=>C.h(oi,()=>C.h(Tl,()=>C.h("span",{[Q.html===!0?"innerHTML":"textContent"]:Q.label}))));let Ne=y("div",G.value.map(oe));return P["before-options"]!==void 0&&(Ne=P["before-options"]().concat(Ne)),Nt(P["after-options"],Ne)}function ot(oe,Ne){const Q=Ne===!0?{...ee.value,...O.splitAttrs.attributes.value}:void 0,ue={ref:Ne===!0?N:void 0,key:"i_t",class:B.value,style:u.inputStyle,value:n.value!==void 0?n.value:"",type:"search",...Q,id:Ne===!0?O.targetUid.value:void 0,maxlength:u.maxlength,autocomplete:u.autocomplete,"data-autofocus":oe===!0||u.autofocus===!0||void 0,disabled:u.disable===!0,readonly:u.readonly===!0,..._e.value};return oe!==!0&&d===!0&&(Array.isArray(ue.class)===!0?ue.class=[...ue.class,"no-pointer-events"]:ue.class+=" no-pointer-events"),C.h("input",ue)}function he(oe){l!==null&&(clearTimeout(l),l=null),s!==null&&(clearTimeout(s),s=null),!(oe&&oe.target&&oe.target.qComposing===!0)&&(we(oe.target.value||""),h=!0,m=n.value,O.focused.value!==!0&&(d!==!0||e.value===!0)&&O.focus(),u.onFilter!==void 0&&(l=setTimeout(()=>{l=null,Ie(n.value)},u.inputDebounce)))}function we(oe,Ne){n.value!==oe&&(n.value=oe,Ne===!0||u.inputDebounce===0||u.inputDebounce==="0"?t("inputValue",oe):s=setTimeout(()=>{s=null,t("inputValue",oe)},u.inputDebounce))}function Ae(oe,Ne,Q){h=Q!==!0,u.useInput===!0&&(we(oe,!0),(Ne===!0||Q!==!0)&&(m=oe),Ne!==!0&&Ie(oe))}function Ie(oe,Ne,Q){if(u.onFilter===void 0||Ne!==!0&&O.focused.value!==!0)return;O.innerLoading.value===!0?t("filterAbort"):(O.innerLoading.value=!0,r.value=!0),oe!==""&&u.multiple!==!0&&j.value.length!==0&&h!==!0&&oe===de.value(j.value[0])&&(oe="");const ue=setTimeout(()=>{f.value===!0&&(f.value=!1)},10);c!==null&&clearTimeout(c),c=ue,t("filter",oe,(ve,ye)=>{(Ne===!0||O.focused.value===!0)&&c===ue&&(clearTimeout(c),typeof ve=="function"&&ve(),r.value=!1,C.nextTick(()=>{O.innerLoading.value=!1,O.editable.value===!0&&(Ne===!0?f.value===!0&&Re():f.value===!0?Ge(!0):f.value=!0),typeof ye=="function"&&C.nextTick(()=>{ye(v)}),typeof Q=="function"&&C.nextTick(()=>{Q(v)})}))},()=>{O.focused.value===!0&&c===ue&&(clearTimeout(c),O.innerLoading.value=!1,r.value=!1),f.value===!0&&(f.value=!1)})}function Ce(){return C.h(En,{ref:q,class:W.value,style:u.popupContentStyle,modelValue:f.value,fit:u.menuShrink!==!0,cover:u.optionsCover===!0&&I.value!==!0&&u.useInput!==!0,anchor:u.menuAnchor,self:u.menuSelf,offset:u.menuOffset,dark:U.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,noRouteDismiss:u.popupNoRouteDismiss,square:ie.value,transitionShow:u.transitionShow,transitionHide:u.transitionHide,transitionDuration:u.transitionDuration,separateClosePopup:!0,...ae.value,onScrollPassive:w,onBeforeShow:bt,onBeforeHide:Ye,onShow:Xe},We)}function Ye(oe){ct(oe),be()}function Xe(){E()}function te(oe){It(oe),N.value?.focus(),e.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function K(oe){It(oe),C.nextTick(()=>{e.value=!1})}function re(){const oe=[C.h(Cl,{class:`col-auto ${O.fieldClass.value}`,...H.value,for:O.targetUid.value,dark:U.value,square:!0,loading:r.value,itemAligned:!1,filled:!0,stackLabel:n.value.length!==0,...O.splitAttrs.listeners.value,onFocus:te,onBlur:K},{...P,rawControl:()=>O.getControl(!0),before:void 0,after:void 0})];return f.value===!0&&oe.push(C.h("div",{ref:F,class:W.value+" scroll",style:u.popupContentStyle,...ae.value,onClick:Ot,onScrollPassive:w},We())),C.h(So,{ref:D,modelValue:o.value,position:u.useInput===!0?"top":void 0,transitionShow:p,transitionHide:u.transitionHide,transitionDuration:u.transitionDuration,noRouteDismiss:u.popupNoRouteDismiss,onBeforeShow:bt,onBeforeHide:le,onHide:pe,onShow:Me},()=>C.h("div",{class:"q-select__dialog"+(U.value===!0?" q-select__dialog--dark q-dark":"")+(e.value===!0?" q-select__dialog--focused":"")},oe))}function le(oe){ct(oe),D.value!==null&&D.value.__updateRefocusTarget(O.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),O.focused.value=!1}function pe(oe){Re(),O.focused.value===!1&&t("blur",oe),$e()}function Me(){const oe=document.activeElement;(oe===null||oe.id!==O.targetUid.value)&&N.value!==null&&N.value!==oe&&N.value.focus(),E()}function be(){o.value!==!0&&(a.value=-1,f.value===!0&&(f.value=!1),O.focused.value===!1&&(c!==null&&(clearTimeout(c),c=null),O.innerLoading.value===!0&&(t("filterAbort"),O.innerLoading.value=!1,r.value=!1)))}function ke(oe){O.editable.value===!0&&(d===!0?(O.onControlFocusin(oe),o.value=!0,C.nextTick(()=>{O.focus()})):O.focus(),u.onFilter!==void 0?Ie(n.value):(I.value!==!0||P["no-option"]!==void 0)&&(f.value=!0))}function Re(){o.value=!1,be()}function $e(){u.useInput===!0&&Ae(u.multiple!==!0&&u.fillInput===!0&&j.value.length!==0&&de.value(j.value[0])||"",!0,!0)}function Ge(oe){let Ne=-1;if(oe===!0){if(j.value.length!==0){const Q=ce.value(j.value[0]);Ne=u.options.findIndex(ue=>Qt(ce.value(ue),Q))}g(Ne)}Fe(Ne)}function Qe(oe,Ne){f.value===!0&&O.innerLoading.value===!1&&(g(-1,!0),C.nextTick(()=>{f.value===!0&&O.innerLoading.value===!1&&(oe>Ne?g():Ge(!0))}))}function tt(){o.value===!1&&q.value!==null&&q.value.updatePosition()}function bt(oe){oe!==void 0&&It(oe),t("popupShow",oe),O.hasPopupOpen=!0,O.onControlFocusin(oe)}function ct(oe){oe!==void 0&&It(oe),t("popupHide",oe),O.hasPopupOpen=!1,O.onControlFocusout(oe)}function xt(){d=b.platform.is.mobile!==!0&&u.behavior!=="dialog"?!1:u.behavior!=="menu"&&(u.useInput===!0?P["no-option"]!==void 0||u.onFilter!==void 0||I.value===!1:!0),p=b.platform.is.ios===!0&&d===!0&&u.useInput===!0?"fade":u.transitionShow}return C.onBeforeUpdate(xt),C.onUpdated(tt),xt(),C.onBeforeUnmount(()=>{l!==null&&clearTimeout(l),s!==null&&clearTimeout(s)}),Object.assign(v,{showPopup:ke,hidePopup:Re,removeAtIndex:Ee,add:He,toggleOption:ze,getOptionIndex:()=>a.value,setOptionIndex:Fe,moveOptionSelection:qe,filter:Ie,updateMenuPosition:tt,updateInputValue:Ae,isOptionSelected:Se,getEmittingOptionValue:je,isOptionDisabled:(...oe)=>me.value.apply(null,oe)===!0,getOptionValue:(...oe)=>ce.value.apply(null,oe),getOptionLabel:(...oe)=>de.value.apply(null,oe)}),Object.assign(O,{innerValue:j,fieldClass:C.computed(()=>`q-select q-field--auto-height q-select--with${u.useInput!==!0?"out":""}-input q-select--with${u.useChips!==!0?"out":""}-chips q-select--${u.multiple===!0?"multiple":"single"}`),inputRef:A,targetRef:N,hasValue:X,showPopup:ke,floatingLabel:C.computed(()=>u.hideSelected!==!0&&X.value===!0||typeof n.value=="number"||n.value.length!==0||Dr(u.displayValue)),getControlChild:()=>{if(O.editable.value!==!1&&(o.value===!0||I.value!==!0||P["no-option"]!==void 0))return d===!0?re():Ce();O.hasPopupOpen===!0&&(O.hasPopupOpen=!1)},controlEvents:{onFocusin(oe){O.onControlFocusin(oe)},onFocusout(oe){O.onControlFocusout(oe,()=>{$e(),be()})},onClick(oe){if(Ot(oe),d!==!0&&f.value===!0){be(),N.value?.focus();return}ke(oe)}},getControl:oe=>{const Ne=et(),Q=oe===!0||o.value!==!0||d!==!0;if(u.useInput===!0)Ne.push(ot(oe,Q));else if(O.editable.value===!0){const ve=Q===!0?ee.value:void 0;Ne.push(C.h("input",{ref:Q===!0?N:void 0,key:"d_t",class:"q-select__focus-target",id:Q===!0?O.targetUid.value:void 0,value:$.value,readonly:!0,"data-autofocus":oe===!0||u.autofocus===!0||void 0,...ve,onKeydown:Je,onKeyup:Ve,onKeypress:Ze})),Q===!0&&typeof u.autocomplete=="string"&&u.autocomplete.length!==0&&Ne.push(C.h("input",{class:"q-select__autocomplete-input",autocomplete:u.autocomplete,tabindex:-1,onKeyup:Le}))}if(L.value!==void 0&&u.disable!==!0&&ge.value.length!==0){const ve=ge.value.map(ye=>C.h("option",{value:ye,selected:!0}));Ne.push(C.h("select",{class:"hidden",name:L.value,multiple:u.multiple},ve))}const ue=u.useInput===!0||Q!==!0?void 0:O.splitAttrs.attributes.value;return C.h("div",{class:"q-field__native row items-center",...ue,...O.splitAttrs.listeners.value},Ne)},getInnerAppend:()=>u.loading!==!0&&r.value!==!0&&u.hideDropdownIcon!==!0?[C.h(kt,{class:"q-select__dropdown-icon"+(f.value===!0?" rotate-180":""),name:ne.value})]:null}),Pi(O)}}),Vl={class:"q-pa-none"},Hl=C.defineComponent({__name:"CheckboxFilter",props:{options:{},label:{default:"Sélectionner les options"},modelValue:{default:()=>[]},scrollAreaHeight:{default:"200px"},scrollAreaWidth:{default:"250px"},dataCy:{default:"checkbox-filter"}},emits:["update:modelValue"],setup(u,{emit:P}){const t=u,v=P,b=C.ref(!1),f=C.ref(t.modelValue||[]),o=C.computed(()=>({height:t.scrollAreaHeight,width:t.scrollAreaWidth})),a=C.computed(()=>t.dataCy||"checkbox-filter");return C.watch(f,n=>{v("update:modelValue",n)}),C.watch(()=>t.modelValue,n=>{n&&(f.value=n)},{immediate:!0}),(n,e)=>(C.openBlock(),C.createElementBlock("div",Vl,[C.createVNode(Ni,C.mergeProps({outlined:"",dense:"",label:t.label,class:["full-width","cursor-pointer"],"data-cy":a.value,"model-value":null,options:[],"hide-dropdown-icon":""},n.$attrs),{append:C.withCtx(()=>[C.createVNode(kt,{name:"arrow_drop_down",class:C.normalizeClass(["cursor-pointer smooth-rotate",{"rotate-180":b.value}])},null,8,["class"])]),default:C.withCtx(()=>[C.createVNode(En,{modelValue:b.value,"onUpdate:modelValue":e[1]||(e[1]=r=>b.value=r),anchor:"bottom left",self:"top left",offset:[0,8],"transition-show":"scale","transition-hide":"scale"},{default:C.withCtx(()=>[C.createVNode(Ja,{class:"q-pa-sm"},{default:C.withCtx(()=>[C.createVNode(Qa,{style:C.normalizeStyle(o.value)},{default:C.withCtx(()=>[(C.openBlock(!0),C.createElementBlock(C.Fragment,null,C.renderList(t.options,r=>(C.openBlock(),C.createBlock(an,{key:r.value,modelValue:f.value,"onUpdate:modelValue":e[0]||(e[0]=l=>f.value=l),val:r,label:r.label,disable:r.disabled,color:"primary",class:"q-mb-sm q-ml-sm q-mr-sm","data-cy":`${a.value}-option-${r.label}`},null,8,["modelValue","val","label","disable","data-cy"]))),128))]),_:1},8,["style"])]),_:1})]),_:1},8,["modelValue"])]),_:1},16,["label","data-cy"])]))}}),Ul=vi(Hl,[["__scopeId","data-v-0e12eb7b"]]),Wl=C.defineComponent({__name:"SelectSearch",props:{options:{default:()=>[]},fetchOptions:{},label:{default:"Selectionner un option"},modelValue:{default:null}},emits:["update:modelValue"],setup(u,{emit:P}){const t=u,v=P,b=C.ref(),f=C.ref(t.modelValue??null),o=C.ref(""),a=C.ref(t.options??[]),n=C.ref(!1),e=C.ref(!0);C.watch(()=>t.options,c=>{a.value=c??[],r()},{immediate:!0}),C.watch(()=>t.modelValue,c=>{f.value=c,r(),n.value=!1});function r(){const c=a.value.find(m=>m.value===f.value);o.value=c?.label??""}function l(c){f.value=c,v("update:modelValue",c),r(),n.value=!1}function s(c){o.value=c,c===""&&(n.value=!0)}function i(){if(e.value){e.value=!1;return}f.value!==null&&!n.value?(o.value="",n.value=!0,b.value?.showPopup()):n.value&&(o.value="")}function d(){e.value=!0;const c=o.value.trim();if(c==="")n.value&&(f.value=null,v("update:modelValue",null));else{const m=a.value.find(p=>p.label.toLowerCase()===c.toLowerCase());m?(f.value=m.value,v("update:modelValue",m.value),o.value=m.label):r()}n.value=!1}function h(c,m,p){if(t.fetchOptions)t.fetchOptions(c).then(x=>{a.value=x,m(()=>{})}).catch(p).finally(()=>{});else{const x=t.options??[];a.value=x.filter(k=>k.label.toLowerCase().includes(c.toLowerCase())),m(()=>{})}}return(c,m)=>(C.openBlock(),C.createBlock(Ni,C.mergeProps({ref_key:"selectRef",ref:b,"model-value":f.value,"input-value":o.value,"use-input":"","fill-input":"","hide-selected":"","input-debounce":"300",label:c.label,options:a.value,dense:"",outlined:"",class:"full-width cursor-pointer"},c.$attrs,{"onUpdate:modelValue":l,"onUpdate:inputValue":s,onFocus:i,onBlur:d,onFilter:h}),null,16,["model-value","input-value","label","options"]))}}),Ro=it({name:"QAvatar",props:{...Cr,fontSize:String,color:String,textColor:String,icon:String,square:Boolean,rounded:Boolean},setup(u,{slots:P}){const t=Mr(u),v=C.computed(()=>"q-avatar"+(u.color?` bg-${u.color}`:"")+(u.textColor?` text-${u.textColor} q-chip--colored`:"")+(u.square===!0?" q-avatar--square":u.rounded===!0?" rounded-borders":"")),b=C.computed(()=>u.fontSize?{fontSize:u.fontSize}:null);return()=>{const f=u.icon!==void 0?[C.h(kt,{name:u.icon})]:void 0;return C.h("div",{class:v.value,style:t.value},[C.h("div",{class:"q-avatar__content row flex-center overflow-hidden",style:b.value},Vs(P.default,f))])}}}),Yl=it({name:"QSpace",setup(){const u=C.h("div",{class:"q-space"});return()=>u}}),Xl=it({name:"QToolbar",props:{inset:Boolean},setup(u,{slots:P}){const t=C.computed(()=>"q-toolbar row no-wrap items-center"+(u.inset===!0?" q-toolbar--inset":""));return()=>C.h("div",{class:t.value,role:"toolbar"},vt(P.default))}}),Kl=it({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(u,{slots:P,emit:t}){const{proxy:{$q:v}}=C.getCurrentInstance(),b=C.inject(zr,Rt);if(b===Rt)return console.error("QHeader needs to be child of QLayout"),Rt;const f=C.ref(parseInt(u.heightHint,10)),o=C.ref(!0),a=C.computed(()=>u.reveal===!0||b.view.value.indexOf("H")!==-1||v.platform.is.ios&&b.isContainer.value===!0),n=C.computed(()=>{if(u.modelValue!==!0)return 0;if(a.value===!0)return o.value===!0?f.value:0;const p=f.value-b.scroll.value.position;return p>0?p:0}),e=C.computed(()=>u.modelValue!==!0||a.value===!0&&o.value!==!0),r=C.computed(()=>u.modelValue===!0&&e.value===!0&&u.reveal===!0),l=C.computed(()=>"q-header q-layout__section--marginal "+(a.value===!0?"fixed":"absolute")+"-top"+(u.bordered===!0?" q-header--bordered":"")+(e.value===!0?" q-header--hidden":"")+(u.modelValue!==!0?" q-layout--prevent-focus":"")),s=C.computed(()=>{const p=b.rows.value.top,x={};return p[0]==="l"&&b.left.space===!0&&(x[v.lang.rtl===!0?"right":"left"]=`${b.left.size}px`),p[2]==="r"&&b.right.space===!0&&(x[v.lang.rtl===!0?"left":"right"]=`${b.right.size}px`),x});function i(p,x){b.update("header",p,x)}function d(p,x){p.value!==x&&(p.value=x)}function h({height:p}){d(f,p),i("size",p)}function c(p){r.value===!0&&d(o,!0),t("focusin",p)}C.watch(()=>u.modelValue,p=>{i("space",p),d(o,!0),b.animate()}),C.watch(n,p=>{i("offset",p)}),C.watch(()=>u.reveal,p=>{p===!1&&d(o,u.modelValue)}),C.watch(o,p=>{b.animate(),t("reveal",p)}),C.watch(b.scroll,p=>{u.reveal===!0&&d(o,p.direction==="up"||p.position<=u.revealOffset||p.position-p.inflectionPoint<100)});const m={};return b.instances.header=m,u.modelValue===!0&&i("size",f.value),i("space",u.modelValue),i("offset",n.value),C.onBeforeUnmount(()=>{b.instances.header===m&&(b.instances.header=void 0,i("size",0),i("offset",0),i("space",!1))}),()=>{const p=hi(P.default,[]);return u.elevated===!0&&p.push(C.h("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),p.push(C.h(Sr,{debounce:0,onResize:h})),C.h("header",{class:l.value,style:s.value,onFocusin:c},p)}}}),Zl=["src","alt"],Gl=C.defineComponent({__name:"SelfeeHeader",props:{logoSrc:{},logoAlt:{},logoTo:{}},setup(u){const P=u,t=P.logoAlt??"Logo",v=P.logoTo??"/",b=C.computed(()=>({width:"260px",height:"auto"}));return(f,o)=>{const a=C.resolveComponent("router-link");return C.openBlock(),C.createBlock(Kl,C.mergeProps({elevated:""},f.$attrs),{default:C.withCtx(()=>[C.createVNode(Xl,null,{default:C.withCtx(()=>[C.createVNode(a,{to:C.unref(v),class:"q-mr-md"},{default:C.withCtx(()=>[C.createVNode(Ro,{class:"logo",style:C.normalizeStyle(b.value),"data-testid":"header-logo"},{default:C.withCtx(()=>[C.createElementVNode("img",{src:f.logoSrc,alt:C.unref(t)},null,8,Zl)]),_:1},8,["style"])]),_:1},8,["to"]),C.createVNode(Yl),C.renderSlot(f.$slots,"user-avatar")]),_:3})]),_:3},16)}}}),Ql=it({name:"QFooter",props:{modelValue:{type:Boolean,default:!0},reveal:Boolean,bordered:Boolean,elevated:Boolean,heightHint:{type:[String,Number],default:50}},emits:["reveal","focusin"],setup(u,{slots:P,emit:t}){const{proxy:{$q:v}}=C.getCurrentInstance(),b=C.inject(zr,Rt);if(b===Rt)return console.error("QFooter needs to be child of QLayout"),Rt;const f=C.ref(parseInt(u.heightHint,10)),o=C.ref(!0),a=C.ref(tr.value===!0||b.isContainer.value===!0?0:window.innerHeight),n=C.computed(()=>u.reveal===!0||b.view.value.indexOf("F")!==-1||v.platform.is.ios&&b.isContainer.value===!0),e=C.computed(()=>b.isContainer.value===!0?b.containerHeight.value:a.value),r=C.computed(()=>{if(u.modelValue!==!0)return 0;if(n.value===!0)return o.value===!0?f.value:0;const A=b.scroll.value.position+e.value+f.value-b.height.value;return A>0?A:0}),l=C.computed(()=>u.modelValue!==!0||n.value===!0&&o.value!==!0),s=C.computed(()=>u.modelValue===!0&&l.value===!0&&u.reveal===!0),i=C.computed(()=>"q-footer q-layout__section--marginal "+(n.value===!0?"fixed":"absolute")+"-bottom"+(u.bordered===!0?" q-footer--bordered":"")+(l.value===!0?" q-footer--hidden":"")+(u.modelValue!==!0?" q-layout--prevent-focus"+(n.value!==!0?" hidden":""):"")),d=C.computed(()=>{const A=b.rows.value.bottom,N={};return A[0]==="l"&&b.left.space===!0&&(N[v.lang.rtl===!0?"right":"left"]=`${b.left.size}px`),A[2]==="r"&&b.right.space===!0&&(N[v.lang.rtl===!0?"left":"right"]=`${b.right.size}px`),N});function h(A,N){b.update("footer",A,N)}function c(A,N){A.value!==N&&(A.value=N)}function m({height:A}){c(f,A),h("size",A)}function p(){if(u.reveal!==!0)return;const{direction:A,position:N,inflectionPoint:q}=b.scroll.value;c(o,A==="up"||N-q<100||b.height.value-e.value-N-f.value<300)}function x(A){s.value===!0&&c(o,!0),t("focusin",A)}C.watch(()=>u.modelValue,A=>{h("space",A),c(o,!0),b.animate()}),C.watch(r,A=>{h("offset",A)}),C.watch(()=>u.reveal,A=>{A===!1&&c(o,u.modelValue)}),C.watch(o,A=>{b.animate(),t("reveal",A)}),C.watch([f,b.scroll,b.height],p),C.watch(()=>v.screen.height,A=>{b.isContainer.value!==!0&&c(a,A)});const k={};return b.instances.footer=k,u.modelValue===!0&&h("size",f.value),h("space",u.modelValue),h("offset",r.value),C.onBeforeUnmount(()=>{b.instances.footer===k&&(b.instances.footer=void 0,h("size",0),h("offset",0),h("space",!1))}),()=>{const A=Nt(P.default,[C.h(Sr,{debounce:0,onResize:m})]);return u.elevated===!0&&A.push(C.h("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),C.h("footer",{class:i.value,style:d.value,onFocusin:x},A)}}}),Jl={class:"row justify-between"},eu={class:"col-3 q-py-md flex justify-center"},tu={class:"col-3 q-py-md flex justify-center"},ru={class:"col-3 q-py-md flex justify-center"},nu=C.defineComponent({__name:"SelfeeFooter",props:{frontVersion:{},backVersion:{},platform:{}},setup(u){return(P,t)=>(C.openBlock(),C.createBlock(Ql,C.mergeProps({elevated:""},P.$attrs),{default:C.withCtx(()=>[C.createElementVNode("div",Jl,[C.createElementVNode("div",eu,"Front: "+C.toDisplayString(P.frontVersion),1),C.createElementVNode("div",tu,"Back: "+C.toDisplayString(P.backVersion),1),C.createElementVNode("div",ru,"Platform: "+C.toDisplayString(P.platform),1)])]),_:1},16))}}),iu={true:"inset",item:"item-inset","item-thumbnail":"item-thumbnail-inset"},Hn={xs:2,sm:4,md:8,lg:16,xl:24},Oo=it({name:"QSeparator",props:{...Bt,spaced:[Boolean,String],inset:[Boolean,String],vertical:Boolean,color:String,size:String},setup(u){const P=C.getCurrentInstance(),t=Dt(u,P.proxy.$q),v=C.computed(()=>u.vertical===!0?"vertical":"horizontal"),b=C.computed(()=>` q-separator--${v.value}`),f=C.computed(()=>u.inset!==!1?`${b.value}-${iu[u.inset]}`:""),o=C.computed(()=>`q-separator${b.value}${f.value}`+(u.color!==void 0?` bg-${u.color}`:"")+(t.value===!0?" q-separator--dark":"")),a=C.computed(()=>{const n={};if(u.size!==void 0&&(n[u.vertical===!0?"width":"height"]=u.size),u.spaced!==!1){const e=u.spaced===!0?`${Hn.md}px`:u.spaced in Hn?`${Hn[u.spaced]}px`:u.spaced,r=u.vertical===!0?["Left","Right"]:["Top","Bottom"];n[`margin${r[0]}`]=n[`margin${r[1]}`]=e}return n});return()=>C.h("hr",{class:o.value,style:a.value,"aria-orientation":v.value})}}),su=["ul","ol"],jo=it({name:"QList",props:{...Bt,bordered:Boolean,dense:Boolean,separator:Boolean,padding:Boolean,tag:{type:String,default:"div"}},setup(u,{slots:P}){const t=C.getCurrentInstance(),v=Dt(u,t.proxy.$q),b=C.computed(()=>su.includes(u.tag)?null:"list"),f=C.computed(()=>"q-list"+(u.bordered===!0?" q-list--bordered":"")+(u.dense===!0?" q-list--dense":"")+(u.separator===!0?" q-list--separator":"")+(v.value===!0?" q-list--dark":"")+(u.padding===!0?" q-list--padding":""));return()=>C.h(u.tag,{class:f.value,role:b.value},vt(P.default))}}),ou={class:"text-h6 text-primary","data-testid":"avatar-initial"},au=C.defineComponent({__name:"UserAvatar",props:{username:{},onLogout:{type:Function},logoutLabel:{}},setup(u){const P=u,t=C.computed(()=>P.username?.charAt(0).toUpperCase()??""),v=P.logoutLabel??"Logout";return(b,f)=>(C.openBlock(),C.createElementBlock("div",null,[C.createVNode(Ro,{class:"cursor-pointer",size:"40px",color:"white","data-cy":"cy-avatar","data-testid":"cy-avatar"},{default:C.withCtx(()=>[C.createElementVNode("span",ou,C.toDisplayString(t.value),1),C.createVNode(En,{"transition-show":"flip-right","transition-hide":"flip-left"},{default:C.withCtx(()=>[C.createVNode(jo,null,{default:C.withCtx(()=>[C.createVNode(si,null,{default:C.withCtx(()=>[C.createVNode(oi,null,{default:C.withCtx(()=>[C.createElementVNode("div",null,C.toDisplayString(b.username),1)]),_:1})]),_:1}),C.createVNode(Oo),C.createVNode(si,{clickable:"","data-cy":"cy-logout-button","data-testid":"cy-logout-button",onClick:b.onLogout},{default:C.withCtx(()=>[C.createVNode(oi,null,{default:C.withCtx(()=>[C.createElementVNode("div",null,C.toDisplayString(C.unref(v)),1)]),_:1})]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1})]))}}),lu=it({name:"QPageContainer",setup(u,{slots:P}){const{proxy:{$q:t}}=C.getCurrentInstance(),v=C.inject(zr,Rt);if(v===Rt)return console.error("QPageContainer needs to be child of QLayout"),Rt;C.provide(_o,!0);const b=C.computed(()=>{const f={};return v.header.space===!0&&(f.paddingTop=`${v.header.size}px`),v.right.space===!0&&(f[`padding${t.lang.rtl===!0?"Left":"Right"}`]=`${v.right.size}px`),v.footer.space===!0&&(f.paddingBottom=`${v.footer.size}px`),v.left.space===!0&&(f[`padding${t.lang.rtl===!0?"Right":"Left"}`]=`${v.left.size}px`),f});return()=>C.h("div",{class:"q-page-container",style:b.value},vt(P.default))}}),uu=it({name:"QLayout",props:{container:Boolean,view:{type:String,default:"hhh lpr fff",validator:u=>/^(h|l)h(h|r) lpr (f|l)f(f|r)$/.test(u.toLowerCase())},onScroll:Function,onScrollHeight:Function,onResize:Function},setup(u,{slots:P,emit:t}){const{proxy:{$q:v}}=C.getCurrentInstance(),b=C.ref(null),f=C.ref(v.screen.height),o=C.ref(u.container===!0?0:v.screen.width),a=C.ref({position:0,direction:"down",inflectionPoint:0}),n=C.ref(0),e=C.ref(tr.value===!0?0:ln()),r=C.computed(()=>"q-layout q-layout--"+(u.container===!0?"containerized":"standard")),l=C.computed(()=>u.container===!1?{minHeight:v.screen.height+"px"}:null),s=C.computed(()=>e.value!==0?{[v.lang.rtl===!0?"left":"right"]:`${e.value}px`}:null),i=C.computed(()=>e.value!==0?{[v.lang.rtl===!0?"right":"left"]:0,[v.lang.rtl===!0?"left":"right"]:`-${e.value}px`,width:`calc(100% + ${e.value}px)`}:null);function d(k){if(u.container===!0||document.qScrollPrevented!==!0){const A={position:k.position.top,direction:k.direction,directionChanged:k.directionChanged,inflectionPoint:k.inflectionPoint.top,delta:k.delta.top};a.value=A,u.onScroll!==void 0&&t("scroll",A)}}function h(k){const{height:A,width:N}=k;let q=!1;f.value!==A&&(q=!0,f.value=A,u.onScrollHeight!==void 0&&t("scrollHeight",A),m()),o.value!==N&&(q=!0,o.value=N),q===!0&&u.onResize!==void 0&&t("resize",k)}function c({height:k}){n.value!==k&&(n.value=k,m())}function m(){if(u.container===!0){const k=f.value>n.value?ln():0;e.value!==k&&(e.value=k)}}let p=null;const x={instances:{},view:C.computed(()=>u.view),isContainer:C.computed(()=>u.container),rootRef:b,height:f,containerHeight:n,scrollbarWidth:e,totalWidth:C.computed(()=>o.value+e.value),rows:C.computed(()=>{const k=u.view.toLowerCase().split(" ");return{top:k[0].split(""),middle:k[1].split(""),bottom:k[2].split("")}}),header:C.reactive({size:0,offset:0,space:!1}),right:C.reactive({size:300,offset:0,space:!1}),footer:C.reactive({size:0,offset:0,space:!1}),left:C.reactive({size:300,offset:0,space:!1}),scroll:a,animate(){p!==null?clearTimeout(p):document.body.classList.add("q-body--layout-animate"),p=setTimeout(()=>{p=null,document.body.classList.remove("q-body--layout-animate")},155)},update(k,A,N){x[k][A]=N}};if(C.provide(zr,x),ln()>0){let k=function(){q=null,D.classList.remove("hide-scrollbar")},A=function(){if(q===null){if(D.scrollHeight>v.screen.height)return;D.classList.add("hide-scrollbar")}else clearTimeout(q);q=setTimeout(k,300)},N=function(F){q!==null&&F==="remove"&&(clearTimeout(q),k()),window[`${F}EventListener`]("resize",A)},q=null;const D=document.body;C.watch(()=>u.container!==!0?"add":"remove",N),u.container!==!0&&N("add"),C.onUnmounted(()=>{N("remove")})}return()=>{const k=Nt(P.default,[C.h(lo,{onScroll:d}),C.h(Sr,{onResize:h})]),A=C.h("div",{class:r.value,style:l.value,ref:u.container===!0?void 0:b,tabindex:-1},k);return u.container===!0?C.h("div",{class:"q-layout-container overflow-hidden",ref:b},[C.h(Sr,{onResize:c}),C.h("div",{class:"absolute-full",style:s.value},[C.h("div",{class:"scroll",style:i.value},[A])])]):A}}}),cu=C.defineComponent({name:"Layout",__name:"Layout",props:{view:{default:"HHh Lpr Fff"},layoutClass:{default:"bg-dark"},pageContainerClass:{default:""}},setup(u){return(P,t)=>(C.openBlock(),C.createBlock(uu,{view:P.view,class:C.normalizeClass(P.layoutClass)},{default:C.withCtx(()=>[C.renderSlot(P.$slots,"header"),C.createVNode(lu,{class:C.normalizeClass(P.pageContainerClass)},{default:C.withCtx(()=>[C.renderSlot(P.$slots,"default")]),_:3},8,["class"]),C.renderSlot(P.$slots,"footer")]),_:3},8,["view","class"]))}});function fu(){let u=Object.create(null);return{getCache:(P,t)=>u[P]===void 0?u[P]=typeof t=="function"?t():t:u[P],setCache(P,t){u[P]=t},hasCache(P){return Object.hasOwnProperty.call(u,P)},clearCache(P){P!==void 0?delete u[P]:u=Object.create(null)}}}const Jt=[-61,9,38,199,426,686,756,818,1111,1181,1210,1635,2060,2097,2192,2262,2324,2394,2456,3178];function du(u,P,t){return Object.prototype.toString.call(u)==="[object Date]"&&(t=u.getDate(),P=u.getMonth()+1,u=u.getFullYear()),bu(Bi(u,P,t))}function Es(u,P,t){return Po(mu(u,P,t))}function hu(u){return pu(u)===0}function un(u,P){return P<=6?31:P<=11||hu(u)?30:29}function pu(u){const P=Jt.length;let t=Jt[0],v,b,f,o,a;if(u<t||u>=Jt[P-1])throw new Error("Invalid Jalaali year "+u);for(a=1;a<P&&(v=Jt[a],b=v-t,!(u<v));a+=1)t=v;return o=u-t,b-o<6&&(o=o-b+gt(b+4,33)*33),f=Pt(Pt(o+1,33)-1,4),f===-1&&(f=4),f}function Io(u,P){const t=Jt.length,v=u+621;let b=-14,f=Jt[0],o,a,n,e,r;if(u<f||u>=Jt[t-1])throw new Error("Invalid Jalaali year "+u);for(r=1;r<t&&(o=Jt[r],a=o-f,!(u<o));r+=1)b=b+gt(a,33)*8+gt(Pt(a,33),4),f=o;e=u-f,b=b+gt(e,33)*8+gt(Pt(e,33)+3,4),Pt(a,33)===4&&a-e===4&&(b+=1);const l=gt(v,4)-gt((gt(v,100)+1)*3,4)-150,s=20+b-l;return P||(a-e<6&&(e=e-a+gt(a+4,33)*33),n=Pt(Pt(e+1,33)-1,4),n===-1&&(n=4)),{leap:n,gy:v,march:s}}function mu(u,P,t){const v=Io(u,!0);return Bi(v.gy,3,v.march)+(P-1)*31-gt(P,7)*(P-7)+t-1}function bu(u){const P=Po(u).gy;let t=P-621,v,b,f;const o=Io(t,!1),a=Bi(P,3,o.march);if(f=u-a,f>=0){if(f<=185)return b=1+gt(f,31),v=Pt(f,31)+1,{jy:t,jm:b,jd:v};f-=186}else t-=1,f+=179,o.leap===1&&(f+=1);return b=7+gt(f,30),v=Pt(f,30)+1,{jy:t,jm:b,jd:v}}function Bi(u,P,t){let v=gt((u+gt(P-8,6)+100100)*1461,4)+gt(153*Pt(P+9,12)+2,5)+t-34840408;return v=v-gt(gt(u+100100+gt(P-8,6),100)*3,4)+752,v}function Po(u){let P=4*u+139361631;P=P+gt(gt(4*u+183187720,146097)*3,4)*4-3908;const t=gt(Pt(P,1461),4)*5+308,v=gt(Pt(t,153),5)+1,b=Pt(gt(t,153),12)+1;return{gy:gt(P,1461)-100100+gt(8-b,6),gm:b,gd:v}}function gt(u,P){return~~(u/P)}function Pt(u,P){return u-~~(u/P)*P}const gu=["gregorian","persian"],Ts={mask:{type:String},locale:Object,calendar:{type:String,validator:u=>gu.includes(u),default:"gregorian"},landscape:Boolean,color:String,textColor:String,square:Boolean,flat:Boolean,bordered:Boolean,readonly:Boolean,disable:Boolean},vu=["update:modelValue"];function Kt(u){return u.year+"/"+mt(u.month)+"/"+mt(u.day)}function yu(u,P){const t=C.computed(()=>u.disable!==!0&&u.readonly!==!0),v=C.computed(()=>t.value===!0?0:-1),b=C.computed(()=>{const a=[];return u.color!==void 0&&a.push(`bg-${u.color}`),u.textColor!==void 0&&a.push(`text-${u.textColor}`),a.join(" ")});function f(){return u.locale!==void 0?{...P.lang.date,...u.locale}:P.lang.date}function o(a){const n=new Date,e=a===!0?null:0;if(u.calendar==="persian"){const r=du(n);return{year:r.jy,month:r.jm,day:r.jd}}return{year:n.getFullYear(),month:n.getMonth()+1,day:n.getDate(),hour:e,minute:e,second:e,millisecond:e}}return{editable:t,tabindex:v,headerClass:b,getLocale:f,getCurrentDate:o}}const ui={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:u=>u?`Expand "${u}"`:"Expand",collapse:u=>u?`Collapse "${u}"`:"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:u=>`Previous ${u} years`,nextRangeYears:u=>`Next ${u} years`},table:{noData:"No data available",noResults:"No matching records found",loading:"Loading...",selectedRecords:u=>u===1?"1 record selected.":(u===0?"No":u)+" records selected.",recordsPerPage:"Records per page:",allRows:"All",pagination:(u,P,t)=>u+"-"+P+" of "+t,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 As(){const u=Array.isArray(navigator.languages)===!0&&navigator.languages.length!==0?navigator.languages[0]:navigator.language;if(typeof u=="string")return u.split(/[-_]/).map((P,t)=>t===0?P.toLowerCase():t>1||P.length<4?P.toUpperCase():P[0].toUpperCase()+P.slice(1).toLowerCase()).join("-")}const Gt=Go({__qLang:{}},{getLocale:As,set(u=ui,P){const t={...u,rtl:u.rtl===!0,getLocale:As};{if(t.set=Gt.set,Gt.__langConfig===void 0||Gt.__langConfig.noHtmlAttrs!==!0){const v=document.documentElement;v.setAttribute("dir",t.rtl===!0?"rtl":"ltr"),v.setAttribute("lang",t.isoName)}Object.assign(Gt.__qLang,t)}},install({$q:u,lang:P,ssrContext:t}){u.lang=Gt.__qLang,Gt.__langConfig=u.config.lang,this.__installed===!0?P!==void 0&&this.set(P):(this.props=new Proxy(this.__qLang,{get(){return Reflect.get(...arguments)},ownKeys(v){return Reflect.ownKeys(v).filter(b=>b!=="set"&&b!=="getLocale")}}),this.set(P||ui))}}),No=864e5,wu=36e5,ci=6e4,Bo="YYYY-MM-DDTHH:mm:ss.SSSZ",_u=/\[((?:[^\]\\]|\\]|\\)*)\]|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,xu=/(\[[^\]]*\])|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,Un={};function Su(u,P){const t="("+P.days.join("|")+")",v=u+t;if(Un[v]!==void 0)return Un[v];const b="("+P.daysShort.join("|")+")",f="("+P.months.join("|")+")",o="("+P.monthsShort.join("|")+")",a={};let n=0;const e=u.replace(xu,l=>{switch(n++,l){case"YY":return a.YY=n,"(-?\\d{1,2})";case"YYYY":return a.YYYY=n,"(-?\\d{1,4})";case"M":return a.M=n,"(\\d{1,2})";case"Mo":return a.M=n++,"(\\d{1,2}(st|nd|rd|th))";case"MM":return a.M=n,"(\\d{2})";case"MMM":return a.MMM=n,o;case"MMMM":return a.MMMM=n,f;case"D":return a.D=n,"(\\d{1,2})";case"Do":return a.D=n++,"(\\d{1,2}(st|nd|rd|th))";case"DD":return a.D=n,"(\\d{2})";case"H":return a.H=n,"(\\d{1,2})";case"HH":return a.H=n,"(\\d{2})";case"h":return a.h=n,"(\\d{1,2})";case"hh":return a.h=n,"(\\d{2})";case"m":return a.m=n,"(\\d{1,2})";case"mm":return a.m=n,"(\\d{2})";case"s":return a.s=n,"(\\d{1,2})";case"ss":return a.s=n,"(\\d{2})";case"S":return a.S=n,"(\\d{1})";case"SS":return a.S=n,"(\\d{2})";case"SSS":return a.S=n,"(\\d{3})";case"A":return a.A=n,"(AM|PM)";case"a":return a.a=n,"(am|pm)";case"aa":return a.aa=n,"(a\\.m\\.|p\\.m\\.)";case"ddd":return b;case"dddd":return t;case"Q":case"d":case"E":return"(\\d{1})";case"do":return n++,"(\\d{1}(st|nd|rd|th))";case"Qo":return"(1st|2nd|3rd|4th)";case"DDD":case"DDDD":return"(\\d{1,3})";case"DDDo":return n++,"(\\d{1,3}(st|nd|rd|th))";case"w":return"(\\d{1,2})";case"wo":return n++,"(\\d{1,2}(st|nd|rd|th))";case"ww":return"(\\d{2})";case"Z":return a.Z=n,"(Z|[+-]\\d{2}:\\d{2})";case"ZZ":return a.ZZ=n,"(Z|[+-]\\d{2}\\d{2})";case"X":return a.X=n,"(-?\\d+)";case"x":return a.x=n,"(-?\\d{4,})";default:return n--,l[0]==="["&&(l=l.substring(1,l.length-1)),l.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}}),r={map:a,regex:new RegExp("^"+e)};return Un[v]=r,r}function Do(u,P){return u!==void 0?u:P!==void 0?P.date:ui.date}function Rs(u,P=""){const t=u>0?"-":"+",v=Math.abs(u),b=Math.floor(v/60),f=v%60;return t+mt(b)+P+mt(f)}function ku(u,P,t){let v=u.getFullYear(),b=u.getMonth();const f=u.getDate();return P.year!==void 0&&(v+=t*P.year,delete P.year),P.month!==void 0&&(b+=t*P.month,delete P.month),u.setDate(1),u.setMonth(2),u.setFullYear(v),u.setMonth(b),u.setDate(Math.min(f,Li(u))),P.date!==void 0&&(u.setDate(u.getDate()+t*P.date),delete P.date),u}function Cu(u,P,t){const v=P.year!==void 0?P.year:u[`get${t}FullYear`](),b=P.month!==void 0?P.month-1:u[`get${t}Month`](),f=new Date(v,b+1,0).getDate(),o=Math.min(f,P.date!==void 0?P.date:u[`get${t}Date`]());return u[`set${t}Date`](1),u[`set${t}Month`](2),u[`set${t}FullYear`](v),u[`set${t}Month`](b),u[`set${t}Date`](o),delete P.year,delete P.month,delete P.date,u}function Di(u,P,t){const v=Fo(P),b=new Date(u),f=v.year!==void 0||v.month!==void 0||v.date!==void 0?ku(b,v,t):b;for(const o in v){const a=Ga(o);f[`set${a}`](f[`get${a}`]()+t*v[o])}return f}function Fo(u){const P={...u};return u.years!==void 0&&(P.year=u.years,delete P.years),u.months!==void 0&&(P.month=u.months,delete P.months),u.days!==void 0&&(P.date=u.days,delete P.days),u.day!==void 0&&(P.date=u.day,delete P.day),u.hour!==void 0&&(P.hours=u.hour,delete P.hour),u.minute!==void 0&&(P.minutes=u.minute,delete P.minute),u.second!==void 0&&(P.seconds=u.second,delete P.second),u.millisecond!==void 0&&(P.milliseconds=u.millisecond,delete P.millisecond),P}function Lo(u,P,t){const v=Fo(P),b=t===!0?"UTC":"",f=new Date(u),o=v.year!==void 0||v.month!==void 0||v.date!==void 0?Cu(f,v,b):f;for(const a in v){const n=a.charAt(0).toUpperCase()+a.slice(1);o[`set${b}${n}`](v[a])}return o}function Mu(u,P,t){const v=zo(u,P,t),b=new Date(v.year,v.month===null?null:v.month-1,v.day===null?1:v.day,v.hour,v.minute,v.second,v.millisecond),f=b.getTimezoneOffset();return v.timezoneOffset===null||v.timezoneOffset===f?b:Di(b,{minutes:v.timezoneOffset-f},1)}function zo(u,P,t,v,b){const f={year:null,month:null,day:null,hour:null,minute:null,second:null,millisecond:null,timezoneOffset:null,dateHash:null,timeHash:null};if(b!==void 0&&Object.assign(f,b),u==null||u===""||typeof u!="string")return f;P===void 0&&(P=Bo);const o=Do(t,Gt.props),a=o.months,n=o.monthsShort,{regex:e,map:r}=Su(P,o),l=u.match(e);if(l===null)return f;let s="";if(r.X!==void 0||r.x!==void 0){const i=parseInt(l[r.X!==void 0?r.X:r.x],10);if(isNaN(i)===!0||i<0)return f;const d=new Date(i*(r.X!==void 0?1e3:1));f.year=d.getFullYear(),f.month=d.getMonth()+1,f.day=d.getDate(),f.hour=d.getHours(),f.minute=d.getMinutes(),f.second=d.getSeconds(),f.millisecond=d.getMilliseconds()}else{if(r.YYYY!==void 0)f.year=parseInt(l[r.YYYY],10);else if(r.YY!==void 0){const i=parseInt(l[r.YY],10);f.year=i<0?i:2e3+i}if(r.M!==void 0){if(f.month=parseInt(l[r.M],10),f.month<1||f.month>12)return f}else r.MMM!==void 0?f.month=n.indexOf(l[r.MMM])+1:r.MMMM!==void 0&&(f.month=a.indexOf(l[r.MMMM])+1);if(r.D!==void 0){if(f.day=parseInt(l[r.D],10),f.year===null||f.month===null||f.day<1)return f;const i=v!=="persian"?new Date(f.year,f.month,0).getDate():un(f.year,f.month);if(f.day>i)return f}r.H!==void 0?f.hour=parseInt(l[r.H],10)%24:r.h!==void 0&&(f.hour=parseInt(l[r.h],10)%12,(r.A&&l[r.A]==="PM"||r.a&&l[r.a]==="pm"||r.aa&&l[r.aa]==="p.m.")&&(f.hour+=12),f.hour=f.hour%24),r.m!==void 0&&(f.minute=parseInt(l[r.m],10)%60),r.s!==void 0&&(f.second=parseInt(l[r.s],10)%60),r.S!==void 0&&(f.millisecond=parseInt(l[r.S],10)*10**(3-l[r.S].length)),(r.Z!==void 0||r.ZZ!==void 0)&&(s=r.Z!==void 0?l[r.Z].replace(":",""):l[r.ZZ],f.timezoneOffset=(s[0]==="+"?-1:1)*(60*s.slice(1,3)+1*s.slice(3,5)))}return f.dateHash=mt(f.year,4)+"/"+mt(f.month)+"/"+mt(f.day),f.timeHash=mt(f.hour)+":"+mt(f.minute)+":"+mt(f.second)+s,f}function Eu(u){return typeof u=="number"?!0:isNaN(Date.parse(u))===!1}function Tu(u,P){return Lo(new Date,u,P)}function Au(u){const P=new Date(u).getDay();return P===0?7:P}function cn(u){const P=new Date(u.getFullYear(),u.getMonth(),u.getDate());P.setDate(P.getDate()-(P.getDay()+6)%7+3);const t=new Date(P.getFullYear(),0,4);t.setDate(t.getDate()-(t.getDay()+6)%7+3);const v=P.getTimezoneOffset()-t.getTimezoneOffset();P.setHours(P.getHours()-v);const b=(P-t)/(No*7);return 1+Math.floor(b)}function Ru(u){return u.getFullYear()*1e4+u.getMonth()*100+u.getDate()}function Wn(u,P){const t=new Date(u);return P===!0?Ru(t):t.getTime()}function Ou(u,P,t,v={}){const b=Wn(P,v.onlyDate),f=Wn(t,v.onlyDate),o=Wn(u,v.onlyDate);return(o>b||v.inclusiveFrom===!0&&o===b)&&(o<f||v.inclusiveTo===!0&&o===f)}function ju(u,P){return Di(u,P,1)}function Iu(u,P){return Di(u,P,-1)}function $t(u,P,t){const v=new Date(u),b=`set${t===!0?"UTC":""}`;switch(P){case"year":case"years":v[`${b}Month`](0);case"month":case"months":v[`${b}Date`](1);case"day":case"days":case"date":v[`${b}Hours`](0);case"hour":case"hours":v[`${b}Minutes`](0);case"minute":case"minutes":v[`${b}Seconds`](0);case"second":case"seconds":v[`${b}Milliseconds`](0)}return v}function Pu(u,P,t){const v=new Date(u),b=`set${t===!0?"UTC":""}`;switch(P){case"year":case"years":v[`${b}Month`](11);case"month":case"months":v[`${b}Date`](Li(v));case"day":case"days":case"date":v[`${b}Hours`](23);case"hour":case"hours":v[`${b}Minutes`](59);case"minute":case"minutes":v[`${b}Seconds`](59);case"second":case"seconds":v[`${b}Milliseconds`](999)}return v}function Nu(u){let P=new Date(u);return Array.prototype.slice.call(arguments,1).forEach(t=>{P=Math.max(P,new Date(t))}),P}function Bu(u){let P=new Date(u);return Array.prototype.slice.call(arguments,1).forEach(t=>{P=Math.min(P,new Date(t))}),P}function en(u,P,t){return(u.getTime()-u.getTimezoneOffset()*ci-(P.getTime()-P.getTimezoneOffset()*ci))/t}function Fi(u,P,t="days"){const v=new Date(u),b=new Date(P);switch(t){case"years":case"year":return v.getFullYear()-b.getFullYear();case"months":case"month":return(v.getFullYear()-b.getFullYear())*12+v.getMonth()-b.getMonth();case"days":case"day":case"date":return en($t(v,"day"),$t(b,"day"),No);case"hours":case"hour":return en($t(v,"hour"),$t(b,"hour"),wu);case"minutes":case"minute":return en($t(v,"minute"),$t(b,"minute"),ci);case"seconds":case"second":return en($t(v,"second"),$t(b,"second"),1e3)}}function fn(u){return Fi(u,$t(u,"year"),"days")+1}function Du(u){return _n(u)===!0?"date":typeof u=="number"?"number":"string"}function Fu(u,P,t){const v=new Date(u);if(P){const b=new Date(P);if(v<b)return b}if(t){const b=new Date(t);if(v>b)return b}return v}function Lu(u,P,t){const v=new Date(u),b=new Date(P);if(t===void 0)return v.getTime()===b.getTime();switch(t){case"second":case"seconds":if(v.getSeconds()!==b.getSeconds())return!1;case"minute":case"minutes":if(v.getMinutes()!==b.getMinutes())return!1;case"hour":case"hours":if(v.getHours()!==b.getHours())return!1;case"day":case"days":case"date":if(v.getDate()!==b.getDate())return!1;case"month":case"months":if(v.getMonth()!==b.getMonth())return!1;case"year":case"years":if(v.getFullYear()!==b.getFullYear())return!1;break;default:throw new Error(`date isSameDate unknown unit ${t}`)}return!0}function Li(u){return new Date(u.getFullYear(),u.getMonth()+1,0).getDate()}function vr(u){if(u>=11&&u<=13)return`${u}th`;switch(u%10){case 1:return`${u}st`;case 2:return`${u}nd`;case 3:return`${u}rd`}return`${u}th`}const Os={YY(u,P,t){const v=this.YYYY(u,P,t)%100;return v>=0?mt(v):"-"+mt(Math.abs(v))},YYYY(u,P,t){return t??u.getFullYear()},M(u){return u.getMonth()+1},Mo(u){return vr(u.getMonth()+1)},MM(u){return mt(u.getMonth()+1)},MMM(u,P){return P.monthsShort[u.getMonth()]},MMMM(u,P){return P.months[u.getMonth()]},Q(u){return Math.ceil((u.getMonth()+1)/3)},Qo(u){return vr(this.Q(u))},D(u){return u.getDate()},Do(u){return vr(u.getDate())},DD(u){return mt(u.getDate())},DDD(u){return fn(u)},DDDo(u){return vr(fn(u))},DDDD(u){return mt(fn(u),3)},d(u){return u.getDay()},do(u){return vr(u.getDay())},dd(u,P){return P.days[u.getDay()].slice(0,2)},ddd(u,P){return P.daysShort[u.getDay()]},dddd(u,P){return P.days[u.getDay()]},E(u){return u.getDay()||7},w(u){return cn(u)},wo(u){return vr(cn(u))},ww(u){return mt(cn(u))},H(u){return u.getHours()},HH(u){return mt(u.getHours())},h(u){const P=u.getHours();return P===0?12:P>12?P%12:P},hh(u){return mt(this.h(u))},m(u){return u.getMinutes()},mm(u){return mt(u.getMinutes())},s(u){return u.getSeconds()},ss(u){return mt(u.getSeconds())},S(u){return Math.floor(u.getMilliseconds()/100)},SS(u){return mt(Math.floor(u.getMilliseconds()/10))},SSS(u){return mt(u.getMilliseconds(),3)},A(u){return u.getHours()<12?"AM":"PM"},a(u){return u.getHours()<12?"am":"pm"},aa(u){return u.getHours()<12?"a.m.":"p.m."},Z(u,P,t,v){const b=v??u.getTimezoneOffset();return Rs(b,":")},ZZ(u,P,t,v){const b=v??u.getTimezoneOffset();return Rs(b)},X(u){return Math.floor(u.getTime()/1e3)},x(u){return u.getTime()}};function qo(u,P,t,v,b){if(u!==0&&!u||u===1/0||u===-1/0)return;const f=new Date(u);if(isNaN(f))return;P===void 0&&(P=Bo);const o=Do(t,Gt.props);return P.replace(_u,(a,n)=>a in Os?Os[a](f,o,v,b):n===void 0?a:n.split("\\]").join("]"))}function zu(u){return _n(u)===!0?new Date(u.getTime()):u}const qu={isValid:Eu,extractDate:Mu,buildDate:Tu,getDayOfWeek:Au,getWeekOfYear:cn,isBetweenDates:Ou,addToDate:ju,subtractFromDate:Iu,adjustDate:Lo,startOfDate:$t,endOfDate:Pu,getMaxDate:Nu,getMinDate:Bu,getDateDiff:Fi,getDayOfYear:fn,inferDateFormat:Du,getDateBetween:Fu,isSameDate:Lu,daysInMonth:Li,formatDate:qo,clone:zu},Ht=20,$u=["Calendar","Years","Months"],js=u=>$u.includes(u),Yn=u=>/^-?[\d]+\/[0-1]\d$/.test(u),yr=" — ";function Zt(u){return u.year+"/"+mt(u.month)}const $o=it({name:"QDate",props:{...Ts,...kn,...Bt,modelValue:{required:!0,validator:u=>typeof u=="string"||Array.isArray(u)===!0||Object(u)===u||u===null},multiple:Boolean,range:Boolean,title:String,subtitle:String,mask:{...Ts.mask,default:"YYYY/MM/DD"},defaultYearMonth:{type:String,validator:Yn},yearsInMonthView:Boolean,events:[Array,Function],eventColor:[String,Function],emitImmediately:Boolean,options:[Array,Function],navigationMinYearMonth:{type:String,validator:Yn},navigationMaxYearMonth:{type:String,validator:Yn},noUnset:Boolean,firstDayOfWeek:[String,Number],todayBtn:Boolean,minimal:Boolean,defaultView:{type:String,default:"Calendar",validator:js}},emits:[...vu,"rangeStart","rangeEnd","navigation"],setup(u,{slots:P,emit:t}){const{proxy:v}=C.getCurrentInstance(),{$q:b}=v,f=Dt(u,b),{getCache:o}=fu(),{tabindex:a,headerClass:n,getLocale:e,getCurrentDate:r}=yu(u,b);let l;const s=Ia(u),i=ro(s),d=C.ref(null),h=C.ref(He()),c=C.ref(e()),m=C.computed(()=>He()),p=C.computed(()=>e()),x=C.computed(()=>r()),k=C.ref(Fe(h.value,c.value)),A=C.ref(u.defaultView),N=C.computed(()=>b.lang.rtl===!0?"right":"left"),q=C.ref(N.value),D=C.ref(N.value),F=k.value.year,L=C.ref(F-F%Ht-(F<0?Ht:0)),V=C.ref(null),z=C.computed(()=>{const te=u.landscape===!0?"landscape":"portrait";return`q-date q-date--${te} q-date--${te}-${u.minimal===!0?"minimal":"standard"}`+(f.value===!0?" q-date--dark q-dark":"")+(u.bordered===!0?" q-date--bordered":"")+(u.square===!0?" q-date--square no-border-radius":"")+(u.flat===!0?" q-date--flat no-shadow":"")+(u.disable===!0?" disabled":u.readonly===!0?" q-date--readonly":"")}),M=C.computed(()=>u.color||"primary"),T=C.computed(()=>u.textColor||"white"),S=C.computed(()=>u.emitImmediately===!0&&u.multiple!==!0&&u.range!==!0),g=C.computed(()=>Array.isArray(u.modelValue)===!0?u.modelValue:u.modelValue!==null&&u.modelValue!==void 0?[u.modelValue]:[]),y=C.computed(()=>g.value.filter(te=>typeof te=="string").map(te=>ze(te,h.value,c.value)).filter(te=>te.dateHash!==null&&te.day!==null&&te.month!==null&&te.year!==null)),w=C.computed(()=>{const te=K=>ze(K,h.value,c.value);return g.value.filter(K=>Ao(K)===!0&&K.from!==void 0&&K.to!==void 0).map(K=>({from:te(K.from),to:te(K.to)})).filter(K=>K.from.dateHash!==null&&K.to.dateHash!==null&&K.from.dateHash<K.to.dateHash)}),_=C.computed(()=>u.calendar!=="persian"?te=>new Date(te.year,te.month-1,te.day):te=>{const K=Es(te.year,te.month,te.day);return new Date(K.gy,K.gm-1,K.gd)}),E=C.computed(()=>u.calendar==="persian"?Kt:(te,K,re)=>qo(new Date(te.year,te.month-1,te.day,te.hour,te.minute,te.second,te.millisecond),K===void 0?h.value:K,re===void 0?c.value:re,te.year,te.timezoneOffset)),O=C.computed(()=>y.value.length+w.value.reduce((te,K)=>te+1+Fi(_.value(K.to),_.value(K.from)),0)),j=C.computed(()=>{if(u.title!==void 0&&u.title!==null&&u.title.length!==0)return u.title;if(V.value!==null){const re=V.value.init,le=_.value(re);return c.value.daysShort[le.getDay()]+", "+c.value.monthsShort[re.month-1]+" "+re.day+yr+"?"}if(O.value===0)return yr;if(O.value>1)return`${O.value} ${c.value.pluralDay}`;const te=y.value[0],K=_.value(te);return isNaN(K.valueOf())===!0?yr:c.value.headerTitle!==void 0?c.value.headerTitle(K,te):c.value.daysShort[K.getDay()]+", "+c.value.monthsShort[te.month-1]+" "+te.day}),H=C.computed(()=>y.value.concat(w.value.map(K=>K.from)).sort((K,re)=>K.year-re.year||K.month-re.month)[0]),U=C.computed(()=>y.value.concat(w.value.map(K=>K.to)).sort((K,re)=>re.year-K.year||re.month-K.month)[0]),X=C.computed(()=>{if(u.subtitle!==void 0&&u.subtitle!==null&&u.subtitle.length!==0)return u.subtitle;if(O.value===0)return yr;if(O.value>1){const te=H.value,K=U.value,re=c.value.monthsShort;return re[te.month-1]+(te.year!==K.year?" "+te.year+yr+re[K.month-1]+" ":te.month!==K.month?yr+re[K.month-1]:"")+" "+K.year}return y.value[0].year}),B=C.computed(()=>{const te=[b.iconSet.datetime.arrowLeft,b.iconSet.datetime.arrowRight];return b.lang.rtl===!0?te.reverse():te}),W=C.computed(()=>u.firstDayOfWeek!==void 0?Number(u.firstDayOfWeek):c.value.firstDayOfWeek),I=C.computed(()=>{const te=c.value.daysShort,K=W.value;return K>0?te.slice(K,7).concat(te.slice(0,K)):te}),R=C.computed(()=>{const te=k.value;return u.calendar!=="persian"?new Date(te.year,te.month,0).getDate():un(te.year,te.month)}),$=C.computed(()=>typeof u.eventColor=="function"?u.eventColor:()=>u.eventColor),Y=C.computed(()=>{if(u.navigationMinYearMonth===void 0)return null;const te=u.navigationMinYearMonth.split("/");return{year:parseInt(te[0],10),month:parseInt(te[1],10)}}),J=C.computed(()=>{if(u.navigationMaxYearMonth===void 0)return null;const te=u.navigationMaxYearMonth.split("/");return{year:parseInt(te[0],10),month:parseInt(te[1],10)}}),Z=C.computed(()=>{const te={month:{prev:!0,next:!0},year:{prev:!0,next:!0}};return Y.value!==null&&Y.value.year>=k.value.year&&(te.year.prev=!1,Y.value.year===k.value.year&&Y.value.month>=k.value.month&&(te.month.prev=!1)),J.value!==null&&J.value.year<=k.value.year&&(te.year.next=!1,J.value.year===k.value.year&&J.value.month<=k.value.month&&(te.month.next=!1)),te}),ee=C.computed(()=>{const te={};return y.value.forEach(K=>{const re=Zt(K);te[re]===void 0&&(te[re]=[]),te[re].push(K.day)}),te}),ae=C.computed(()=>{const te={};return w.value.forEach(K=>{const re=Zt(K.from),le=Zt(K.to);if(te[re]===void 0&&(te[re]=[]),te[re].push({from:K.from.day,to:re===le?K.to.day:void 0,range:K}),re<le){let pe;const{year:Me,month:be}=K.from,ke=be<12?{year:Me,month:be+1}:{year:Me+1,month:1};for(;(pe=Zt(ke))<=le;)te[pe]===void 0&&(te[pe]=[]),te[pe].push({from:void 0,to:pe===le?K.to.day:void 0,range:K}),ke.month++,ke.month>12&&(ke.year++,ke.month=1)}}),te}),se=C.computed(()=>{if(V.value===null)return;const{init:te,initHash:K,final:re,finalHash:le}=V.value,[pe,Me]=K<=le?[te,re]:[re,te],be=Zt(pe),ke=Zt(Me);if(be!==G.value&&ke!==G.value)return;const Re={};return be===G.value?(Re.from=pe.day,Re.includeFrom=!0):Re.from=1,ke===G.value?(Re.to=Me.day,Re.includeTo=!0):Re.to=R.value,Re}),G=C.computed(()=>Zt(k.value)),ne=C.computed(()=>{const te={};if(u.options===void 0){for(let re=1;re<=R.value;re++)te[re]=!0;return te}const K=typeof u.options=="function"?u.options:re=>u.options.includes(re);for(let re=1;re<=R.value;re++){const le=G.value+"/"+mt(re);te[re]=K(le)}return te}),ie=C.computed(()=>{const te={};if(u.events===void 0)for(let K=1;K<=R.value;K++)te[K]=!1;else{const K=typeof u.events=="function"?u.events:re=>u.events.includes(re);for(let re=1;re<=R.value;re++){const le=G.value+"/"+mt(re);te[re]=K(le)===!0&&$.value(le)}}return te}),fe=C.computed(()=>{let te,K;const{year:re,month:le}=k.value;if(u.calendar!=="persian")te=new Date(re,le-1,1),K=new Date(re,le-1,0).getDate();else{const pe=Es(re,le,1);te=new Date(pe.gy,pe.gm-1,pe.gd);let Me=le-1,be=re;Me===0&&(Me=12,be--),K=un(be,Me)}return{days:te.getDay()-W.value-1,endDay:K}}),ce=C.computed(()=>{const te=[],{days:K,endDay:re}=fe.value,le=K<0?K+7:K;if(le<6)for(let be=re-le;be<=re;be++)te.push({i:be,fill:!0});const pe=te.length;for(let be=1;be<=R.value;be++){const ke={i:be,event:ie.value[be],classes:[]};ne.value[be]===!0&&(ke.in=!0,ke.flat=!0),te.push(ke)}if(ee.value[G.value]!==void 0&&ee.value[G.value].forEach(be=>{const ke=pe+be-1;Object.assign(te[ke],{selected:!0,unelevated:!0,flat:!1,color:M.value,textColor:T.value})}),ae.value[G.value]!==void 0&&ae.value[G.value].forEach(be=>{if(be.from!==void 0){const ke=pe+be.from-1,Re=pe+(be.to||R.value)-1;for(let $e=ke;$e<=Re;$e++)Object.assign(te[$e],{range:be.range,unelevated:!0,color:M.value,textColor:T.value});Object.assign(te[ke],{rangeFrom:!0,flat:!1}),be.to!==void 0&&Object.assign(te[Re],{rangeTo:!0,flat:!1})}else if(be.to!==void 0){const ke=pe+be.to-1;for(let Re=pe;Re<=ke;Re++)Object.assign(te[Re],{range:be.range,unelevated:!0,color:M.value,textColor:T.value});Object.assign(te[ke],{flat:!1,rangeTo:!0})}else{const ke=pe+R.value-1;for(let Re=pe;Re<=ke;Re++)Object.assign(te[Re],{range:be.range,unelevated:!0,color:M.value,textColor:T.value})}}),se.value!==void 0){const be=pe+se.value.from-1,ke=pe+se.value.to-1;for(let Re=be;Re<=ke;Re++)te[Re].color=M.value,te[Re].editRange=!0;se.value.includeFrom===!0&&(te[be].editRangeFrom=!0),se.value.includeTo===!0&&(te[ke].editRangeTo=!0)}k.value.year===x.value.year&&k.value.month===x.value.month&&(te[pe+x.value.day-1].today=!0);const Me=te.length%7;if(Me>0){const be=7-Me;for(let ke=1;ke<=be;ke++)te.push({i:ke,fill:!0})}return te.forEach(be=>{let ke="q-date__calendar-item ";be.fill===!0?ke+="q-date__calendar-item--fill":(ke+=`q-date__calendar-item--${be.in===!0?"in":"out"}`,be.range!==void 0&&(ke+=` q-date__range${be.rangeTo===!0?"-to":be.rangeFrom===!0?"-from":""}`),be.editRange===!0&&(ke+=` q-date__edit-range${be.editRangeFrom===!0?"-from":""}${be.editRangeTo===!0?"-to":""}`),(be.range!==void 0||be.editRange===!0)&&(ke+=` text-${be.color}`)),be.classes=ke}),te}),de=C.computed(()=>u.disable===!0?{"aria-disabled":"true"}:{});C.watch(()=>u.modelValue,te=>{if(l===JSON.stringify(te))l=0;else{const K=Fe(h.value,c.value);Je(K.year,K.month,K)}}),C.watch(A,()=>{d.value!==null&&v.$el.contains(document.activeElement)===!0&&d.value.focus()}),C.watch(()=>k.value.year+"|"+k.value.month,()=>{t("navigation",{year:k.value.year,month:k.value.month})}),C.watch(m,te=>{we(te,c.value,"mask"),h.value=te}),C.watch(p,te=>{we(h.value,te,"locale"),c.value=te});function me(te){l=JSON.stringify(te)}function ge(){const{year:te,month:K,day:re}=x.value,le={...k.value,year:te,month:K,day:re},pe=ee.value[Zt(le)];(pe===void 0||pe.includes(le.day)===!1)&&ot(le),Ee(le.year,le.month)}function _e(te){js(te)===!0&&(A.value=te)}function je(te,K){["month","year"].includes(te)&&(te==="month"?Pe:Se)(K===!0?-1:1)}function Ee(te,K){A.value="Calendar",Je(te,K)}function Te(te,K){if(u.range===!1||!te){V.value=null;return}const re=Object.assign({...k.value},te),le=K!==void 0?Object.assign({...k.value},K):re;V.value={init:re,initHash:Kt(re),final:le,finalHash:Kt(le)},Ee(re.year,re.month)}function He(){return u.calendar==="persian"?"YYYY/MM/DD":u.mask}function ze(te,K,re){return zo(te,K,re,u.calendar,{hour:0,minute:0,second:0,millisecond:0})}function Fe(te,K){const re=Array.isArray(u.modelValue)===!0?u.modelValue:u.modelValue?[u.modelValue]:[];if(re.length===0)return qe();const le=re[re.length-1],pe=ze(le.from!==void 0?le.from:le,te,K);return pe.dateHash===null?qe():pe}function qe(){let te,K;if(u.defaultYearMonth!==void 0){const re=u.defaultYearMonth.split("/");te=parseInt(re[0],10),K=parseInt(re[1],10)}else{const re=x.value!==void 0?x.value:r();te=re.year,K=re.month}return{year:te,month:K,day:1,hour:0,minute:0,second:0,millisecond:0,dateHash:te+"/"+mt(K)+"/01"}}function Pe(te){let K=k.value.year,re=Number(k.value.month)+te;re===13?(re=1,K++):re===0&&(re=12,K--),Je(K,re),S.value===!0&&rt("month")}function Se(te){const K=Number(k.value.year)+te;Je(K,k.value.month),S.value===!0&&rt("year")}function Be(te){Je(te,k.value.month),A.value=u.defaultView==="Years"?"Months":"Calendar",S.value===!0&&rt("year")}function Ve(te){Je(k.value.year,te),A.value="Calendar",S.value===!0&&rt("month")}function Le(te,K){(ee.value[K]?.includes(te.day)===!0?he:ot)(te)}function Ze(te){return{year:te.year,month:te.month,day:te.day}}function Je(te,K,re){if(Y.value!==null&&te<=Y.value.year&&((K<Y.value.month||te<Y.value.year)&&(K=Y.value.month),te=Y.value.year),J.value!==null&&te>=J.value.year&&((K>J.value.month||te>J.value.year)&&(K=J.value.month),te=J.value.year),re!==void 0){const{hour:pe,minute:Me,second:be,millisecond:ke,timezoneOffset:Re,timeHash:$e}=re;Object.assign(k.value,{hour:pe,minute:Me,second:be,millisecond:ke,timezoneOffset:Re,timeHash:$e})}const le=te+"/"+mt(K)+"/01";le!==k.value.dateHash&&(q.value=k.value.dateHash<le==(b.lang.rtl!==!0)?"left":"right",te!==k.value.year&&(D.value=q.value),C.nextTick(()=>{L.value=te-te%Ht-(te<0?Ht:0),Object.assign(k.value,{year:te,month:K,day:1,dateHash:le})}))}function Ue(te,K,re){const le=te!==null&&te.length===1&&u.multiple===!1?te[0]:te,{reason:pe,details:Me}=et(K,re);me(le),t("update:modelValue",le,pe,Me)}function rt(te){const K=y.value[0]!==void 0&&y.value[0].dateHash!==null?{...y.value[0]}:{...k.value};C.nextTick(()=>{K.year=k.value.year,K.month=k.value.month;const re=u.calendar!=="persian"?new Date(K.year,K.month,0).getDate():un(K.year,K.month);K.day=Math.min(Math.max(1,K.day),re);const le=We(K),{details:pe}=et("",K);me(le),t("update:modelValue",le,te,pe)})}function et(te,K){return K.from!==void 0?{reason:`${te}-range`,details:{...Ze(K.target),from:Ze(K.from),to:Ze(K.to)}}:{reason:`${te}-day`,details:Ze(K)}}function We(te,K,re){return te.from!==void 0?{from:E.value(te.from,K,re),to:E.value(te.to,K,re)}:E.value(te,K,re)}function ot(te){let K;if(u.multiple===!0)if(te.from!==void 0){const re=Kt(te.from),le=Kt(te.to),pe=y.value.filter(be=>be.dateHash<re||be.dateHash>le),Me=w.value.filter(({from:be,to:ke})=>ke.dateHash<re||be.dateHash>le);K=pe.concat(Me).concat(te).map(be=>We(be))}else{const re=g.value.slice();re.push(We(te)),K=re}else K=We(te);Ue(K,"add",te)}function he(te){if(u.noUnset===!0)return;let K=null;if(u.multiple===!0&&Array.isArray(u.modelValue)===!0){const re=We(te);te.from!==void 0?K=u.modelValue.filter(le=>le.from!==void 0?le.from!==re.from&&le.to!==re.to:!0):K=u.modelValue.filter(le=>le!==re),K.length===0&&(K=null)}Ue(K,"remove",te)}function we(te,K,re){const le=y.value.concat(w.value).map(Me=>We(Me,te,K)).filter(Me=>Me.from!==void 0?Me.from.dateHash!==null&&Me.to.dateHash!==null:Me.dateHash!==null),pe=(u.multiple===!0?le:le[0])||null;me(pe),t("update:modelValue",pe,re)}function Ae(){if(u.minimal!==!0)return C.h("div",{class:"q-date__header "+n.value},[C.h("div",{class:"relative-position"},[C.h(C.Transition,{name:"q-transition--fade"},()=>C.h("div",{key:"h-yr-"+X.value,class:"q-date__header-subtitle q-date__header-link "+(A.value==="Years"?"q-date__header-link--active":"cursor-pointer"),tabindex:a.value,...o("vY",{onClick(){A.value="Years"},onKeyup(te){te.keyCode===13&&(A.value="Years")}})},[X.value]))]),C.h("div",{class:"q-date__header-title relative-position flex no-wrap"},[C.h("div",{class:"relative-position col"},[C.h(C.Transition,{name:"q-transition--fade"},()=>C.h("div",{key:"h-sub"+j.value,class:"q-date__header-title-label q-date__header-link "+(A.value==="Calendar"?"q-date__header-link--active":"cursor-pointer"),tabindex:a.value,...o("vC",{onClick(){A.value="Calendar"},onKeyup(te){te.keyCode===13&&(A.value="Calendar")}})},[j.value]))]),u.todayBtn===!0?C.h(wt,{class:"q-date__header-today self-start",icon:b.iconSet.datetime.today,"aria-label":b.lang.date.today,flat:!0,size:"sm",round:!0,tabindex:a.value,onClick:ge}):null])])}function Ie({label:te,type:K,key:re,dir:le,goTo:pe,boundaries:Me,cls:be}){return[C.h("div",{class:"row items-center q-date__arrow"},[C.h(wt,{round:!0,dense:!0,size:"sm",flat:!0,icon:B.value[0],"aria-label":K==="Years"?b.lang.date.prevYear:b.lang.date.prevMonth,tabindex:a.value,disable:Me.prev===!1,...o("go-#"+K,{onClick(){pe(-1)}})})]),C.h("div",{class:"relative-position overflow-hidden flex flex-center"+be},[C.h(C.Transition,{name:"q-transition--jump-"+le},()=>C.h("div",{key:re},[C.h(wt,{flat:!0,dense:!0,noCaps:!0,label:te,tabindex:a.value,...o("view#"+K,{onClick:()=>{A.value=K}})})]))]),C.h("div",{class:"row items-center q-date__arrow"},[C.h(wt,{round:!0,dense:!0,size:"sm",flat:!0,icon:B.value[1],"aria-label":K==="Years"?b.lang.date.nextYear:b.lang.date.nextMonth,tabindex:a.value,disable:Me.next===!1,...o("go+#"+K,{onClick(){pe(1)}})})])]}const Ce={Calendar:()=>[C.h("div",{key:"calendar-view",class:"q-date__view q-date__calendar"},[C.h("div",{class:"q-date__navigation row items-center no-wrap"},Ie({label:c.value.months[k.value.month-1],type:"Months",key:k.value.month,dir:q.value,goTo:Pe,boundaries:Z.value.month,cls:" col"}).concat(Ie({label:k.value.year,type:"Years",key:k.value.year,dir:D.value,goTo:Se,boundaries:Z.value.year,cls:""}))),C.h("div",{class:"q-date__calendar-weekdays row items-center no-wrap"},I.value.map(te=>C.h("div",{class:"q-date__calendar-item"},[C.h("div",te)]))),C.h("div",{class:"q-date__calendar-days-container relative-position overflow-hidden"},[C.h(C.Transition,{name:"q-transition--slide-"+q.value},()=>C.h("div",{key:G.value,class:"q-date__calendar-days fit"},ce.value.map(te=>C.h("div",{class:te.classes},[te.in===!0?C.h(wt,{class:te.today===!0?"q-date__today":"",dense:!0,flat:te.flat,unelevated:te.unelevated,color:te.color,textColor:te.textColor,label:te.i,tabindex:a.value,...o("day#"+te.i,{onClick:()=>{Ye(te.i)},onMouseover:()=>{Xe(te.i)}})},te.event!==!1?()=>C.h("div",{class:"q-date__event bg-"+te.event}):null):C.h("div",""+te.i)]))))])])],Months(){const te=k.value.year===x.value.year,K=le=>Y.value!==null&&k.value.year===Y.value.year&&Y.value.month>le||J.value!==null&&k.value.year===J.value.year&&J.value.month<le,re=c.value.monthsShort.map((le,pe)=>{const Me=k.value.month===pe+1;return C.h("div",{class:"q-date__months-item flex flex-center"},[C.h(wt,{class:te===!0&&x.value.month===pe+1?"q-date__today":null,flat:Me!==!0,label:le,unelevated:Me,color:Me===!0?M.value:null,textColor:Me===!0?T.value:null,tabindex:a.value,disable:K(pe+1),...o("month#"+pe,{onClick:()=>{Ve(pe+1)}})})])});return u.yearsInMonthView===!0&&re.unshift(C.h("div",{class:"row no-wrap full-width"},[Ie({label:k.value.year,type:"Years",key:k.value.year,dir:D.value,goTo:Se,boundaries:Z.value.year,cls:" col"})])),C.h("div",{key:"months-view",class:"q-date__view q-date__months flex flex-center"},re)},Years(){const te=L.value,K=te+Ht,re=[],le=pe=>Y.value!==null&&Y.value.year>pe||J.value!==null&&J.value.year<pe;for(let pe=te;pe<=K;pe++){const Me=k.value.year===pe;re.push(C.h("div",{class:"q-date__years-item flex flex-center"},[C.h(wt,{key:"yr"+pe,class:x.value.year===pe?"q-date__today":null,flat:!Me,label:pe,dense:!0,unelevated:Me,color:Me===!0?M.value:null,textColor:Me===!0?T.value:null,tabindex:a.value,disable:le(pe),...o("yr#"+pe,{onClick:()=>{Be(pe)}})})]))}return C.h("div",{class:"q-date__view q-date__years flex flex-center"},[C.h("div",{class:"col-auto"},[C.h(wt,{round:!0,dense:!0,flat:!0,icon:B.value[0],"aria-label":b.lang.date.prevRangeYears(Ht),tabindex:a.value,disable:le(te),...o("y-",{onClick:()=>{L.value-=Ht}})})]),C.h("div",{class:"q-date__years-content col self-stretch row items-center"},re),C.h("div",{class:"col-auto"},[C.h(wt,{round:!0,dense:!0,flat:!0,icon:B.value[1],"aria-label":b.lang.date.nextRangeYears(Ht),tabindex:a.value,disable:le(K),...o("y+",{onClick:()=>{L.value+=Ht}})})])])}};function Ye(te){const K={...k.value,day:te};if(u.range===!1){Le(K,G.value);return}if(V.value===null){const re=ce.value.find(pe=>pe.fill!==!0&&pe.i===te);if(u.noUnset!==!0&&re.range!==void 0){he({target:K,from:re.range.from,to:re.range.to});return}if(re.selected===!0){he(K);return}const le=Kt(K);V.value={init:K,initHash:le,final:K,finalHash:le},t("rangeStart",Ze(K))}else{const re=V.value.initHash,le=Kt(K),pe=re<=le?{from:V.value.init,to:K}:{from:K,to:V.value.init};V.value=null,ot(re===le?K:{target:K,...pe}),t("rangeEnd",{from:Ze(pe.from),to:Ze(pe.to)})}}function Xe(te){if(V.value!==null){const K={...k.value,day:te};Object.assign(V.value,{final:K,finalHash:Kt(K)})}}return Object.assign(v,{setToday:ge,setView:_e,offsetCalendar:je,setCalendarTo:Ee,setEditingRange:Te}),()=>{const te=[C.h("div",{class:"q-date__content col relative-position"},[C.h(C.Transition,{name:"q-transition--fade"},Ce[A.value])])],K=vt(P.default);return K!==void 0&&te.push(C.h("div",{class:"q-date__actions"},K)),u.name!==void 0&&u.disable!==!0&&i(te,"push"),C.h("div",{class:z.value,...de.value},[Ae(),C.h("div",{ref:d,class:"q-date__main col column",tabindex:-1},te)])}}}),Vo=it({name:"QPopupProxy",props:{...co,breakpoint:{type:[String,Number],default:450}},emits:["show","hide"],setup(u,{slots:P,emit:t,attrs:v}){const{proxy:b}=C.getCurrentInstance(),{$q:f}=b,o=C.ref(!1),a=C.ref(null),n=C.computed(()=>parseInt(u.breakpoint,10)),{canShow:e}=Si({showing:o});function r(){return f.screen.width<n.value||f.screen.height<n.value?"dialog":"menu"}const l=C.ref(r()),s=C.computed(()=>l.value==="menu"?{maxHeight:"99vh"}:{});C.watch(()=>r(),h=>{o.value!==!0&&(l.value=h)});function i(h){o.value=!0,t("show",h)}function d(h){o.value=!1,l.value=r(),t("hide",h)}return Object.assign(b,{show(h){e(h)===!0&&a.value.show(h)},hide(h){a.value.hide(h)},toggle(h){a.value.toggle(h)}}),Lt(b,"currentComponent",()=>({type:l.value,ref:a.value})),()=>{const h={ref:a,...s.value,...v,onShow:i,onHide:d};let c;return l.value==="dialog"?c=So:(c=En,Object.assign(h,{target:u.target,contextMenu:u.contextMenu,noParentEvent:!0,separateClosePopup:!0})),C.h(c,h,P.default)}}}),Is={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},xn={"#":{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:u=>u.toLocaleUpperCase()},a:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:u=>u.toLocaleLowerCase()},X:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:u=>u.toLocaleUpperCase()},x:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:u=>u.toLocaleLowerCase()}},Ho=Object.keys(xn);Ho.forEach(u=>{xn[u].regex=new RegExp(xn[u].pattern)});const Vu=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+Ho.join("")+"])|(.)","g"),Ps=/[.*+?^${}()|[\]\\]/g,Ct="",Hu={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean};function Uu(u,P,t,v){let b,f,o,a,n,e;const r=C.ref(null),l=C.ref(i());function s(){return u.autogrow===!0||["textarea","text","search","url","tel","password"].includes(u.type)}C.watch(()=>u.type+u.autogrow,h),C.watch(()=>u.mask,F=>{if(F!==void 0)c(l.value,!0);else{const L=q(l.value);h(),u.modelValue!==L&&P("update:modelValue",L)}}),C.watch(()=>u.fillMask+u.reverseFillMask,()=>{r.value===!0&&c(l.value,!0)}),C.watch(()=>u.unmaskedValue,()=>{r.value===!0&&c(l.value)});function i(){if(h(),r.value===!0){const F=A(q(u.modelValue));return u.fillMask!==!1?D(F):F}return u.modelValue}function d(F){if(F<b.length)return b.slice(-F);let L="",V=b;const z=V.indexOf(Ct);if(z!==-1){for(let M=F-V.length;M>0;M--)L+=Ct;V=V.slice(0,z)+L+V.slice(z)}return V}function h(){if(r.value=u.mask!==void 0&&u.mask.length!==0&&s(),r.value===!1){a=void 0,b="",f="";return}const F=Is[u.mask]===void 0?u.mask:Is[u.mask],L=typeof u.fillMask=="string"&&u.fillMask.length!==0?u.fillMask.slice(0,1):"_",V=L.replace(Ps,"\\$&"),z=[],M=[],T=[];let S=u.reverseFillMask===!0,g="",y="";F.replace(Vu,(O,j,H,U,X)=>{if(U!==void 0){const B=xn[U];T.push(B),y=B.negate,S===!0&&(M.push("(?:"+y+"+)?("+B.pattern+"+)?(?:"+y+"+)?("+B.pattern+"+)?"),S=!1),M.push("(?:"+y+"+)?("+B.pattern+")?")}else if(H!==void 0)g="\\"+(H==="\\"?"":H),T.push(H),z.push("([^"+g+"]+)?"+g+"?");else{const B=j!==void 0?j:X;g=B==="\\"?"\\\\\\\\":B.replace(Ps,"\\\\$&"),T.push(B),z.push("([^"+g+"]+)?"+g+"?")}});const w=new RegExp("^"+z.join("")+"("+(g===""?".":"[^"+g+"]")+"+)?"+(g===""?"":"["+g+"]*")+"$"),_=M.length-1,E=M.map((O,j)=>j===0&&u.reverseFillMask===!0?new RegExp("^"+V+"*"+O):j===_?new RegExp("^"+O+"("+(y===""?".":y)+"+)?"+(u.reverseFillMask===!0?"$":V+"*")):new RegExp("^"+O));o=T,a=O=>{const j=w.exec(u.reverseFillMask===!0?O:O.slice(0,T.length+1));j!==null&&(O=j.slice(1).join(""));const H=[],U=E.length;for(let X=0,B=O;X<U;X++){const W=E[X].exec(B);if(W===null)break;B=B.slice(W.shift().length),H.push(...W)}return H.length!==0?H.join(""):O},b=T.map(O=>typeof O=="string"?O:Ct).join(""),f=b.split(Ct).join(L)}function c(F,L,V){const z=v.value,M=z.selectionEnd,T=z.value.length-M,S=q(F);L===!0&&h();const g=A(S),y=u.fillMask!==!1?D(g):g,w=l.value!==y;z.value!==y&&(z.value=y),w===!0&&(l.value=y),document.activeElement===z&&C.nextTick(()=>{if(y===f){const E=u.reverseFillMask===!0?f.length:0;z.setSelectionRange(E,E,"forward");return}if(V==="insertFromPaste"&&u.reverseFillMask!==!0){const E=z.selectionEnd;let O=M-1;for(let j=n;j<=O&&j<E;j++)b[j]!==Ct&&O++;p.right(z,O);return}if(["deleteContentBackward","deleteContentForward"].indexOf(V)!==-1){const E=u.reverseFillMask===!0?M===0?y.length>g.length?1:0:Math.max(0,y.length-(y===f?0:Math.min(g.length,T)+1))+1:M;z.setSelectionRange(E,E,"forward");return}if(u.reverseFillMask===!0)if(w===!0){const E=Math.max(0,y.length-(y===f?0:Math.min(g.length,T+1)));E===1&&M===1?z.setSelectionRange(E,E,"forward"):p.rightReverse(z,E)}else{const E=y.length-T;z.setSelectionRange(E,E,"backward")}else if(w===!0){const E=Math.max(0,b.indexOf(Ct),Math.min(g.length,M)-1);p.right(z,E)}else{const E=M-1;p.right(z,E)}});const _=u.unmaskedValue===!0?q(y):y;String(u.modelValue)!==_&&(u.modelValue!==null||_!=="")&&t(_,!0)}function m(F,L,V){const z=A(q(F.value));L=Math.max(0,b.indexOf(Ct),Math.min(z.length,L)),n=L,F.setSelectionRange(L,V,"forward")}const p={left(F,L){const V=b.slice(L-1).indexOf(Ct)===-1;let z=Math.max(0,L-1);for(;z>=0;z--)if(b[z]===Ct){L=z,V===!0&&L++;break}if(z<0&&b[L]!==void 0&&b[L]!==Ct)return p.right(F,0);L>=0&&F.setSelectionRange(L,L,"backward")},right(F,L){const V=F.value.length;let z=Math.min(V,L+1);for(;z<=V;z++)if(b[z]===Ct){L=z;break}else b[z-1]===Ct&&(L=z);if(z>V&&b[L-1]!==void 0&&b[L-1]!==Ct)return p.left(F,V);F.setSelectionRange(L,L,"forward")},leftReverse(F,L){const V=d(F.value.length);let z=Math.max(0,L-1);for(;z>=0;z--)if(V[z-1]===Ct){L=z;break}else if(V[z]===Ct&&(L=z,z===0))break;if(z<0&&V[L]!==void 0&&V[L]!==Ct)return p.rightReverse(F,0);L>=0&&F.setSelectionRange(L,L,"backward")},rightReverse(F,L){const V=F.value.length,z=d(V),M=z.slice(0,L+1).indexOf(Ct)===-1;let T=Math.min(V,L+1);for(;T<=V;T++)if(z[T-1]===Ct){L=T,L>0&&M===!0&&L--;break}if(T>V&&z[L-1]!==void 0&&z[L-1]!==Ct)return p.leftReverse(F,V);F.setSelectionRange(L,L,"forward")}};function x(F){P("click",F),e=void 0}function k(F){if(P("keydown",F),gi(F)===!0||F.altKey===!0)return;const L=v.value,V=L.selectionStart,z=L.selectionEnd;if(F.shiftKey||(e=void 0),F.keyCode===37||F.keyCode===39){F.shiftKey&&e===void 0&&(e=L.selectionDirection==="forward"?V:z);const M=p[(F.keyCode===39?"right":"left")+(u.reverseFillMask===!0?"Reverse":"")];if(F.preventDefault(),M(L,e===V?z:V),F.shiftKey){const T=L.selectionStart;L.setSelectionRange(Math.min(e,T),Math.max(e,T),"forward")}}else F.keyCode===8&&u.reverseFillMask!==!0&&V===z?(p.left(L,V),L.setSelectionRange(L.selectionStart,z,"backward")):F.keyCode===46&&u.reverseFillMask===!0&&V===z&&(p.rightReverse(L,z),L.setSelectionRange(V,L.selectionEnd,"forward"))}function A(F){if(F==null||F==="")return"";if(u.reverseFillMask===!0)return N(F);const L=o;let V=0,z="";for(let M=0;M<L.length;M++){const T=F[V],S=L[M];if(typeof S=="string")z+=S;else if(T!==void 0&&S.regex.test(T))z+=S.transform!==void 0?S.transform(T):T,V++;else return z}return z}function N(F){const L=o,V=b.indexOf(Ct);let z=F.length-1,M="";for(let T=L.length-1;T>=0&&z!==-1;T--){const S=L[T];let g=F[z];if(typeof S=="string")M=S+M;else if(g!==void 0&&S.regex.test(g))do M=(S.transform!==void 0?S.transform(g):g)+M,z--,g=F[z];while(V===T&&g!==void 0&&S.regex.test(g));else return M}return M}function q(F){return typeof F!="string"||a===void 0?typeof F=="number"?a(""+F):F:a(F)}function D(F){return f.length-F.length<=0?F:u.reverseFillMask===!0&&F.length!==0?f.slice(0,-F.length)+F:F+f.slice(F.length)}return{innerValue:l,hasMask:r,moveCursorForPaste:m,updateMaskValue:c,onMaskedKeydown:k,onMaskedClick:x}}function Wu(u,P){function t(){const v=u.modelValue;try{const b="DataTransfer"in window?new DataTransfer:"ClipboardEvent"in window?new ClipboardEvent("").clipboardData:void 0;return Object(v)===v&&("length"in v?Array.from(v):[v]).forEach(f=>{b.items.add(f)}),{files:b.files}}catch{return{files:void 0}}}return C.computed(()=>{if(u.type==="file")return t()})}const Fr=it({name:"QInput",inheritAttrs:!1,props:{...Tn,...Hu,...kn,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:[...ji,"paste","change","keydown","click","animationend"],setup(u,{emit:P,attrs:t}){const{proxy:v}=C.getCurrentInstance(),{$q:b}=v,f={};let o=NaN,a,n,e=null,r;const l=C.ref(null),s=no(u),{innerValue:i,hasMask:d,moveCursorForPaste:h,updateMaskValue:c,onMaskedKeydown:m,onMaskedClick:p}=Uu(u,P,g,l),x=Wu(u),k=C.computed(()=>Dr(i.value)),A=To(T),N=Ii({changeEvent:!0}),q=C.computed(()=>u.type==="textarea"||u.autogrow===!0),D=C.computed(()=>q.value===!0||["text","search","url","tel","password"].includes(u.type)),F=C.computed(()=>{const j={...N.splitAttrs.listeners.value,onInput:T,onPaste:M,onChange:w,onBlur:_,onFocus:It};return j.onCompositionstart=j.onCompositionupdate=j.onCompositionend=A,d.value===!0&&(j.onKeydown=m,j.onClick=p),u.autogrow===!0&&(j.onAnimationend=S),j}),L=C.computed(()=>{const j={tabindex:0,"data-autofocus":u.autofocus===!0||void 0,rows:u.type==="textarea"?6:void 0,"aria-label":u.label,name:s.value,...N.splitAttrs.attributes.value,id:N.targetUid.value,maxlength:u.maxlength,disabled:u.disable===!0,readonly:u.readonly===!0};return q.value===!1&&(j.type=u.type),u.autogrow===!0&&(j.rows=1),j});C.watch(()=>u.type,()=>{l.value&&(l.value.value=u.modelValue)}),C.watch(()=>u.modelValue,j=>{if(d.value===!0){if(n===!0&&(n=!1,String(j)===o))return;c(j)}else i.value!==j&&(i.value=j,u.type==="number"&&f.hasOwnProperty("value")===!0&&(a===!0?a=!1:delete f.value));u.autogrow===!0&&C.nextTick(y)}),C.watch(()=>u.autogrow,j=>{j===!0?C.nextTick(y):l.value!==null&&t.rows>0&&(l.value.style.height="auto")}),C.watch(()=>u.dense,()=>{u.autogrow===!0&&C.nextTick(y)});function V(){Lr(()=>{const j=document.activeElement;l.value!==null&&l.value!==j&&(j===null||j.id!==N.targetUid.value)&&l.value.focus({preventScroll:!0})})}function z(){l.value?.select()}function M(j){if(d.value===!0&&u.reverseFillMask!==!0){const H=j.target;h(H,H.selectionStart,H.selectionEnd)}P("paste",j)}function T(j){if(!j||!j.target)return;if(u.type==="file"){P("update:modelValue",j.target.files);return}const H=j.target.value;if(j.target.qComposing===!0){f.value=H;return}if(d.value===!0)c(H,!1,j.inputType);else if(g(H),D.value===!0&&j.target===document.activeElement){const{selectionStart:U,selectionEnd:X}=j.target;U!==void 0&&X!==void 0&&C.nextTick(()=>{j.target===document.activeElement&&H.indexOf(j.target.value)===0&&j.target.setSelectionRange(U,X)})}u.autogrow===!0&&y()}function S(j){P("animationend",j),y()}function g(j,H){r=()=>{e=null,u.type!=="number"&&f.hasOwnProperty("value")===!0&&delete f.value,u.modelValue!==j&&o!==j&&(o=j,H===!0&&(n=!0),P("update:modelValue",j),C.nextTick(()=>{o===j&&(o=NaN)})),r=void 0},u.type==="number"&&(a=!0,f.value=j),u.debounce!==void 0?(e!==null&&clearTimeout(e),f.value=j,e=setTimeout(r,u.debounce)):r()}function y(){requestAnimationFrame(()=>{const j=l.value;if(j!==null){const H=j.parentNode.style,{scrollTop:U}=j,{overflowY:X,maxHeight:B}=b.platform.is.firefox===!0?{}:window.getComputedStyle(j),W=X!==void 0&&X!=="scroll";W===!0&&(j.style.overflowY="hidden"),H.marginBottom=j.scrollHeight-1+"px",j.style.height="1px",j.style.height=j.scrollHeight+"px",W===!0&&(j.style.overflowY=parseInt(B,10)<j.scrollHeight?"auto":"hidden"),H.marginBottom="",j.scrollTop=U}})}function w(j){A(j),e!==null&&(clearTimeout(e),e=null),r?.(),P("change",j.target.value)}function _(j){j!==void 0&&It(j),e!==null&&(clearTimeout(e),e=null),r?.(),a=!1,n=!1,delete f.value,u.type!=="file"&&setTimeout(()=>{l.value!==null&&(l.value.value=i.value!==void 0?i.value:"")})}function E(){return f.hasOwnProperty("value")===!0?f.value:i.value!==void 0?i.value:""}C.onBeforeUnmount(()=>{_()}),C.onMounted(()=>{u.autogrow===!0&&y()}),Object.assign(N,{innerValue:i,fieldClass:C.computed(()=>`q-${q.value===!0?"textarea":"input"}`+(u.autogrow===!0?" q-textarea--autogrow":"")),hasShadow:C.computed(()=>u.type!=="file"&&typeof u.shadowText=="string"&&u.shadowText.length!==0),inputRef:l,emitValue:g,hasValue:k,floatingLabel:C.computed(()=>k.value===!0&&(u.type!=="number"||isNaN(i.value)===!1)||Dr(u.displayValue)),getControl:()=>C.h(q.value===!0?"textarea":"input",{ref:l,class:["q-field__native q-placeholder",u.inputClass],style:u.inputStyle,...L.value,...F.value,...u.type!=="file"?{value:E()}:x.value}),getShadowControl:()=>C.h("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(q.value===!0?"":" text-no-wrap")},[C.h("span",{class:"invisible"},E()),C.h("span",u.shadowText)])});const O=Pi(N);return Object.assign(v,{focus:V,select:z,getNativeElement:()=>l.value}),Lt(v,"nativeEl",()=>l.value),O}});function Ns(u){if(u===!1)return 0;if(u===!0||u===void 0)return 1;const P=parseInt(u,10);return isNaN(P)?0:P}const Uo=di({name:"close-popup",beforeMount(u,{value:P}){const t={depth:Ns(P),handler(v){t.depth!==0&&setTimeout(()=>{const b=ol(u);b!==void 0&&al(b,v,t.depth)})},handlerKey(v){er(v,13)===!0&&t.handler(v)}};u.__qclosepopup=t,u.addEventListener("click",t.handler),u.addEventListener("keyup",t.handlerKey)},updated(u,{value:P,oldValue:t}){P!==t&&(u.__qclosepopup.depth=Ns(P))},beforeUnmount(u){const P=u.__qclosepopup;u.removeEventListener("click",P.handler),u.removeEventListener("keyup",P.handlerKey),delete u.__qclosepopup}});function Yu(u){return{entity:u.entity,dataCy:u.dataCy,defaultLabel:u.defaultLabel,routeName:u.routeName,shouldRender:u.customShouldRender||(({store:P})=>u.storeField?!!P[u.storeField]:!0),getLabel:u.getLabel||(u.labelField?({store:P})=>u.storeField&&P[u.storeField]?.[u.labelField]||u.defaultLabel:void 0),getColor:u.customGetColor||(({store:P})=>u.storeField&&P[u.storeField]?"primary":"dark"),getRouteParams:u.routeParamKey&&u.routeParamField?({store:P})=>({[u.routeParamKey]:u.storeField&&P[u.storeField]?.[u.routeParamField]}):void 0,clearActions:[...u.clearMethods?.map(P=>({store:t})=>t[P]?.())||[],...u.navActions?.map(P=>({navStore:t})=>P(t))||[]]}}const Wo=/^\d{2}-\d{2}-\d{4}$/;function Xu(u){const P=u.getTimezoneOffset()*6e4;return new Date(u.getTime()+P)}function Ir(u){const P=/^\d{4}-\d{2}-\d{2}$/,t=/^\d{2}-\d{2}-\d{4}$/;if(P.test(u))return u;if(t.test(u)){const v=u.split("-");return`${v[2]}-${v[1]}-${v[0]}`}return console.warn("'Invalid date format. Expected DD-MM-YYYY' or 'YYYY-MM-DD' but got: "+u),""}function zi(u,P,t,v=[]){const b=typeof u=="string"?new Date(Ir(u)):new Date(u);if(isNaN(b.getTime()))return!1;if(P){const f=typeof P=="string"?new Date(Ir(P)):new Date(P);if(b<f)return!1}if(t){const f=typeof t=="string"?new Date(Ir(t)):new Date(t);if(b>f)return!1}return!v.some(f=>{if(typeof f=="string"){const o=new Date(Ir(f));return b.getFullYear()===o.getFullYear()&&b.getMonth()===o.getMonth()&&b.getDate()===o.getDate()}else{if(f instanceof Date)return b.getFullYear()===f.getFullYear()&&b.getMonth()===f.getMonth()&&b.getDate()===f.getDate();{const o=new Date(f.start_date);o.setDate(o.getDate()-1);const a=new Date(f.end_date);return b>=o&&b<=a}}})}const sr={validateAndUpdate(u,P,t){if(!Wo.test(P))return u;const v=new Date(P),b=new Date(t?u.to:u.from);return t?v>b?{from:P,to:P}:{...u,from:P}:v<b?{from:P,to:P}:{...u,to:P}},handlePickerUpdate(u){return u===null?{from:"",to:""}:typeof u=="string"?{from:u,to:u}:u},reset(){return{from:"",to:""}},handleInput(u,P){typeof u=="string"&&P(u)}},Yo={days:["Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"],daysShort:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"],months:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"],monthsShort:["Janv","Févr","Mars","Avr","Mai","Juin","Juil","Août","Sept","Oct","Nov","Dec"],firstDayOfWeek:1,format24h:!0,pluralDay:"jours"},Ku={class:"columns justify-end"},Zu={class:"row items-center justify-end"},Gu=C.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(u,{emit:P}){const t=u,v=P,b=C.useAttrs(),f=C.ref(t.date),o=C.ref(t.date),a=C.computed(()=>r=>{const l=r.replace(/\//g,"-");return zi(l,t.minDate,t.maxDate,t.datesDisabled)}),n=r=>{f.value=r,o.value=r,v("update:date",r)},e=r=>{typeof r=="string"&&(f.value=r,o.value=r,v("update:date",r))};return C.watch(()=>t.date,r=>{r!==f.value&&(f.value=r,o.value=r)}),(r,l)=>(C.openBlock(),C.createElementBlock("div",Ku,[C.createVNode(Fr,C.mergeProps(C.unref(b),{class:"full-width","model-value":o.value,mask:"##-##-####",dense:"",label:r.label,"data-cy":"datePick",rules:r.required?[s=>!!s||r.requiredErrorMessage]:[],disable:r.disabled,outlined:r.outlined,placeholder:r.placeholder,"onUpdate:modelValue":e}),{append:C.withCtx(()=>[C.createVNode(kt,{name:"event",class:"cursor-pointer","data-testid":"calendar-icon-picker"},{default:C.withCtx(()=>[C.createVNode(Vo,{cover:"","transition-show":"scale","transition-hide":"scale"},{default:C.withCtx(()=>[C.createVNode($o,{mask:"DD-MM-YYYY","model-value":f.value,options:a.value,disable:r.disabled,"onUpdate:modelValue":n},{default:C.withCtx(()=>[C.createElementVNode("div",Zu,[C.withDirectives(C.createVNode(wt,{label:r.closeLabel,color:"primary",flat:""},null,8,["label"]),[[Uo]])])]),_:1},8,["model-value","options","disable"])]),_:1})]),_:1})]),_:1},16,["model-value","label","rules","disable","outlined","placeholder"])]))}}),Qu=vi(Gu,[["__scopeId","data-v-4f7c1791"]]),Ju={class:"row"},ec={class:"row no-wrap items-center"},tc={class:"row items-center justify-end"},rc={key:0,class:"row items-center text-warning text-caption"},nc={class:"row items-center justify-end q-ml-sm"},ic=C.defineComponent({__name:"DateRange",props:{from:{default:""},to:{default:""},labelStart:{default:"De"},labelEnd:{default:"à"},startDateHint:{default:""},resetLabel:{default:"Reset"},closeLabel:{default:"Close"},locale:{default:()=>Yo},required:{type:Boolean,default:!1},requiredErrorMessage:{default:"Field is required"},rules:{default:()=>[]},minDate:{default:void 0},maxDate:{default:void 0},datesDisabled:{default:()=>[]},highlightEvents:{default:()=>[]},disabled:{type:Boolean,default:!1},idCy:{default:"dateRange"}},emits:["update:dateRange"],setup(u,{expose:P,emit:t}){const v=u,b=t,f=C.ref({from:v.from,to:v.to}),o=C.computed(()=>`from-date-${v.idCy}`),a=C.computed(()=>`to-date-${v.idCy}`),n=C.computed(()=>[...v.required?[d=>!!d||v.requiredErrorMessage]:[],...v.rules]),e=C.computed(()=>d=>{const h=d.replace(/\//g,"-");return zi(h,v.minDate,v.maxDate,v.datesDisabled)}),r=d=>{sr.handleInput(d,h=>{f.value=sr.validateAndUpdate(f.value,h,!0)})},l=d=>{sr.handleInput(d,h=>{f.value=sr.validateAndUpdate(f.value,h,!1)})},s=d=>{f.value=sr.handlePickerUpdate(d)},i=()=>{f.value=sr.reset()};return C.watch(f,d=>{b("update:dateRange",{...d})},{deep:!0}),C.watch(()=>v.from,d=>{d!==f.value.from&&(f.value.from=d)}),C.watch(()=>v.to,d=>{d!==f.value.to&&(f.value.to=d)}),P({resetDate:i}),(d,h)=>(C.openBlock(),C.createElementBlock("div",Ju,[C.createElementVNode("div",ec,[C.createVNode(Fr,C.mergeProps(d.$attrs,{"data-cy":o.value,"model-value":f.value.from,mask:"##-##-####",label:d.labelStart,rules:n.value,disable:d.disabled,"hide-bottom-space":"","onUpdate:modelValue":r}),null,16,["data-cy","model-value","label","rules","disable"]),C.createVNode(Fr,C.mergeProps(d.$attrs,{"model-value":f.value.to,mask:"##-##-####",label:d.labelEnd,"hide-bottom-space":"",style:{"margin-left":"10px"},"data-cy":a.value,rules:n.value,disable:d.disabled,"onUpdate:modelValue":l}),null,16,["model-value","label","data-cy","rules","disable"]),C.createVNode(kt,{name:"event",size:"30px",class:"q-ml-sm q-mt-sm cursor-pointer",style:{opacity:"0.55"},"data-cy":"calendar-icon-range"},{default:C.withCtx(()=>[C.createVNode(Vo,{cover:"","transition-show":"scale","transition-hide":"scale"},{default:C.withCtx(()=>[C.createVNode($o,{modelValue:f.value,"onUpdate:modelValue":[h[0]||(h[0]=c=>f.value=c),s],mask:"DD-MM-YYYY","today-btn":"",range:"","data-cy":"date-picker-range",locale:d.locale,options:e.value,events:d.highlightEvents,"event-color":"warning",disable:d.disabled},{default:C.withCtx(()=>[C.createElementVNode("div",tc,[C.withDirectives(C.createVNode(wt,{label:d.closeLabel,color:"primary",flat:""},null,8,["label"]),[[Uo]])])]),_:1},8,["modelValue","locale","options","events","disable"])]),_:1})]),_:1})]),d.startDateHint?(C.openBlock(),C.createElementBlock("p",rc,C.toDisplayString(d.startDateHint),1)):C.createCommentVNode("",!0),C.createElementVNode("div",nc,[C.createVNode(wt,{class:"q-pa-sm",outlined:"",dense:"","data-cy":"reset-date",label:d.resetLabel,onClick:i},null,8,["label"])])]))}}),dn=it({name:"QTh",props:{props:Object,autoWidth:Boolean},emits:["click"],setup(u,{slots:P,emit:t}){const v=C.getCurrentInstance(),{proxy:{$q:b}}=v,f=o=>{t("click",o)};return()=>{if(u.props===void 0)return C.h("th",{class:u.autoWidth===!0?"q-table--col-auto-width":"",onClick:f},vt(P.default));let o,a;const n=v.vnode.key;if(n){if(o=u.props.colsMap[n],o===void 0)return}else o=u.props.col;if(o.sortable===!0){const r=o.align==="right"?"unshift":"push";a=hi(P.default,[]),a[r](C.h(kt,{class:o.__iconClass,name:b.iconSet.table.arrowUp}))}else a=vt(P.default);const e={class:o.__thClass+(u.autoWidth===!0?" q-table--col-auto-width":""),style:o.headerStyle,onClick:r=>{o.sortable===!0&&u.props.sort(o),f(r)}};return C.h("th",e,a)}}}),Xn=it({name:"QTr",props:{props:Object,noHover:Boolean},setup(u,{slots:P}){const t=C.computed(()=>"q-tr"+(u.props===void 0||u.props.header===!0?"":" "+u.props.__trClass)+(u.noHover===!0?" q-tr--no-hover":""));return()=>C.h("tr",{style:u.props?.__trStyle,class:t.value},vt(P.default))}}),Bs=it({name:"QTooltip",inheritAttrs:!1,props:{...uo,...ki,...Pr,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null},transitionShow:{...Pr.transitionShow,default:"jump-down"},transitionHide:{...Pr.transitionHide,default:"jump-up"},anchor:{type:String,default:"bottom middle",validator:vn},self:{type:String,default:"top middle",validator:vn},offset:{type:Array,default:()=>[14,14],validator:wo},scrollTarget:Cn,delay:{type:Number,default:0},hideDelay:{type:Number,default:0},persistent:Boolean},emits:[...Ci],setup(u,{slots:P,emit:t,attrs:v}){let b,f;const o=C.getCurrentInstance(),{proxy:{$q:a}}=o,n=C.ref(null),e=C.ref(!1),r=C.computed(()=>yn(u.anchor,a.lang.rtl)),l=C.computed(()=>yn(u.self,a.lang.rtl)),s=C.computed(()=>u.persistent!==!0),{registerTick:i,removeTick:d}=Ai(),{registerTimeout:h}=Ri(),{transitionProps:c,transitionStyle:m}=Ti(u),{localScrollTarget:p,changeScrollEvent:x,unconfigureScrollTarget:k}=fo(u,E),{anchorEl:A,canShow:N,anchorEvents:q}=Si({showing:e,configureAnchorEl:_}),{show:D,hide:F}=Mi({showing:e,canShow:N,handleShow:M,handleHide:T,hideOnRouteChange:s,processOnMount:!0});Object.assign(q,{delayShow:y,delayHide:w});const{showPortal:L,hidePortal:V,renderPortal:z}=Ei(o,n,j,"tooltip");if(a.platform.is.mobile===!0){const H={anchorEl:A,innerRef:n,onClickOutside(X){return F(X),X.target.classList.contains("q-dialog__backdrop")&&_t(X),!0}},U=C.computed(()=>u.modelValue===null&&u.persistent!==!0&&e.value===!0);C.watch(U,X=>{(X===!0?yo:gn)(H)}),C.onBeforeUnmount(()=>{gn(H)})}function M(H){L(),i(()=>{f=new MutationObserver(()=>g()),f.observe(n.value,{attributes:!1,childList:!0,characterData:!0,subtree:!0}),g(),E()}),b===void 0&&(b=C.watch(()=>a.screen.width+"|"+a.screen.height+"|"+u.self+"|"+u.anchor+"|"+a.lang.rtl,g)),h(()=>{L(!0),t("show",H)},u.transitionDuration)}function T(H){d(),V(),S(),h(()=>{V(!0),t("hide",H)},u.transitionDuration)}function S(){f!==void 0&&(f.disconnect(),f=void 0),b!==void 0&&(b(),b=void 0),k(),ar(q,"tooltipTemp")}function g(){Oi({targetEl:n.value,offset:u.offset,anchorEl:A.value,anchorOrigin:r.value,selfOrigin:l.value,maxHeight:u.maxHeight,maxWidth:u.maxWidth})}function y(H){if(a.platform.is.mobile===!0){hn(),document.body.classList.add("non-selectable");const U=A.value,X=["touchmove","touchcancel","touchend","click"].map(B=>[U,B,"delayHide","passiveCapture"]);Ut(q,"tooltipTemp",X)}h(()=>{D(H)},u.delay)}function w(H){a.platform.is.mobile===!0&&(ar(q,"tooltipTemp"),hn(),setTimeout(()=>{document.body.classList.remove("non-selectable")},10)),h(()=>{F(H)},u.hideDelay)}function _(){if(u.noParentEvent===!0||A.value===null)return;const H=a.platform.is.mobile===!0?[[A.value,"touchstart","delayShow","passive"]]:[[A.value,"mouseenter","delayShow","passive"],[A.value,"mouseleave","delayHide","passive"]];Ut(q,"anchor",H)}function E(){if(A.value!==null||u.scrollTarget!==void 0){p.value=Mn(A.value,u.scrollTarget);const H=u.noParentEvent===!0?g:F;x(p.value,H)}}function O(){return e.value===!0?C.h("div",{...v,ref:n,class:["q-tooltip q-tooltip--style q-position-engine no-pointer-events",v.class],style:[v.style,m.value],role:"tooltip"},vt(P.default)):null}function j(){return C.h(C.Transition,c.value,O)}return C.onBeforeUnmount(S),Object.assign(o.proxy,{updatePosition:g}),z}}),sc=it({name:"QTd",props:{props:Object,autoWidth:Boolean,noHover:Boolean},setup(u,{slots:P}){const t=C.getCurrentInstance(),v=C.computed(()=>"q-td"+(u.autoWidth===!0?" q-table--col-auto-width":"")+(u.noHover===!0?" q-td--no-hover":"")+" ");return()=>{if(u.props===void 0)return C.h("td",{class:v.value},vt(P.default));const b=t.vnode.key,f=(u.props.colsMap!==void 0?u.props.colsMap[b]:null)||u.props.col;if(f===void 0)return;const{row:o}=u.props;return C.h("td",{class:v.value+f.__tdClass(o),style:f.__tdStyle(o)},vt(P.default))}}}),oc=["horizontal","vertical","cell","none"],ac=it({name:"QMarkupTable",props:{...Bt,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,wrapCells:Boolean,separator:{type:String,default:"horizontal",validator:u=>oc.includes(u)}},setup(u,{slots:P}){const t=C.getCurrentInstance(),v=Dt(u,t.proxy.$q),b=C.computed(()=>`q-markup-table q-table__container q-table__card q-table--${u.separator}-separator`+(v.value===!0?" q-table--dark q-table__card--dark q-dark":"")+(u.dense===!0?" q-table--dense":"")+(u.flat===!0?" q-table--flat":"")+(u.bordered===!0?" q-table--bordered":"")+(u.square===!0?" q-table--square":"")+(u.wrapCells===!1?" q-table--no-wrap":""));return()=>C.h("div",{class:b.value},[C.h("table",{class:"q-table"},vt(P.default))])}});function Xo(u,P){return C.h("div",u,[C.h("table",{class:"q-table"},P)])}const lc={list:jo,table:ac},uc=["list","table","__qtable"],cc=it({name:"QVirtualScroll",props:{...ai,type:{type:String,default:"list",validator:u=>uc.includes(u)},items:{type:Array,default:()=>[]},itemsFn:Function,itemsSize:Number,scrollTarget:Cn},setup(u,{slots:P,attrs:t}){let v;const b=C.ref(null),f=C.computed(()=>u.itemsSize>=0&&u.itemsFn!==void 0?parseInt(u.itemsSize,10):Array.isArray(u.items)?u.items.length:0),{virtualScrollSliceRange:o,localResetVirtualScroll:a,padVirtualScroll:n,onVirtualScrollEvt:e}=Eo({virtualScrollLength:f,getVirtualScrollTarget:d,getVirtualScrollEl:i}),r=C.computed(()=>{if(f.value===0)return[];const p=(x,k)=>({index:o.value.from+k,item:x});return u.itemsFn===void 0?u.items.slice(o.value.from,o.value.to).map(p):u.itemsFn(o.value.from,o.value.to-o.value.from).map(p)}),l=C.computed(()=>"q-virtual-scroll q-virtual-scroll"+(u.virtualScrollHorizontal===!0?"--horizontal":"--vertical")+(u.scrollTarget!==void 0?"":" scroll")),s=C.computed(()=>u.scrollTarget!==void 0?{}:{tabindex:0});C.watch(f,()=>{a()}),C.watch(()=>u.scrollTarget,()=>{c(),h()});function i(){return b.value.$el||b.value}function d(){return v}function h(){v=Mn(i(),u.scrollTarget),v.addEventListener("scroll",e,St.passive)}function c(){v!==void 0&&(v.removeEventListener("scroll",e,St.passive),v=void 0)}function m(){let p=n(u.type==="list"?"div":"tbody",r.value.map(P.default));return P.before!==void 0&&(p=P.before().concat(p)),Nt(P.after,p)}return C.onBeforeMount(()=>{a()}),C.onMounted(()=>{h()}),C.onActivated(()=>{h()}),C.onDeactivated(()=>{c()}),C.onBeforeUnmount(()=>{c()}),()=>{if(P.default===void 0){console.error("QVirtualScroll: default scoped slot is required for rendering");return}return u.type==="__qtable"?Xo({ref:b,class:"q-table__middle "+l.value},m()):C.h(lc[u.type],{...t,ref:b,class:[t.class,l.value],...s.value},m)}}}),fc={xs:2,sm:4,md:6,lg:10,xl:14};function Ds(u,P,t){return{transform:P===!0?`translateX(${t.lang.rtl===!0?"-":""}100%) scale3d(${-u},1,1)`:`scale3d(${u},1,1)`}}const dc=it({name:"QLinearProgress",props:{...Bt,...Cr,value:{type:Number,default:0},buffer:Number,color:String,trackColor:String,reverse:Boolean,stripe:Boolean,indeterminate:Boolean,query:Boolean,rounded:Boolean,animationSpeed:{type:[String,Number],default:2100},instantFeedback:Boolean},setup(u,{slots:P}){const{proxy:t}=C.getCurrentInstance(),v=Dt(u,t.$q),b=Mr(u,fc),f=C.computed(()=>u.indeterminate===!0||u.query===!0),o=C.computed(()=>u.reverse!==u.query),a=C.computed(()=>({...b.value!==null?b.value:{},"--q-linear-progress-speed":`${u.animationSpeed}ms`})),n=C.computed(()=>"q-linear-progress"+(u.color!==void 0?` text-${u.color}`:"")+(u.reverse===!0||u.query===!0?" q-linear-progress--reverse":"")+(u.rounded===!0?" rounded-borders":"")),e=C.computed(()=>Ds(u.buffer!==void 0?u.buffer:1,o.value,t.$q)),r=C.computed(()=>`with${u.instantFeedback===!0?"out":""}-transition`),l=C.computed(()=>`q-linear-progress__track absolute-full q-linear-progress__track--${r.value} q-linear-progress__track--${v.value===!0?"dark":"light"}`+(u.trackColor!==void 0?` bg-${u.trackColor}`:"")),s=C.computed(()=>Ds(f.value===!0?1:u.value,o.value,t.$q)),i=C.computed(()=>`q-linear-progress__model absolute-full q-linear-progress__model--${r.value} q-linear-progress__model--${f.value===!0?"in":""}determinate`),d=C.computed(()=>({width:`${u.value*100}%`})),h=C.computed(()=>`q-linear-progress__stripe absolute-${u.reverse===!0?"right":"left"} q-linear-progress__stripe--${r.value}`);return()=>{const c=[C.h("div",{class:l.value,style:e.value}),C.h("div",{class:i.value,style:s.value})];return u.stripe===!0&&f.value===!1&&c.push(C.h("div",{class:h.value,style:d.value})),C.h("div",{class:n.value,style:a.value,role:"progressbar","aria-valuemin":0,"aria-valuemax":1,"aria-valuenow":u.indeterminate===!0?void 0:u.value},Nt(P.default,c))}}});let Or=0;const hc={fullscreen:Boolean,noRouteFullscreenExit:Boolean},pc=["update:fullscreen","fullscreen"];function mc(){const u=C.getCurrentInstance(),{props:P,emit:t,proxy:v}=u;let b,f;const o=C.ref(!1);pi(u)===!0&&C.watch(()=>v.$route.fullPath,()=>{P.noRouteFullscreenExit!==!0&&e()}),C.watch(()=>P.fullscreen,r=>{o.value!==r&&a()}),C.watch(o,r=>{t("update:fullscreen",r),t("fullscreen",r)});function a(){o.value===!0?e():n()}function n(){o.value!==!0&&(o.value=!0,f=v.$el.parentNode,f.replaceChild(b,v.$el),document.body.appendChild(v.$el),Or++,Or===1&&document.body.classList.add("q-body--fullscreen-mixin"))}function e(){o.value===!0&&(f.replaceChild(v.$el,b),o.value=!1,Or=Math.max(0,Or-1),Or===0&&(document.body.classList.remove("q-body--fullscreen-mixin"),v.$el.scrollIntoView!==void 0&&setTimeout(()=>{v.$el.scrollIntoView()})))}return C.onBeforeMount(()=>{b=document.createElement("span")}),C.onMounted(()=>{P.fullscreen===!0&&n()}),C.onBeforeUnmount(e),Object.assign(v,{toggleFullscreen:a,setFullscreen:n,exitFullscreen:e}),{inFullscreen:o,toggleFullscreen:a}}function bc(u,P){return new Date(u)-new Date(P)}const gc={sortMethod:Function,binaryStateSort:Boolean,columnSortOrder:{type:String,validator:u=>u==="ad"||u==="da",default:"ad"}};function vc(u,P,t,v){const b=C.computed(()=>{const{sortBy:a}=P.value;return a&&t.value.find(n=>n.name===a)||null}),f=C.computed(()=>u.sortMethod!==void 0?u.sortMethod:(a,n,e)=>{const r=t.value.find(i=>i.name===n);if(r===void 0||r.field===void 0)return a;const l=e===!0?-1:1,s=typeof r.field=="function"?i=>r.field(i):i=>i[r.field];return a.sort((i,d)=>{let h=s(i),c=s(d);return r.rawSort!==void 0?r.rawSort(h,c,i,d)*l:h==null?-1*l:c==null?1*l:r.sort!==void 0?r.sort(h,c,i,d)*l:li(h)===!0&&li(c)===!0?(h-c)*l:_n(h)===!0&&_n(c)===!0?bc(h,c)*l:typeof h=="boolean"&&typeof c=="boolean"?(h-c)*l:([h,c]=[h,c].map(m=>(m+"").toLocaleString().toLowerCase()),h<c?-1*l:h===c?0:l)})});function o(a){let n=u.columnSortOrder;if(Ao(a)===!0)a.sortOrder&&(n=a.sortOrder),a=a.name;else{const l=t.value.find(s=>s.name===a);l?.sortOrder&&(n=l.sortOrder)}let{sortBy:e,descending:r}=P.value;e!==a?(e=a,r=n==="da"):u.binaryStateSort===!0?r=!r:r===!0?n==="ad"?e=null:r=!1:n==="ad"?r=!0:e=null,v({sortBy:e,descending:r,page:1})}return{columnToSort:b,computedSortMethod:f,sort:o}}const yc={filter:[String,Object],filterMethod:Function};function wc(u,P){const t=C.computed(()=>u.filterMethod!==void 0?u.filterMethod:(v,b,f,o)=>{const a=b?b.toLowerCase():"";return v.filter(n=>f.some(e=>{const r=o(e,n)+"";return(r==="undefined"||r==="null"?"":r.toLowerCase()).indexOf(a)!==-1}))});return C.watch(()=>u.filter,()=>{C.nextTick(()=>{P({page:1},!0)})},{deep:!0}),{computedFilterMethod:t}}function _c(u,P){for(const t in P)if(P[t]!==u[t])return!1;return!0}function Fs(u){return u.page<1&&(u.page=1),u.rowsPerPage!==void 0&&u.rowsPerPage<1&&(u.rowsPerPage=0),u}const xc={pagination:Object,rowsPerPageOptions:{type:Array,default:()=>[5,7,10,15,20,25,50,0]},"onUpdate:pagination":[Function,Array]};function Sc(u,P){const{props:t,emit:v}=u,b=C.ref(Object.assign({sortBy:null,descending:!1,page:1,rowsPerPage:t.rowsPerPageOptions.length!==0?t.rowsPerPageOptions[0]:5},t.pagination)),f=C.computed(()=>{const r=t["onUpdate:pagination"]!==void 0?{...b.value,...t.pagination}:b.value;return Fs(r)}),o=C.computed(()=>f.value.rowsNumber!==void 0);function a(r){n({pagination:r,filter:t.filter})}function n(r={}){C.nextTick(()=>{v("request",{pagination:r.pagination||f.value,filter:r.filter||t.filter,getCellValue:P})})}function e(r,l){const s=Fs({...f.value,...r});if(_c(f.value,s)===!0){o.value===!0&&l===!0&&a(s);return}if(o.value===!0){a(s);return}t.pagination!==void 0&&t["onUpdate:pagination"]!==void 0?v("update:pagination",s):b.value=s}return{innerPagination:b,computedPagination:f,isServerSide:o,requestServerInteraction:n,setPagination:e}}function kc(u,P,t,v,b,f){const{props:o,emit:a,proxy:{$q:n}}=u,e=C.computed(()=>v.value===!0?t.value.rowsNumber||0:f.value),r=C.computed(()=>{const{page:k,rowsPerPage:A}=t.value;return(k-1)*A}),l=C.computed(()=>{const{page:k,rowsPerPage:A}=t.value;return k*A}),s=C.computed(()=>t.value.page===1),i=C.computed(()=>t.value.rowsPerPage===0?1:Math.max(1,Math.ceil(e.value/t.value.rowsPerPage))),d=C.computed(()=>l.value===0?!0:t.value.page>=i.value),h=C.computed(()=>(o.rowsPerPageOptions.includes(P.value.rowsPerPage)?o.rowsPerPageOptions:[P.value.rowsPerPage].concat(o.rowsPerPageOptions)).map(A=>({label:A===0?n.lang.table.allRows:""+A,value:A})));C.watch(i,(k,A)=>{if(k===A)return;const N=t.value.page;k&&!N?b({page:1}):k<N&&b({page:k})});function c(){b({page:1})}function m(){const{page:k}=t.value;k>1&&b({page:k-1})}function p(){const{page:k,rowsPerPage:A}=t.value;l.value>0&&k*A<e.value&&b({page:k+1})}function x(){b({page:i.value})}return o["onUpdate:pagination"]!==void 0&&a("update:pagination",{...t.value}),{firstRowIndex:r,lastRowIndex:l,isFirstPage:s,isLastPage:d,pagesNumber:i,computedRowsPerPageOptions:h,computedRowsNumber:e,firstPage:c,prevPage:m,nextPage:p,lastPage:x}}const Cc={selection:{type:String,default:"none",validator:u=>["single","multiple","none"].includes(u)},selected:{type:Array,default:()=>[]}},Mc=["update:selected","selection"];function Ec(u,P,t,v){const b=C.computed(()=>{const d={};return u.selected.map(v.value).forEach(h=>{d[h]=!0}),d}),f=C.computed(()=>u.selection!=="none"),o=C.computed(()=>u.selection==="single"),a=C.computed(()=>u.selection==="multiple"),n=C.computed(()=>t.value.length!==0&&t.value.every(d=>b.value[v.value(d)]===!0)),e=C.computed(()=>n.value!==!0&&t.value.some(d=>b.value[v.value(d)]===!0)),r=C.computed(()=>u.selected.length);function l(d){return b.value[d]===!0}function s(){P("update:selected",[])}function i(d,h,c,m){P("selection",{rows:h,added:c,keys:d,evt:m});const p=o.value===!0?c===!0?h:[]:c===!0?u.selected.concat(h):u.selected.filter(x=>d.includes(v.value(x))===!1);P("update:selected",p)}return{hasSelectionMode:f,singleSelection:o,multipleSelection:a,allRowsSelected:n,someRowsSelected:e,rowsSelectedNumber:r,isRowSelected:l,clearSelection:s,updateSelection:i}}function Ls(u){return Array.isArray(u)?u.slice():[]}const Tc={expanded:Array},Ac=["update:expanded"];function Rc(u,P){const t=C.ref(Ls(u.expanded));C.watch(()=>u.expanded,o=>{t.value=Ls(o)});function v(o){return t.value.includes(o)}function b(o){u.expanded!==void 0?P("update:expanded",o):t.value=o}function f(o,a){const n=t.value.slice(),e=n.indexOf(o);a===!0?e===-1&&(n.push(o),b(n)):e!==-1&&(n.splice(e,1),b(n))}return{isRowExpanded:v,setExpanded:b,updateExpanded:f}}const Oc={visibleColumns:Array};function jc(u,P,t){const v=C.computed(()=>{if(u.columns!==void 0)return u.columns;const a=u.rows[0];return a!==void 0?Object.keys(a).map(n=>({name:n,label:n.toUpperCase(),field:n,align:li(a[n])?"right":"left",sortable:!0})):[]}),b=C.computed(()=>{const{sortBy:a,descending:n}=P.value;return(u.visibleColumns!==void 0?v.value.filter(r=>r.required===!0||u.visibleColumns.includes(r.name)===!0):v.value).map(r=>{const l=r.align||"right",s=`text-${l}`;return{...r,align:l,__iconClass:`q-table__sort-icon q-table__sort-icon--${l}`,__thClass:s+(r.headerClasses!==void 0?" "+r.headerClasses:"")+(r.sortable===!0?" sortable":"")+(r.name===a?` sorted ${n===!0?"sort-desc":""}`:""),__tdStyle:r.style!==void 0?typeof r.style!="function"?()=>r.style:r.style:()=>null,__tdClass:r.classes!==void 0?typeof r.classes!="function"?()=>s+" "+r.classes:i=>s+" "+r.classes(i):()=>s}})}),f=C.computed(()=>{const a={};return b.value.forEach(n=>{a[n.name]=n}),a}),o=C.computed(()=>u.tableColspan!==void 0?u.tableColspan:b.value.length+(t.value===!0?1:0));return{colList:v,computedCols:b,computedColsMap:f,computedColspan:o}}const tn="q-table__bottom row items-center",Ko={};Mo.forEach(u=>{Ko[u]={}});const Ic=it({name:"QTable",props:{rows:{type:Array,required:!0},rowKey:{type:[String,Function],default:"id"},columns:Array,loading:Boolean,iconFirstPage:String,iconPrevPage:String,iconNextPage:String,iconLastPage:String,title:String,hideHeader:Boolean,grid:Boolean,gridHeader:Boolean,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,separator:{type:String,default:"horizontal",validator:u=>["horizontal","vertical","cell","none"].includes(u)},wrapCells:Boolean,virtualScroll:Boolean,virtualScrollTarget:{},...Ko,noDataLabel:String,noResultsLabel:String,loadingLabel:String,selectedRowsLabel:Function,rowsPerPageLabel:String,paginationLabel:Function,color:{type:String,default:"grey-8"},titleClass:[String,Array,Object],tableStyle:[String,Array,Object],tableClass:[String,Array,Object],tableHeaderStyle:[String,Array,Object],tableHeaderClass:[String,Array,Object],tableRowStyleFn:Function,tableRowClassFn:Function,cardContainerClass:[String,Array,Object],cardContainerStyle:[String,Array,Object],cardStyle:[String,Array,Object],cardClass:[String,Array,Object],cardStyleFn:Function,cardClassFn:Function,hideBottom:Boolean,hideSelectedBanner:Boolean,hideNoData:Boolean,hidePagination:Boolean,onRowClick:Function,onRowDblclick:Function,onRowContextmenu:Function,...Bt,...hc,...Oc,...yc,...xc,...Tc,...Cc,...gc},emits:["request","virtualScroll",...pc,...Ac,...Mc],setup(u,{slots:P,emit:t}){const v=C.getCurrentInstance(),{proxy:{$q:b}}=v,f=Dt(u,b),{inFullscreen:o,toggleFullscreen:a}=mc(),n=C.computed(()=>typeof u.rowKey=="function"?u.rowKey:he=>he[u.rowKey]),e=C.ref(null),r=C.ref(null),l=C.computed(()=>u.grid!==!0&&u.virtualScroll===!0),s=C.computed(()=>" q-table__card"+(f.value===!0?" q-table__card--dark q-dark":"")+(u.square===!0?" q-table--square":"")+(u.flat===!0?" q-table--flat":"")+(u.bordered===!0?" q-table--bordered":"")),i=C.computed(()=>`q-table__container q-table--${u.separator}-separator column no-wrap`+(u.grid===!0?" q-table--grid":s.value)+(f.value===!0?" q-table--dark":"")+(u.dense===!0?" q-table--dense":"")+(u.wrapCells===!1?" q-table--no-wrap":"")+(o.value===!0?" fullscreen scroll":"")),d=C.computed(()=>i.value+(u.loading===!0?" q-table--loading":""));C.watch(()=>u.tableStyle+u.tableClass+u.tableHeaderStyle+u.tableHeaderClass+i.value,()=>{l.value===!0&&r.value?.reset()});const{innerPagination:h,computedPagination:c,isServerSide:m,requestServerInteraction:p,setPagination:x}=Sc(v,Fe),{computedFilterMethod:k}=wc(u,x),{isRowExpanded:A,setExpanded:N,updateExpanded:q}=Rc(u,t),D=C.computed(()=>{let he=u.rows;if(m.value===!0||he.length===0)return he;const{sortBy:we,descending:Ae}=c.value;return u.filter&&(he=k.value(he,u.filter,O.value,Fe)),U.value!==null&&(he=X.value(u.rows===he?he.slice():he,we,Ae)),he}),F=C.computed(()=>D.value.length),L=C.computed(()=>{let he=D.value;if(m.value===!0)return he;const{rowsPerPage:we}=c.value;return we!==0&&(W.value===0&&u.rows!==he?he.length>I.value&&(he=he.slice(0,I.value)):he=he.slice(W.value,I.value)),he}),{hasSelectionMode:V,singleSelection:z,multipleSelection:M,allRowsSelected:T,someRowsSelected:S,rowsSelectedNumber:g,isRowSelected:y,clearSelection:w,updateSelection:_}=Ec(u,t,L,n),{colList:E,computedCols:O,computedColsMap:j,computedColspan:H}=jc(u,c,V),{columnToSort:U,computedSortMethod:X,sort:B}=vc(u,c,E,x),{firstRowIndex:W,lastRowIndex:I,isFirstPage:R,isLastPage:$,pagesNumber:Y,computedRowsPerPageOptions:J,computedRowsNumber:Z,firstPage:ee,prevPage:ae,nextPage:se,lastPage:G}=kc(v,h,c,m,x,F),ne=C.computed(()=>L.value.length===0),ie=C.computed(()=>{const he={};return Mo.forEach(we=>{he[we]=u[we]}),he.virtualScrollItemSize===void 0&&(he.virtualScrollItemSize=u.dense===!0?28:48),he});function fe(){l.value===!0&&r.value.reset()}function ce(){if(u.grid===!0)return ot();const he=u.hideHeader!==!0?Be:null;if(l.value===!0){const Ae=P["top-row"],Ie=P["bottom-row"],Ce={default:Ye=>_e(Ye.item,P.body,Ye.index)};if(Ae!==void 0){const Ye=C.h("tbody",Ae({cols:O.value}));Ce.before=he===null?()=>Ye:()=>[he()].concat(Ye)}else he!==null&&(Ce.before=he);return Ie!==void 0&&(Ce.after=()=>C.h("tbody",Ie({cols:O.value}))),C.h(cc,{ref:r,class:u.tableClass,style:u.tableStyle,...ie.value,scrollTarget:u.virtualScrollTarget,items:L.value,type:"__qtable",tableColspan:H.value,onVirtualScroll:me},Ce)}const we=[je()];return he!==null&&we.unshift(he()),Xo({class:["q-table__middle scroll",u.tableClass],style:u.tableStyle},we)}function de(he,we){if(r.value!==null){r.value.scrollTo(he,we);return}he=parseInt(he,10);const Ae=e.value.querySelector(`tbody tr:nth-of-type(${he+1})`);if(Ae!==null){const Ie=e.value.querySelector(".q-table__middle.scroll"),Ce=Ae.offsetTop-u.virtualScrollStickySizeStart,Ye=Ce<Ie.scrollTop?"decrease":"increase";Ie.scrollTop=Ce,t("virtualScroll",{index:he,from:0,to:h.value.rowsPerPage-1,direction:Ye})}}function me(he){t("virtualScroll",he)}function ge(){return[C.h(dc,{class:"q-table__linear-progress",color:u.color,dark:f.value,indeterminate:!0,trackColor:"transparent"})]}function _e(he,we,Ae){const Ie=n.value(he),Ce=y(Ie);if(we!==void 0){const K={key:Ie,row:he,pageIndex:Ae,__trClass:Ce?"selected":""};if(u.tableRowStyleFn!==void 0&&(K.__trStyle=u.tableRowStyleFn(he)),u.tableRowClassFn!==void 0){const re=u.tableRowClassFn(he);re&&(K.__trClass=`${re} ${K.__trClass}`)}return we(Ee(K))}const Ye=P["body-cell"],Xe=O.value.map(K=>{const re=P[`body-cell-${K.name}`],le=re!==void 0?re:Ye;return le!==void 0?le(Te({key:Ie,row:he,pageIndex:Ae,col:K})):C.h("td",{class:K.__tdClass(he),style:K.__tdStyle(he)},Fe(K,he))});if(V.value===!0){const K=P["body-selection"],re=K!==void 0?K(He({key:Ie,row:he,pageIndex:Ae})):[C.h(an,{modelValue:Ce,color:u.color,dark:f.value,dense:u.dense,"onUpdate:modelValue":(le,pe)=>{_([Ie],[he],le,pe)}})];Xe.unshift(C.h("td",{class:"q-table--col-auto-width"},re))}const te={key:Ie,class:{selected:Ce}};if(u.onRowClick!==void 0&&(te.class["cursor-pointer"]=!0,te.onClick=K=>{t("rowClick",K,he,Ae)}),u.onRowDblclick!==void 0&&(te.class["cursor-pointer"]=!0,te.onDblclick=K=>{t("rowDblclick",K,he,Ae)}),u.onRowContextmenu!==void 0&&(te.class["cursor-pointer"]=!0,te.onContextmenu=K=>{t("rowContextmenu",K,he,Ae)}),u.tableRowStyleFn!==void 0&&(te.style=u.tableRowStyleFn(he)),u.tableRowClassFn!==void 0){const K=u.tableRowClassFn(he);K&&(te.class[K]=!0)}return C.h("tr",te,Xe)}function je(){const he=P.body,we=P["top-row"],Ae=P["bottom-row"];let Ie=L.value.map((Ce,Ye)=>_e(Ce,he,Ye));return we!==void 0&&(Ie=we({cols:O.value}).concat(Ie)),Ae!==void 0&&(Ie=Ie.concat(Ae({cols:O.value}))),C.h("tbody",Ie)}function Ee(he){return ze(he),he.cols=he.cols.map(we=>Lt({...we},"value",()=>Fe(we,he.row))),he}function Te(he){return ze(he),Lt(he,"value",()=>Fe(he.col,he.row)),he}function He(he){return ze(he),he}function ze(he){Object.assign(he,{cols:O.value,colsMap:j.value,sort:B,rowIndex:W.value+he.pageIndex,color:u.color,dark:f.value,dense:u.dense}),V.value===!0&&Lt(he,"selected",()=>y(he.key),(we,Ae)=>{_([he.key],[he.row],we,Ae)}),Lt(he,"expand",()=>A(he.key),we=>{q(he.key,we)})}function Fe(he,we){const Ae=typeof he.field=="function"?he.field(we):we[he.field];return he.format!==void 0?he.format(Ae,we):Ae}const qe=C.computed(()=>({pagination:c.value,pagesNumber:Y.value,isFirstPage:R.value,isLastPage:$.value,firstPage:ee,prevPage:ae,nextPage:se,lastPage:G,inFullscreen:o.value,toggleFullscreen:a}));function Pe(){const he=P.top,we=P["top-left"],Ae=P["top-right"],Ie=P["top-selection"],Ce=V.value===!0&&Ie!==void 0&&g.value>0,Ye="q-table__top relative-position row items-center";if(he!==void 0)return C.h("div",{class:Ye},[he(qe.value)]);let Xe;if(Ce===!0?Xe=Ie(qe.value).slice():(Xe=[],we!==void 0?Xe.push(C.h("div",{class:"q-table__control"},[we(qe.value)])):u.title&&Xe.push(C.h("div",{class:"q-table__control"},[C.h("div",{class:["q-table__title",u.titleClass]},u.title)]))),Ae!==void 0&&(Xe.push(C.h("div",{class:"q-table__separator col"})),Xe.push(C.h("div",{class:"q-table__control"},[Ae(qe.value)]))),Xe.length!==0)return C.h("div",{class:Ye},Xe)}const Se=C.computed(()=>S.value===!0?null:T.value);function Be(){const he=Ve();return u.loading===!0&&P.loading===void 0&&he.push(C.h("tr",{class:"q-table__progress"},[C.h("th",{class:"relative-position",colspan:H.value},ge())])),C.h("thead",he)}function Ve(){const he=P.header,we=P["header-cell"];if(he!==void 0)return he(Le({header:!0})).slice();const Ae=O.value.map(Ie=>{const Ce=P[`header-cell-${Ie.name}`],Ye=Ce!==void 0?Ce:we,Xe=Le({col:Ie});return Ye!==void 0?Ye(Xe):C.h(dn,{key:Ie.name,props:Xe},()=>Ie.label)});if(z.value===!0&&u.grid!==!0)Ae.unshift(C.h("th",{class:"q-table--col-auto-width"}," "));else if(M.value===!0){const Ie=P["header-selection"],Ce=Ie!==void 0?Ie(Le({})):[C.h(an,{color:u.color,modelValue:Se.value,dark:f.value,dense:u.dense,"onUpdate:modelValue":Ze})];Ae.unshift(C.h("th",{class:"q-table--col-auto-width"},Ce))}return[C.h("tr",{class:u.tableHeaderClass,style:u.tableHeaderStyle},Ae)]}function Le(he){return Object.assign(he,{cols:O.value,sort:B,colsMap:j.value,color:u.color,dark:f.value,dense:u.dense}),M.value===!0&&Lt(he,"selected",()=>Se.value,Ze),he}function Ze(he){S.value===!0&&(he=!1),_(L.value.map(n.value),L.value,he)}const Je=C.computed(()=>{const he=[u.iconFirstPage||b.iconSet.table.firstPage,u.iconPrevPage||b.iconSet.table.prevPage,u.iconNextPage||b.iconSet.table.nextPage,u.iconLastPage||b.iconSet.table.lastPage];return b.lang.rtl===!0?he.reverse():he});function Ue(){if(u.hideBottom===!0)return;if(ne.value===!0){if(u.hideNoData===!0)return;const Ae=u.loading===!0?u.loadingLabel||b.lang.table.loading:u.filter?u.noResultsLabel||b.lang.table.noResults:u.noDataLabel||b.lang.table.noData,Ie=P["no-data"],Ce=Ie!==void 0?[Ie({message:Ae,icon:b.iconSet.table.warning,filter:u.filter})]:[C.h(kt,{class:"q-table__bottom-nodata-icon",name:b.iconSet.table.warning}),Ae];return C.h("div",{class:tn+" q-table__bottom--nodata"},Ce)}const he=P.bottom;if(he!==void 0)return C.h("div",{class:tn},[he(qe.value)]);const we=u.hideSelectedBanner!==!0&&V.value===!0&&g.value>0?[C.h("div",{class:"q-table__control"},[C.h("div",[(u.selectedRowsLabel||b.lang.table.selectedRecords)(g.value)])])]:[];if(u.hidePagination!==!0)return C.h("div",{class:tn+" justify-end"},et(we));if(we.length!==0)return C.h("div",{class:tn},we)}function rt(he){x({page:1,rowsPerPage:he.value})}function et(he){let we;const{rowsPerPage:Ae}=c.value,Ie=u.paginationLabel||b.lang.table.pagination,Ce=P.pagination,Ye=u.rowsPerPageOptions.length>1;if(he.push(C.h("div",{class:"q-table__separator col"})),Ye===!0&&he.push(C.h("div",{class:"q-table__control"},[C.h("span",{class:"q-table__bottom-item"},[u.rowsPerPageLabel||b.lang.table.recordsPerPage]),C.h(Ni,{class:"q-table__select inline q-table__bottom-item",color:u.color,modelValue:Ae,options:J.value,displayValue:Ae===0?b.lang.table.allRows:Ae,dark:f.value,borderless:!0,dense:!0,optionsDense:!0,optionsCover:!0,"onUpdate:modelValue":rt})])),Ce!==void 0)we=Ce(qe.value);else if(we=[C.h("span",Ae!==0?{class:"q-table__bottom-item"}:{},[Ae?Ie(W.value+1,Math.min(I.value,Z.value),Z.value):Ie(1,F.value,Z.value)])],Ae!==0&&Y.value>1){const Xe={color:u.color,round:!0,dense:!0,flat:!0};u.dense===!0&&(Xe.size="sm"),Y.value>2&&we.push(C.h(wt,{key:"pgFirst",...Xe,icon:Je.value[0],disable:R.value,"aria-label":b.lang.pagination.first,onClick:ee})),we.push(C.h(wt,{key:"pgPrev",...Xe,icon:Je.value[1],disable:R.value,"aria-label":b.lang.pagination.prev,onClick:ae}),C.h(wt,{key:"pgNext",...Xe,icon:Je.value[2],disable:$.value,"aria-label":b.lang.pagination.next,onClick:se})),Y.value>2&&we.push(C.h(wt,{key:"pgLast",...Xe,icon:Je.value[3],disable:$.value,"aria-label":b.lang.pagination.last,onClick:G}))}return he.push(C.h("div",{class:"q-table__control"},we)),he}function We(){const he=u.gridHeader===!0?[C.h("table",{class:"q-table"},[Be()])]:u.loading===!0&&P.loading===void 0?ge():void 0;return C.h("div",{class:"q-table__middle"},he)}function ot(){const he=P.item!==void 0?P.item:we=>{const Ae=we.cols.map(Ce=>C.h("div",{class:"q-table__grid-item-row"},[C.h("div",{class:"q-table__grid-item-title"},[Ce.label]),C.h("div",{class:"q-table__grid-item-value"},[Ce.value])]));if(V.value===!0){const Ce=P["body-selection"],Ye=Ce!==void 0?Ce(we):[C.h(an,{modelValue:we.selected,color:u.color,dark:f.value,dense:u.dense,"onUpdate:modelValue":(Xe,te)=>{_([we.key],[we.row],Xe,te)}})];Ae.unshift(C.h("div",{class:"q-table__grid-item-row"},Ye),C.h(Oo,{dark:f.value}))}const Ie={class:["q-table__grid-item-card"+s.value,u.cardClass],style:u.cardStyle};if(u.cardStyleFn!==void 0&&(Ie.style=[Ie.style,u.cardStyleFn(we.row)]),u.cardClassFn!==void 0){const Ce=u.cardClassFn(we.row);Ce&&(Ie.class[0]+=` ${Ce}`)}return(u.onRowClick!==void 0||u.onRowDblclick!==void 0||u.onRowContextmenu!==void 0)&&(Ie.class[0]+=" cursor-pointer",u.onRowClick!==void 0&&(Ie.onClick=Ce=>{t("RowClick",Ce,we.row,we.pageIndex)}),u.onRowDblclick!==void 0&&(Ie.onDblclick=Ce=>{t("RowDblclick",Ce,we.row,we.pageIndex)}),u.onRowContextmenu!==void 0&&(Ie.onContextmenu=Ce=>{t("rowContextmenu",Ce,we.row,we.pageIndex)})),C.h("div",{class:"q-table__grid-item col-xs-12 col-sm-6 col-md-4 col-lg-3"+(we.selected===!0?" q-table__grid-item--selected":"")},[C.h("div",Ie,Ae)])};return C.h("div",{class:["q-table__grid-content row",u.cardContainerClass],style:u.cardContainerStyle},L.value.map((we,Ae)=>he(Ee({key:n.value(we),row:we,pageIndex:Ae}))))}return Object.assign(v.proxy,{requestServerInteraction:p,setPagination:x,firstPage:ee,prevPage:ae,nextPage:se,lastPage:G,isRowSelected:y,clearSelection:w,isRowExpanded:A,setExpanded:N,sort:B,resetVirtualScroll:fe,scrollTo:de,getCellValue:Fe}),Zo(v.proxy,{filteredSortedRows:()=>D.value,computedRows:()=>L.value,computedRowsNumber:()=>Z.value}),()=>{const he=[Pe()],we={ref:e,class:d.value};return u.grid===!0?he.push(We()):Object.assign(we,{class:[we.class,u.cardClass],style:u.cardStyle}),he.push(ce(),Ue()),u.loading===!0&&P.loading!==void 0&&he.push(P.loading()),C.h("div",we,he)}}}),Pc={shouldShowExpandButton:()=>!0};function zs(u,P){return typeof P.field=="function"?P.field(u):u[P.field]}function fi(u,P){return typeof u.visible=="function"?u.visible(P):u.visible!==!1}function wr(u,P){return typeof u.disabled=="function"?u.disabled(P):!!u.disabled}function qs(u,P,t,v){return u.filter(b=>fi(b,P)&&(b.position===t||b.position==="both")&&(!v||b.columnName===v))}function rn(u,P){return wr(u,P)?"grey":u.color||"primary"}function nn(u,P,t,v="action"){return u.testId?typeof u.testId=="function"?u.testId(P):u.testId:`${v}-${u.id}-${P[t]}`}const Nc={key:0,"auto-width":""},Bc=["onClick"],Dc={class:"flex items-center"},Fc={colspan:"100%"},Lc=C.defineComponent({__name:"CustomTable",props:{columns:{},results:{},filter:{default:""},pagination:{},loading:{type:Boolean,default:!1},onRequest:{},rowKey:{default:"id"},services:{default:()=>({})},conditionals:{default:()=>({})},actions:{type:[Array,Function],default:()=>[]}},emits:["update:pagination"],setup(u,{emit:P}){const t=u,v=P,b=C.ref([]),f=C.useSlots(),o=C.computed(()=>!!f.expanded),a=C.computed({get(){return t.pagination},set(N){v("update:pagination",N)}}),n=C.computed(()=>({...Pc,...t.conditionals})),e=N=>n.value.shouldShowExpandButton(N),r=N=>b.value.includes(N[t.rowKey]),l=C.computed(()=>t.results.length===0?!1:typeof t.actions=="function"?!0:t.actions.some(N=>fi(N,t.results[0])&&(N.position==="row"||N.position==="both")));function s(N){return typeof t.actions=="function"?t.actions(N):t.actions.filter(q=>fi(q,N))}function i(N){return qs(s(N),N,"row")}function d(N,q){return qs(s(N),N,"cell",q)}function h(N){return i(N).length>0}function c(N){const q=m(N);q&&!wr(q,N)&&q.handler(N)}function m(N){return s(N).find(D=>D.id==="edit")}function p(N,q){d(N,q).forEach(F=>{wr(F,N)||F.handler(N)})}async function x(N,q=!1){const D=N[t.rowKey];if(r(N)||q)b.value=b.value.filter(F=>F!==D);else if(b.value=[D],t.services.fetchDetails)try{N.details=await t.services.fetchDetails(N)}catch(F){console.error("Error fetching details:",F)}}async function k(N,q){if(!wr(N,q))try{N.isCancel&&await x(q,!0),N.handler(q)}catch(D){console.error(`Error executing action ${N.id}:`,D)}}function A(N){a.value=N.pagination,t.onRequest&&t.onRequest(N)}return(N,q)=>(C.openBlock(),C.createBlock(Ic,{pagination:a.value,"onUpdate:pagination":q[0]||(q[0]=D=>a.value=D),columns:N.columns,rows:N.results,filter:N.filter,"row-key":N.rowKey,"binary-state-sort":"","rows-per-page-options":a.value.rowsPerPageOptions,loading:N.loading,onRequest:A},{header:C.withCtx(D=>[C.createVNode(Xn,{props:D},{default:C.withCtx(()=>[o.value?(C.openBlock(),C.createBlock(dn,{key:0,"auto-width":""})):C.createCommentVNode("",!0),(C.openBlock(!0),C.createElementBlock(C.Fragment,null,C.renderList(D.cols,F=>(C.openBlock(),C.createBlock(dn,{key:F.name,props:D},{default:C.withCtx(()=>[C.createTextVNode(C.toDisplayString(F.label),1)]),_:2},1032,["props"]))),128)),l.value?(C.openBlock(),C.createBlock(dn,{key:1},{default:C.withCtx(()=>q[1]||(q[1]=[C.createTextVNode("Actions")])),_:1,__:[1]})):C.createCommentVNode("",!0)]),_:2},1032,["props"])]),body:C.withCtx(D=>[C.createVNode(Xn,{"data-cy":`row-${D.row[N.rowKey]}`,props:D,class:C.normalizeClass({"bg-grey-3":D.row.archived}),onDblclick:F=>c(D.row)},{default:C.withCtx(()=>[o.value?(C.openBlock(),C.createElementBlock("td",Nc,[C.renderSlot(N.$slots,"expand-button",{row:D.row,expanded:r(D.row),toggle:()=>x(D.row)},()=>[e(D.row)?(C.openBlock(),C.createBlock(wt,{key:0,"data-cy":`expand-button-${D.row[N.rowKey]}`,size:"sm",color:"primary",round:"",dense:"",icon:r(D.row)?"remove":"add",onClick:F=>x(D.row)},null,8,["data-cy","icon","onClick"])):C.createCommentVNode("",!0)])])):C.createCommentVNode("",!0),(C.openBlock(!0),C.createElementBlock(C.Fragment,null,C.renderList(D.cols,F=>(C.openBlock(),C.createElementBlock("td",{key:F.name,onClick:C.withModifiers(L=>p(D.row,F.name),["stop"])},[C.renderSlot(N.$slots,"body-cell",{row:D.row,col:F,value:C.unref(zs)(D.row,F)},()=>[C.createElementVNode("div",Dc,[C.createElementVNode("span",null,C.toDisplayString(C.unref(zs)(D.row,F)),1),(C.openBlock(!0),C.createElementBlock(C.Fragment,null,C.renderList(d(D.row,F.name),L=>(C.openBlock(),C.createElementBlock(C.Fragment,{key:L.id},[L.isButton?(C.openBlock(),C.createBlock(wt,C.mergeProps({key:0,color:C.unref(rn)(L,D.row),size:L.size||"sm",class:L.class,disabled:C.unref(wr)(L,D.row),label:L.label},{ref_for:!0},L.buttonProps||{},{"data-cy":C.unref(nn)(L,D.row,N.rowKey),onClick:C.withModifiers(V=>k(L,D.row),["stop"])}),null,16,["color","size","class","disabled","label","data-cy","onClick"])):(C.openBlock(),C.createBlock(kt,{key:1,class:"cursor-pointer q-ml-sm",name:L.icon,color:C.unref(rn)(L,D.row),size:L.size||"20px","data-cy":C.unref(nn)(L,D.row,N.rowKey,"cell-icon"),onClick:C.withModifiers(V=>k(L,D.row),["stop"])},{default:C.withCtx(()=>[L.label?(C.openBlock(),C.createBlock(Bs,{key:0},{default:C.withCtx(()=>[C.createTextVNode(C.toDisplayString(L.label),1)]),_:2},1024)):C.createCommentVNode("",!0)]),_:2},1032,["name","color","size","data-cy","onClick"]))],64))),128))])])],8,Bc))),128)),h(D.row)?(C.openBlock(),C.createBlock(sc,{key:1,class:"row items-center justify-center no-wrap"},{default:C.withCtx(()=>[(C.openBlock(!0),C.createElementBlock(C.Fragment,null,C.renderList(i(D.row),F=>(C.openBlock(),C.createElementBlock(C.Fragment,{key:F.id},[F.isButton?(C.openBlock(),C.createBlock(wt,C.mergeProps({key:0,color:C.unref(rn)(F,D.row),size:F.size||"sm",class:F.class,disabled:C.unref(wr)(F,D.row),label:F.label},{ref_for:!0},F.buttonProps||{},{"data-cy":C.unref(nn)(F,D.row,N.rowKey),onClick:C.withModifiers(L=>k(F,D.row),["stop"])}),null,16,["color","size","class","disabled","label","data-cy","onClick"])):(C.openBlock(),C.createBlock(kt,{key:1,class:"cursor-pointer q-mr-sm",name:F.icon,color:C.unref(rn)(F,D.row),size:F.size||"25px","data-cy":C.unref(nn)(F,D.row,N.rowKey,"icon"),onClick:C.withModifiers(L=>k(F,D.row),["stop"])},{default:C.withCtx(()=>[F.label?(C.openBlock(),C.createBlock(Bs,{key:0},{default:C.withCtx(()=>[C.createTextVNode(C.toDisplayString(F.label),1)]),_:2},1024)):C.createCommentVNode("",!0)]),_:2},1032,["name","color","size","data-cy","onClick"]))],64))),128))]),_:2},1024)):C.createCommentVNode("",!0)]),_:2},1032,["data-cy","props","class","onDblclick"]),o.value&&r(D.row)?(C.openBlock(),C.createBlock(Xn,{key:0},{default:C.withCtx(()=>[C.createElementVNode("td",Fc,[C.renderSlot(N.$slots,"expanded",{row:D.row})])]),_:2},1024)):C.createCommentVNode("",!0)]),_:3},8,["pagination","columns","rows","filter","row-key","rows-per-page-options","loading"]))}});var lt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function zc(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}function sn(u){throw new Error('Could not dynamically require "'+u+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Kn={exports:{}};/*! ExcelJS 19-10-2023 */var $s;function qc(){return $s||($s=1,function(u,P){(function(t){u.exports=t()})(function(){return function t(v,b,f){function o(e,r){if(!b[e]){if(!v[e]){var l=typeof sn=="function"&&sn;if(!r&&l)return l(e,!0);if(a)return a(e,!0);var s=new Error("Cannot find module '"+e+"'");throw s.code="MODULE_NOT_FOUND",s}var i=b[e]={exports:{}};v[e][0].call(i.exports,function(d){return o(v[e][1][d]||d)},i,i.exports,t,v,b,f)}return b[e].exports}for(var a=typeof sn=="function"&&sn,n=0;n<f.length;n++)o(f[n]);return o}({1:[function(t,v,b){const f=t("fs"),o=t("fast-csv"),a=t("dayjs/plugin/customParseFormat"),n=t("dayjs/plugin/utc"),e=t("dayjs").extend(a).extend(n),r=t("../utils/stream-buf"),{fs:{exists:l}}=t("../utils/utils"),s={true:!0,false:!1,"#N/A":{error:"#N/A"},"#REF!":{error:"#REF!"},"#NAME?":{error:"#NAME?"},"#DIV/0!":{error:"#DIV/0!"},"#NULL!":{error:"#NULL!"},"#VALUE!":{error:"#VALUE!"},"#NUM!":{error:"#NUM!"}};v.exports=class{constructor(i){this.workbook=i,this.worksheet=null}async readFile(i,d){if(d=d||{},!await l(i))throw new Error("File not found: "+i);const h=f.createReadStream(i),c=await this.read(h,d);return h.close(),c}read(i,d){return d=d||{},new Promise((h,c)=>{const m=this.workbook.addWorksheet(d.sheetName),p=d.dateFormats||["YYYY-MM-DD[T]HH:mm:ssZ","YYYY-MM-DD[T]HH:mm:ss","MM-DD-YYYY","YYYY-MM-DD"],x=d.map||function(A){if(A==="")return null;const N=Number(A);if(!Number.isNaN(N)&&N!==1/0)return N;const q=p.reduce((F,L)=>{if(F)return F;const V=e(A,L,!0);return V.isValid()?V:null},null);if(q)return new Date(q.valueOf());const D=s[A];return D!==void 0?D:A},k=o.parse(d.parserOptions).on("data",A=>{m.addRow(A.map(x))}).on("end",()=>{k.emit("worksheet",m)});k.on("worksheet",h).on("error",c),i.pipe(k)})}createInputStream(){throw new Error("`CSV#createInputStream` is deprecated. You should use `CSV#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}write(i,d){return new Promise((h,c)=>{d=d||{};const m=this.workbook.getWorksheet(d.sheetName||d.sheetId),p=o.format(d.formatterOptions);i.on("finish",()=>{h()}),p.on("error",c),p.pipe(i);const{dateFormat:x,dateUTC:k}=d,A=d.map||(D=>{if(D){if(D.text||D.hyperlink)return D.hyperlink||D.text||"";if(D.formula||D.result)return D.result||"";if(D instanceof Date)return x?k?e.utc(D).format(x):e(D).format(x):k?e.utc(D).format():e(D).format();if(D.error)return D.error;if(typeof D=="object")return JSON.stringify(D)}return D}),N=d.includeEmptyRows===void 0||d.includeEmptyRows;let q=1;m&&m.eachRow((D,F)=>{if(N)for(;q++<F-1;)p.write([]);const{values:L}=D;L.shift(),p.write(L.map(A)),q=F}),p.end()})}writeFile(i,d){const h={encoding:(d=d||{}).encoding||"utf8"},c=f.createWriteStream(i,h);return this.write(c,d)}async writeBuffer(i){const d=new r;return await this.write(d,i),d.read()}}},{"../utils/stream-buf":24,"../utils/utils":27,dayjs:391,"dayjs/plugin/customParseFormat":392,"dayjs/plugin/utc":393,"fast-csv":424,fs:216}],2:[function(t,v,b){const f=t("../utils/col-cache");class o{constructor(n,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(this.worksheet=n,e)if(typeof e=="string"){const l=f.decodeAddress(e);this.nativeCol=l.col+r,this.nativeColOff=0,this.nativeRow=l.row+r,this.nativeRowOff=0}else e.nativeCol!==void 0?(this.nativeCol=e.nativeCol||0,this.nativeColOff=e.nativeColOff||0,this.nativeRow=e.nativeRow||0,this.nativeRowOff=e.nativeRowOff||0):e.col!==void 0?(this.col=e.col+r,this.row=e.row+r):(this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0);else this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0}static asInstance(n){return n instanceof o||n==null?n:new o(n)}get col(){return this.nativeCol+Math.min(this.colWidth-1,this.nativeColOff)/this.colWidth}set col(n){this.nativeCol=Math.floor(n),this.nativeColOff=Math.floor((n-this.nativeCol)*this.colWidth)}get row(){return this.nativeRow+Math.min(this.rowHeight-1,this.nativeRowOff)/this.rowHeight}set row(n){this.nativeRow=Math.floor(n),this.nativeRowOff=Math.floor((n-this.nativeRow)*this.rowHeight)}get colWidth(){return this.worksheet&&this.worksheet.getColumn(this.nativeCol+1)&&this.worksheet.getColumn(this.nativeCol+1).isCustomWidth?Math.floor(1e4*this.worksheet.getColumn(this.nativeCol+1).width):64e4}get rowHeight(){return this.worksheet&&this.worksheet.getRow(this.nativeRow+1)&&this.worksheet.getRow(this.nativeRow+1).height?Math.floor(1e4*this.worksheet.getRow(this.nativeRow+1).height):18e4}get model(){return{nativeCol:this.nativeCol,nativeColOff:this.nativeColOff,nativeRow:this.nativeRow,nativeRowOff:this.nativeRowOff}}set model(n){this.nativeCol=n.nativeCol,this.nativeColOff=n.nativeColOff,this.nativeRow=n.nativeRow,this.nativeRowOff=n.nativeRowOff}}v.exports=o},{"../utils/col-cache":19}],3:[function(t,v,b){const f=t("../utils/col-cache"),o=t("../utils/under-dash"),a=t("./enums"),{slideFormula:n}=t("../utils/shared-formula"),e=t("./note");class r{constructor(i,d,h){if(!i||!d)throw new Error("A Cell needs a Row");this._row=i,this._column=d,f.validateAddress(h),this._address=h,this._value=l.create(r.Types.Null,this),this.style=this._mergeStyle(i.style,d.style,{}),this._mergeCount=0}get worksheet(){return this._row.worksheet}get workbook(){return this._row.worksheet.workbook}destroy(){delete this.style,delete this._value,delete this._row,delete this._column,delete this._address}get numFmt(){return this.style.numFmt}set numFmt(i){this.style.numFmt=i}get font(){return this.style.font}set font(i){this.style.font=i}get alignment(){return this.style.alignment}set alignment(i){this.style.alignment=i}get border(){return this.style.border}set border(i){this.style.border=i}get fill(){return this.style.fill}set fill(i){this.style.fill=i}get protection(){return this.style.protection}set protection(i){this.style.protection=i}_mergeStyle(i,d,h){const c=i&&i.numFmt||d&&d.numFmt;c&&(h.numFmt=c);const m=i&&i.font||d&&d.font;m&&(h.font=m);const p=i&&i.alignment||d&&d.alignment;p&&(h.alignment=p);const x=i&&i.border||d&&d.border;x&&(h.border=x);const k=i&&i.fill||d&&d.fill;k&&(h.fill=k);const A=i&&i.protection||d&&d.protection;return A&&(h.protection=A),h}get address(){return this._address}get row(){return this._row.number}get col(){return this._column.number}get $col$row(){return`$${this._column.letter}$${this.row}`}get type(){return this._value.type}get effectiveType(){return this._value.effectiveType}toCsvString(){return this._value.toCsvString()}addMergeRef(){this._mergeCount++}releaseMergeRef(){this._mergeCount--}get isMerged(){return this._mergeCount>0||this.type===r.Types.Merge}merge(i,d){this._value.release(),this._value=l.create(r.Types.Merge,this,i),d||(this.style=i.style)}unmerge(){this.type===r.Types.Merge&&(this._value.release(),this._value=l.create(r.Types.Null,this),this.style=this._mergeStyle(this._row.style,this._column.style,{}))}isMergedTo(i){return this._value.type===r.Types.Merge&&this._value.isMergedTo(i)}get master(){return this.type===r.Types.Merge?this._value.master:this}get isHyperlink(){return this._value.type===r.Types.Hyperlink}get hyperlink(){return this._value.hyperlink}get value(){return this._value.value}set value(i){this.type!==r.Types.Merge?(this._value.release(),this._value=l.create(l.getType(i),this,i)):this._value.master.value=i}get note(){return this._comment&&this._comment.note}set note(i){this._comment=new e(i)}get text(){return this._value.toString()}get html(){return o.escapeHtml(this.text)}toString(){return this.text}_upgradeToHyperlink(i){this.type===r.Types.String&&(this._value=l.create(r.Types.Hyperlink,this,{text:this._value.value,hyperlink:i}))}get formula(){return this._value.formula}get result(){return this._value.result}get formulaType(){return this._value.formulaType}get fullAddress(){const{worksheet:i}=this._row;return{sheetName:i.name,address:this.address,row:this.row,col:this.col}}get name(){return this.names[0]}set name(i){this.names=[i]}get names(){return this.workbook.definedNames.getNamesEx(this.fullAddress)}set names(i){const{definedNames:d}=this.workbook;d.removeAllNames(this.fullAddress),i.forEach(h=>{d.addEx(this.fullAddress,h)})}addName(i){this.workbook.definedNames.addEx(this.fullAddress,i)}removeName(i){this.workbook.definedNames.removeEx(this.fullAddress,i)}removeAllNames(){this.workbook.definedNames.removeAllNames(this.fullAddress)}get _dataValidations(){return this.worksheet.dataValidations}get dataValidation(){return this._dataValidations.find(this.address)}set dataValidation(i){this._dataValidations.add(this.address,i)}get model(){const{model:i}=this._value;return i.style=this.style,this._comment&&(i.comment=this._comment.model),i}set model(i){if(this._value.release(),this._value=l.create(i.type,this),this._value.model=i,i.comment)switch(i.comment.type){case"note":this._comment=e.fromModel(i.comment)}i.style?this.style=i.style:this.style={}}}r.Types=a.ValueType;const l={getType:s=>s==null?r.Types.Null:s instanceof String||typeof s=="string"?r.Types.String:typeof s=="number"?r.Types.Number:typeof s=="boolean"?r.Types.Boolean:s instanceof Date?r.Types.Date:s.text&&s.hyperlink?r.Types.Hyperlink:s.formula||s.sharedFormula?r.Types.Formula:s.richText?r.Types.RichText:s.sharedString?r.Types.SharedString:s.error?r.Types.Error:r.Types.JSON,types:[{t:r.Types.Null,f:class{constructor(s){this.model={address:s.address,type:r.Types.Null}}get value(){return null}set value(s){}get type(){return r.Types.Null}get effectiveType(){return r.Types.Null}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return""}release(){}toString(){return""}}},{t:r.Types.Number,f:class{constructor(s,i){this.model={address:s.address,type:r.Types.Number,value:i}}get value(){return this.model.value}set value(s){this.model.value=s}get type(){return r.Types.Number}get effectiveType(){return r.Types.Number}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:r.Types.String,f:class{constructor(s,i){this.model={address:s.address,type:r.Types.String,value:i}}get value(){return this.model.value}set value(s){this.model.value=s}get type(){return r.Types.String}get effectiveType(){return r.Types.String}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return`"${this.model.value.replace(/"/g,'""')}"`}release(){}toString(){return this.model.value}}},{t:r.Types.Date,f:class{constructor(s,i){this.model={address:s.address,type:r.Types.Date,value:i}}get value(){return this.model.value}set value(s){this.model.value=s}get type(){return r.Types.Date}get effectiveType(){return r.Types.Date}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return this.model.value.toISOString()}release(){}toString(){return this.model.value.toString()}}},{t:r.Types.Hyperlink,f:class{constructor(s,i){this.model={address:s.address,type:r.Types.Hyperlink,text:i?i.text:void 0,hyperlink:i?i.hyperlink:void 0},i&&i.tooltip&&(this.model.tooltip=i.tooltip)}get value(){const s={text:this.model.text,hyperlink:this.model.hyperlink};return this.model.tooltip&&(s.tooltip=this.model.tooltip),s}set value(s){this.model={text:s.text,hyperlink:s.hyperlink},s.tooltip&&(this.model.tooltip=s.tooltip)}get text(){return this.model.text}set text(s){this.model.text=s}get hyperlink(){return this.model.hyperlink}set hyperlink(s){this.model.hyperlink=s}get type(){return r.Types.Hyperlink}get effectiveType(){return r.Types.Hyperlink}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return this.model.hyperlink}release(){}toString(){return this.model.text}}},{t:r.Types.Formula,f:class{constructor(s,i){this.cell=s,this.model={address:s.address,type:r.Types.Formula,shareType:i?i.shareType:void 0,ref:i?i.ref:void 0,formula:i?i.formula:void 0,sharedFormula:i?i.sharedFormula:void 0,result:i?i.result:void 0}}_copyModel(s){const i={},d=h=>{const c=s[h];c&&(i[h]=c)};return d("formula"),d("result"),d("ref"),d("shareType"),d("sharedFormula"),i}get value(){return this._copyModel(this.model)}set value(s){this.model=this._copyModel(s)}validate(s){switch(l.getType(s)){case r.Types.Null:case r.Types.String:case r.Types.Number:case r.Types.Date:break;case r.Types.Hyperlink:case r.Types.Formula:default:throw new Error("Cannot process that type of result value")}}get dependencies(){return{ranges:this.formula.match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g),cells:this.formula.replace(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g,"").match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}/g)}}get formula(){return this.model.formula||this._getTranslatedFormula()}set formula(s){this.model.formula=s}get formulaType(){return this.model.formula?a.FormulaType.Master:this.model.sharedFormula?a.FormulaType.Shared:a.FormulaType.None}get result(){return this.model.result}set result(s){this.model.result=s}get type(){return r.Types.Formula}get effectiveType(){const s=this.model.result;return s==null?a.ValueType.Null:s instanceof String||typeof s=="string"?a.ValueType.String:typeof s=="number"?a.ValueType.Number:s instanceof Date?a.ValueType.Date:s.text&&s.hyperlink?a.ValueType.Hyperlink:s.formula?a.ValueType.Formula:a.ValueType.Null}get address(){return this.model.address}set address(s){this.model.address=s}_getTranslatedFormula(){if(!this._translatedFormula&&this.model.sharedFormula){const{worksheet:s}=this.cell,i=s.findCell(this.model.sharedFormula);this._translatedFormula=i&&n(i.formula,i.address,this.model.address)}return this._translatedFormula}toCsvString(){return""+(this.model.result||"")}release(){}toString(){return this.model.result?this.model.result.toString():""}}},{t:r.Types.Merge,f:class{constructor(s,i){this.model={address:s.address,type:r.Types.Merge,master:i?i.address:void 0},this._master=i,i&&i.addMergeRef()}get value(){return this._master.value}set value(s){s instanceof r?(this._master&&this._master.releaseMergeRef(),s.addMergeRef(),this._master=s):this._master.value=s}isMergedTo(s){return s===this._master}get master(){return this._master}get type(){return r.Types.Merge}get effectiveType(){return this._master.effectiveType}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return""}release(){this._master.releaseMergeRef()}toString(){return this.value.toString()}}},{t:r.Types.JSON,f:class{constructor(s,i){this.model={address:s.address,type:r.Types.String,value:JSON.stringify(i),rawValue:i}}get value(){return this.model.rawValue}set value(s){this.model.rawValue=s,this.model.value=JSON.stringify(s)}get type(){return r.Types.String}get effectiveType(){return r.Types.String}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return this.model.value}release(){}toString(){return this.model.value}}},{t:r.Types.SharedString,f:class{constructor(s,i){this.model={address:s.address,type:r.Types.SharedString,value:i}}get value(){return this.model.value}set value(s){this.model.value=s}get type(){return r.Types.SharedString}get effectiveType(){return r.Types.SharedString}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:r.Types.RichText,f:class{constructor(s,i){this.model={address:s.address,type:r.Types.String,value:i}}get value(){return this.model.value}set value(s){this.model.value=s}toString(){return this.model.value.richText.map(s=>s.text).join("")}get type(){return r.Types.RichText}get effectiveType(){return r.Types.RichText}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return`"${this.text.replace(/"/g,'""')}"`}release(){}}},{t:r.Types.Boolean,f:class{constructor(s,i){this.model={address:s.address,type:r.Types.Boolean,value:i}}get value(){return this.model.value}set value(s){this.model.value=s}get type(){return r.Types.Boolean}get effectiveType(){return r.Types.Boolean}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return this.model.value?1:0}release(){}toString(){return this.model.value.toString()}}},{t:r.Types.Error,f:class{constructor(s,i){this.model={address:s.address,type:r.Types.Error,value:i}}get value(){return this.model.value}set value(s){this.model.value=s}get type(){return r.Types.Error}get effectiveType(){return r.Types.Error}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return this.toString()}release(){}toString(){return this.model.value.error.toString()}}}].reduce((s,i)=>(s[i.t]=i.f,s),[]),create(s,i,d){const h=this.types[s];if(!h)throw new Error("Could not create Value of type "+s);return new h(i,d)}};v.exports=r},{"../utils/col-cache":19,"../utils/shared-formula":23,"../utils/under-dash":26,"./enums":7,"./note":9}],4:[function(t,v,b){const f=t("../utils/under-dash"),o=t("./enums"),a=t("../utils/col-cache");class n{constructor(r,l,s){this._worksheet=r,this._number=l,s!==!1&&(this.defn=s)}get number(){return this._number}get worksheet(){return this._worksheet}get letter(){return a.n2l(this._number)}get isCustomWidth(){return this.width!==void 0&&this.width!==9}get defn(){return{header:this._header,key:this.key,width:this.width,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel}}set defn(r){r?(this.key=r.key,this.width=r.width!==void 0?r.width:9,this.outlineLevel=r.outlineLevel,r.style?this.style=r.style:this.style={},this.header=r.header,this._hidden=!!r.hidden):(delete this._header,delete this._key,delete this.width,this.style={},this.outlineLevel=0)}get headers(){return this._header&&this._header instanceof Array?this._header:[this._header]}get header(){return this._header}set header(r){r!==void 0?(this._header=r,this.headers.forEach((l,s)=>{this._worksheet.getCell(s+1,this.number).value=l})):this._header=void 0}get key(){return this._key}set key(r){(this._key&&this._worksheet.getColumnKey(this._key))===this&&this._worksheet.deleteColumnKey(this._key),this._key=r,r&&this._worksheet.setColumnKey(this._key,this)}get hidden(){return!!this._hidden}set hidden(r){this._hidden=r}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(r){this._outlineLevel=r}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelCol)}toString(){return JSON.stringify({key:this.key,width:this.width,headers:this.headers.length?this.headers:void 0})}equivalentTo(r){return this.width===r.width&&this.hidden===r.hidden&&this.outlineLevel===r.outlineLevel&&f.isEqual(this.style,r.style)}get isDefault(){if(this.isCustomWidth||this.hidden||this.outlineLevel)return!1;const r=this.style;return!r||!(r.font||r.numFmt||r.alignment||r.border||r.fill||r.protection)}get headerCount(){return this.headers.length}eachCell(r,l){const s=this.number;l||(l=r,r=null),this._worksheet.eachRow(r,(i,d)=>{l(i.getCell(s),d)})}get values(){const r=[];return this.eachCell((l,s)=>{l&&l.type!==o.ValueType.Null&&(r[s]=l.value)}),r}set values(r){if(!r)return;const l=this.number;let s=0;r.hasOwnProperty("0")&&(s=1),r.forEach((i,d)=>{this._worksheet.getCell(d+s,l).value=i})}_applyStyle(r,l){return this.style[r]=l,this.eachCell(s=>{s[r]=l}),l}get numFmt(){return this.style.numFmt}set numFmt(r){this._applyStyle("numFmt",r)}get font(){return this.style.font}set font(r){this._applyStyle("font",r)}get alignment(){return this.style.alignment}set alignment(r){this._applyStyle("alignment",r)}get protection(){return this.style.protection}set protection(r){this._applyStyle("protection",r)}get border(){return this.style.border}set border(r){this._applyStyle("border",r)}get fill(){return this.style.fill}set fill(r){this._applyStyle("fill",r)}static toModel(r){const l=[];let s=null;return r&&r.forEach((i,d)=>{i.isDefault?s&&(s=null):s&&i.equivalentTo(s)?s.max=d+1:(s={min:d+1,max:d+1,width:i.width!==void 0?i.width:9,style:i.style,isCustomWidth:i.isCustomWidth,hidden:i.hidden,outlineLevel:i.outlineLevel,collapsed:i.collapsed},l.push(s))}),l.length?l:void 0}static fromModel(r,l){const s=[];let i=1,d=0;for(l=(l=l||[]).sort(function(h,c){return h.min-c.min});d<l.length;){const h=l[d++];for(;i<h.min;)s.push(new n(r,i++));for(;i<=h.max;)s.push(new n(r,i++,h))}return s.length?s:null}}v.exports=n},{"../utils/col-cache":19,"../utils/under-dash":26,"./enums":7}],5:[function(t,v,b){v.exports=class{constructor(f){this.model=f||{}}add(f,o){return this.model[f]=o}find(f){return this.model[f]}remove(f){this.model[f]=void 0}}},{}],6:[function(t,v,b){const f=t("../utils/under-dash"),o=t("../utils/col-cache"),a=t("../utils/cell-matrix"),n=t("./range"),e=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/;v.exports=class{constructor(){this.matrixMap={}}getMatrix(r){return this.matrixMap[r]||(this.matrixMap[r]=new a)}add(r,l){const s=o.decodeEx(r);this.addEx(s,l)}addEx(r,l){const s=this.getMatrix(l);if(r.top)for(let i=r.left;i<=r.right;i++)for(let d=r.top;d<=r.bottom;d++){const h={sheetName:r.sheetName,address:o.n2l(i)+d,row:d,col:i};s.addCellEx(h)}else s.addCellEx(r)}remove(r,l){const s=o.decodeEx(r);this.removeEx(s,l)}removeEx(r,l){this.getMatrix(l).removeCellEx(r)}removeAllNames(r){f.each(this.matrixMap,l=>{l.removeCellEx(r)})}forEach(r){f.each(this.matrixMap,(l,s)=>{l.forEach(i=>{r(s,i)})})}getNames(r){return this.getNamesEx(o.decodeEx(r))}getNamesEx(r){return f.map(this.matrixMap,(l,s)=>l.findCellEx(r)&&s).filter(Boolean)}_explore(r,l){l.mark=!1;const{sheetName:s}=l,i=new n(l.row,l.col,l.row,l.col,s);let d,h;function c(p,x){const k=r.findCellAt(s,p,l.col);return!(!k||!k.mark)&&(i[x]=p,k.mark=!1,!0)}for(h=l.row-1;c(h,"top");h--);for(h=l.row+1;c(h,"bottom");h++);function m(p,x){const k=[];for(h=i.top;h<=i.bottom;h++){const A=r.findCellAt(s,h,p);if(!A||!A.mark)return!1;k.push(A)}i[x]=p;for(let A=0;A<k.length;A++)k[A].mark=!1;return!0}for(d=l.col-1;m(d,"left");d--);for(d=l.col+1;m(d,"right");d++);return i}getRanges(r,l){return(l=l||this.matrixMap[r])?(l.forEach(s=>{s.mark=!0}),{name:r,ranges:l.map(s=>s.mark&&this._explore(l,s)).filter(Boolean).map(s=>s.$shortRange)}):{name:r,ranges:[]}}normaliseMatrix(r,l){r.forEachInSheet(l,(s,i,d)=>{s&&(s.row===i&&s.col===d||(s.row=i,s.col=d,s.address=o.n2l(d)+i))})}spliceRows(r,l,s,i){f.each(this.matrixMap,d=>{d.spliceRows(r,l,s,i),this.normaliseMatrix(d,r)})}spliceColumns(r,l,s,i){f.each(this.matrixMap,d=>{d.spliceColumns(r,l,s,i),this.normaliseMatrix(d,r)})}get model(){return f.map(this.matrixMap,(r,l)=>this.getRanges(l,r)).filter(r=>r.ranges.length)}set model(r){const l=this.matrixMap={};r.forEach(s=>{const i=l[s.name]=new a;s.ranges.forEach(d=>{e.test(d.split("!").pop()||"")&&i.addCell(d)})})}}},{"../utils/cell-matrix":18,"../utils/col-cache":19,"../utils/under-dash":26,"./range":10}],7:[function(t,v,b){v.exports={ValueType:{Null:0,Merge:1,Number:2,String:3,Date:4,Hyperlink:5,Formula:6,SharedString:7,RichText:8,Boolean:9,Error:10},FormulaType:{None:0,Master:1,Shared:2},RelationshipType:{None:0,OfficeDocument:1,Worksheet:2,CalcChain:3,SharedStrings:4,Styles:5,Theme:6,Hyperlink:7},DocumentType:{Xlsx:1},ReadingOrder:{LeftToRight:1,RightToLeft:2},ErrorValue:{NotApplicable:"#N/A",Ref:"#REF!",Name:"#NAME?",DivZero:"#DIV/0!",Null:"#NULL!",Value:"#VALUE!",Num:"#NUM!"}}},{}],8:[function(t,v,b){const f=t("../utils/col-cache"),o=t("./anchor");v.exports=class{constructor(a,n){this.worksheet=a,this.model=n}get model(){switch(this.type){case"background":return{type:this.type,imageId:this.imageId};case"image":return{type:this.type,imageId:this.imageId,hyperlinks:this.range.hyperlinks,range:{tl:this.range.tl.model,br:this.range.br&&this.range.br.model,ext:this.range.ext,editAs:this.range.editAs}};default:throw new Error("Invalid Image Type")}}set model(a){let{type:n,imageId:e,range:r,hyperlinks:l}=a;if(this.type=n,this.imageId=e,n==="image")if(typeof r=="string"){const s=f.decode(r);this.range={tl:new o(this.worksheet,{col:s.left,row:s.top},-1),br:new o(this.worksheet,{col:s.right,row:s.bottom},0),editAs:"oneCell"}}else this.range={tl:new o(this.worksheet,r.tl,0),br:r.br&&new o(this.worksheet,r.br,0),ext:r.ext,editAs:r.editAs,hyperlinks:l||r.hyperlinks}}}},{"../utils/col-cache":19,"./anchor":2}],9:[function(t,v,b){const f=t("../utils/under-dash");class o{constructor(n){this.note=n}get model(){let n=null;switch(typeof this.note){case"string":n={type:"note",note:{texts:[{text:this.note}]}};break;default:n={type:"note",note:this.note}}return f.deepMerge({},o.DEFAULT_CONFIGS,n)}set model(n){const{note:e}=n,{texts:r}=e;r.length===1&&Object.keys(r[0]).length===1?this.note=r[0].text:this.note=e}static fromModel(n){const e=new o;return e.model=n,e}}o.DEFAULT_CONFIGS={note:{margins:{insetmode:"auto",inset:[.13,.13,.25,.25]},protection:{locked:"True",lockText:"True"},editAs:"absolute"}},v.exports=o},{"../utils/under-dash":26}],10:[function(t,v,b){const f=t("../utils/col-cache");class o{constructor(){this.decode(arguments)}setTLBR(n,e,r,l,s){if(arguments.length<4){const i=f.decodeAddress(n),d=f.decodeAddress(e);this.model={top:Math.min(i.row,d.row),left:Math.min(i.col,d.col),bottom:Math.max(i.row,d.row),right:Math.max(i.col,d.col),sheetName:r},this.setTLBR(i.row,i.col,d.row,d.col,s)}else this.model={top:Math.min(n,r),left:Math.min(e,l),bottom:Math.max(n,r),right:Math.max(e,l),sheetName:s}}decode(n){switch(n.length){case 5:this.setTLBR(n[0],n[1],n[2],n[3],n[4]);break;case 4:this.setTLBR(n[0],n[1],n[2],n[3]);break;case 3:this.setTLBR(n[0],n[1],n[2]);break;case 2:this.setTLBR(n[0],n[1]);break;case 1:{const e=n[0];if(e instanceof o)this.model={top:e.model.top,left:e.model.left,bottom:e.model.bottom,right:e.model.right,sheetName:e.sheetName};else if(e instanceof Array)this.decode(e);else if(e.top&&e.left&&e.bottom&&e.right)this.model={top:e.top,left:e.left,bottom:e.bottom,right:e.right,sheetName:e.sheetName};else{const r=f.decodeEx(e);r.top?this.model={top:r.top,left:r.left,bottom:r.bottom,right:r.right,sheetName:r.sheetName}:this.model={top:r.row,left:r.col,bottom:r.row,right:r.col,sheetName:r.sheetName}}break}case 0:this.model={top:0,left:0,bottom:0,right:0};break;default:throw new Error("Invalid number of arguments to _getDimensions() - "+n.length)}}get top(){return this.model.top||1}set top(n){this.model.top=n}get left(){return this.model.left||1}set left(n){this.model.left=n}get bottom(){return this.model.bottom||1}set bottom(n){this.model.bottom=n}get right(){return this.model.right||1}set right(n){this.model.right=n}get sheetName(){return this.model.sheetName}set sheetName(n){this.model.sheetName=n}get _serialisedSheetName(){const{sheetName:n}=this.model;return n?/^[a-zA-Z0-9]*$/.test(n)?n+"!":`'${n}'!`:""}expand(n,e,r,l){(!this.model.top||n<this.top)&&(this.top=n),(!this.model.left||e<this.left)&&(this.left=e),(!this.model.bottom||r>this.bottom)&&(this.bottom=r),(!this.model.right||l>this.right)&&(this.right=l)}expandRow(n){if(n){const{dimensions:e,number:r}=n;e&&this.expand(r,e.min,r,e.max)}}expandToAddress(n){const e=f.decodeEx(n);this.expand(e.row,e.col,e.row,e.col)}get tl(){return f.n2l(this.left)+this.top}get $t$l(){return`$${f.n2l(this.left)}$${this.top}`}get br(){return f.n2l(this.right)+this.bottom}get $b$r(){return`$${f.n2l(this.right)}$${this.bottom}`}get range(){return`${this._serialisedSheetName+this.tl}:${this.br}`}get $range(){return`${this._serialisedSheetName+this.$t$l}:${this.$b$r}`}get shortRange(){return this.count>1?this.range:this._serialisedSheetName+this.tl}get $shortRange(){return this.count>1?this.$range:this._serialisedSheetName+this.$t$l}get count(){return(1+this.bottom-this.top)*(1+this.right-this.left)}toString(){return this.range}intersects(n){return(!n.sheetName||!this.sheetName||n.sheetName===this.sheetName)&&!(n.bottom<this.top)&&!(n.top>this.bottom)&&!(n.right<this.left)&&!(n.left>this.right)}contains(n){const e=f.decodeEx(n);return this.containsEx(e)}containsEx(n){return(!n.sheetName||!this.sheetName||n.sheetName===this.sheetName)&&n.row>=this.top&&n.row<=this.bottom&&n.col>=this.left&&n.col<=this.right}forEachAddress(n){for(let e=this.left;e<=this.right;e++)for(let r=this.top;r<=this.bottom;r++)n(f.encodeAddress(r,e),r,e)}}v.exports=o},{"../utils/col-cache":19}],11:[function(t,v,b){const f=t("../utils/under-dash"),o=t("./enums"),a=t("../utils/col-cache"),n=t("./cell");v.exports=class{constructor(e,r){this._worksheet=e,this._number=r,this._cells=[],this.style={},this.outlineLevel=0}get number(){return this._number}get worksheet(){return this._worksheet}commit(){this._worksheet._commitRow(this)}destroy(){delete this._worksheet,delete this._cells,delete this.style}findCell(e){return this._cells[e-1]}getCellEx(e){let r=this._cells[e.col-1];if(!r){const l=this._worksheet.getColumn(e.col);r=new n(this,l,e.address),this._cells[e.col-1]=r}return r}getCell(e){if(typeof e=="string"){const r=this._worksheet.getColumnKey(e);e=r?r.number:a.l2n(e)}return this._cells[e-1]||this.getCellEx({address:a.encodeAddress(this._number,e),row:this._number,col:e})}splice(e,r){const l=e+r;for(var s=arguments.length,i=new Array(s>2?s-2:0),d=2;d<s;d++)i[d-2]=arguments[d];const h=i.length-r,c=this._cells.length;let m,p,x;if(h<0)for(m=e+i.length;m<=c;m++)x=this._cells[m-1],p=this._cells[m-h-1],p?(x=this.getCell(m),x.value=p.value,x.style=p.style,x._comment=p._comment):x&&(x.value=null,x.style={},x._comment=void 0);else if(h>0)for(m=c;m>=l;m--)p=this._cells[m-1],p?(x=this.getCell(m+h),x.value=p.value,x.style=p.style,x._comment=p._comment):this._cells[m+h-1]=void 0;for(m=0;m<i.length;m++)x=this.getCell(e+m),x.value=i[m],x.style={},x._comment=void 0}eachCell(e,r){if(r||(r=e,e=null),e&&e.includeEmpty){const l=this._cells.length;for(let s=1;s<=l;s++)r(this.getCell(s),s)}else this._cells.forEach((l,s)=>{l&&l.type!==o.ValueType.Null&&r(l,s+1)})}addPageBreak(e,r){const l=this._worksheet,s=Math.max(0,e-1)||0,i=Math.max(0,r-1)||16838,d={id:this._number,max:i,man:1};s&&(d.min=s),l.rowBreaks.push(d)}get values(){const e=[];return this._cells.forEach(r=>{r&&r.type!==o.ValueType.Null&&(e[r.col]=r.value)}),e}set values(e){if(this._cells=[],e)if(e instanceof Array){let r=0;e.hasOwnProperty("0")&&(r=1),e.forEach((l,s)=>{l!==void 0&&(this.getCellEx({address:a.encodeAddress(this._number,s+r),row:this._number,col:s+r}).value=l)})}else this._worksheet.eachColumnKey((r,l)=>{e[l]!==void 0&&(this.getCellEx({address:a.encodeAddress(this._number,r.number),row:this._number,col:r.number}).value=e[l])})}get hasValues(){return f.some(this._cells,e=>e&&e.type!==o.ValueType.Null)}get cellCount(){return this._cells.length}get actualCellCount(){let e=0;return this.eachCell(()=>{e++}),e}get dimensions(){let e=0,r=0;return this._cells.forEach(l=>{l&&l.type!==o.ValueType.Null&&((!e||e>l.col)&&(e=l.col),r<l.col&&(r=l.col))}),e>0?{min:e,max:r}:null}_applyStyle(e,r){return this.style[e]=r,this._cells.forEach(l=>{l&&(l[e]=r)}),r}get numFmt(){return this.style.numFmt}set numFmt(e){this._applyStyle("numFmt",e)}get font(){return this.style.font}set font(e){this._applyStyle("font",e)}get alignment(){return this.style.alignment}set alignment(e){this._applyStyle("alignment",e)}get protection(){return this.style.protection}set protection(e){this._applyStyle("protection",e)}get border(){return this.style.border}set border(e){this._applyStyle("border",e)}get fill(){return this.style.fill}set fill(e){this._applyStyle("fill",e)}get hidden(){return!!this._hidden}set hidden(e){this._hidden=e}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(e){this._outlineLevel=e}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelRow)}get model(){const e=[];let r=0,l=0;return this._cells.forEach(s=>{if(s){const i=s.model;i&&((!r||r>s.col)&&(r=s.col),l<s.col&&(l=s.col),e.push(i))}}),this.height||e.length?{cells:e,number:this.number,min:r,max:l,height:this.height,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel,collapsed:this.collapsed}:null}set model(e){if(e.number!==this._number)throw new Error("Invalid row number in model");let r;this._cells=[],e.cells.forEach(l=>{switch(l.type){case n.Types.Merge:break;default:{let s;if(l.address)s=a.decodeAddress(l.address);else if(r){const{row:i}=r,d=r.col+1;s={row:i,col:d,address:a.encodeAddress(i,d),$col$row:`$${a.n2l(d)}$${i}`}}r=s,this.getCellEx(s).model=l;break}}}),e.height?this.height=e.height:delete this.height,this.hidden=e.hidden,this.outlineLevel=e.outlineLevel||0,this.style=e.style&&JSON.parse(JSON.stringify(e.style))||{}}}},{"../utils/col-cache":19,"../utils/under-dash":26,"./cell":3,"./enums":7}],12:[function(t,v,b){const f=t("../utils/col-cache");class o{constructor(n,e,r){this.table=n,this.column=e,this.index=r}_set(n,e){this.table.cacheState(),this.column[n]=e}get name(){return this.column.name}set name(n){this._set("name",n)}get filterButton(){return this.column.filterButton}set filterButton(n){this.column.filterButton=n}get style(){return this.column.style}set style(n){this.column.style=n}get totalsRowLabel(){return this.column.totalsRowLabel}set totalsRowLabel(n){this._set("totalsRowLabel",n)}get totalsRowFunction(){return this.column.totalsRowFunction}set totalsRowFunction(n){this._set("totalsRowFunction",n)}get totalsRowResult(){return this.column.totalsRowResult}set totalsRowResult(n){this._set("totalsRowResult",n)}get totalsRowFormula(){return this.column.totalsRowFormula}set totalsRowFormula(n){this._set("totalsRowFormula",n)}}v.exports=class{constructor(a,n){this.worksheet=a,n&&(this.table=n,this.validate(),this.store())}getFormula(a){switch(a.totalsRowFunction){case"none":return null;case"average":return`SUBTOTAL(101,${this.table.name}[${a.name}])`;case"countNums":return`SUBTOTAL(102,${this.table.name}[${a.name}])`;case"count":return`SUBTOTAL(103,${this.table.name}[${a.name}])`;case"max":return`SUBTOTAL(104,${this.table.name}[${a.name}])`;case"min":return`SUBTOTAL(105,${this.table.name}[${a.name}])`;case"stdDev":return`SUBTOTAL(106,${this.table.name}[${a.name}])`;case"var":return`SUBTOTAL(107,${this.table.name}[${a.name}])`;case"sum":return`SUBTOTAL(109,${this.table.name}[${a.name}])`;case"custom":return a.totalsRowFormula;default:throw new Error("Invalid Totals Row Function: "+a.totalsRowFunction)}}get width(){return this.table.columns.length}get height(){return this.table.rows.length}get filterHeight(){return this.height+(this.table.headerRow?1:0)}get tableHeight(){return this.filterHeight+(this.table.totalsRow?1:0)}validate(){const{table:a}=this,n=(h,c,m)=>{h[c]===void 0&&(h[c]=m)};n(a,"headerRow",!0),n(a,"totalsRow",!1),n(a,"style",{}),n(a.style,"theme","TableStyleMedium2"),n(a.style,"showFirstColumn",!1),n(a.style,"showLastColumn",!1),n(a.style,"showRowStripes",!1),n(a.style,"showColumnStripes",!1);const e=(h,c)=>{if(!h)throw new Error(c)};e(a.ref,"Table must have ref"),e(a.columns,"Table must have column definitions"),e(a.rows,"Table must have row definitions"),a.tl=f.decodeAddress(a.ref);const{row:r,col:l}=a.tl;e(r>0,"Table must be on valid row"),e(l>0,"Table must be on valid col");const{width:s,filterHeight:i,tableHeight:d}=this;a.autoFilterRef=f.encode(r,l,r+i-1,l+s-1),a.tableRef=f.encode(r,l,r+d-1,l+s-1),a.columns.forEach((h,c)=>{e(h.name,`Column ${c} must have a name`),c===0?n(h,"totalsRowLabel","Total"):(n(h,"totalsRowFunction","none"),h.totalsRowFormula=this.getFormula(h))})}store(){const a=(i,d)=>{d&&Object.keys(d).forEach(h=>{i[h]=d[h]})},{worksheet:n,table:e}=this,{row:r,col:l}=e.tl;let s=0;if(e.headerRow){const i=n.getRow(r+s++);e.columns.forEach((d,h)=>{const{style:c,name:m}=d,p=i.getCell(l+h);p.value=m,a(p,c)})}if(e.rows.forEach(i=>{const d=n.getRow(r+s++);i.forEach((h,c)=>{const m=d.getCell(l+c);m.value=h,a(m,e.columns[c].style)})}),e.totalsRow){const i=n.getRow(r+s++);e.columns.forEach((d,h)=>{const c=i.getCell(l+h);if(h===0)c.value=d.totalsRowLabel;else{const m=this.getFormula(d);c.value=m?{formula:d.totalsRowFormula,result:d.totalsRowResult}:null}a(c,d.style)})}}load(a){const{table:n}=this,{row:e,col:r}=n.tl;let l=0;if(n.headerRow){const s=a.getRow(e+l++);n.columns.forEach((i,d)=>{s.getCell(r+d).value=i.name})}if(n.rows.forEach(s=>{const i=a.getRow(e+l++);s.forEach((d,h)=>{i.getCell(r+h).value=d})}),n.totalsRow){const s=a.getRow(e+l++);n.columns.forEach((i,d)=>{const h=s.getCell(r+d);d===0?h.value=i.totalsRowLabel:this.getFormula(i)&&(h.value={formula:i.totalsRowFormula,result:i.totalsRowResult})})}}get model(){return this.table}set model(a){this.table=a}cacheState(){this._cache||(this._cache={ref:this.ref,width:this.width,tableHeight:this.tableHeight})}commit(){if(!this._cache)return;this.validate();const a=f.decodeAddress(this._cache.ref);if(this.ref!==this._cache.ref)for(let n=0;n<this._cache.tableHeight;n++){const e=this.worksheet.getRow(a.row+n);for(let r=0;r<this._cache.width;r++)e.getCell(a.col+r).value=null}else{for(let n=this.tableHeight;n<this._cache.tableHeight;n++){const e=this.worksheet.getRow(a.row+n);for(let r=0;r<this._cache.width;r++)e.getCell(a.col+r).value=null}for(let n=0;n<this.tableHeight;n++){const e=this.worksheet.getRow(a.row+n);for(let r=this.width;r<this._cache.width;r++)e.getCell(a.col+r).value=null}}this.store()}addRow(a,n){this.cacheState(),n===void 0?this.table.rows.push(a):this.table.rows.splice(n,0,a)}removeRows(a){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.rows.splice(a,n)}getColumn(a){const n=this.table.columns[a];return new o(this,n,a)}addColumn(a,n,e){this.cacheState(),e===void 0?(this.table.columns.push(a),this.table.rows.forEach((r,l)=>{r.push(n[l])})):(this.table.columns.splice(e,0,a),this.table.rows.forEach((r,l)=>{r.splice(e,0,n[l])}))}removeColumns(a){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.columns.splice(a,n),this.table.rows.forEach(e=>{e.splice(a,n)})}_assign(a,n,e){this.cacheState(),a[n]=e}get ref(){return this.table.ref}set ref(a){this._assign(this.table,"ref",a)}get name(){return this.table.name}set name(a){this.table.name=a}get displayName(){return this.table.displyName||this.table.name}set displayNamename(a){this.table.displayName=a}get headerRow(){return this.table.headerRow}set headerRow(a){this._assign(this.table,"headerRow",a)}get totalsRow(){return this.table.totalsRow}set totalsRow(a){this._assign(this.table,"totalsRow",a)}get theme(){return this.table.style.name}set theme(a){this.table.style.name=a}get showFirstColumn(){return this.table.style.showFirstColumn}set showFirstColumn(a){this.table.style.showFirstColumn=a}get showLastColumn(){return this.table.style.showLastColumn}set showLastColumn(a){this.table.style.showLastColumn=a}get showRowStripes(){return this.table.style.showRowStripes}set showRowStripes(a){this.table.style.showRowStripes=a}get showColumnStripes(){return this.table.style.showColumnStripes}set showColumnStripes(a){this.table.style.showColumnStripes=a}}},{"../utils/col-cache":19}],13:[function(t,v,b){const f=t("./worksheet"),o=t("./defined-names"),a=t("../xlsx/xlsx"),n=t("../csv/csv");v.exports=class{constructor(){this.category="",this.company="",this.created=new Date,this.description="",this.keywords="",this.manager="",this.modified=this.created,this.properties={},this.calcProperties={},this._worksheets=[],this.subject="",this.title="",this.views=[],this.media=[],this._definedNames=new o}get xlsx(){return this._xlsx||(this._xlsx=new a(this)),this._xlsx}get csv(){return this._csv||(this._csv=new n(this)),this._csv}get nextId(){for(let e=1;e<this._worksheets.length;e++)if(!this._worksheets[e])return e;return this._worksheets.length||1}addWorksheet(e,r){const l=this.nextId;r&&(typeof r=="string"?(console.trace('tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { argb: "rbg value" } }'),r={properties:{tabColor:{argb:r}}}):(r.argb||r.theme||r.indexed)&&(console.trace("tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { ... } }"),r={properties:{tabColor:r}}));const s=this._worksheets.reduce((h,c)=>(c&&c.orderNo)>h?c.orderNo:h,0),i=Object.assign({},r,{id:l,name:e,orderNo:s+1,workbook:this}),d=new f(i);return this._worksheets[l]=d,d}removeWorksheetEx(e){delete this._worksheets[e.id]}removeWorksheet(e){const r=this.getWorksheet(e);r&&r.destroy()}getWorksheet(e){return e===void 0?this._worksheets.find(Boolean):typeof e=="number"?this._worksheets[e]:typeof e=="string"?this._worksheets.find(r=>r&&r.name===e):void 0}get worksheets(){return this._worksheets.slice(1).sort((e,r)=>e.orderNo-r.orderNo).filter(Boolean)}eachSheet(e){this.worksheets.forEach(r=>{e(r,r.id)})}get definedNames(){return this._definedNames}clearThemes(){this._themes=void 0}addImage(e){const r=this.media.length;return this.media.push(Object.assign({},e,{type:"image"})),r}getImage(e){return this.media[e]}get model(){return{creator:this.creator||"Unknown",lastModifiedBy:this.lastModifiedBy||"Unknown",lastPrinted:this.lastPrinted,created:this.created,modified:this.modified,properties:this.properties,worksheets:this.worksheets.map(e=>e.model),sheets:this.worksheets.map(e=>e.model).filter(Boolean),definedNames:this._definedNames.model,views:this.views,company:this.company,manager:this.manager,title:this.title,subject:this.subject,keywords:this.keywords,category:this.category,description:this.description,language:this.language,revision:this.revision,contentStatus:this.contentStatus,themes:this._themes,media:this.media,calcProperties:this.calcProperties}}set model(e){this.creator=e.creator,this.lastModifiedBy=e.lastModifiedBy,this.lastPrinted=e.lastPrinted,this.created=e.created,this.modified=e.modified,this.company=e.company,this.manager=e.manager,this.title=e.title,this.subject=e.subject,this.keywords=e.keywords,this.category=e.category,this.description=e.description,this.language=e.language,this.revision=e.revision,this.contentStatus=e.contentStatus,this.properties=e.properties,this.calcProperties=e.calcProperties,this._worksheets=[],e.worksheets.forEach(r=>{const{id:l,name:s,state:i}=r,d=e.sheets&&e.sheets.findIndex(h=>h.id===l);(this._worksheets[l]=new f({id:l,name:s,orderNo:d,state:i,workbook:this})).model=r}),this._definedNames.model=e.definedNames,this.views=e.views,this._themes=e.themes,this.media=e.media||[]}}},{"../csv/csv":1,"../xlsx/xlsx":144,"./defined-names":6,"./worksheet":14}],14:[function(t,v,b){const f=t("../utils/under-dash"),o=t("../utils/col-cache"),a=t("./range"),n=t("./row"),e=t("./column"),r=t("./enums"),l=t("./image"),s=t("./table"),i=t("./data-validations"),d=t("../utils/encryptor"),{copyStyle:h}=t("../utils/copy-style");v.exports=class{constructor(c){c=c||{},this._workbook=c.workbook,this.id=c.id,this.orderNo=c.orderNo,this.name=c.name,this.state=c.state||"visible",this._rows=[],this._columns=null,this._keys={},this._merges={},this.rowBreaks=[],this.properties=Object.assign({},{defaultRowHeight:15,dyDescent:55,outlineLevelCol:0,outlineLevelRow:0},c.properties),this.pageSetup=Object.assign({},{margins:{left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},orientation:"portrait",horizontalDpi:4294967295,verticalDpi:4294967295,fitToPage:!(!c.pageSetup||!c.pageSetup.fitToWidth&&!c.pageSetup.fitToHeight||c.pageSetup.scale),pageOrder:"downThenOver",blackAndWhite:!1,draft:!1,cellComments:"None",errors:"displayed",scale:100,fitToWidth:1,fitToHeight:1,paperSize:void 0,showRowColHeaders:!1,showGridLines:!1,firstPageNumber:void 0,horizontalCentered:!1,verticalCentered:!1,rowBreaks:null,colBreaks:null},c.pageSetup),this.headerFooter=Object.assign({},{differentFirst:!1,differentOddEven:!1,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},c.headerFooter),this.dataValidations=new i,this.views=c.views||[],this.autoFilter=c.autoFilter||null,this._media=[],this.sheetProtection=null,this.tables={},this.conditionalFormattings=[]}get name(){return this._name}set name(c){if(c===void 0&&(c="sheet"+this.id),this._name!==c){if(typeof c!="string")throw new Error("The name has to be a string.");if(c==="")throw new Error("The name can't be empty.");if(c==="History")throw new Error('The name "History" is protected. Please use a different name.');if(/[*?:/\\[\]]/.test(c))throw new Error(`Worksheet name ${c} cannot include any of the following characters: * ? : \\ / [ ]`);if(/(^')|('$)/.test(c))throw new Error("The first or last character of worksheet name cannot be a single quotation mark: "+c);if(c&&c.length>31&&(console.warn(`Worksheet name ${c} exceeds 31 chars. This will be truncated`),c=c.substring(0,31)),this._workbook._worksheets.find(m=>m&&m.name.toLowerCase()===c.toLowerCase()))throw new Error("Worksheet name already exists: "+c);this._name=c}}get workbook(){return this._workbook}destroy(){this._workbook.removeWorksheetEx(this)}get dimensions(){const c=new a;return this._rows.forEach(m=>{if(m){const p=m.dimensions;p&&c.expand(m.number,p.min,m.number,p.max)}}),c}get columns(){return this._columns}set columns(c){this._headerRowCount=c.reduce((x,k)=>{const A=(k.header?1:k.headers&&k.headers.length)||0;return Math.max(x,A)},0);let m=1;const p=this._columns=[];c.forEach(x=>{const k=new e(this,m++,!1);p.push(k),k.defn=x})}getColumnKey(c){return this._keys[c]}setColumnKey(c,m){this._keys[c]=m}deleteColumnKey(c){delete this._keys[c]}eachColumnKey(c){f.each(this._keys,c)}getColumn(c){if(typeof c=="string"){const m=this._keys[c];if(m)return m;c=o.l2n(c)}if(this._columns||(this._columns=[]),c>this._columns.length){let m=this._columns.length+1;for(;m<=c;)this._columns.push(new e(this,m++))}return this._columns[c-1]}spliceColumns(c,m){const p=this._rows.length;for(var x=arguments.length,k=new Array(x>2?x-2:0),A=2;A<x;A++)k[A-2]=arguments[A];if(k.length>0)for(let F=0;F<p;F++){const L=[c,m];k.forEach(z=>{L.push(z[F]||null)});const V=this.getRow(F+1);V.splice.apply(V,L)}else this._rows.forEach(F=>{F&&F.splice(c,m)});const N=k.length-m,q=c+m,D=this._columns.length;if(N<0)for(let F=c+k.length;F<=D;F++)this.getColumn(F).defn=this.getColumn(F-N).defn;else if(N>0)for(let F=D;F>=q;F--)this.getColumn(F+N).defn=this.getColumn(F).defn;for(let F=c;F<c+k.length;F++)this.getColumn(F).defn=null;this.workbook.definedNames.spliceColumns(this.name,c,m,k.length)}get lastColumn(){return this.getColumn(this.columnCount)}get columnCount(){let c=0;return this.eachRow(m=>{c=Math.max(c,m.cellCount)}),c}get actualColumnCount(){const c=[];let m=0;return this.eachRow(p=>{p.eachCell(x=>{let{col:k}=x;c[k]||(c[k]=!0,m++)})}),m}_commitRow(){}get _lastRowNumber(){const c=this._rows;let m=c.length;for(;m>0&&c[m-1]===void 0;)m--;return m}get _nextRow(){return this._lastRowNumber+1}get lastRow(){if(this._rows.length)return this._rows[this._rows.length-1]}findRow(c){return this._rows[c-1]}findRows(c,m){return this._rows.slice(c-1,c-1+m)}get rowCount(){return this._lastRowNumber}get actualRowCount(){let c=0;return this.eachRow(()=>{c++}),c}getRow(c){let m=this._rows[c-1];return m||(m=this._rows[c-1]=new n(this,c)),m}getRows(c,m){if(m<1)return;const p=[];for(let x=c;x<c+m;x++)p.push(this.getRow(x));return p}addRow(c){let m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";const p=this._nextRow,x=this.getRow(p);return x.values=c,this._setStyleOption(p,m[0]==="i"?m:"n"),x}addRows(c){let m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";const p=[];return c.forEach(x=>{p.push(this.addRow(x,m))}),p}insertRow(c,m){let p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";return this.spliceRows(c,0,m),this._setStyleOption(c,p),this.getRow(c)}insertRows(c,m){let p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";if(this.spliceRows(c,0,...m),p!=="n")for(let x=0;x<m.length;x++)p[0]==="o"&&this.findRow(m.length+c+x)!==void 0?this._copyStyle(m.length+c+x,c+x,p[1]==="+"):p[0]==="i"&&this.findRow(c-1)!==void 0&&this._copyStyle(c-1,c+x,p[1]==="+");return this.getRows(c,m.length)}_setStyleOption(c){let m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";m[0]==="o"&&this.findRow(c+1)!==void 0?this._copyStyle(c+1,c,m[1]==="+"):m[0]==="i"&&this.findRow(c-1)!==void 0&&this._copyStyle(c-1,c,m[1]==="+")}_copyStyle(c,m){let p=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const x=this.getRow(c),k=this.getRow(m);k.style=h(x.style),x.eachCell({includeEmpty:p},(A,N)=>{k.getCell(N).style=h(A.style)}),k.height=x.height}duplicateRow(c,m){let p=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const x=this._rows[c-1],k=new Array(m).fill(x.values);this.spliceRows(c+1,p?0:m,...k);for(let A=0;A<m;A++){const N=this._rows[c+A];N.style=x.style,N.height=x.height,x.eachCell({includeEmpty:!0},(q,D)=>{N.getCell(D).style=q.style})}}spliceRows(c,m){const p=c+m;for(var x=arguments.length,k=new Array(x>2?x-2:0),A=2;A<x;A++)k[A-2]=arguments[A];const N=k.length,q=N-m,D=this._rows.length;let F,L;if(q<0)for(c===D&&(this._rows[D-1]=void 0),F=p;F<=D;F++)if(L=this._rows[F-1],L){const V=this.getRow(F+q);V.values=L.values,V.style=L.style,V.height=L.height,L.eachCell({includeEmpty:!0},(z,M)=>{V.getCell(M).style=z.style}),this._rows[F-1]=void 0}else this._rows[F+q-1]=void 0;else if(q>0)for(F=D;F>=p;F--)if(L=this._rows[F-1],L){const V=this.getRow(F+q);V.values=L.values,V.style=L.style,V.height=L.height,L.eachCell({includeEmpty:!0},(z,M)=>{if(V.getCell(M).style=z.style,z._value.constructor.name==="MergeValue"){const T=this.getRow(z._row._number+N).getCell(M),S=z._value._master,g=this.getRow(S._row._number+N).getCell(S._column._number);T.merge(g)}})}else this._rows[F+q-1]=void 0;for(F=0;F<N;F++){const V=this.getRow(c+F);V.style={},V.values=k[F]}this.workbook.definedNames.spliceRows(this.name,c,m,N)}eachRow(c,m){if(m||(m=c,c=void 0),c&&c.includeEmpty){const p=this._rows.length;for(let x=1;x<=p;x++)m(this.getRow(x),x)}else this._rows.forEach(p=>{p&&p.hasValues&&m(p,p.number)})}getSheetValues(){const c=[];return this._rows.forEach(m=>{m&&(c[m.number]=m.values)}),c}findCell(c,m){const p=o.getAddress(c,m),x=this._rows[p.row-1];return x?x.findCell(p.col):void 0}getCell(c,m){const p=o.getAddress(c,m);return this.getRow(p.row).getCellEx(p)}mergeCells(){for(var c=arguments.length,m=new Array(c),p=0;p<c;p++)m[p]=arguments[p];const x=new a(m);this._mergeCellsInternal(x)}mergeCellsWithoutStyle(){for(var c=arguments.length,m=new Array(c),p=0;p<c;p++)m[p]=arguments[p];const x=new a(m);this._mergeCellsInternal(x,!0)}_mergeCellsInternal(c,m){f.each(this._merges,x=>{if(x.intersects(c))throw new Error("Cannot merge already merged cells")});const p=this.getCell(c.top,c.left);for(let x=c.top;x<=c.bottom;x++)for(let k=c.left;k<=c.right;k++)(x>c.top||k>c.left)&&this.getCell(x,k).merge(p,m);this._merges[p.address]=c}_unMergeMaster(c){const m=this._merges[c.address];if(m){for(let p=m.top;p<=m.bottom;p++)for(let x=m.left;x<=m.right;x++)this.getCell(p,x).unmerge();delete this._merges[c.address]}}get hasMerges(){return f.some(this._merges,Boolean)}unMergeCells(){for(var c=arguments.length,m=new Array(c),p=0;p<c;p++)m[p]=arguments[p];const x=new a(m);for(let k=x.top;k<=x.bottom;k++)for(let A=x.left;A<=x.right;A++){const N=this.findCell(k,A);N&&(N.type===r.ValueType.Merge?this._unMergeMaster(N.master):this._merges[N.address]&&this._unMergeMaster(N))}}fillFormula(c,m,p){let x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"shared";const k=o.decode(c),{top:A,left:N,bottom:q,right:D}=k,F=D-N+1,L=o.encodeAddress(A,N),V=x==="shared";let z;z=typeof p=="function"?p:Array.isArray(p)?Array.isArray(p[0])?(T,S)=>p[T-A][S-N]:(T,S)=>p[(T-A)*F+(S-N)]:()=>{};let M=!0;for(let T=A;T<=q;T++)for(let S=N;S<=D;S++)M?(this.getCell(T,S).value={shareType:x,formula:m,ref:c,result:z(T,S)},M=!1):this.getCell(T,S).value=V?{sharedFormula:L,result:z(T,S)}:z(T,S)}addImage(c,m){const p={type:"image",imageId:c,range:m};this._media.push(new l(this,p))}getImages(){return this._media.filter(c=>c.type==="image")}addBackgroundImage(c){const m={type:"background",imageId:c};this._media.push(new l(this,m))}getBackgroundImageId(){const c=this._media.find(m=>m.type==="background");return c&&c.imageId}protect(c,m){return new Promise(p=>{this.sheetProtection={sheet:!0},m&&"spinCount"in m&&(m.spinCount=Number.isFinite(m.spinCount)?Math.round(Math.max(0,m.spinCount)):1e5),c&&(this.sheetProtection.algorithmName="SHA-512",this.sheetProtection.saltValue=d.randomBytes(16).toString("base64"),this.sheetProtection.spinCount=m&&"spinCount"in m?m.spinCount:1e5,this.sheetProtection.hashValue=d.convertPasswordToHash(c,"SHA512",this.sheetProtection.saltValue,this.sheetProtection.spinCount)),m&&(this.sheetProtection=Object.assign(this.sheetProtection,m),!c&&"spinCount"in m&&delete this.sheetProtection.spinCount),p()})}unprotect(){this.sheetProtection=null}addTable(c){const m=new s(this,c);return this.tables[c.name]=m,m}getTable(c){return this.tables[c]}removeTable(c){delete this.tables[c]}getTables(){return Object.values(this.tables)}addConditionalFormatting(c){this.conditionalFormattings.push(c)}removeConditionalFormatting(c){typeof c=="number"?this.conditionalFormattings.splice(c,1):this.conditionalFormattings=c instanceof Function?this.conditionalFormattings.filter(c):[]}get tabColor(){return console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor}set tabColor(c){console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor=c}get model(){const c={id:this.id,name:this.name,dataValidations:this.dataValidations.model,properties:this.properties,state:this.state,pageSetup:this.pageSetup,headerFooter:this.headerFooter,rowBreaks:this.rowBreaks,views:this.views,autoFilter:this.autoFilter,media:this._media.map(x=>x.model),sheetProtection:this.sheetProtection,tables:Object.values(this.tables).map(x=>x.model),conditionalFormattings:this.conditionalFormattings};c.cols=e.toModel(this.columns);const m=c.rows=[],p=c.dimensions=new a;return this._rows.forEach(x=>{const k=x&&x.model;k&&(p.expand(k.number,k.min,k.number,k.max),m.push(k))}),c.merges=[],f.each(this._merges,x=>{c.merges.push(x.range)}),c}_parseRows(c){this._rows=[],c.rows.forEach(m=>{const p=new n(this,m.number);this._rows[p.number-1]=p,p.model=m})}_parseMergeCells(c){f.each(c.mergeCells,m=>{this.mergeCellsWithoutStyle(m)})}set model(c){this.name=c.name,this._columns=e.fromModel(this,c.cols),this._parseRows(c),this._parseMergeCells(c),this.dataValidations=new i(c.dataValidations),this.properties=c.properties,this.pageSetup=c.pageSetup,this.headerFooter=c.headerFooter,this.views=c.views,this.autoFilter=c.autoFilter,this._media=c.media.map(m=>new l(this,m)),this.sheetProtection=c.sheetProtection,this.tables=c.tables.reduce((m,p)=>{const x=new s;return x.model=p,m[p.name]=x,m},{}),this.conditionalFormattings=c.conditionalFormattings}}},{"../utils/col-cache":19,"../utils/copy-style":20,"../utils/encryptor":21,"../utils/under-dash":26,"./column":4,"./data-validations":5,"./enums":7,"./image":8,"./range":10,"./row":11,"./table":12}],15:[function(t,v,b){t("core-js/modules/es.promise"),t("core-js/modules/es.promise.finally"),t("core-js/modules/es.object.assign"),t("core-js/modules/es.object.keys"),t("core-js/modules/es.object.values"),t("core-js/modules/es.symbol"),t("core-js/modules/es.symbol.async-iterator"),t("core-js/modules/es.array.iterator"),t("core-js/modules/es.array.includes"),t("core-js/modules/es.array.find-index"),t("core-js/modules/es.array.find"),t("core-js/modules/es.string.from-code-point"),t("core-js/modules/es.string.includes"),t("core-js/modules/es.number.is-nan"),t("regenerator-runtime/runtime");const f={Workbook:t("./doc/workbook")},o=t("./doc/enums");Object.keys(o).forEach(a=>{f[a]=o[a]}),v.exports=f},{"./doc/enums":7,"./doc/workbook":13,"core-js/modules/es.array.find":359,"core-js/modules/es.array.find-index":358,"core-js/modules/es.array.includes":360,"core-js/modules/es.array.iterator":361,"core-js/modules/es.number.is-nan":363,"core-js/modules/es.object.assign":364,"core-js/modules/es.object.keys":366,"core-js/modules/es.object.values":367,"core-js/modules/es.promise":372,"core-js/modules/es.promise.finally":371,"core-js/modules/es.string.from-code-point":376,"core-js/modules/es.string.includes":377,"core-js/modules/es.symbol":381,"core-js/modules/es.symbol.async-iterator":378,"regenerator-runtime/runtime":492}],16:[function(t,v,b){const f=typeof TextDecoder>"u"?null:new TextDecoder("utf-8");b.bufferToString=function(o){return typeof o=="string"?o:f?f.decode(o):o.toString()}},{}],17:[function(t,v,b){const f=typeof TextEncoder>"u"?null:new TextEncoder("utf-8"),{Buffer:o}=t("buffer");b.stringToBuffer=function(a){return typeof a!="string"?a:f?o.from(f.encode(a).buffer):o.from(a)}},{buffer:220}],18:[function(t,v,b){const f=t("./under-dash"),o=t("./col-cache");v.exports=class{constructor(a){this.template=a,this.sheets={}}addCell(a){this.addCellEx(o.decodeEx(a))}getCell(a){return this.findCellEx(o.decodeEx(a),!0)}findCell(a){return this.findCellEx(o.decodeEx(a),!1)}findCellAt(a,n,e){const r=this.sheets[a],l=r&&r[n];return l&&l[e]}addCellEx(a){if(a.top)for(let n=a.top;n<=a.bottom;n++)for(let e=a.left;e<=a.right;e++)this.getCellAt(a.sheetName,n,e);else this.findCellEx(a,!0)}getCellEx(a){return this.findCellEx(a,!0)}findCellEx(a,n){const e=this.findSheet(a,n),r=this.findSheetRow(e,a,n);return this.findRowCell(r,a,n)}getCellAt(a,n,e){const r=this.sheets[a]||(this.sheets[a]=[]),l=r[n]||(r[n]=[]);return l[e]||(l[e]={sheetName:a,address:o.n2l(e)+n,row:n,col:e})}removeCellEx(a){const n=this.findSheet(a);if(!n)return;const e=this.findSheetRow(n,a);e&&delete e[a.col]}forEachInSheet(a,n){const e=this.sheets[a];e&&e.forEach((r,l)=>{r&&r.forEach((s,i)=>{s&&n(s,l,i)})})}forEach(a){f.each(this.sheets,(n,e)=>{this.forEachInSheet(e,a)})}map(a){const n=[];return this.forEach(e=>{n.push(a(e))}),n}findSheet(a,n){const e=a.sheetName;return this.sheets[e]?this.sheets[e]:n?this.sheets[e]=[]:void 0}findSheetRow(a,n,e){const{row:r}=n;return a&&a[r]?a[r]:e?a[r]=[]:void 0}findRowCell(a,n,e){const{col:r}=n;return a&&a[r]?a[r]:e?a[r]=this.template?Object.assign(n,JSON.parse(JSON.stringify(this.template))):n:void 0}spliceRows(a,n,e,r){const l=this.sheets[a];if(l){const s=[];for(let i=0;i<r;i++)s.push([]);l.splice(n,e,...s)}}spliceColumns(a,n,e,r){const l=this.sheets[a];if(l){const s=[];for(let i=0;i<r;i++)s.push(null);f.each(l,i=>{i.splice(n,e,...s)})}}}},{"./col-cache":19,"./under-dash":26}],19:[function(t,v,b){const f=/^[A-Z]+\d+$/,o={_dictionary:["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],_l2nFill:0,_l2n:{},_n2l:[],_level:a=>a<=26?1:a<=676?2:3,_fill(a){let n,e,r,l,s,i=1;if(a>=4)throw new Error("Out of bounds. Excel supports columns from 1 to 16384");if(this._l2nFill<1&&a>=1){for(;i<=26;)n=this._dictionary[i-1],this._n2l[i]=n,this._l2n[n]=i,i++;this._l2nFill=1}if(this._l2nFill<2&&a>=2){for(i=27;i<=702;)e=i-27,r=e%26,l=Math.floor(e/26),n=this._dictionary[l]+this._dictionary[r],this._n2l[i]=n,this._l2n[n]=i,i++;this._l2nFill=2}if(this._l2nFill<3&&a>=3){for(i=703;i<=16384;)e=i-703,r=e%26,l=Math.floor(e/26)%26,s=Math.floor(e/676),n=this._dictionary[s]+this._dictionary[l]+this._dictionary[r],this._n2l[i]=n,this._l2n[n]=i,i++;this._l2nFill=3}},l2n(a){if(this._l2n[a]||this._fill(a.length),!this._l2n[a])throw new Error("Out of bounds. Invalid column letter: "+a);return this._l2n[a]},n2l(a){if(a<1||a>16384)throw new Error(a+" is out of bounds. Excel supports columns from 1 to 16384");return this._n2l[a]||this._fill(this._level(a)),this._n2l[a]},_hash:{},validateAddress(a){if(!f.test(a))throw new Error("Invalid Address: "+a);return!0},decodeAddress(a){const n=a.length<5&&this._hash[a];if(n)return n;let e=!1,r="",l=0,s=!1,i="",d=0;for(let c,m=0;m<a.length;m++)if(c=a.charCodeAt(m),!s&&c>=65&&c<=90)e=!0,r+=a[m],l=26*l+c-64;else if(c>=48&&c<=57)s=!0,i+=a[m],d=10*d+c-48;else if(s&&e&&c!==36)break;if(e){if(l>16384)throw new Error("Out of bounds. Invalid column letter: "+r)}else l=void 0;s||(d=void 0);const h={address:a=r+i,col:l,row:d,$col$row:`$${r}$${i}`};return l<=100&&d<=100&&(this._hash[a]=h,this._hash[h.$col$row]=h),h},getAddress(a,n){if(n){const e=this.n2l(n)+a;return this.decodeAddress(e)}return this.decodeAddress(a)},decode(a){const n=a.split(":");if(n.length===2){const e=this.decodeAddress(n[0]),r=this.decodeAddress(n[1]),l={top:Math.min(e.row,r.row),left:Math.min(e.col,r.col),bottom:Math.max(e.row,r.row),right:Math.max(e.col,r.col)};return l.tl=this.n2l(l.left)+l.top,l.br=this.n2l(l.right)+l.bottom,l.dimensions=`${l.tl}:${l.br}`,l}return this.decodeAddress(a)},decodeEx(a){const n=a.match(/(?:(?:(?:'((?:[^']|'')*)')|([^'^ !]*))!)?(.*)/),e=n[1]||n[2],r=n[3],l=r.split(":");if(l.length>1){let i=this.decodeAddress(l[0]),d=this.decodeAddress(l[1]);const h=Math.min(i.row,d.row),c=Math.min(i.col,d.col),m=Math.max(i.row,d.row),p=Math.max(i.col,d.col);return i=this.n2l(c)+h,d=this.n2l(p)+m,{top:h,left:c,bottom:m,right:p,sheetName:e,tl:{address:i,col:c,row:h,$col$row:`$${this.n2l(c)}$${h}`,sheetName:e},br:{address:d,col:p,row:m,$col$row:`$${this.n2l(p)}$${m}`,sheetName:e},dimensions:`${i}:${d}`}}if(r.startsWith("#"))return e?{sheetName:e,error:r}:{error:r};const s=this.decodeAddress(r);return e?{sheetName:e,...s}:s},encodeAddress:(a,n)=>o.n2l(n)+a,encode(){switch(arguments.length){case 2:return o.encodeAddress(arguments[0],arguments[1]);case 4:return`${o.encodeAddress(arguments[0],arguments[1])}:${o.encodeAddress(arguments[2],arguments[3])}`;default:throw new Error("Can only encode with 2 or 4 arguments")}},inRange(a,n){const[e,r,,l,s]=a,[i,d]=n;return i>=e&&i<=l&&d>=r&&d<=s}};v.exports=o},{}],20:[function(t,v,b){const f=(a,n)=>({...a,...n.reduce((e,r)=>(a[r]&&(e[r]={...a[r]}),e),{})}),o=function(a,n,e){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];a[e]&&(n[e]=f(a[e],r))};b.copyStyle=a=>{if(!a)return a;if(n=a,Object.keys(n).length===0)return{};var n;const e={...a};return o(a,e,"font",["color"]),o(a,e,"alignment"),o(a,e,"protection"),a.border&&(o(a,e,"border"),o(a.border,e.border,"top",["color"]),o(a.border,e.border,"left",["color"]),o(a.border,e.border,"bottom",["color"]),o(a.border,e.border,"right",["color"]),o(a.border,e.border,"diagonal",["color"])),a.fill&&(o(a,e,"fill",["fgColor","bgColor","center"]),a.fill.stops&&(e.fill.stops=a.fill.stops.map(r=>f(r,["color"])))),e}},{}],21:[function(t,v,b){(function(f){(function(){const o=t("crypto"),a={hash(n){const e=o.createHash(n);for(var r=arguments.length,l=new Array(r>1?r-1:0),s=1;s<r;s++)l[s-1]=arguments[s];return e.update(f.concat(l)),e.digest()},convertPasswordToHash(n,e,r,l){if(e=e.toLowerCase(),o.getHashes().indexOf(e)<0)throw new Error(`Hash algorithm '${e}' not supported!`);const s=f.from(n,"utf16le");let i=this.hash(e,f.from(r,"base64"),s);for(let d=0;d<l;d++){const h=f.alloc(4);h.writeUInt32LE(d,0),i=this.hash(e,i,h)}return i.toString("base64")},randomBytes:n=>o.randomBytes(n)};v.exports=a}).call(this)}).call(this,t("buffer").Buffer)},{buffer:220,crypto:390}],22:[function(t,v,b){const{SaxesParser:f}=t("saxes"),{PassThrough:o}=t("readable-stream"),{bufferToString:a}=t("./browser-buffer-decode");v.exports=async function*(n){n.pipe&&!n[Symbol.asyncIterator]&&(n=n.pipe(new o));const e=new f;let r;e.on("error",s=>{r=s});let l=[];e.on("opentag",s=>l.push({eventType:"opentag",value:s})),e.on("text",s=>l.push({eventType:"text",value:s})),e.on("closetag",s=>l.push({eventType:"closetag",value:s}));for await(const s of n){if(e.write(a(s)),r)throw r;yield l,l=[]}}},{"./browser-buffer-decode":16,"readable-stream":491,saxes:496}],23:[function(t,v,b){const f=t("./col-cache"),o=/(([a-z_\-0-9]*)!)?([a-z0-9_$]{2,})([(])?/gi,a=/^([$])?([a-z]+)([$])?([1-9][0-9]*)$/i;v.exports={slideFormula:function(n,e,r){const l=f.decode(e),s=f.decode(r);return n.replace(o,(i,d,h,c,m)=>{if(m)return i;const p=a.exec(c);if(p){const x=p[1],k=p[2].toUpperCase(),A=p[3],N=p[4];if(k.length>3||k.length===3&&k>"XFD")return i;let q=f.l2n(k),D=parseInt(N,10);return x||(q+=s.col-l.col),A||(D+=s.row-l.row),(d||"")+(x||"")+f.n2l(q)+(A||"")+D}return i})}}},{"./col-cache":19}],24:[function(t,v,b){(function(f,o){(function(){const a=t("readable-stream"),n=t("./utils"),e=t("./string-buf");class r{constructor(c,m){this._data=c,this._encoding=m}get length(){return this.toBuffer().length}copy(c,m,p,x){return this.toBuffer().copy(c,m,p,x)}toBuffer(){return this._buffer||(this._buffer=o.from(this._data,this._encoding)),this._buffer}}class l{constructor(c){this._data=c}get length(){return this._data.length}copy(c,m,p,x){return this._data._buf.copy(c,m,p,x)}toBuffer(){return this._data.toBuffer()}}class s{constructor(c){this._data=c}get length(){return this._data.length}copy(c,m,p,x){this._data.copy(c,m,p,x)}toBuffer(){return this._data}}class i{constructor(c){this.size=c,this.buffer=o.alloc(c),this.iRead=0,this.iWrite=0}toBuffer(){if(this.iRead===0&&this.iWrite===this.size)return this.buffer;const c=o.alloc(this.iWrite-this.iRead);return this.buffer.copy(c,0,this.iRead,this.iWrite),c}get length(){return this.iWrite-this.iRead}get eod(){return this.iRead===this.iWrite}get full(){return this.iWrite===this.size}read(c){let m;return c===0?null:c===void 0||c>=this.length?(m=this.toBuffer(),this.iRead=this.iWrite,m):(m=o.alloc(c),this.buffer.copy(m,0,this.iRead,c),this.iRead+=c,m)}write(c,m,p){const x=Math.min(p,this.size-this.iWrite);return c.copy(this.buffer,this.iWrite,m,m+x),this.iWrite+=x,x}}const d=function(h){h=h||{},this.bufSize=h.bufSize||1048576,this.buffers=[],this.batch=h.batch||!1,this.corked=!1,this.inPos=0,this.outPos=0,this.pipes=[],this.paused=!1,this.encoding=null};n.inherits(d,a.Duplex,{toBuffer(){switch(this.buffers.length){case 0:return null;case 1:return this.buffers[0].toBuffer();default:return o.concat(this.buffers.map(h=>h.toBuffer()))}},_getWritableBuffer(){if(this.buffers.length){const c=this.buffers[this.buffers.length-1];if(!c.full)return c}const h=new i(this.bufSize);return this.buffers.push(h),h},async _pipe(h){await Promise.all(this.pipes.map(function(c){return new Promise(m=>{c.write(h.toBuffer(),()=>{m()})})}))},_writeToBuffers(h){let c=0;const m=h.length;for(;c<m;)c+=this._getWritableBuffer().write(h,c,m-c)},async write(h,c,m){let p;if(c instanceof Function&&(m=c,c="utf8"),m=m||n.nop,h instanceof e)p=new l(h);else if(h instanceof o)p=new s(h);else{if(!(typeof h=="string"||h instanceof String||h instanceof ArrayBuffer))throw new Error("Chunk must be one of type String, Buffer or StringBuf.");p=new r(h,c)}if(this.pipes.length)if(this.batch)for(this._writeToBuffers(p);!this.corked&&this.buffers.length>1;)this._pipe(this.buffers.shift());else this.corked?(this._writeToBuffers(p),f.nextTick(m)):(await this._pipe(p),m());else this.paused||this.emit("data",p.toBuffer()),this._writeToBuffers(p),this.emit("readable");return!0},cork(){this.corked=!0},_flush(){if(this.pipes.length)for(;this.buffers.length;)this._pipe(this.buffers.shift())},uncork(){this.corked=!1,this._flush()},end(h,c,m){const p=x=>{x?m(x):(this._flush(),this.pipes.forEach(k=>{k.end()}),this.emit("finish"))};h?this.write(h,c,p):p()},read(h){let c;if(h){for(c=[];h&&this.buffers.length&&!this.buffers[0].eod;){const m=this.buffers[0],p=m.read(h);h-=p.length,c.push(p),m.eod&&m.full&&this.buffers.shift()}return o.concat(c)}return c=this.buffers.map(m=>m.toBuffer()).filter(Boolean),this.buffers=[],o.concat(c)},setEncoding(h){this.encoding=h},pause(){this.paused=!0},resume(){this.paused=!1},isPaused(){return!!this.paused},pipe(h){this.pipes.push(h),!this.paused&&this.buffers.length&&this.end()},unpipe(h){this.pipes=this.pipes.filter(c=>c!==h)},unshift(){throw new Error("Not Implemented")},wrap(){throw new Error("Not Implemented")}}),v.exports=d}).call(this)}).call(this,t("_process"),t("buffer").Buffer)},{"./string-buf":25,"./utils":27,_process:467,buffer:220,"readable-stream":491}],25:[function(t,v,b){(function(f){(function(){v.exports=class{constructor(o){this._buf=f.alloc(o&&o.size||16384),this._encoding=o&&o.encoding||"utf8",this._inPos=0,this._buffer=void 0}get length(){return this._inPos}get capacity(){return this._buf.length}get buffer(){return this._buf}toBuffer(){return this._buffer||(this._buffer=f.alloc(this.length),this._buf.copy(this._buffer,0,0,this.length)),this._buffer}reset(o){o=o||0,this._buffer=void 0,this._inPos=o}_grow(o){let a=2*this._buf.length;for(;a<o;)a*=2;const n=f.alloc(a);this._buf.copy(n,0),this._buf=n}addText(o){this._buffer=void 0;let a=this._inPos+this._buf.write(o,this._inPos,this._encoding);for(;a>=this._buf.length-4;)this._grow(this._inPos+o.length),a=this._inPos+this._buf.write(o,this._inPos,this._encoding);this._inPos=a}addStringBuf(o){o.length&&(this._buffer=void 0,this.length+o.length>this.capacity&&this._grow(this.length+o.length),o._buf.copy(this._buf,this._inPos,0,o.length),this._inPos+=o.length)}}}).call(this)}).call(this,t("buffer").Buffer)},{buffer:220}],26:[function(t,v,b){const{toString:f}=Object.prototype,o=/["&<>]/,a={each:function(n,e){n&&(Array.isArray(n)?n.forEach(e):Object.keys(n).forEach(r=>{e(n[r],r)}))},some:function(n,e){return!!n&&(Array.isArray(n)?n.some(e):Object.keys(n).some(r=>e(n[r],r)))},every:function(n,e){return!n||(Array.isArray(n)?n.every(e):Object.keys(n).every(r=>e(n[r],r)))},map:function(n,e){return n?Array.isArray(n)?n.map(e):Object.keys(n).map(r=>e(n[r],r)):[]},keyBy:(n,e)=>n.reduce((r,l)=>(r[l[e]]=l,r),{}),isEqual:function(n,e){const r=typeof n,l=typeof e,s=Array.isArray(n),i=Array.isArray(e);let d;if(r!==l)return!1;switch(typeof n){case"object":if(s||i)return!(!s||!i)&&n.length===e.length&&n.every((h,c)=>{const m=e[c];return a.isEqual(h,m)});if(n===null||e===null)return n===e;if(d=Object.keys(n),Object.keys(e).length!==d.length)return!1;for(const h of d)if(!e.hasOwnProperty(h))return!1;return a.every(n,(h,c)=>{const m=e[c];return a.isEqual(h,m)});default:return n===e}},escapeHtml(n){const e=o.exec(n);if(!e)return n;let r="",l="",s=0,i=e.index;for(;i<n.length;i++){switch(n.charAt(i)){case'"':l="&quot;";break;case"&":l="&amp;";break;case"'":l="&apos;";break;case"<":l="&lt;";break;case">":l="&gt;";break;default:continue}s!==i&&(r+=n.substring(s,i)),s=i+1,r+=l}return s!==i?r+n.substring(s,i):r},strcmp:(n,e)=>n<e?-1:n>e?1:0,isUndefined:n=>f.call(n)==="[object Undefined]",isObject:n=>f.call(n)==="[object Object]",deepMerge(){const n=arguments[0]||{},{length:e}=arguments;let r,l,s;function i(d,h){r=n[h],s=Array.isArray(d),a.isObject(d)||s?(s?(s=!1,l=r&&Array.isArray(r)?r:[]):l=r&&a.isObject(r)?r:{},n[h]=a.deepMerge(l,d)):a.isUndefined(d)||(n[h]=d)}for(let d=0;d<e;d++)a.each(arguments[d],i);return n}};v.exports=a},{}],27:[function(t,v,b){(function(f,o){(function(){const a=t("fs"),n=/[<>&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/,e={nop(){},promiseImmediate:r=>new Promise(l=>{f.setImmediate?o(()=>{l(r)}):setTimeout(()=>{l(r)},1)}),inherits:function(r,l,s,i){r.super_=l,i||(i=s,s=null),s&&Object.keys(s).forEach(h=>{Object.defineProperty(r,h,Object.getOwnPropertyDescriptor(s,h))});const d={constructor:{value:r,enumerable:!1,writable:!1,configurable:!0}};i&&Object.keys(i).forEach(h=>{d[h]=Object.getOwnPropertyDescriptor(i,h)}),r.prototype=Object.create(l.prototype,d)},dateToExcel:(r,l)=>25569+r.getTime()/864e5-(l?1462:0),excelToDate(r,l){const s=Math.round(24*(r-25569+(l?1462:0))*3600*1e3);return new Date(s)},parsePath(r){const l=r.lastIndexOf("/");return{path:r.substring(0,l),name:r.substring(l+1)}},getRelsPath(r){const l=e.parsePath(r);return`${l.path}/_rels/${l.name}.rels`},xmlEncode(r){const l=n.exec(r);if(!l)return r;let s="",i="",d=0,h=l.index;for(;h<r.length;h++){const c=r.charCodeAt(h);switch(c){case 34:i="&quot;";break;case 38:i="&amp;";break;case 39:i="&apos;";break;case 60:i="&lt;";break;case 62:i="&gt;";break;case 127:i="";break;default:if(c<=31&&(c<=8||c>=11&&c!==13)){i="";break}continue}d!==h&&(s+=r.substring(d,h)),d=h+1,i&&(s+=i)}return d!==h?s+r.substring(d,h):s},xmlDecode:r=>r.replace(/&([a-z]*);/g,l=>{switch(l){case"&lt;":return"<";case"&gt;":return">";case"&amp;":return"&";case"&apos;":return"'";case"&quot;":return'"';default:return l}}),validInt(r){const l=parseInt(r,10);return Number.isNaN(l)?0:l},isDateFmt(r){return r?(r=(r=r.replace(/\[[^\]]*]/g,"")).replace(/"[^"]*"/g,"")).match(/[ymdhMsb]+/)!==null:!1},fs:{exists:r=>new Promise(l=>{a.access(r,a.constants.F_OK,s=>{l(!s)})})},toIsoDateString:r=>r.toIsoString().subsstr(0,10),parseBoolean:r=>r===!0||r==="true"||r===1||r==="1"};v.exports=e}).call(this)}).call(this,typeof lt<"u"?lt:typeof self<"u"?self:typeof window<"u"?window:{},t("timers").setImmediate)},{fs:216,timers:523}],28:[function(t,v,b){const f=t("./under-dash"),o=t("./utils");function a(r,l,s){r.push(` ${l}="${o.xmlEncode(s.toString())}"`)}function n(r,l){if(l){const s=[];f.each(l,(i,d)=>{i!==void 0&&a(s,d,i)}),r.push(s.join(""))}}class e{constructor(){this._xml=[],this._stack=[],this._rollbacks=[]}get tos(){return this._stack.length?this._stack[this._stack.length-1]:void 0}get cursor(){return this._xml.length}openXml(l){const s=this._xml;s.push("<?xml"),n(s,l),s.push(`?>
2
2
  `)}openNode(l,s){const i=this.tos,d=this._xml;i&&this.open&&d.push(">"),this._stack.push(l),d.push("<"),d.push(l),n(d,s),this.leaf=!0,this.open=!0}addAttribute(l,s){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");s!==void 0&&a(this._xml,l,s)}addAttributes(l){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");n(this._xml,l)}writeText(l){const s=this._xml;this.open&&(s.push(">"),this.open=!1),this.leaf=!1,s.push(o.xmlEncode(l.toString()))}writeXml(l){this.open&&(this._xml.push(">"),this.open=!1),this.leaf=!1,this._xml.push(l)}closeNode(){const l=this._stack.pop(),s=this._xml;this.leaf?s.push("/>"):(s.push("</"),s.push(l),s.push(">")),this.open=!1,this.leaf=!1}leafNode(l,s,i){this.openNode(l,s),i!==void 0&&this.writeText(i),this.closeNode()}closeAll(){for(;this._stack.length;)this.closeNode()}addRollback(){return this._rollbacks.push({xml:this._xml.length,stack:this._stack.length,leaf:this.leaf,open:this.open}),this.cursor}commit(){this._rollbacks.pop()}rollback(){const l=this._rollbacks.pop();this._xml.length>l.xml&&this._xml.splice(l.xml,this._xml.length-l.xml),this._stack.length>l.stack&&this._stack.splice(l.stack,this._stack.length-l.stack),this.leaf=l.leaf,this.open=l.open}get xml(){return this.closeAll(),this._xml.join("")}}e.StdDocAttributes={version:"1.0",encoding:"UTF-8",standalone:"yes"},v.exports=e},{"./under-dash":26,"./utils":27}],29:[function(t,v,b){(function(f){(function(){const o=t("events"),a=t("jszip"),n=t("./stream-buf"),{stringToBuffer:e}=t("./browser-buffer-encode");class r extends o.EventEmitter{constructor(s){super(),this.options=Object.assign({type:"nodebuffer",compression:"DEFLATE"},s),this.zip=new a,this.stream=new n}append(s,i){i.hasOwnProperty("base64")&&i.base64?this.zip.file(i.name,s,{base64:!0}):(f.browser&&typeof s=="string"&&(s=e(s)),this.zip.file(i.name,s))}async finalize(){const s=await this.zip.generateAsync(this.options);this.stream.end(s),this.emit("finish")}read(s){return this.stream.read(s)}setEncoding(s){return this.stream.setEncoding(s)}pause(){return this.stream.pause()}resume(){return this.stream.resume()}isPaused(){return this.stream.isPaused()}pipe(s,i){return this.stream.pipe(s,i)}unpipe(s){return this.stream.unpipe(s)}unshift(s){return this.stream.unshift(s)}wrap(s){return this.stream.wrap(s)}}v.exports={ZipWriter:r}}).call(this)}).call(this,t("_process"))},{"./browser-buffer-encode":17,"./stream-buf":24,_process:467,events:422,jszip:441}],30:[function(t,v,b){v.exports={0:{f:"General"},1:{f:"0"},2:{f:"0.00"},3:{f:"#,##0"},4:{f:"#,##0.00"},9:{f:"0%"},10:{f:"0.00%"},11:{f:"0.00E+00"},12:{f:"# ?/?"},13:{f:"# ??/??"},14:{f:"mm-dd-yy"},15:{f:"d-mmm-yy"},16:{f:"d-mmm"},17:{f:"mmm-yy"},18:{f:"h:mm AM/PM"},19:{f:"h:mm:ss AM/PM"},20:{f:"h:mm"},21:{f:"h:mm:ss"},22:{f:'m/d/yy "h":mm'},27:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},28:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},29:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},30:{"zh-tw":"m/d/yy ","zh-cn":"m-d-yy","ja-jp":"m/d/yy","ko-kr":"mm-dd-yy"},31:{"zh-tw":'yyyy"年"m"月"d"日"',"zh-cn":'yyyy"年"m"月"d"日"',"ja-jp":'yyyy"年"m"月"d"日"',"ko-kr":'yyyy"년" mm"월" dd"일"'},32:{"zh-tw":'hh"時"mm"分"',"zh-cn":'h"时"mm"分"',"ja-jp":'h"時"mm"分"',"ko-kr":'h"시" mm"분"'},33:{"zh-tw":'hh"時"mm"分"ss"秒"',"zh-cn":'h"时"mm"分"ss"秒"',"ja-jp":'h"時"mm"分"ss"秒"',"ko-kr":'h"시" mm"분" ss"초"'},34:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'上午/下午 h"时"mm"分"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},35:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'上午/下午 h"时"mm"分"ss"秒"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},36:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},37:{f:"#,##0 ;(#,##0)"},38:{f:"#,##0 ;[Red](#,##0)"},39:{f:"#,##0.00 ;(#,##0.00)"},40:{f:"#,##0.00 ;[Red](#,##0.00)"},45:{f:"mm:ss"},46:{f:"[h]:mm:ss"},47:{f:"mmss.0"},48:{f:"##0.0E+0"},49:{f:"@"},50:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},51:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},52:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'yyyy"年"m"月"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},53:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'m"月"d"日"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},54:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},55:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'上午/下午 h"时"mm"分"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},56:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'上午/下午 h"时"mm"分"ss"秒"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},57:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},58:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},59:{"th-th":"t0"},60:{"th-th":"t0.00"},61:{"th-th":"t#,##0"},62:{"th-th":"t#,##0.00"},67:{"th-th":"t0%"},68:{"th-th":"t0.00%"},69:{"th-th":"t# ?/?"},70:{"th-th":"t# ??/??"},81:{"th-th":"d/m/bb"}}},{}],31:[function(t,v,b){v.exports={OfficeDocument:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",Worksheet:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet",CalcChain:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/calcChain",SharedStrings:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",Styles:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",Theme:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",Hyperlink:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",Image:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",CoreProperties:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",ExtenderProperties:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",Comments:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",VmlDrawing:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",Table:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/table"}},{}],32:[function(t,v,b){const f=t("../../utils/parse-sax"),o=t("../../utils/xml-stream");class a{prepare(){}render(){}parseOpen(e){}parseText(e){}parseClose(e){}reconcile(e,r){}reset(){this.model=null,this.map&&Object.values(this.map).forEach(e=>{e instanceof a?e.reset():e.xform&&e.xform.reset()})}mergeModel(e){this.model=Object.assign(this.model||{},e)}async parse(e){for await(const r of e)for(const{eventType:l,value:s}of r)if(l==="opentag")this.parseOpen(s);else if(l==="text")this.parseText(s);else if(l==="closetag"&&!this.parseClose(s.name))return this.model;return this.model}async parseStream(e){return this.parse(f(e))}get xml(){return this.toXml(this.model)}toXml(e){const r=new o;return this.render(r,e),r.xml}static toAttribute(e,r){let l=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(e===void 0){if(l)return r}else if(l||e!==r)return e.toString()}static toStringAttribute(e,r){let l=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return a.toAttribute(e,r,l)}static toStringValue(e,r){return e===void 0?r:e}static toBoolAttribute(e,r){let l=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(e===void 0){if(l)return r}else if(l||e!==r)return e?"1":"0"}static toBoolValue(e,r){return e===void 0?r:e==="1"}static toIntAttribute(e,r){let l=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return a.toAttribute(e,r,l)}static toIntValue(e,r){return e===void 0?r:parseInt(e,10)}static toFloatAttribute(e,r){let l=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return a.toAttribute(e,r,l)}static toFloatValue(e,r){return e===void 0?r:parseFloat(e)}}v.exports=a},{"../../utils/parse-sax":22,"../../utils/xml-stream":28}],33:[function(t,v,b){const f=t("../base-xform"),o=t("../../../utils/col-cache");function a(e){try{return o.decodeEx(e),!0}catch{return!1}}function n(e){const r=[];let l=!1,s="";return e.split(",").forEach(i=>{if(!i)return;const d=(i.match(/'/g)||[]).length;if(!d)return void(l?s+=i+",":a(i)&&r.push(i));const h=d%2==0;!l&&h&&a(i)?r.push(i):l&&!h?(l=!1,a(s+i)&&r.push(s+i),s=""):(l=!0,s+=i+",")}),r}v.exports=class extends f{render(e,r){e.openNode("definedName",{name:r.name,localSheetId:r.localSheetId}),e.writeText(r.ranges.join(",")),e.closeNode()}parseOpen(e){switch(e.name){case"definedName":return this._parsedName=e.attributes.name,this._parsedLocalSheetId=e.attributes.localSheetId,this._parsedText=[],!0;default:return!1}}parseText(e){this._parsedText.push(e)}parseClose(){return this.model={name:this._parsedName,ranges:n(this._parsedText.join(""))},this._parsedLocalSheetId!==void 0&&(this.model.localSheetId=parseInt(this._parsedLocalSheetId,10)),!1}}},{"../../../utils/col-cache":19,"../base-xform":32}],34:[function(t,v,b){const f=t("../../../utils/utils"),o=t("../base-xform");v.exports=class extends o{render(a,n){a.leafNode("sheet",{sheetId:n.id,name:n.name,state:n.state,"r:id":n.rId})}parseOpen(a){return a.name==="sheet"&&(this.model={name:f.xmlDecode(a.attributes.name),id:parseInt(a.attributes.sheetId,10),state:a.attributes.state,rId:a.attributes["r:id"]},!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/utils":27,"../base-xform":32}],35:[function(t,v,b){const f=t("../base-xform");v.exports=class extends f{render(o,a){o.leafNode("calcPr",{calcId:171027,fullCalcOnLoad:a.fullCalcOnLoad?1:void 0})}parseOpen(o){return o.name==="calcPr"&&(this.model={},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],36:[function(t,v,b){const f=t("../base-xform");v.exports=class extends f{render(o,a){o.leafNode("workbookPr",{date1904:a.date1904?1:void 0,defaultThemeVersion:164011,filterPrivacy:1})}parseOpen(o){return o.name==="workbookPr"&&(this.model={date1904:o.attributes.date1904==="1"},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],37:[function(t,v,b){const f=t("../base-xform");v.exports=class extends f{render(o,a){const n={xWindow:a.x||0,yWindow:a.y||0,windowWidth:a.width||12e3,windowHeight:a.height||24e3,firstSheet:a.firstSheet,activeTab:a.activeTab};a.visibility&&a.visibility!=="visible"&&(n.visibility=a.visibility),o.leafNode("workbookView",n)}parseOpen(o){if(o.name==="workbookView"){const a=this.model={},n=function(r,l,s){const i=l!==void 0?a[r]=l:s;i!==void 0&&(a[r]=i)},e=function(r,l,s){const i=l!==void 0?a[r]=parseInt(l,10):s;i!==void 0&&(a[r]=i)};return e("x",o.attributes.xWindow,0),e("y",o.attributes.yWindow,0),e("width",o.attributes.windowWidth,25e3),e("height",o.attributes.windowHeight,1e4),n("visibility",o.attributes.visibility,"visible"),e("activeTab",o.attributes.activeTab,void 0),e("firstSheet",o.attributes.firstSheet,void 0),!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],38:[function(t,v,b){const f=t("../../../utils/under-dash"),o=t("../../../utils/col-cache"),a=t("../../../utils/xml-stream"),n=t("../base-xform"),e=t("../static-xform"),r=t("../list-xform"),l=t("./defined-name-xform"),s=t("./sheet-xform"),i=t("./workbook-view-xform"),d=t("./workbook-properties-xform"),h=t("./workbook-calc-properties-xform");class c extends n{constructor(){super(),this.map={fileVersion:c.STATIC_XFORMS.fileVersion,workbookPr:new d,bookViews:new r({tag:"bookViews",count:!1,childXform:new i}),sheets:new r({tag:"sheets",count:!1,childXform:new s}),definedNames:new r({tag:"definedNames",count:!1,childXform:new l}),calcPr:new h}}prepare(p){p.sheets=p.worksheets;const x=[];let k=0;p.sheets.forEach(A=>{if(A.pageSetup&&A.pageSetup.printArea&&A.pageSetup.printArea.split("&&").forEach(N=>{const q=N.split(":"),D={name:"_xlnm.Print_Area",ranges:[`'${A.name}'!$${q[0]}:$${q[1]}`],localSheetId:k};x.push(D)}),A.pageSetup&&(A.pageSetup.printTitlesRow||A.pageSetup.printTitlesColumn)){const N=[];if(A.pageSetup.printTitlesColumn){const D=A.pageSetup.printTitlesColumn.split(":");N.push(`'${A.name}'!$${D[0]}:$${D[1]}`)}if(A.pageSetup.printTitlesRow){const D=A.pageSetup.printTitlesRow.split(":");N.push(`'${A.name}'!$${D[0]}:$${D[1]}`)}const q={name:"_xlnm.Print_Titles",ranges:N,localSheetId:k};x.push(q)}k++}),x.length&&(p.definedNames=p.definedNames.concat(x)),(p.media||[]).forEach((A,N)=>{A.name=A.type+(N+1)})}render(p,x){p.openXml(a.StdDocAttributes),p.openNode("workbook",c.WORKBOOK_ATTRIBUTES),this.map.fileVersion.render(p),this.map.workbookPr.render(p,x.properties),this.map.bookViews.render(p,x.views),this.map.sheets.render(p,x.sheets),this.map.definedNames.render(p,x.definedNames),this.map.calcPr.render(p,x.calcProperties),p.closeNode()}parseOpen(p){if(this.parser)return this.parser.parseOpen(p),!0;switch(p.name){case"workbook":return!0;default:return this.parser=this.map[p.name],this.parser&&this.parser.parseOpen(p),!0}}parseText(p){this.parser&&this.parser.parseText(p)}parseClose(p){if(this.parser)return this.parser.parseClose(p)||(this.parser=void 0),!0;switch(p){case"workbook":return this.model={sheets:this.map.sheets.model,properties:this.map.workbookPr.model||{},views:this.map.bookViews.model,calcProperties:{}},this.map.definedNames.model&&(this.model.definedNames=this.map.definedNames.model),!1;default:return!0}}reconcile(p){const x=(p.workbookRels||[]).reduce((D,F)=>(D[F.Id]=F,D),{}),k=[];let A,N=0;(p.sheets||[]).forEach(D=>{const F=x[D.rId];F&&(A=p.worksheetHash["xl/"+F.Target.replace(/^(\s|\/xl\/)+/,"")],A&&(A.name=D.name,A.id=D.id,A.state=D.state,k[N++]=A))});const q=[];f.each(p.definedNames,D=>{if(D.name==="_xlnm.Print_Area"){if(A=k[D.localSheetId],A){A.pageSetup||(A.pageSetup={});const F=o.decodeEx(D.ranges[0]);A.pageSetup.printArea=A.pageSetup.printArea?`${A.pageSetup.printArea}&&${F.dimensions}`:F.dimensions}}else if(D.name==="_xlnm.Print_Titles"){if(A=k[D.localSheetId],A){A.pageSetup||(A.pageSetup={});const F=D.ranges.join(","),L=/\$/g,V=/\$\d+:\$\d+/,z=F.match(V);if(z&&z.length){const S=z[0];A.pageSetup.printTitlesRow=S.replace(L,"")}const M=/\$[A-Z]+:\$[A-Z]+/,T=F.match(M);if(T&&T.length){const S=T[0];A.pageSetup.printTitlesColumn=S.replace(L,"")}}}else q.push(D)}),p.definedNames=q,p.media.forEach((D,F)=>{D.index=F})}}c.WORKBOOK_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x15","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},c.STATIC_XFORMS={fileVersion:new e({tag:"fileVersion",$:{appName:"xl",lastEdited:5,lowestEdited:5,rupBuild:9303}})},v.exports=c},{"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"../static-xform":120,"./defined-name-xform":33,"./sheet-xform":34,"./workbook-calc-properties-xform":35,"./workbook-properties-xform":36,"./workbook-view-xform":37}],39:[function(t,v,b){const f=t("../strings/rich-text-xform"),o=t("../../../utils/utils"),a=t("../base-xform"),n=v.exports=function(e){this.model=e};o.inherits(n,a,{get tag(){return"r"},get richTextXform(){return this._richTextXform||(this._richTextXform=new f),this._richTextXform},render(e,r){r=r||this.model,e.openNode("comment",{ref:r.ref,authorId:0}),e.openNode("text"),r&&r.note&&r.note.texts&&r.note.texts.forEach(l=>{this.richTextXform.render(e,l)}),e.closeNode(),e.closeNode()},parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"comment":return this.model={type:"note",note:{texts:[]},...e.attributes},!0;case"r":return this.parser=this.richTextXform,this.parser.parseOpen(e),!0;default:return!1}},parseText(e){this.parser&&this.parser.parseText(e)},parseClose(e){switch(e){case"comment":return!1;case"r":return this.model.note.texts.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(e),!0}}})},{"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],40:[function(t,v,b){const f=t("../../../utils/xml-stream"),o=t("../../../utils/utils"),a=t("../base-xform"),n=t("./comment-xform"),e=v.exports=function(){this.map={comment:new n}};o.inherits(e,a,{COMMENTS_ATTRIBUTES:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},{render(r,l){l=l||this.model,r.openXml(f.StdDocAttributes),r.openNode("comments",e.COMMENTS_ATTRIBUTES),r.openNode("authors"),r.leafNode("author",null,"Author"),r.closeNode(),r.openNode("commentList"),l.comments.forEach(s=>{this.map.comment.render(r,s)}),r.closeNode(),r.closeNode()},parseOpen(r){if(this.parser)return this.parser.parseOpen(r),!0;switch(r.name){case"commentList":return this.model={comments:[]},!0;case"comment":return this.parser=this.map.comment,this.parser.parseOpen(r),!0;default:return!1}},parseText(r){this.parser&&this.parser.parseText(r)},parseClose(r){switch(r){case"commentList":return!1;case"comment":return this.model.comments.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(r),!0}}})},{"../../../utils/utils":27,"../../../utils/xml-stream":28,"../base-xform":32,"./comment-xform":39}],41:[function(t,v,b){const f=t("../../base-xform");v.exports=class extends f{constructor(o){super(),this._model=o}get tag(){return this._model&&this._model.tag}render(o,a,n){(a===n[2]||this.tag==="x:SizeWithCells"&&a===n[1])&&o.leafNode(this.tag)}parseOpen(o){switch(o.name){case this.tag:return this.model={},this.model[this.tag]=!0,!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../base-xform":32}],42:[function(t,v,b){const f=t("../../base-xform");v.exports=class extends f{constructor(o){super(),this._model=o}get tag(){return this._model&&this._model.tag}render(o,a){o.leafNode(this.tag,null,a)}parseOpen(o){switch(o.name){case this.tag:return this.text="",!0;default:return!1}}parseText(o){this.text=o}parseClose(){return!1}}},{"../../base-xform":32}],43:[function(t,v,b){const f=t("../base-xform");v.exports=class extends f{get tag(){return"x:Anchor"}getAnchorRect(o){const a=Math.floor(o.left),n=Math.floor(68*(o.left-a)),e=Math.floor(o.top),r=Math.floor(18*(o.top-e)),l=Math.floor(o.right),s=Math.floor(68*(o.right-l)),i=Math.floor(o.bottom);return[a,n,e,r,l,s,i,Math.floor(18*(o.bottom-i))]}getDefaultRect(o){const a=o.col,n=Math.max(o.row-2,0);return[a,6,n,14,a+2,2,n+4,16]}render(o,a){const n=a.anchor?this.getAnchorRect(a.anchor):this.getDefaultRect(a.refAddress);o.leafNode("x:Anchor",null,n.join(", "))}parseOpen(o){switch(o.name){case this.tag:return this.text="",!0;default:return!1}}parseText(o){this.text=o}parseClose(){return!1}}},{"../base-xform":32}],44:[function(t,v,b){const f=t("../base-xform"),o=t("./vml-anchor-xform"),a=t("./style/vml-protection-xform"),n=t("./style/vml-position-xform"),e=["twoCells","oneCells","absolute"];v.exports=class extends f{constructor(){super(),this.map={"x:Anchor":new o,"x:Locked":new a({tag:"x:Locked"}),"x:LockText":new a({tag:"x:LockText"}),"x:SizeWithCells":new n({tag:"x:SizeWithCells"}),"x:MoveWithCells":new n({tag:"x:MoveWithCells"})}}get tag(){return"x:ClientData"}render(r,l){const{protection:s,editAs:i}=l.note;r.openNode(this.tag,{ObjectType:"Note"}),this.map["x:MoveWithCells"].render(r,i,e),this.map["x:SizeWithCells"].render(r,i,e),this.map["x:Anchor"].render(r,l),this.map["x:Locked"].render(r,s.locked),r.leafNode("x:AutoFill",null,"False"),this.map["x:LockText"].render(r,s.lockText),r.leafNode("x:Row",null,l.refAddress.row-1),r.leafNode("x:Column",null,l.refAddress.col-1),r.closeNode()}parseOpen(r){switch(r.name){case this.tag:this.reset(),this.model={anchor:[],protection:{},editAs:""};break;default:this.parser=this.map[r.name],this.parser&&this.parser.parseOpen(r)}return!0}parseText(r){this.parser&&this.parser.parseText(r)}parseClose(r){if(this.parser)return this.parser.parseClose(r)||(this.parser=void 0),!0;switch(r){case this.tag:return this.normalizeModel(),!1;default:return!0}}normalizeModel(){const r=Object.assign({},this.map["x:MoveWithCells"].model,this.map["x:SizeWithCells"].model),l=Object.keys(r).length;this.model.editAs=e[l],this.model.anchor=this.map["x:Anchor"].text,this.model.protection.locked=this.map["x:Locked"].text,this.model.protection.lockText=this.map["x:LockText"].text}}},{"../base-xform":32,"./style/vml-position-xform":41,"./style/vml-protection-xform":42,"./vml-anchor-xform":43}],45:[function(t,v,b){const f=t("../../../utils/xml-stream"),o=t("../base-xform"),a=t("./vml-shape-xform");class n extends o{constructor(){super(),this.map={"v:shape":new a}}get tag(){return"xml"}render(r,l){r.openXml(f.StdDocAttributes),r.openNode(this.tag,n.DRAWING_ATTRIBUTES),r.openNode("o:shapelayout",{"v:ext":"edit"}),r.leafNode("o:idmap",{"v:ext":"edit",data:1}),r.closeNode(),r.openNode("v:shapetype",{id:"_x0000_t202",coordsize:"21600,21600","o:spt":202,path:"m,l,21600r21600,l21600,xe"}),r.leafNode("v:stroke",{joinstyle:"miter"}),r.leafNode("v:path",{gradientshapeok:"t","o:connecttype":"rect"}),r.closeNode(),l.comments.forEach((s,i)=>{this.map["v:shape"].render(r,s,i)}),r.closeNode()}parseOpen(r){if(this.parser)return this.parser.parseOpen(r),!0;switch(r.name){case this.tag:this.reset(),this.model={comments:[]};break;default:this.parser=this.map[r.name],this.parser&&this.parser.parseOpen(r)}return!0}parseText(r){this.parser&&this.parser.parseText(r)}parseClose(r){if(this.parser)return this.parser.parseClose(r)||(this.model.comments.push(this.parser.model),this.parser=void 0),!0;switch(r){case this.tag:return!1;default:return!0}}reconcile(r,l){r.anchors.forEach(s=>{s.br?this.map["xdr:twoCellAnchor"].reconcile(s,l):this.map["xdr:oneCellAnchor"].reconcile(s,l)})}}n.DRAWING_ATTRIBUTES={"xmlns:v":"urn:schemas-microsoft-com:vml","xmlns:o":"urn:schemas-microsoft-com:office:office","xmlns:x":"urn:schemas-microsoft-com:office:excel"},v.exports=n},{"../../../utils/xml-stream":28,"../base-xform":32,"./vml-shape-xform":46}],46:[function(t,v,b){const f=t("../base-xform"),o=t("./vml-textbox-xform"),a=t("./vml-client-data-xform");class n extends f{constructor(){super(),this.map={"v:textbox":new o,"x:ClientData":new a}}get tag(){return"v:shape"}render(r,l,s){r.openNode("v:shape",n.V_SHAPE_ATTRIBUTES(l,s)),r.leafNode("v:fill",{color2:"infoBackground [80]"}),r.leafNode("v:shadow",{color:"none [81]",obscured:"t"}),r.leafNode("v:path",{"o:connecttype":"none"}),this.map["v:textbox"].render(r,l),this.map["x:ClientData"].render(r,l),r.closeNode()}parseOpen(r){if(this.parser)return this.parser.parseOpen(r),!0;switch(r.name){case this.tag:this.reset(),this.model={margins:{insetmode:r.attributes["o:insetmode"]},anchor:"",editAs:"",protection:{}};break;default:this.parser=this.map[r.name],this.parser&&this.parser.parseOpen(r)}return!0}parseText(r){this.parser&&this.parser.parseText(r)}parseClose(r){if(this.parser)return this.parser.parseClose(r)||(this.parser=void 0),!0;switch(r){case this.tag:return this.model.margins.inset=this.map["v:textbox"].model&&this.map["v:textbox"].model.inset,this.model.protection=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.protection,this.model.anchor=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.anchor,this.model.editAs=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.editAs,!1;default:return!0}}}n.V_SHAPE_ATTRIBUTES=(e,r)=>({id:"_x0000_s"+(1025+r),type:"#_x0000_t202",style:"position:absolute; margin-left:105.3pt;margin-top:10.5pt;width:97.8pt;height:59.1pt;z-index:1;visibility:hidden",fillcolor:"infoBackground [80]",strokecolor:"none [81]","o:insetmode":e.note.margins&&e.note.margins.insetmode}),v.exports=n},{"../base-xform":32,"./vml-client-data-xform":44,"./vml-textbox-xform":47}],47:[function(t,v,b){const f=t("../base-xform");v.exports=class extends f{get tag(){return"v:textbox"}conversionUnit(o,a,n){return`${parseFloat(o)*a.toFixed(2)}${n}`}reverseConversionUnit(o){return(o||"").split(",").map(a=>Number(parseFloat(this.conversionUnit(parseFloat(a),.1,"")).toFixed(2)))}render(o,a){const n={style:"mso-direction-alt:auto"};if(a&&a.note){let{inset:e}=a.note&&a.note.margins;Array.isArray(e)&&(e=e.map(r=>this.conversionUnit(r,10,"mm")).join(",")),e&&(n.inset=e)}o.openNode("v:textbox",n),o.leafNode("div",{style:"text-align:left"}),o.closeNode()}parseOpen(o){switch(o.name){case this.tag:return this.model={inset:this.reverseConversionUnit(o.attributes.inset)},!0;default:return!0}}parseText(){}parseClose(o){switch(o){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],48:[function(t,v,b){const f=t("./base-xform");v.exports=class extends f{createNewModel(o){return{}}parseOpen(o){return this.parser=this.parser||this.map[o.name],this.parser?(this.parser.parseOpen(o),!0):o.name===this.tag&&(this.model=this.createNewModel(o),!0)}parseText(o){this.parser&&this.parser.parseText(o)}onParserClose(o,a){this.model[o]=a.model}parseClose(o){return this.parser?(this.parser.parseClose(o)||(this.onParserClose(o,this.parser),this.parser=void 0),!0):o!==this.tag}}},{"./base-xform":32}],49:[function(t,v,b){const f=t("../base-xform");v.exports=class extends f{render(o,a){o.openNode("HeadingPairs"),o.openNode("vt:vector",{size:2,baseType:"variant"}),o.openNode("vt:variant"),o.leafNode("vt:lpstr",void 0,"Worksheets"),o.closeNode(),o.openNode("vt:variant"),o.leafNode("vt:i4",void 0,a.length),o.closeNode(),o.closeNode(),o.closeNode()}parseOpen(o){return o.name==="HeadingPairs"}parseText(){}parseClose(o){return o!=="HeadingPairs"}}},{"../base-xform":32}],50:[function(t,v,b){const f=t("../base-xform");v.exports=class extends f{render(o,a){o.openNode("TitlesOfParts"),o.openNode("vt:vector",{size:a.length,baseType:"lpstr"}),a.forEach(n=>{o.leafNode("vt:lpstr",void 0,n.name)}),o.closeNode(),o.closeNode()}parseOpen(o){return o.name==="TitlesOfParts"}parseText(){}parseClose(o){return o!=="TitlesOfParts"}}},{"../base-xform":32}],51:[function(t,v,b){const f=t("../../../utils/xml-stream"),o=t("../base-xform"),a=t("../simple/string-xform"),n=t("./app-heading-pairs-xform"),e=t("./app-titles-of-parts-xform");class r extends o{constructor(){super(),this.map={Company:new a({tag:"Company"}),Manager:new a({tag:"Manager"}),HeadingPairs:new n,TitleOfParts:new e}}render(s,i){s.openXml(f.StdDocAttributes),s.openNode("Properties",r.PROPERTY_ATTRIBUTES),s.leafNode("Application",void 0,"Microsoft Excel"),s.leafNode("DocSecurity",void 0,"0"),s.leafNode("ScaleCrop",void 0,"false"),this.map.HeadingPairs.render(s,i.worksheets),this.map.TitleOfParts.render(s,i.worksheets),this.map.Company.render(s,i.company||""),this.map.Manager.render(s,i.manager),s.leafNode("LinksUpToDate",void 0,"false"),s.leafNode("SharedDoc",void 0,"false"),s.leafNode("HyperlinksChanged",void 0,"false"),s.leafNode("AppVersion",void 0,"16.0300"),s.closeNode()}parseOpen(s){if(this.parser)return this.parser.parseOpen(s),!0;switch(s.name){case"Properties":return!0;default:return this.parser=this.map[s.name],!!this.parser&&(this.parser.parseOpen(s),!0)}}parseText(s){this.parser&&this.parser.parseText(s)}parseClose(s){if(this.parser)return this.parser.parseClose(s)||(this.parser=void 0),!0;switch(s){case"Properties":return this.model={worksheets:this.map.TitleOfParts.model,company:this.map.Company.model,manager:this.map.Manager.model},!1;default:return!0}}}r.DateFormat=function(l){return l.toISOString().replace(/[.]\d{3,6}/,"")},r.DateAttrs={"xsi:type":"dcterms:W3CDTF"},r.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties","xmlns:vt":"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"},v.exports=r},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/string-xform":119,"./app-heading-pairs-xform":49,"./app-titles-of-parts-xform":50}],52:[function(t,v,b){const f=t("../../../utils/xml-stream"),o=t("../base-xform");class a extends o{render(e,r){e.openXml(f.StdDocAttributes),e.openNode("Types",a.PROPERTY_ATTRIBUTES);const l={};(r.media||[]).forEach(s=>{if(s.type==="image"){const i=s.extension;l[i]||(l[i]=!0,e.leafNode("Default",{Extension:i,ContentType:"image/"+i}))}}),e.leafNode("Default",{Extension:"rels",ContentType:"application/vnd.openxmlformats-package.relationships+xml"}),e.leafNode("Default",{Extension:"xml",ContentType:"application/xml"}),e.leafNode("Override",{PartName:"/xl/workbook.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"}),r.worksheets.forEach(s=>{const i=`/xl/worksheets/sheet${s.id}.xml`;e.leafNode("Override",{PartName:i,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"})}),e.leafNode("Override",{PartName:"/xl/theme/theme1.xml",ContentType:"application/vnd.openxmlformats-officedocument.theme+xml"}),e.leafNode("Override",{PartName:"/xl/styles.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"}),r.sharedStrings&&r.sharedStrings.count&&e.leafNode("Override",{PartName:"/xl/sharedStrings.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"}),r.tables&&r.tables.forEach(s=>{e.leafNode("Override",{PartName:"/xl/tables/"+s.target,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml"})}),r.drawings&&r.drawings.forEach(s=>{e.leafNode("Override",{PartName:`/xl/drawings/${s.name}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.drawing+xml"})}),r.commentRefs&&(e.leafNode("Default",{Extension:"vml",ContentType:"application/vnd.openxmlformats-officedocument.vmlDrawing"}),r.commentRefs.forEach(s=>{let{commentName:i}=s;e.leafNode("Override",{PartName:`/xl/${i}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml"})})),e.leafNode("Override",{PartName:"/docProps/core.xml",ContentType:"application/vnd.openxmlformats-package.core-properties+xml"}),e.leafNode("Override",{PartName:"/docProps/app.xml",ContentType:"application/vnd.openxmlformats-officedocument.extended-properties+xml"}),e.closeNode()}parseOpen(){return!1}parseText(){}parseClose(){return!1}}a.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"},v.exports=a},{"../../../utils/xml-stream":28,"../base-xform":32}],53:[function(t,v,b){const f=t("../../../utils/xml-stream"),o=t("../base-xform"),a=t("../simple/date-xform"),n=t("../simple/string-xform"),e=t("../simple/integer-xform");class r extends o{constructor(){super(),this.map={"dc:creator":new n({tag:"dc:creator"}),"dc:title":new n({tag:"dc:title"}),"dc:subject":new n({tag:"dc:subject"}),"dc:description":new n({tag:"dc:description"}),"dc:identifier":new n({tag:"dc:identifier"}),"dc:language":new n({tag:"dc:language"}),"cp:keywords":new n({tag:"cp:keywords"}),"cp:category":new n({tag:"cp:category"}),"cp:lastModifiedBy":new n({tag:"cp:lastModifiedBy"}),"cp:lastPrinted":new a({tag:"cp:lastPrinted",format:r.DateFormat}),"cp:revision":new e({tag:"cp:revision"}),"cp:version":new n({tag:"cp:version"}),"cp:contentStatus":new n({tag:"cp:contentStatus"}),"cp:contentType":new n({tag:"cp:contentType"}),"dcterms:created":new a({tag:"dcterms:created",attrs:r.DateAttrs,format:r.DateFormat}),"dcterms:modified":new a({tag:"dcterms:modified",attrs:r.DateAttrs,format:r.DateFormat})}}render(s,i){s.openXml(f.StdDocAttributes),s.openNode("cp:coreProperties",r.CORE_PROPERTY_ATTRIBUTES),this.map["dc:creator"].render(s,i.creator),this.map["dc:title"].render(s,i.title),this.map["dc:subject"].render(s,i.subject),this.map["dc:description"].render(s,i.description),this.map["dc:identifier"].render(s,i.identifier),this.map["dc:language"].render(s,i.language),this.map["cp:keywords"].render(s,i.keywords),this.map["cp:category"].render(s,i.category),this.map["cp:lastModifiedBy"].render(s,i.lastModifiedBy),this.map["cp:lastPrinted"].render(s,i.lastPrinted),this.map["cp:revision"].render(s,i.revision),this.map["cp:version"].render(s,i.version),this.map["cp:contentStatus"].render(s,i.contentStatus),this.map["cp:contentType"].render(s,i.contentType),this.map["dcterms:created"].render(s,i.created),this.map["dcterms:modified"].render(s,i.modified),s.closeNode()}parseOpen(s){if(this.parser)return this.parser.parseOpen(s),!0;switch(s.name){case"cp:coreProperties":case"coreProperties":return!0;default:if(this.parser=this.map[s.name],this.parser)return this.parser.parseOpen(s),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(s))}}parseText(s){this.parser&&this.parser.parseText(s)}parseClose(s){if(this.parser)return this.parser.parseClose(s)||(this.parser=void 0),!0;switch(s){case"cp:coreProperties":case"coreProperties":return this.model={creator:this.map["dc:creator"].model,title:this.map["dc:title"].model,subject:this.map["dc:subject"].model,description:this.map["dc:description"].model,identifier:this.map["dc:identifier"].model,language:this.map["dc:language"].model,keywords:this.map["cp:keywords"].model,category:this.map["cp:category"].model,lastModifiedBy:this.map["cp:lastModifiedBy"].model,lastPrinted:this.map["cp:lastPrinted"].model,revision:this.map["cp:revision"].model,contentStatus:this.map["cp:contentStatus"].model,contentType:this.map["cp:contentType"].model,created:this.map["dcterms:created"].model,modified:this.map["dcterms:modified"].model},!1;default:throw new Error("Unexpected xml node in parseClose: "+s)}}}r.DateFormat=function(l){return l.toISOString().replace(/[.]\d{3}/,"")},r.DateAttrs={"xsi:type":"dcterms:W3CDTF"},r.CORE_PROPERTY_ATTRIBUTES={"xmlns:cp":"http://schemas.openxmlformats.org/package/2006/metadata/core-properties","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:dcterms":"http://purl.org/dc/terms/","xmlns:dcmitype":"http://purl.org/dc/dcmitype/","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance"},v.exports=r},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/date-xform":117,"../simple/integer-xform":118,"../simple/string-xform":119}],54:[function(t,v,b){const f=t("../base-xform");v.exports=class extends f{render(o,a){o.leafNode("Relationship",a)}parseOpen(o){switch(o.name){case"Relationship":return this.model=o.attributes,!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],55:[function(t,v,b){const f=t("../../../utils/xml-stream"),o=t("../base-xform"),a=t("./relationship-xform");class n extends o{constructor(){super(),this.map={Relationship:new a}}render(r,l){l=l||this._values,r.openXml(f.StdDocAttributes),r.openNode("Relationships",n.RELATIONSHIPS_ATTRIBUTES),l.forEach(s=>{this.map.Relationship.render(r,s)}),r.closeNode()}parseOpen(r){if(this.parser)return this.parser.parseOpen(r),!0;switch(r.name){case"Relationships":return this.model=[],!0;default:if(this.parser=this.map[r.name],this.parser)return this.parser.parseOpen(r),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(r))}}parseText(r){this.parser&&this.parser.parseText(r)}parseClose(r){if(this.parser)return this.parser.parseClose(r)||(this.model.push(this.parser.model),this.parser=void 0),!0;switch(r){case"Relationships":return!1;default:throw new Error("Unexpected xml node in parseClose: "+r)}}}n.RELATIONSHIPS_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"},v.exports=n},{"../../../utils/xml-stream":28,"../base-xform":32,"./relationship-xform":54}],56:[function(t,v,b){const f=t("../base-xform");v.exports=class extends f{parseOpen(o){if(this.parser)return this.parser.parseOpen(o),!0;switch(o.name){case this.tag:this.reset(),this.model={range:{editAs:o.attributes.editAs||"oneCell"}};break;default:this.parser=this.map[o.name],this.parser&&this.parser.parseOpen(o)}return!0}parseText(o){this.parser&&this.parser.parseText(o)}reconcilePicture(o,a){if(o&&o.rId){const n=a.rels[o.rId].Target.match(/.*\/media\/(.+[.][a-zA-Z]{3,4})/);if(n){const e=n[1],r=a.mediaIndex[e];return a.media[r]}}}}},{"../base-xform":32}],57:[function(t,v,b){const f=t("../base-xform"),o=t("./blip-xform");v.exports=class extends f{constructor(){super(),this.map={"a:blip":new o}}get tag(){return"xdr:blipFill"}render(a,n){a.openNode(this.tag),this.map["a:blip"].render(a,n),a.openNode("a:stretch"),a.leafNode("a:fillRect"),a.closeNode(),a.closeNode()}parseOpen(a){if(this.parser)return this.parser.parseOpen(a),!0;switch(a.name){case this.tag:this.reset();break;default:this.parser=this.map[a.name],this.parser&&this.parser.parseOpen(a)}return!0}parseText(){}parseClose(a){if(this.parser)return this.parser.parseClose(a)||(this.parser=void 0),!0;switch(a){case this.tag:return this.model=this.map["a:blip"].model,!1;default:return!0}}}},{"../base-xform":32,"./blip-xform":58}],58:[function(t,v,b){const f=t("../base-xform");v.exports=class extends f{get tag(){return"a:blip"}render(o,a){o.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:embed":a.rId,cstate:"print"})}parseOpen(o){switch(o.name){case this.tag:return this.model={rId:o.attributes["r:embed"]},!0;default:return!0}}parseText(){}parseClose(o){switch(o){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],59:[function(t,v,b){const f=t("../base-xform");v.exports=class extends f{get tag(){return"xdr:cNvPicPr"}render(o){o.openNode(this.tag),o.leafNode("a:picLocks",{noChangeAspect:"1"}),o.closeNode()}parseOpen(o){switch(o.name){case this.tag:default:return!0}}parseText(){}parseClose(o){switch(o){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],60:[function(t,v,b){const f=t("../base-xform"),o=t("./hlink-click-xform"),a=t("./ext-lst-xform");v.exports=class extends f{constructor(){super(),this.map={"a:hlinkClick":new o,"a:extLst":new a}}get tag(){return"xdr:cNvPr"}render(n,e){n.openNode(this.tag,{id:e.index,name:"Picture "+e.index}),this.map["a:hlinkClick"].render(n,e),this.map["a:extLst"].render(n,e),n.closeNode()}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case this.tag:this.reset();break;default:this.parser=this.map[n.name],this.parser&&this.parser.parseOpen(n)}return!0}parseText(){}parseClose(n){if(this.parser)return this.parser.parseClose(n)||(this.parser=void 0),!0;switch(n){case this.tag:return this.model=this.map["a:hlinkClick"].model,!1;default:return!0}}}},{"../base-xform":32,"./ext-lst-xform":63,"./hlink-click-xform":65}],61:[function(t,v,b){const f=t("../base-xform"),o=t("../simple/integer-xform");v.exports=class extends f{constructor(a){super(),this.tag=a.tag,this.map={"xdr:col":new o({tag:"xdr:col",zero:!0}),"xdr:colOff":new o({tag:"xdr:colOff",zero:!0}),"xdr:row":new o({tag:"xdr:row",zero:!0}),"xdr:rowOff":new o({tag:"xdr:rowOff",zero:!0})}}render(a,n){a.openNode(this.tag),this.map["xdr:col"].render(a,n.nativeCol),this.map["xdr:colOff"].render(a,n.nativeColOff),this.map["xdr:row"].render(a,n.nativeRow),this.map["xdr:rowOff"].render(a,n.nativeRowOff),a.closeNode()}parseOpen(a){if(this.parser)return this.parser.parseOpen(a),!0;switch(a.name){case this.tag:this.reset();break;default:this.parser=this.map[a.name],this.parser&&this.parser.parseOpen(a)}return!0}parseText(a){this.parser&&this.parser.parseText(a)}parseClose(a){if(this.parser)return this.parser.parseClose(a)||(this.parser=void 0),!0;switch(a){case this.tag:return this.model={nativeCol:this.map["xdr:col"].model,nativeColOff:this.map["xdr:colOff"].model,nativeRow:this.map["xdr:row"].model,nativeRowOff:this.map["xdr:rowOff"].model},!1;default:return!0}}}},{"../base-xform":32,"../simple/integer-xform":118}],62:[function(t,v,b){const f=t("../../../utils/col-cache"),o=t("../../../utils/xml-stream"),a=t("../base-xform"),n=t("./two-cell-anchor-xform"),e=t("./one-cell-anchor-xform");class r extends a{constructor(){super(),this.map={"xdr:twoCellAnchor":new n,"xdr:oneCellAnchor":new e}}prepare(s){s.anchors.forEach((i,d)=>{i.anchorType=function(h){return(typeof h.range=="string"?f.decode(h.range):h.range).br?"xdr:twoCellAnchor":"xdr:oneCellAnchor"}(i),this.map[i.anchorType].prepare(i,{index:d})})}get tag(){return"xdr:wsDr"}render(s,i){s.openXml(o.StdDocAttributes),s.openNode(this.tag,r.DRAWING_ATTRIBUTES),i.anchors.forEach(d=>{this.map[d.anchorType].render(s,d)}),s.closeNode()}parseOpen(s){if(this.parser)return this.parser.parseOpen(s),!0;switch(s.name){case this.tag:this.reset(),this.model={anchors:[]};break;default:this.parser=this.map[s.name],this.parser&&this.parser.parseOpen(s)}return!0}parseText(s){this.parser&&this.parser.parseText(s)}parseClose(s){if(this.parser)return this.parser.parseClose(s)||(this.model.anchors.push(this.parser.model),this.parser=void 0),!0;switch(s){case this.tag:return!1;default:return!0}}reconcile(s,i){s.anchors.forEach(d=>{d.br?this.map["xdr:twoCellAnchor"].reconcile(d,i):this.map["xdr:oneCellAnchor"].reconcile(d,i)})}}r.DRAWING_ATTRIBUTES={"xmlns:xdr":"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing","xmlns:a":"http://schemas.openxmlformats.org/drawingml/2006/main"},v.exports=r},{"../../../utils/col-cache":19,"../../../utils/xml-stream":28,"../base-xform":32,"./one-cell-anchor-xform":67,"./two-cell-anchor-xform":70}],63:[function(t,v,b){const f=t("../base-xform");v.exports=class extends f{get tag(){return"a:extLst"}render(o){o.openNode(this.tag),o.openNode("a:ext",{uri:"{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}"}),o.leafNode("a16:creationId",{"xmlns:a16":"http://schemas.microsoft.com/office/drawing/2014/main",id:"{00000000-0008-0000-0000-000002000000}"}),o.closeNode(),o.closeNode()}parseOpen(o){switch(o.name){case this.tag:default:return!0}}parseText(){}parseClose(o){switch(o){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],64:[function(t,v,b){const f=t("../base-xform");v.exports=class extends f{constructor(o){super(),this.tag=o.tag,this.map={}}render(o,a){o.openNode(this.tag);const n=Math.floor(9525*a.width),e=Math.floor(9525*a.height);o.addAttribute("cx",n),o.addAttribute("cy",e),o.closeNode()}parseOpen(o){return o.name===this.tag&&(this.model={width:parseInt(o.attributes.cx||"0",10)/9525,height:parseInt(o.attributes.cy||"0",10)/9525},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],65:[function(t,v,b){const f=t("../base-xform");v.exports=class extends f{get tag(){return"a:hlinkClick"}render(o,a){a.hyperlinks&&a.hyperlinks.rId&&o.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:id":a.hyperlinks.rId,tooltip:a.hyperlinks.tooltip})}parseOpen(o){switch(o.name){case this.tag:return this.model={hyperlinks:{rId:o.attributes["r:id"],tooltip:o.attributes.tooltip}},!0;default:return!0}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],66:[function(t,v,b){const f=t("../base-xform"),o=t("./c-nv-pr-xform"),a=t("./c-nv-pic-pr-xform");v.exports=class extends f{constructor(){super(),this.map={"xdr:cNvPr":new o,"xdr:cNvPicPr":new a}}get tag(){return"xdr:nvPicPr"}render(n,e){n.openNode(this.tag),this.map["xdr:cNvPr"].render(n,e),this.map["xdr:cNvPicPr"].render(n,e),n.closeNode()}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case this.tag:this.reset();break;default:this.parser=this.map[n.name],this.parser&&this.parser.parseOpen(n)}return!0}parseText(){}parseClose(n){if(this.parser)return this.parser.parseClose(n)||(this.parser=void 0),!0;switch(n){case this.tag:return this.model=this.map["xdr:cNvPr"].model,!1;default:return!0}}}},{"../base-xform":32,"./c-nv-pic-pr-xform":59,"./c-nv-pr-xform":60}],67:[function(t,v,b){const f=t("./base-cell-anchor-xform"),o=t("../static-xform"),a=t("./cell-position-xform"),n=t("./ext-xform"),e=t("./pic-xform");v.exports=class extends f{constructor(){super(),this.map={"xdr:from":new a({tag:"xdr:from"}),"xdr:ext":new n({tag:"xdr:ext"}),"xdr:pic":new e,"xdr:clientData":new o({tag:"xdr:clientData"})}}get tag(){return"xdr:oneCellAnchor"}prepare(r,l){this.map["xdr:pic"].prepare(r.picture,l)}render(r,l){r.openNode(this.tag,{editAs:l.range.editAs||"oneCell"}),this.map["xdr:from"].render(r,l.range.tl),this.map["xdr:ext"].render(r,l.range.ext),this.map["xdr:pic"].render(r,l.picture),this.map["xdr:clientData"].render(r,{}),r.closeNode()}parseClose(r){if(this.parser)return this.parser.parseClose(r)||(this.parser=void 0),!0;switch(r){case this.tag:return this.model.range.tl=this.map["xdr:from"].model,this.model.range.ext=this.map["xdr:ext"].model,this.model.picture=this.map["xdr:pic"].model,!1;default:return!0}}reconcile(r,l){r.medium=this.reconcilePicture(r.picture,l)}}},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./ext-xform":64,"./pic-xform":68}],68:[function(t,v,b){const f=t("../base-xform"),o=t("../static-xform"),a=t("./blip-fill-xform"),n=t("./nv-pic-pr-xform"),e=t("./sp-pr");v.exports=class extends f{constructor(){super(),this.map={"xdr:nvPicPr":new n,"xdr:blipFill":new a,"xdr:spPr":new o(e)}}get tag(){return"xdr:pic"}prepare(r,l){r.index=l.index+1}render(r,l){r.openNode(this.tag),this.map["xdr:nvPicPr"].render(r,l),this.map["xdr:blipFill"].render(r,l),this.map["xdr:spPr"].render(r,l),r.closeNode()}parseOpen(r){if(this.parser)return this.parser.parseOpen(r),!0;switch(r.name){case this.tag:this.reset();break;default:this.parser=this.map[r.name],this.parser&&this.parser.parseOpen(r)}return!0}parseText(){}parseClose(r){if(this.parser)return this.parser.parseClose(r)||(this.mergeModel(this.parser.model),this.parser=void 0),!0;switch(r){case this.tag:return!1;default:return!0}}}},{"../base-xform":32,"../static-xform":120,"./blip-fill-xform":57,"./nv-pic-pr-xform":66,"./sp-pr":69}],69:[function(t,v,b){v.exports={tag:"xdr:spPr",c:[{tag:"a:xfrm",c:[{tag:"a:off",$:{x:"0",y:"0"}},{tag:"a:ext",$:{cx:"0",cy:"0"}}]},{tag:"a:prstGeom",$:{prst:"rect"},c:[{tag:"a:avLst"}]}]}},{}],70:[function(t,v,b){const f=t("./base-cell-anchor-xform"),o=t("../static-xform"),a=t("./cell-position-xform"),n=t("./pic-xform");v.exports=class extends f{constructor(){super(),this.map={"xdr:from":new a({tag:"xdr:from"}),"xdr:to":new a({tag:"xdr:to"}),"xdr:pic":new n,"xdr:clientData":new o({tag:"xdr:clientData"})}}get tag(){return"xdr:twoCellAnchor"}prepare(e,r){this.map["xdr:pic"].prepare(e.picture,r)}render(e,r){e.openNode(this.tag,{editAs:r.range.editAs||"oneCell"}),this.map["xdr:from"].render(e,r.range.tl),this.map["xdr:to"].render(e,r.range.br),this.map["xdr:pic"].render(e,r.picture),this.map["xdr:clientData"].render(e,{}),e.closeNode()}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case this.tag:return this.model.range.tl=this.map["xdr:from"].model,this.model.range.br=this.map["xdr:to"].model,this.model.picture=this.map["xdr:pic"].model,!1;default:return!0}}reconcile(e,r){e.medium=this.reconcilePicture(e.picture,r)}}},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./pic-xform":68}],71:[function(t,v,b){const f=t("./base-xform");v.exports=class extends f{constructor(o){super(),this.tag=o.tag,this.always=!!o.always,this.count=o.count,this.empty=o.empty,this.$count=o.$count||"count",this.$=o.$,this.childXform=o.childXform,this.maxItems=o.maxItems}prepare(o,a){const{childXform:n}=this;o&&o.forEach((e,r)=>{a.index=r,n.prepare(e,a)})}render(o,a){if(this.always||a&&a.length){o.openNode(this.tag,this.$),this.count&&o.addAttribute(this.$count,a&&a.length||0);const{childXform:n}=this;(a||[]).forEach((e,r)=>{n.render(o,e,r)}),o.closeNode()}else this.empty&&o.leafNode(this.tag)}parseOpen(o){if(this.parser)return this.parser.parseOpen(o),!0;switch(o.name){case this.tag:return this.model=[],!0;default:return!!this.childXform.parseOpen(o)&&(this.parser=this.childXform,!0)}}parseText(o){this.parser&&this.parser.parseText(o)}parseClose(o){if(this.parser){if(!this.parser.parseClose(o)&&(this.model.push(this.parser.model),this.parser=void 0,this.maxItems&&this.model.length>this.maxItems))throw new Error(`Max ${this.childXform.tag} count (${this.maxItems}) exceeded`);return!0}return!1}reconcile(o,a){if(o){const{childXform:n}=this;o.forEach(e=>{n.reconcile(e,a)})}}}},{"./base-xform":32}],72:[function(t,v,b){const f=t("../../../utils/col-cache"),o=t("../base-xform");v.exports=class extends o{get tag(){return"autoFilter"}render(a,n){if(n)if(typeof n=="string")a.leafNode("autoFilter",{ref:n});else{const e=function(s){return typeof s=="string"?s:f.getAddress(s.row,s.column).address},r=e(n.from),l=e(n.to);r&&l&&a.leafNode("autoFilter",{ref:`${r}:${l}`})}}parseOpen(a){a.name==="autoFilter"&&(this.model=a.attributes.ref)}}},{"../../../utils/col-cache":19,"../base-xform":32}],73:[function(t,v,b){const f=t("../../../utils/utils"),o=t("../base-xform"),a=t("../../../doc/range"),n=t("../../../doc/enums"),e=t("../strings/rich-text-xform");function r(l){if(l==null)return n.ValueType.Null;if(l instanceof String||typeof l=="string")return n.ValueType.String;if(typeof l=="number")return n.ValueType.Number;if(typeof l=="boolean")return n.ValueType.Boolean;if(l instanceof Date)return n.ValueType.Date;if(l.text&&l.hyperlink)return n.ValueType.Hyperlink;if(l.formula)return n.ValueType.Formula;if(l.error)return n.ValueType.Error;throw new Error("I could not understand type of value")}v.exports=class extends o{constructor(){super(),this.richTextXForm=new e}get tag(){return"c"}prepare(l,s){const i=s.styles.addStyleModel(l.style||{},function(d){switch(d.type){case n.ValueType.Formula:return r(d.result);default:return d.type}}(l));switch(i&&(l.styleId=i),l.comment&&s.comments.push({...l.comment,ref:l.address}),l.type){case n.ValueType.String:case n.ValueType.RichText:s.sharedStrings&&(l.ssId=s.sharedStrings.add(l.value));break;case n.ValueType.Date:s.date1904&&(l.date1904=!0);break;case n.ValueType.Hyperlink:s.sharedStrings&&l.text!==void 0&&l.text!==null&&(l.ssId=s.sharedStrings.add(l.text)),s.hyperlinks.push({address:l.address,target:l.hyperlink,tooltip:l.tooltip});break;case n.ValueType.Merge:s.merges.add(l);break;case n.ValueType.Formula:if(s.date1904&&(l.date1904=!0),l.shareType==="shared"&&(l.si=s.siFormulae++),l.formula)s.formulae[l.address]=l;else if(l.sharedFormula){const d=s.formulae[l.sharedFormula];if(!d)throw new Error("Shared Formula master must exist above and or left of clone for cell "+l.address);d.si===void 0?(d.shareType="shared",d.si=s.siFormulae++,d.range=new a(d.address,l.address)):d.range&&d.range.expandToAddress(l.address),l.si=d.si}}}renderFormula(l,s){let i=null;switch(s.shareType){case"shared":i={t:"shared",ref:s.ref||s.range.range,si:s.si};break;case"array":i={t:"array",ref:s.ref};break;default:s.si!==void 0&&(i={t:"shared",si:s.si})}switch(r(s.result)){case n.ValueType.Null:l.leafNode("f",i,s.formula);break;case n.ValueType.String:l.addAttribute("t","str"),l.leafNode("f",i,s.formula),l.leafNode("v",null,s.result);break;case n.ValueType.Number:l.leafNode("f",i,s.formula),l.leafNode("v",null,s.result);break;case n.ValueType.Boolean:l.addAttribute("t","b"),l.leafNode("f",i,s.formula),l.leafNode("v",null,s.result?1:0);break;case n.ValueType.Error:l.addAttribute("t","e"),l.leafNode("f",i,s.formula),l.leafNode("v",null,s.result.error);break;case n.ValueType.Date:l.leafNode("f",i,s.formula),l.leafNode("v",null,f.dateToExcel(s.result,s.date1904));break;default:throw new Error("I could not understand type of value")}}render(l,s){if(s.type!==n.ValueType.Null||s.styleId){switch(l.openNode("c"),l.addAttribute("r",s.address),s.styleId&&l.addAttribute("s",s.styleId),s.type){case n.ValueType.Null:break;case n.ValueType.Number:l.leafNode("v",null,s.value);break;case n.ValueType.Boolean:l.addAttribute("t","b"),l.leafNode("v",null,s.value?"1":"0");break;case n.ValueType.Error:l.addAttribute("t","e"),l.leafNode("v",null,s.value.error);break;case n.ValueType.String:case n.ValueType.RichText:s.ssId!==void 0?(l.addAttribute("t","s"),l.leafNode("v",null,s.ssId)):s.value&&s.value.richText?(l.addAttribute("t","inlineStr"),l.openNode("is"),s.value.richText.forEach(i=>{this.richTextXForm.render(l,i)}),l.closeNode("is")):(l.addAttribute("t","str"),l.leafNode("v",null,s.value));break;case n.ValueType.Date:l.leafNode("v",null,f.dateToExcel(s.value,s.date1904));break;case n.ValueType.Hyperlink:s.ssId!==void 0?(l.addAttribute("t","s"),l.leafNode("v",null,s.ssId)):(l.addAttribute("t","str"),l.leafNode("v",null,s.text));break;case n.ValueType.Formula:this.renderFormula(l,s);break;case n.ValueType.Merge:}l.closeNode()}}parseOpen(l){if(this.parser)return this.parser.parseOpen(l),!0;switch(l.name){case"c":return this.model={address:l.attributes.r},this.t=l.attributes.t,l.attributes.s&&(this.model.styleId=parseInt(l.attributes.s,10)),!0;case"f":return this.currentNode="f",this.model.si=l.attributes.si,this.model.shareType=l.attributes.t,this.model.ref=l.attributes.ref,!0;case"v":return this.currentNode="v",!0;case"t":return this.currentNode="t",!0;case"r":return this.parser=this.richTextXForm,this.parser.parseOpen(l),!0;default:return!1}}parseText(l){if(this.parser)this.parser.parseText(l);else switch(this.currentNode){case"f":this.model.formula=this.model.formula?this.model.formula+l:l;break;case"v":case"t":this.model.value&&this.model.value.richText?this.model.value.richText.text=this.model.value.richText.text?this.model.value.richText.text+l:l:this.model.value=this.model.value?this.model.value+l:l}}parseClose(l){switch(l){case"c":{const{model:s}=this;if(s.formula||s.shareType)s.type=n.ValueType.Formula,s.value&&(this.t==="str"?s.result=f.xmlDecode(s.value):this.t==="b"?s.result=parseInt(s.value,10)!==0:this.t==="e"?s.result={error:s.value}:s.result=parseFloat(s.value),s.value=void 0);else if(s.value!==void 0)switch(this.t){case"s":s.type=n.ValueType.String,s.value=parseInt(s.value,10);break;case"str":s.type=n.ValueType.String,s.value=f.xmlDecode(s.value);break;case"inlineStr":s.type=n.ValueType.String;break;case"b":s.type=n.ValueType.Boolean,s.value=parseInt(s.value,10)!==0;break;case"e":s.type=n.ValueType.Error,s.value={error:s.value};break;default:s.type=n.ValueType.Number,s.value=parseFloat(s.value)}else s.styleId?s.type=n.ValueType.Null:s.type=n.ValueType.Merge;return!1}case"f":case"v":case"is":return this.currentNode=void 0,!0;case"t":return this.parser?(this.parser.parseClose(l),!0):(this.currentNode=void 0,!0);case"r":return this.model.value=this.model.value||{},this.model.value.richText=this.model.value.richText||[],this.model.value.richText.push(this.parser.model),this.parser=void 0,this.currentNode=void 0,!0;default:return!!this.parser&&(this.parser.parseClose(l),!0)}}reconcile(l,s){const i=l.styleId&&s.styles&&s.styles.getStyleModel(l.styleId);switch(i&&(l.style=i),l.styleId!==void 0&&(l.styleId=void 0),l.type){case n.ValueType.String:typeof l.value=="number"&&s.sharedStrings&&(l.value=s.sharedStrings.getString(l.value)),l.value.richText&&(l.type=n.ValueType.RichText);break;case n.ValueType.Number:i&&f.isDateFmt(i.numFmt)&&(l.type=n.ValueType.Date,l.value=f.excelToDate(l.value,s.date1904));break;case n.ValueType.Formula:l.result!==void 0&&i&&f.isDateFmt(i.numFmt)&&(l.result=f.excelToDate(l.result,s.date1904)),l.shareType==="shared"&&(l.ref?s.formulae[l.si]=l.address:(l.sharedFormula=s.formulae[l.si],delete l.shareType),delete l.si)}const d=s.hyperlinkMap[l.address];d&&(l.type===n.ValueType.Formula?(l.text=l.result,l.result=void 0):(l.text=l.value,l.value=void 0),l.type=n.ValueType.Hyperlink,l.hyperlink=d);const h=s.commentsMap&&s.commentsMap[l.address];h&&(l.comment=h)}}},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],74:[function(t,v,b){const f=t("../../base-xform");v.exports=class extends f{get tag(){return"x14:cfIcon"}render(o,a){o.leafNode(this.tag,{iconSet:a.iconSet,iconId:a.iconId})}parseOpen(o){let{attributes:a}=o;this.model={iconSet:a.iconSet,iconId:f.toIntValue(a.iconId)}}parseClose(o){return o!==this.tag}}},{"../../base-xform":32}],75:[function(t,v,b){const{v4:f}=t("uuid"),o=t("../../base-xform"),a=t("../../composite-xform"),n=t("./databar-ext-xform"),e=t("./icon-set-ext-xform"),r={"3Triangles":!0,"3Stars":!0,"5Boxes":!0};class l extends a{constructor(){super(),this.map={"x14:dataBar":this.databarXform=new n,"x14:iconSet":this.iconSetXform=new e}}get tag(){return"x14:cfRule"}static isExt(i){return i.type==="dataBar"?n.isExt(i):!(i.type!=="iconSet"||!i.custom&&!r[i.iconSet])}prepare(i){l.isExt(i)&&(i.x14Id=`{${f()}}`.toUpperCase())}render(i,d){if(l.isExt(d))switch(d.type){case"dataBar":this.renderDataBar(i,d);break;case"iconSet":this.renderIconSet(i,d)}}renderDataBar(i,d){i.openNode(this.tag,{type:"dataBar",id:d.x14Id}),this.databarXform.render(i,d),i.closeNode()}renderIconSet(i,d){i.openNode(this.tag,{type:"iconSet",priority:d.priority,id:d.x14Id||`{${f()}}`}),this.iconSetXform.render(i,d),i.closeNode()}createNewModel(i){let{attributes:d}=i;return{type:d.type,x14Id:d.id,priority:o.toIntValue(d.priority)}}onParserClose(i,d){Object.assign(this.model,d.model)}}v.exports=l},{"../../base-xform":32,"../../composite-xform":48,"./databar-ext-xform":79,"./icon-set-ext-xform":81,uuid:528}],76:[function(t,v,b){const f=t("../../composite-xform"),o=t("./f-ext-xform");v.exports=class extends f{constructor(){super(),this.map={"xm:f":this.fExtXform=new o}}get tag(){return"x14:cfvo"}render(a,n){a.openNode(this.tag,{type:n.type}),n.value!==void 0&&this.fExtXform.render(a,n.value),a.closeNode()}createNewModel(a){return{type:a.attributes.type}}onParserClose(a,n){switch(a){case"xm:f":this.model.value=n.model?parseFloat(n.model):0}}}},{"../../composite-xform":48,"./f-ext-xform":80}],77:[function(t,v,b){const f=t("../../composite-xform"),o=t("./sqref-ext-xform"),a=t("./cf-rule-ext-xform");v.exports=class extends f{constructor(){super(),this.map={"xm:sqref":this.sqRef=new o,"x14:cfRule":this.cfRule=new a}}get tag(){return"x14:conditionalFormatting"}prepare(n,e){n.rules.forEach(r=>{this.cfRule.prepare(r,e)})}render(n,e){e.rules.some(a.isExt)&&(n.openNode(this.tag,{"xmlns:xm":"http://schemas.microsoft.com/office/excel/2006/main"}),e.rules.filter(a.isExt).forEach(r=>this.cfRule.render(n,r)),this.sqRef.render(n,e.ref),n.closeNode())}createNewModel(){return{rules:[]}}onParserClose(n,e){switch(n){case"xm:sqref":this.model.ref=e.model;break;case"x14:cfRule":this.model.rules.push(e.model)}}}},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./sqref-ext-xform":82}],78:[function(t,v,b){const f=t("../../composite-xform"),o=t("./cf-rule-ext-xform"),a=t("./conditional-formatting-ext-xform");v.exports=class extends f{constructor(){super(),this.map={"x14:conditionalFormatting":this.cfXform=new a}}get tag(){return"x14:conditionalFormattings"}hasContent(n){return n.hasExtContent===void 0&&(n.hasExtContent=n.some(e=>e.rules.some(o.isExt))),n.hasExtContent}prepare(n,e){n.forEach(r=>{this.cfXform.prepare(r,e)})}render(n,e){this.hasContent(e)&&(n.openNode(this.tag),e.forEach(r=>this.cfXform.render(n,r)),n.closeNode())}createNewModel(){return[]}onParserClose(n,e){this.model.push(e.model)}}},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./conditional-formatting-ext-xform":77}],79:[function(t,v,b){const f=t("../../base-xform"),o=t("../../composite-xform"),a=t("../../style/color-xform"),n=t("./cfvo-ext-xform");v.exports=class extends o{constructor(){super(),this.map={"x14:cfvo":this.cfvoXform=new n,"x14:borderColor":this.borderColorXform=new a("x14:borderColor"),"x14:negativeBorderColor":this.negativeBorderColorXform=new a("x14:negativeBorderColor"),"x14:negativeFillColor":this.negativeFillColorXform=new a("x14:negativeFillColor"),"x14:axisColor":this.axisColorXform=new a("x14:axisColor")}}static isExt(e){return!e.gradient}get tag(){return"x14:dataBar"}render(e,r){e.openNode(this.tag,{minLength:f.toIntAttribute(r.minLength,0,!0),maxLength:f.toIntAttribute(r.maxLength,100,!0),border:f.toBoolAttribute(r.border,!1),gradient:f.toBoolAttribute(r.gradient,!0),negativeBarColorSameAsPositive:f.toBoolAttribute(r.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:f.toBoolAttribute(r.negativeBarBorderColorSameAsPositive,!0),axisPosition:f.toAttribute(r.axisPosition,"auto"),direction:f.toAttribute(r.direction,"leftToRight")}),r.cfvo.forEach(l=>{this.cfvoXform.render(e,l)}),this.borderColorXform.render(e,r.borderColor),this.negativeBorderColorXform.render(e,r.negativeBorderColor),this.negativeFillColorXform.render(e,r.negativeFillColor),this.axisColorXform.render(e,r.axisColor),e.closeNode()}createNewModel(e){let{attributes:r}=e;return{cfvo:[],minLength:f.toIntValue(r.minLength,0),maxLength:f.toIntValue(r.maxLength,100),border:f.toBoolValue(r.border,!1),gradient:f.toBoolValue(r.gradient,!0),negativeBarColorSameAsPositive:f.toBoolValue(r.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:f.toBoolValue(r.negativeBarBorderColorSameAsPositive,!0),axisPosition:f.toStringValue(r.axisPosition,"auto"),direction:f.toStringValue(r.direction,"leftToRight")}}onParserClose(e,r){const[,l]=e.split(":");switch(l){case"cfvo":this.model.cfvo.push(r.model);break;default:this.model[l]=r.model}}}},{"../../base-xform":32,"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-ext-xform":76}],80:[function(t,v,b){const f=t("../../base-xform");v.exports=class extends f{get tag(){return"xm:f"}render(o,a){o.leafNode(this.tag,null,a)}parseOpen(){this.model=""}parseText(o){this.model+=o}parseClose(o){return o!==this.tag}}},{"../../base-xform":32}],81:[function(t,v,b){const f=t("../../base-xform"),o=t("../../composite-xform"),a=t("./cfvo-ext-xform"),n=t("./cf-icon-ext-xform");v.exports=class extends o{constructor(){super(),this.map={"x14:cfvo":this.cfvoXform=new a,"x14:cfIcon":this.cfIconXform=new n}}get tag(){return"x14:iconSet"}render(e,r){e.openNode(this.tag,{iconSet:f.toStringAttribute(r.iconSet),reverse:f.toBoolAttribute(r.reverse,!1),showValue:f.toBoolAttribute(r.showValue,!0),custom:f.toBoolAttribute(r.icons,!1)}),r.cfvo.forEach(l=>{this.cfvoXform.render(e,l)}),r.icons&&r.icons.forEach((l,s)=>{l.iconId=s,this.cfIconXform.render(e,l)}),e.closeNode()}createNewModel(e){let{attributes:r}=e;return{cfvo:[],iconSet:f.toStringValue(r.iconSet,"3TrafficLights"),reverse:f.toBoolValue(r.reverse,!1),showValue:f.toBoolValue(r.showValue,!0)}}onParserClose(e,r){const[,l]=e.split(":");switch(l){case"cfvo":this.model.cfvo.push(r.model);break;case"cfIcon":this.model.icons||(this.model.icons=[]),this.model.icons.push(r.model);break;default:this.model[l]=r.model}}}},{"../../base-xform":32,"../../composite-xform":48,"./cf-icon-ext-xform":74,"./cfvo-ext-xform":76}],82:[function(t,v,b){const f=t("../../base-xform");v.exports=class extends f{get tag(){return"xm:sqref"}render(o,a){o.leafNode(this.tag,null,a)}parseOpen(){this.model=""}parseText(o){this.model+=o}parseClose(o){return o!==this.tag}}},{"../../base-xform":32}],83:[function(t,v,b){const f=t("../../base-xform"),o=t("../../composite-xform"),a=t("../../../../doc/range"),n=t("./databar-xform"),e=t("./ext-lst-ref-xform"),r=t("./formula-xform"),l=t("./color-scale-xform"),s=t("./icon-set-xform"),i={"3Triangles":!0,"3Stars":!0,"5Boxes":!0},d=c=>{const{type:m,operator:p}=c;switch(m){case"containsText":case"containsBlanks":case"notContainsBlanks":case"containsErrors":case"notContainsErrors":return{type:"containsText",operator:m};default:return{type:m,operator:p}}};class h extends o{constructor(){super(),this.map={dataBar:this.databarXform=new n,extLst:this.extLstRefXform=new e,formula:this.formulaXform=new r,colorScale:this.colorScaleXform=new l,iconSet:this.iconSetXform=new s}}get tag(){return"cfRule"}static isPrimitive(m){return m.type!=="iconSet"||!m.custom&&!i[m.iconSet]}render(m,p){switch(p.type){case"expression":this.renderExpression(m,p);break;case"cellIs":this.renderCellIs(m,p);break;case"top10":this.renderTop10(m,p);break;case"aboveAverage":this.renderAboveAverage(m,p);break;case"dataBar":this.renderDataBar(m,p);break;case"colorScale":this.renderColorScale(m,p);break;case"iconSet":this.renderIconSet(m,p);break;case"containsText":this.renderText(m,p);break;case"timePeriod":this.renderTimePeriod(m,p)}}renderExpression(m,p){m.openNode(this.tag,{type:"expression",dxfId:p.dxfId,priority:p.priority}),this.formulaXform.render(m,p.formulae[0]),m.closeNode()}renderCellIs(m,p){m.openNode(this.tag,{type:"cellIs",dxfId:p.dxfId,priority:p.priority,operator:p.operator}),p.formulae.forEach(x=>{this.formulaXform.render(m,x)}),m.closeNode()}renderTop10(m,p){m.leafNode(this.tag,{type:"top10",dxfId:p.dxfId,priority:p.priority,percent:f.toBoolAttribute(p.percent,!1),bottom:f.toBoolAttribute(p.bottom,!1),rank:f.toIntValue(p.rank,10,!0)})}renderAboveAverage(m,p){m.leafNode(this.tag,{type:"aboveAverage",dxfId:p.dxfId,priority:p.priority,aboveAverage:f.toBoolAttribute(p.aboveAverage,!0)})}renderDataBar(m,p){m.openNode(this.tag,{type:"dataBar",priority:p.priority}),this.databarXform.render(m,p),this.extLstRefXform.render(m,p),m.closeNode()}renderColorScale(m,p){m.openNode(this.tag,{type:"colorScale",priority:p.priority}),this.colorScaleXform.render(m,p),m.closeNode()}renderIconSet(m,p){h.isPrimitive(p)&&(m.openNode(this.tag,{type:"iconSet",priority:p.priority}),this.iconSetXform.render(m,p),m.closeNode())}renderText(m,p){m.openNode(this.tag,{type:p.operator,dxfId:p.dxfId,priority:p.priority,operator:f.toStringAttribute(p.operator,"containsText")});const x=(k=>{if(k.formulae&&k.formulae[0])return k.formulae[0];const A=new a(k.ref),{tl:N}=A;switch(k.operator){case"containsText":return`NOT(ISERROR(SEARCH("${k.text}",${N})))`;case"containsBlanks":return`LEN(TRIM(${N}))=0`;case"notContainsBlanks":return`LEN(TRIM(${N}))>0`;case"containsErrors":return`ISERROR(${N})`;case"notContainsErrors":return`NOT(ISERROR(${N}))`;default:return}})(p);x&&this.formulaXform.render(m,x),m.closeNode()}renderTimePeriod(m,p){m.openNode(this.tag,{type:"timePeriod",dxfId:p.dxfId,priority:p.priority,timePeriod:p.timePeriod});const x=(k=>{if(k.formulae&&k.formulae[0])return k.formulae[0];const A=new a(k.ref),{tl:N}=A;switch(k.timePeriod){case"thisWeek":return`AND(TODAY()-ROUNDDOWN(${N},0)<=WEEKDAY(TODAY())-1,ROUNDDOWN(${N},0)-TODAY()<=7-WEEKDAY(TODAY()))`;case"lastWeek":return`AND(TODAY()-ROUNDDOWN(${N},0)>=(WEEKDAY(TODAY())),TODAY()-ROUNDDOWN(${N},0)<(WEEKDAY(TODAY())+7))`;case"nextWeek":return`AND(ROUNDDOWN(${N},0)-TODAY()>(7-WEEKDAY(TODAY())),ROUNDDOWN(${N},0)-TODAY()<(15-WEEKDAY(TODAY())))`;case"yesterday":return`FLOOR(${N},1)=TODAY()-1`;case"today":return`FLOOR(${N},1)=TODAY()`;case"tomorrow":return`FLOOR(${N},1)=TODAY()+1`;case"last7Days":return`AND(TODAY()-FLOOR(${N},1)<=6,FLOOR(${N},1)<=TODAY())`;case"lastMonth":return`AND(MONTH(${N})=MONTH(EDATE(TODAY(),0-1)),YEAR(${N})=YEAR(EDATE(TODAY(),0-1)))`;case"thisMonth":return`AND(MONTH(${N})=MONTH(TODAY()),YEAR(${N})=YEAR(TODAY()))`;case"nextMonth":return`AND(MONTH(${N})=MONTH(EDATE(TODAY(),0+1)),YEAR(${N})=YEAR(EDATE(TODAY(),0+1)))`;default:return}})(p);x&&this.formulaXform.render(m,x),m.closeNode()}createNewModel(m){let{attributes:p}=m;return{...d(p),dxfId:f.toIntValue(p.dxfId),priority:f.toIntValue(p.priority),timePeriod:p.timePeriod,percent:f.toBoolValue(p.percent),bottom:f.toBoolValue(p.bottom),rank:f.toIntValue(p.rank),aboveAverage:f.toBoolValue(p.aboveAverage)}}onParserClose(m,p){switch(m){case"dataBar":case"extLst":case"colorScale":case"iconSet":Object.assign(this.model,p.model);break;case"formula":this.model.formulae=this.model.formulae||[],this.model.formulae.push(p.model)}}}v.exports=h},{"../../../../doc/range":10,"../../base-xform":32,"../../composite-xform":48,"./color-scale-xform":85,"./databar-xform":88,"./ext-lst-ref-xform":89,"./formula-xform":90,"./icon-set-xform":91}],84:[function(t,v,b){const f=t("../../base-xform");v.exports=class extends f{get tag(){return"cfvo"}render(o,a){o.leafNode(this.tag,{type:a.type,val:a.value})}parseOpen(o){this.model={type:o.attributes.type,value:f.toFloatValue(o.attributes.val)}}parseClose(o){return o!==this.tag}}},{"../../base-xform":32}],85:[function(t,v,b){const f=t("../../composite-xform"),o=t("../../style/color-xform"),a=t("./cfvo-xform");v.exports=class extends f{constructor(){super(),this.map={cfvo:this.cfvoXform=new a,color:this.colorXform=new o}}get tag(){return"colorScale"}render(n,e){n.openNode(this.tag),e.cfvo.forEach(r=>{this.cfvoXform.render(n,r)}),e.color.forEach(r=>{this.colorXform.render(n,r)}),n.closeNode()}createNewModel(n){return{cfvo:[],color:[]}}onParserClose(n,e){this.model[n].push(e.model)}}},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],86:[function(t,v,b){const f=t("../../composite-xform"),o=t("./cf-rule-xform");v.exports=class extends f{constructor(){super(),this.map={cfRule:new o}}get tag(){return"conditionalFormatting"}render(a,n){n.rules.some(o.isPrimitive)&&(a.openNode(this.tag,{sqref:n.ref}),n.rules.forEach(e=>{o.isPrimitive(e)&&(e.ref=n.ref,this.map.cfRule.render(a,e))}),a.closeNode())}createNewModel(a){let{attributes:n}=a;return{ref:n.sqref,rules:[]}}onParserClose(a,n){this.model.rules.push(n.model)}}},{"../../composite-xform":48,"./cf-rule-xform":83}],87:[function(t,v,b){const f=t("../../base-xform"),o=t("./conditional-formatting-xform");v.exports=class extends f{constructor(){super(),this.cfXform=new o}get tag(){return"conditionalFormatting"}reset(){this.model=[]}prepare(a,n){let e=a.reduce((r,l)=>Math.max(r,...l.rules.map(s=>s.priority||0)),1);a.forEach(r=>{r.rules.forEach(l=>{l.priority||(l.priority=e++),l.style&&(l.dxfId=n.styles.addDxfStyle(l.style))})})}render(a,n){n.forEach(e=>{this.cfXform.render(a,e)})}parseOpen(a){if(this.parser)return this.parser.parseOpen(a),!0;switch(a.name){case"conditionalFormatting":return this.parser=this.cfXform,this.parser.parseOpen(a),!0;default:return!1}}parseText(a){this.parser&&this.parser.parseText(a)}parseClose(a){return!!this.parser&&(!!this.parser.parseClose(a)||(this.model.push(this.parser.model),this.parser=void 0,!1))}reconcile(a,n){a.forEach(e=>{e.rules.forEach(r=>{r.dxfId!==void 0&&(r.style=n.styles.getDxfStyle(r.dxfId),delete r.dxfId)})})}}},{"../../base-xform":32,"./conditional-formatting-xform":86}],88:[function(t,v,b){const f=t("../../composite-xform"),o=t("../../style/color-xform"),a=t("./cfvo-xform");v.exports=class extends f{constructor(){super(),this.map={cfvo:this.cfvoXform=new a,color:this.colorXform=new o}}get tag(){return"dataBar"}render(n,e){n.openNode(this.tag),e.cfvo.forEach(r=>{this.cfvoXform.render(n,r)}),this.colorXform.render(n,e.color),n.closeNode()}createNewModel(){return{cfvo:[]}}onParserClose(n,e){switch(n){case"cfvo":this.model.cfvo.push(e.model);break;case"color":this.model.color=e.model}}}},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],89:[function(t,v,b){const f=t("../../base-xform"),o=t("../../composite-xform");class a extends f{get tag(){return"x14:id"}render(r,l){r.leafNode(this.tag,null,l)}parseOpen(){this.model=""}parseText(r){this.model+=r}parseClose(r){return r!==this.tag}}class n extends o{constructor(){super(),this.map={"x14:id":this.idXform=new a}}get tag(){return"ext"}render(r,l){r.openNode(this.tag,{uri:"{B025F937-C7B1-47D3-B67F-A62EFF666E3E}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.idXform.render(r,l.x14Id),r.closeNode()}createNewModel(){return{}}onParserClose(r,l){this.model.x14Id=l.model}}v.exports=class extends o{constructor(){super(),this.map={ext:new n}}get tag(){return"extLst"}render(e,r){e.openNode(this.tag),this.map.ext.render(e,r),e.closeNode()}createNewModel(){return{}}onParserClose(e,r){Object.assign(this.model,r.model)}}},{"../../base-xform":32,"../../composite-xform":48}],90:[function(t,v,b){const f=t("../../base-xform");v.exports=class extends f{get tag(){return"formula"}render(o,a){o.leafNode(this.tag,null,a)}parseOpen(){this.model=""}parseText(o){this.model+=o}parseClose(o){return o!==this.tag}}},{"../../base-xform":32}],91:[function(t,v,b){const f=t("../../base-xform"),o=t("../../composite-xform"),a=t("./cfvo-xform");v.exports=class extends o{constructor(){super(),this.map={cfvo:this.cfvoXform=new a}}get tag(){return"iconSet"}render(n,e){n.openNode(this.tag,{iconSet:f.toStringAttribute(e.iconSet,"3TrafficLights"),reverse:f.toBoolAttribute(e.reverse,!1),showValue:f.toBoolAttribute(e.showValue,!0)}),e.cfvo.forEach(r=>{this.cfvoXform.render(n,r)}),n.closeNode()}createNewModel(n){let{attributes:e}=n;return{iconSet:f.toStringValue(e.iconSet,"3TrafficLights"),reverse:f.toBoolValue(e.reverse),showValue:f.toBoolValue(e.showValue),cfvo:[]}}onParserClose(n,e){this.model[n].push(e.model)}}},{"../../base-xform":32,"../../composite-xform":48,"./cfvo-xform":84}],92:[function(t,v,b){const f=t("../../../utils/utils"),o=t("../base-xform");v.exports=class extends o{get tag(){return"col"}prepare(a,n){const e=n.styles.addStyleModel(a.style||{});e&&(a.styleId=e)}render(a,n){a.openNode("col"),a.addAttribute("min",n.min),a.addAttribute("max",n.max),n.width&&a.addAttribute("width",n.width),n.styleId&&a.addAttribute("style",n.styleId),n.hidden&&a.addAttribute("hidden","1"),n.bestFit&&a.addAttribute("bestFit","1"),n.outlineLevel&&a.addAttribute("outlineLevel",n.outlineLevel),n.collapsed&&a.addAttribute("collapsed","1"),a.addAttribute("customWidth","1"),a.closeNode()}parseOpen(a){if(a.name==="col"){const n=this.model={min:parseInt(a.attributes.min||"0",10),max:parseInt(a.attributes.max||"0",10),width:a.attributes.width===void 0?void 0:parseFloat(a.attributes.width||"0")};return a.attributes.style&&(n.styleId=parseInt(a.attributes.style,10)),f.parseBoolean(a.attributes.hidden)&&(n.hidden=!0),f.parseBoolean(a.attributes.bestFit)&&(n.bestFit=!0),a.attributes.outlineLevel&&(n.outlineLevel=parseInt(a.attributes.outlineLevel,10)),f.parseBoolean(a.attributes.collapsed)&&(n.collapsed=!0),!0}return!1}parseText(){}parseClose(){return!1}reconcile(a,n){a.styleId&&(a.style=n.styles.getStyleModel(a.styleId))}}},{"../../../utils/utils":27,"../base-xform":32}],93:[function(t,v,b){const f=t("../../../utils/under-dash"),o=t("../../../utils/utils"),a=t("../../../utils/col-cache"),n=t("../base-xform"),e=t("../../../doc/range");function r(s,i,d,h){const c=i[d];c!==void 0?s[d]=c:h!==void 0&&(s[d]=h)}function l(s,i,d,h){const c=i[d];c!==void 0&&(s[d]=o.parseBoolean(c))}v.exports=class extends n{get tag(){return"dataValidations"}render(s,i){const d=function(h){const c=f.map(h,(x,k)=>({address:k,dataValidation:x,marked:!1})).sort((x,k)=>f.strcmp(x.address,k.address)),m=f.keyBy(c,"address"),p=(x,k,A)=>{for(let N=0;N<k;N++){const q=a.encodeAddress(x.row+N,A);if(!h[q]||!f.isEqual(h[x.address],h[q]))return!1}return!0};return c.map(x=>{if(!x.marked){const k=a.decodeEx(x.address);if(k.dimensions)return m[k.dimensions].marked=!0,{...x.dataValidation,sqref:x.address};let A=1,N=a.encodeAddress(k.row+A,k.col);for(;h[N]&&f.isEqual(x.dataValidation,h[N]);)A++,N=a.encodeAddress(k.row+A,k.col);let q=1;for(;p(k,A,k.col+q);)q++;for(let D=0;D<A;D++)for(let F=0;F<q;F++)N=a.encodeAddress(k.row+D,k.col+F),m[N].marked=!0;if(A>1||q>1){const D=k.row+(A-1),F=k.col+(q-1);return{...x.dataValidation,sqref:`${x.address}:${a.encodeAddress(D,F)}`}}return{...x.dataValidation,sqref:x.address}}return null}).filter(Boolean)}(i);d.length&&(s.openNode("dataValidations",{count:d.length}),d.forEach(h=>{s.openNode("dataValidation"),h.type!=="any"&&(s.addAttribute("type",h.type),h.operator&&h.type!=="list"&&h.operator!=="between"&&s.addAttribute("operator",h.operator),h.allowBlank&&s.addAttribute("allowBlank","1")),h.showInputMessage&&s.addAttribute("showInputMessage","1"),h.promptTitle&&s.addAttribute("promptTitle",h.promptTitle),h.prompt&&s.addAttribute("prompt",h.prompt),h.showErrorMessage&&s.addAttribute("showErrorMessage","1"),h.errorStyle&&s.addAttribute("errorStyle",h.errorStyle),h.errorTitle&&s.addAttribute("errorTitle",h.errorTitle),h.error&&s.addAttribute("error",h.error),s.addAttribute("sqref",h.sqref),(h.formulae||[]).forEach((c,m)=>{s.openNode("formula"+(m+1)),h.type==="date"?s.writeText(o.dateToExcel(new Date(c))):s.writeText(c),s.closeNode()}),s.closeNode()}),s.closeNode())}parseOpen(s){switch(s.name){case"dataValidations":return this.model={},!0;case"dataValidation":{this._address=s.attributes.sqref;const i={type:s.attributes.type||"any",formulae:[]};switch(s.attributes.type&&l(i,s.attributes,"allowBlank"),l(i,s.attributes,"showInputMessage"),l(i,s.attributes,"showErrorMessage"),i.type){case"any":case"list":case"custom":break;default:r(i,s.attributes,"operator","between")}return r(i,s.attributes,"promptTitle"),r(i,s.attributes,"prompt"),r(i,s.attributes,"errorStyle"),r(i,s.attributes,"errorTitle"),r(i,s.attributes,"error"),this._dataValidation=i,!0}case"formula1":case"formula2":return this._formula=[],!0;default:return!1}}parseText(s){this._formula&&this._formula.push(s)}parseClose(s){switch(s){case"dataValidations":return!1;case"dataValidation":return this._dataValidation.formulae&&this._dataValidation.formulae.length||(delete this._dataValidation.formulae,delete this._dataValidation.operator),(this._address.split(/\s+/g)||[]).forEach(i=>{i.includes(":")?new e(i).forEachAddress(d=>{this.model[d]=this._dataValidation}):this.model[i]=this._dataValidation}),!0;case"formula1":case"formula2":{let i=this._formula.join("");switch(this._dataValidation.type){case"whole":case"textLength":i=parseInt(i,10);break;case"decimal":i=parseFloat(i);break;case"date":i=o.excelToDate(parseFloat(i))}return this._dataValidation.formulae.push(i),this._formula=void 0,!0}default:return!0}}}},{"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/utils":27,"../base-xform":32}],94:[function(t,v,b){const f=t("../base-xform");v.exports=class extends f{get tag(){return"dimension"}render(o,a){a&&o.leafNode("dimension",{ref:a})}parseOpen(o){return o.name==="dimension"&&(this.model=o.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],95:[function(t,v,b){const f=t("../base-xform");v.exports=class extends f{get tag(){return"drawing"}render(o,a){a&&o.leafNode(this.tag,{"r:id":a.rId})}parseOpen(o){switch(o.name){case this.tag:return this.model={rId:o.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],96:[function(t,v,b){const f=t("../composite-xform"),o=t("./cf-ext/conditional-formattings-ext-xform");class a extends f{constructor(){super(),this.map={"x14:conditionalFormattings":this.conditionalFormattings=new o}}get tag(){return"ext"}hasContent(e){return this.conditionalFormattings.hasContent(e.conditionalFormattings)}prepare(e,r){this.conditionalFormattings.prepare(e.conditionalFormattings,r)}render(e,r){e.openNode("ext",{uri:"{78C0D931-6437-407d-A8EE-F0AAD7539E65}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.conditionalFormattings.render(e,r.conditionalFormattings),e.closeNode()}createNewModel(){return{}}onParserClose(e,r){this.model[e]=r.model}}v.exports=class extends f{constructor(){super(),this.map={ext:this.ext=new a}}get tag(){return"extLst"}prepare(n,e){this.ext.prepare(n,e)}hasContent(n){return this.ext.hasContent(n)}render(n,e){this.hasContent(e)&&(n.openNode("extLst"),this.ext.render(n,e),n.closeNode())}createNewModel(){return{}}onParserClose(n,e){Object.assign(this.model,e.model)}}},{"../composite-xform":48,"./cf-ext/conditional-formattings-ext-xform":78}],97:[function(t,v,b){const f=t("../base-xform");v.exports=class extends f{get tag(){return"headerFooter"}render(o,a){if(a){o.addRollback();let n=!1;o.openNode("headerFooter"),a.differentFirst&&(o.addAttribute("differentFirst","1"),n=!0),a.differentOddEven&&(o.addAttribute("differentOddEven","1"),n=!0),a.oddHeader&&typeof a.oddHeader=="string"&&(o.leafNode("oddHeader",null,a.oddHeader),n=!0),a.oddFooter&&typeof a.oddFooter=="string"&&(o.leafNode("oddFooter",null,a.oddFooter),n=!0),a.evenHeader&&typeof a.evenHeader=="string"&&(o.leafNode("evenHeader",null,a.evenHeader),n=!0),a.evenFooter&&typeof a.evenFooter=="string"&&(o.leafNode("evenFooter",null,a.evenFooter),n=!0),a.firstHeader&&typeof a.firstHeader=="string"&&(o.leafNode("firstHeader",null,a.firstHeader),n=!0),a.firstFooter&&typeof a.firstFooter=="string"&&(o.leafNode("firstFooter",null,a.firstFooter),n=!0),n?(o.closeNode(),o.commit()):o.rollback()}}parseOpen(o){switch(o.name){case"headerFooter":return this.model={},o.attributes.differentFirst&&(this.model.differentFirst=parseInt(o.attributes.differentFirst,0)===1),o.attributes.differentOddEven&&(this.model.differentOddEven=parseInt(o.attributes.differentOddEven,0)===1),!0;case"oddHeader":return this.currentNode="oddHeader",!0;case"oddFooter":return this.currentNode="oddFooter",!0;case"evenHeader":return this.currentNode="evenHeader",!0;case"evenFooter":return this.currentNode="evenFooter",!0;case"firstHeader":return this.currentNode="firstHeader",!0;case"firstFooter":return this.currentNode="firstFooter",!0;default:return!1}}parseText(o){switch(this.currentNode){case"oddHeader":this.model.oddHeader=o;break;case"oddFooter":this.model.oddFooter=o;break;case"evenHeader":this.model.evenHeader=o;break;case"evenFooter":this.model.evenFooter=o;break;case"firstHeader":this.model.firstHeader=o;break;case"firstFooter":this.model.firstFooter=o}}parseClose(){switch(this.currentNode){case"oddHeader":case"oddFooter":case"evenHeader":case"evenFooter":case"firstHeader":case"firstFooter":return this.currentNode=void 0,!0;default:return!1}}}},{"../base-xform":32}],98:[function(t,v,b){const f=t("../base-xform");v.exports=class extends f{get tag(){return"hyperlink"}render(o,a){this.isInternalLink(a)?o.leafNode("hyperlink",{ref:a.address,"r:id":a.rId,tooltip:a.tooltip,location:a.target}):o.leafNode("hyperlink",{ref:a.address,"r:id":a.rId,tooltip:a.tooltip})}parseOpen(o){return o.name==="hyperlink"&&(this.model={address:o.attributes.ref,rId:o.attributes["r:id"],tooltip:o.attributes.tooltip},o.attributes.location&&(this.model.target=o.attributes.location),!0)}parseText(){}parseClose(){return!1}isInternalLink(o){return o.target&&/^[^!]+![a-zA-Z]+[\d]+$/.test(o.target)}}},{"../base-xform":32}],99:[function(t,v,b){const f=t("../base-xform");v.exports=class extends f{get tag(){return"mergeCell"}render(o,a){o.leafNode("mergeCell",{ref:a})}parseOpen(o){return o.name==="mergeCell"&&(this.model=o.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],100:[function(t,v,b){const f=t("../../../utils/under-dash"),o=t("../../../doc/range"),a=t("../../../utils/col-cache"),n=t("../../../doc/enums");v.exports=class{constructor(){this.merges={}}add(e){if(this.merges[e.master])this.merges[e.master].expandToAddress(e.address);else{const r=`${e.master}:${e.address}`;this.merges[e.master]=new o(r)}}get mergeCells(){return f.map(this.merges,e=>e.range)}reconcile(e,r){f.each(e,l=>{const s=a.decode(l);for(let i=s.top;i<=s.bottom;i++){const d=r[i-1];for(let h=s.left;h<=s.right;h++){const c=d.cells[h-1];c?c.type===n.ValueType.Merge&&(c.master=s.tl):d.cells[h]={type:n.ValueType.Null,address:a.encodeAddress(i,h)}}}})}getMasterAddress(e){const r=this.hash[e];return r&&r.tl}}},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26}],101:[function(t,v,b){const f=t("../base-xform"),o=a=>a!==void 0;v.exports=class extends f{get tag(){return"outlinePr"}render(a,n){return!(!n||!o(n.summaryBelow)&&!o(n.summaryRight))&&(a.leafNode(this.tag,{summaryBelow:o(n.summaryBelow)?Number(n.summaryBelow):void 0,summaryRight:o(n.summaryRight)?Number(n.summaryRight):void 0}),!0)}parseOpen(a){return a.name===this.tag&&(this.model={summaryBelow:o(a.attributes.summaryBelow)?!!Number(a.attributes.summaryBelow):void 0,summaryRight:o(a.attributes.summaryRight)?!!Number(a.attributes.summaryRight):void 0},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],102:[function(t,v,b){const f=t("../base-xform");v.exports=class extends f{get tag(){return"brk"}render(o,a){o.leafNode("brk",a)}parseOpen(o){return o.name==="brk"&&(this.model=o.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],103:[function(t,v,b){const f=t("../../../utils/under-dash"),o=t("../base-xform");v.exports=class extends o{get tag(){return"pageMargins"}render(a,n){if(n){const e={left:n.left,right:n.right,top:n.top,bottom:n.bottom,header:n.header,footer:n.footer};f.some(e,r=>r!==void 0)&&a.leafNode(this.tag,e)}}parseOpen(a){switch(a.name){case this.tag:return this.model={left:parseFloat(a.attributes.left||.7),right:parseFloat(a.attributes.right||.7),top:parseFloat(a.attributes.top||.75),bottom:parseFloat(a.attributes.bottom||.75),header:parseFloat(a.attributes.header||.3),footer:parseFloat(a.attributes.footer||.3)},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],104:[function(t,v,b){const f=t("../base-xform");v.exports=class extends f{get tag(){return"pageSetUpPr"}render(o,a){return!(!a||!a.fitToPage)&&(o.leafNode(this.tag,{fitToPage:a.fitToPage?"1":void 0}),!0)}parseOpen(o){return o.name===this.tag&&(this.model={fitToPage:o.attributes.fitToPage==="1"},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],105:[function(t,v,b){const f=t("../../../utils/under-dash"),o=t("../base-xform");function a(l){return l?"1":void 0}function n(l){switch(l){case"overThenDown":return l;default:return}}function e(l){switch(l){case"atEnd":case"asDisplyed":return l;default:return}}function r(l){switch(l){case"dash":case"blank":case"NA":return l;default:return}}v.exports=class extends o{get tag(){return"pageSetup"}render(l,s){if(s){const i={paperSize:s.paperSize,orientation:s.orientation,horizontalDpi:s.horizontalDpi,verticalDpi:s.verticalDpi,pageOrder:n(s.pageOrder),blackAndWhite:a(s.blackAndWhite),draft:a(s.draft),cellComments:e(s.cellComments),errors:r(s.errors),scale:s.scale,fitToWidth:s.fitToWidth,fitToHeight:s.fitToHeight,firstPageNumber:s.firstPageNumber,useFirstPageNumber:a(s.firstPageNumber),usePrinterDefaults:a(s.usePrinterDefaults),copies:s.copies};f.some(i,d=>d!==void 0)&&l.leafNode(this.tag,i)}}parseOpen(l){switch(l.name){case this.tag:return this.model={paperSize:(s=l.attributes.paperSize,s!==void 0?parseInt(s,10):void 0),orientation:l.attributes.orientation||"portrait",horizontalDpi:parseInt(l.attributes.horizontalDpi||"4294967295",10),verticalDpi:parseInt(l.attributes.verticalDpi||"4294967295",10),pageOrder:l.attributes.pageOrder||"downThenOver",blackAndWhite:l.attributes.blackAndWhite==="1",draft:l.attributes.draft==="1",cellComments:l.attributes.cellComments||"None",errors:l.attributes.errors||"displayed",scale:parseInt(l.attributes.scale||"100",10),fitToWidth:parseInt(l.attributes.fitToWidth||"1",10),fitToHeight:parseInt(l.attributes.fitToHeight||"1",10),firstPageNumber:parseInt(l.attributes.firstPageNumber||"1",10),useFirstPageNumber:l.attributes.useFirstPageNumber==="1",usePrinterDefaults:l.attributes.usePrinterDefaults==="1",copies:parseInt(l.attributes.copies||"1",10)},!0;default:return!1}var s}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],106:[function(t,v,b){const f=t("../base-xform");v.exports=class extends f{get tag(){return"picture"}render(o,a){a&&o.leafNode(this.tag,{"r:id":a.rId})}parseOpen(o){switch(o.name){case this.tag:return this.model={rId:o.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],107:[function(t,v,b){const f=t("../../../utils/under-dash"),o=t("../base-xform");function a(n){return n?"1":void 0}v.exports=class extends o{get tag(){return"printOptions"}render(n,e){if(e){const r={headings:a(e.showRowColHeaders),gridLines:a(e.showGridLines),horizontalCentered:a(e.horizontalCentered),verticalCentered:a(e.verticalCentered)};f.some(r,l=>l!==void 0)&&n.leafNode(this.tag,r)}}parseOpen(n){switch(n.name){case this.tag:return this.model={showRowColHeaders:n.attributes.headings==="1",showGridLines:n.attributes.gridLines==="1",horizontalCentered:n.attributes.horizontalCentered==="1",verticalCentered:n.attributes.verticalCentered==="1"},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],108:[function(t,v,b){const f=t("./page-breaks-xform"),o=t("../list-xform");v.exports=class extends o{constructor(){super({tag:"rowBreaks",count:!0,childXform:new f})}render(a,n){if(n&&n.length){a.openNode(this.tag,this.$),this.count&&(a.addAttribute(this.$count,n.length),a.addAttribute("manualBreakCount",n.length));const{childXform:e}=this;n.forEach(r=>{e.render(a,r)}),a.closeNode()}else this.empty&&a.leafNode(this.tag)}}},{"../list-xform":71,"./page-breaks-xform":102}],109:[function(t,v,b){const f=t("../base-xform"),o=t("../../../utils/utils"),a=t("./cell-xform");v.exports=class extends f{constructor(n){super(),this.maxItems=n&&n.maxItems,this.map={c:new a}}get tag(){return"row"}prepare(n,e){const r=e.styles.addStyleModel(n.style);r&&(n.styleId=r);const l=this.map.c;n.cells.forEach(s=>{l.prepare(s,e)})}render(n,e,r){n.openNode("row"),n.addAttribute("r",e.number),e.height&&(n.addAttribute("ht",e.height),n.addAttribute("customHeight","1")),e.hidden&&n.addAttribute("hidden","1"),e.min>0&&e.max>0&&e.min<=e.max&&n.addAttribute("spans",`${e.min}:${e.max}`),e.styleId&&(n.addAttribute("s",e.styleId),n.addAttribute("customFormat","1")),n.addAttribute("x14ac:dyDescent","0.25"),e.outlineLevel&&n.addAttribute("outlineLevel",e.outlineLevel),e.collapsed&&n.addAttribute("collapsed","1");const l=this.map.c;e.cells.forEach(s=>{l.render(n,s,r)}),n.closeNode()}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;if(n.name==="row"){this.numRowsSeen+=1;const e=n.attributes.spans?n.attributes.spans.split(":").map(l=>parseInt(l,10)):[void 0,void 0],r=this.model={number:parseInt(n.attributes.r,10),min:e[0],max:e[1],cells:[]};return n.attributes.s&&(r.styleId=parseInt(n.attributes.s,10)),o.parseBoolean(n.attributes.hidden)&&(r.hidden=!0),o.parseBoolean(n.attributes.bestFit)&&(r.bestFit=!0),n.attributes.ht&&(r.height=parseFloat(n.attributes.ht)),n.attributes.outlineLevel&&(r.outlineLevel=parseInt(n.attributes.outlineLevel,10)),o.parseBoolean(n.attributes.collapsed)&&(r.collapsed=!0),!0}return this.parser=this.map[n.name],!!this.parser&&(this.parser.parseOpen(n),!0)}parseText(n){this.parser&&this.parser.parseText(n)}parseClose(n){if(this.parser){if(!this.parser.parseClose(n)){if(this.model.cells.push(this.parser.model),this.maxItems&&this.model.cells.length>this.maxItems)throw new Error(`Max column count (${this.maxItems}) exceeded`);this.parser=void 0}return!0}return!1}reconcile(n,e){n.style=n.styleId?e.styles.getStyleModel(n.styleId):{},n.styleId!==void 0&&(n.styleId=void 0);const r=this.map.c;n.cells.forEach(l=>{r.reconcile(l,e)})}}},{"../../../utils/utils":27,"../base-xform":32,"./cell-xform":73}],110:[function(t,v,b){const f=t("../../../utils/under-dash"),o=t("../base-xform");v.exports=class extends o{get tag(){return"sheetFormatPr"}render(a,n){if(n){const e={defaultRowHeight:n.defaultRowHeight,outlineLevelRow:n.outlineLevelRow,outlineLevelCol:n.outlineLevelCol,"x14ac:dyDescent":n.dyDescent};n.defaultColWidth&&(e.defaultColWidth=n.defaultColWidth),n.defaultRowHeight&&n.defaultRowHeight===15||(e.customHeight="1"),f.some(e,r=>r!==void 0)&&a.leafNode("sheetFormatPr",e)}}parseOpen(a){return a.name==="sheetFormatPr"&&(this.model={defaultRowHeight:parseFloat(a.attributes.defaultRowHeight||"0"),dyDescent:parseFloat(a.attributes["x14ac:dyDescent"]||"0"),outlineLevelRow:parseInt(a.attributes.outlineLevelRow||"0",10),outlineLevelCol:parseInt(a.attributes.outlineLevelCol||"0",10)},a.attributes.defaultColWidth&&(this.model.defaultColWidth=parseFloat(a.attributes.defaultColWidth)),!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],111:[function(t,v,b){const f=t("../base-xform"),o=t("../style/color-xform"),a=t("./page-setup-properties-xform"),n=t("./outline-properties-xform");v.exports=class extends f{constructor(){super(),this.map={tabColor:new o("tabColor"),pageSetUpPr:new a,outlinePr:new n}}get tag(){return"sheetPr"}render(e,r){if(r){e.addRollback(),e.openNode("sheetPr");let l=!1;l=this.map.tabColor.render(e,r.tabColor)||l,l=this.map.pageSetUpPr.render(e,r.pageSetup)||l,l=this.map.outlinePr.render(e,r.outlineProperties)||l,l?(e.closeNode(),e.commit()):e.rollback()}}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):e.name===this.tag?(this.reset(),!0):!!this.map[e.name]&&(this.parser=this.map[e.name],this.parser.parseOpen(e),!0)}parseText(e){return!!this.parser&&(this.parser.parseText(e),!0)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):(this.map.tabColor.model||this.map.pageSetUpPr.model||this.map.outlinePr.model?(this.model={},this.map.tabColor.model&&(this.model.tabColor=this.map.tabColor.model),this.map.pageSetUpPr.model&&(this.model.pageSetup=this.map.pageSetUpPr.model),this.map.outlinePr.model&&(this.model.outlineProperties=this.map.outlinePr.model)):this.model=null,!1)}}},{"../base-xform":32,"../style/color-xform":128,"./outline-properties-xform":101,"./page-setup-properties-xform":104}],112:[function(t,v,b){const f=t("../../../utils/under-dash"),o=t("../base-xform");function a(e,r){return e?r:void 0}function n(e,r){return e===r||void 0}v.exports=class extends o{get tag(){return"sheetProtection"}render(e,r){if(r){const l={sheet:a(r.sheet,"1"),selectLockedCells:r.selectLockedCells===!1?"1":void 0,selectUnlockedCells:r.selectUnlockedCells===!1?"1":void 0,formatCells:a(r.formatCells,"0"),formatColumns:a(r.formatColumns,"0"),formatRows:a(r.formatRows,"0"),insertColumns:a(r.insertColumns,"0"),insertRows:a(r.insertRows,"0"),insertHyperlinks:a(r.insertHyperlinks,"0"),deleteColumns:a(r.deleteColumns,"0"),deleteRows:a(r.deleteRows,"0"),sort:a(r.sort,"0"),autoFilter:a(r.autoFilter,"0"),pivotTables:a(r.pivotTables,"0")};r.sheet&&(l.algorithmName=r.algorithmName,l.hashValue=r.hashValue,l.saltValue=r.saltValue,l.spinCount=r.spinCount,l.objects=a(r.objects===!1,"1"),l.scenarios=a(r.scenarios===!1,"1")),f.some(l,s=>s!==void 0)&&e.leafNode(this.tag,l)}}parseOpen(e){switch(e.name){case this.tag:return this.model={sheet:n(e.attributes.sheet,"1"),objects:e.attributes.objects!=="1"&&void 0,scenarios:e.attributes.scenarios!=="1"&&void 0,selectLockedCells:e.attributes.selectLockedCells!=="1"&&void 0,selectUnlockedCells:e.attributes.selectUnlockedCells!=="1"&&void 0,formatCells:n(e.attributes.formatCells,"0"),formatColumns:n(e.attributes.formatColumns,"0"),formatRows:n(e.attributes.formatRows,"0"),insertColumns:n(e.attributes.insertColumns,"0"),insertRows:n(e.attributes.insertRows,"0"),insertHyperlinks:n(e.attributes.insertHyperlinks,"0"),deleteColumns:n(e.attributes.deleteColumns,"0"),deleteRows:n(e.attributes.deleteRows,"0"),sort:n(e.attributes.sort,"0"),autoFilter:n(e.attributes.autoFilter,"0"),pivotTables:n(e.attributes.pivotTables,"0")},e.attributes.algorithmName&&(this.model.algorithmName=e.attributes.algorithmName,this.model.hashValue=e.attributes.hashValue,this.model.saltValue=e.attributes.saltValue,this.model.spinCount=parseInt(e.attributes.spinCount,10)),!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],113:[function(t,v,b){const f=t("../../../utils/col-cache"),o=t("../base-xform"),a={frozen:"frozen",frozenSplit:"frozen",split:"split"};v.exports=class extends o{get tag(){return"sheetView"}prepare(n){switch(n.state){case"frozen":case"split":break;default:n.state="normal"}}render(n,e){n.openNode("sheetView",{workbookViewId:e.workbookViewId||0});const r=function(h,c,m){m&&n.addAttribute(h,c)};let l,s,i,d;switch(r("rightToLeft","1",e.rightToLeft===!0),r("tabSelected","1",e.tabSelected),r("showRuler","0",e.showRuler===!1),r("showRowColHeaders","0",e.showRowColHeaders===!1),r("showGridLines","0",e.showGridLines===!1),r("zoomScale",e.zoomScale,e.zoomScale),r("zoomScaleNormal",e.zoomScaleNormal,e.zoomScaleNormal),r("view",e.style,e.style),e.state){case"frozen":s=e.xSplit||0,i=e.ySplit||0,l=e.topLeftCell||f.getAddress(i+1,s+1).address,d=(e.xSplit&&e.ySplit?"bottomRight":e.xSplit&&"topRight")||"bottomLeft",n.leafNode("pane",{xSplit:e.xSplit||void 0,ySplit:e.ySplit||void 0,topLeftCell:l,activePane:d,state:"frozen"}),n.leafNode("selection",{pane:d,activeCell:e.activeCell,sqref:e.activeCell});break;case"split":e.activePane==="topLeft"&&(e.activePane=void 0),n.leafNode("pane",{xSplit:e.xSplit||void 0,ySplit:e.ySplit||void 0,topLeftCell:e.topLeftCell,activePane:e.activePane}),n.leafNode("selection",{pane:e.activePane,activeCell:e.activeCell,sqref:e.activeCell});break;case"normal":e.activeCell&&n.leafNode("selection",{activeCell:e.activeCell,sqref:e.activeCell})}n.closeNode()}parseOpen(n){switch(n.name){case"sheetView":return this.sheetView={workbookViewId:parseInt(n.attributes.workbookViewId,10),rightToLeft:n.attributes.rightToLeft==="1",tabSelected:n.attributes.tabSelected==="1",showRuler:n.attributes.showRuler!=="0",showRowColHeaders:n.attributes.showRowColHeaders!=="0",showGridLines:n.attributes.showGridLines!=="0",zoomScale:parseInt(n.attributes.zoomScale||"100",10),zoomScaleNormal:parseInt(n.attributes.zoomScaleNormal||"100",10),style:n.attributes.view},this.pane=void 0,this.selections={},!0;case"pane":return this.pane={xSplit:parseInt(n.attributes.xSplit||"0",10),ySplit:parseInt(n.attributes.ySplit||"0",10),topLeftCell:n.attributes.topLeftCell,activePane:n.attributes.activePane||"topLeft",state:n.attributes.state},!0;case"selection":{const e=n.attributes.pane||"topLeft";return this.selections[e]={pane:e,activeCell:n.attributes.activeCell},!0}default:return!1}}parseText(){}parseClose(n){let e,r;switch(n){case"sheetView":return this.sheetView&&this.pane?(e=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:a[this.pane.state]||"split",xSplit:this.pane.xSplit,ySplit:this.pane.ySplit,topLeftCell:this.pane.topLeftCell,showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},this.model.state==="split"&&(e.activePane=this.pane.activePane),r=this.selections[this.pane.activePane],r&&r.activeCell&&(e.activeCell=r.activeCell),this.sheetView.style&&(e.style=this.sheetView.style)):(e=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:"normal",showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},r=this.selections.topLeft,r&&r.activeCell&&(e.activeCell=r.activeCell),this.sheetView.style&&(e.style=this.sheetView.style)),!1;default:return!0}}reconcile(){}}},{"../../../utils/col-cache":19,"../base-xform":32}],114:[function(t,v,b){const f=t("../base-xform");v.exports=class extends f{get tag(){return"tablePart"}render(o,a){a&&o.leafNode(this.tag,{"r:id":a.rId})}parseOpen(o){switch(o.name){case this.tag:return this.model={rId:o.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],115:[function(t,v,b){const f=t("../../../utils/under-dash"),o=t("../../../utils/col-cache"),a=t("../../../utils/xml-stream"),n=t("../../rel-type"),e=t("./merges"),r=t("../base-xform"),l=t("../list-xform"),s=t("./row-xform"),i=t("./col-xform"),d=t("./dimension-xform"),h=t("./hyperlink-xform"),c=t("./merge-cell-xform"),m=t("./data-validations-xform"),p=t("./sheet-properties-xform"),x=t("./sheet-format-properties-xform"),k=t("./sheet-view-xform"),A=t("./sheet-protection-xform"),N=t("./page-margins-xform"),q=t("./page-setup-xform"),D=t("./print-options-xform"),F=t("./auto-filter-xform"),L=t("./picture-xform"),V=t("./drawing-xform"),z=t("./table-part-xform"),M=t("./row-breaks-xform"),T=t("./header-footer-xform"),S=t("./cf/conditional-formattings-xform"),g=t("./ext-lst-xform"),y=(_,E)=>{if(!E||!E.length)return _;if(!_||!_.length)return E;const O={},j={};return _.forEach(H=>{O[H.ref]=H,H.rules.forEach(U=>{const{x14Id:X}=U;X&&(j[X]=U)})}),E.forEach(H=>{H.rules.forEach(U=>{const X=j[U.x14Id];X?((B,W)=>{Object.keys(W).forEach(I=>{const R=B[I],$=W[I];R===void 0&&$!==void 0&&(B[I]=$)})})(X,U):O[H.ref]?O[H.ref].rules.push(U):_.push({ref:H.ref,rules:[U]})})}),_};class w extends r{constructor(E){super();const{maxRows:O,maxCols:j,ignoreNodes:H}=E||{};this.ignoreNodes=H||[],this.map={sheetPr:new p,dimension:new d,sheetViews:new l({tag:"sheetViews",count:!1,childXform:new k}),sheetFormatPr:new x,cols:new l({tag:"cols",count:!1,childXform:new i}),sheetData:new l({tag:"sheetData",count:!1,empty:!0,childXform:new s({maxItems:j}),maxItems:O}),autoFilter:new F,mergeCells:new l({tag:"mergeCells",count:!0,childXform:new c}),rowBreaks:new M,hyperlinks:new l({tag:"hyperlinks",count:!1,childXform:new h}),pageMargins:new N,dataValidations:new m,pageSetup:new q,headerFooter:new T,printOptions:new D,picture:new L,drawing:new V,sheetProtection:new A,tableParts:new l({tag:"tableParts",count:!0,childXform:new z}),conditionalFormatting:new S,extLst:new g}}prepare(E,O){O.merges=new e,E.hyperlinks=O.hyperlinks=[],E.comments=O.comments=[],O.formulae={},O.siFormulae=0,this.map.cols.prepare(E.cols,O),this.map.sheetData.prepare(E.rows,O),this.map.conditionalFormatting.prepare(E.conditionalFormattings,O),E.mergeCells=O.merges.mergeCells;const j=E.rels=[];function H(B){return"rId"+(B.length+1)}if(E.hyperlinks.forEach(B=>{const W=H(j);B.rId=W,j.push({Id:W,Type:n.Hyperlink,Target:B.target,TargetMode:"External"})}),E.comments.length>0){const B={Id:H(j),Type:n.Comments,Target:`../comments${E.id}.xml`};j.push(B);const W={Id:H(j),Type:n.VmlDrawing,Target:`../drawings/vmlDrawing${E.id}.vml`};j.push(W),E.comments.forEach(I=>{I.refAddress=o.decodeAddress(I.ref)}),O.commentRefs.push({commentName:"comments"+E.id,vmlDrawing:"vmlDrawing"+E.id})}const U=[];let X;E.media.forEach(B=>{if(B.type==="background"){const W=H(j);X=O.media[B.imageId],j.push({Id:W,Type:n.Image,Target:`../media/${X.name}.${X.extension}`}),E.background={rId:W},E.image=O.media[B.imageId]}else if(B.type==="image"){let{drawing:W}=E;X=O.media[B.imageId],W||(W=E.drawing={rId:H(j),name:"drawing"+ ++O.drawingsCount,anchors:[],rels:[]},O.drawings.push(W),j.push({Id:W.rId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",Target:`../drawings/${W.name}.xml`}));let I=this.preImageId===B.imageId?U[B.imageId]:U[W.rels.length];I||(I=H(W.rels),U[W.rels.length]=I,W.rels.push({Id:I,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Target:`../media/${X.name}.${X.extension}`}));const R={picture:{rId:I},range:B.range};if(B.hyperlinks&&B.hyperlinks.hyperlink){const $=H(W.rels);U[W.rels.length]=$,R.picture.hyperlinks={tooltip:B.hyperlinks.tooltip,rId:$},W.rels.push({Id:$,Type:n.Hyperlink,Target:B.hyperlinks.hyperlink,TargetMode:"External"})}this.preImageId=B.imageId,W.anchors.push(R)}}),E.tables.forEach(B=>{const W=H(j);B.rId=W,j.push({Id:W,Type:n.Table,Target:"../tables/"+B.target}),B.columns.forEach(I=>{const{style:R}=I;R&&(I.dxfId=O.styles.addDxfStyle(R))})}),this.map.extLst.prepare(E,O)}render(E,O){E.openXml(a.StdDocAttributes),E.openNode("worksheet",w.WORKSHEET_ATTRIBUTES);const j=O.properties?{defaultRowHeight:O.properties.defaultRowHeight,dyDescent:O.properties.dyDescent,outlineLevelCol:O.properties.outlineLevelCol,outlineLevelRow:O.properties.outlineLevelRow}:void 0;O.properties&&O.properties.defaultColWidth&&(j.defaultColWidth=O.properties.defaultColWidth);const H={outlineProperties:O.properties&&O.properties.outlineProperties,tabColor:O.properties&&O.properties.tabColor,pageSetup:O.pageSetup&&O.pageSetup.fitToPage?{fitToPage:O.pageSetup.fitToPage}:void 0},U=O.pageSetup&&O.pageSetup.margins,X={showRowColHeaders:O.pageSetup&&O.pageSetup.showRowColHeaders,showGridLines:O.pageSetup&&O.pageSetup.showGridLines,horizontalCentered:O.pageSetup&&O.pageSetup.horizontalCentered,verticalCentered:O.pageSetup&&O.pageSetup.verticalCentered},B=O.sheetProtection;this.map.sheetPr.render(E,H),this.map.dimension.render(E,O.dimensions),this.map.sheetViews.render(E,O.views),this.map.sheetFormatPr.render(E,j),this.map.cols.render(E,O.cols),this.map.sheetData.render(E,O.rows),this.map.sheetProtection.render(E,B),this.map.autoFilter.render(E,O.autoFilter),this.map.mergeCells.render(E,O.mergeCells),this.map.conditionalFormatting.render(E,O.conditionalFormattings),this.map.dataValidations.render(E,O.dataValidations),this.map.hyperlinks.render(E,O.hyperlinks),this.map.printOptions.render(E,X),this.map.pageMargins.render(E,U),this.map.pageSetup.render(E,O.pageSetup),this.map.headerFooter.render(E,O.headerFooter),this.map.rowBreaks.render(E,O.rowBreaks),this.map.drawing.render(E,O.drawing),this.map.picture.render(E,O.background),this.map.tableParts.render(E,O.tables),this.map.extLst.render(E,O),O.rels&&O.rels.forEach(W=>{W.Type===n.VmlDrawing&&E.leafNode("legacyDrawing",{"r:id":W.Id})}),E.closeNode()}parseOpen(E){return this.parser?(this.parser.parseOpen(E),!0):E.name==="worksheet"?(f.each(this.map,O=>{O.reset()}),!0):(this.map[E.name]&&!this.ignoreNodes.includes(E.name)&&(this.parser=this.map[E.name],this.parser.parseOpen(E)),!0)}parseText(E){this.parser&&this.parser.parseText(E)}parseClose(E){if(this.parser)return this.parser.parseClose(E)||(this.parser=void 0),!0;switch(E){case"worksheet":{const O=this.map.sheetFormatPr.model||{};this.map.sheetPr.model&&this.map.sheetPr.model.tabColor&&(O.tabColor=this.map.sheetPr.model.tabColor),this.map.sheetPr.model&&this.map.sheetPr.model.outlineProperties&&(O.outlineProperties=this.map.sheetPr.model.outlineProperties);const j={fitToPage:this.map.sheetPr.model&&this.map.sheetPr.model.pageSetup&&this.map.sheetPr.model.pageSetup.fitToPage||!1,margins:this.map.pageMargins.model},H=Object.assign(j,this.map.pageSetup.model,this.map.printOptions.model),U=y(this.map.conditionalFormatting.model,this.map.extLst.model&&this.map.extLst.model["x14:conditionalFormattings"]);return this.model={dimensions:this.map.dimension.model,cols:this.map.cols.model,rows:this.map.sheetData.model,mergeCells:this.map.mergeCells.model,hyperlinks:this.map.hyperlinks.model,dataValidations:this.map.dataValidations.model,properties:O,views:this.map.sheetViews.model,pageSetup:H,headerFooter:this.map.headerFooter.model,background:this.map.picture.model,drawing:this.map.drawing.model,tables:this.map.tableParts.model,conditionalFormattings:U},this.map.autoFilter.model&&(this.model.autoFilter=this.map.autoFilter.model),this.map.sheetProtection.model&&(this.model.sheetProtection=this.map.sheetProtection.model),!1}default:return!0}}reconcile(E,O){const j=(E.relationships||[]).reduce((U,X)=>{if(U[X.Id]=X,X.Type===n.Comments&&(E.comments=O.comments[X.Target].comments),X.Type===n.VmlDrawing&&E.comments&&E.comments.length){const B=O.vmlDrawings[X.Target].comments;E.comments.forEach((W,I)=>{W.note=Object.assign({},W.note,B[I])})}return U},{});if(O.commentsMap=(E.comments||[]).reduce((U,X)=>(X.ref&&(U[X.ref]=X),U),{}),O.hyperlinkMap=(E.hyperlinks||[]).reduce((U,X)=>(X.rId&&(U[X.address]=j[X.rId].Target),U),{}),O.formulae={},E.rows=E.rows&&E.rows.filter(Boolean)||[],E.rows.forEach(U=>{U.cells=U.cells&&U.cells.filter(Boolean)||[]}),this.map.cols.reconcile(E.cols,O),this.map.sheetData.reconcile(E.rows,O),this.map.conditionalFormatting.reconcile(E.conditionalFormattings,O),E.media=[],E.drawing){const U=j[E.drawing.rId].Target.match(/\/drawings\/([a-zA-Z0-9]+)[.][a-zA-Z]{3,4}$/);if(U){const X=U[1];O.drawings[X].anchors.forEach(B=>{if(B.medium){const W={type:"image",imageId:B.medium.index,range:B.range,hyperlinks:B.picture.hyperlinks};E.media.push(W)}})}}const H=E.background&&j[E.background.rId];if(H){const U=H.Target.split("/media/")[1],X=O.mediaIndex&&O.mediaIndex[U];X!==void 0&&E.media.push({type:"background",imageId:X})}E.tables=(E.tables||[]).map(U=>{const X=j[U.rId];return O.tables[X.Target]}),delete E.relationships,delete E.hyperlinks,delete E.comments}}w.WORKSHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"},v.exports=w},{"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/xml-stream":28,"../../rel-type":31,"../base-xform":32,"../list-xform":71,"./auto-filter-xform":72,"./cf/conditional-formattings-xform":87,"./col-xform":92,"./data-validations-xform":93,"./dimension-xform":94,"./drawing-xform":95,"./ext-lst-xform":96,"./header-footer-xform":97,"./hyperlink-xform":98,"./merge-cell-xform":99,"./merges":100,"./page-margins-xform":103,"./page-setup-xform":105,"./picture-xform":106,"./print-options-xform":107,"./row-breaks-xform":108,"./row-xform":109,"./sheet-format-properties-xform":110,"./sheet-properties-xform":111,"./sheet-protection-xform":112,"./sheet-view-xform":113,"./table-part-xform":114}],116:[function(t,v,b){const f=t("../base-xform");v.exports=class extends f{constructor(o){super(),this.tag=o.tag,this.attr=o.attr}render(o,a){a&&(o.openNode(this.tag),o.closeNode())}parseOpen(o){o.name===this.tag&&(this.model=!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],117:[function(t,v,b){const f=t("../base-xform");v.exports=class extends f{constructor(o){super(),this.tag=o.tag,this.attr=o.attr,this.attrs=o.attrs,this._format=o.format||function(a){try{return Number.isNaN(a.getTime())?"":a.toISOString()}catch{return""}},this._parse=o.parse||function(a){return new Date(a)}}render(o,a){a&&(o.openNode(this.tag),this.attrs&&o.addAttributes(this.attrs),this.attr?o.addAttribute(this.attr,this._format(a)):o.writeText(this._format(a)),o.closeNode())}parseOpen(o){o.name===this.tag&&(this.attr?this.model=this._parse(o.attributes[this.attr]):this.text=[])}parseText(o){this.attr||this.text.push(o)}parseClose(){return this.attr||(this.model=this._parse(this.text.join(""))),!1}}},{"../base-xform":32}],118:[function(t,v,b){const f=t("../base-xform");v.exports=class extends f{constructor(o){super(),this.tag=o.tag,this.attr=o.attr,this.attrs=o.attrs,this.zero=o.zero}render(o,a){(a||this.zero)&&(o.openNode(this.tag),this.attrs&&o.addAttributes(this.attrs),this.attr?o.addAttribute(this.attr,a):o.writeText(a),o.closeNode())}parseOpen(o){return o.name===this.tag&&(this.attr?this.model=parseInt(o.attributes[this.attr],10):this.text=[],!0)}parseText(o){this.attr||this.text.push(o)}parseClose(){return this.attr||(this.model=parseInt(this.text.join("")||0,10)),!1}}},{"../base-xform":32}],119:[function(t,v,b){const f=t("../base-xform");v.exports=class extends f{constructor(o){super(),this.tag=o.tag,this.attr=o.attr,this.attrs=o.attrs}render(o,a){a!==void 0&&(o.openNode(this.tag),this.attrs&&o.addAttributes(this.attrs),this.attr?o.addAttribute(this.attr,a):o.writeText(a),o.closeNode())}parseOpen(o){o.name===this.tag&&(this.attr?this.model=o.attributes[this.attr]:this.text=[])}parseText(o){this.attr||this.text.push(o)}parseClose(){return this.attr||(this.model=this.text.join("")),!1}}},{"../base-xform":32}],120:[function(t,v,b){const f=t("./base-xform"),o=t("../../utils/xml-stream");v.exports=class extends f{constructor(a){super(),this._model=a}render(a){if(!this._xml){const n=new o;(function e(r,l){r.openNode(l.tag,l.$),l.c&&l.c.forEach(s=>{e(r,s)}),l.t&&r.writeText(l.t),r.closeNode()})(n,this._model),this._xml=n.xml}a.writeXml(this._xml)}parseOpen(){return!0}parseText(){}parseClose(a){switch(a){case this._model.tag:return!1;default:return!0}}}},{"../../utils/xml-stream":28,"./base-xform":32}],121:[function(t,v,b){const f=t("./text-xform"),o=t("./rich-text-xform"),a=t("../base-xform");v.exports=class extends a{constructor(){super(),this.map={r:new o,t:new f}}get tag(){return"rPh"}render(n,e){if(n.openNode(this.tag,{sb:e.sb||0,eb:e.eb||0}),e&&e.hasOwnProperty("richText")&&e.richText){const{r}=this.map;e.richText.forEach(l=>{r.render(n,l)})}else e&&this.map.t.render(n,e.text);n.closeNode()}parseOpen(n){const{name:e}=n;return this.parser?(this.parser.parseOpen(n),!0):e===this.tag?(this.model={sb:parseInt(n.attributes.sb,10),eb:parseInt(n.attributes.eb,10)},!0):(this.parser=this.map[e],!!this.parser&&(this.parser.parseOpen(n),!0))}parseText(n){this.parser&&this.parser.parseText(n)}parseClose(n){if(this.parser){if(!this.parser.parseClose(n)){switch(n){case"r":{let e=this.model.richText;e||(e=this.model.richText=[]),e.push(this.parser.model);break}case"t":this.model.text=this.parser.model}this.parser=void 0}return!0}switch(n){case this.tag:return!1;default:return!0}}}},{"../base-xform":32,"./rich-text-xform":122,"./text-xform":125}],122:[function(t,v,b){const f=t("./text-xform"),o=t("../style/font-xform"),a=t("../base-xform");class n extends a{constructor(r){super(),this.model=r}get tag(){return"r"}get textXform(){return this._textXform||(this._textXform=new f)}get fontXform(){return this._fontXform||(this._fontXform=new o(n.FONT_OPTIONS))}render(r,l){l=l||this.model,r.openNode("r"),l.font&&this.fontXform.render(r,l.font),this.textXform.render(r,l.text),r.closeNode()}parseOpen(r){if(this.parser)return this.parser.parseOpen(r),!0;switch(r.name){case"r":return this.model={},!0;case"t":return this.parser=this.textXform,this.parser.parseOpen(r),!0;case"rPr":return this.parser=this.fontXform,this.parser.parseOpen(r),!0;default:return!1}}parseText(r){this.parser&&this.parser.parseText(r)}parseClose(r){switch(r){case"r":return!1;case"t":return this.model.text=this.parser.model,this.parser=void 0,!0;case"rPr":return this.model.font=this.parser.model,this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(r),!0}}}n.FONT_OPTIONS={tagName:"rPr",fontNameTag:"rFont"},v.exports=n},{"../base-xform":32,"../style/font-xform":131,"./text-xform":125}],123:[function(t,v,b){const f=t("./text-xform"),o=t("./rich-text-xform"),a=t("./phonetic-text-xform"),n=t("../base-xform");v.exports=class extends n{constructor(e){super(),this.model=e,this.map={r:new o,t:new f,rPh:new a}}get tag(){return"si"}render(e,r){e.openNode(this.tag),r&&r.hasOwnProperty("richText")&&r.richText?r.richText.length?r.richText.forEach(l=>{this.map.r.render(e,l)}):this.map.t.render(e,""):r!=null&&this.map.t.render(e,r),e.closeNode()}parseOpen(e){const{name:r}=e;return this.parser?(this.parser.parseOpen(e),!0):r===this.tag?(this.model={},!0):(this.parser=this.map[r],!!this.parser&&(this.parser.parseOpen(e),!0))}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){switch(e){case"r":{let r=this.model.richText;r||(r=this.model.richText=[]),r.push(this.parser.model);break}case"t":this.model=this.parser.model}this.parser=void 0}return!0}switch(e){case this.tag:return!1;default:return!0}}}},{"../base-xform":32,"./phonetic-text-xform":121,"./rich-text-xform":122,"./text-xform":125}],124:[function(t,v,b){const f=t("../../../utils/xml-stream"),o=t("../base-xform"),a=t("./shared-string-xform");v.exports=class extends o{constructor(n){super(),this.model=n||{values:[],count:0},this.hash=Object.create(null),this.rich=Object.create(null)}get sharedStringXform(){return this._sharedStringXform||(this._sharedStringXform=new a)}get values(){return this.model.values}get uniqueCount(){return this.model.values.length}get count(){return this.model.count}getString(n){return this.model.values[n]}add(n){return n.richText?this.addRichText(n):this.addText(n)}addText(n){let e=this.hash[n];return e===void 0&&(e=this.hash[n]=this.model.values.length,this.model.values.push(n)),this.model.count++,e}addRichText(n){const e=this.sharedStringXform.toXml(n);let r=this.rich[e];return r===void 0&&(r=this.rich[e]=this.model.values.length,this.model.values.push(n)),this.model.count++,r}render(n,e){e=e||this._values,n.openXml(f.StdDocAttributes),n.openNode("sst",{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main",count:e.count,uniqueCount:e.values.length});const r=this.sharedStringXform;e.values.forEach(l=>{r.render(n,l)}),n.closeNode()}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case"sst":return!0;case"si":return this.parser=this.sharedStringXform,this.parser.parseOpen(n),!0;default:throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(n))}}parseText(n){this.parser&&this.parser.parseText(n)}parseClose(n){if(this.parser)return this.parser.parseClose(n)||(this.model.values.push(this.parser.model),this.model.count++,this.parser=void 0),!0;switch(n){case"sst":return!1;default:throw new Error("Unexpected xml node in parseClose: "+n)}}}},{"../../../utils/xml-stream":28,"../base-xform":32,"./shared-string-xform":123}],125:[function(t,v,b){const f=t("../base-xform");v.exports=class extends f{get tag(){return"t"}render(o,a){o.openNode("t"),/^\s|\n|\s$/.test(a)&&o.addAttribute("xml:space","preserve"),o.writeText(a),o.closeNode()}get model(){return this._text.join("").replace(/_x([0-9A-F]{4})_/g,(o,a)=>String.fromCharCode(parseInt(a,16)))}parseOpen(o){switch(o.name){case"t":return this._text=[],!0;default:return!1}}parseText(o){this._text.push(o)}parseClose(){return!1}}},{"../base-xform":32}],126:[function(t,v,b){const f=t("../../../doc/enums"),o=t("../../../utils/utils"),a=t("../base-xform"),n={horizontalValues:["left","center","right","fill","centerContinuous","distributed","justify"].reduce((r,l)=>(r[l]=!0,r),{}),horizontal(r){return this.horizontalValues[r]?r:void 0},verticalValues:["top","middle","bottom","distributed","justify"].reduce((r,l)=>(r[l]=!0,r),{}),vertical(r){return r==="middle"?"center":this.verticalValues[r]?r:void 0},wrapText:r=>!!r||void 0,shrinkToFit:r=>!!r||void 0,textRotation(r){switch(r){case"vertical":return r;default:return(r=o.validInt(r))>=-90&&r<=90?r:void 0}},indent:r=>(r=o.validInt(r),Math.max(0,r)),readingOrder(r){switch(r){case"ltr":return f.ReadingOrder.LeftToRight;case"rtl":return f.ReadingOrder.RightToLeft;default:return}}},e={toXml(r){if(r=n.textRotation(r)){if(r==="vertical")return 255;const l=Math.round(r);if(l>=0&&l<=90)return l;if(l<0&&l>=-90)return 90-l}},toModel(r){const l=o.validInt(r);if(l!==void 0){if(l===255)return"vertical";if(l>=0&&l<=90)return l;if(l>90&&l<=180)return 90-l}}};v.exports=class extends a{get tag(){return"alignment"}render(r,l){r.addRollback(),r.openNode("alignment");let s=!1;function i(d,h){h&&(r.addAttribute(d,h),s=!0)}i("horizontal",n.horizontal(l.horizontal)),i("vertical",n.vertical(l.vertical)),i("wrapText",!!n.wrapText(l.wrapText)&&"1"),i("shrinkToFit",!!n.shrinkToFit(l.shrinkToFit)&&"1"),i("indent",n.indent(l.indent)),i("textRotation",e.toXml(l.textRotation)),i("readingOrder",n.readingOrder(l.readingOrder)),r.closeNode(),s?r.commit():r.rollback()}parseOpen(r){const l={};let s=!1;function i(d,h,c){d&&(l[h]=c,s=!0)}i(r.attributes.horizontal,"horizontal",r.attributes.horizontal),i(r.attributes.vertical,"vertical",r.attributes.vertical==="center"?"middle":r.attributes.vertical),i(r.attributes.wrapText,"wrapText",o.parseBoolean(r.attributes.wrapText)),i(r.attributes.shrinkToFit,"shrinkToFit",o.parseBoolean(r.attributes.shrinkToFit)),i(r.attributes.indent,"indent",parseInt(r.attributes.indent,10)),i(r.attributes.textRotation,"textRotation",e.toModel(r.attributes.textRotation)),i(r.attributes.readingOrder,"readingOrder",r.attributes.readingOrder==="2"?"rtl":"ltr"),this.model=s?l:null}parseText(){}parseClose(){return!1}}},{"../../../doc/enums":7,"../../../utils/utils":27,"../base-xform":32}],127:[function(t,v,b){const f=t("../base-xform"),o=t("../../../utils/utils"),a=t("./color-xform");class n extends f{constructor(r){super(),this.name=r,this.map={color:new a}}get tag(){return this.name}render(r,l,s){const i=l&&l.color||s||this.defaultColor;r.openNode(this.name),l&&l.style&&(r.addAttribute("style",l.style),i&&this.map.color.render(r,i)),r.closeNode()}parseOpen(r){if(this.parser)return this.parser.parseOpen(r),!0;switch(r.name){case this.name:{const{style:l}=r.attributes;return this.model=l?{style:l}:void 0,!0}case"color":return this.parser=this.map.color,this.parser.parseOpen(r),!0;default:return!1}}parseText(r){this.parser&&this.parser.parseText(r)}parseClose(r){return this.parser?(this.parser.parseClose(r)||(this.parser=void 0),!0):(r===this.name&&this.map.color.model&&(this.model||(this.model={}),this.model.color=this.map.color.model),!1)}validStyle(r){return n.validStyleValues[r]}}n.validStyleValues=["thin","dashed","dotted","dashDot","hair","dashDotDot","slantDashDot","mediumDashed","mediumDashDotDot","mediumDashDot","medium","double","thick"].reduce((e,r)=>(e[r]=!0,e),{}),v.exports=class extends f{constructor(){super(),this.map={top:new n("top"),left:new n("left"),bottom:new n("bottom"),right:new n("right"),diagonal:new n("diagonal")}}render(e,r){const{color:l}=r;function s(i,d){i&&!i.color&&r.color&&(i={...i,color:r.color}),d.render(e,i,l)}e.openNode("border"),r.diagonal&&r.diagonal.style&&(r.diagonal.up&&e.addAttribute("diagonalUp","1"),r.diagonal.down&&e.addAttribute("diagonalDown","1")),s(r.left,this.map.left),s(r.right,this.map.right),s(r.top,this.map.top),s(r.bottom,this.map.bottom),s(r.diagonal,this.map.diagonal),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"border":return this.reset(),this.diagonalUp=o.parseBoolean(e.attributes.diagonalUp),this.diagonalDown=o.parseBoolean(e.attributes.diagonalDown),!0;default:return this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0)}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;if(e==="border"){const r=this.model={},l=function(s,i,d){i&&(d&&Object.assign(i,d),r[s]=i)};l("left",this.map.left.model),l("right",this.map.right.model),l("top",this.map.top.model),l("bottom",this.map.bottom.model),l("diagonal",this.map.diagonal.model,{up:this.diagonalUp,down:this.diagonalDown})}return!1}}},{"../../../utils/utils":27,"../base-xform":32,"./color-xform":128}],128:[function(t,v,b){const f=t("../base-xform");v.exports=class extends f{constructor(o){super(),this.name=o||"color"}get tag(){return this.name}render(o,a){return!!a&&(o.openNode(this.name),a.argb?o.addAttribute("rgb",a.argb):a.theme!==void 0?(o.addAttribute("theme",a.theme),a.tint!==void 0&&o.addAttribute("tint",a.tint)):a.indexed!==void 0?o.addAttribute("indexed",a.indexed):o.addAttribute("auto","1"),o.closeNode(),!0)}parseOpen(o){return o.name===this.name&&(o.attributes.rgb?this.model={argb:o.attributes.rgb}:o.attributes.theme?(this.model={theme:parseInt(o.attributes.theme,10)},o.attributes.tint&&(this.model.tint=parseFloat(o.attributes.tint))):o.attributes.indexed?this.model={indexed:parseInt(o.attributes.indexed,10)}:this.model=void 0,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],129:[function(t,v,b){const f=t("../base-xform"),o=t("./alignment-xform"),a=t("./border-xform"),n=t("./fill-xform"),e=t("./font-xform"),r=t("./numfmt-xform"),l=t("./protection-xform");v.exports=class extends f{constructor(){super(),this.map={alignment:new o,border:new a,fill:new n,font:new e,numFmt:new r,protection:new l}}get tag(){return"dxf"}render(s,i){if(s.openNode(this.tag),i.font&&this.map.font.render(s,i.font),i.numFmt&&i.numFmtId){const d={id:i.numFmtId,formatCode:i.numFmt};this.map.numFmt.render(s,d)}i.fill&&this.map.fill.render(s,i.fill),i.alignment&&this.map.alignment.render(s,i.alignment),i.border&&this.map.border.render(s,i.border),i.protection&&this.map.protection.render(s,i.protection),s.closeNode()}parseOpen(s){if(this.parser)return this.parser.parseOpen(s),!0;switch(s.name){case this.tag:return this.reset(),!0;default:return this.parser=this.map[s.name],this.parser&&this.parser.parseOpen(s),!0}}parseText(s){this.parser&&this.parser.parseText(s)}parseClose(s){return this.parser?(this.parser.parseClose(s)||(this.parser=void 0),!0):s!==this.tag||(this.model={alignment:this.map.alignment.model,border:this.map.border.model,fill:this.map.fill.model,font:this.map.font.model,numFmt:this.map.numFmt.model,protection:this.map.protection.model},!1)}}},{"../base-xform":32,"./alignment-xform":126,"./border-xform":127,"./fill-xform":130,"./font-xform":131,"./numfmt-xform":132,"./protection-xform":133}],130:[function(t,v,b){const f=t("../base-xform"),o=t("./color-xform");class a extends f{constructor(){super(),this.map={color:new o}}get tag(){return"stop"}render(s,i){s.openNode("stop"),s.addAttribute("position",i.position),this.map.color.render(s,i.color),s.closeNode()}parseOpen(s){if(this.parser)return this.parser.parseOpen(s),!0;switch(s.name){case"stop":return this.model={position:parseFloat(s.attributes.position)},!0;case"color":return this.parser=this.map.color,this.parser.parseOpen(s),!0;default:return!1}}parseText(){}parseClose(s){return!!this.parser&&(this.parser.parseClose(s)||(this.model.color=this.parser.model,this.parser=void 0),!0)}}class n extends f{constructor(){super(),this.map={fgColor:new o("fgColor"),bgColor:new o("bgColor")}}get name(){return"pattern"}get tag(){return"patternFill"}render(s,i){s.openNode("patternFill"),s.addAttribute("patternType",i.pattern),i.fgColor&&this.map.fgColor.render(s,i.fgColor),i.bgColor&&this.map.bgColor.render(s,i.bgColor),s.closeNode()}parseOpen(s){if(this.parser)return this.parser.parseOpen(s),!0;switch(s.name){case"patternFill":return this.model={type:"pattern",pattern:s.attributes.patternType},!0;default:return this.parser=this.map[s.name],!!this.parser&&(this.parser.parseOpen(s),!0)}}parseText(s){this.parser&&this.parser.parseText(s)}parseClose(s){return!!this.parser&&(this.parser.parseClose(s)||(this.parser.model&&(this.model[s]=this.parser.model),this.parser=void 0),!0)}}class e extends f{constructor(){super(),this.map={stop:new a}}get name(){return"gradient"}get tag(){return"gradientFill"}render(s,i){switch(s.openNode("gradientFill"),i.gradient){case"angle":s.addAttribute("degree",i.degree);break;case"path":s.addAttribute("type","path"),i.center.left&&(s.addAttribute("left",i.center.left),i.center.right===void 0&&s.addAttribute("right",i.center.left)),i.center.right&&s.addAttribute("right",i.center.right),i.center.top&&(s.addAttribute("top",i.center.top),i.center.bottom===void 0&&s.addAttribute("bottom",i.center.top)),i.center.bottom&&s.addAttribute("bottom",i.center.bottom)}const d=this.map.stop;i.stops.forEach(h=>{d.render(s,h)}),s.closeNode()}parseOpen(s){if(this.parser)return this.parser.parseOpen(s),!0;switch(s.name){case"gradientFill":{const i=this.model={stops:[]};return s.attributes.degree?(i.gradient="angle",i.degree=parseInt(s.attributes.degree,10)):s.attributes.type==="path"&&(i.gradient="path",i.center={left:s.attributes.left?parseFloat(s.attributes.left):0,top:s.attributes.top?parseFloat(s.attributes.top):0},s.attributes.right!==s.attributes.left&&(i.center.right=s.attributes.right?parseFloat(s.attributes.right):0),s.attributes.bottom!==s.attributes.top&&(i.center.bottom=s.attributes.bottom?parseFloat(s.attributes.bottom):0)),!0}case"stop":return this.parser=this.map.stop,this.parser.parseOpen(s),!0;default:return!1}}parseText(s){this.parser&&this.parser.parseText(s)}parseClose(s){return!!this.parser&&(this.parser.parseClose(s)||(this.model.stops.push(this.parser.model),this.parser=void 0),!0)}}class r extends f{constructor(){super(),this.map={patternFill:new n,gradientFill:new e}}get tag(){return"fill"}render(s,i){switch(s.addRollback(),s.openNode("fill"),i.type){case"pattern":this.map.patternFill.render(s,i);break;case"gradient":this.map.gradientFill.render(s,i);break;default:return void s.rollback()}s.closeNode(),s.commit()}parseOpen(s){if(this.parser)return this.parser.parseOpen(s),!0;switch(s.name){case"fill":return this.model={},!0;default:return this.parser=this.map[s.name],!!this.parser&&(this.parser.parseOpen(s),!0)}}parseText(s){this.parser&&this.parser.parseText(s)}parseClose(s){return!!this.parser&&(this.parser.parseClose(s)||(this.model=this.parser.model,this.model.type=this.parser.name,this.parser=void 0),!0)}validStyle(s){return r.validPatternValues[s]}}r.validPatternValues=["none","solid","darkVertical","darkGray","mediumGray","lightGray","gray125","gray0625","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","lightGrid"].reduce((l,s)=>(l[s]=!0,l),{}),r.StopXform=a,r.PatternFillXform=n,r.GradientFillXform=e,v.exports=r},{"../base-xform":32,"./color-xform":128}],131:[function(t,v,b){const f=t("./color-xform"),o=t("../simple/boolean-xform"),a=t("../simple/integer-xform"),n=t("../simple/string-xform"),e=t("./underline-xform"),r=t("../../../utils/under-dash"),l=t("../base-xform");class s extends l{constructor(d){super(),this.options=d||s.OPTIONS,this.map={b:{prop:"bold",xform:new o({tag:"b",attr:"val"})},i:{prop:"italic",xform:new o({tag:"i",attr:"val"})},u:{prop:"underline",xform:new e},charset:{prop:"charset",xform:new a({tag:"charset",attr:"val"})},color:{prop:"color",xform:new f},condense:{prop:"condense",xform:new o({tag:"condense",attr:"val"})},extend:{prop:"extend",xform:new o({tag:"extend",attr:"val"})},family:{prop:"family",xform:new a({tag:"family",attr:"val"})},outline:{prop:"outline",xform:new o({tag:"outline",attr:"val"})},vertAlign:{prop:"vertAlign",xform:new n({tag:"vertAlign",attr:"val"})},scheme:{prop:"scheme",xform:new n({tag:"scheme",attr:"val"})},shadow:{prop:"shadow",xform:new o({tag:"shadow",attr:"val"})},strike:{prop:"strike",xform:new o({tag:"strike",attr:"val"})},sz:{prop:"size",xform:new a({tag:"sz",attr:"val"})}},this.map[this.options.fontNameTag]={prop:"name",xform:new n({tag:this.options.fontNameTag,attr:"val"})}}get tag(){return this.options.tagName}render(d,h){const{map:c}=this;d.openNode(this.options.tagName),r.each(this.map,(m,p)=>{c[p].xform.render(d,h[m.prop])}),d.closeNode()}parseOpen(d){if(this.parser)return this.parser.parseOpen(d),!0;if(this.map[d.name])return this.parser=this.map[d.name].xform,this.parser.parseOpen(d);switch(d.name){case this.options.tagName:return this.model={},!0;default:return!1}}parseText(d){this.parser&&this.parser.parseText(d)}parseClose(d){if(this.parser&&!this.parser.parseClose(d)){const h=this.map[d];return this.parser.model&&(this.model[h.prop]=this.parser.model),this.parser=void 0,!0}switch(d){case this.options.tagName:return!1;default:return!0}}}s.OPTIONS={tagName:"font",fontNameTag:"name"},v.exports=s},{"../../../utils/under-dash":26,"../base-xform":32,"../simple/boolean-xform":116,"../simple/integer-xform":118,"../simple/string-xform":119,"./color-xform":128,"./underline-xform":136}],132:[function(t,v,b){const f=t("../../../utils/under-dash"),o=t("../../defaultnumformats"),a=t("../base-xform"),n=function(){const r={};return f.each(o,(l,s)=>{l.f&&(r[l.f]=parseInt(s,10))}),r}();class e extends a{constructor(l,s){super(),this.id=l,this.formatCode=s}get tag(){return"numFmt"}render(l,s){l.leafNode("numFmt",{numFmtId:s.id,formatCode:s.formatCode})}parseOpen(l){switch(l.name){case"numFmt":return this.model={id:parseInt(l.attributes.numFmtId,10),formatCode:l.attributes.formatCode.replace(/[\\](.)/g,"$1")},!0;default:return!1}}parseText(){}parseClose(){return!1}}e.getDefaultFmtId=function(r){return n[r]},e.getDefaultFmtCode=function(r){return o[r]&&o[r].f},v.exports=e},{"../../../utils/under-dash":26,"../../defaultnumformats":30,"../base-xform":32}],133:[function(t,v,b){const f=t("../base-xform"),o={boolean:(a,n)=>a===void 0?n:a};v.exports=class extends f{get tag(){return"protection"}render(a,n){a.addRollback(),a.openNode("protection");let e=!1;function r(l,s){s!==void 0&&(a.addAttribute(l,s),e=!0)}r("locked",o.boolean(n.locked,!0)?void 0:"0"),r("hidden",o.boolean(n.hidden,!1)?"1":void 0),a.closeNode(),e?a.commit():a.rollback()}parseOpen(a){const n={locked:a.attributes.locked!=="0",hidden:a.attributes.hidden==="1"},e=!n.locked||n.hidden;this.model=e?n:null}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],134:[function(t,v,b){const f=t("../base-xform"),o=t("./alignment-xform"),a=t("./protection-xform");v.exports=class extends f{constructor(n){super(),this.xfId=!(!n||!n.xfId),this.map={alignment:new o,protection:new a}}get tag(){return"xf"}render(n,e){n.openNode("xf",{numFmtId:e.numFmtId||0,fontId:e.fontId||0,fillId:e.fillId||0,borderId:e.borderId||0}),this.xfId&&n.addAttribute("xfId",e.xfId||0),e.numFmtId&&n.addAttribute("applyNumberFormat","1"),e.fontId&&n.addAttribute("applyFont","1"),e.fillId&&n.addAttribute("applyFill","1"),e.borderId&&n.addAttribute("applyBorder","1"),e.alignment&&n.addAttribute("applyAlignment","1"),e.protection&&n.addAttribute("applyProtection","1"),e.alignment&&this.map.alignment.render(n,e.alignment),e.protection&&this.map.protection.render(n,e.protection),n.closeNode()}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case"xf":return this.model={numFmtId:parseInt(n.attributes.numFmtId,10),fontId:parseInt(n.attributes.fontId,10),fillId:parseInt(n.attributes.fillId,10),borderId:parseInt(n.attributes.borderId,10)},this.xfId&&(this.model.xfId=parseInt(n.attributes.xfId,10)),!0;case"alignment":return this.parser=this.map.alignment,this.parser.parseOpen(n),!0;case"protection":return this.parser=this.map.protection,this.parser.parseOpen(n),!0;default:return!1}}parseText(n){this.parser&&this.parser.parseText(n)}parseClose(n){return this.parser?(this.parser.parseClose(n)||(this.map.protection===this.parser?this.model.protection=this.parser.model:this.model.alignment=this.parser.model,this.parser=void 0),!0):n!=="xf"}}},{"../base-xform":32,"./alignment-xform":126,"./protection-xform":133}],135:[function(t,v,b){const f=t("../../../doc/enums"),o=t("../../../utils/xml-stream"),a=t("../base-xform"),n=t("../static-xform"),e=t("../list-xform"),r=t("./font-xform"),l=t("./fill-xform"),s=t("./border-xform"),i=t("./numfmt-xform"),d=t("./style-xform"),h=t("./dxf-xform");class c extends a{constructor(p){super(),this.map={numFmts:new e({tag:"numFmts",count:!0,childXform:new i}),fonts:new e({tag:"fonts",count:!0,childXform:new r,$:{"x14ac:knownFonts":1}}),fills:new e({tag:"fills",count:!0,childXform:new l}),borders:new e({tag:"borders",count:!0,childXform:new s}),cellStyleXfs:new e({tag:"cellStyleXfs",count:!0,childXform:new d}),cellXfs:new e({tag:"cellXfs",count:!0,childXform:new d({xfId:!0})}),dxfs:new e({tag:"dxfs",always:!0,count:!0,childXform:new h}),numFmt:new i,font:new r,fill:new l,border:new s,style:new d({xfId:!0}),cellStyles:c.STATIC_XFORMS.cellStyles,tableStyles:c.STATIC_XFORMS.tableStyles,extLst:c.STATIC_XFORMS.extLst},p&&this.init()}initIndex(){this.index={style:{},numFmt:{},numFmtNextId:164,font:{},border:{},fill:{}}}init(){this.model={styles:[],numFmts:[],fonts:[],borders:[],fills:[],dxfs:[]},this.initIndex(),this._addBorder({}),this._addStyle({numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}),this._addFill({type:"pattern",pattern:"none"}),this._addFill({type:"pattern",pattern:"gray125"}),this.weakMap=new WeakMap}render(p,x){x=x||this.model,p.openXml(o.StdDocAttributes),p.openNode("styleSheet",c.STYLESHEET_ATTRIBUTES),this.index?(x.numFmts&&x.numFmts.length&&(p.openNode("numFmts",{count:x.numFmts.length}),x.numFmts.forEach(k=>{p.writeXml(k)}),p.closeNode()),x.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),p.openNode("fonts",{count:x.fonts.length,"x14ac:knownFonts":1}),x.fonts.forEach(k=>{p.writeXml(k)}),p.closeNode(),p.openNode("fills",{count:x.fills.length}),x.fills.forEach(k=>{p.writeXml(k)}),p.closeNode(),p.openNode("borders",{count:x.borders.length}),x.borders.forEach(k=>{p.writeXml(k)}),p.closeNode(),this.map.cellStyleXfs.render(p,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),p.openNode("cellXfs",{count:x.styles.length}),x.styles.forEach(k=>{p.writeXml(k)}),p.closeNode()):(this.map.numFmts.render(p,x.numFmts),this.map.fonts.render(p,x.fonts),this.map.fills.render(p,x.fills),this.map.borders.render(p,x.borders),this.map.cellStyleXfs.render(p,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),this.map.cellXfs.render(p,x.styles)),c.STATIC_XFORMS.cellStyles.render(p),this.map.dxfs.render(p,x.dxfs),c.STATIC_XFORMS.tableStyles.render(p),c.STATIC_XFORMS.extLst.render(p),p.closeNode()}parseOpen(p){if(this.parser)return this.parser.parseOpen(p),!0;switch(p.name){case"styleSheet":return this.initIndex(),!0;default:return this.parser=this.map[p.name],this.parser&&this.parser.parseOpen(p),!0}}parseText(p){this.parser&&this.parser.parseText(p)}parseClose(p){if(this.parser)return this.parser.parseClose(p)||(this.parser=void 0),!0;switch(p){case"styleSheet":{this.model={};const x=(k,A)=>{A.model&&A.model.length&&(this.model[k]=A.model)};if(x("numFmts",this.map.numFmts),x("fonts",this.map.fonts),x("fills",this.map.fills),x("borders",this.map.borders),x("styles",this.map.cellXfs),x("dxfs",this.map.dxfs),this.index={model:[],numFmt:[]},this.model.numFmts){const k=this.index.numFmt;this.model.numFmts.forEach(A=>{k[A.id]=A.formatCode})}return!1}default:return!0}}addStyleModel(p,x){if(!p)return 0;if(this.model.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),this.weakMap&&this.weakMap.has(p))return this.weakMap.get(p);const k={};if(x=x||f.ValueType.Number,p.numFmt)k.numFmtId=this._addNumFmtStr(p.numFmt);else switch(x){case f.ValueType.Number:k.numFmtId=this._addNumFmtStr("General");break;case f.ValueType.Date:k.numFmtId=this._addNumFmtStr("mm-dd-yy")}p.font&&(k.fontId=this._addFont(p.font)),p.border&&(k.borderId=this._addBorder(p.border)),p.fill&&(k.fillId=this._addFill(p.fill)),p.alignment&&(k.alignment=p.alignment),p.protection&&(k.protection=p.protection);const A=this._addStyle(k);return this.weakMap&&this.weakMap.set(p,A),A}getStyleModel(p){const x=this.model.styles[p];if(!x)return null;let k=this.index.model[p];if(k)return k;if(k=this.index.model[p]={},x.numFmtId){const N=this.index.numFmt[x.numFmtId]||i.getDefaultFmtCode(x.numFmtId);N&&(k.numFmt=N)}function A(N,q,D){if(D||D===0){const F=q[D];F&&(k[N]=F)}}return A("font",this.model.fonts,x.fontId),A("border",this.model.borders,x.borderId),A("fill",this.model.fills,x.fillId),x.alignment&&(k.alignment=x.alignment),x.protection&&(k.protection=x.protection),k}addDxfStyle(p){return p.numFmt&&(p.numFmtId=this._addNumFmtStr(p.numFmt)),this.model.dxfs.push(p),this.model.dxfs.length-1}getDxfStyle(p){return this.model.dxfs[p]}_addStyle(p){const x=this.map.style.toXml(p);let k=this.index.style[x];return k===void 0&&(k=this.index.style[x]=this.model.styles.length,this.model.styles.push(x)),k}_addNumFmtStr(p){let x=i.getDefaultFmtId(p);if(x!==void 0||(x=this.index.numFmt[p],x!==void 0))return x;x=this.index.numFmt[p]=164+this.model.numFmts.length;const k=this.map.numFmt.toXml({id:x,formatCode:p});return this.model.numFmts.push(k),x}_addFont(p){const x=this.map.font.toXml(p);let k=this.index.font[x];return k===void 0&&(k=this.index.font[x]=this.model.fonts.length,this.model.fonts.push(x)),k}_addBorder(p){const x=this.map.border.toXml(p);let k=this.index.border[x];return k===void 0&&(k=this.index.border[x]=this.model.borders.length,this.model.borders.push(x)),k}_addFill(p){const x=this.map.fill.toXml(p);let k=this.index.fill[x];return k===void 0&&(k=this.index.fill[x]=this.model.fills.length,this.model.fills.push(x)),k}}c.STYLESHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac x16r2","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac","xmlns:x16r2":"http://schemas.microsoft.com/office/spreadsheetml/2015/02/main"},c.STATIC_XFORMS={cellStyles:new n({tag:"cellStyles",$:{count:1},c:[{tag:"cellStyle",$:{name:"Normal",xfId:0,builtinId:0}}]}),dxfs:new n({tag:"dxfs",$:{count:0}}),tableStyles:new n({tag:"tableStyles",$:{count:0,defaultTableStyle:"TableStyleMedium2",defaultPivotStyle:"PivotStyleLight16"}}),extLst:new n({tag:"extLst",c:[{tag:"ext",$:{uri:"{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"},c:[{tag:"x14:slicerStyles",$:{defaultSlicerStyle:"SlicerStyleLight1"}}]},{tag:"ext",$:{uri:"{9260A510-F301-46a8-8635-F512D64BE5F5}","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},c:[{tag:"x15:timelineStyles",$:{defaultTimelineStyle:"TimeSlicerStyleLight1"}}]}]})},c.Mock=class extends c{constructor(){super(),this.model={styles:[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}],numFmts:[],fonts:[{size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}],borders:[{}],fills:[{type:"pattern",pattern:"none"},{type:"pattern",pattern:"gray125"}]}}parseStream(m){return m.autodrain(),Promise.resolve()}addStyleModel(m,p){switch(p){case f.ValueType.Date:return this.dateStyleId;default:return 0}}get dateStyleId(){if(!this._dateStyleId){const m={numFmtId:i.getDefaultFmtId("mm-dd-yy")};this._dateStyleId=this.model.styles.length,this.model.styles.push(m)}return this._dateStyleId}getStyleModel(){return{}}},v.exports=c},{"../../../doc/enums":7,"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"../static-xform":120,"./border-xform":127,"./dxf-xform":129,"./fill-xform":130,"./font-xform":131,"./numfmt-xform":132,"./style-xform":134}],136:[function(t,v,b){const f=t("../base-xform");class o extends f{constructor(n){super(),this.model=n}get tag(){return"u"}render(n,e){if((e=e||this.model)===!0)n.leafNode("u");else{const r=o.Attributes[e];r&&n.leafNode("u",r)}}parseOpen(n){n.name==="u"&&(this.model=n.attributes.val||!0)}parseText(){}parseClose(){return!1}}o.Attributes={single:{},double:{val:"double"},singleAccounting:{val:"singleAccounting"},doubleAccounting:{val:"doubleAccounting"}},v.exports=o},{"../base-xform":32}],137:[function(t,v,b){const f=t("../base-xform"),o=t("./filter-column-xform");v.exports=class extends f{constructor(){super(),this.map={filterColumn:new o}}get tag(){return"autoFilter"}prepare(a){a.columns.forEach((n,e)=>{this.map.filterColumn.prepare(n,{index:e})})}render(a,n){return a.openNode(this.tag,{ref:n.autoFilterRef}),n.columns.forEach(e=>{this.map.filterColumn.render(a,e)}),a.closeNode(),!0}parseOpen(a){if(this.parser)return this.parser.parseOpen(a),!0;switch(a.name){case this.tag:return this.model={autoFilterRef:a.attributes.ref,columns:[]},!0;default:if(this.parser=this.map[a.name],this.parser)return this.parseOpen(a),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(a))}}parseText(a){this.parser&&this.parser.parseText(a)}parseClose(a){if(this.parser)return this.parser.parseClose(a)||(this.model.columns.push(this.parser.model),this.parser=void 0),!0;switch(a){case this.tag:return!1;default:throw new Error("Unexpected xml node in parseClose: "+a)}}}},{"../base-xform":32,"./filter-column-xform":139}],138:[function(t,v,b){const f=t("../base-xform");v.exports=class extends f{get tag(){return"customFilter"}render(o,a){o.leafNode(this.tag,{val:a.val,operator:a.operator})}parseOpen(o){return o.name===this.tag&&(this.model={val:o.attributes.val,operator:o.attributes.operator},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],139:[function(t,v,b){const f=t("../base-xform"),o=t("../list-xform"),a=t("./custom-filter-xform"),n=t("./filter-xform");v.exports=class extends f{constructor(){super(),this.map={customFilters:new o({tag:"customFilters",count:!1,empty:!0,childXform:new a}),filters:new o({tag:"filters",count:!1,empty:!0,childXform:new n})}}get tag(){return"filterColumn"}prepare(e,r){e.colId=r.index.toString()}render(e,r){return r.customFilters?(e.openNode(this.tag,{colId:r.colId,hiddenButton:r.filterButton?"0":"1"}),this.map.customFilters.render(e,r.customFilters),e.closeNode(),!0):(e.leafNode(this.tag,{colId:r.colId,hiddenButton:r.filterButton?"0":"1"}),!0)}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;const{attributes:r}=e;switch(e.name){case this.tag:return this.model={filterButton:r.hiddenButton==="0"},!0;default:if(this.parser=this.map[e.name],this.parser)return this.parseOpen(e),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(e))}}parseText(){}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case this.tag:return this.model.customFilters=this.map.customFilters.model,!1;default:return!0}}}},{"../base-xform":32,"../list-xform":71,"./custom-filter-xform":138,"./filter-xform":140}],140:[function(t,v,b){const f=t("../base-xform");v.exports=class extends f{get tag(){return"filter"}render(o,a){o.leafNode(this.tag,{val:a.val})}parseOpen(o){return o.name===this.tag&&(this.model={val:o.attributes.val},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],141:[function(t,v,b){const f=t("../base-xform");v.exports=class extends f{get tag(){return"tableColumn"}prepare(o,a){o.id=a.index+1}render(o,a){return o.leafNode(this.tag,{id:a.id.toString(),name:a.name,totalsRowLabel:a.totalsRowLabel,totalsRowFunction:a.totalsRowFunction,dxfId:a.dxfId}),!0}parseOpen(o){if(o.name===this.tag){const{attributes:a}=o;return this.model={name:a.name,totalsRowLabel:a.totalsRowLabel,totalsRowFunction:a.totalsRowFunction,dxfId:a.dxfId},!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],142:[function(t,v,b){const f=t("../base-xform");v.exports=class extends f{get tag(){return"tableStyleInfo"}render(o,a){return o.leafNode(this.tag,{name:a.theme?a.theme:void 0,showFirstColumn:a.showFirstColumn?"1":"0",showLastColumn:a.showLastColumn?"1":"0",showRowStripes:a.showRowStripes?"1":"0",showColumnStripes:a.showColumnStripes?"1":"0"}),!0}parseOpen(o){if(o.name===this.tag){const{attributes:a}=o;return this.model={theme:a.name?a.name:null,showFirstColumn:a.showFirstColumn==="1",showLastColumn:a.showLastColumn==="1",showRowStripes:a.showRowStripes==="1",showColumnStripes:a.showColumnStripes==="1"},!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],143:[function(t,v,b){const f=t("../../../utils/xml-stream"),o=t("../base-xform"),a=t("../list-xform"),n=t("./auto-filter-xform"),e=t("./table-column-xform"),r=t("./table-style-info-xform");class l extends o{constructor(){super(),this.map={autoFilter:new n,tableColumns:new a({tag:"tableColumns",count:!0,empty:!0,childXform:new e}),tableStyleInfo:new r}}prepare(i,d){this.map.autoFilter.prepare(i),this.map.tableColumns.prepare(i.columns,d)}get tag(){return"table"}render(i,d){i.openXml(f.StdDocAttributes),i.openNode(this.tag,{...l.TABLE_ATTRIBUTES,id:d.id,name:d.name,displayName:d.displayName||d.name,ref:d.tableRef,totalsRowCount:d.totalsRow?"1":void 0,totalsRowShown:d.totalsRow?void 0:"1",headerRowCount:d.headerRow?"1":"0"}),this.map.autoFilter.render(i,d),this.map.tableColumns.render(i,d.columns),this.map.tableStyleInfo.render(i,d.style),i.closeNode()}parseOpen(i){if(this.parser)return this.parser.parseOpen(i),!0;const{name:d,attributes:h}=i;switch(d){case this.tag:this.reset(),this.model={name:h.name,displayName:h.displayName||h.name,tableRef:h.ref,totalsRow:h.totalsRowCount==="1",headerRow:h.headerRowCount==="1"};break;default:this.parser=this.map[i.name],this.parser&&this.parser.parseOpen(i)}return!0}parseText(i){this.parser&&this.parser.parseText(i)}parseClose(i){if(this.parser)return this.parser.parseClose(i)||(this.parser=void 0),!0;switch(i){case this.tag:return this.model.columns=this.map.tableColumns.model,this.map.autoFilter.model&&(this.model.autoFilterRef=this.map.autoFilter.model.autoFilterRef,this.map.autoFilter.model.columns.forEach((d,h)=>{this.model.columns[h].filterButton=d.filterButton})),this.model.style=this.map.tableStyleInfo.model,!1;default:return!0}}reconcile(i,d){i.columns.forEach(h=>{h.dxfId!==void 0&&(h.style=d.styles.getDxfStyle(h.dxfId))})}}l.TABLE_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"xr xr3","xmlns:xr":"http://schemas.microsoft.com/office/spreadsheetml/2014/revision","xmlns:xr3":"http://schemas.microsoft.com/office/spreadsheetml/2016/revision3"},v.exports=l},{"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"./auto-filter-xform":137,"./table-column-xform":141,"./table-style-info-xform":142}],144:[function(t,v,b){(function(f,o){(function(){const a=t("fs"),n=t("jszip"),{PassThrough:e}=t("readable-stream"),r=t("../utils/zip-stream"),l=t("../utils/stream-buf"),s=t("../utils/utils"),i=t("../utils/xml-stream"),{bufferToString:d}=t("../utils/browser-buffer-decode"),h=t("./xform/style/styles-xform"),c=t("./xform/core/core-xform"),m=t("./xform/strings/shared-strings-xform"),p=t("./xform/core/relationships-xform"),x=t("./xform/core/content-types-xform"),k=t("./xform/core/app-xform"),A=t("./xform/book/workbook-xform"),N=t("./xform/sheet/worksheet-xform"),q=t("./xform/drawing/drawing-xform"),D=t("./xform/table/table-xform"),F=t("./xform/comment/comments-xform"),L=t("./xform/comment/vml-notes-xform"),V=t("./xml/theme1");class z{constructor(T){this.workbook=T}async readFile(T,S){if(!await s.fs.exists(T))throw new Error("File not found: "+T);const g=a.createReadStream(T);try{const y=await this.read(g,S);return g.close(),y}catch(y){throw g.close(),y}}parseRels(T){return new p().parseStream(T)}parseWorkbook(T){return new A().parseStream(T)}parseSharedStrings(T){return new m().parseStream(T)}reconcile(T,S){const g=new A,y=new N(S),w=new q,_=new D;g.reconcile(T);const E={media:T.media,mediaIndex:T.mediaIndex};Object.keys(T.drawings).forEach(H=>{const U=T.drawings[H],X=T.drawingRels[H];X&&(E.rels=X.reduce((B,W)=>(B[W.Id]=W,B),{}),(U.anchors||[]).forEach(B=>{const W=B.picture&&B.picture.hyperlinks;W&&E.rels[W.rId]&&(W.hyperlink=E.rels[W.rId].Target,delete W.rId)}),w.reconcile(U,E))});const O={styles:T.styles};Object.values(T.tables).forEach(H=>{_.reconcile(H,O)});const j={styles:T.styles,sharedStrings:T.sharedStrings,media:T.media,mediaIndex:T.mediaIndex,date1904:T.properties&&T.properties.date1904,drawings:T.drawings,comments:T.comments,tables:T.tables,vmlDrawings:T.vmlDrawings};T.worksheets.forEach(H=>{H.relationships=T.worksheetRels[H.sheetNo],y.reconcile(H,j)}),delete T.worksheetHash,delete T.worksheetRels,delete T.globalRels,delete T.sharedStrings,delete T.workbookRels,delete T.sheetDefs,delete T.styles,delete T.mediaIndex,delete T.drawings,delete T.drawingRels,delete T.vmlDrawings}async _processWorksheetEntry(T,S,g,y,w){const _=new N(y),E=await _.parseStream(T);E.sheetNo=g,S.worksheetHash[w]=E,S.worksheets.push(E)}async _processCommentEntry(T,S,g){const y=new F,w=await y.parseStream(T);S.comments[`../${g}.xml`]=w}async _processTableEntry(T,S,g){const y=new D,w=await y.parseStream(T);S.tables[`../tables/${g}.xml`]=w}async _processWorksheetRelsEntry(T,S,g){const y=new p,w=await y.parseStream(T);S.worksheetRels[g]=w}async _processMediaEntry(T,S,g){const y=g.lastIndexOf(".");if(y>=1){const w=g.substr(y+1),_=g.substr(0,y);await new Promise((E,O)=>{const j=new l;j.on("finish",()=>{S.mediaIndex[g]=S.media.length,S.mediaIndex[_]=S.media.length;const H={type:"image",name:_,extension:w,buffer:j.toBuffer()};S.media.push(H),E()}),T.on("error",H=>{O(H)}),T.pipe(j)})}}async _processDrawingEntry(T,S,g){const y=new q,w=await y.parseStream(T);S.drawings[g]=w}async _processDrawingRelsEntry(T,S,g){const y=new p,w=await y.parseStream(T);S.drawingRels[g]=w}async _processVmlDrawingEntry(T,S,g){const y=new L,w=await y.parseStream(T);S.vmlDrawings[`../drawings/${g}.vml`]=w}async _processThemeEntry(T,S,g){await new Promise((y,w)=>{const _=new l;T.on("error",w),_.on("error",w),_.on("finish",()=>{S.themes[g]=_.read().toString(),y()}),T.pipe(_)})}createInputStream(){throw new Error("`XLSX#createInputStream` is deprecated. You should use `XLSX#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}async read(T,S){!T[Symbol.asyncIterator]&&T.pipe&&(T=T.pipe(new e));const g=[];for await(const y of T)g.push(y);return this.load(o.concat(g),S)}async load(T,S){let g;g=S&&S.base64?o.from(T.toString(),"base64"):T;const y={worksheets:[],worksheetHash:{},worksheetRels:[],themes:{},media:[],mediaIndex:{},drawings:{},drawingRels:{},comments:{},tables:{},vmlDrawings:{}},w=await n.loadAsync(g);for(const _ of Object.values(w.files))if(!_.dir){let E,O=_.name;if(O[0]==="/"&&(O=O.substr(1)),O.match(/xl\/media\//)||O.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/))E=new e,E.write(await _.async("nodebuffer"));else{let j;E=new e({writableObjectMode:!0,readableObjectMode:!0}),j=f.browser?d(await _.async("nodebuffer")):await _.async("string");const H=16384;for(let U=0;U<j.length;U+=H)E.write(j.substring(U,U+H))}switch(E.end(),O){case"_rels/.rels":y.globalRels=await this.parseRels(E);break;case"xl/workbook.xml":{const j=await this.parseWorkbook(E);y.sheets=j.sheets,y.definedNames=j.definedNames,y.views=j.views,y.properties=j.properties,y.calcProperties=j.calcProperties;break}case"xl/_rels/workbook.xml.rels":y.workbookRels=await this.parseRels(E);break;case"xl/sharedStrings.xml":y.sharedStrings=new m,await y.sharedStrings.parseStream(E);break;case"xl/styles.xml":y.styles=new h,await y.styles.parseStream(E);break;case"docProps/app.xml":{const j=new k,H=await j.parseStream(E);y.company=H.company,y.manager=H.manager;break}case"docProps/core.xml":{const j=new c,H=await j.parseStream(E);Object.assign(y,H);break}default:{let j=O.match(/xl\/worksheets\/sheet(\d+)[.]xml/);if(j){await this._processWorksheetEntry(E,y,j[1],S,O);break}if(j=O.match(/xl\/worksheets\/_rels\/sheet(\d+)[.]xml.rels/),j){await this._processWorksheetRelsEntry(E,y,j[1]);break}if(j=O.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/),j){await this._processThemeEntry(E,y,j[1]);break}if(j=O.match(/xl\/media\/([a-zA-Z0-9]+[.][a-zA-Z0-9]{3,4})$/),j){await this._processMediaEntry(E,y,j[1]);break}if(j=O.match(/xl\/drawings\/([a-zA-Z0-9]+)[.]xml/),j){await this._processDrawingEntry(E,y,j[1]);break}if(j=O.match(/xl\/(comments\d+)[.]xml/),j){await this._processCommentEntry(E,y,j[1]);break}if(j=O.match(/xl\/tables\/(table\d+)[.]xml/),j){await this._processTableEntry(E,y,j[1]);break}if(j=O.match(/xl\/drawings\/_rels\/([a-zA-Z0-9]+)[.]xml[.]rels/),j){await this._processDrawingRelsEntry(E,y,j[1]);break}if(j=O.match(/xl\/drawings\/(vmlDrawing\d+)[.]vml/),j){await this._processVmlDrawingEntry(E,y,j[1]);break}}}}return this.reconcile(y,S),this.workbook.model=y,this.workbook}async addMedia(T,S){await Promise.all(S.media.map(async g=>{if(g.type==="image"){const y=`xl/media/${g.name}.${g.extension}`;if(g.filename){const w=await function(_,E){return new Promise((O,j)=>{a.readFile(_,E,(H,U)=>{H?j(H):O(U)})})}(g.filename);return T.append(w,{name:y})}if(g.buffer)return T.append(g.buffer,{name:y});if(g.base64){const w=g.base64,_=w.substring(w.indexOf(",")+1);return T.append(_,{name:y,base64:!0})}}throw new Error("Unsupported media")}))}addDrawings(T,S){const g=new q,y=new p;S.worksheets.forEach(w=>{const{drawing:_}=w;if(_){g.prepare(_,{});let E=g.toXml(_);T.append(E,{name:`xl/drawings/${_.name}.xml`}),E=y.toXml(_.rels),T.append(E,{name:`xl/drawings/_rels/${_.name}.xml.rels`})}})}addTables(T,S){const g=new D;S.worksheets.forEach(y=>{const{tables:w}=y;w.forEach(_=>{g.prepare(_,{});const E=g.toXml(_);T.append(E,{name:"xl/tables/"+_.target})})})}async addContentTypes(T,S){const g=new x().toXml(S);T.append(g,{name:"[Content_Types].xml"})}async addApp(T,S){const g=new k().toXml(S);T.append(g,{name:"docProps/app.xml"})}async addCore(T,S){const g=new c;T.append(g.toXml(S),{name:"docProps/core.xml"})}async addThemes(T,S){const g=S.themes||{theme1:V};Object.keys(g).forEach(y=>{const w=g[y],_=`xl/theme/${y}.xml`;T.append(w,{name:_})})}async addOfficeRels(T){const S=new p().toXml([{Id:"rId1",Type:z.RelType.OfficeDocument,Target:"xl/workbook.xml"},{Id:"rId2",Type:z.RelType.CoreProperties,Target:"docProps/core.xml"},{Id:"rId3",Type:z.RelType.ExtenderProperties,Target:"docProps/app.xml"}]);T.append(S,{name:"_rels/.rels"})}async addWorkbookRels(T,S){let g=1;const y=[{Id:"rId"+g++,Type:z.RelType.Styles,Target:"styles.xml"},{Id:"rId"+g++,Type:z.RelType.Theme,Target:"theme/theme1.xml"}];S.sharedStrings.count&&y.push({Id:"rId"+g++,Type:z.RelType.SharedStrings,Target:"sharedStrings.xml"}),S.worksheets.forEach(_=>{_.rId="rId"+g++,y.push({Id:_.rId,Type:z.RelType.Worksheet,Target:`worksheets/sheet${_.id}.xml`})});const w=new p().toXml(y);T.append(w,{name:"xl/_rels/workbook.xml.rels"})}async addSharedStrings(T,S){S.sharedStrings&&S.sharedStrings.count&&T.append(S.sharedStrings.xml,{name:"xl/sharedStrings.xml"})}async addStyles(T,S){const{xml:g}=S.styles;g&&T.append(g,{name:"xl/styles.xml"})}async addWorkbook(T,S){const g=new A;T.append(g.toXml(S),{name:"xl/workbook.xml"})}async addWorksheets(T,S){const g=new N,y=new p,w=new F,_=new L;S.worksheets.forEach(E=>{let O=new i;g.render(O,E),T.append(O.xml,{name:`xl/worksheets/sheet${E.id}.xml`}),E.rels&&E.rels.length&&(O=new i,y.render(O,E.rels),T.append(O.xml,{name:`xl/worksheets/_rels/sheet${E.id}.xml.rels`})),E.comments.length>0&&(O=new i,w.render(O,E),T.append(O.xml,{name:`xl/comments${E.id}.xml`}),O=new i,_.render(O,E),T.append(O.xml,{name:`xl/drawings/vmlDrawing${E.id}.vml`}))})}_finalize(T){return new Promise((S,g)=>{T.on("finish",()=>{S(this)}),T.on("error",g),T.finalize()})}prepareModel(T,S){T.creator=T.creator||"ExcelJS",T.lastModifiedBy=T.lastModifiedBy||"ExcelJS",T.created=T.created||new Date,T.modified=T.modified||new Date,T.useSharedStrings=S.useSharedStrings===void 0||S.useSharedStrings,T.useStyles=S.useStyles===void 0||S.useStyles,T.sharedStrings=new m,T.styles=T.useStyles?new h(!0):new h.Mock;const g=new A,y=new N;g.prepare(T);const w={sharedStrings:T.sharedStrings,styles:T.styles,date1904:T.properties.date1904,drawingsCount:0,media:T.media};w.drawings=T.drawings=[],w.commentRefs=T.commentRefs=[];let _=0;T.tables=[],T.worksheets.forEach(E=>{E.tables.forEach(O=>{_++,O.target=`table${_}.xml`,O.id=_,T.tables.push(O)}),y.prepare(E,w)})}async write(T,S){S=S||{};const{model:g}=this.workbook,y=new r.ZipWriter(S.zip);return y.pipe(T),this.prepareModel(g,S),await this.addContentTypes(y,g),await this.addOfficeRels(y,g),await this.addWorkbookRels(y,g),await this.addWorksheets(y,g),await this.addSharedStrings(y,g),await this.addDrawings(y,g),await this.addTables(y,g),await Promise.all([this.addThemes(y,g),this.addStyles(y,g)]),await this.addMedia(y,g),await Promise.all([this.addApp(y,g),this.addCore(y,g)]),await this.addWorkbook(y,g),this._finalize(y)}writeFile(T,S){const g=a.createWriteStream(T);return new Promise((y,w)=>{g.on("finish",()=>{y()}),g.on("error",_=>{w(_)}),this.write(g,S).then(()=>{g.end()}).catch(_=>{w(_)})})}async writeBuffer(T){const S=new l;return await this.write(S,T),S.read()}}z.RelType=t("./rel-type"),v.exports=z}).call(this)}).call(this,t("_process"),t("buffer").Buffer)},{"../utils/browser-buffer-decode":16,"../utils/stream-buf":24,"../utils/utils":27,"../utils/xml-stream":28,"../utils/zip-stream":29,"./rel-type":31,"./xform/book/workbook-xform":38,"./xform/comment/comments-xform":40,"./xform/comment/vml-notes-xform":45,"./xform/core/app-xform":51,"./xform/core/content-types-xform":52,"./xform/core/core-xform":53,"./xform/core/relationships-xform":55,"./xform/drawing/drawing-xform":62,"./xform/sheet/worksheet-xform":115,"./xform/strings/shared-strings-xform":124,"./xform/style/styles-xform":135,"./xform/table/table-xform":143,"./xml/theme1":145,_process:467,buffer:220,fs:216,jszip:441,"readable-stream":491}],145:[function(t,v,b){v.exports=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
3
3
  <a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"> <a:themeElements> <a:clrScheme name="Office"> <a:dk1> <a:sysClr val="windowText" lastClr="000000"/> </a:dk1> <a:lt1> <a:sysClr val="window" lastClr="FFFFFF"/> </a:lt1> <a:dk2> <a:srgbClr val="1F497D"/> </a:dk2> <a:lt2> <a:srgbClr val="EEECE1"/> </a:lt2> <a:accent1> <a:srgbClr val="4F81BD"/> </a:accent1> <a:accent2> <a:srgbClr val="C0504D"/> </a:accent2> <a:accent3> <a:srgbClr val="9BBB59"/> </a:accent3> <a:accent4> <a:srgbClr val="8064A2"/> </a:accent4> <a:accent5> <a:srgbClr val="4BACC6"/> </a:accent5> <a:accent6> <a:srgbClr val="F79646"/> </a:accent6> <a:hlink> <a:srgbClr val="0000FF"/> </a:hlink> <a:folHlink> <a:srgbClr val="800080"/> </a:folHlink> </a:clrScheme> <a:fontScheme name="Office"> <a:majorFont> <a:latin typeface="Cambria"/> <a:ea typeface=""/> <a:cs typeface=""/> <a:font script="Jpan" typeface="MS Pゴシック"/> <a:font script="Hang" typeface="맑은 고딕"/> <a:font script="Hans" typeface="宋体"/> <a:font script="Hant" typeface="新細明體"/> <a:font script="Arab" typeface="Times New Roman"/> <a:font script="Hebr" typeface="Times New Roman"/> <a:font script="Thai" typeface="Tahoma"/> <a:font script="Ethi" typeface="Nyala"/> <a:font script="Beng" typeface="Vrinda"/> <a:font script="Gujr" typeface="Shruti"/> <a:font script="Khmr" typeface="MoolBoran"/> <a:font script="Knda" typeface="Tunga"/> <a:font script="Guru" typeface="Raavi"/> <a:font script="Cans" typeface="Euphemia"/> <a:font script="Cher" typeface="Plantagenet Cherokee"/> <a:font script="Yiii" typeface="Microsoft Yi Baiti"/> <a:font script="Tibt" typeface="Microsoft Himalaya"/> <a:font script="Thaa" typeface="MV Boli"/> <a:font script="Deva" typeface="Mangal"/> <a:font script="Telu" typeface="Gautami"/> <a:font script="Taml" typeface="Latha"/> <a:font script="Syrc" typeface="Estrangelo Edessa"/> <a:font script="Orya" typeface="Kalinga"/> <a:font script="Mlym" typeface="Kartika"/> <a:font script="Laoo" typeface="DokChampa"/> <a:font script="Sinh" typeface="Iskoola Pota"/> <a:font script="Mong" typeface="Mongolian Baiti"/> <a:font script="Viet" typeface="Times New Roman"/> <a:font script="Uigh" typeface="Microsoft Uighur"/> <a:font script="Geor" typeface="Sylfaen"/> </a:majorFont> <a:minorFont> <a:latin typeface="Calibri"/> <a:ea typeface=""/> <a:cs typeface=""/> <a:font script="Jpan" typeface="MS Pゴシック"/> <a:font script="Hang" typeface="맑은 고딕"/> <a:font script="Hans" typeface="宋体"/> <a:font script="Hant" typeface="新細明體"/> <a:font script="Arab" typeface="Arial"/> <a:font script="Hebr" typeface="Arial"/> <a:font script="Thai" typeface="Tahoma"/> <a:font script="Ethi" typeface="Nyala"/> <a:font script="Beng" typeface="Vrinda"/> <a:font script="Gujr" typeface="Shruti"/> <a:font script="Khmr" typeface="DaunPenh"/> <a:font script="Knda" typeface="Tunga"/> <a:font script="Guru" typeface="Raavi"/> <a:font script="Cans" typeface="Euphemia"/> <a:font script="Cher" typeface="Plantagenet Cherokee"/> <a:font script="Yiii" typeface="Microsoft Yi Baiti"/> <a:font script="Tibt" typeface="Microsoft Himalaya"/> <a:font script="Thaa" typeface="MV Boli"/> <a:font script="Deva" typeface="Mangal"/> <a:font script="Telu" typeface="Gautami"/> <a:font script="Taml" typeface="Latha"/> <a:font script="Syrc" typeface="Estrangelo Edessa"/> <a:font script="Orya" typeface="Kalinga"/> <a:font script="Mlym" typeface="Kartika"/> <a:font script="Laoo" typeface="DokChampa"/> <a:font script="Sinh" typeface="Iskoola Pota"/> <a:font script="Mong" typeface="Mongolian Baiti"/> <a:font script="Viet" typeface="Arial"/> <a:font script="Uigh" typeface="Microsoft Uighur"/> <a:font script="Geor" typeface="Sylfaen"/> </a:minorFont> </a:fontScheme> <a:fmtScheme name="Office"> <a:fillStyleLst> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="50000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="35000"> <a:schemeClr val="phClr"> <a:tint val="37000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:tint val="15000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:lin ang="16200000" scaled="1"/> </a:gradFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="100000"/> <a:shade val="100000"/> <a:satMod val="130000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:tint val="50000"/> <a:shade val="100000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:lin ang="16200000" scaled="0"/> </a:gradFill> </a:fillStyleLst> <a:lnStyleLst> <a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"> <a:shade val="95000"/> <a:satMod val="105000"/> </a:schemeClr> </a:solidFill> <a:prstDash val="solid"/> </a:ln> <a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:prstDash val="solid"/> </a:ln> <a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:prstDash val="solid"/> </a:ln> </a:lnStyleLst> <a:effectStyleLst> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="38000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> </a:effectStyle> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="35000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> </a:effectStyle> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="35000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> <a:scene3d> <a:camera prst="orthographicFront"> <a:rot lat="0" lon="0" rev="0"/> </a:camera> <a:lightRig rig="threePt" dir="t"> <a:rot lat="0" lon="0" rev="1200000"/> </a:lightRig> </a:scene3d> <a:sp3d> <a:bevelT w="63500" h="25400"/> </a:sp3d> </a:effectStyle> </a:effectStyleLst> <a:bgFillStyleLst> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="40000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> <a:gs pos="40000"> <a:schemeClr val="phClr"> <a:tint val="45000"/> <a:shade val="99000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:shade val="20000"/> <a:satMod val="255000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:path path="circle"> <a:fillToRect l="50000" t="-80000" r="50000" b="180000"/> </a:path> </a:gradFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="80000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:shade val="30000"/> <a:satMod val="200000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:path path="circle"> <a:fillToRect l="50000" t="50000" r="50000" b="50000"/> </a:path> </a:gradFill> </a:bgFillStyleLst> </a:fmtScheme> </a:themeElements> <a:objectDefaults> <a:spDef> <a:spPr/> <a:bodyPr/> <a:lstStyle/> <a:style> <a:lnRef idx="1"> <a:schemeClr val="accent1"/> </a:lnRef> <a:fillRef idx="3"> <a:schemeClr val="accent1"/> </a:fillRef> <a:effectRef idx="2"> <a:schemeClr val="accent1"/> </a:effectRef> <a:fontRef idx="minor"> <a:schemeClr val="lt1"/> </a:fontRef> </a:style> </a:spDef> <a:lnDef> <a:spPr/> <a:bodyPr/> <a:lstStyle/> <a:style> <a:lnRef idx="2"> <a:schemeClr val="accent1"/> </a:lnRef> <a:fillRef idx="0"> <a:schemeClr val="accent1"/> </a:fillRef> <a:effectRef idx="1"> <a:schemeClr val="accent1"/> </a:effectRef> <a:fontRef idx="minor"> <a:schemeClr val="tx1"/> </a:fontRef> </a:style> </a:lnDef> </a:objectDefaults> <a:extraClrSchemeLst/> </a:theme>`},{}],146:[function(t,v,b){(function(f){(function(){Object.defineProperty(b,"__esModule",{value:!0}),b.CsvFormatterStream=void 0;const o=t("stream"),a=t("./formatter");class n extends o.Transform{constructor(r){super({writableObjectMode:r.objectMode}),this.hasWrittenBOM=!1,this.formatterOptions=r,this.rowFormatter=new a.RowFormatter(r),this.hasWrittenBOM=!r.writeBOM}transform(r){return this.rowFormatter.rowTransform=r,this}_transform(r,l,s){let i=!1;try{this.hasWrittenBOM||(this.push(this.formatterOptions.BOM),this.hasWrittenBOM=!0),this.rowFormatter.format(r,(d,h)=>d?(i=!0,s(d)):(h&&h.forEach(c=>{this.push(f.from(c,"utf8"))}),i=!0,s()))}catch(d){if(i)throw d;s(d)}}_flush(r){this.rowFormatter.finish((l,s)=>l?r(l):(s&&s.forEach(i=>{this.push(f.from(i,"utf8"))}),r()))}}b.CsvFormatterStream=n}).call(this)}).call(this,t("buffer").Buffer)},{"./formatter":150,buffer:220,stream:505}],147:[function(t,v,b){Object.defineProperty(b,"__esModule",{value:!0}),b.FormatterOptions=void 0,b.FormatterOptions=class{constructor(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var o;this.objectMode=!0,this.delimiter=",",this.rowDelimiter=`
4
4
  `,this.quote='"',this.escape=this.quote,this.quoteColumns=!1,this.quoteHeaders=this.quoteColumns,this.headers=null,this.includeEndRowDelimiter=!1,this.writeBOM=!1,this.BOM="\uFEFF",this.alwaysWriteHeaders=!1,Object.assign(this,f||{}),f?.quoteHeaders===void 0&&(this.quoteHeaders=this.quoteColumns),f?.quote===!0?this.quote='"':f?.quote===!1&&(this.quote=""),typeof f?.escape!="string"&&(this.escape=this.quote),this.shouldWriteHeaders=!!this.headers&&((o=f.writeHeaders)===null||o===void 0||o),this.headers=Array.isArray(this.headers)?this.headers:null,this.escapedQuote=`${this.escape}${this.quote}`}}},{}],148:[function(t,v,b){var f=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(b,"__esModule",{value:!0}),b.FieldFormatter=void 0;const o=f(t("lodash.isboolean")),a=f(t("lodash.isnil")),n=f(t("lodash.escaperegexp"));b.FieldFormatter=class{constructor(e){this._headers=null,this.formatterOptions=e,e.headers!==null&&(this.headers=e.headers),this.REPLACE_REGEXP=new RegExp(e.quote,"g");const r=`[${e.delimiter}${n.default(e.rowDelimiter)}|\r|