urit-qf-ui 0.0.4 → 0.0.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.
- package/dist/index.d.ts +0 -2
- package/dist/index.js +2527 -2991
- package/dist/index.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/dist/ufrom/types.d.ts +2 -24
- package/package.json +3 -2
- package/dist/components/UInput/config.d.ts +0 -17
- package/dist/components/USelect/config.d.ts +0 -28
- package/dist/ufrom/UDesigner.vue.d.ts +0 -17
- package/dist/ufrom/designer-components.d.ts +0 -51
package/dist/index.umd.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(ie,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(ie=typeof globalThis<"u"?globalThis:ie||self,t(ie.YourOrgUI={},ie.Vue))})(this,function(ie,t){"use strict";const Ct={xs:18,sm:24,md:32,lg:38,xl:46},at={size:String};function rt(e,n=Ct){return t.computed(()=>e.size!==void 0?{fontSize:e.size in n?`${n[e.size]}px`:e.size}:null)}function Ue(e,n,o,l){return Object.defineProperty(e,n,{get:o,set:l,enumerable:!0}),e}function ae(e){return t.markRaw(t.defineComponent(e))}function Fl(e){return t.markRaw(e)}function ve(e,n){return e!==void 0&&e()||n}function Al(e,n){if(e!==void 0){const o=e();if(o!=null)return[...o]}return n}function we(e,n){return e!==void 0?n.concat(e()):n}function Ll(e,n){return e===void 0?n:n!==void 0?n.concat(e()):e()}function $l(e,n,o,l,i,a){n.key=l+i;const s=t.h(e,n,o);return i?t.withDirectives(s,a()):s}const Jt="0 0 24 24",Et=e=>e,qt=e=>`ionicons ${e}`,en={"mdi-":e=>`mdi ${e}`,"icon-":Et,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":qt,"ion-ios":qt,"ion-logo":qt,"iconfont ":Et,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`,"i-":Et},tn={o_:"-outlined",r_:"-round",s_:"-sharp"},nn={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},Pl=new RegExp("^("+Object.keys(en).join("|")+")"),Ol=new RegExp("^("+Object.keys(tn).join("|")+")"),ln=new RegExp("^("+Object.keys(nn).join("|")+")"),Il=/^[Mm]\s?[-+]?\.?\d/,zl=/^img:/,Dl=/^svguse:/,Nl=/^ion-/,Hl=/^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,ge=ae({name:"QIcon",props:{...at,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:n}){const{proxy:{$q:o}}=t.getCurrentInstance(),l=rt(e),i=t.computed(()=>"q-icon"+(e.left?" on-left":"")+(e.right?" on-right":"")+(e.color!==void 0?` text-${e.color}`:"")),a=t.computed(()=>{let s,u=e.name;if(u==="none"||!u)return{none:!0};if(o.iconMapFn!==null){const c=o.iconMapFn(u);if(c!==void 0)if(c.icon!==void 0){if(u=c.icon,u==="none"||!u)return{none:!0}}else return{cls:c.cls,content:c.content!==void 0?c.content:" "}}if(Il.test(u)){const[c,b=Jt]=u.split("|");return{svg:!0,viewBox:b,nodes:c.split("&&").map(p=>{const[h,w,A]=p.split("@@");return t.h("path",{style:w,d:h,transform:A})})}}if(zl.test(u))return{img:!0,src:u.slice(4)};if(Dl.test(u)){const[c,b=Jt]=u.split("|");return{svguse:!0,src:c.slice(7),viewBox:b}}let f=" ";const g=u.match(Pl);if(g!==null)s=en[g[1]](u);else if(Hl.test(u))s=u;else if(Nl.test(u))s=`ionicons ion-${o.platform.is.ios?"ios":"md"}${u.slice(3)}`;else if(ln.test(u)){s="notranslate material-symbols";const c=u.match(ln);c!==null&&(u=u.slice(6),s+=nn[c[1]]),f=u}else{s="notranslate material-icons";const c=u.match(Ol);c!==null&&(u=u.slice(2),s+=tn[c[1]]),f=u}return{cls:s,content:f}});return()=>{const s={class:i.value,style:l.value,"aria-hidden":"true"};return a.value.none?t.h(e.tag,s,ve(n.default)):a.value.img?t.h(e.tag,s,we(n.default,[t.h("img",{src:a.value.src})])):a.value.svg?t.h(e.tag,s,we(n.default,[t.h("svg",{viewBox:a.value.viewBox||"0 0 24 24"},a.value.nodes)])):a.value.svguse?t.h(e.tag,s,we(n.default,[t.h("svg",{viewBox:a.value.viewBox},[t.h("use",{"xlink:href":a.value.src})])])):(a.value.cls!==void 0&&(s.class+=" "+a.value.cls),t.h(e.tag,s,we(n.default,[a.value.content])))}}}),Wl={size:{type:[String,Number],default:"1em"},color:String};function jl(e){return{cSize:t.computed(()=>e.size in Ct?`${Ct[e.size]}px`:e.size),classes:t.computed(()=>"q-spinner"+(e.color?` text-${e.color}`:""))}}const on=ae({name:"QSpinner",props:{...Wl,thickness:{type:Number,default:5}},setup(e){const{cSize:n,classes:o}=jl(e);return()=>t.h("svg",{class:o.value+" q-spinner-mat",width:n.value,height:n.value,viewBox:"25 25 50 50"},[t.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":e.thickness,"stroke-miterlimit":"10"})])}});function Vt(e,n){const o=e.style;for(const l in n)o[l]=n[l]}function Ul(e){if(e==null)return;if(typeof e=="string")try{return document.querySelector(e)||void 0}catch{return}const n=t.unref(e);if(n)return n.$el||n}function _t(e,n){if(e==null||e.contains(n))return!0;for(let o=e.nextElementSibling;o!==null;o=o.nextElementSibling)if(o.contains(n))return!0;return!1}const re={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const e=Object.defineProperty({},"passive",{get(){Object.assign(re,{hasPassive:!0,passive:{passive:!0},notPassive:{passive:!1},passiveCapture:{passive:!0,capture:!0},notPassiveCapture:{passive:!1,capture:!0}})}});window.addEventListener("qtest",null,e),window.removeEventListener("qtest",null,e)}catch{}function Kl(){}function an(e){return e.touches&&e.touches[0]?e=e.touches[0]:e.changedTouches&&e.changedTouches[0]?e=e.changedTouches[0]:e.targetTouches&&e.targetTouches[0]&&(e=e.targetTouches[0]),{top:e.clientY,left:e.clientX}}function he(e){e.stopPropagation()}function de(e){e.cancelable!==!1&&e.preventDefault()}function ee(e){e.cancelable!==!1&&e.preventDefault(),e.stopPropagation()}function Bt(e,n,o){const l=`__q_${n}_evt`;e[l]=[...e[l]??[],...o],o.forEach(i=>{i[0].addEventListener(i[1],e[i[2]],re[i[3]])})}function rn(e,n){const o=`__q_${n}_evt`;e[o]!==void 0&&(e[o].forEach(l=>{l[0].removeEventListener(l[1],e[l[2]],re[l[3]])}),e[o]=void 0)}function Mt(e){return e!==Object(e)||e.isComposing||e.qKeyEvent}function ke(e,n){return!Mt(e)&&[n].flat().includes(e.keyCode)}function Ql(e,n=250){let o=!1,l;return function(...a){return o||(o=!0,setTimeout(()=>{o=!1},n),l=e.apply(this,a)),l}}function sn(e,n,o,l){o.modifiers.stop&&he(e);const i=o.modifiers.color,a=o.modifiers.center||l===!0,s=document.createElement("span"),u=document.createElement("span"),f=an(e),{left:g,top:c,width:b,height:p}=n.getBoundingClientRect(),h=Math.hypot(b,p),w=h/2,A=`${(b-h)/2}px`,d=a?A:`${f.left-g-w}px`,S=`${(p-h)/2}px`,_=a?S:`${f.top-c-w}px`;u.className="q-ripple__inner",Vt(u,{height:`${h}px`,width:`${h}px`,transform:`translate3d(${d},${_},0) scale3d(.2,.2,1)`,opacity:0}),s.className=`q-ripple${i?" text-"+i:""}`,s.setAttribute("dir","ltr"),s.append(u),n.append(s);const k=()=>{s.remove(),clearTimeout(B)};o.abort.push(k);let B=setTimeout(()=>{u.classList.add("q-ripple__inner--enter"),u.style.transform=`translate3d(${A},${S},0) scale3d(1,1,1)`,u.style.opacity=.2,B=setTimeout(()=>{u.classList.remove("q-ripple__inner--enter"),u.classList.add("q-ripple__inner--leave"),u.style.opacity=0,B=setTimeout(()=>{s.remove(),o.abort.splice(o.abort.indexOf(k),1)},275)},250)},50)}function un(e,{modifiers:n,value:o,arg:l}){const i={...e.cfg.ripple,...n,...o};e.modifiers={early:i.early===!0,stop:i.stop===!0,center:i.center===!0,color:i.color||l,keyCodes:[i.keyCodes||13].flat()}}const cn=Fl({name:"ripple",beforeMount(e,n){const o=n.instance.$.appContext.config.globalProperties.$q.config||{};if(o.ripple===!1)return;const l={cfg:o,enabled:n.value!==!1,modifiers:{},abort:[],start(i){l.enabled&&!i.qSkipRipple&&i.type===(l.modifiers.early?"pointerdown":"click")&&sn(i,e,l,i.qKeyEvent===!0)},keystart:Ql(i=>{l.enabled&&!i.qSkipRipple&&ke(i,l.modifiers.keyCodes)&&i.type===`key${l.modifiers.early?"down":"up"}`&&sn(i,e,l,!0)},300)};un(l,n),e.__qripple=l,Bt(l,"main",[[e,"pointerdown","start","passive"],[e,"click","start","passive"],[e,"keydown","keystart","passive"],[e,"keyup","keystart","passive"]])},updated(e,n){if(n.oldValue!==n.value){const o=e.__qripple;o!==void 0&&(o.enabled=n.value!==!1,o.enabled&&Object(n.value)===n.value&&un(o,n))}},beforeUnmount(e){const n=e.__qripple;n!==void 0&&(n.abort.forEach(o=>{o()}),rn(n,"main"),delete e.__qripple)}}),dn={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},Xl=Object.keys(dn),Yl={align:{type:String,validator:e=>Xl.includes(e)}};function Zl(e){return t.computed(()=>{const n=e.align===void 0?e.vertical?"stretch":"left":e.align;return`${e.vertical?"items":"justify"}-${dn[n]}`})}function Rt(e){if(Object(e.$parent)===e.$parent)return e.$parent;let{parent:n}=e.$;for(;Object(n)===n;){if(Object(n.proxy)===n.proxy)return n.proxy;n=n.parent}}function fn(e){return e.appContext.config.globalProperties.$router!==void 0}function mn(e){return e.isUnmounted===!0||e.isDeactivated===!0}function vn(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function gn(e,n){return(e.aliasOf||e)===(n.aliasOf||n)}function Gl(e,n){for(const o in n){const l=n[o],i=e[o];if(typeof l=="string"){if(l!==i)return!1}else if(!Array.isArray(i)||i.length!==l.length||l.some((a,s)=>a!==i[s]))return!1}return!0}function hn(e,n){return Array.isArray(n)?e.length===n.length&&e.every((o,l)=>o===n[l]):e.length===1&&e[0]===n}function Jl(e,n){return Array.isArray(e)?hn(e,n):Array.isArray(n)?hn(n,e):e===n}function eo(e,n){if(Object.keys(e).length!==Object.keys(n).length)return!1;for(const o in e)if(!Jl(e[o],n[o]))return!1;return!0}const pn={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},to={...pn,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function bn({fallbackTag:e,useDisableForRouterLinkProps:n=!0}={}){const o=t.getCurrentInstance(),{props:l,proxy:i,emit:a}=o,s=fn(o),u=t.computed(()=>!l.disable&&l.href!==void 0),f=n?t.computed(()=>s&&!l.disable&&!u.value&&l.to!==void 0&&l.to!==null&&l.to!==""):t.computed(()=>s&&!u.value&&l.to!==void 0&&l.to!==null&&l.to!==""),g=t.computed(()=>f.value?_(l.to):null),c=t.computed(()=>g.value!==null),b=t.computed(()=>u.value||c.value),p=t.computed(()=>l.type==="a"||b.value?"a":l.tag||e||"div"),h=t.computed(()=>u.value?{href:l.href,target:l.target}:c.value?{href:g.value.href,target:l.target}:{}),w=t.computed(()=>{if(!c.value)return-1;const{matched:T}=g.value,{length:P}=T,z=T[P-1];if(z===void 0)return-1;const N=i.$route.matched;if(N.length===0)return-1;const X=N.findIndex(gn.bind(null,z));if(X!==-1)return X;const C=vn(T[P-2]);return P>1&&vn(z)===C&&N.at(-1).path!==C?N.findIndex(gn.bind(null,T[P-2])):X}),A=t.computed(()=>c.value&&w.value!==-1&&Gl(i.$route.params,g.value.params)),d=t.computed(()=>A.value&&w.value===i.$route.matched.length-1&&eo(i.$route.params,g.value.params)),S=t.computed(()=>c.value?d.value?` ${l.exactActiveClass} ${l.activeClass}`:l.exact?"":A.value?` ${l.activeClass}`:"":"");function _(T){try{return i.$router.resolve(T)}catch{}return null}function k(T,{returnRouterError:P,to:z=l.to,replace:N=l.replace}={}){if(l.disable)return T.preventDefault(),Promise.resolve(!1);if(T.metaKey||T.altKey||T.ctrlKey||T.shiftKey||T.button!==void 0&&T.button!==0||l.target==="_blank")return Promise.resolve(!1);T.preventDefault();const X=i.$router[N?"replace":"push"](z);return P?X:X.then(()=>{}).catch(()=>{})}function B(T){if(c.value){const P=z=>k(T,z);a("click",T,P),T.defaultPrevented||P()}else a("click",T)}return{hasRouterLink:c,hasHrefLink:u,hasLink:b,linkTag:p,resolvedLink:g,linkIsActive:A,linkIsExactActive:d,linkClass:S,linkAttrs:h,getLink:_,navigateToRouterLink:k,navigateOnClick:B}}const yn={none:0,xs:4,sm:8,md:16,lg:24,xl:32},no={xs:8,sm:10,md:14,lg:20,xl:24},lo=["button","submit","reset"],oo=/[^\s]\/[^\s]/,io=["flat","outline","push","unelevated"];function ao(e,n){return e.flat?"flat":e.outline?"outline":e.push?"push":e.unelevated?"unelevated":n}const ro={...{...at,...pn,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...io.reduce((e,n)=>(e[n]=Boolean)&&e,{}),square:Boolean,rounded:Boolean,glossy:Boolean,size:String,fab:Boolean,fabMini:Boolean,padding:String,color:String,textColor:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,tabindex:[Number,String],ripple:{type:[Boolean,Object],default:!0},align:{...Yl.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},round:Boolean};function so(e){const n=rt(e,no),o=Zl(e),{hasRouterLink:l,hasLink:i,linkTag:a,linkAttrs:s,navigateOnClick:u}=bn({fallbackTag:"button"}),f=t.computed(()=>{const d=e.fab||e.fabMini?{}:n.value;return e.padding!==void 0?{...d,padding:e.padding.split(/\s+/).map(S=>S in yn?yn[S]+"px":S).join(" "),minWidth:"0",minHeight:"0"}:d}),g=t.computed(()=>e.rounded||e.fab||e.fabMini),c=t.computed(()=>!e.disable&&!e.loading),b=t.computed(()=>c.value?e.tabindex||0:-1),p=t.computed(()=>ao(e,"standard")),h=t.computed(()=>{const d={tabindex:b.value};return i.value?Object.assign(d,s.value):lo.includes(e.type)&&(d.type=e.type),a.value==="a"?(e.disable?d["aria-disabled"]="true":d.href===void 0&&(d.role="button"),!l.value&&oo.test(e.type)&&(d.type=e.type)):e.disable&&(d.disabled="",d["aria-disabled"]="true"),e.loading&&e.percentage!==void 0&&Object.assign(d,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e.percentage}),d}),w=t.computed(()=>{let d;e.color!==void 0?d=e.flat||e.outline?`text-${e.textColor||e.color}`:`bg-${e.color} text-${e.textColor||"white"}`:e.textColor&&(d=`text-${e.textColor}`);const S=e.round?"round":`rectangle${g.value?" q-btn--rounded":e.square?" q-btn--square":""}`;return`q-btn--${p.value} q-btn--${S}`+(d!==void 0?" "+d:"")+(c.value?" q-btn--actionable q-focusable q-hoverable":e.disable?" disabled":"")+(e.fab?" q-btn--fab":e.fabMini?" q-btn--fab-mini":"")+(e.noCaps?" q-btn--no-uppercase":"")+(e.dense?" q-btn--dense":"")+(e.stretch?" no-border-radius self-stretch":"")+(e.glossy?" glossy":"")+(e.square?" q-btn--square":"")}),A=t.computed(()=>o.value+(e.stack?" column":" row")+(e.noWrap?" no-wrap text-no-wrap":"")+(e.loading?" q-btn__content--hidden":""));return{classes:w,style:f,innerClasses:A,attributes:h,hasLink:i,linkTag:a,navigateOnClick:u,isActionable:c}}const{passiveCapture:ce}=re;let _e=null,Be=null,Me=null;function Ke(e){ee(e),e.qSkipRipple=!0}const Re=ae({name:"QBtn",props:{...ro,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(e,{slots:n,emit:o}){const{proxy:l}=t.getCurrentInstance(),{classes:i,style:a,innerClasses:s,attributes:u,hasLink:f,linkTag:g,navigateOnClick:c,isActionable:b}=so(e),p=t.ref(null),h=t.ref(null);let w=null,A,d=null,S=null;const _=t.computed(()=>e.label!==void 0&&e.label!==null&&e.label!==""),k=t.computed(()=>e.disable||e.ripple===!1?!1:{keyCodes:f.value?[13,32]:[13],...e.ripple===!0?{}:e.ripple}),B=t.computed(()=>({center:e.round})),T=t.computed(()=>{const V=Math.max(0,Math.min(100,e.percentage));return V>0?{transition:"transform 0.6s",transform:`translateX(${V-100}%)`}:{}}),P=t.computed(()=>{if(e.loading)return{onMousedown:Ke,onTouchstart:Ke,onClick:Ke,onKeydown:Ke,onKeyup:Ke};if(b.value){const V={onClick:N,onKeydown:X,onMousedown:y};if(l.$q.platform.has.touch){const L=e.onTouchstart!==void 0?"":"Passive";V[`onTouchstart${L}`]=C}return V}return{onClick:ee}}),z=t.computed(()=>({ref:p,class:"q-btn q-btn-item non-selectable no-outline "+i.value,style:a.value,...u.value,...P.value}));function N(V){if(p.value!==null){if(V!==void 0){if(V.defaultPrevented)return;const L=document.activeElement;if(e.type==="submit"&&L!==document.body&&!p.value.contains(L)&&!L.contains(p.value)){V.qAvoidFocus||p.value.focus();const U=()=>{var x;S=null,document.removeEventListener("keydown",ee,!0),document.removeEventListener("keyup",U,ce),(x=p.value)==null||x.removeEventListener("blur",U,ce)};S=U,document.addEventListener("keydown",ee,!0),document.addEventListener("keyup",U,ce),p.value.addEventListener("blur",U,ce)}}c(V)}}function X(V){p.value!==null&&(o("keydown",V),ke(V,[13,32])&&Be!==p.value&&(Be!==null&&q(),V.defaultPrevented||(V.qAvoidFocus||p.value.focus(),Be=p.value,p.value.classList.add("q-btn--active"),document.addEventListener("keyup",M,!0),p.value.addEventListener("blur",M,ce)),ee(V)))}function C(V){p.value!==null&&(o("touchstart",V),!V.defaultPrevented&&(_e!==p.value&&(_e!==null&&q(),_e=p.value,w=V.target,w.addEventListener("touchcancel",M,ce),w.addEventListener("touchend",M,ce)),A=!0,d!==null&&clearTimeout(d),d=setTimeout(()=>{d=null,A=!1},200)))}function y(V){p.value!==null&&(V.qSkipRipple=A===!0,o("mousedown",V),!V.defaultPrevented&&Me!==p.value&&(Me!==null&&q(),Me=p.value,p.value.classList.add("q-btn--active"),document.addEventListener("mouseup",M,ce)))}function M(V){if(p.value!==null&&!((V==null?void 0:V.type)==="blur"&&document.activeElement===p.value)){if((V==null?void 0:V.type)==="keyup"){if(Be===p.value&&ke(V,[13,32])){const L=new MouseEvent("click",V);L.qKeyEvent=!0,V.defaultPrevented&&de(L),V.cancelBubble&&he(L),p.value.dispatchEvent(L),ee(V),V.qKeyEvent=!0}o("keyup",V)}q()}}function q(V){var U,x;S==null||S();const L=h.value;!V&&(_e===p.value||Me===p.value)&&L!==null&&L!==document.activeElement&&(L.setAttribute("tabindex",-1),L.focus({preventScroll:!0})),_e===p.value&&(w!==null&&(w.removeEventListener("touchcancel",M,ce),w.removeEventListener("touchend",M,ce)),_e=w=null),Me===p.value&&(document.removeEventListener("mouseup",M,ce),Me=null),Be===p.value&&(document.removeEventListener("keyup",M,!0),(U=p.value)==null||U.removeEventListener("blur",M,ce),Be=null),(x=p.value)==null||x.classList.remove("q-btn--active")}return t.onBeforeUnmount(()=>{q(!0)}),Object.assign(l,{click:V=>{b.value&&N(V)}}),()=>{let V=[];e.icon!==void 0&&V.push(t.h(ge,{name:e.icon,left:!e.stack&&_.value,role:"img"})),_.value&&V.push(t.h("span",{class:"block"},[e.label])),V=we(n.default,V),e.iconRight!==void 0&&!e.round&&V.push(t.h(ge,{name:e.iconRight,right:!e.stack&&_.value,role:"img"}));const L=[t.h("span",{class:"q-focus-helper",ref:h})];return e.loading&&e.percentage!==void 0&&L.push(t.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(e.darkPercentage?" q-btn__progress--dark":"")},[t.h("span",{class:"q-btn__progress-indicator fit block",style:T.value})])),L.push(t.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+s.value},V)),e.loading!==null&&L.push(t.h(t.Transition,{name:"q-transition--fade"},()=>e.loading?[t.h("span",{key:"loading",class:"absolute-full flex flex-center"},n.loading!==void 0?n.loading():[t.h(on)])]:null)),t.withDirectives(t.h(g.value,z.value,L),[[cn,k.value,void 0,B.value]])}}}),uo={class:"row full-height"},co={class:"col bg-blue-1 column"},fo={class:"bg-green-2 row justify-end items-center",style:{height:"50px"}},mo=t.defineComponent({__name:"LayoutOne",props:{height:{default:"auto"}},setup(e){return(n,o)=>(t.openBlock(),t.createElementBlock("div",{class:"q-ma-sm",style:t.normalizeStyle({height:e.height})},[t.createElementVNode("div",uo,[o[1]||(o[1]=t.createElementVNode("div",{class:"bg-orange-1 text-center",style:{width:"300px"}}," 左边菜单宽度固定(水平居中) ",-1)),t.createElementVNode("div",co,[o[0]||(o[0]=t.createElementVNode("div",{class:"col q-pa-md"},[t.createElementVNode("div",{class:"bg-yellow-2 flex flex-center"}," 文本水平、垂直居中 "),t.createElementVNode("div",{class:"q-mt-md"}," 主内容区 ")],-1)),t.createElementVNode("div",fo,[t.createVNode(Re,{class:"q-mr-md",color:"primary",label:"返回"})])])])],4))}});function vo(){if(typeof crypto>"u")return()=>{throw new Error("[Quasar uid()] Secure RNG not available. Cannot generate collision-resistant UUID.")};if(crypto.randomUUID)return()=>crypto.randomUUID();const e=Array.from({length:256},(l,i)=>(i+256).toString(16).slice(1));let n,o;return()=>{(n===void 0||o+16>4096)&&(o=0,n=new Uint8Array(4096),crypto.getRandomValues(n));const l=o;return o+=16,n[l+6]=n[l+6]&15|64,n[l+8]=n[l+8]&63|128,e[n[l]]+e[n[l+1]]+e[n[l+2]]+e[n[l+3]]+"-"+e[n[l+4]]+e[n[l+5]]+"-"+e[n[l+6]]+e[n[l+7]]+"-"+e[n[l+8]]+e[n[l+9]]+"-"+e[n[l+10]]+e[n[l+11]]+e[n[l+12]]+e[n[l+13]]+e[n[l+14]]+e[n[l+15]]}}const Tt=vo(),Qe=t.ref(!1);let Ft;const go=512;function ho(e){return typeof e=="string"?e.slice(0,go).toLowerCase():""}const po=/(?:^|\s)version\/([\w.]+)/,bo=/(?:^|\s)applewebkit\/[\w.]+/,yo=/(?:^|\s)safari\/[\w.]+/;function wo(e){const n=po.exec(e);return n!==null&&bo.test(e)&&yo.test(e)?{browser:"safari",version:n[1]}:null}const ko=/(?:^|\s)opera\/([\w.]+)/,So=/(?:^|\s)version\/([\w.]+)/;function xo(e){const n=ko.exec(e);if(n===null)return null;const o=So.exec(e);return{browser:"opera",version:(o==null?void 0:o[1])||n[1]}}const Co=/(edg|edge|edga|edgios)\/([\w.]+)/,Eo=/(opr)[\/]([\w.]+)/,qo=/(vivaldi)[\/]([\w.]+)/,Vo=/(chrome|crios)[\/]([\w.]+)/,_o=/(firefox|fxios)[\/]([\w.]+)/,Bo=/(webkit)[\/]([\w.]+)/;function Mo(e,n){let o=Co.exec(e)||Eo.exec(e)||qo.exec(e)||Vo.exec(e);if(o===null){const l=wo(e);if(l!==null)return{...l,platform:n[0]||""};if(o=_o.exec(e)||Bo.exec(e),o===null){const i=xo(e);if(i!==null)return{...i,platform:n[0]||""};o=[]}}return{browser:o[5]||o[3]||o[1]||"",version:o[4]||o[2]||"0",platform:n[0]||""}}const Ro=/(ipad)/,To=/(ipod)/,Fo=/(iphone)/,Ao=/(windows phone)/,Lo=/(kindle)/,$o=/(silk)/,Po=/(android)/,Oo=/(win)/,Io=/(mac)/,zo=/(linux)/,Do=/(cros)/;function No(e){return Ro.exec(e)||To.exec(e)||Ao.exec(e)||Fo.exec(e)||Lo.exec(e)||$o.exec(e)||Po.exec(e)||Oo.exec(e)||Io.exec(e)||zo.exec(e)||Do.exec(e)||[]}const wn="ontouchstart"in window||window.navigator.maxTouchPoints>0;function Ho(e){const n=ho(e),o=No(n),l=Mo(n,o),i={mobile:!1,desktop:!1,cordova:!1,capacitor:!1,nativeMobile:!1,electron:!1,bex:!1,linux:!1,mac:!1,win:!1,cros:!1,chrome:!1,firefox:!1,opera:!1,safari:!1,vivaldi:!1,edge:!1,edgeChromium:!1,ie:!1,webkit:!1,android:!1,ios:!1,ipad:!1,iphone:!1,ipod:!1,kindle:!1,winphone:!1,silk:!1};l.browser&&(i[l.browser]=!0,i.version=l.version,i.versionNumber=Number.parseInt(l.version,10)),l.platform&&(i[l.platform]=!0),i["windows phone"]&&(i.winphone=!0,delete i["windows phone"]);const a=i.android||i.ios||i.ipad||i.iphone||i.ipod||i.kindle||i.silk||i.winphone;if(a===!0||n.includes("mobile")?i.mobile=!0:i.desktop=!0,i.edga||i.edgios||i.edg?(i.edge=!0,l.browser="edge"):i.crios?(i.chrome=!0,l.browser="chrome"):i.fxios&&(i.firefox=!0,l.browser="firefox"),(i.ipod||i.ipad||i.iphone)&&(i.ios=!0),i.vivaldi&&(l.browser="vivaldi",i.vivaldi=!0),(i.chrome||i.opr||i.safari||i.vivaldi||i.mobile&&!i.ios&&!a)&&(i.webkit=!0),i.opr&&(l.browser="opera",i.opera=!0),i.safari&&(i.android?(l.browser="android",i.android=!0):i.kindle?(l.browser="kindle",i.kindle=!0):i.silk&&(l.browser="silk",i.silk=!0)),i.name=l.browser,i.platform=l.platform,n.includes("electron"))i.electron=!0;else if(document.location.href.includes("-extension://"))i.bex=!0;else{if(window.Capacitor!==void 0?(i.capacitor=!0,i.nativeMobile=!0,i.nativeMobileWrapper="capacitor"):(window._cordovaNative!==void 0||window.cordova!==void 0)&&(i.cordova=!0,i.nativeMobile=!0,i.nativeMobileWrapper="cordova"),Qe.value&&(Ft={is:{...i}}),wn&&i.mac&&(i.desktop&&i.safari||i.nativeMobile&&!i.android&&!i.ios&&!i.ipad)){delete i.mac,delete i.desktop;const s=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(i,{mobile:!0,ios:!0,platform:s,[s]:!0})}!i.mobile&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete i.desktop,i.mobile=!0)}return i}const kn=navigator.userAgent||navigator.vendor||window.opera,Wo={has:{touch:!1,webStorage:!1},within:{iframe:!1}},fe={userAgent:kn,is:Ho(kn),has:{touch:wn},within:{iframe:window.self!==window.top}},At={install(e){const{$q:n}=e;Qe.value?(e.onSSRHydrated.push(()=>{Object.assign(n.platform,fe),Qe.value=!1}),n.platform=t.reactive(this)):n.platform=this}};{let e;Ue(fe.has,"webStorage",()=>{if(e!==void 0)return e;try{if(window.localStorage)return e=!0,!0}catch{}return e=!1,!1}),Object.assign(At,fe),Qe.value&&(Object.assign(At,Ft,Wo),Ft=null)}function jo(e){return e??null}function Sn(e,n){return e??(n?`f_${Tt()}`:null)}function Uo({getValue:e,required:n=!0}={}){if(Qe.value){const o=e!==void 0?t.ref(jo(e())):t.ref(null);return n&&o.value===null&&t.onMounted(()=>{o.value=`f_${Tt()}`}),e!==void 0&&t.watch(e,l=>{o.value=Sn(l,n)}),o}return e!==void 0?t.computed(()=>Sn(e(),n)):t.ref(`f_${Tt()}`)}const xn=/^on[A-Z]/;function Ko(){const e=t.getCurrentInstance(),{attrs:n}=e,o={listeners:t.ref({}),attributes:t.ref({})};function l(){const i={},a={};for(const s in n)s!=="class"&&s!=="style"&&!xn.test(s)&&(i[s]=n[s]);for(const s in e.vnode.props)xn.test(s)&&(a[s]=e.vnode.props[s]);o.attributes.value=i,o.listeners.value=a}return t.onBeforeUpdate(l),l(),o}const Xe={dark:{type:Boolean,default:null}};function Ye(e,n){return t.computed(()=>e.dark===null?n.dark.isActive:e.dark)}const Qo="_q_fo_";function Xo({validate:e,resetValidation:n,requiresQForm:o}){const l=t.inject(Qo,!1);if(l!==!1){const{props:i,proxy:a}=t.getCurrentInstance();Object.assign(a,{validate:e,resetValidation:n}),t.watch(()=>i.disable,s=>{s?(typeof n=="function"&&n(),l.unbindComponent(a)):l.bindComponent(a)}),t.onMounted(()=>{i.disable||l.bindComponent(a)}),t.onBeforeUnmount(()=>{i.disable||l.unbindComponent(a)})}else o&&console.error("Parent QForm not found on useFormChild()!")}const Cn=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,En=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,qn=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,st=/^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])\)$/,ut=/^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(\.[\d]+)?|1(\.0+)?)\)$/,Yo=/^-?[\d]+\/(0[1-9]|1[0-2])\/(0[1-9]|[12]\d|3[01])$/,Zo=/^([0-1]?\d|2[0-3]):[0-5]\d$/,Go=/^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/,Jo=/^([0-1]?\d|2[0-3]):[0-5]\d(:[0-5]\d)?$/,ei=/^(([^<>()[\]\\.,;:\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,}))$/,Lt={date:e=>Yo.test(e),time:e=>Zo.test(e),fulltime:e=>Go.test(e),timeOrFulltime:e=>Jo.test(e),email:e=>ei.test(e),hexColor:e=>Cn.test(e),hexaColor:e=>En.test(e),hexOrHexaColor:e=>qn.test(e),rgbColor:e=>st.test(e),rgbaColor:e=>ut.test(e),rgbOrRgbaColor:e=>st.test(e)||ut.test(e),hexOrRgbColor:e=>Cn.test(e)||st.test(e),hexaOrRgbaColor:e=>En.test(e)||ut.test(e),anyColor:e=>qn.test(e)||st.test(e)||ut.test(e)};function Vn(e,n=250,o){let l=null;function i(...a){const s=()=>{l=null,e.apply(this,a)};l!==null&&clearTimeout(l),l=setTimeout(s,n)}return i.cancel=()=>{l!==null&&(clearTimeout(l),l=null)},i}const ti=[!0,!1,"ondemand"],ni={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:e=>ti.includes(e)}};function li(e,n){const{props:o,proxy:l}=t.getCurrentInstance(),i=t.ref(!1),a=t.ref(null),s=t.ref(!1);Xo({validate:A,resetValidation:w});let u=0,f;const g=t.computed(()=>o.rules!==void 0&&o.rules!==null&&o.rules.length!==0),c=t.computed(()=>!o.disable&&g.value&&!n.value),b=t.computed(()=>o.error===!0||i.value),p=t.computed(()=>typeof o.errorMessage=="string"&&o.errorMessage.length!==0?o.errorMessage:a.value);t.watch(()=>o.modelValue,()=>{s.value=!0,c.value&&o.lazyRules===!1&&d()});function h(){o.lazyRules!=="ondemand"&&c.value&&s.value&&d()}t.watch(()=>o.reactiveRules,S=>{S?f===void 0&&(f=t.watch(()=>o.rules,h,{immediate:!0,deep:!0})):f!==void 0&&(f(),f=void 0)},{immediate:!0}),t.watch(()=>o.lazyRules,h),t.watch(e,S=>{S?s.value=!0:c.value&&o.lazyRules!=="ondemand"&&d()});function w(){u++,n.value=!1,s.value=!1,i.value=!1,a.value=null,d.cancel()}function A(S=o.modelValue){if(o.disable||!g.value)return!0;const _=++u,k=n.value?()=>{}:()=>{s.value=!0},B=(P,z)=>{P&&k(),i.value=P,a.value=z||null,n.value=!1},T=[];for(let P=0;P<o.rules.length;P++){const z=o.rules[P];let N;if(typeof z=="function"?N=z(S,Lt):typeof z=="string"&&(Lt[z]===void 0?(console.error(`Unknown validation pattern rule: "${z}"`),N=!1):N=Lt[z](S)),N===!1||typeof N=="string")return B(!0,N),!1;N!==!0&&N!==void 0&&T.push(N)}return T.length===0?(B(!1),!0):(n.value=!0,Promise.all(T).then(P=>{if(P===void 0||!Array.isArray(P)||P.length===0)return _===u&&B(!1),!0;const z=P.find(N=>N===!1||typeof N=="string");return _===u&&B(z!==void 0,z),z===void 0},P=>(_===u&&(console.error(P),B(!0)),!1)))}const d=Vn(A,0);return t.onBeforeUnmount(()=>{f==null||f(),d.cancel()}),Object.assign(l,{resetValidation:w,validate:A}),Ue(l,"hasError",()=>b.value),{isDirtyModel:s,hasRules:g,hasError:b,errorMessage:p,validate:A,resetValidation:w}}let Te=[],Ze=[];function _n(e){Ze=Ze.filter(n=>n!==e)}function oi(e){_n(e),Ze.push(e)}function Bn(e){_n(e),Ze.length===0&&Te.length!==0&&(Te.at(-1)(),Te=[])}function Fe(e){Ze.length===0?e():Te.push(e)}function Mn(e){Te=Te.filter(n=>n!==e)}function Ge(e){return e!=null&&String(e).length!==0}const ct={...{...Xe,...ni,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},maxlength:[Number,String]},$t=["update:modelValue","clear","focus","blur"];function Pt({requiredForAttr:e=!0,tagProp:n,changeEvent:o=!1}={}){const{props:l,proxy:i}=t.getCurrentInstance(),a=Ye(l,i.$q),s=Uo({required:e,getValue:()=>l.for});return{requiredForAttr:e,changeEvent:o,tag:n?t.computed(()=>l.tag):{value:"label"},isDark:a,editable:t.computed(()=>!l.disable&&!l.readonly),innerLoading:t.ref(!1),focused:t.ref(!1),hasPopupOpen:!1,splitAttrs:Ko(),targetUid:s,rootRef:t.ref(null),targetRef:t.ref(null),controlRef:t.ref(null)}}function dt(e,n){return n===null?null:t.h("div",{key:e,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},n)}function Ot(e){const{props:n,emit:o,slots:l,attrs:i,proxy:a}=t.getCurrentInstance(),{$q:s}=a;let u=null;e.hasValue===void 0&&(e.hasValue=t.computed(()=>Ge(n.modelValue))),e.emitValue===void 0&&(e.emitValue=x=>{o("update:modelValue",x)}),e.controlEvents===void 0&&(e.controlEvents={onFocusin:X,onFocusout:C}),Object.assign(e,{clearValue:y,onControlFocusin:X,onControlFocusout:C,focus:z}),e.computedCounter===void 0&&(e.computedCounter=t.computed(()=>{if(n.counter){const x=typeof n.modelValue=="string"||typeof n.modelValue=="number"?String(n.modelValue).length:Array.isArray(n.modelValue)?n.modelValue.length:0,F=n.maxlength!==void 0?n.maxlength:n.maxValues;return x+(F!==void 0?" / "+F:"")}}));const{isDirtyModel:f,hasRules:g,hasError:c,errorMessage:b,resetValidation:p}=li(e.focused,e.innerLoading),h=e.floatingLabel!==void 0?t.computed(()=>n.stackLabel||e.focused.value||e.floatingLabel.value):t.computed(()=>n.stackLabel||e.focused.value||e.hasValue.value),w=t.computed(()=>n.bottomSlots||n.hint!==void 0||g.value||n.counter||n.error!==null),A=t.computed(()=>n.filled?"filled":n.outlined?"outlined":n.borderless?"borderless":n.standout?"standout":"standard"),d=t.computed(()=>`q-field row no-wrap items-start q-field--${A.value}`+(e.fieldClass!==void 0?` ${e.fieldClass.value}`:"")+(n.rounded?" q-field--rounded":"")+(n.square?" q-field--square":"")+(h.value?" q-field--float":"")+(_.value?" q-field--labeled":"")+(n.dense?" q-field--dense":"")+(n.itemAligned?" q-field--item-aligned q-item-type":"")+(e.isDark.value?" q-field--dark":"")+(e.getControl===void 0?" q-field--auto-height":"")+(e.focused.value?" q-field--focused":"")+(c.value?" q-field--error":"")+(c.value||e.focused.value?" q-field--highlighted":"")+(!n.hideBottomSpace&&w.value?" q-field--with-bottom":"")+(n.disable?" q-field--disabled":n.readonly?" q-field--readonly":"")),S=t.computed(()=>"q-field__control relative-position row no-wrap"+(n.bgColor!==void 0?` bg-${n.bgColor}`:"")+(c.value?" text-negative":typeof n.standout=="string"&&n.standout.length!==0&&e.focused.value?` ${n.standout}`:n.color!==void 0?` text-${n.color}`:"")),_=t.computed(()=>n.labelSlot||n.label!==void 0),k=t.computed(()=>"q-field__label no-pointer-events absolute ellipsis"+(n.labelColor!==void 0&&!c.value?` text-${n.labelColor}`:"")),B=t.computed(()=>Ue({id:e.targetUid.value,editable:e.editable.value,focused:e.focused.value,floatingLabel:h.value,modelValue:n.modelValue,emitValue:e.emitValue},"field",()=>e.rootRef.value)),T=t.computed(()=>{const x={};return e.targetUid.value&&(x.for=e.targetUid.value),n.disable&&(x["aria-disabled"]="true"),x});function P(){var Y;const x=document.activeElement;let F=(Y=e.targetRef)==null?void 0:Y.value;F&&(x===null||x.id!==e.targetUid.value)&&(F.hasAttribute("tabindex")||(F=F.querySelector("[tabindex]")),F!==x&&(F==null||F.focus({preventScroll:!0})))}function z(){Fe(P)}function N(){Mn(P);const x=document.activeElement;x!==null&&e.rootRef.value.contains(x)&&x.blur()}function X(x){u!==null&&(clearTimeout(u),u=null),e.editable.value&&!e.focused.value&&(e.focused.value=!0,o("focus",x))}function C(x,F){u!==null&&clearTimeout(u),u=setTimeout(()=>{u=null,!(document.hasFocus()&&(e.hasPopupOpen||e.controlRef===void 0||e.controlRef.value===null||e.controlRef.value.contains(document.activeElement)))&&(e.focused.value&&(e.focused.value=!1,o("blur",x)),F==null||F())},0)}function y(x){var F,Y;ee(x),s.platform.is.mobile?e.rootRef.value.contains(document.activeElement)&&document.activeElement.blur():(((F=e.targetRef)==null?void 0:F.value)||e.rootRef.value).focus(),n.type==="file"&&(e.inputRef.value.value=null),(Y=e.onClear)==null||Y.call(e),o("update:modelValue",null),e.changeEvent&&o("change",null),o("clear",n.modelValue),t.nextTick(()=>{const Z=f.value;p(),f.value=Z})}function M(x){[13,32].includes(x.keyCode)&&y(x)}function q(){const x=[];return l.prepend!==void 0&&x.push(t.h("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:de},l.prepend())),x.push(t.h("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},V())),c.value&&!n.noErrorIcon&&x.push(dt("error",[t.h(ge,{name:s.iconSet.field.error,color:"negative"})])),n.loading||e.innerLoading.value?x.push(dt("inner-loading-append",l.loading!==void 0?l.loading():[t.h(on,{color:n.color})])):n.clearable&&e.hasValue.value&&e.editable.value&&x.push(dt("inner-clearable-append",[t.h(ge,{class:"q-field__focusable-action",name:n.clearIcon||s.iconSet.field.clear,tabindex:0,role:"button","aria-hidden":"false","aria-label":s.lang.label.clear,onKeyup:M,onClick:y})])),l.append!==void 0&&x.push(t.h("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:de},l.append())),e.getInnerAppend!==void 0&&x.push(dt("inner-append",e.getInnerAppend())),e.getControlChild!==void 0&&x.push(e.getControlChild()),x}function V(){const x=[];return n.prefix!==void 0&&n.prefix!==null&&x.push(t.h("div",{class:"q-field__prefix no-pointer-events row items-center"},n.prefix)),e.getShadowControl!==void 0&&e.hasShadow.value&&x.push(e.getShadowControl()),_.value&&x.push(t.h("div",{class:k.value},ve(l.label,n.label))),e.getControl!==void 0?x.push(e.getControl()):l.rawControl!==void 0?x.push(l.rawControl()):l.control!==void 0&&x.push(t.h("div",{ref:e.targetRef,class:"q-field__native row",tabindex:-1,...e.splitAttrs.attributes.value,"data-autofocus":n.autofocus||void 0},l.control(B.value))),n.suffix!==void 0&&n.suffix!==null&&x.push(t.h("div",{class:"q-field__suffix no-pointer-events row items-center"},n.suffix)),x.concat(ve(l.default))}function L(){let x,F;c.value?b.value!==null?(x=[t.h("div",{role:"alert"},b.value)],F=`q--slot-error-${b.value}`):(x=ve(l.error),F="q--slot-error"):(!n.hideHint||e.focused.value)&&(n.hint!==void 0?(x=[t.h("div",n.hint)],F=`q--slot-hint-${n.hint}`):(x=ve(l.hint),F="q--slot-hint"));const Y=n.counter||l.counter!==void 0;if(n.hideBottomSpace&&!Y&&x===void 0)return;const Z=t.h("div",{key:F,class:"q-field__messages col"},x);return t.h("div",{class:"q-field__bottom row items-start q-field__bottom--"+(n.hideBottomSpace?"stale":"animated"),onClick:de},[n.hideBottomSpace?Z:t.h(t.Transition,{name:"q-transition--field-message"},()=>Z),Y?t.h("div",{class:"q-field__counter"},l.counter!==void 0?l.counter():e.computedCounter.value):null])}let U=!1;return t.onDeactivated(()=>{U=!0}),t.onActivated(()=>{U&&n.autofocus&&a.focus()}),n.autofocus&&t.onMounted(()=>{a.focus()}),t.onBeforeUnmount(()=>{u!==null&&clearTimeout(u)}),Object.assign(a,{focus:z,blur:N}),function(){const F=e.getControl===void 0&&l.control===void 0?{...e.splitAttrs.attributes.value,"data-autofocus":n.autofocus||void 0,...T.value}:T.value;return t.h(e.tag.value,{ref:e.rootRef,class:[d.value,i.class],style:i.style,...F},[l.before!==void 0?t.h("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:de},l.before()):null,t.h("div",{class:"q-field__inner relative-position col self-stretch"},[t.h("div",{ref:e.controlRef,class:S.value,tabindex:-1,...e.controlEvents},q()),w.value?L():null]),l.after!==void 0?t.h("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:de},l.after()):null])}}const Rn={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},{tokenMap:Tn,tokenKeys:ii}=Fn({"#":{pattern:"[\\d]",negate:"[^\\d]"},S:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]"},N:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]"},A:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:e=>e.toLocaleUpperCase()},a:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:e=>e.toLocaleLowerCase()},X:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:e=>e.toLocaleUpperCase()},x:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:e=>e.toLocaleLowerCase()}});function Fn(e){const n=Object.keys(e),o={};return n.forEach(l=>{const i=e[l];o[l]={...i,regex:new RegExp(i.pattern)}}),{tokenMap:o,tokenKeys:n}}function An(e){return new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+e.join("")+"])|(.)","g")}const Ln=/[.*+?^${}()|[\]\\]/g,ai=An(ii),le=String.fromCodePoint(1),ri={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean,maskTokens:Object};function si(e,n,o,l){let i,a,s,u,f,g;const c=t.computed(()=>{if(e.maskTokens===void 0||e.maskTokens===null)return{tokenMap:Tn,tokenRegexMask:ai};const{tokenMap:C}=Fn(e.maskTokens),y={...Tn,...C};return{tokenMap:y,tokenRegexMask:An(Object.keys(y))}}),b=t.ref(null),p=t.ref(w());function h(){return e.autogrow||["textarea","text","search","url","tel","password"].includes(e.type)}t.watch(()=>e.type+e.autogrow,d),t.watch(()=>e.mask,C=>{if(C!==void 0)S(p.value,!0);else{const y=N(p.value);d(),e.modelValue!==y&&n("update:modelValue",y)}}),t.watch(()=>e.fillMask+e.reverseFillMask,()=>{b.value&&S(p.value,!0)}),t.watch(()=>e.unmaskedValue,()=>{b.value&&S(p.value)}),t.watch(()=>e.maskTokens,()=>{b.value&&S(p.value,!0)},{deep:!0});function w(){if(d(),b.value){const C=P(N(e.modelValue));return e.fillMask!==!1?X(C):C}return e.modelValue}function A(C){if(C<i.length)return i.slice(-C);let y="",M=i;const q=M.indexOf(le);if(q!==-1){for(let V=C-M.length;V>0;V--)y+=le;M=M.slice(0,q)+y+M.slice(q)}return M}function d(){if(b.value=e.mask!==void 0&&e.mask.length!==0&&h(),!b.value){u=void 0,i="",a="";return}const C=Rn[e.mask]===void 0?e.mask:Rn[e.mask],y=typeof e.fillMask=="string"&&e.fillMask.length!==0?e.fillMask.slice(0,1):"_",M=y.replace(Ln,String.raw`\$&`),q=[],V=[],L=[];let U=e.reverseFillMask,x="",F="";C.replace(c.value.tokenRegexMask,(E,H,K,I,O)=>{if(I!==void 0){const v=c.value.tokenMap[I];L.push(v),F=v.negate,U&&(V.push("(?:"+F+"+)?("+v.pattern+"+)?(?:"+F+"+)?("+v.pattern+"+)?"),U=!1),V.push("(?:"+F+"+)?("+v.pattern+")?");return}if(K!==void 0)x="\\"+(K==="\\"?"":K),L.push(K);else{const v=H!==void 0?H:O;x=v==="\\"?String.raw`\\\\`:v.replace(Ln,String.raw`\\$&`),L.push(v)}q.push("([^"+x+"]+)?"+x+"?")});const Y=new RegExp("^"+q.join("")+"("+(x===""?".":"[^"+x+"]")+"+)?"+(x===""?"":"["+x+"]*")+"$"),Z=V.length-1,m=V.map((E,H)=>H===0&&e.reverseFillMask?new RegExp("^"+M+"*"+E):H===Z?new RegExp("^"+E+"("+(F===""?".":F)+"+)?"+(e.reverseFillMask?"$":M+"*")):new RegExp("^"+E));s=L,u=E=>{const H=Y.exec(e.reverseFillMask?E:E.slice(0,L.length+1));H!==null&&(E=H.slice(1).join(""));const K=[],I=m.length;for(let O=0,v=E;O<I;O++){const W=m[O].exec(v);if(W===null)break;v=v.slice(W.shift().length),K.push(...W)}return K.length!==0?K.join(""):E},i=L.map(E=>typeof E=="string"?E:le).join(""),a=i.split(le).join(y)}function S(C,y,M){const q=l.value,V=(q==null?void 0:q.selectionEnd)??0,L=q===null?0:q.value.length-V,U=N(C);y===!0&&d();const x=P(U,y),F=e.fillMask!==!1?X(x):x,Y=p.value!==F;q!==null&&q.value!==F&&(q.value=F),Y&&(p.value=F),q!==null&&document.activeElement===q&&t.nextTick(()=>{if(F===a){const m=e.reverseFillMask?a.length:0;q.setSelectionRange(m,m,"forward");return}if(M==="insertFromPaste"&&!e.reverseFillMask){const m=q.selectionEnd;let E=V-1;for(let H=f;H<=E&&H<m;H++)i[H]!==le&&E++;k.right(q,E);return}if(["deleteContentBackward","deleteContentForward"].includes(M)){const m=e.reverseFillMask?V===0?F.length>x.length?1:0:Math.max(0,F.length-(F===a?0:Math.min(x.length,L)+1))+1:V;q.setSelectionRange(m,m,"forward");return}if(e.reverseFillMask)if(Y){const m=Math.max(0,F.length-(F===a?0:Math.min(x.length,L+1)));m===1&&V===1?q.setSelectionRange(m,m,"forward"):k.rightReverse(q,m)}else{const m=F.length-L;q.setSelectionRange(m,m,"backward")}else if(Y){const m=Math.max(0,i.indexOf(le),Math.min(x.length,V)-1);k.right(q,m)}else{const m=V-1;k.right(q,m)}});const Z=e.unmaskedValue?N(F):F;String(e.modelValue)!==Z&&(e.modelValue!==null||Z!=="")&&o(Z,!0)}function _(C,y,M){const q=P(N(C.value));y=Math.max(0,i.indexOf(le),Math.min(q.length,y)),f=y,C.setSelectionRange(y,M,"forward")}const k={left(C,y){const M=!i.slice(y-1).includes(le);let q=Math.max(0,y-1);for(;q>=0;q--)if(i[q]===le){y=q,M&&y++;break}if(q<0&&i[y]!==void 0&&i[y]!==le)return k.right(C,0);y>=0&&C.setSelectionRange(y,y,"backward")},right(C,y){const M=C.value.length;let q=Math.min(M,y+1);for(;q<=M;q++)if(i[q]===le){y=q;break}else i[q-1]===le&&(y=q);if(q>M&&i[y-1]!==void 0&&i[y-1]!==le)return k.left(C,M);C.setSelectionRange(y,y,"forward")},leftReverse(C,y){const M=A(C.value.length);let q=Math.max(0,y-1);for(;q>=0;q--)if(M[q-1]===le){y=q;break}else if(M[q]===le&&(y=q,q===0))break;if(q<0&&M[y]!==void 0&&M[y]!==le)return k.rightReverse(C,0);y>=0&&C.setSelectionRange(y,y,"backward")},rightReverse(C,y){const M=C.value.length,q=A(M),V=!q.slice(0,y+1).includes(le);let L=Math.min(M,y+1);for(;L<=M;L++)if(q[L-1]===le){y=L,y>0&&V&&y--;break}if(L>M&&q[y-1]!==void 0&&q[y-1]!==le)return k.leftReverse(C,M);C.setSelectionRange(y,y,"forward")}};function B(C){n("click",C),g=void 0}function T(C){if(n("keydown",C),Mt(C)||C.altKey)return;const y=l.value,M=y.selectionStart,q=y.selectionEnd;if(C.shiftKey||(g=void 0),C.keyCode===37||C.keyCode===39){C.shiftKey&&g===void 0&&(g=y.selectionDirection==="forward"?M:q);const V=k[(C.keyCode===39?"right":"left")+(e.reverseFillMask?"Reverse":"")];if(C.preventDefault(),V(y,g===M?q:M),C.shiftKey){const L=y.selectionStart;y.setSelectionRange(Math.min(g,L),Math.max(g,L),"forward")}}else C.keyCode===8&&!e.reverseFillMask&&M===q?(k.left(y,M),y.setSelectionRange(y.selectionStart,q,"backward")):C.keyCode===46&&e.reverseFillMask&&M===q&&(k.rightReverse(y,q),y.setSelectionRange(M,y.selectionEnd,"forward"))}function P(C,y){if(C==null||C==="")return"";if(e.reverseFillMask)return z(C,y);const M=s;let q=0,V="";for(let L=0;L<M.length;L++){const U=C[q],x=M[L];if(typeof x=="string")V+=x,y===!0&&U===x&&q++;else if(U!==void 0&&x.regex.test(U))V+=x.transform!==void 0?x.transform(U):U,q++;else return V}return V}function z(C,y){const M=s,q=i.indexOf(le);let V=C.length-1,L="";for(let U=M.length-1;U>=0&&V!==-1;U--){const x=M[U];let F=C[V];if(typeof x=="string")L=x+L,y===!0&&F===x&&V--;else if(F!==void 0&&x.regex.test(F))do L=(x.transform!==void 0?x.transform(F):F)+L,V--,F=C[V];while(q===U&&F!==void 0&&x.regex.test(F));else return L}return L}function N(C){return typeof C!="string"||u===void 0?typeof C=="number"?u(String(C)):C:u(C)}function X(C){return a.length-C.length<=0?C:e.reverseFillMask&&C.length!==0?a.slice(0,-C.length)+C:C+a.slice(C.length)}return{innerValue:p,hasMask:b,moveCursorForPaste:_,updateMaskValue:S,onMaskedKeydown:T,onMaskedClick:B}}const It={name:String};function ui(e={}){return(n,o,l)=>{n[o](t.h("input",{class:"hidden"+(l||""),...e.value}))}}function $n(e){return t.computed(()=>e.name||e.for)}function ci(e,n){function o(){const l=e.modelValue;try{const i="DataTransfer"in window?new DataTransfer:"ClipboardEvent"in window?new ClipboardEvent("").clipboardData:void 0;return Object(l)===l&&("length"in l?[...l]:[l]).forEach(a=>{i.items.add(a)}),{files:i.files}}catch{return{files:void 0}}}return t.computed(()=>{if(e.type==="file")return o()})}const di=/[\u3000-\u303F\u3040-\u309F\u30A0-\u30FF\uFF00-\uFF9F\u4E00-\u9FAF\u3400-\u4DBF]/,fi=/[\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,mi=/[\u3131-\u314E\u314F-\u3163\uAC00-\uD7A3]/,vi=/[a-z0-9_ -]$/i;function Pn(e){return function(o){if(o.type==="compositionend"||o.type==="change"){if(!o.target.qComposing)return;o.target.qComposing=!1,e(o)}else o.type==="compositionupdate"&&!o.target.qComposing&&typeof o.data=="string"&&(fe.is.firefox?!vi.test(o.data):di.test(o.data)||fi.test(o.data)||mi.test(o.data))&&(o.target.qComposing=!0)}}const Je=ae({name:"QInput",inheritAttrs:!1,props:{...ct,...ri,...It,modelValue:[String,Number,FileList],modelModifiers:Object,shadowText:String,type:{type:String,default:"text"},debounce:[String,Number],autogrow:Boolean,inputClass:[Array,String,Object],inputStyle:[Array,String,Object]},emits:[...$t,"paste","change","keydown","click","animationend"],setup(e,{emit:n,attrs:o}){const{proxy:l}=t.getCurrentInstance(),{$q:i}=l,a={};let s=Number.NaN,u=!1,f=!1,g=null,c;const b=t.ref(null),p=$n(e),{innerValue:h,hasMask:w,moveCursorForPaste:A,updateMaskValue:d,onMaskedKeydown:S,onMaskedClick:_}=si(e,n,Y,b),k=ci(e),B=t.computed(()=>Ge(h.value)),T=Pn(x);function P(v){if(w.value&&v.type==="compositionstart"){v.target.qComposing=!0;return}T(v)}const z=Pt({changeEvent:!0}),N=t.computed(()=>e.type==="textarea"||e.autogrow),X=t.computed(()=>N.value||["text","search","url","tel","password"].includes(e.type)),C=t.computed(()=>{const v={...z.splitAttrs.listeners.value,onInput:x,onPaste:U,onChange:H,onBlur:K,onFocus:he};return v.onCompositionstart=v.onCompositionupdate=v.onCompositionend=P,w.value&&(v.onKeydown=S,v.onClick=_),e.autogrow&&(v.onAnimationend=F),v}),y=t.computed(()=>{const v={tabindex:0,"data-autofocus":e.autofocus||void 0,rows:e.type==="textarea"?6:void 0,"aria-label":e.label,name:p.value,...z.splitAttrs.attributes.value,id:z.targetUid.value,maxlength:e.maxlength,disabled:e.disable,readonly:e.readonly};return N.value||(v.type=e.type),e.autogrow&&(v.rows=1),v});t.watch(()=>e.type,()=>{b.value&&(b.value.value=e.modelValue)}),t.watch(()=>e.modelValue,v=>{var W;if(g!==null&&(Z(),u=!1,f=!1,delete a.value),w.value){if(f&&(f=!1,String(v)===s))return;d(v)}else h.value!==v&&(h.value=v,e.type==="number"&&Object.hasOwn(a,"value")&&(u?u=!1:delete a.value),((W=e.modelModifiers)==null?void 0:W.trim)===!0&&Object.hasOwn(a,"value")&&(typeof a.value!="string"||a.value.trim()!==v)&&delete a.value);e.autogrow&&t.nextTick(E)}),t.watch(()=>e.autogrow,v=>{v?t.nextTick(E):b.value!==null&&o.rows>0&&(b.value.style.height="auto")}),t.watch(()=>e.dense,()=>{e.autogrow&&t.nextTick(E)});function M(){const v=document.activeElement;b.value!==null&&b.value!==v&&(v===null||v.id!==z.targetUid.value)&&b.value.focus({preventScroll:!0})}function q(){Fe(M)}function V(){Mn(M);const v=document.activeElement;v!==null&&z.rootRef.value.contains(v)&&v.blur()}function L(){var v;(v=b.value)==null||v.select()}function U(v){if(w.value&&e.reverseFillMask!==!0){const W=v.target;A(W,W.selectionStart,W.selectionEnd)}n("paste",v)}function x(v){var j;if(!v||!v.target)return;if(e.type==="file"){n("update:modelValue",v.target.files);return}const W=v.target.value;if(v.target.qComposing){a.value=W;return}if(w.value)d(W,!1,v.inputType);else if(((j=e.modelModifiers)==null?void 0:j.trim)===!0&&(a.value=W),Y(W),X.value&&v.target===document.activeElement){const{selectionStart:D,selectionEnd:oe}=v.target;D!==void 0&&oe!==void 0&&t.nextTick(()=>{v.target===document.activeElement&&W.indexOf(v.target.value)===0&&v.target.setSelectionRange(D,oe)})}e.autogrow&&E()}function F(v){n("animationend",v),E()}function Y(v,W){c=()=>{var j;g=null,e.type!=="number"&&(((j=e.modelModifiers)==null?void 0:j.trim)!==!0||w.value)&&Object.hasOwn(a,"value")&&delete a.value,e.modelValue!==v&&s!==v&&(s=v,W===!0&&(f=!0),n("update:modelValue",v),t.nextTick(()=>{s===v&&(s=Number.NaN)})),c=void 0},e.type==="number"&&(u=!0,a.value=v),e.debounce!==void 0?(g!==null&&clearTimeout(g),a.value=v,g=setTimeout(c,e.debounce)):c()}function Z(){g!==null&&(clearTimeout(g),g=null),c=void 0}function m(){Z(),u=!1,f=!1,delete a.value}function E(){requestAnimationFrame(()=>{const v=b.value;if(v!==null){const W=v.parentNode.style,{scrollTop:j}=v,{overflowY:D,maxHeight:oe}=i.platform.is.firefox?{}:window.getComputedStyle(v),be=D!==void 0&&D!=="scroll";be&&(v.style.overflowY="hidden"),W.marginBottom=v.scrollHeight-1+"px",v.style.height="1px",v.style.height=v.scrollHeight+"px",be&&(v.style.overflowY=Number.parseInt(oe,10)<v.scrollHeight?"auto":"hidden"),W.marginBottom="",v.scrollTop=j}})}function H(v){P(v),g!==null&&(clearTimeout(g),g=null),c==null||c(),n("change",v.target.value)}function K(v){v!==void 0&&he(v),g!==null&&(clearTimeout(g),g=null),c==null||c(),u=!1,f=!1,delete a.value,e.type!=="file"&&setTimeout(()=>{b.value!==null&&(b.value.value=h.value!==void 0?h.value:"")},0)}function I(){return Object.hasOwn(a,"value")?a.value:h.value!==void 0?h.value:""}t.onBeforeUnmount(()=>{K()}),t.onMounted(()=>{e.autogrow&&E()}),Object.assign(z,{innerValue:h,fieldClass:t.computed(()=>`q-${N.value?"textarea":"input"}`+(e.autogrow?" q-textarea--autogrow":"")),hasShadow:t.computed(()=>e.type!=="file"&&typeof e.shadowText=="string"&&e.shadowText.length!==0),inputRef:b,emitValue:Y,onClear:m,hasValue:B,floatingLabel:t.computed(()=>B.value&&(e.type!=="number"||Number.isFinite(Number(h.value)))||Ge(e.displayValue)),getControl:()=>t.h(N.value?"textarea":"input",{ref:b,class:["q-field__native q-placeholder",e.inputClass],style:e.inputStyle,...y.value,...C.value,...e.type!=="file"?{value:I()}:k.value}),getShadowControl:()=>t.h("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(N.value?"":" text-no-wrap")},[t.h("span",{class:"invisible"},I()),t.h("span",e.shadowText)])});const O=Ot(z);return Object.assign(l,{focus:q,blur:V,select:L,getNativeElement:()=>b.value}),Ue(l,"nativeEl",()=>b.value),O}}),gi=t.defineComponent({__name:"UInput",props:{fieldLabel:{},labelPosition:{default:"top"},labelWidth:{},modelValue:{},outlined:{type:Boolean,default:!0},dense:{type:Boolean,default:!0},filled:{type:Boolean},borderless:{type:Boolean},label:{},hint:{},error:{type:Boolean},errorMessage:{},type:{},placeholder:{},disable:{type:Boolean},readonly:{type:Boolean},prefix:{},suffix:{},mask:{}},emits:["update:modelValue"],setup(e,{emit:n}){const o=e,l=n,i=t.computed(()=>o.labelPosition==="left"?{width:typeof o.labelWidth=="number"?`${o.labelWidth}px`:o.labelWidth}:{}),a=t.computed(()=>({"u-input-label-left":o.labelPosition==="left","u-input-label-top":o.labelPosition==="top"})),s=f=>{l("update:modelValue",f)},u=t.computed(()=>{const f=["fieldLabel","labelPosition","labelWidth","modelValue"],g={};for(const c in o)!f.includes(c)&&c!=="modelValue"&&(g[c]=o[c]);return g});return(f,g)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["u-input",a.value])},[e.fieldLabel?(t.openBlock(),t.createElementBlock("div",{key:0,class:"u-input-label",style:t.normalizeStyle(i.value)},t.toDisplayString(e.fieldLabel),5)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["u-input-field",{"q-mt-xs":e.labelPosition==="top"}])},[t.createVNode(Je,t.mergeProps({outlined:"","model-value":e.modelValue},u.value,{"onUpdate:modelValue":s}),null,16,["model-value"])],2)],2))}}),zt=(e,n)=>{const o=e.__vccOpts||e;for(const[l,i]of n)o[l]=i;return o},hi=zt(gi,[["__scopeId","data-v-52ab7cd5"]]),pi=ae({name:"QField",inheritAttrs:!1,props:{...ct,tag:{type:String,default:"label"}},emits:$t,setup(){return Ot(Pt({tagProp:!0}))}});function On(e){e.keyCode===32&&ee(e)}const bi={xs:8,sm:10,md:14,lg:20,xl:24},yi=ae({name:"QChip",props:{...Xe,...at,dense:Boolean,icon:String,iconRight:String,iconRemove:String,iconSelected:String,label:[String,Number],color:String,textColor:String,modelValue:{type:Boolean,default:!0},selected:{type:Boolean,default:null},square:Boolean,outline:Boolean,clickable:Boolean,removable:Boolean,removeAriaLabel:String,tabindex:[String,Number],disable:Boolean,ripple:{type:[Boolean,Object],default:!0}},emits:["update:modelValue","update:selected","remove","click"],setup(e,{slots:n,emit:o}){const{proxy:{$q:l}}=t.getCurrentInstance(),i=Ye(e,l),a=rt(e,bi),s=t.computed(()=>e.selected||e.icon!==void 0),u=t.computed(()=>e.selected?e.iconSelected||l.iconSet.chip.selected:e.icon),f=t.computed(()=>e.iconRemove||l.iconSet.chip.remove),g=t.computed(()=>!e.disable&&(e.clickable||e.selected!==null)),c=t.computed(()=>{const d=e.outline&&e.color||e.textColor;return"q-chip row inline no-wrap items-center"+(!e.outline&&e.color!==void 0?` bg-${e.color}`:"")+(d?` text-${d} q-chip--colored`:"")+(e.disable?" disabled":"")+(e.dense?" q-chip--dense":"")+(e.outline?" q-chip--outline":"")+(e.selected?" q-chip--selected":"")+(g.value?" q-chip--clickable cursor-pointer non-selectable q-hoverable":"")+(e.square?" q-chip--square":"")+(i.value?" q-chip--dark q-dark":"")}),b=t.computed(()=>{const d=e.disable?{tabindex:-1,"aria-disabled":"true"}:{tabindex:e.tabindex||0,role:"button","aria-pressed":e.selected?"true":"false"},S={...d,role:"button","aria-hidden":"false","aria-label":e.removeAriaLabel||l.lang.label.remove};return{chip:d,remove:S}});function p(d){[13,32].includes(d.keyCode)&&(h(d),ee(d))}function h(d){e.disable||(o("update:selected",!e.selected),o("click",d))}function w(d){(d.keyCode===void 0||[13,32].includes(d.keyCode))&&(ee(d),e.disable||(o("update:modelValue",!1),o("remove")))}function A(){const d=[];g.value&&d.push(t.h("div",{class:"q-focus-helper"})),s.value&&d.push(t.h(ge,{class:"q-chip__icon q-chip__icon--left",name:u.value}));const S=e.label!==void 0?[t.h("div",{class:"ellipsis"},[e.label])]:void 0;return d.push(t.h("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},Ll(n.default,S))),e.iconRight&&d.push(t.h(ge,{class:"q-chip__icon q-chip__icon--right",name:e.iconRight})),e.removable&&d.push(t.h(ge,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:f.value,...b.value.remove,onClick:w,onKeydown:On,onKeyup:w})),d}return()=>{if(!e.modelValue)return;const d={class:c.value,style:a.value};return g.value&&Object.assign(d,b.value.chip,{onClick:h,onKeydown:On,onKeyup:p}),$l("div",d,A(),"ripple",e.ripple!==!1&&!e.disable,()=>[[cn,e.ripple]])}}}),wi=ae({name:"QItem",props:{...Xe,...to,tag:{type:String,default:"div"},active:{type:Boolean,default:null},clickable:Boolean,dense:Boolean,insetLevel:Number,tabindex:[String,Number],focused:Boolean,manualFocus:Boolean},emits:["click","keyup"],setup(e,{slots:n,emit:o}){const{proxy:{$q:l}}=t.getCurrentInstance(),i=Ye(e,l),{hasLink:a,linkAttrs:s,linkClass:u,linkTag:f,navigateOnClick:g}=bn(),c=t.ref(null),b=t.ref(null),p=t.computed(()=>e.clickable||a.value||e.tag==="label"),h=t.computed(()=>!e.disable&&p.value),w=t.computed(()=>"q-item q-item-type row no-wrap"+(e.dense?" q-item--dense":"")+(i.value?" q-item--dark":"")+(a.value&&e.active===null?u.value:e.active?` q-item--active${e.activeClass!==void 0?` ${e.activeClass}`:""}`:"")+(e.disable?" disabled":"")+(h.value?" q-item--clickable q-link cursor-pointer "+(e.manualFocus?"q-manual-focusable":"q-focusable q-hoverable")+(e.focused?" q-manual-focusable--focused":""):"")),A=t.computed(()=>e.insetLevel===void 0?null:{["padding"+(l.lang.rtl?"Right":"Left")]:16+e.insetLevel*56+"px"});function d(B){h.value&&(b.value!==null&&!B.qAvoidFocus&&(!B.qKeyEvent&&document.activeElement===c.value?b.value.focus({preventScroll:!0}):document.activeElement===b.value&&c.value.focus({preventScroll:!0})),g(B))}function S(B){if(h.value&&ke(B,[13,32])){ee(B),B.qKeyEvent=!0;const T=new MouseEvent("click",B);T.qKeyEvent=!0,c.value.dispatchEvent(T)}o("keyup",B)}function _(B){h.value&&B.keyCode===32&&ee(B)}function k(){const B=Al(n.default,[]);return h.value&&B.unshift(t.h("div",{class:"q-focus-helper",tabindex:-1,ref:b})),B}return()=>{const B={ref:c,class:w.value,style:A.value,role:a.value?void 0:h.value?"button":"listitem",onClick:d,onKeydown:_,onKeyup:S};return h.value?(B.tabindex=e.tabindex||"0",Object.assign(B,s.value)):p.value&&(B["aria-disabled"]="true"),t.h(f.value,B,k())}}}),ki=ae({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(e,{slots:n}){const o=t.computed(()=>`q-item__section column q-item__section--${e.avatar||e.side||e.thumbnail?"side":"main"}`+(e.top?" q-item__section--top justify-start":" justify-center")+(e.avatar?" q-item__section--avatar":"")+(e.thumbnail?" q-item__section--thumbnail":"")+(e.noWrap?" q-item__section--nowrap":""));return()=>t.h("div",{class:o.value},ve(n.default))}}),Si=ae({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(e,{slots:n}){const o=t.computed(()=>Number.parseInt(e.lines,10)),l=t.computed(()=>"q-item__label"+(e.overline?" q-item__label--overline text-overline":"")+(e.caption?" q-item__label--caption text-caption":"")+(e.header?" q-item__label--header":"")+(o.value===1?" ellipsis":"")),i=t.computed(()=>e.lines!==void 0&&o.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":o.value}:null);return()=>t.h("div",{style:i.value,class:l.value},ve(n.default))}});function xi(){if(window.getSelection!==void 0){const e=window.getSelection();e.empty!==void 0?e.empty():e.removeAllRanges!==void 0&&(e.removeAllRanges(),At.is.mobile||e.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}const Ci={...{target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},contextMenu:Boolean};function Ei({showing:e,avoidEmit:n,configureAnchorEl:o}){const{props:l,proxy:i,emit:a}=t.getCurrentInstance(),s=t.ref(null);let u=null;function f(h){return s.value===null?!1:h===void 0||h.touches===void 0||h.touches.length<=1}const g={};o===void 0&&(Object.assign(g,{hide(h){i.hide(h)},toggle(h){i.toggle(h),h.qAnchorHandled=!0},toggleKey(h){ke(h,13)&&g.toggle(h)},contextClick(h){i.hide(h),de(h),t.nextTick(()=>{i.show(h),h.qAnchorHandled=!0})},prevent:de,mobileTouch(h){if(g.mobileCleanup(h),!f(h))return;i.hide(h),s.value.classList.add("non-selectable");const w=h.target;Bt(g,"anchor",[[w,"touchmove","mobileCleanup","passive"],[w,"touchend","mobileCleanup","passive"],[w,"touchcancel","mobileCleanup","passive"],[s.value,"contextmenu","prevent","notPassive"]]),u=setTimeout(()=>{u=null,i.show(h),h.qAnchorHandled=!0},300)},mobileCleanup(h){s.value.classList.remove("non-selectable"),u!==null&&(clearTimeout(u),u=null),e.value&&h!==void 0&&xi()}}),o=function(w=l.contextMenu){if(l.noParentEvent||s.value===null)return;const A=w?i.$q.platform.is.mobile?[[s.value,"touchstart","mobileTouch","passive"]]:[[s.value,"mousedown","hide","passive"],[s.value,"contextmenu","contextClick","notPassive"]]:[[s.value,"click","toggle","passive"],[s.value,"keyup","toggleKey","passive"]];Bt(g,"anchor",A)});function c(){rn(g,"anchor")}function b(h){for(s.value=h;s.value.classList.contains("q-anchor--skip");)s.value=s.value.parentNode;o()}function p(){if(l.target===!1||l.target===""||i.$el.parentNode===null)s.value=null;else if(l.target===!0)b(i.$el.parentNode);else{let h=l.target;if(typeof l.target=="string")try{h=document.querySelector(l.target)}catch{h=void 0}h!=null?(s.value=h.$el||h,o()):(s.value=null,console.error(`Anchor: target "${l.target}" not found`))}}return t.watch(()=>l.contextMenu,h=>{s.value!==null&&(c(),o(h))}),t.watch(()=>l.target,()=>{s.value!==null&&c(),p()}),t.watch(()=>l.noParentEvent,h=>{s.value!==null&&(h?c():o())}),t.onMounted(()=>{p(),!n&&l.modelValue&&s.value===null&&a("update:modelValue",!1)}),t.onBeforeUnmount(()=>{u!==null&&clearTimeout(u),c()}),{anchorEl:s,canShow:f,anchorEvents:g}}function qi(e,n){const o=t.ref(null);let l;function i(u,f){const g=`${f!==void 0?"add":"remove"}EventListener`,c=f!==void 0?f:l;u!==window&&u[g]("scroll",c,re.passive),window[g]("scroll",c,re.passive),l=f}function a(){o.value!==null&&(i(o.value),o.value=null)}const s=t.watch(()=>e.noParentEvent,()=>{o.value!==null&&(a(),n())});return t.onBeforeUnmount(s),{localScrollTarget:o,unconfigureScrollTarget:a,changeScrollEvent:i}}const In={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},zn=["beforeShow","show","beforeHide","hide"];function Dn({showing:e,canShow:n,hideOnRouteChange:o,handleShow:l,handleHide:i,handleRouteChange:a,processOnMount:s}){const u=t.getCurrentInstance(),{props:f,emit:g,proxy:c}=u;let b;function p(k){e.value?A(k):h(k)}function h(k){if(f.disable||(k==null?void 0:k.qAnchorHandled)===!0||n!==void 0&&!n(k))return;const B=f["onUpdate:modelValue"]!==void 0;B&&(g("update:modelValue",!0),b=k,t.nextTick(()=>{b===k&&(b=void 0)})),(f.modelValue===null||!B)&&w(k)}function w(k){e.value||(e.value=!0,g("beforeShow",k),l!==void 0?l(k):g("show",k))}function A(k){if(f.disable)return;const B=f["onUpdate:modelValue"]!==void 0;B&&(g("update:modelValue",!1),b=k,t.nextTick(()=>{b===k&&(b=void 0)})),(f.modelValue===null||!B)&&d(k)}function d(k){e.value&&(e.value=!1,g("beforeHide",k),i!==void 0?i(k):g("hide",k))}function S(k){f.disable&&k?f["onUpdate:modelValue"]!==void 0&&g("update:modelValue",!1):k===!0!==e.value&&(k?w:d)(b)}t.watch(()=>f.modelValue,S),o!==void 0&&fn(u)&&t.watch(()=>c.$route.fullPath,()=>{o.value&&e.value&&(a==null||a(),A())}),t.onMounted(()=>{S(f.modelValue)});const _={show:h,hide:A,toggle:p};return Object.assign(c,_),_}const Ae=[];function Vi(e,n){do{if(e.$options.name==="QMenu"){if(e.hide(n),e.$props.separateClosePopup)return Rt(e)}else if(e.__qPortal){const o=Rt(e);return(o==null?void 0:o.$options.name)==="QPopupProxy"?(e.hide(n),o):e}e=Rt(e)}while(e!=null)}const Nn={};let _i=1,Bi=document.body;function Mi(e,n){const o=document.createElement("div");if(o.id=n!==void 0?`q-portal--${n}--${_i++}`:e,Nn.globalNodes!==void 0){const l=Nn.globalNodes.class;l!==void 0&&(o.className=l)}return Bi.append(o),o}function Ri(e){e.remove()}const Ti=ae({name:"QPortal",setup(e,{slots:n}){return()=>n.default()}});function Fi(e){for(e=e.parent;e!=null;){if(e.type.name==="QGlobalDialog")return!0;if(e.type.name==="QDialog"||e.type.name==="QMenu")return!1;e=e.parent}return!1}function Hn(e,n,o,l){const i=t.ref(!1),a=t.ref(!1);let s=null;const u={},f=l==="dialog"&&Fi(e);function g(b){if(b){Bn(u),a.value=!0;return}a.value=!1,i.value||(!f&&s===null&&(s=Mi(!1,l)),i.value=!0,Ae.push(e.proxy),oi(u))}function c(b){if(a.value=!1,!b)return;Bn(u),i.value=!1;const p=Ae.indexOf(e.proxy);p!==-1&&Ae.splice(p,1),s!==null&&(Ri(s),s=null)}return t.onUnmounted(()=>{c(!0)}),e.proxy.__qPortal=!0,Ue(e.proxy,"contentEl",()=>n.value),{showPortal:g,hidePortal:c,portalIsActive:i,portalIsAccessible:a,renderPortal:()=>f?o():i.value?[t.h(t.Teleport,{to:s},t.h(Ti,o))]:void 0}}const Wn={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function jn(e,n=()=>{},o=()=>{}){return{transitionProps:t.computed(()=>{const l=`q-transition--${e.transitionShow||n()}`,i=`q-transition--${e.transitionHide||o()}`;return{appear:!0,enterFromClass:`${l}-enter-from`,enterActiveClass:`${l}-enter-active`,enterToClass:`${l}-enter-to`,leaveFromClass:`${i}-leave-from`,leaveActiveClass:`${i}-leave-active`,leaveToClass:`${i}-leave-to`}}),transitionStyle:t.computed(()=>`--q-transition-duration: ${e.transitionDuration}ms`)}}function Un(){let e;const n=t.getCurrentInstance();function o(){e=void 0}return t.onDeactivated(o),t.onBeforeUnmount(o),{removeTick:o,registerTick(l){e=l,t.nextTick(()=>{e===l&&(mn(n)||e(),e=void 0)})}}}function Kn(){let e=null;const n=t.getCurrentInstance();function o(){e!==null&&(clearTimeout(e),e=null)}return t.onDeactivated(o),t.onBeforeUnmount(o),{removeTimeout:o,registerTimeout(l,i){o(),mn(n)||(e=setTimeout(()=>{e=null,l()},i))}}}const Ai=[Element,String],Li=[null,document,document.body,document.scrollingElement,document.documentElement];function $i(e,n){let o=Ul(n);if(o===void 0){if(e==null)return window;o=e.closest(".scroll,.scroll-y,.overflow-auto")}return Li.includes(o)?window:o}function Pi(e){return e===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:e.scrollTop}function Oi(e){return e===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:e.scrollLeft}let ft;function Ii(){if(ft!==void 0)return ft;const e=document.createElement("p"),n=document.createElement("div");Vt(e,{width:"100%",height:"200px"}),Vt(n,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),n.append(e),document.body.append(n);const o=e.offsetWidth;n.style.overflow="scroll";let l=e.offsetWidth;return o===l&&(l=n.clientWidth),n.remove(),ft=o-l,ft}const Le=[];let $e;function zi(e){e.keyCode===27&&($e=!0)}function Di(){$e&&($e=!1)}function Ni(e){$e&&ke(e,27)&&($e=!1,Le.at(-1)(e))}function Qn(e){window[e]("keydown",zi),window[e]("blur",Di),window[e]("keyup",Ni),$e=!1}function Xn(e){fe.is.desktop&&(Le.push(e),Le.length===1&&Qn("addEventListener"))}function mt(e){const n=Le.indexOf(e);n!==-1&&(Le.splice(n,1),Le.length===0&&Qn("removeEventListener"))}const Pe=[];function Yn(e){Pe.at(-1)(e)}function Zn(e){fe.is.desktop&&(Pe.push(e),Pe.length===1&&document.body.addEventListener("focusin",Yn))}function Dt(e){const n=Pe.indexOf(e);n!==-1&&(Pe.splice(n,1),Pe.length===0&&document.body.removeEventListener("focusin",Yn))}const{notPassiveCapture:vt}=re,Se=[];function gt(e){const n=e.target;if(n===void 0||n.nodeType===8||n.classList.contains("no-pointer-events"))return;let o=null,l=!1;for(let i=Ae.length-1;i>=0;i--){const a=Ae[i].$,s=a.type.name;if(s!=="QTooltip"){if(s==="QDialog"){if(a.props.seamless!==!0){if(l===!1)return;o=new Set(Ae.slice(i+1).map(u=>u.contentEl));break}continue}l=!0}}for(let i=Se.length-1;i>=0;i--){const a=Se[i];if(o!==null&&!o.has(a.innerRef.value))return;if((a.anchorEl.value===null||!a.anchorEl.value.contains(n))&&(n===document.body||a.innerRef.value!==null&&!a.innerRef.value.contains(n)))e.qClickOutside=!0,a.onClickOutside(e);else return}}function Hi(e){Se.push(e),Se.length===1&&(document.addEventListener("mousedown",gt,vt),document.addEventListener("touchstart",gt,vt))}function Gn(e){const n=Se.indexOf(e);n!==-1&&(Se.splice(n,1),Se.length===0&&(document.removeEventListener("mousedown",gt,vt),document.removeEventListener("touchstart",gt,vt)))}const Wi=new Map;function Jn(e){for(const[n,o]of Wi)if(o.$el.contains(e)===!0)return n}function el(e,n){if(e==null)return!1;const o=new Set;for(let l=Jn(n);l!==void 0&&o.has(l)===!1;l=Jn(l)){if(_t(e,l)===!0)return!0;o.add(l)}return!1}let tl,nl;const ji=["top","center","bottom"],Ui=["left","middle","right","start","end"];function ll(e){const n=e.split(" ");return n.length!==2?!1:ji.includes(n[0])?Ui.includes(n[1])?!0:(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1):(console.error("Anchor/Self position must start with one of top/center/bottom"),!1)}function Ki(e){return e?!(e.length!==2||typeof e[0]!="number"||typeof e[1]!="number"):!0}const Nt={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(e=>{Nt[`${e}#ltr`]=e,Nt[`${e}#rtl`]=e});function ol(e,n){const o=e.split(" ");return{vertical:o[0],horizontal:Nt[`${o[1]}#${n?"rtl":"ltr"}`]}}function Qi(e,n){let{top:o,left:l,right:i,bottom:a,width:s,height:u}=e.getBoundingClientRect();return n!==void 0&&(o-=n[1],l-=n[0],a+=n[1],i+=n[0],s+=n[0],u+=n[1]),{top:o,bottom:a,height:u,left:l,right:i,width:s,middle:l+(i-l)/2,center:o+(a-o)/2}}function Xi(e,n,o){let{top:l,left:i}=e.getBoundingClientRect();return l+=n.top,i+=n.left,o!==void 0&&(l+=o[1],i+=o[0]),{top:l,bottom:l+1,height:1,left:i,right:i+1,width:1,middle:i,center:l}}function Yi(e,n){return{top:0,center:n/2,bottom:n,left:0,middle:e/2,right:e}}function il(e,n,o,l){return{top:e[o.vertical]-n[l.vertical],left:e[o.horizontal]-n[l.horizontal]}}function al(e,n=0){if(e.targetEl===null||e.anchorEl===null||n>5)return;if(e.targetEl.offsetHeight===0||e.targetEl.offsetWidth===0){setTimeout(()=>{al(e,n+1)},10);return}const{targetEl:o,offset:l,anchorEl:i,anchorOrigin:a,selfOrigin:s,absoluteOffset:u,fit:f,cover:g,maxHeight:c,maxWidth:b}=e;if(fe.is.ios&&window.visualViewport!==void 0){const P=document.body.style,{offsetLeft:z,offsetTop:N}=window.visualViewport;z!==tl&&(P.setProperty("--q-pe-left",z+"px"),tl=z),N!==nl&&(P.setProperty("--q-pe-top",N+"px"),nl=N)}const{scrollLeft:p,scrollTop:h}=o,w=u===void 0?Qi(i,g?[0,0]:l):Xi(i,u,l);Object.assign(o.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:b,maxHeight:c,visibility:"visible"});const{offsetWidth:A,offsetHeight:d}=o,{elWidth:S,elHeight:_}=f||g?{elWidth:Math.max(w.width,A),elHeight:g?Math.max(w.height,d):d}:{elWidth:A,elHeight:d};let k={maxWidth:b,maxHeight:c};(f||g)&&(k.minWidth=w.width+"px",g&&(k.minHeight=w.height+"px")),Object.assign(o.style,k);const B=Yi(S,_);let T=il(w,B,a,s);if(u===void 0||l===void 0)Ht(T,w,B,a,s);else{const{top:P,left:z}=T;Ht(T,w,B,a,s);let N=!1;if(T.top!==P){N=!0;const X=2*l[1];w.center=w.top-=X,w.bottom-=X+2}if(T.left!==z){N=!0;const X=2*l[0];w.middle=w.left-=X,w.right-=X+2}N&&(T=il(w,B,a,s),Ht(T,w,B,a,s))}k={top:T.top+"px",left:T.left+"px"},T.maxHeight!==void 0&&(k.maxHeight=T.maxHeight+"px",w.height>T.maxHeight&&(k.minHeight=k.maxHeight)),T.maxWidth!==void 0&&(k.maxWidth=T.maxWidth+"px",w.width>T.maxWidth&&(k.minWidth=k.maxWidth)),Object.assign(o.style,k),o.scrollTop!==h&&(o.scrollTop=h),o.scrollLeft!==p&&(o.scrollLeft=p)}function Ht(e,n,o,l,i){const a=o.bottom,s=o.right,u=Ii(),f=window.innerHeight-u,g=document.body.clientWidth;if(e.top<0||e.top+a>f)if(i.vertical==="center")e.top=n[l.vertical]>f/2?Math.max(0,f-a):0,e.maxHeight=Math.min(a,f);else if(n[l.vertical]>f/2){const c=Math.min(f,l.vertical==="center"?n.center:l.vertical===i.vertical?n.bottom:n.top);e.maxHeight=Math.min(a,c),e.top=Math.max(0,c-a)}else e.top=Math.max(0,l.vertical==="center"?n.center:l.vertical===i.vertical?n.top:n.bottom),e.maxHeight=Math.min(a,f-e.top);if(e.left<0||e.left+s>g)if(e.maxWidth=Math.min(s,g),i.horizontal==="middle")e.left=n[l.horizontal]>g/2?Math.max(0,g-s):0;else if(n[l.horizontal]>g/2){const c=Math.min(g,l.horizontal==="middle"?n.middle:l.horizontal===i.horizontal?n.right:n.left);e.maxWidth=Math.min(s,c),e.left=Math.max(0,c-e.maxWidth)}else e.left=Math.max(0,l.horizontal==="middle"?n.middle:l.horizontal===i.horizontal?n.left:n.right),e.maxWidth=Math.min(s,g-e.left)}const Zi=ae({name:"QMenu",inheritAttrs:!1,props:{...Ci,...In,...Xe,...Wn,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noEscDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:ll},self:{type:String,validator:ll},offset:{type:Array,validator:Ki},scrollTarget:Ai,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...zn,"click","escapeKey"],setup(e,{slots:n,emit:o,attrs:l}){let i=null,a,s,u;const f=t.getCurrentInstance(),{proxy:g}=f,{$q:c}=g,b=t.ref(null),p=t.ref(!1),h=t.computed(()=>!e.persistent&&!e.noRouteDismiss),w=Ye(e,c),{registerTick:A,removeTick:d}=Un(),{registerTimeout:S}=Kn(),{transitionProps:_,transitionStyle:k}=jn(e),{localScrollTarget:B,changeScrollEvent:T,unconfigureScrollTarget:P}=qi(e,K),{anchorEl:z,canShow:N}=Ei({showing:p}),{hide:X}=Dn({showing:p,canShow:N,handleShow:Z,handleHide:m,handleRouteChange:E,hideOnRouteChange:h,processOnMount:!0}),{showPortal:C,hidePortal:y,renderPortal:M}=Hn(f,b,j,"menu"),q={anchorEl:z,innerRef:b,onClickOutside(D){if(!e.persistent&&p.value)return X(D),(D.type==="touchstart"||D.target.classList.contains("q-dialog__backdrop"))&&ee(D),!0}},V=t.computed(()=>ol(e.anchor||(e.cover?"center middle":"bottom start"),c.lang.rtl)),L=t.computed(()=>e.cover?V.value:ol(e.self||"top start",c.lang.rtl)),U=t.computed(()=>(e.square?" q-menu--square":"")+(w.value?" q-menu--dark q-dark":"")),x=t.computed(()=>e.autoClose?{onClick:I}:{}),F=t.computed(()=>p.value&&!e.persistent);t.watch(F,D=>{D?(Xn(v),Hi(q)):(mt(v),Gn(q))});function Y(){Fe(()=>{let D=b.value;D&&!D.contains(document.activeElement)&&(D=D.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||D.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||D.querySelector("[autofocus], [data-autofocus]")||D,D.focus({preventScroll:!0}))})}function Z(D){if(i=e.noRefocus?null:document.activeElement,Zn(O),C(),K(),a=void 0,D!==void 0&&(e.touchPosition||e.contextMenu)){const oe=an(D);if(oe.left!==void 0){const{top:be,left:se}=z.value.getBoundingClientRect();a={left:oe.left-se,top:oe.top-be}}}s===void 0&&(s=t.watch(()=>c.screen.width+"|"+c.screen.height+"|"+e.self+"|"+e.anchor+"|"+c.lang.rtl,W)),e.noFocus||document.activeElement.blur(),A(()=>{W(),e.noFocus||Y()}),S(()=>{c.platform.is.ios&&(u=e.autoClose,b.value.click()),W(),C(!0),o("show",D)},e.transitionDuration)}function m(D){if(d(),y(),H(!0),i!==null&&(D===void 0||!D.qClickOutside)){const oe=((D==null?void 0:D.type.indexOf("key"))===0?i.closest('[tabindex]:not([tabindex^="-"])'):void 0)||i;i=null,Fe(()=>{oe.isConnected&&oe.focus({preventScroll:!0})})}S(()=>{y(!0),o("hide",D)},e.transitionDuration)}function E(){i=null}function H(D){a=void 0,s!==void 0&&(s(),s=void 0),(D||p.value)&&(Dt(O),P(),Gn(q),mt(v)),D||(i=null)}function K(){(z.value!==null||e.scrollTarget!==void 0)&&(B.value=$i(z.value,e.scrollTarget),T(B.value,W))}function I(D){u?u=!1:(Vi(g,D),o("click",D))}function O(D){F.value&&!e.noFocus&&!_t(b.value,D.target)&&!el(b.value,D.target)&&Y()}function v(D){e.noEscDismiss||(o("escapeKey"),X(D))}function W(){al({targetEl:b.value,offset:e.offset,anchorEl:z.value,anchorOrigin:V.value,selfOrigin:L.value,absoluteOffset:a,fit:e.fit,cover:e.cover,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function j(){return t.h(t.Transition,_.value,()=>p.value?t.h("div",{role:"menu",...l,ref:b,tabindex:-1,class:["q-menu q-position-engine scroll"+U.value,l.class],style:[l.style,k.value],...x.value},ve(n.default)):null)}return t.onBeforeUnmount(()=>{H()}),Object.assign(g,{focus:Y,updatePosition:W}),M}});function Gi(e,n,o){function l(){}return t.onBeforeUnmount(()=>{e.value}),{removeFromHistory:l,addToHistory(){}}}let et=0,Wt,jt,tt,Ut=!1,rl,sl,ul,xe=null;function cl(e){e.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function ht(e){Ut||(Ut=!0,requestAnimationFrame(()=>{Ut=!1;const{height:n}=e.target,{clientHeight:o,scrollTop:l}=document.scrollingElement;(tt===void 0||n!==window.innerHeight)&&(tt=o-n,document.scrollingElement.scrollTop=l),l>tt&&(document.scrollingElement.scrollTop-=Math.ceil((l-tt)/8))}))}function dl(e){const n=document.body,o=window.visualViewport!==void 0;if(e==="add"){const{overflowY:l,overflowX:i}=window.getComputedStyle(n);Wt=Oi(window),jt=Pi(window),rl=n.style.left,sl=n.style.top,ul=window.location.pathname,n.style.left=`-${Wt}px`,n.style.top=`-${jt}px`,i!=="hidden"&&(i==="scroll"||n.scrollWidth>window.innerWidth)&&n.classList.add("q-body--force-scrollbar-x"),l!=="hidden"&&(l==="scroll"||n.scrollHeight>window.innerHeight)&&n.classList.add("q-body--force-scrollbar-y"),document.documentElement.classList.add("q-document--prevent-scroll"),document.qScrollPrevented=!0,fe.is.ios&&(o?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",ht,re.passiveCapture),window.visualViewport.addEventListener("scroll",ht,re.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",cl,re.passiveCapture))}else fe.is.ios&&(o?(window.visualViewport.removeEventListener("resize",ht,re.passiveCapture),window.visualViewport.removeEventListener("scroll",ht,re.passiveCapture)):window.removeEventListener("scroll",cl,re.passiveCapture)),document.documentElement.classList.remove("q-document--prevent-scroll"),n.classList.remove("q-body--force-scrollbar-x","q-body--force-scrollbar-y"),document.qScrollPrevented=!1,n.style.left=rl,n.style.top=sl,window.location.pathname===ul&&window.scrollTo(Wt,jt),tt=void 0}function Ji(e){let n="add";if(e===!0){if(et++,xe!==null){clearTimeout(xe),xe=null;return}if(et>1)return}else{if(et===0||(et--,et>0))return;if(n="remove",fe.is.ios&&fe.is.nativeMobile){xe!==null&&clearTimeout(xe),xe=setTimeout(()=>{dl(n),xe=null},100);return}}dl(n)}function ea(){let e;return{preventBodyScroll(n){n!==e&&(e!==void 0||n)&&(e=n,Ji(n))}}}let pt=0;const ta={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"},fl={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},na=ae({name:"QDialog",inheritAttrs:!1,props:{...In,...Wn,transitionShow:String,transitionHide:String,persistent:Boolean,autoClose:Boolean,allowFocusOutside:Boolean,noEscDismiss:Boolean,noBackdropDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,noShake:Boolean,seamless:Boolean,maximized:Boolean,fullWidth:Boolean,fullHeight:Boolean,square:Boolean,backdropFilter:String,position:{type:String,default:"standard",validator:e=>["standard","top","bottom","left","right"].includes(e)}},emits:[...zn,"shake","click","escapeKey"],setup(e,{slots:n,emit:o,attrs:l}){const i=t.getCurrentInstance(),a=t.ref(null),s=t.ref(!1),u=t.ref(!1);let f=null,g=null,c=!1,b=!1;const p=t.computed(()=>!e.persistent&&!e.noRouteDismiss&&!e.seamless),{preventBodyScroll:h}=ea(),{registerTimeout:w}=Kn(),{registerTick:A,removeTick:d}=Un(),{transitionProps:S,transitionStyle:_}=jn(e,()=>fl[e.position][0],()=>fl[e.position][1]),k=t.computed(()=>_.value+(e.backdropFilter!==void 0?`;backdrop-filter:${e.backdropFilter};-webkit-backdrop-filter:${e.backdropFilter}`:"")),{showPortal:B,hidePortal:T,portalIsAccessible:P,renderPortal:z}=Hn(i,a,K,"dialog"),{hide:N}=Dn({showing:s,hideOnRouteChange:p,handleShow:q,handleHide:V,handleRouteChange:L,processOnMount:!0});Gi(s);const X=t.computed(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${e.maximized?"maximized":"minimized"} q-dialog__inner--${e.position} ${ta[e.position]}`+(u.value?" q-dialog__inner--animating":"")+(e.fullWidth?" q-dialog__inner--fullwidth":"")+(e.fullHeight?" q-dialog__inner--fullheight":"")+(e.square?" q-dialog__inner--square":"")),C=t.computed(()=>s.value&&!e.seamless),y=t.computed(()=>e.autoClose?{onClick:m}:{}),M=t.computed(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${C.value?"modal":"seamless"}`,l.class]);t.watch(()=>e.maximized,I=>{s.value&&Z(I)}),t.watch(C,I=>{h(I),I?(Zn(H),Xn(F)):(Dt(H),mt(F))});function q(I){var O;g=!e.noRefocus&&document.activeElement!==null?document.activeElement:null,Z(e.maximized),B(),u.value=!0,e.noFocus?d():((O=document.activeElement)==null||O.blur(),A(U)),w(()=>{if(i.proxy.$q.platform.is.ios){if(!e.seamless&&document.activeElement){const{top:v,bottom:W}=document.activeElement.getBoundingClientRect(),{innerHeight:j}=window,D=window.visualViewport!==void 0?window.visualViewport.height:j;v>0&&W>D/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-D,W>=j?1/0:Math.ceil(document.scrollingElement.scrollTop+W-D/2))),document.activeElement.scrollIntoView()}b=!0,a.value.click(),b=!1}B(!0),u.value=!1,o("show",I)},e.transitionDuration)}function V(I){if(d(),Y(!0),u.value=!0,T(),g!==null){const O=((I==null?void 0:I.type.indexOf("key"))===0?g.closest('[tabindex]:not([tabindex^="-"])'):void 0)||g;g=null,Fe(()=>{O.isConnected&&O.focus({preventScroll:!0})})}w(()=>{T(!0),u.value=!1,o("hide",I)},e.transitionDuration)}function L(){g=null}function U(I){Fe(()=>{let O=a.value;if(O!==null){if(I!==void 0){const v=O.querySelector(I);if(v!==null){v.focus({preventScroll:!0});return}}O.contains(document.activeElement)||(O=O.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||O.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||O.querySelector("[autofocus], [data-autofocus]")||O,O.focus({preventScroll:!0}))}})}function x(I){I&&typeof I.focus=="function"?I.focus({preventScroll:!0}):U(),o("shake");const O=a.value;O!==null&&(O.classList.remove("q-animate--scale"),O.classList.add("q-animate--scale"),f!==null&&clearTimeout(f),f=setTimeout(()=>{f=null,a.value!==null&&(O.classList.remove("q-animate--scale"),U())},170))}function F(){e.seamless||(e.persistent||e.noEscDismiss?!e.maximized&&!e.noShake&&x():(o("escapeKey"),N()))}function Y(I){f!==null&&(clearTimeout(f),f=null),(I||s.value)&&(Z(!1),e.seamless||(h(!1),Dt(H),mt(F))),I||(g=null)}function Z(I){I?c||(pt<1&&document.body.classList.add("q-body--dialog"),pt++,c=!0):c&&(pt<2&&document.body.classList.remove("q-body--dialog"),pt--,c=!1)}function m(I){b||(N(I),o("click",I))}function E(I){!e.persistent&&!e.noBackdropDismiss?N(I):e.noShake||x()}function H(I){!e.allowFocusOutside&&P.value&&!_t(a.value,I.target)&&!el(a.value,I.target)&&U('[tabindex]:not([tabindex="-1"])')}Object.assign(i.proxy,{focus:U,shake:x,__updateRefocusTarget(I){g=I||null}}),t.onBeforeUnmount(Y);function K(){return t.h("div",{role:"dialog","aria-modal":C.value?"true":"false",...l,class:M.value},[t.h(t.Transition,{name:"q-transition--fade",appear:!0},()=>C.value?t.h("div",{class:"q-dialog__backdrop fixed-full",style:k.value,"aria-hidden":"true",onClick:E}):null),t.h(t.Transition,S.value,()=>s.value?t.h("div",{ref:a,class:X.value,style:_.value,tabindex:-1,...y.value},ve(n.default)):null)])}return z}});let bt=!1;{const e=document.createElement("div");e.setAttribute("dir","rtl"),Object.assign(e.style,{width:"1px",height:"1px",overflow:"auto"});const n=document.createElement("div");Object.assign(n.style,{width:"1000px",height:"1px"}),document.body.append(e),e.append(n),e.scrollLeft=-1e3,bt=e.scrollLeft>=0,e.remove()}const me=1e3,la=["start","center","end","start-force","center-force","end-force"],ml=Array.prototype.filter,oa=window.getComputedStyle(document.body).overflowAnchor===void 0?Kl:function(n,o){n!==null&&(n._qOverflowAnimationFrame!==void 0&&cancelAnimationFrame(n._qOverflowAnimationFrame),n._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(n===null)return;n._qOverflowAnimationFrame=void 0;const l=n.children||[];ml.call(l,a=>a.dataset&&a.dataset.qVsAnchor!==void 0).forEach(a=>{delete a.dataset.qVsAnchor});const i=l[o];i!=null&&i.dataset&&(i.dataset.qVsAnchor="")}))};function Oe(e,n){return e+n}function Kt(e,n,o,l,i,a,s,u){const f=e===window?document.scrollingElement||document.documentElement:e,g=i?"offsetWidth":"offsetHeight",c={scrollStart:0,scrollViewSize:-s-u,scrollMaxSize:0,offsetStart:-s,offsetEnd:-u};if(i?(e===window?(c.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,c.scrollViewSize+=document.documentElement.clientWidth):(c.scrollStart=f.scrollLeft,c.scrollViewSize+=f.clientWidth),c.scrollMaxSize=f.scrollWidth,a&&(c.scrollStart=(bt?c.scrollMaxSize-c.scrollViewSize:0)-c.scrollStart)):(e===window?(c.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,c.scrollViewSize+=document.documentElement.clientHeight):(c.scrollStart=f.scrollTop,c.scrollViewSize+=f.clientHeight),c.scrollMaxSize=f.scrollHeight),o!==null)for(let b=o.previousElementSibling;b!==null;b=b.previousElementSibling)b.classList.contains("q-virtual-scroll--skip")||(c.offsetStart+=b[g]);if(l!==null)for(let b=l.nextElementSibling;b!==null;b=b.nextElementSibling)b.classList.contains("q-virtual-scroll--skip")||(c.offsetEnd+=b[g]);if(n!==e){const b=f.getBoundingClientRect(),p=n.getBoundingClientRect();i?(c.offsetStart+=p.left-b.left,c.offsetEnd-=p.width):(c.offsetStart+=p.top-b.top,c.offsetEnd-=p.height),e!==window&&(c.offsetStart+=c.scrollStart),c.offsetEnd+=c.scrollMaxSize-c.offsetStart}return c}function vl(e,n,o,l){n==="end"&&(n=(e===window?document.body:e)[o?"scrollWidth":"scrollHeight"]),e===window?o?(l&&(n=(bt?document.body.scrollWidth-document.documentElement.clientWidth:0)-n),window.scrollTo(n,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,n):o?(l&&(n=(bt?e.scrollWidth-e.offsetWidth:0)-n),e.scrollLeft=n):e.scrollTop=n}function nt(e,n,o,l){if(o>=l)return 0;const i=n.length,a=Math.floor(o/me),s=Math.floor((l-1)/me)+1;let u=e.slice(a,s).reduce(Oe,0);return o%me!==0&&(u-=n.slice(a*me,o).reduce(Oe,0)),l%me!==0&&l!==i&&(u-=n.slice(l,s*me).reduce(Oe,0)),u}const gl={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,...{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]}};function ia({virtualScrollLength:e,getVirtualScrollTarget:n,getVirtualScrollEl:o,virtualScrollItemSizeComputed:l}){const i=t.getCurrentInstance(),{props:a,emit:s,proxy:u}=i,{$q:f}=u;let g,c,b,p=[],h;const w=t.ref(0),A=t.ref(0),d=t.ref({}),S=t.ref(null),_=t.ref(null),k=t.ref(null),B=t.ref({from:0,to:0}),T=t.computed(()=>a.tableColspan!==void 0?a.tableColspan:100);l===void 0&&(l=t.computed(()=>a.virtualScrollItemSize));const P=t.computed(()=>l.value+";"+a.virtualScrollHorizontal),z=t.computed(()=>P.value+";"+a.virtualScrollSliceRatioBefore+";"+a.virtualScrollSliceRatioAfter);t.watch(z,()=>{U()}),t.watch(P,N);function N(){L(c,!0)}function X(m){L(m===void 0?c:m)}function C(m,E){const H=n();if(H==null||H.nodeType===8)return;const K=Kt(H,o(),S.value,_.value,a.virtualScrollHorizontal,f.lang.rtl,a.virtualScrollStickySizeStart,a.virtualScrollStickySizeEnd);b!==K.scrollViewSize&&U(K.scrollViewSize),M(H,K,Math.min(e.value-1,Math.max(0,Number.parseInt(m,10)||0)),0,la.includes(E)?E:c!==-1&&m>c?"end":"start")}function y(){const m=n();if(m==null||m.nodeType===8)return;const E=Kt(m,o(),S.value,_.value,a.virtualScrollHorizontal,f.lang.rtl,a.virtualScrollStickySizeStart,a.virtualScrollStickySizeEnd),H=e.value-1,K=E.scrollMaxSize-E.offsetStart-E.offsetEnd-A.value;if(g===E.scrollStart)return;if(E.scrollMaxSize<=0){M(m,E,0,0);return}b!==E.scrollViewSize&&U(E.scrollViewSize),q(B.value.from);const I=Math.floor(E.scrollMaxSize-Math.max(E.scrollViewSize,E.offsetEnd)-Math.min(h[H],E.scrollViewSize/2));if(I>0&&Math.ceil(E.scrollStart)>=I){M(m,E,H,E.scrollMaxSize-E.offsetEnd-p.reduce(Oe,0));return}let O=0,v=E.scrollStart-E.offsetStart,W=v;if(v<=K&&v+E.scrollViewSize>=w.value)v-=w.value,O=B.value.from,W=v;else for(let j=0;v>=p[j]&&O<H;j++)v-=p[j],O+=me;for(;v>0&&O<H;)v-=h[O],v>-E.scrollViewSize?(O++,W=v):W=h[O]+v;M(m,E,O,W)}function M(m,E,H,K,I){const O=typeof I=="string"&&I.includes("-force"),v=O?I.replace("-force",""):I,W=v!==void 0?v:"start";let j=Math.max(0,H-d.value[W]),D=j+d.value.total;D>e.value&&(D=e.value,j=Math.max(0,D-d.value.total)),g=E.scrollStart;const oe=j!==B.value.from||D!==B.value.to;if(!oe&&v===void 0){F(H);return}const{activeElement:be}=document,se=k.value;oe&&se!==null&&se!==be&&se.contains(be)&&(se.addEventListener("focusout",V),setTimeout(()=>{se==null||se.removeEventListener("focusout",V)},0)),oa(se,H-j);const yt=v!==void 0?h.slice(j,H).reduce(Oe,0):0;if(oe){const Ce=D>=B.value.from&&j<=B.value.to?B.value.to:D;B.value={from:j,to:Ce},w.value=nt(p,h,0,j),A.value=nt(p,h,D,e.value),requestAnimationFrame(()=>{B.value.to!==D&&g===E.scrollStart&&(B.value={from:B.value.from,to:D},A.value=nt(p,h,D,e.value))})}requestAnimationFrame(()=>{if(g!==E.scrollStart)return;oe&&q(j);const Ce=h.slice(j,H).reduce(Oe,0),Ee=Ce+E.offsetStart+w.value,wt=Ee+h[H];let lt=Ee+K;if(v!==void 0){const Xt=Ce-yt,ot=E.scrollStart+Xt;lt=!O&&ot<Ee&&wt<ot+E.scrollViewSize?ot:v==="end"?wt-E.scrollViewSize:Ee-(v==="start"?0:Math.round((E.scrollViewSize-h[H])/2))}g=lt,vl(m,lt,a.virtualScrollHorizontal,f.lang.rtl),F(H)})}function q(m){const E=k.value;if(E){const H=ml.call(E.children,j=>j.classList&&!j.classList.contains("q-virtual-scroll--skip")),K=H.length,I=a.virtualScrollHorizontal?j=>j.getBoundingClientRect().width:j=>j.offsetHeight;let O=m,v,W;for(let j=0;j<K;){for(v=I(H[j]),j++;j<K&&H[j].classList.contains("q-virtual-scroll--with-prev");)v+=I(H[j]),j++;W=v-h[O],W!==0&&(h[O]+=W,p[Math.floor(O/me)]+=W),O++}}}function V(){var m;(m=k.value)==null||m.focus({preventScroll:!0})}function L(m,E){const H=Number(l.value);(E||!Array.isArray(h))&&(h=[]);const K=h.length;h.length=e.value;for(let O=e.value-1;O>=K;O--)h[O]=H;const I=Math.floor((e.value-1)/me);p=[];for(let O=0;O<=I;O++){let v=0;const W=Math.min((O+1)*me,e.value);for(let j=O*me;j<W;j++)v+=h[j];p.push(v)}c=-1,g=void 0,w.value=nt(p,h,0,B.value.from),A.value=nt(p,h,B.value.to,e.value),m>=0?(q(B.value.from),t.nextTick(()=>{C(m)})):Y()}function U(m){if(m===void 0&&typeof window<"u"){const v=n();v!=null&&v.nodeType!==8&&(m=Kt(v,o(),S.value,_.value,a.virtualScrollHorizontal,f.lang.rtl,a.virtualScrollStickySizeStart,a.virtualScrollStickySizeEnd).scrollViewSize)}b=m;const E=Number.parseFloat(a.virtualScrollSliceRatioBefore)||0,H=Number.parseFloat(a.virtualScrollSliceRatioAfter)||0,K=1+E+H,I=m===void 0||m<=0?1:Math.ceil(m/l.value),O=Math.max(1,I,Math.ceil((a.virtualScrollSliceSize>0?a.virtualScrollSliceSize:10)/K));d.value={total:Math.ceil(O*K),start:Math.ceil(O*E),center:Math.ceil(O*(.5+E)),end:Math.ceil(O*(1+E)),view:I}}function x(m,E){const H=a.virtualScrollHorizontal?"width":"height",K={["--q-virtual-scroll-item-"+H]:l.value+"px"};return[m==="tbody"?t.h(m,{class:"q-virtual-scroll__padding",key:"before",ref:S},[t.h("tr",[t.h("td",{style:{[H]:`${w.value}px`,...K},colspan:T.value})])]):t.h(m,{class:"q-virtual-scroll__padding",key:"before",ref:S,style:{[H]:`${w.value}px`,...K}}),t.h(m,{class:"q-virtual-scroll__content",key:"content",ref:k,tabindex:-1},E.flat()),m==="tbody"?t.h(m,{class:"q-virtual-scroll__padding",key:"after",ref:_},[t.h("tr",[t.h("td",{style:{[H]:`${A.value}px`,...K},colspan:T.value})])]):t.h(m,{class:"q-virtual-scroll__padding",key:"after",ref:_,style:{[H]:`${A.value}px`,...K}})]}function F(m){c!==m&&(a.onVirtualScroll!==void 0&&s("virtualScroll",{index:m,from:B.value.from,to:B.value.to-1,direction:m<c?"decrease":"increase",ref:u}),c=m)}U();const Y=Vn(y,f.platform.is.ios?120:35);t.onBeforeMount(()=>{U()});let Z=!1;return t.onDeactivated(()=>{Z=!0}),t.onActivated(()=>{if(!Z)return;const m=n();g!==void 0&&m!==void 0&&m!==null&&m.nodeType!==8?vl(m,g,a.virtualScrollHorizontal,f.lang.rtl):C(c)}),t.onBeforeUnmount(()=>{Y.cancel()}),Object.assign(u,{scrollTo:C,reset:N,refresh:X}),{virtualScrollSliceRange:B,virtualScrollSliceSizeComputed:d,setVirtualScrollSize:U,onVirtualScrollEvt:Y,localResetVirtualScroll:L,padVirtualScroll:x,scrollTo:C,reset:N,refresh:X}}function ye(e,n){if(e===n)return!0;if(e!==null&&n!==null&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;let o,l;if(e.constructor===Array){if(o=e.length,o!==n.length)return!1;for(l=o;l--!==0;)if(!ye(e[l],n[l]))return!1;return!0}if(e.constructor===Map){if(e.size!==n.size)return!1;let a=e.entries();for(l=a.next();!l.done;){if(!n.has(l.value[0]))return!1;l=a.next()}for(a=e.entries(),l=a.next();!l.done;){if(!ye(l.value[1],n.get(l.value[0])))return!1;l=a.next()}return!0}if(e.constructor===Set){if(e.size!==n.size)return!1;const a=e.entries();for(l=a.next();!l.done;){if(!n.has(l.value[0]))return!1;l=a.next()}return!0}if(e.buffer!=null&&e.buffer.constructor===ArrayBuffer){if(o=e.length,o!==n.length)return!1;for(l=o;l--!==0;)if(e[l]!==n[l])return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();const i=Object.keys(e).filter(a=>e[a]!==void 0);if(o=i.length,o!==Object.keys(n).filter(a=>n[a]!==void 0).length)return!1;for(l=o;l--!==0;){const a=i[l];if(!ye(e[a],n[a]))return!1}return!0}return e!==e&&n!==n}function hl(e,n,o){if(o<=n)return n;const l=o-n+1;let i=n+(e-n)%l;return i<n&&(i=l+i),i===0?0:i}const pl=e=>["add","add-unique","toggle"].includes(e),aa=".*+?^${}()|[]\\",ra=Object.keys(ct);function Qt(e,n){if(typeof e=="function")return e;const o=e!==void 0?e:n;return l=>l!==null&&typeof l=="object"&&o in l?l[o]:l}const bl=ae({name:"QSelect",inheritAttrs:!1,props:{...gl,...It,...ct,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:pl},mapOptions:Boolean,emitValue:Boolean,disableTabSelection:Boolean,inputDebounce:{type:[Number,String],default:500},inputClass:[Array,String,Object],inputStyle:[Array,String,Object],tabindex:{type:[String,Number],default:0},autocomplete:String,transitionShow:{},transitionHide:{},transitionDuration:{},behavior:{type:String,validator:e=>["default","menu","dialog"].includes(e),default:"default"},virtualScrollItemSize:gl.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...$t,"add","remove","inputValue","keyup","keypress","keydown","popupShow","popupHide","filterAbort"],setup(e,{slots:n,emit:o}){const{proxy:l}=t.getCurrentInstance(),{$q:i}=l,a=t.ref(!1),s=t.ref(!1),u=t.ref(-1),f=t.ref(""),g=t.ref(!1),c=t.ref(!1);let b=null,p=null,h,w,A,d=null,S,_,k,B;const T=t.ref(null),P=t.ref(null),z=t.ref(null),N=t.ref(null),X=t.ref(null),C=$n(e),y=Pn(_l),M=t.computed(()=>Array.isArray(e.options)?e.options.length:0),q=t.computed(()=>e.virtualScrollItemSize===void 0?e.optionsDense?24:48:e.virtualScrollItemSize),{virtualScrollSliceRange:V,virtualScrollSliceSizeComputed:L,localResetVirtualScroll:U,padVirtualScroll:x,onVirtualScrollEvt:F,scrollTo:Y,setVirtualScrollSize:Z}=ia({virtualScrollLength:M,getVirtualScrollTarget:Ka,getVirtualScrollEl:ql,virtualScrollItemSizeComputed:q}),m=Pt(),E=t.computed(()=>{const r=e.mapOptions&&!e.multiple,R=e.modelValue!==void 0&&(e.modelValue!==null||r)?e.multiple&&Array.isArray(e.modelValue)?e.modelValue:[e.modelValue]:[];if(e.mapOptions&&Array.isArray(e.options)){const $=e.mapOptions&&h!==void 0?h:[],Q=R.map(G=>Ua(G,$));return e.modelValue===null&&r?Q.filter(G=>G!==null):Q}return R}),H=t.computed(()=>{const r={};return ra.forEach(R=>{const $=e[R];$!==void 0&&(r[R]=$)}),r}),K=t.computed(()=>e.optionsDark===null?m.isDark.value:e.optionsDark),I=t.computed(()=>Ge(E.value)),O=t.computed(()=>{let r="q-field__input q-placeholder col";return e.hideSelected||E.value.length===0?[r,e.inputClass]:(r+=" q-field__input--padding",e.inputClass===void 0?r:[r,e.inputClass])}),v=t.computed(()=>(e.virtualScrollHorizontal?"q-virtual-scroll--horizontal":"")+(e.popupContentClass?" "+e.popupContentClass:"")),W=t.computed(()=>M.value===0),j=t.computed(()=>E.value.map(r=>ue.value(r)).join(", ")),D=t.computed(()=>e.displayValue!==void 0?e.displayValue:j.value),oe=t.computed(()=>e.optionsHtml?()=>!0:r=>(r==null?void 0:r.html)===!0),be=t.computed(()=>e.displayValueHtml||e.displayValue===void 0&&(e.optionsHtml||E.value.some(oe.value))),se=t.computed(()=>m.focused.value?e.tabindex:-1),yt=t.computed(()=>{const r={tabindex:e.tabindex,role:"combobox","aria-label":e.label,"aria-readonly":e.readonly?"true":"false","aria-autocomplete":e.useInput?"list":"none","aria-expanded":a.value?"true":"false","aria-controls":`${m.targetUid.value}_lb`};return u.value>=0&&(r["aria-activedescendant"]=`${m.targetUid.value}_${u.value}`),r}),Ce=t.computed(()=>({id:`${m.targetUid.value}_lb`,role:"listbox","aria-multiselectable":e.multiple?"true":"false"})),Ee=t.computed(()=>E.value.map((r,R)=>({index:R,opt:r,html:oe.value(r),selected:!0,removeAtIndex:ja,toggleOption:qe,tabindex:se.value}))),wt=t.computed(()=>{if(M.value===0)return[];const{from:r,to:R}=V.value;return e.options.slice(r,R).map(($,Q)=>{const G=Ie.value($)===!0,te=Zt($),J=r+Q,ne={clickable:!0,active:te,activeClass:ot.value,manualFocus:!0,focused:!1,disable:G,tabindex:-1,dense:e.optionsDense,dark:K.value,role:"option","aria-selected":te?"true":"false",id:`${m.targetUid.value}_${J}`,onClick:()=>{qe($)}};return G||(u.value===J&&(ne.focused=!0),i.platform.is.desktop&&(ne.onMousemove=()=>{a.value&&ze(J)})),{index:J,opt:$,html:oe.value($),label:ue.value($),selected:ne.active,focused:ne.focused,toggleOption:qe,setOptionIndex:ze,itemProps:ne}})}),lt=t.computed(()=>e.dropdownIcon!==void 0?e.dropdownIcon:i.iconSet.arrow.dropdown),Xt=t.computed(()=>!e.optionsCover&&!e.outlined&&!e.standout&&!e.borderless&&!e.rounded),ot=t.computed(()=>e.optionsSelectedClass!==void 0?e.optionsSelectedClass:e.color!==void 0?`text-${e.color}`:""),pe=t.computed(()=>Qt(e.optionValue,"value")),ue=t.computed(()=>Qt(e.optionLabel,"label")),Ie=t.computed(()=>Qt(e.optionDisable,"disable")),kt=t.computed(()=>E.value.map(pe.value)),Wa=t.computed(()=>{const r={onInput:_l,onChange:y,onKeydown:El,onKeyup:xl,onKeypress:Cl,onFocus:kl,onClick(R){w&&he(R)}};return r.onCompositionstart=r.onCompositionupdate=r.onCompositionend=y,r});t.watch(E,r=>{h=r,e.useInput&&e.fillInput&&!e.multiple&&!m.innerLoading.value&&(!s.value&&!a.value||!I.value)&&(A||We(),(s.value||a.value)&&De(""))},{immediate:!0}),t.watch(()=>e.fillInput,We),t.watch(a,Gt),t.watch(M,ir);function yl(r){return e.emitValue?pe.value(r):r}function Yt(r){if(r!==-1&&r<E.value.length)if(e.multiple){const R=[...e.modelValue];o("remove",{index:r,value:R.splice(r,1)[0]}),o("update:modelValue",R)}else o("update:modelValue",null)}function ja(r){Yt(r),m.focus()}function wl(r,R){const $=yl(r);if(!e.multiple){e.fillInput&&it(ue.value(r),!0,!0),o("update:modelValue",$);return}if(E.value.length===0){o("add",{index:0,value:$}),o("update:modelValue",e.multiple?[$]:$);return}if(R&&Zt(r)||e.maxValues!==void 0&&e.modelValue.length>=e.maxValues)return;const Q=[...e.modelValue];o("add",{index:Q.length,value:$}),Q.push($),o("update:modelValue",Q)}function qe(r,R){var te;if(!m.editable.value||r===void 0||Ie.value(r)===!0)return;const $=pe.value(r);if(!e.multiple){R||(it(e.fillInput?ue.value(r):"",!0,!0),Ve()),(te=P.value)==null||te.focus(),(E.value.length===0||!ye(pe.value(E.value[0]),$))&&o("update:modelValue",e.emitValue?$:r);return}if((!w||g.value)&&m.focus(),kl(),E.value.length===0){const J=e.emitValue?$:r;o("add",{index:0,value:J}),o("update:modelValue",e.multiple?[J]:J);return}const Q=[...e.modelValue],G=kt.value.findIndex(J=>ye(J,$));if(G!==-1)o("remove",{index:G,value:Q.splice(G,1)[0]});else{if(e.maxValues!==void 0&&Q.length>=e.maxValues)return;const J=e.emitValue?$:r;o("add",{index:Q.length,value:J}),Q.push(J)}o("update:modelValue",Q)}function ze(r){if(!i.platform.is.desktop)return;const R=r!==-1&&r<M.value?r:-1;u.value!==R&&(u.value=R)}function St(r=1,R){if(a.value){let $=u.value;do $=hl($+r,-1,M.value-1);while($!==-1&&$!==u.value&&Ie.value(e.options[$])===!0);u.value!==$&&(ze($),Y($),!R&&e.useInput&&e.fillInput&&xt($>=0?ue.value(e.options[$]):S,!0))}}function Ua(r,R){const $=Q=>ye(pe.value(Q),r);return e.options.find($)||R.find($)||r}function Zt(r){const R=pe.value(r);return kt.value.find($=>ye($,R))!==void 0}function kl(r){e.useInput&&P.value!==null&&(r===void 0||P.value===r.target&&r.target.value===j.value)&&P.value.select()}function Sl(r){ke(r,27)&&a.value&&(he(r),Ve(),We()),o("keyup",r)}function xl(r){const{value:R}=r.target;if(r.keyCode!==void 0){Sl(r);return}if(r.target.value="",b!==null&&(clearTimeout(b),b=null),p!==null&&(clearTimeout(p),p=null),We(),typeof R=="string"&&R.length!==0){const $=R.toLocaleLowerCase(),Q=te=>{const J=e.options.find(ne=>String(te.value(ne)).toLocaleLowerCase()===$);return J===void 0?!1:(E.value.includes(J)?Ve():qe(J),!0)},G=te=>{!Q(pe)&&!te&&!Q(ue)&&De(R,!0,()=>G(!0))};G()}else m.clearValue(r)}function Cl(r){o("keypress",r)}function El(r){if(o("keydown",r),Mt(r))return;const R=f.value.length!==0&&(e.newValueMode!==void 0||e.onNewValue!==void 0),$=!r.shiftKey&&!e.disableTabSelection&&!e.multiple&&(u.value!==-1||R);if(r.keyCode===27){de(r);return}if(r.keyCode===9&&!$){Ne();return}if(r.target===void 0||r.target.id!==m.targetUid.value||!m.editable.value)return;if(r.keyCode===40&&!m.innerLoading.value&&!a.value){ee(r),He();return}if(r.keyCode===8&&(e.useChips||e.clearable)&&!e.hideSelected&&f.value.length===0){e.multiple&&Array.isArray(e.modelValue)?Yt(e.modelValue.length-1):!e.multiple&&e.modelValue!==null&&o("update:modelValue",null);return}(r.keyCode===35||r.keyCode===36)&&(typeof f.value!="string"||f.value.length===0)&&(ee(r),u.value=-1,St(r.keyCode===36?1:-1,e.multiple)),(r.keyCode===33||r.keyCode===34)&&L.value!==void 0&&(ee(r),u.value=Math.max(-1,Math.min(M.value,u.value+(r.keyCode===33?-1:1)*L.value.view)),St(r.keyCode===33?1:-1,e.multiple)),(r.keyCode===38||r.keyCode===40)&&(ee(r),St(r.keyCode===38?-1:1,e.multiple));const Q=M.value;if((k===void 0||B<Date.now())&&(k=""),Q>0&&!e.useInput&&r.key!==void 0&&r.key.length===1&&!r.altKey&&!r.ctrlKey&&!r.metaKey&&(r.keyCode!==32||k.length!==0)){a.value||He(r);const G=r.key.toLocaleLowerCase(),te=k.length===1&&k[0]===G;B=Date.now()+1500,te||(ee(r),k+=G);const J=new RegExp("^"+[...k].map(je=>aa.includes(je)?"\\"+je:je).join(".*"),"i");let ne=u.value;if(te||ne<0||!J.test(ue.value(e.options[ne])))do ne=hl(ne+1,-1,Q-1);while(ne!==u.value&&(Ie.value(e.options[ne])===!0||!J.test(ue.value(e.options[ne]))));u.value!==ne&&t.nextTick(()=>{ze(ne),Y(ne),ne>=0&&e.useInput&&e.fillInput&&xt(ue.value(e.options[ne]),!0)});return}if(!(r.keyCode!==13&&(r.keyCode!==32||e.useInput||k!=="")&&(r.keyCode!==9||!$))){if(r.keyCode!==9&&ee(r),u.value!==-1&&u.value<Q){qe(e.options[u.value]);return}if(R){const G=(te,J)=>{var je;if(J){if(!pl(J))return}else J=e.newValueMode;if(it("",!e.multiple,!0),te==null)return;(J==="toggle"?qe:wl)(te,J==="add-unique"),e.multiple||((je=P.value)==null||je.focus(),Ve())};if(e.onNewValue!==void 0?o("newValue",f.value,G):G(f.value),!e.multiple)return}a.value?Ne():m.innerLoading.value||He()}}function ql(){return w?X.value:z.value!==null&&z.value.contentEl!==null?z.value.contentEl:void 0}function Ka(){return ql()}function Qa(){return e.hideSelected?[]:n["selected-item"]!==void 0?Ee.value.map(r=>n["selected-item"](r)):n.selected!==void 0?[n.selected()].flat():e.useChips?Ee.value.map((r,R)=>t.h(yi,{key:"option-"+R,removable:m.editable.value&&Ie.value(r.opt)!==!0,dense:!0,textColor:e.color,tabindex:se.value,onRemove(){r.removeAtIndex(R)}},()=>t.h("span",{class:"ellipsis",[r.html?"innerHTML":"textContent"]:ue.value(r.opt)}))):[t.h("span",{class:"ellipsis",[be.value?"innerHTML":"textContent"]:D.value})]}function Vl(){if(W.value)return n["no-option"]!==void 0?n["no-option"]({inputValue:f.value}):void 0;const r=n.option!==void 0?n.option:$=>t.h(wi,{key:$.index,...$.itemProps},()=>t.h(ki,()=>t.h(Si,()=>t.h("span",{[$.html?"innerHTML":"textContent"]:$.label}))));let R=x("div",wt.value.map(r));return n["before-options"]!==void 0&&(R=[n["before-options"](),...R].flat()),we(n["after-options"],R)}function Xa(r,R){const $=R?{...yt.value,...m.splitAttrs.attributes.value}:void 0,Q={ref:R?P:void 0,key:"i_t",class:O.value,style:e.inputStyle,value:f.value!==void 0?f.value:"",type:"search",...$,id:R?m.targetUid.value:void 0,maxlength:e.maxlength,autocomplete:e.autocomplete,"data-autofocus":r===!0||e.autofocus||void 0,disabled:e.disable,readonly:e.readonly,...Wa.value};return!r&&w&&(Array.isArray(Q.class)?Q.class=[...Q.class,"no-pointer-events"]:Q.class+=" no-pointer-events"),t.h("input",Q)}function _l(r){var R;b!==null&&(clearTimeout(b),b=null),p!==null&&(clearTimeout(p),p=null),!((R=r==null?void 0:r.target)!=null&&R.qComposing)&&(xt(r.target.value||""),A=!0,S=f.value,!m.focused.value&&(!w||g.value)&&m.focus(),e.onFilter!==void 0&&(b=setTimeout(()=>{b=null,De(f.value)},e.inputDebounce)))}function xt(r,R){f.value!==r&&(p!==null&&(clearTimeout(p),p=null),f.value=r,R||e.inputDebounce===0||e.inputDebounce==="0"?o("inputValue",r):p=setTimeout(()=>{p=null,o("inputValue",r)},e.inputDebounce))}function it(r,R,$){A=$!==!0,e.useInput&&(xt(r,!0),(R||A)&&(S=r),R||De(r))}function De(r,R,$){if(e.onFilter===void 0||!R&&!m.focused.value)return;m.innerLoading.value?o("filterAbort"):(m.innerLoading.value=!0,c.value=!0),r!==""&&!e.multiple&&E.value.length!==0&&!A&&r===ue.value(E.value[0])&&(r="");const Q=setTimeout(()=>{a.value&&(a.value=!1)},10);d!==null&&clearTimeout(d),d=Q,o("filter",r,(G,te)=>{(R||m.focused.value)&&d===Q&&(clearTimeout(d),typeof G=="function"&&G(),c.value=!1,t.nextTick(()=>{m.innerLoading.value=!1,m.editable.value&&(R?a.value&&Ve():a.value?Gt(!0):a.value=!0),typeof te=="function"&&t.nextTick(()=>{te(l)}),typeof $=="function"&&t.nextTick(()=>{$(l)})}))},()=>{m.focused.value&&d===Q&&(clearTimeout(d),m.innerLoading.value=!1,c.value=!1),a.value&&(a.value=!1)})}function Ya(){return t.h(Zi,{ref:z,class:v.value,style:e.popupContentStyle,modelValue:a.value,fit:!e.menuShrink,cover:e.optionsCover&&!W.value&&!e.useInput,anchor:e.menuAnchor,self:e.menuSelf,offset:e.menuOffset,dark:K.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,noRouteDismiss:e.popupNoRouteDismiss,square:Xt.value,transitionShow:e.transitionShow,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,separateClosePopup:!0,...Ce.value,onScrollPassive:F,onBeforeShow:Ml,onBeforeHide:Za,onShow:Ga},Vl)}function Za(r){Rl(r),Ne()}function Ga(){Z()}function Ja(r){var R;he(r),(R=P.value)==null||R.focus(),g.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function er(r){he(r),t.nextTick(()=>{g.value=!1})}function tr(){const r=[t.h(pi,{class:`col-auto ${m.fieldClass.value}`,...H.value,for:m.targetUid.value,dark:K.value,square:!0,loading:c.value,itemAligned:!1,filled:!0,stackLabel:f.value.length!==0,...m.splitAttrs.listeners.value,onFocus:Ja,onBlur:er},{...n,rawControl:()=>m.getControl(!0),before:void 0,after:void 0})];return a.value&&r.push(t.h("div",{ref:X,class:v.value+" scroll",style:e.popupContentStyle,...Ce.value,onClick:de,onScrollPassive:F},Vl())),t.h(na,{ref:N,modelValue:s.value,position:e.useInput?"top":void 0,transitionShow:_,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,noRouteDismiss:e.popupNoRouteDismiss,onBeforeShow:Ml,onBeforeHide:nr,onHide:lr,onShow:or},()=>t.h("div",{class:"q-select__dialog"+(K.value?" q-select__dialog--dark q-dark":"")+(g.value?" q-select__dialog--focused":"")},r))}function nr(r){Rl(r),N.value!==null&&N.value.__updateRefocusTarget(m.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),m.focused.value=!1}function lr(r){Ve(),m.focused.value||o("blur",r),We()}function or(){const r=document.activeElement;(r===null||r.id!==m.targetUid.value)&&P.value!==null&&P.value!==r&&P.value.focus(),Z()}function Ne(){s.value||(u.value=-1,a.value&&(a.value=!1),m.focused.value||(d!==null&&(clearTimeout(d),d=null),m.innerLoading.value&&(o("filterAbort"),m.innerLoading.value=!1,c.value=!1)))}function He(r){m.editable.value&&(w?(m.onControlFocusin(r),s.value=!0,t.nextTick(()=>{m.focus()})):m.focus(),e.onFilter!==void 0?De(f.value):(!W.value||n["no-option"]!==void 0)&&(a.value=!0))}function Ve(){s.value=!1,Ne()}function We(){e.useInput&&it(!e.multiple&&e.fillInput&&E.value.length!==0&&ue.value(E.value[0])||"",!0,!0)}function Gt(r){let R=-1;if(r){if(E.value.length!==0){const $=pe.value(E.value[0]);R=e.options.findIndex(Q=>ye(pe.value(Q),$))}U(R)}ze(R)}function ir(r,R){a.value&&!m.innerLoading.value&&(U(-1,!0),t.nextTick(()=>{a.value&&!m.innerLoading.value&&(r>R?U():Gt(!0))}))}function Bl(){var r;s.value||(r=z.value)==null||r.updatePosition()}function Ml(r){r!==void 0&&he(r),o("popupShow",r),m.hasPopupOpen=!0,m.onControlFocusin(r)}function Rl(r){r!==void 0&&he(r),o("popupHide",r),m.hasPopupOpen=!1,m.onControlFocusout(r)}function Tl(){w=!i.platform.is.mobile&&e.behavior!=="dialog"?!1:e.behavior!=="menu"&&(e.useInput?n["no-option"]!==void 0||e.onFilter!==void 0||!W.value:!0),_=i.platform.is.ios&&w&&e.useInput?"fade":e.transitionShow}return t.onBeforeUpdate(Tl),t.onUpdated(Bl),Tl(),t.onBeforeUnmount(()=>{b!==null&&clearTimeout(b),p!==null&&clearTimeout(p)}),Object.assign(l,{showPopup:He,hidePopup:Ve,removeAtIndex:Yt,add:wl,toggleOption:qe,getOptionIndex:()=>u.value,setOptionIndex:ze,moveOptionSelection:St,filter:De,updateMenuPosition:Bl,updateInputValue:it,isOptionSelected:Zt,getEmittingOptionValue:yl,isOptionDisabled:(...r)=>Ie.value(...r)===!0,getOptionValue:(...r)=>pe.value(...r),getOptionLabel:(...r)=>ue.value(...r)}),Object.assign(m,{innerValue:E,fieldClass:t.computed(()=>`q-select q-field--auto-height q-select--with${e.useInput?"":"out"}-input q-select--with${e.useChips?"":"out"}-chips q-select--${e.multiple?"multiple":"single"}`),inputRef:T,targetRef:P,hasValue:I,showPopup:He,floatingLabel:t.computed(()=>!e.hideSelected&&I.value||typeof f.value=="number"||f.value.length!==0||Ge(e.displayValue)),getControlChild:()=>{if(m.editable.value&&(s.value||!W.value||n["no-option"]!==void 0))return w?tr():Ya();m.hasPopupOpen&&(m.hasPopupOpen=!1)},controlEvents:{onFocusin(r){m.onControlFocusin(r)},onFocusout(r){m.onControlFocusout(r,()=>{We(),Ne()})},onClick(r){var R;if(de(r),!w&&a.value){Ne(),(R=P.value)==null||R.focus();return}He(r)}},getControl:r=>{const R=Qa(),$=r===!0||!s.value||!w;if(e.useInput)R.push(Xa(r,$));else if(m.editable.value){const G=$?yt.value:void 0;R.push(t.h("input",{ref:$?P:void 0,key:"d_t",class:"q-select__focus-target",id:$?m.targetUid.value:void 0,value:D.value,readonly:!0,"data-autofocus":r===!0||e.autofocus||void 0,...G,onKeydown:El,onKeyup:Sl,onKeypress:Cl})),$&&typeof e.autocomplete=="string"&&e.autocomplete.length!==0&&R.push(t.h("input",{class:"q-select__autocomplete-input",autocomplete:e.autocomplete,tabindex:-1,onKeyup:xl}))}if(C.value!==void 0&&!e.disable&&kt.value.length!==0){const G=kt.value.map(te=>t.h("option",{value:te,selected:!0}));R.push(t.h("select",{class:"hidden",name:C.value,multiple:e.multiple},G))}const Q=e.useInput||!$?void 0:m.splitAttrs.attributes.value;return t.h("div",{class:"q-field__native row items-center",...Q,...m.splitAttrs.listeners.value},R)},getInnerAppend:()=>!e.loading&&!c.value&&!e.hideDropdownIcon?[t.h(ge,{class:"q-select__dropdown-icon"+(a.value?" rotate-180":""),name:lt.value})]:null}),Ot(m)}}),sa=zt(t.defineComponent({__name:"USelect",props:{fieldLabel:{},labelPosition:{default:"top"},labelWidth:{},modelValue:{},outlined:{type:Boolean,default:!0},dense:{type:Boolean,default:!0},filled:{type:Boolean},borderless:{type:Boolean},label:{},hint:{},error:{type:Boolean},errorMessage:{},placeholder:{},disable:{type:Boolean},readonly:{type:Boolean},options:{}},emits:["update:modelValue"],setup(e,{emit:n}){const o=e,l=n,i=t.computed(()=>o.labelPosition==="left"?{width:typeof o.labelWidth=="number"?`${o.labelWidth}px`:o.labelWidth}:{}),a=t.computed(()=>({"u-select-label-left":o.labelPosition==="left","u-select-label-top":o.labelPosition==="top"})),s=f=>{l("update:modelValue",f)},u=t.computed(()=>{const f=["fieldLabel","labelPosition","labelWidth","modelValue"],g={};for(const c in o)!f.includes(c)&&c!=="modelValue"&&(g[c]=o[c]);return g});return(f,g)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["u-select",a.value])},[e.fieldLabel?(t.openBlock(),t.createElementBlock("div",{key:0,class:"u-select-label",style:t.normalizeStyle(i.value)},t.toDisplayString(e.fieldLabel),5)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["u-select-field",{"q-mt-xs":e.labelPosition==="top"}])},[t.createVNode(bl,t.mergeProps({outlined:"","model-value":e.modelValue},u.value,{"onUpdate:modelValue":s}),null,16,["model-value"])],2)],2))}}),[["__scopeId","data-v-71f6d35a"]]);function ua(e,n){const o=t.ref(null),l=t.computed(()=>e.disable?null:t.h("span",{ref:o,class:"no-outline",tabindex:-1}));function i(a){const s=n.value;(a==null?void 0:a.qAvoidFocus)!==!0&&((a==null?void 0:a.type.indexOf("key"))===0?document.activeElement!==s&&(s==null?void 0:s.contains(document.activeElement))===!0&&s.focus({preventScroll:!0}):o.value!==null&&(a===void 0||(s==null?void 0:s.contains(a.target))===!0)&&o.value.focus({preventScroll:!0}))}return{refocusTargetEl:l,refocusTarget:i}}const ca={xs:30,sm:35,md:40,lg:50,xl:60},da={...Xe,...at,...It,modelValue:{required:!0,default:null},val:{},trueValue:{default:!0},falseValue:{default:!1},indeterminateValue:{default:null},checkedIcon:String,uncheckedIcon:String,indeterminateIcon:String,toggleOrder:{type:String,validator:e=>e==="tf"||e==="ft"},toggleIndeterminate:Boolean,label:String,leftLabel:Boolean,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},fa=["update:modelValue"];function ma(e){(e.keyCode===13||e.keyCode===32)&&ee(e)}function va(e,n){const{props:o,slots:l,emit:i,proxy:a}=t.getCurrentInstance(),{$q:s}=a,u=Ye(o,s),f=t.ref(null),{refocusTargetEl:g,refocusTarget:c}=ua(o,f),b=rt(o,ca),p=t.computed(()=>o.val!==void 0&&Array.isArray(o.modelValue)),h=t.computed(()=>{const y=t.toRaw(o.val);return p.value?o.modelValue.findIndex(M=>t.toRaw(M)===y):-1}),w=t.computed(()=>p.value?h.value!==-1:t.toRaw(o.modelValue)===t.toRaw(o.trueValue)),A=t.computed(()=>p.value?h.value===-1:t.toRaw(o.modelValue)===t.toRaw(o.falseValue)),d=t.computed(()=>!w.value&&!A.value),S=t.computed(()=>o.disable?-1:o.tabindex||0),_=t.computed(()=>`q-${e} cursor-pointer no-outline row inline no-wrap items-center`+(o.disable?" disabled":"")+(u.value?` q-${e}--dark`:"")+(o.dense?` q-${e}--dense`:"")+(o.leftLabel?" reverse":"")),k=t.computed(()=>{const y=w.value?"truthy":A.value?"falsy":"indet",M=o.color!==void 0&&(o.keepColor||w.value)?` text-${o.color}`:"";return`q-${e}__inner relative-position non-selectable q-${e}__inner--${y}${M}`}),B=t.computed(()=>{const y={type:"checkbox"};return o.name!==void 0&&Object.assign(y,{".checked":w.value,"^checked":w.value?"checked":void 0,name:o.name,value:p.value?o.val:o.trueValue}),y}),T=ui(B),P=t.computed(()=>{const y={tabindex:S.value,role:"switch","aria-label":o.label,"aria-checked":d.value?"mixed":w.value?"true":"false"};return o.disable&&(y["aria-disabled"]="true"),y});function z(y){y!==void 0&&(ee(y),c(y)),o.disable||i("update:modelValue",N(),y)}function N(){if(p.value){if(w.value){const y=[...o.modelValue];return y.splice(h.value,1),y}return[...o.modelValue,o.val]}if(w.value){if(o.toggleOrder!=="ft"||!o.toggleIndeterminate)return o.falseValue}else if(A.value){if(o.toggleOrder==="ft"||!o.toggleIndeterminate)return o.trueValue}else return o.toggleOrder!=="ft"?o.trueValue:o.falseValue;return o.indeterminateValue}function X(y){(y.keyCode===13||y.keyCode===32)&&z(y)}const C=n(w,d);return Object.assign(a,{toggle:z}),()=>{const y=C();o.disable||T(y,"unshift",` q-${e}__native absolute q-ma-none q-pa-none`);const M=[t.h("div",{class:k.value,style:b.value,"aria-hidden":"true"},y)];g.value!==null&&M.push(g.value);const q=o.label!==void 0?we(l.default,[o.label]):ve(l.default);return q!==void 0&&M.push(t.h("div",{class:`q-${e}__label q-anchor--skip`},q)),t.h("div",{ref:f,class:_.value,...P.value,onClick:z,onKeydown:ma,onKeyup:X},M)}}const ga=ae({name:"QToggle",props:{...da,icon:String,iconColor:String},emits:fa,setup(e){function n(o,l){const i=t.computed(()=>(o.value?e.checkedIcon:l.value?e.indeterminateIcon:e.uncheckedIcon)||e.icon),a=t.computed(()=>o.value?e.iconColor:null);return()=>[t.h("div",{class:"q-toggle__track"}),t.h("div",{class:"q-toggle__thumb absolute flex flex-center no-wrap"},i.value!==void 0?[t.h(ge,{name:i.value,color:a.value})]:void 0)]}return va("toggle",n)}}),ha={class:"u-designer"},pa={class:"u-designer-body"},ba={class:"u-designer-left"},ya={class:"component-list"},wa=["onClick"],ka={class:"u-designer-center"},Sa={class:"preview-area"},xa={class:"preview-content"},Ca=["onClick"],Ea={class:"widget-preview"},qa={class:"widget-label"},Va={class:"widget-actions"},_a={key:0,class:"empty-tip"},Ba={class:"u-designer-right"},Ma={key:0,class:"property-panel"},Ra={class:"property-section"},Ta={class:"action-buttons q-mt-sm"},Fa={class:"property-section"},Aa={key:1,class:"empty-property"},La=zt(t.defineComponent({__name:"UDesigner",props:{components:{default:()=>[]}},setup(e,{expose:n}){const o=e,l=t.reactive({widgetList:[],selectedWidget:null,selectedWidgetConfig:null}),i=d=>o.components.find(S=>S.type===d),a=t.computed(()=>o.components),s=d=>{const S=i(d);if(!S)return;const _=d.toLowerCase();let k=_,B=1;for(;l.widgetList.some(P=>P.field===k);)k=`${_}_${B++}`;const T={field:k,type:d,label:S.label};l.widgetList.push(T),u(T)},u=d=>{l.selectedWidget=d,l.selectedWidgetConfig=i(d.type)||null},f=d=>{if(d<=0)return;const S=l.widgetList[d];l.widgetList[d]=l.widgetList[d-1],l.widgetList[d-1]=S,u(l.widgetList[d-1])},g=d=>{if(d>=l.widgetList.length-1)return;const S=l.widgetList[d];l.widgetList[d]=l.widgetList[d+1],l.widgetList[d+1]=S,u(l.widgetList[d+1])},c=(d,S)=>{var _;l.widgetList.splice(S,1),((_=l.selectedWidget)==null?void 0:_.field)===d.field&&(l.selectedWidget=null,l.selectedWidgetConfig=null)},b=t.computed(()=>l.selectedWidgetConfig?l.selectedWidgetConfig.properties:[]),p=d=>{if(l.selectedWidget)return l.selectedWidget[d]},h=t.computed(()=>{if(!l.selectedWidget)return!1;const d=l.widgetList.map(_=>_.field),S=new Set(d);return d.length!==S.size}),w=(d,S)=>{l.selectedWidget&&(d==="label"?l.selectedWidget.label=S:d==="field"?l.selectedWidget.field=S:l.selectedWidget[d]=S)},A=t.computed(()=>l.selectedWidget?l.widgetList.findIndex(d=>{var S;return d.field===((S=l.selectedWidget)==null?void 0:S.field)}):-1);return n({getWidgetList:()=>[...l.widgetList],setWidgetList:d=>{l.widgetList=[...d],l.selectedWidget=null,l.selectedWidgetConfig=null},clearDesigner:()=>{l.widgetList=[],l.selectedWidget=null,l.selectedWidgetConfig=null}}),(d,S)=>(t.openBlock(),t.createElementBlock("div",ha,[S[10]||(S[10]=t.createElementVNode("div",{class:"u-designer-header"},[t.createElementVNode("div",{class:"header-title"},"UForm 表单设计器")],-1)),t.createElementVNode("div",pa,[t.createElementVNode("div",ba,[S[6]||(S[6]=t.createElementVNode("div",{class:"panel-title"},"组件列表",-1)),t.createElementVNode("div",ya,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.value,_=>(t.openBlock(),t.createElementBlock("div",{key:_.type,class:"component-item",onClick:k=>s(_.type)},[t.createVNode(ge,{name:_.icon,size:"20px"},null,8,["name"]),t.createElementVNode("span",null,t.toDisplayString(_.label),1)],8,wa))),128))])]),t.createElementVNode("div",ka,[t.createElementVNode("div",Sa,[t.createElementVNode("div",xa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.widgetList,(_,k)=>{var B;return t.openBlock(),t.createElementBlock("div",{key:_.field,class:t.normalizeClass(["preview-widget",{selected:((B=l.selectedWidget)==null?void 0:B.field)===_.field}]),onClick:T=>u(_)},[t.createElementVNode("div",Ea,[t.createElementVNode("div",qa,t.toDisplayString(_.label||"未设置标签"),1),(t.openBlock(),t.createBlock(t.resolveDynamicComponent(_.type),{"model-value":null,disable:""}))]),t.createElementVNode("div",Va,[t.createVNode(Re,{flat:"",round:"",dense:"",icon:"arrow_upward",color:"primary",size:"sm",disable:k<=0,onClick:t.withModifiers(T=>f(k),["stop"])},null,8,["disable","onClick"]),t.createVNode(Re,{flat:"",round:"",dense:"",icon:"arrow_downward",color:"primary",size:"sm",disable:k>=l.widgetList.length-1,onClick:t.withModifiers(T=>g(k),["stop"])},null,8,["disable","onClick"]),t.createVNode(Re,{flat:"",round:"",dense:"",icon:"delete",color:"negative",size:"sm",onClick:t.withModifiers(T=>c(_,k),["stop"])},null,8,["onClick"])])],10,Ca)}),128)),l.widgetList.length===0?(t.openBlock(),t.createElementBlock("div",_a," 点击左侧组件添加到表单 ")):t.createCommentVNode("",!0)])])]),t.createElementVNode("div",Ba,[S[9]||(S[9]=t.createElementVNode("div",{class:"panel-title"},"属性配置",-1)),l.selectedWidget?(t.openBlock(),t.createElementBlock("div",Ma,[t.createElementVNode("div",Ra,[S[7]||(S[7]=t.createElementVNode("div",{class:"section-title"},"基础信息",-1)),t.createVNode(Je,{modelValue:l.selectedWidget.field,"onUpdate:modelValue":[S[0]||(S[0]=_=>l.selectedWidget.field=_),S[1]||(S[1]=_=>w("field",_))],label:"字段名",dense:"",outlined:"",error:h.value,"error-message":"字段名重复"},null,8,["modelValue","error"]),t.createVNode(Je,{modelValue:l.selectedWidget.label,"onUpdate:modelValue":[S[2]||(S[2]=_=>l.selectedWidget.label=_),S[3]||(S[3]=_=>w("label",_))],label:"标签",dense:"",outlined:"",class:"q-mt-sm"},null,8,["modelValue"]),t.createElementVNode("div",Ta,[t.createVNode(Re,{label:"上移",icon:"arrow_upward",color:"primary",flat:"",dense:"",disable:A.value<=0,onClick:S[4]||(S[4]=_=>f(A.value))},null,8,["disable"]),t.createVNode(Re,{label:"下移",icon:"arrow_downward",color:"primary",flat:"",dense:"",disable:A.value>=l.widgetList.length-1||A.value<0,onClick:S[5]||(S[5]=_=>g(A.value))},null,8,["disable"])])]),t.createElementVNode("div",Fa,[S[8]||(S[8]=t.createElementVNode("div",{class:"section-title"},"组件属性",-1)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(b.value,_=>(t.openBlock(),t.createElementBlock("div",{key:_.name,class:"property-item"},[_.type==="string"?(t.openBlock(),t.createBlock(Je,{key:0,"model-value":p(_.name),label:_.label,dense:"",outlined:"","onUpdate:modelValue":k=>w(_.name,k)},null,8,["model-value","label","onUpdate:modelValue"])):_.type==="number"?(t.openBlock(),t.createBlock(Je,{key:1,"model-value":p(_.name),label:_.label,type:"number",dense:"",outlined:"","onUpdate:modelValue":k=>w(_.name,k)},null,8,["model-value","label","onUpdate:modelValue"])):_.type==="boolean"?(t.openBlock(),t.createBlock(ga,{key:2,"model-value":p(_.name),label:_.label,"onUpdate:modelValue":k=>w(_.name,k)},null,8,["model-value","label","onUpdate:modelValue"])):_.type==="select"?(t.openBlock(),t.createBlock(bl,{key:3,"model-value":p(_.name),options:_.options||[],label:_.label,dense:"",outlined:"","emit-value":"","map-options":"","onUpdate:modelValue":k=>w(_.name,k)},null,8,["model-value","options","label","onUpdate:modelValue"])):t.createCommentVNode("",!0)]))),128))])])):(t.openBlock(),t.createElementBlock("div",Aa," 请选择左侧组件进行配置 "))])])]))}}),[["__scopeId","data-v-eff86d95"]]),$a={class:"u-render"},Pa={key:0,class:"u-render-label"},Oa=t.defineComponent({__name:"URender",props:{widgetList:{default:()=>[]},componentMap:{default:()=>({})},modelValue:{default:()=>({})}},setup(e,{expose:n}){const o=e,l=t.reactive({...o.modelValue}),i=s=>{const u=o.componentMap[s];return u||(console.warn(`Component not found for type: ${s}`),"div")},a=s=>{const{field:u,type:f,label:g,...c}=s;return c};return n({getFormData:()=>({...l}),setFormData:s=>{Object.assign(l,s)}}),(s,u)=>(t.openBlock(),t.createElementBlock("div",$a,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.widgetList,f=>(t.openBlock(),t.createElementBlock("div",{key:f.field,class:"u-render-item"},[f.label?(t.openBlock(),t.createElementBlock("div",Pa,t.toDisplayString(f.label),1)):t.createCommentVNode("",!0),(t.openBlock(),t.createBlock(t.resolveDynamicComponent(i(f.type)),t.mergeProps({modelValue:l[f.field],"onUpdate:modelValue":g=>l[f.field]=g},{ref_for:!0},a(f)),null,16,["modelValue","onUpdate:modelValue"]))]))),128))]))}}),Ia={type:"input",label:"输入框",icon:"edit",component:"UInput",properties:[{name:"placeholder",label:"占位文本",type:"string",defaultValue:""},{name:"disabled",label:"禁用",type:"boolean",defaultValue:!1}]},za={type:"select",label:"下拉框",icon:"arrow_drop_down",component:"USelect",properties:[{name:"placeholder",label:"占位文本",type:"string",defaultValue:""},{name:"options",label:"选项",type:"select",options:[{label:"选项1",value:"1"},{label:"选项2",value:"2"}]},{name:"disabled",label:"禁用",type:"boolean",defaultValue:!1}]};function Da(){return"widget_"+Date.now()+"_"+Math.random().toString(36).substr(2,9)}const Na={input:"UInput",select:"USelect"},Ha=[Ia,za];ie.LayoutOne=mo,ie.UDesigner=La,ie.UInput=hi,ie.URender=Oa,ie.USelect=sa,ie.componentMap=Na,ie.designerComponents=Ha,ie.generateId=Da,Object.defineProperty(ie,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(me,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],n):(me=typeof globalThis<"u"?globalThis:me||self,n(me.YourOrgUI={},me.Vue))})(this,function(me,n){"use strict";const wt={xs:18,sm:24,md:32,lg:38,xl:46},St={size:String};function kt(e,t=wt){return n.computed(()=>e.size!==void 0?{fontSize:e.size in t?`${t[e.size]}px`:e.size}:null)}function Ue(e,t,o,l){return Object.defineProperty(e,t,{get:o,set:l,enumerable:!0}),e}function ie(e){return n.markRaw(n.defineComponent(e))}function _l(e){return n.markRaw(e)}function ge(e,t){return e!==void 0&&e()||t}function Tl(e,t){if(e!==void 0){const o=e();if(o!=null)return[...o]}return t}function Me(e,t){return e!==void 0?t.concat(e()):t}function Rl(e,t){return e===void 0?t:t!==void 0?t.concat(e()):e()}function Al(e,t,o,l,i,a){t.key=l+i;const u=n.h(e,t,o);return i?n.withDirectives(u,a()):u}const Xt="0 0 24 24",xt=e=>e,Ct=e=>`ionicons ${e}`,Yt={"mdi-":e=>`mdi ${e}`,"icon-":xt,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":Ct,"ion-ios":Ct,"ion-logo":Ct,"iconfont ":xt,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`,"i-":xt},Zt={o_:"-outlined",r_:"-round",s_:"-sharp"},Gt={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},Fl=new RegExp("^("+Object.keys(Yt).join("|")+")"),Ll=new RegExp("^("+Object.keys(Zt).join("|")+")"),Jt=new RegExp("^("+Object.keys(Gt).join("|")+")"),Pl=/^[Mm]\s?[-+]?\.?\d/,$l=/^img:/,Ol=/^svguse:/,zl=/^ion-/,Il=/^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,be=ie({name:"QIcon",props:{...St,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:t}){const{proxy:{$q:o}}=n.getCurrentInstance(),l=kt(e),i=n.computed(()=>"q-icon"+(e.left?" on-left":"")+(e.right?" on-right":"")+(e.color!==void 0?` text-${e.color}`:"")),a=n.computed(()=>{let u,s=e.name;if(s==="none"||!s)return{none:!0};if(o.iconMapFn!==null){const c=o.iconMapFn(s);if(c!==void 0)if(c.icon!==void 0){if(s=c.icon,s==="none"||!s)return{none:!0}}else return{cls:c.cls,content:c.content!==void 0?c.content:" "}}if(Pl.test(s)){const[c,g=Xt]=s.split("|");return{svg:!0,viewBox:g,nodes:c.split("&&").map(p=>{const[h,q,H]=p.split("@@");return n.h("path",{style:q,d:h,transform:H})})}}if($l.test(s))return{img:!0,src:s.slice(4)};if(Ol.test(s)){const[c,g=Xt]=s.split("|");return{svguse:!0,src:c.slice(7),viewBox:g}}let m=" ";const v=s.match(Fl);if(v!==null)u=Yt[v[1]](s);else if(Il.test(s))u=s;else if(zl.test(s))u=`ionicons ion-${o.platform.is.ios?"ios":"md"}${s.slice(3)}`;else if(Jt.test(s)){u="notranslate material-symbols";const c=s.match(Jt);c!==null&&(s=s.slice(6),u+=Gt[c[1]]),m=s}else{u="notranslate material-icons";const c=s.match(Ll);c!==null&&(s=s.slice(2),u+=Zt[c[1]]),m=s}return{cls:u,content:m}});return()=>{const u={class:i.value,style:l.value,"aria-hidden":"true"};return a.value.none?n.h(e.tag,u,ge(t.default)):a.value.img?n.h(e.tag,u,Me(t.default,[n.h("img",{src:a.value.src})])):a.value.svg?n.h(e.tag,u,Me(t.default,[n.h("svg",{viewBox:a.value.viewBox||"0 0 24 24"},a.value.nodes)])):a.value.svguse?n.h(e.tag,u,Me(t.default,[n.h("svg",{viewBox:a.value.viewBox},[n.h("use",{"xlink:href":a.value.src})])])):(a.value.cls!==void 0&&(u.class+=" "+a.value.cls),n.h(e.tag,u,Me(t.default,[a.value.content])))}}}),Dl={size:{type:[String,Number],default:"1em"},color:String};function Hl(e){return{cSize:n.computed(()=>e.size in wt?`${wt[e.size]}px`:e.size),classes:n.computed(()=>"q-spinner"+(e.color?` text-${e.color}`:""))}}const en=ie({name:"QSpinner",props:{...Dl,thickness:{type:Number,default:5}},setup(e){const{cSize:t,classes:o}=Hl(e);return()=>n.h("svg",{class:o.value+" q-spinner-mat",width:t.value,height:t.value,viewBox:"25 25 50 50"},[n.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":e.thickness,"stroke-miterlimit":"10"})])}});function qt(e,t){const o=e.style;for(const l in t)o[l]=t[l]}function jl(e){if(e==null)return;if(typeof e=="string")try{return document.querySelector(e)||void 0}catch{return}const t=n.unref(e);if(t)return t.$el||t}function Et(e,t){if(e==null||e.contains(t))return!0;for(let o=e.nextElementSibling;o!==null;o=o.nextElementSibling)if(o.contains(t))return!0;return!1}const ae={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const e=Object.defineProperty({},"passive",{get(){Object.assign(ae,{hasPassive:!0,passive:{passive:!0},notPassive:{passive:!1},passiveCapture:{passive:!0,capture:!0},notPassiveCapture:{passive:!1,capture:!0}})}});window.addEventListener("qtest",null,e),window.removeEventListener("qtest",null,e)}catch{}function Nl(){}function tn(e){return e.touches&&e.touches[0]?e=e.touches[0]:e.changedTouches&&e.changedTouches[0]?e=e.changedTouches[0]:e.targetTouches&&e.targetTouches[0]&&(e=e.targetTouches[0]),{top:e.clientY,left:e.clientX}}function ve(e){e.stopPropagation()}function ce(e){e.cancelable!==!1&&e.preventDefault()}function oe(e){e.cancelable!==!1&&e.preventDefault(),e.stopPropagation()}function Mt(e,t,o){const l=`__q_${t}_evt`;e[l]=[...e[l]??[],...o],o.forEach(i=>{i[0].addEventListener(i[1],e[i[2]],ae[i[3]])})}function nn(e,t){const o=`__q_${t}_evt`;e[o]!==void 0&&(e[o].forEach(l=>{l[0].removeEventListener(l[1],e[l[2]],ae[l[3]])}),e[o]=void 0)}function Bt(e){return e!==Object(e)||e.isComposing||e.qKeyEvent}function we(e,t){return!Bt(e)&&[t].flat().includes(e.keyCode)}function Ul(e,t=250){let o=!1,l;return function(...a){return o||(o=!0,setTimeout(()=>{o=!1},t),l=e.apply(this,a)),l}}function ln(e,t,o,l){o.modifiers.stop&&ve(e);const i=o.modifiers.color,a=o.modifiers.center||l===!0,u=document.createElement("span"),s=document.createElement("span"),m=tn(e),{left:v,top:c,width:g,height:p}=t.getBoundingClientRect(),h=Math.hypot(g,p),q=h/2,H=`${(g-h)/2}px`,b=a?H:`${m.left-v-q}px`,O=`${(p-h)/2}px`,W=a?O:`${m.top-c-q}px`;s.className="q-ripple__inner",qt(s,{height:`${h}px`,width:`${h}px`,transform:`translate3d(${b},${W},0) scale3d(.2,.2,1)`,opacity:0}),u.className=`q-ripple${i?" text-"+i:""}`,u.setAttribute("dir","ltr"),u.append(s),t.append(u);const E=()=>{u.remove(),clearTimeout(M)};o.abort.push(E);let M=setTimeout(()=>{s.classList.add("q-ripple__inner--enter"),s.style.transform=`translate3d(${H},${O},0) scale3d(1,1,1)`,s.style.opacity=.2,M=setTimeout(()=>{s.classList.remove("q-ripple__inner--enter"),s.classList.add("q-ripple__inner--leave"),s.style.opacity=0,M=setTimeout(()=>{u.remove(),o.abort.splice(o.abort.indexOf(E),1)},275)},250)},50)}function on(e,{modifiers:t,value:o,arg:l}){const i={...e.cfg.ripple,...t,...o};e.modifiers={early:i.early===!0,stop:i.stop===!0,center:i.center===!0,color:i.color||l,keyCodes:[i.keyCodes||13].flat()}}const an=_l({name:"ripple",beforeMount(e,t){const o=t.instance.$.appContext.config.globalProperties.$q.config||{};if(o.ripple===!1)return;const l={cfg:o,enabled:t.value!==!1,modifiers:{},abort:[],start(i){l.enabled&&!i.qSkipRipple&&i.type===(l.modifiers.early?"pointerdown":"click")&&ln(i,e,l,i.qKeyEvent===!0)},keystart:Ul(i=>{l.enabled&&!i.qSkipRipple&&we(i,l.modifiers.keyCodes)&&i.type===`key${l.modifiers.early?"down":"up"}`&&ln(i,e,l,!0)},300)};on(l,t),e.__qripple=l,Mt(l,"main",[[e,"pointerdown","start","passive"],[e,"click","start","passive"],[e,"keydown","keystart","passive"],[e,"keyup","keystart","passive"]])},updated(e,t){if(t.oldValue!==t.value){const o=e.__qripple;o!==void 0&&(o.enabled=t.value!==!1,o.enabled&&Object(t.value)===t.value&&on(o,t))}},beforeUnmount(e){const t=e.__qripple;t!==void 0&&(t.abort.forEach(o=>{o()}),nn(t,"main"),delete e.__qripple)}}),rn={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},Kl=Object.keys(rn),Wl={align:{type:String,validator:e=>Kl.includes(e)}};function Ql(e){return n.computed(()=>{const t=e.align===void 0?e.vertical?"stretch":"left":e.align;return`${e.vertical?"items":"justify"}-${rn[t]}`})}function Vt(e){if(Object(e.$parent)===e.$parent)return e.$parent;let{parent:t}=e.$;for(;Object(t)===t;){if(Object(t.proxy)===t.proxy)return t.proxy;t=t.parent}}function un(e){return e.appContext.config.globalProperties.$router!==void 0}function sn(e){return e.isUnmounted===!0||e.isDeactivated===!0}function cn(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function dn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Xl(e,t){for(const o in t){const l=t[o],i=e[o];if(typeof l=="string"){if(l!==i)return!1}else if(!Array.isArray(i)||i.length!==l.length||l.some((a,u)=>a!==i[u]))return!1}return!0}function fn(e,t){return Array.isArray(t)?e.length===t.length&&e.every((o,l)=>o===t[l]):e.length===1&&e[0]===t}function Yl(e,t){return Array.isArray(e)?fn(e,t):Array.isArray(t)?fn(t,e):e===t}function Zl(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const o in e)if(!Yl(e[o],t[o]))return!1;return!0}const mn={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},Gl={...mn,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function vn({fallbackTag:e,useDisableForRouterLinkProps:t=!0}={}){const o=n.getCurrentInstance(),{props:l,proxy:i,emit:a}=o,u=un(o),s=n.computed(()=>!l.disable&&l.href!==void 0),m=t?n.computed(()=>u&&!l.disable&&!s.value&&l.to!==void 0&&l.to!==null&&l.to!==""):n.computed(()=>u&&!s.value&&l.to!==void 0&&l.to!==null&&l.to!==""),v=n.computed(()=>m.value?W(l.to):null),c=n.computed(()=>v.value!==null),g=n.computed(()=>s.value||c.value),p=n.computed(()=>l.type==="a"||g.value?"a":l.tag||e||"div"),h=n.computed(()=>s.value?{href:l.href,target:l.target}:c.value?{href:v.value.href,target:l.target}:{}),q=n.computed(()=>{if(!c.value)return-1;const{matched:L}=v.value,{length:P}=L,D=L[P-1];if(D===void 0)return-1;const I=i.$route.matched;if(I.length===0)return-1;const X=I.findIndex(dn.bind(null,D));if(X!==-1)return X;const w=cn(L[P-2]);return P>1&&cn(D)===w&&I.at(-1).path!==w?I.findIndex(dn.bind(null,L[P-2])):X}),H=n.computed(()=>c.value&&q.value!==-1&&Xl(i.$route.params,v.value.params)),b=n.computed(()=>H.value&&q.value===i.$route.matched.length-1&&Zl(i.$route.params,v.value.params)),O=n.computed(()=>c.value?b.value?` ${l.exactActiveClass} ${l.activeClass}`:l.exact?"":H.value?` ${l.activeClass}`:"":"");function W(L){try{return i.$router.resolve(L)}catch{}return null}function E(L,{returnRouterError:P,to:D=l.to,replace:I=l.replace}={}){if(l.disable)return L.preventDefault(),Promise.resolve(!1);if(L.metaKey||L.altKey||L.ctrlKey||L.shiftKey||L.button!==void 0&&L.button!==0||l.target==="_blank")return Promise.resolve(!1);L.preventDefault();const X=i.$router[I?"replace":"push"](D);return P?X:X.then(()=>{}).catch(()=>{})}function M(L){if(c.value){const P=D=>E(L,D);a("click",L,P),L.defaultPrevented||P()}else a("click",L)}return{hasRouterLink:c,hasHrefLink:s,hasLink:g,linkTag:p,resolvedLink:v,linkIsActive:H,linkIsExactActive:b,linkClass:O,linkAttrs:h,getLink:W,navigateToRouterLink:E,navigateOnClick:M}}const hn={none:0,xs:4,sm:8,md:16,lg:24,xl:32},Jl={xs:8,sm:10,md:14,lg:20,xl:24},eo=["button","submit","reset"],to=/[^\s]\/[^\s]/,no=["flat","outline","push","unelevated"];function lo(e,t){return e.flat?"flat":e.outline?"outline":e.push?"push":e.unelevated?"unelevated":t}const oo={...{...St,...mn,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...no.reduce((e,t)=>(e[t]=Boolean)&&e,{}),square:Boolean,rounded:Boolean,glossy:Boolean,size:String,fab:Boolean,fabMini:Boolean,padding:String,color:String,textColor:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,tabindex:[Number,String],ripple:{type:[Boolean,Object],default:!0},align:{...Wl.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},round:Boolean};function io(e){const t=kt(e,Jl),o=Ql(e),{hasRouterLink:l,hasLink:i,linkTag:a,linkAttrs:u,navigateOnClick:s}=vn({fallbackTag:"button"}),m=n.computed(()=>{const b=e.fab||e.fabMini?{}:t.value;return e.padding!==void 0?{...b,padding:e.padding.split(/\s+/).map(O=>O in hn?hn[O]+"px":O).join(" "),minWidth:"0",minHeight:"0"}:b}),v=n.computed(()=>e.rounded||e.fab||e.fabMini),c=n.computed(()=>!e.disable&&!e.loading),g=n.computed(()=>c.value?e.tabindex||0:-1),p=n.computed(()=>lo(e,"standard")),h=n.computed(()=>{const b={tabindex:g.value};return i.value?Object.assign(b,u.value):eo.includes(e.type)&&(b.type=e.type),a.value==="a"?(e.disable?b["aria-disabled"]="true":b.href===void 0&&(b.role="button"),!l.value&&to.test(e.type)&&(b.type=e.type)):e.disable&&(b.disabled="",b["aria-disabled"]="true"),e.loading&&e.percentage!==void 0&&Object.assign(b,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e.percentage}),b}),q=n.computed(()=>{let b;e.color!==void 0?b=e.flat||e.outline?`text-${e.textColor||e.color}`:`bg-${e.color} text-${e.textColor||"white"}`:e.textColor&&(b=`text-${e.textColor}`);const O=e.round?"round":`rectangle${v.value?" q-btn--rounded":e.square?" q-btn--square":""}`;return`q-btn--${p.value} q-btn--${O}`+(b!==void 0?" "+b:"")+(c.value?" q-btn--actionable q-focusable q-hoverable":e.disable?" disabled":"")+(e.fab?" q-btn--fab":e.fabMini?" q-btn--fab-mini":"")+(e.noCaps?" q-btn--no-uppercase":"")+(e.dense?" q-btn--dense":"")+(e.stretch?" no-border-radius self-stretch":"")+(e.glossy?" glossy":"")+(e.square?" q-btn--square":"")}),H=n.computed(()=>o.value+(e.stack?" column":" row")+(e.noWrap?" no-wrap text-no-wrap":"")+(e.loading?" q-btn__content--hidden":""));return{classes:q,style:m,innerClasses:H,attributes:h,hasLink:i,linkTag:a,navigateOnClick:s,isActionable:c}}const{passiveCapture:se}=ae;let Be=null,Ve=null,_e=null;function Ke(e){oe(e),e.qSkipRipple=!0}const ao=ie({name:"QBtn",props:{...oo,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(e,{slots:t,emit:o}){const{proxy:l}=n.getCurrentInstance(),{classes:i,style:a,innerClasses:u,attributes:s,hasLink:m,linkTag:v,navigateOnClick:c,isActionable:g}=io(e),p=n.ref(null),h=n.ref(null);let q=null,H,b=null,O=null;const W=n.computed(()=>e.label!==void 0&&e.label!==null&&e.label!==""),E=n.computed(()=>e.disable||e.ripple===!1?!1:{keyCodes:m.value?[13,32]:[13],...e.ripple===!0?{}:e.ripple}),M=n.computed(()=>({center:e.round})),L=n.computed(()=>{const k=Math.max(0,Math.min(100,e.percentage));return k>0?{transition:"transform 0.6s",transform:`translateX(${k-100}%)`}:{}}),P=n.computed(()=>{if(e.loading)return{onMousedown:Ke,onTouchstart:Ke,onClick:Ke,onKeydown:Ke,onKeyup:Ke};if(g.value){const k={onClick:I,onKeydown:X,onMousedown:x};if(l.$q.platform.has.touch){const T=e.onTouchstart!==void 0?"":"Passive";k[`onTouchstart${T}`]=w}return k}return{onClick:oe}}),D=n.computed(()=>({ref:p,class:"q-btn q-btn-item non-selectable no-outline "+i.value,style:a.value,...s.value,...P.value}));function I(k){if(p.value!==null){if(k!==void 0){if(k.defaultPrevented)return;const T=document.activeElement;if(e.type==="submit"&&T!==document.body&&!p.value.contains(T)&&!T.contains(p.value)){k.qAvoidFocus||p.value.focus();const U=()=>{var y;O=null,document.removeEventListener("keydown",oe,!0),document.removeEventListener("keyup",U,se),(y=p.value)==null||y.removeEventListener("blur",U,se)};O=U,document.addEventListener("keydown",oe,!0),document.addEventListener("keyup",U,se),p.value.addEventListener("blur",U,se)}}c(k)}}function X(k){p.value!==null&&(o("keydown",k),we(k,[13,32])&&Ve!==p.value&&(Ve!==null&&C(),k.defaultPrevented||(k.qAvoidFocus||p.value.focus(),Ve=p.value,p.value.classList.add("q-btn--active"),document.addEventListener("keyup",B,!0),p.value.addEventListener("blur",B,se)),oe(k)))}function w(k){p.value!==null&&(o("touchstart",k),!k.defaultPrevented&&(Be!==p.value&&(Be!==null&&C(),Be=p.value,q=k.target,q.addEventListener("touchcancel",B,se),q.addEventListener("touchend",B,se)),H=!0,b!==null&&clearTimeout(b),b=setTimeout(()=>{b=null,H=!1},200)))}function x(k){p.value!==null&&(k.qSkipRipple=H===!0,o("mousedown",k),!k.defaultPrevented&&_e!==p.value&&(_e!==null&&C(),_e=p.value,p.value.classList.add("q-btn--active"),document.addEventListener("mouseup",B,se)))}function B(k){if(p.value!==null&&!((k==null?void 0:k.type)==="blur"&&document.activeElement===p.value)){if((k==null?void 0:k.type)==="keyup"){if(Ve===p.value&&we(k,[13,32])){const T=new MouseEvent("click",k);T.qKeyEvent=!0,k.defaultPrevented&&ce(T),k.cancelBubble&&ve(T),p.value.dispatchEvent(T),oe(k),k.qKeyEvent=!0}o("keyup",k)}C()}}function C(k){var U,y;O==null||O();const T=h.value;!k&&(Be===p.value||_e===p.value)&&T!==null&&T!==document.activeElement&&(T.setAttribute("tabindex",-1),T.focus({preventScroll:!0})),Be===p.value&&(q!==null&&(q.removeEventListener("touchcancel",B,se),q.removeEventListener("touchend",B,se)),Be=q=null),_e===p.value&&(document.removeEventListener("mouseup",B,se),_e=null),Ve===p.value&&(document.removeEventListener("keyup",B,!0),(U=p.value)==null||U.removeEventListener("blur",B,se),Ve=null),(y=p.value)==null||y.classList.remove("q-btn--active")}return n.onBeforeUnmount(()=>{C(!0)}),Object.assign(l,{click:k=>{g.value&&I(k)}}),()=>{let k=[];e.icon!==void 0&&k.push(n.h(be,{name:e.icon,left:!e.stack&&W.value,role:"img"})),W.value&&k.push(n.h("span",{class:"block"},[e.label])),k=Me(t.default,k),e.iconRight!==void 0&&!e.round&&k.push(n.h(be,{name:e.iconRight,right:!e.stack&&W.value,role:"img"}));const T=[n.h("span",{class:"q-focus-helper",ref:h})];return e.loading&&e.percentage!==void 0&&T.push(n.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(e.darkPercentage?" q-btn__progress--dark":"")},[n.h("span",{class:"q-btn__progress-indicator fit block",style:L.value})])),T.push(n.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+u.value},k)),e.loading!==null&&T.push(n.h(n.Transition,{name:"q-transition--fade"},()=>e.loading?[n.h("span",{key:"loading",class:"absolute-full flex flex-center"},t.loading!==void 0?t.loading():[n.h(en)])]:null)),n.withDirectives(n.h(v.value,D.value,T),[[an,E.value,void 0,M.value]])}}}),ro={class:"row full-height"},uo={class:"col bg-blue-1 column"},so={class:"bg-green-2 row justify-end items-center",style:{height:"50px"}},co=n.defineComponent({__name:"LayoutOne",props:{height:{default:"auto"}},setup(e){return(t,o)=>(n.openBlock(),n.createElementBlock("div",{class:"q-ma-sm",style:n.normalizeStyle({height:e.height})},[n.createElementVNode("div",ro,[o[1]||(o[1]=n.createElementVNode("div",{class:"bg-orange-1 text-center",style:{width:"300px"}}," 左边菜单宽度固定(水平居中) ",-1)),n.createElementVNode("div",uo,[o[0]||(o[0]=n.createElementVNode("div",{class:"col q-pa-md"},[n.createElementVNode("div",{class:"bg-yellow-2 flex flex-center"}," 文本水平、垂直居中 "),n.createElementVNode("div",{class:"q-mt-md"}," 主内容区 ")],-1)),n.createElementVNode("div",so,[n.createVNode(ao,{class:"q-mr-md",color:"primary",label:"返回"})])])])],4))}});function fo(){if(typeof crypto>"u")return()=>{throw new Error("[Quasar uid()] Secure RNG not available. Cannot generate collision-resistant UUID.")};if(crypto.randomUUID)return()=>crypto.randomUUID();const e=Array.from({length:256},(l,i)=>(i+256).toString(16).slice(1));let t,o;return()=>{(t===void 0||o+16>4096)&&(o=0,t=new Uint8Array(4096),crypto.getRandomValues(t));const l=o;return o+=16,t[l+6]=t[l+6]&15|64,t[l+8]=t[l+8]&63|128,e[t[l]]+e[t[l+1]]+e[t[l+2]]+e[t[l+3]]+"-"+e[t[l+4]]+e[t[l+5]]+"-"+e[t[l+6]]+e[t[l+7]]+"-"+e[t[l+8]]+e[t[l+9]]+"-"+e[t[l+10]]+e[t[l+11]]+e[t[l+12]]+e[t[l+13]]+e[t[l+14]]+e[t[l+15]]}}const _t=fo(),We=n.ref(!1);let Tt;const mo=512;function vo(e){return typeof e=="string"?e.slice(0,mo).toLowerCase():""}const ho=/(?:^|\s)version\/([\w.]+)/,go=/(?:^|\s)applewebkit\/[\w.]+/,po=/(?:^|\s)safari\/[\w.]+/;function bo(e){const t=ho.exec(e);return t!==null&&go.test(e)&&po.test(e)?{browser:"safari",version:t[1]}:null}const yo=/(?:^|\s)opera\/([\w.]+)/,wo=/(?:^|\s)version\/([\w.]+)/;function So(e){const t=yo.exec(e);if(t===null)return null;const o=wo.exec(e);return{browser:"opera",version:(o==null?void 0:o[1])||t[1]}}const ko=/(edg|edge|edga|edgios)\/([\w.]+)/,xo=/(opr)[\/]([\w.]+)/,Co=/(vivaldi)[\/]([\w.]+)/,qo=/(chrome|crios)[\/]([\w.]+)/,Eo=/(firefox|fxios)[\/]([\w.]+)/,Mo=/(webkit)[\/]([\w.]+)/;function Bo(e,t){let o=ko.exec(e)||xo.exec(e)||Co.exec(e)||qo.exec(e);if(o===null){const l=bo(e);if(l!==null)return{...l,platform:t[0]||""};if(o=Eo.exec(e)||Mo.exec(e),o===null){const i=So(e);if(i!==null)return{...i,platform:t[0]||""};o=[]}}return{browser:o[5]||o[3]||o[1]||"",version:o[4]||o[2]||"0",platform:t[0]||""}}const Vo=/(ipad)/,_o=/(ipod)/,To=/(iphone)/,Ro=/(windows phone)/,Ao=/(kindle)/,Fo=/(silk)/,Lo=/(android)/,Po=/(win)/,$o=/(mac)/,Oo=/(linux)/,zo=/(cros)/;function Io(e){return Vo.exec(e)||_o.exec(e)||Ro.exec(e)||To.exec(e)||Ao.exec(e)||Fo.exec(e)||Lo.exec(e)||Po.exec(e)||$o.exec(e)||Oo.exec(e)||zo.exec(e)||[]}const gn="ontouchstart"in window||window.navigator.maxTouchPoints>0;function Do(e){const t=vo(e),o=Io(t),l=Bo(t,o),i={mobile:!1,desktop:!1,cordova:!1,capacitor:!1,nativeMobile:!1,electron:!1,bex:!1,linux:!1,mac:!1,win:!1,cros:!1,chrome:!1,firefox:!1,opera:!1,safari:!1,vivaldi:!1,edge:!1,edgeChromium:!1,ie:!1,webkit:!1,android:!1,ios:!1,ipad:!1,iphone:!1,ipod:!1,kindle:!1,winphone:!1,silk:!1};l.browser&&(i[l.browser]=!0,i.version=l.version,i.versionNumber=Number.parseInt(l.version,10)),l.platform&&(i[l.platform]=!0),i["windows phone"]&&(i.winphone=!0,delete i["windows phone"]);const a=i.android||i.ios||i.ipad||i.iphone||i.ipod||i.kindle||i.silk||i.winphone;if(a===!0||t.includes("mobile")?i.mobile=!0:i.desktop=!0,i.edga||i.edgios||i.edg?(i.edge=!0,l.browser="edge"):i.crios?(i.chrome=!0,l.browser="chrome"):i.fxios&&(i.firefox=!0,l.browser="firefox"),(i.ipod||i.ipad||i.iphone)&&(i.ios=!0),i.vivaldi&&(l.browser="vivaldi",i.vivaldi=!0),(i.chrome||i.opr||i.safari||i.vivaldi||i.mobile&&!i.ios&&!a)&&(i.webkit=!0),i.opr&&(l.browser="opera",i.opera=!0),i.safari&&(i.android?(l.browser="android",i.android=!0):i.kindle?(l.browser="kindle",i.kindle=!0):i.silk&&(l.browser="silk",i.silk=!0)),i.name=l.browser,i.platform=l.platform,t.includes("electron"))i.electron=!0;else if(document.location.href.includes("-extension://"))i.bex=!0;else{if(window.Capacitor!==void 0?(i.capacitor=!0,i.nativeMobile=!0,i.nativeMobileWrapper="capacitor"):(window._cordovaNative!==void 0||window.cordova!==void 0)&&(i.cordova=!0,i.nativeMobile=!0,i.nativeMobileWrapper="cordova"),We.value&&(Tt={is:{...i}}),gn&&i.mac&&(i.desktop&&i.safari||i.nativeMobile&&!i.android&&!i.ios&&!i.ipad)){delete i.mac,delete i.desktop;const u=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(i,{mobile:!0,ios:!0,platform:u,[u]:!0})}!i.mobile&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete i.desktop,i.mobile=!0)}return i}const pn=navigator.userAgent||navigator.vendor||window.opera,Ho={has:{touch:!1,webStorage:!1},within:{iframe:!1}},de={userAgent:pn,is:Do(pn),has:{touch:gn},within:{iframe:window.self!==window.top}},Rt={install(e){const{$q:t}=e;We.value?(e.onSSRHydrated.push(()=>{Object.assign(t.platform,de),We.value=!1}),t.platform=n.reactive(this)):t.platform=this}};{let e;Ue(de.has,"webStorage",()=>{if(e!==void 0)return e;try{if(window.localStorage)return e=!0,!0}catch{}return e=!1,!1}),Object.assign(Rt,de),We.value&&(Object.assign(Rt,Tt,Ho),Tt=null)}function jo(e){return e??null}function bn(e,t){return e??(t?`f_${_t()}`:null)}function No({getValue:e,required:t=!0}={}){if(We.value){const o=e!==void 0?n.ref(jo(e())):n.ref(null);return t&&o.value===null&&n.onMounted(()=>{o.value=`f_${_t()}`}),e!==void 0&&n.watch(e,l=>{o.value=bn(l,t)}),o}return e!==void 0?n.computed(()=>bn(e(),t)):n.ref(`f_${_t()}`)}const yn=/^on[A-Z]/;function Uo(){const e=n.getCurrentInstance(),{attrs:t}=e,o={listeners:n.ref({}),attributes:n.ref({})};function l(){const i={},a={};for(const u in t)u!=="class"&&u!=="style"&&!yn.test(u)&&(i[u]=t[u]);for(const u in e.vnode.props)yn.test(u)&&(a[u]=e.vnode.props[u]);o.attributes.value=i,o.listeners.value=a}return n.onBeforeUpdate(l),l(),o}const nt={dark:{type:Boolean,default:null}};function lt(e,t){return n.computed(()=>e.dark===null?t.dark.isActive:e.dark)}const Ko="_q_fo_";function Wo({validate:e,resetValidation:t,requiresQForm:o}){const l=n.inject(Ko,!1);if(l!==!1){const{props:i,proxy:a}=n.getCurrentInstance();Object.assign(a,{validate:e,resetValidation:t}),n.watch(()=>i.disable,u=>{u?(typeof t=="function"&&t(),l.unbindComponent(a)):l.bindComponent(a)}),n.onMounted(()=>{i.disable||l.bindComponent(a)}),n.onBeforeUnmount(()=>{i.disable||l.unbindComponent(a)})}else o&&console.error("Parent QForm not found on useFormChild()!")}const wn=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,Sn=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,kn=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,ot=/^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])\)$/,it=/^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(\.[\d]+)?|1(\.0+)?)\)$/,Qo=/^-?[\d]+\/(0[1-9]|1[0-2])\/(0[1-9]|[12]\d|3[01])$/,Xo=/^([0-1]?\d|2[0-3]):[0-5]\d$/,Yo=/^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/,Zo=/^([0-1]?\d|2[0-3]):[0-5]\d(:[0-5]\d)?$/,Go=/^(([^<>()[\]\\.,;:\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,}))$/,At={date:e=>Qo.test(e),time:e=>Xo.test(e),fulltime:e=>Yo.test(e),timeOrFulltime:e=>Zo.test(e),email:e=>Go.test(e),hexColor:e=>wn.test(e),hexaColor:e=>Sn.test(e),hexOrHexaColor:e=>kn.test(e),rgbColor:e=>ot.test(e),rgbaColor:e=>it.test(e),rgbOrRgbaColor:e=>ot.test(e)||it.test(e),hexOrRgbColor:e=>wn.test(e)||ot.test(e),hexaOrRgbaColor:e=>Sn.test(e)||it.test(e),anyColor:e=>kn.test(e)||ot.test(e)||it.test(e)};function xn(e,t=250,o){let l=null;function i(...a){const u=()=>{l=null,e.apply(this,a)};l!==null&&clearTimeout(l),l=setTimeout(u,t)}return i.cancel=()=>{l!==null&&(clearTimeout(l),l=null)},i}const Jo=[!0,!1,"ondemand"],ei={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:e=>Jo.includes(e)}};function ti(e,t){const{props:o,proxy:l}=n.getCurrentInstance(),i=n.ref(!1),a=n.ref(null),u=n.ref(!1);Wo({validate:H,resetValidation:q});let s=0,m;const v=n.computed(()=>o.rules!==void 0&&o.rules!==null&&o.rules.length!==0),c=n.computed(()=>!o.disable&&v.value&&!t.value),g=n.computed(()=>o.error===!0||i.value),p=n.computed(()=>typeof o.errorMessage=="string"&&o.errorMessage.length!==0?o.errorMessage:a.value);n.watch(()=>o.modelValue,()=>{u.value=!0,c.value&&o.lazyRules===!1&&b()});function h(){o.lazyRules!=="ondemand"&&c.value&&u.value&&b()}n.watch(()=>o.reactiveRules,O=>{O?m===void 0&&(m=n.watch(()=>o.rules,h,{immediate:!0,deep:!0})):m!==void 0&&(m(),m=void 0)},{immediate:!0}),n.watch(()=>o.lazyRules,h),n.watch(e,O=>{O?u.value=!0:c.value&&o.lazyRules!=="ondemand"&&b()});function q(){s++,t.value=!1,u.value=!1,i.value=!1,a.value=null,b.cancel()}function H(O=o.modelValue){if(o.disable||!v.value)return!0;const W=++s,E=t.value?()=>{}:()=>{u.value=!0},M=(P,D)=>{P&&E(),i.value=P,a.value=D||null,t.value=!1},L=[];for(let P=0;P<o.rules.length;P++){const D=o.rules[P];let I;if(typeof D=="function"?I=D(O,At):typeof D=="string"&&(At[D]===void 0?(console.error(`Unknown validation pattern rule: "${D}"`),I=!1):I=At[D](O)),I===!1||typeof I=="string")return M(!0,I),!1;I!==!0&&I!==void 0&&L.push(I)}return L.length===0?(M(!1),!0):(t.value=!0,Promise.all(L).then(P=>{if(P===void 0||!Array.isArray(P)||P.length===0)return W===s&&M(!1),!0;const D=P.find(I=>I===!1||typeof I=="string");return W===s&&M(D!==void 0,D),D===void 0},P=>(W===s&&(console.error(P),M(!0)),!1)))}const b=xn(H,0);return n.onBeforeUnmount(()=>{m==null||m(),b.cancel()}),Object.assign(l,{resetValidation:q,validate:H}),Ue(l,"hasError",()=>g.value),{isDirtyModel:u,hasRules:v,hasError:g,errorMessage:p,validate:H,resetValidation:q}}let Te=[],Qe=[];function Cn(e){Qe=Qe.filter(t=>t!==e)}function ni(e){Cn(e),Qe.push(e)}function qn(e){Cn(e),Qe.length===0&&Te.length!==0&&(Te.at(-1)(),Te=[])}function Re(e){Qe.length===0?e():Te.push(e)}function En(e){Te=Te.filter(t=>t!==e)}function Xe(e){return e!=null&&String(e).length!==0}const at={...{...nt,...ei,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},maxlength:[Number,String]},Ft=["update:modelValue","clear","focus","blur"];function Lt({requiredForAttr:e=!0,tagProp:t,changeEvent:o=!1}={}){const{props:l,proxy:i}=n.getCurrentInstance(),a=lt(l,i.$q),u=No({required:e,getValue:()=>l.for});return{requiredForAttr:e,changeEvent:o,tag:t?n.computed(()=>l.tag):{value:"label"},isDark:a,editable:n.computed(()=>!l.disable&&!l.readonly),innerLoading:n.ref(!1),focused:n.ref(!1),hasPopupOpen:!1,splitAttrs:Uo(),targetUid:u,rootRef:n.ref(null),targetRef:n.ref(null),controlRef:n.ref(null)}}function rt(e,t){return t===null?null:n.h("div",{key:e,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},t)}function Pt(e){const{props:t,emit:o,slots:l,attrs:i,proxy:a}=n.getCurrentInstance(),{$q:u}=a;let s=null;e.hasValue===void 0&&(e.hasValue=n.computed(()=>Xe(t.modelValue))),e.emitValue===void 0&&(e.emitValue=y=>{o("update:modelValue",y)}),e.controlEvents===void 0&&(e.controlEvents={onFocusin:X,onFocusout:w}),Object.assign(e,{clearValue:x,onControlFocusin:X,onControlFocusout:w,focus:D}),e.computedCounter===void 0&&(e.computedCounter=n.computed(()=>{if(t.counter){const y=typeof t.modelValue=="string"||typeof t.modelValue=="number"?String(t.modelValue).length:Array.isArray(t.modelValue)?t.modelValue.length:0,_=t.maxlength!==void 0?t.maxlength:t.maxValues;return y+(_!==void 0?" / "+_:"")}}));const{isDirtyModel:m,hasRules:v,hasError:c,errorMessage:g,resetValidation:p}=ti(e.focused,e.innerLoading),h=e.floatingLabel!==void 0?n.computed(()=>t.stackLabel||e.focused.value||e.floatingLabel.value):n.computed(()=>t.stackLabel||e.focused.value||e.hasValue.value),q=n.computed(()=>t.bottomSlots||t.hint!==void 0||v.value||t.counter||t.error!==null),H=n.computed(()=>t.filled?"filled":t.outlined?"outlined":t.borderless?"borderless":t.standout?"standout":"standard"),b=n.computed(()=>`q-field row no-wrap items-start q-field--${H.value}`+(e.fieldClass!==void 0?` ${e.fieldClass.value}`:"")+(t.rounded?" q-field--rounded":"")+(t.square?" q-field--square":"")+(h.value?" q-field--float":"")+(W.value?" q-field--labeled":"")+(t.dense?" q-field--dense":"")+(t.itemAligned?" q-field--item-aligned q-item-type":"")+(e.isDark.value?" q-field--dark":"")+(e.getControl===void 0?" q-field--auto-height":"")+(e.focused.value?" q-field--focused":"")+(c.value?" q-field--error":"")+(c.value||e.focused.value?" q-field--highlighted":"")+(!t.hideBottomSpace&&q.value?" q-field--with-bottom":"")+(t.disable?" q-field--disabled":t.readonly?" q-field--readonly":"")),O=n.computed(()=>"q-field__control relative-position row no-wrap"+(t.bgColor!==void 0?` bg-${t.bgColor}`:"")+(c.value?" text-negative":typeof t.standout=="string"&&t.standout.length!==0&&e.focused.value?` ${t.standout}`:t.color!==void 0?` text-${t.color}`:"")),W=n.computed(()=>t.labelSlot||t.label!==void 0),E=n.computed(()=>"q-field__label no-pointer-events absolute ellipsis"+(t.labelColor!==void 0&&!c.value?` text-${t.labelColor}`:"")),M=n.computed(()=>Ue({id:e.targetUid.value,editable:e.editable.value,focused:e.focused.value,floatingLabel:h.value,modelValue:t.modelValue,emitValue:e.emitValue},"field",()=>e.rootRef.value)),L=n.computed(()=>{const y={};return e.targetUid.value&&(y.for=e.targetUid.value),t.disable&&(y["aria-disabled"]="true"),y});function P(){var Y;const y=document.activeElement;let _=(Y=e.targetRef)==null?void 0:Y.value;_&&(y===null||y.id!==e.targetUid.value)&&(_.hasAttribute("tabindex")||(_=_.querySelector("[tabindex]")),_!==y&&(_==null||_.focus({preventScroll:!0})))}function D(){Re(P)}function I(){En(P);const y=document.activeElement;y!==null&&e.rootRef.value.contains(y)&&y.blur()}function X(y){s!==null&&(clearTimeout(s),s=null),e.editable.value&&!e.focused.value&&(e.focused.value=!0,o("focus",y))}function w(y,_){s!==null&&clearTimeout(s),s=setTimeout(()=>{s=null,!(document.hasFocus()&&(e.hasPopupOpen||e.controlRef===void 0||e.controlRef.value===null||e.controlRef.value.contains(document.activeElement)))&&(e.focused.value&&(e.focused.value=!1,o("blur",y)),_==null||_())},0)}function x(y){var _,Y;oe(y),u.platform.is.mobile?e.rootRef.value.contains(document.activeElement)&&document.activeElement.blur():(((_=e.targetRef)==null?void 0:_.value)||e.rootRef.value).focus(),t.type==="file"&&(e.inputRef.value.value=null),(Y=e.onClear)==null||Y.call(e),o("update:modelValue",null),e.changeEvent&&o("change",null),o("clear",t.modelValue),n.nextTick(()=>{const Z=m.value;p(),m.value=Z})}function B(y){[13,32].includes(y.keyCode)&&x(y)}function C(){const y=[];return l.prepend!==void 0&&y.push(n.h("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:ce},l.prepend())),y.push(n.h("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},k())),c.value&&!t.noErrorIcon&&y.push(rt("error",[n.h(be,{name:u.iconSet.field.error,color:"negative"})])),t.loading||e.innerLoading.value?y.push(rt("inner-loading-append",l.loading!==void 0?l.loading():[n.h(en,{color:t.color})])):t.clearable&&e.hasValue.value&&e.editable.value&&y.push(rt("inner-clearable-append",[n.h(be,{class:"q-field__focusable-action",name:t.clearIcon||u.iconSet.field.clear,tabindex:0,role:"button","aria-hidden":"false","aria-label":u.lang.label.clear,onKeyup:B,onClick:x})])),l.append!==void 0&&y.push(n.h("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:ce},l.append())),e.getInnerAppend!==void 0&&y.push(rt("inner-append",e.getInnerAppend())),e.getControlChild!==void 0&&y.push(e.getControlChild()),y}function k(){const y=[];return t.prefix!==void 0&&t.prefix!==null&&y.push(n.h("div",{class:"q-field__prefix no-pointer-events row items-center"},t.prefix)),e.getShadowControl!==void 0&&e.hasShadow.value&&y.push(e.getShadowControl()),W.value&&y.push(n.h("div",{class:E.value},ge(l.label,t.label))),e.getControl!==void 0?y.push(e.getControl()):l.rawControl!==void 0?y.push(l.rawControl()):l.control!==void 0&&y.push(n.h("div",{ref:e.targetRef,class:"q-field__native row",tabindex:-1,...e.splitAttrs.attributes.value,"data-autofocus":t.autofocus||void 0},l.control(M.value))),t.suffix!==void 0&&t.suffix!==null&&y.push(n.h("div",{class:"q-field__suffix no-pointer-events row items-center"},t.suffix)),y.concat(ge(l.default))}function T(){let y,_;c.value?g.value!==null?(y=[n.h("div",{role:"alert"},g.value)],_=`q--slot-error-${g.value}`):(y=ge(l.error),_="q--slot-error"):(!t.hideHint||e.focused.value)&&(t.hint!==void 0?(y=[n.h("div",t.hint)],_=`q--slot-hint-${t.hint}`):(y=ge(l.hint),_="q--slot-hint"));const Y=t.counter||l.counter!==void 0;if(t.hideBottomSpace&&!Y&&y===void 0)return;const Z=n.h("div",{key:_,class:"q-field__messages col"},y);return n.h("div",{class:"q-field__bottom row items-start q-field__bottom--"+(t.hideBottomSpace?"stale":"animated"),onClick:ce},[t.hideBottomSpace?Z:n.h(n.Transition,{name:"q-transition--field-message"},()=>Z),Y?n.h("div",{class:"q-field__counter"},l.counter!==void 0?l.counter():e.computedCounter.value):null])}let U=!1;return n.onDeactivated(()=>{U=!0}),n.onActivated(()=>{U&&t.autofocus&&a.focus()}),t.autofocus&&n.onMounted(()=>{a.focus()}),n.onBeforeUnmount(()=>{s!==null&&clearTimeout(s)}),Object.assign(a,{focus:D,blur:I}),function(){const _=e.getControl===void 0&&l.control===void 0?{...e.splitAttrs.attributes.value,"data-autofocus":t.autofocus||void 0,...L.value}:L.value;return n.h(e.tag.value,{ref:e.rootRef,class:[b.value,i.class],style:i.style,..._},[l.before!==void 0?n.h("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:ce},l.before()):null,n.h("div",{class:"q-field__inner relative-position col self-stretch"},[n.h("div",{ref:e.controlRef,class:O.value,tabindex:-1,...e.controlEvents},C()),q.value?T():null]),l.after!==void 0?n.h("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:ce},l.after()):null])}}const Mn={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},{tokenMap:Bn,tokenKeys:li}=Vn({"#":{pattern:"[\\d]",negate:"[^\\d]"},S:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]"},N:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]"},A:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:e=>e.toLocaleUpperCase()},a:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:e=>e.toLocaleLowerCase()},X:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:e=>e.toLocaleUpperCase()},x:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:e=>e.toLocaleLowerCase()}});function Vn(e){const t=Object.keys(e),o={};return t.forEach(l=>{const i=e[l];o[l]={...i,regex:new RegExp(i.pattern)}}),{tokenMap:o,tokenKeys:t}}function _n(e){return new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+e.join("")+"])|(.)","g")}const Tn=/[.*+?^${}()|[\]\\]/g,oi=_n(li),ne=String.fromCodePoint(1),ii={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean,maskTokens:Object};function ai(e,t,o,l){let i,a,u,s,m,v;const c=n.computed(()=>{if(e.maskTokens===void 0||e.maskTokens===null)return{tokenMap:Bn,tokenRegexMask:oi};const{tokenMap:w}=Vn(e.maskTokens),x={...Bn,...w};return{tokenMap:x,tokenRegexMask:_n(Object.keys(x))}}),g=n.ref(null),p=n.ref(q());function h(){return e.autogrow||["textarea","text","search","url","tel","password"].includes(e.type)}n.watch(()=>e.type+e.autogrow,b),n.watch(()=>e.mask,w=>{if(w!==void 0)O(p.value,!0);else{const x=I(p.value);b(),e.modelValue!==x&&t("update:modelValue",x)}}),n.watch(()=>e.fillMask+e.reverseFillMask,()=>{g.value&&O(p.value,!0)}),n.watch(()=>e.unmaskedValue,()=>{g.value&&O(p.value)}),n.watch(()=>e.maskTokens,()=>{g.value&&O(p.value,!0)},{deep:!0});function q(){if(b(),g.value){const w=P(I(e.modelValue));return e.fillMask!==!1?X(w):w}return e.modelValue}function H(w){if(w<i.length)return i.slice(-w);let x="",B=i;const C=B.indexOf(ne);if(C!==-1){for(let k=w-B.length;k>0;k--)x+=ne;B=B.slice(0,C)+x+B.slice(C)}return B}function b(){if(g.value=e.mask!==void 0&&e.mask.length!==0&&h(),!g.value){s=void 0,i="",a="";return}const w=Mn[e.mask]===void 0?e.mask:Mn[e.mask],x=typeof e.fillMask=="string"&&e.fillMask.length!==0?e.fillMask.slice(0,1):"_",B=x.replace(Tn,String.raw`\$&`),C=[],k=[],T=[];let U=e.reverseFillMask,y="",_="";w.replace(c.value.tokenRegexMask,(S,z,K,F,A)=>{if(F!==void 0){const f=c.value.tokenMap[F];T.push(f),_=f.negate,U&&(k.push("(?:"+_+"+)?("+f.pattern+"+)?(?:"+_+"+)?("+f.pattern+"+)?"),U=!1),k.push("(?:"+_+"+)?("+f.pattern+")?");return}if(K!==void 0)y="\\"+(K==="\\"?"":K),T.push(K);else{const f=z!==void 0?z:A;y=f==="\\"?String.raw`\\\\`:f.replace(Tn,String.raw`\\$&`),T.push(f)}C.push("([^"+y+"]+)?"+y+"?")});const Y=new RegExp("^"+C.join("")+"("+(y===""?".":"[^"+y+"]")+"+)?"+(y===""?"":"["+y+"]*")+"$"),Z=k.length-1,d=k.map((S,z)=>z===0&&e.reverseFillMask?new RegExp("^"+B+"*"+S):z===Z?new RegExp("^"+S+"("+(_===""?".":_)+"+)?"+(e.reverseFillMask?"$":B+"*")):new RegExp("^"+S));u=T,s=S=>{const z=Y.exec(e.reverseFillMask?S:S.slice(0,T.length+1));z!==null&&(S=z.slice(1).join(""));const K=[],F=d.length;for(let A=0,f=S;A<F;A++){const j=d[A].exec(f);if(j===null)break;f=f.slice(j.shift().length),K.push(...j)}return K.length!==0?K.join(""):S},i=T.map(S=>typeof S=="string"?S:ne).join(""),a=i.split(ne).join(x)}function O(w,x,B){const C=l.value,k=(C==null?void 0:C.selectionEnd)??0,T=C===null?0:C.value.length-k,U=I(w);x===!0&&b();const y=P(U,x),_=e.fillMask!==!1?X(y):y,Y=p.value!==_;C!==null&&C.value!==_&&(C.value=_),Y&&(p.value=_),C!==null&&document.activeElement===C&&n.nextTick(()=>{if(_===a){const d=e.reverseFillMask?a.length:0;C.setSelectionRange(d,d,"forward");return}if(B==="insertFromPaste"&&!e.reverseFillMask){const d=C.selectionEnd;let S=k-1;for(let z=m;z<=S&&z<d;z++)i[z]!==ne&&S++;E.right(C,S);return}if(["deleteContentBackward","deleteContentForward"].includes(B)){const d=e.reverseFillMask?k===0?_.length>y.length?1:0:Math.max(0,_.length-(_===a?0:Math.min(y.length,T)+1))+1:k;C.setSelectionRange(d,d,"forward");return}if(e.reverseFillMask)if(Y){const d=Math.max(0,_.length-(_===a?0:Math.min(y.length,T+1)));d===1&&k===1?C.setSelectionRange(d,d,"forward"):E.rightReverse(C,d)}else{const d=_.length-T;C.setSelectionRange(d,d,"backward")}else if(Y){const d=Math.max(0,i.indexOf(ne),Math.min(y.length,k)-1);E.right(C,d)}else{const d=k-1;E.right(C,d)}});const Z=e.unmaskedValue?I(_):_;String(e.modelValue)!==Z&&(e.modelValue!==null||Z!=="")&&o(Z,!0)}function W(w,x,B){const C=P(I(w.value));x=Math.max(0,i.indexOf(ne),Math.min(C.length,x)),m=x,w.setSelectionRange(x,B,"forward")}const E={left(w,x){const B=!i.slice(x-1).includes(ne);let C=Math.max(0,x-1);for(;C>=0;C--)if(i[C]===ne){x=C,B&&x++;break}if(C<0&&i[x]!==void 0&&i[x]!==ne)return E.right(w,0);x>=0&&w.setSelectionRange(x,x,"backward")},right(w,x){const B=w.value.length;let C=Math.min(B,x+1);for(;C<=B;C++)if(i[C]===ne){x=C;break}else i[C-1]===ne&&(x=C);if(C>B&&i[x-1]!==void 0&&i[x-1]!==ne)return E.left(w,B);w.setSelectionRange(x,x,"forward")},leftReverse(w,x){const B=H(w.value.length);let C=Math.max(0,x-1);for(;C>=0;C--)if(B[C-1]===ne){x=C;break}else if(B[C]===ne&&(x=C,C===0))break;if(C<0&&B[x]!==void 0&&B[x]!==ne)return E.rightReverse(w,0);x>=0&&w.setSelectionRange(x,x,"backward")},rightReverse(w,x){const B=w.value.length,C=H(B),k=!C.slice(0,x+1).includes(ne);let T=Math.min(B,x+1);for(;T<=B;T++)if(C[T-1]===ne){x=T,x>0&&k&&x--;break}if(T>B&&C[x-1]!==void 0&&C[x-1]!==ne)return E.leftReverse(w,B);w.setSelectionRange(x,x,"forward")}};function M(w){t("click",w),v=void 0}function L(w){if(t("keydown",w),Bt(w)||w.altKey)return;const x=l.value,B=x.selectionStart,C=x.selectionEnd;if(w.shiftKey||(v=void 0),w.keyCode===37||w.keyCode===39){w.shiftKey&&v===void 0&&(v=x.selectionDirection==="forward"?B:C);const k=E[(w.keyCode===39?"right":"left")+(e.reverseFillMask?"Reverse":"")];if(w.preventDefault(),k(x,v===B?C:B),w.shiftKey){const T=x.selectionStart;x.setSelectionRange(Math.min(v,T),Math.max(v,T),"forward")}}else w.keyCode===8&&!e.reverseFillMask&&B===C?(E.left(x,B),x.setSelectionRange(x.selectionStart,C,"backward")):w.keyCode===46&&e.reverseFillMask&&B===C&&(E.rightReverse(x,C),x.setSelectionRange(B,x.selectionEnd,"forward"))}function P(w,x){if(w==null||w==="")return"";if(e.reverseFillMask)return D(w,x);const B=u;let C=0,k="";for(let T=0;T<B.length;T++){const U=w[C],y=B[T];if(typeof y=="string")k+=y,x===!0&&U===y&&C++;else if(U!==void 0&&y.regex.test(U))k+=y.transform!==void 0?y.transform(U):U,C++;else return k}return k}function D(w,x){const B=u,C=i.indexOf(ne);let k=w.length-1,T="";for(let U=B.length-1;U>=0&&k!==-1;U--){const y=B[U];let _=w[k];if(typeof y=="string")T=y+T,x===!0&&_===y&&k--;else if(_!==void 0&&y.regex.test(_))do T=(y.transform!==void 0?y.transform(_):_)+T,k--,_=w[k];while(C===U&&_!==void 0&&y.regex.test(_));else return T}return T}function I(w){return typeof w!="string"||s===void 0?typeof w=="number"?s(String(w)):w:s(w)}function X(w){return a.length-w.length<=0?w:e.reverseFillMask&&w.length!==0?a.slice(0,-w.length)+w:w+a.slice(w.length)}return{innerValue:p,hasMask:g,moveCursorForPaste:W,updateMaskValue:O,onMaskedKeydown:L,onMaskedClick:M}}const Rn={name:String};function An(e){return n.computed(()=>e.name||e.for)}function ri(e,t){function o(){const l=e.modelValue;try{const i="DataTransfer"in window?new DataTransfer:"ClipboardEvent"in window?new ClipboardEvent("").clipboardData:void 0;return Object(l)===l&&("length"in l?[...l]:[l]).forEach(a=>{i.items.add(a)}),{files:i.files}}catch{return{files:void 0}}}return n.computed(()=>{if(e.type==="file")return o()})}const ui=/[\u3000-\u303F\u3040-\u309F\u30A0-\u30FF\uFF00-\uFF9F\u4E00-\u9FAF\u3400-\u4DBF]/,si=/[\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,ci=/[\u3131-\u314E\u314F-\u3163\uAC00-\uD7A3]/,di=/[a-z0-9_ -]$/i;function Fn(e){return function(o){if(o.type==="compositionend"||o.type==="change"){if(!o.target.qComposing)return;o.target.qComposing=!1,e(o)}else o.type==="compositionupdate"&&!o.target.qComposing&&typeof o.data=="string"&&(de.is.firefox?!di.test(o.data):ui.test(o.data)||si.test(o.data)||ci.test(o.data))&&(o.target.qComposing=!0)}}const fi=ie({name:"QInput",inheritAttrs:!1,props:{...at,...ii,...Rn,modelValue:[String,Number,FileList],modelModifiers:Object,shadowText:String,type:{type:String,default:"text"},debounce:[String,Number],autogrow:Boolean,inputClass:[Array,String,Object],inputStyle:[Array,String,Object]},emits:[...Ft,"paste","change","keydown","click","animationend"],setup(e,{emit:t,attrs:o}){const{proxy:l}=n.getCurrentInstance(),{$q:i}=l,a={};let u=Number.NaN,s=!1,m=!1,v=null,c;const g=n.ref(null),p=An(e),{innerValue:h,hasMask:q,moveCursorForPaste:H,updateMaskValue:b,onMaskedKeydown:O,onMaskedClick:W}=ai(e,t,Y,g),E=ri(e),M=n.computed(()=>Xe(h.value)),L=Fn(y);function P(f){if(q.value&&f.type==="compositionstart"){f.target.qComposing=!0;return}L(f)}const D=Lt({changeEvent:!0}),I=n.computed(()=>e.type==="textarea"||e.autogrow),X=n.computed(()=>I.value||["text","search","url","tel","password"].includes(e.type)),w=n.computed(()=>{const f={...D.splitAttrs.listeners.value,onInput:y,onPaste:U,onChange:z,onBlur:K,onFocus:ve};return f.onCompositionstart=f.onCompositionupdate=f.onCompositionend=P,q.value&&(f.onKeydown=O,f.onClick=W),e.autogrow&&(f.onAnimationend=_),f}),x=n.computed(()=>{const f={tabindex:0,"data-autofocus":e.autofocus||void 0,rows:e.type==="textarea"?6:void 0,"aria-label":e.label,name:p.value,...D.splitAttrs.attributes.value,id:D.targetUid.value,maxlength:e.maxlength,disabled:e.disable,readonly:e.readonly};return I.value||(f.type=e.type),e.autogrow&&(f.rows=1),f});n.watch(()=>e.type,()=>{g.value&&(g.value.value=e.modelValue)}),n.watch(()=>e.modelValue,f=>{var j;if(v!==null&&(Z(),s=!1,m=!1,delete a.value),q.value){if(m&&(m=!1,String(f)===u))return;b(f)}else h.value!==f&&(h.value=f,e.type==="number"&&Object.hasOwn(a,"value")&&(s?s=!1:delete a.value),((j=e.modelModifiers)==null?void 0:j.trim)===!0&&Object.hasOwn(a,"value")&&(typeof a.value!="string"||a.value.trim()!==f)&&delete a.value);e.autogrow&&n.nextTick(S)}),n.watch(()=>e.autogrow,f=>{f?n.nextTick(S):g.value!==null&&o.rows>0&&(g.value.style.height="auto")}),n.watch(()=>e.dense,()=>{e.autogrow&&n.nextTick(S)});function B(){const f=document.activeElement;g.value!==null&&g.value!==f&&(f===null||f.id!==D.targetUid.value)&&g.value.focus({preventScroll:!0})}function C(){Re(B)}function k(){En(B);const f=document.activeElement;f!==null&&D.rootRef.value.contains(f)&&f.blur()}function T(){var f;(f=g.value)==null||f.select()}function U(f){if(q.value&&e.reverseFillMask!==!0){const j=f.target;H(j,j.selectionStart,j.selectionEnd)}t("paste",f)}function y(f){var N;if(!f||!f.target)return;if(e.type==="file"){t("update:modelValue",f.target.files);return}const j=f.target.value;if(f.target.qComposing){a.value=j;return}if(q.value)b(j,!1,f.inputType);else if(((N=e.modelModifiers)==null?void 0:N.trim)===!0&&(a.value=j),Y(j),X.value&&f.target===document.activeElement){const{selectionStart:$,selectionEnd:le}=f.target;$!==void 0&&le!==void 0&&n.nextTick(()=>{f.target===document.activeElement&&j.indexOf(f.target.value)===0&&f.target.setSelectionRange($,le)})}e.autogrow&&S()}function _(f){t("animationend",f),S()}function Y(f,j){c=()=>{var N;v=null,e.type!=="number"&&(((N=e.modelModifiers)==null?void 0:N.trim)!==!0||q.value)&&Object.hasOwn(a,"value")&&delete a.value,e.modelValue!==f&&u!==f&&(u=f,j===!0&&(m=!0),t("update:modelValue",f),n.nextTick(()=>{u===f&&(u=Number.NaN)})),c=void 0},e.type==="number"&&(s=!0,a.value=f),e.debounce!==void 0?(v!==null&&clearTimeout(v),a.value=f,v=setTimeout(c,e.debounce)):c()}function Z(){v!==null&&(clearTimeout(v),v=null),c=void 0}function d(){Z(),s=!1,m=!1,delete a.value}function S(){requestAnimationFrame(()=>{const f=g.value;if(f!==null){const j=f.parentNode.style,{scrollTop:N}=f,{overflowY:$,maxHeight:le}=i.platform.is.firefox?{}:window.getComputedStyle(f),pe=$!==void 0&&$!=="scroll";pe&&(f.style.overflowY="hidden"),j.marginBottom=f.scrollHeight-1+"px",f.style.height="1px",f.style.height=f.scrollHeight+"px",pe&&(f.style.overflowY=Number.parseInt(le,10)<f.scrollHeight?"auto":"hidden"),j.marginBottom="",f.scrollTop=N}})}function z(f){P(f),v!==null&&(clearTimeout(v),v=null),c==null||c(),t("change",f.target.value)}function K(f){f!==void 0&&ve(f),v!==null&&(clearTimeout(v),v=null),c==null||c(),s=!1,m=!1,delete a.value,e.type!=="file"&&setTimeout(()=>{g.value!==null&&(g.value.value=h.value!==void 0?h.value:"")},0)}function F(){return Object.hasOwn(a,"value")?a.value:h.value!==void 0?h.value:""}n.onBeforeUnmount(()=>{K()}),n.onMounted(()=>{e.autogrow&&S()}),Object.assign(D,{innerValue:h,fieldClass:n.computed(()=>`q-${I.value?"textarea":"input"}`+(e.autogrow?" q-textarea--autogrow":"")),hasShadow:n.computed(()=>e.type!=="file"&&typeof e.shadowText=="string"&&e.shadowText.length!==0),inputRef:g,emitValue:Y,onClear:d,hasValue:M,floatingLabel:n.computed(()=>M.value&&(e.type!=="number"||Number.isFinite(Number(h.value)))||Xe(e.displayValue)),getControl:()=>n.h(I.value?"textarea":"input",{ref:g,class:["q-field__native q-placeholder",e.inputClass],style:e.inputStyle,...x.value,...w.value,...e.type!=="file"?{value:F()}:E.value}),getShadowControl:()=>n.h("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(I.value?"":" text-no-wrap")},[n.h("span",{class:"invisible"},F()),n.h("span",e.shadowText)])});const A=Pt(D);return Object.assign(l,{focus:C,blur:k,select:T,getNativeElement:()=>g.value}),Ue(l,"nativeEl",()=>g.value),A}}),mi=n.defineComponent({__name:"UInput",props:{fieldLabel:{},labelPosition:{default:"top"},labelWidth:{},modelValue:{},outlined:{type:Boolean,default:!0},dense:{type:Boolean,default:!0},filled:{type:Boolean},borderless:{type:Boolean},label:{},hint:{},error:{type:Boolean},errorMessage:{},type:{},placeholder:{},disable:{type:Boolean},readonly:{type:Boolean},prefix:{},suffix:{},mask:{}},emits:["update:modelValue"],setup(e,{emit:t}){const o=e,l=t,i=n.computed(()=>o.labelPosition==="left"?{width:typeof o.labelWidth=="number"?`${o.labelWidth}px`:o.labelWidth}:{}),a=n.computed(()=>({"u-input-label-left":o.labelPosition==="left","u-input-label-top":o.labelPosition==="top"})),u=m=>{l("update:modelValue",m)},s=n.computed(()=>{const m=["fieldLabel","labelPosition","labelWidth","modelValue"],v={};for(const c in o)!m.includes(c)&&c!=="modelValue"&&(v[c]=o[c]);return v});return(m,v)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["u-input",a.value])},[e.fieldLabel?(n.openBlock(),n.createElementBlock("div",{key:0,class:"u-input-label",style:n.normalizeStyle(i.value)},n.toDisplayString(e.fieldLabel),5)):n.createCommentVNode("",!0),n.createElementVNode("div",{class:n.normalizeClass(["u-input-field",{"q-mt-xs":e.labelPosition==="top"}])},[n.createVNode(fi,n.mergeProps({outlined:"","model-value":e.modelValue},s.value,{"onUpdate:modelValue":u}),null,16,["model-value"])],2)],2))}}),Ln=(e,t)=>{const o=e.__vccOpts||e;for(const[l,i]of t)o[l]=i;return o},vi=Ln(mi,[["__scopeId","data-v-52ab7cd5"]]),hi=ie({name:"QField",inheritAttrs:!1,props:{...at,tag:{type:String,default:"label"}},emits:Ft,setup(){return Pt(Lt({tagProp:!0}))}});function Pn(e){e.keyCode===32&&oe(e)}const gi={xs:8,sm:10,md:14,lg:20,xl:24},pi=ie({name:"QChip",props:{...nt,...St,dense:Boolean,icon:String,iconRight:String,iconRemove:String,iconSelected:String,label:[String,Number],color:String,textColor:String,modelValue:{type:Boolean,default:!0},selected:{type:Boolean,default:null},square:Boolean,outline:Boolean,clickable:Boolean,removable:Boolean,removeAriaLabel:String,tabindex:[String,Number],disable:Boolean,ripple:{type:[Boolean,Object],default:!0}},emits:["update:modelValue","update:selected","remove","click"],setup(e,{slots:t,emit:o}){const{proxy:{$q:l}}=n.getCurrentInstance(),i=lt(e,l),a=kt(e,gi),u=n.computed(()=>e.selected||e.icon!==void 0),s=n.computed(()=>e.selected?e.iconSelected||l.iconSet.chip.selected:e.icon),m=n.computed(()=>e.iconRemove||l.iconSet.chip.remove),v=n.computed(()=>!e.disable&&(e.clickable||e.selected!==null)),c=n.computed(()=>{const b=e.outline&&e.color||e.textColor;return"q-chip row inline no-wrap items-center"+(!e.outline&&e.color!==void 0?` bg-${e.color}`:"")+(b?` text-${b} q-chip--colored`:"")+(e.disable?" disabled":"")+(e.dense?" q-chip--dense":"")+(e.outline?" q-chip--outline":"")+(e.selected?" q-chip--selected":"")+(v.value?" q-chip--clickable cursor-pointer non-selectable q-hoverable":"")+(e.square?" q-chip--square":"")+(i.value?" q-chip--dark q-dark":"")}),g=n.computed(()=>{const b=e.disable?{tabindex:-1,"aria-disabled":"true"}:{tabindex:e.tabindex||0,role:"button","aria-pressed":e.selected?"true":"false"},O={...b,role:"button","aria-hidden":"false","aria-label":e.removeAriaLabel||l.lang.label.remove};return{chip:b,remove:O}});function p(b){[13,32].includes(b.keyCode)&&(h(b),oe(b))}function h(b){e.disable||(o("update:selected",!e.selected),o("click",b))}function q(b){(b.keyCode===void 0||[13,32].includes(b.keyCode))&&(oe(b),e.disable||(o("update:modelValue",!1),o("remove")))}function H(){const b=[];v.value&&b.push(n.h("div",{class:"q-focus-helper"})),u.value&&b.push(n.h(be,{class:"q-chip__icon q-chip__icon--left",name:s.value}));const O=e.label!==void 0?[n.h("div",{class:"ellipsis"},[e.label])]:void 0;return b.push(n.h("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},Rl(t.default,O))),e.iconRight&&b.push(n.h(be,{class:"q-chip__icon q-chip__icon--right",name:e.iconRight})),e.removable&&b.push(n.h(be,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:m.value,...g.value.remove,onClick:q,onKeydown:Pn,onKeyup:q})),b}return()=>{if(!e.modelValue)return;const b={class:c.value,style:a.value};return v.value&&Object.assign(b,g.value.chip,{onClick:h,onKeydown:Pn,onKeyup:p}),Al("div",b,H(),"ripple",e.ripple!==!1&&!e.disable,()=>[[an,e.ripple]])}}}),bi=ie({name:"QItem",props:{...nt,...Gl,tag:{type:String,default:"div"},active:{type:Boolean,default:null},clickable:Boolean,dense:Boolean,insetLevel:Number,tabindex:[String,Number],focused:Boolean,manualFocus:Boolean},emits:["click","keyup"],setup(e,{slots:t,emit:o}){const{proxy:{$q:l}}=n.getCurrentInstance(),i=lt(e,l),{hasLink:a,linkAttrs:u,linkClass:s,linkTag:m,navigateOnClick:v}=vn(),c=n.ref(null),g=n.ref(null),p=n.computed(()=>e.clickable||a.value||e.tag==="label"),h=n.computed(()=>!e.disable&&p.value),q=n.computed(()=>"q-item q-item-type row no-wrap"+(e.dense?" q-item--dense":"")+(i.value?" q-item--dark":"")+(a.value&&e.active===null?s.value:e.active?` q-item--active${e.activeClass!==void 0?` ${e.activeClass}`:""}`:"")+(e.disable?" disabled":"")+(h.value?" q-item--clickable q-link cursor-pointer "+(e.manualFocus?"q-manual-focusable":"q-focusable q-hoverable")+(e.focused?" q-manual-focusable--focused":""):"")),H=n.computed(()=>e.insetLevel===void 0?null:{["padding"+(l.lang.rtl?"Right":"Left")]:16+e.insetLevel*56+"px"});function b(M){h.value&&(g.value!==null&&!M.qAvoidFocus&&(!M.qKeyEvent&&document.activeElement===c.value?g.value.focus({preventScroll:!0}):document.activeElement===g.value&&c.value.focus({preventScroll:!0})),v(M))}function O(M){if(h.value&&we(M,[13,32])){oe(M),M.qKeyEvent=!0;const L=new MouseEvent("click",M);L.qKeyEvent=!0,c.value.dispatchEvent(L)}o("keyup",M)}function W(M){h.value&&M.keyCode===32&&oe(M)}function E(){const M=Tl(t.default,[]);return h.value&&M.unshift(n.h("div",{class:"q-focus-helper",tabindex:-1,ref:g})),M}return()=>{const M={ref:c,class:q.value,style:H.value,role:a.value?void 0:h.value?"button":"listitem",onClick:b,onKeydown:W,onKeyup:O};return h.value?(M.tabindex=e.tabindex||"0",Object.assign(M,u.value)):p.value&&(M["aria-disabled"]="true"),n.h(m.value,M,E())}}}),yi=ie({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(e,{slots:t}){const o=n.computed(()=>`q-item__section column q-item__section--${e.avatar||e.side||e.thumbnail?"side":"main"}`+(e.top?" q-item__section--top justify-start":" justify-center")+(e.avatar?" q-item__section--avatar":"")+(e.thumbnail?" q-item__section--thumbnail":"")+(e.noWrap?" q-item__section--nowrap":""));return()=>n.h("div",{class:o.value},ge(t.default))}}),wi=ie({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(e,{slots:t}){const o=n.computed(()=>Number.parseInt(e.lines,10)),l=n.computed(()=>"q-item__label"+(e.overline?" q-item__label--overline text-overline":"")+(e.caption?" q-item__label--caption text-caption":"")+(e.header?" q-item__label--header":"")+(o.value===1?" ellipsis":"")),i=n.computed(()=>e.lines!==void 0&&o.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":o.value}:null);return()=>n.h("div",{style:i.value,class:l.value},ge(t.default))}});function Si(){if(window.getSelection!==void 0){const e=window.getSelection();e.empty!==void 0?e.empty():e.removeAllRanges!==void 0&&(e.removeAllRanges(),Rt.is.mobile||e.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}const ki={...{target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},contextMenu:Boolean};function xi({showing:e,avoidEmit:t,configureAnchorEl:o}){const{props:l,proxy:i,emit:a}=n.getCurrentInstance(),u=n.ref(null);let s=null;function m(h){return u.value===null?!1:h===void 0||h.touches===void 0||h.touches.length<=1}const v={};o===void 0&&(Object.assign(v,{hide(h){i.hide(h)},toggle(h){i.toggle(h),h.qAnchorHandled=!0},toggleKey(h){we(h,13)&&v.toggle(h)},contextClick(h){i.hide(h),ce(h),n.nextTick(()=>{i.show(h),h.qAnchorHandled=!0})},prevent:ce,mobileTouch(h){if(v.mobileCleanup(h),!m(h))return;i.hide(h),u.value.classList.add("non-selectable");const q=h.target;Mt(v,"anchor",[[q,"touchmove","mobileCleanup","passive"],[q,"touchend","mobileCleanup","passive"],[q,"touchcancel","mobileCleanup","passive"],[u.value,"contextmenu","prevent","notPassive"]]),s=setTimeout(()=>{s=null,i.show(h),h.qAnchorHandled=!0},300)},mobileCleanup(h){u.value.classList.remove("non-selectable"),s!==null&&(clearTimeout(s),s=null),e.value&&h!==void 0&&Si()}}),o=function(q=l.contextMenu){if(l.noParentEvent||u.value===null)return;const H=q?i.$q.platform.is.mobile?[[u.value,"touchstart","mobileTouch","passive"]]:[[u.value,"mousedown","hide","passive"],[u.value,"contextmenu","contextClick","notPassive"]]:[[u.value,"click","toggle","passive"],[u.value,"keyup","toggleKey","passive"]];Mt(v,"anchor",H)});function c(){nn(v,"anchor")}function g(h){for(u.value=h;u.value.classList.contains("q-anchor--skip");)u.value=u.value.parentNode;o()}function p(){if(l.target===!1||l.target===""||i.$el.parentNode===null)u.value=null;else if(l.target===!0)g(i.$el.parentNode);else{let h=l.target;if(typeof l.target=="string")try{h=document.querySelector(l.target)}catch{h=void 0}h!=null?(u.value=h.$el||h,o()):(u.value=null,console.error(`Anchor: target "${l.target}" not found`))}}return n.watch(()=>l.contextMenu,h=>{u.value!==null&&(c(),o(h))}),n.watch(()=>l.target,()=>{u.value!==null&&c(),p()}),n.watch(()=>l.noParentEvent,h=>{u.value!==null&&(h?c():o())}),n.onMounted(()=>{p(),!t&&l.modelValue&&u.value===null&&a("update:modelValue",!1)}),n.onBeforeUnmount(()=>{s!==null&&clearTimeout(s),c()}),{anchorEl:u,canShow:m,anchorEvents:v}}function Ci(e,t){const o=n.ref(null);let l;function i(s,m){const v=`${m!==void 0?"add":"remove"}EventListener`,c=m!==void 0?m:l;s!==window&&s[v]("scroll",c,ae.passive),window[v]("scroll",c,ae.passive),l=m}function a(){o.value!==null&&(i(o.value),o.value=null)}const u=n.watch(()=>e.noParentEvent,()=>{o.value!==null&&(a(),t())});return n.onBeforeUnmount(u),{localScrollTarget:o,unconfigureScrollTarget:a,changeScrollEvent:i}}const $n={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},On=["beforeShow","show","beforeHide","hide"];function zn({showing:e,canShow:t,hideOnRouteChange:o,handleShow:l,handleHide:i,handleRouteChange:a,processOnMount:u}){const s=n.getCurrentInstance(),{props:m,emit:v,proxy:c}=s;let g;function p(E){e.value?H(E):h(E)}function h(E){if(m.disable||(E==null?void 0:E.qAnchorHandled)===!0||t!==void 0&&!t(E))return;const M=m["onUpdate:modelValue"]!==void 0;M&&(v("update:modelValue",!0),g=E,n.nextTick(()=>{g===E&&(g=void 0)})),(m.modelValue===null||!M)&&q(E)}function q(E){e.value||(e.value=!0,v("beforeShow",E),l!==void 0?l(E):v("show",E))}function H(E){if(m.disable)return;const M=m["onUpdate:modelValue"]!==void 0;M&&(v("update:modelValue",!1),g=E,n.nextTick(()=>{g===E&&(g=void 0)})),(m.modelValue===null||!M)&&b(E)}function b(E){e.value&&(e.value=!1,v("beforeHide",E),i!==void 0?i(E):v("hide",E))}function O(E){m.disable&&E?m["onUpdate:modelValue"]!==void 0&&v("update:modelValue",!1):E===!0!==e.value&&(E?q:b)(g)}n.watch(()=>m.modelValue,O),o!==void 0&&un(s)&&n.watch(()=>c.$route.fullPath,()=>{o.value&&e.value&&(a==null||a(),H())}),n.onMounted(()=>{O(m.modelValue)});const W={show:h,hide:H,toggle:p};return Object.assign(c,W),W}const Ae=[];function qi(e,t){do{if(e.$options.name==="QMenu"){if(e.hide(t),e.$props.separateClosePopup)return Vt(e)}else if(e.__qPortal){const o=Vt(e);return(o==null?void 0:o.$options.name)==="QPopupProxy"?(e.hide(t),o):e}e=Vt(e)}while(e!=null)}const In={};let Ei=1,Mi=document.body;function Bi(e,t){const o=document.createElement("div");if(o.id=t!==void 0?`q-portal--${t}--${Ei++}`:e,In.globalNodes!==void 0){const l=In.globalNodes.class;l!==void 0&&(o.className=l)}return Mi.append(o),o}function Vi(e){e.remove()}const _i=ie({name:"QPortal",setup(e,{slots:t}){return()=>t.default()}});function Ti(e){for(e=e.parent;e!=null;){if(e.type.name==="QGlobalDialog")return!0;if(e.type.name==="QDialog"||e.type.name==="QMenu")return!1;e=e.parent}return!1}function Dn(e,t,o,l){const i=n.ref(!1),a=n.ref(!1);let u=null;const s={},m=l==="dialog"&&Ti(e);function v(g){if(g){qn(s),a.value=!0;return}a.value=!1,i.value||(!m&&u===null&&(u=Bi(!1,l)),i.value=!0,Ae.push(e.proxy),ni(s))}function c(g){if(a.value=!1,!g)return;qn(s),i.value=!1;const p=Ae.indexOf(e.proxy);p!==-1&&Ae.splice(p,1),u!==null&&(Vi(u),u=null)}return n.onUnmounted(()=>{c(!0)}),e.proxy.__qPortal=!0,Ue(e.proxy,"contentEl",()=>t.value),{showPortal:v,hidePortal:c,portalIsActive:i,portalIsAccessible:a,renderPortal:()=>m?o():i.value?[n.h(n.Teleport,{to:u},n.h(_i,o))]:void 0}}const Hn={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function jn(e,t=()=>{},o=()=>{}){return{transitionProps:n.computed(()=>{const l=`q-transition--${e.transitionShow||t()}`,i=`q-transition--${e.transitionHide||o()}`;return{appear:!0,enterFromClass:`${l}-enter-from`,enterActiveClass:`${l}-enter-active`,enterToClass:`${l}-enter-to`,leaveFromClass:`${i}-leave-from`,leaveActiveClass:`${i}-leave-active`,leaveToClass:`${i}-leave-to`}}),transitionStyle:n.computed(()=>`--q-transition-duration: ${e.transitionDuration}ms`)}}function Nn(){let e;const t=n.getCurrentInstance();function o(){e=void 0}return n.onDeactivated(o),n.onBeforeUnmount(o),{removeTick:o,registerTick(l){e=l,n.nextTick(()=>{e===l&&(sn(t)||e(),e=void 0)})}}}function Un(){let e=null;const t=n.getCurrentInstance();function o(){e!==null&&(clearTimeout(e),e=null)}return n.onDeactivated(o),n.onBeforeUnmount(o),{removeTimeout:o,registerTimeout(l,i){o(),sn(t)||(e=setTimeout(()=>{e=null,l()},i))}}}const Ri=[Element,String],Ai=[null,document,document.body,document.scrollingElement,document.documentElement];function Fi(e,t){let o=jl(t);if(o===void 0){if(e==null)return window;o=e.closest(".scroll,.scroll-y,.overflow-auto")}return Ai.includes(o)?window:o}function Li(e){return e===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:e.scrollTop}function Pi(e){return e===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:e.scrollLeft}let ut;function $i(){if(ut!==void 0)return ut;const e=document.createElement("p"),t=document.createElement("div");qt(e,{width:"100%",height:"200px"}),qt(t,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),t.append(e),document.body.append(t);const o=e.offsetWidth;t.style.overflow="scroll";let l=e.offsetWidth;return o===l&&(l=t.clientWidth),t.remove(),ut=o-l,ut}const Fe=[];let Le;function Oi(e){e.keyCode===27&&(Le=!0)}function zi(){Le&&(Le=!1)}function Ii(e){Le&&we(e,27)&&(Le=!1,Fe.at(-1)(e))}function Kn(e){window[e]("keydown",Oi),window[e]("blur",zi),window[e]("keyup",Ii),Le=!1}function Wn(e){de.is.desktop&&(Fe.push(e),Fe.length===1&&Kn("addEventListener"))}function st(e){const t=Fe.indexOf(e);t!==-1&&(Fe.splice(t,1),Fe.length===0&&Kn("removeEventListener"))}const Pe=[];function Qn(e){Pe.at(-1)(e)}function Xn(e){de.is.desktop&&(Pe.push(e),Pe.length===1&&document.body.addEventListener("focusin",Qn))}function $t(e){const t=Pe.indexOf(e);t!==-1&&(Pe.splice(t,1),Pe.length===0&&document.body.removeEventListener("focusin",Qn))}const{notPassiveCapture:ct}=ae,Se=[];function dt(e){const t=e.target;if(t===void 0||t.nodeType===8||t.classList.contains("no-pointer-events"))return;let o=null,l=!1;for(let i=Ae.length-1;i>=0;i--){const a=Ae[i].$,u=a.type.name;if(u!=="QTooltip"){if(u==="QDialog"){if(a.props.seamless!==!0){if(l===!1)return;o=new Set(Ae.slice(i+1).map(s=>s.contentEl));break}continue}l=!0}}for(let i=Se.length-1;i>=0;i--){const a=Se[i];if(o!==null&&!o.has(a.innerRef.value))return;if((a.anchorEl.value===null||!a.anchorEl.value.contains(t))&&(t===document.body||a.innerRef.value!==null&&!a.innerRef.value.contains(t)))e.qClickOutside=!0,a.onClickOutside(e);else return}}function Di(e){Se.push(e),Se.length===1&&(document.addEventListener("mousedown",dt,ct),document.addEventListener("touchstart",dt,ct))}function Yn(e){const t=Se.indexOf(e);t!==-1&&(Se.splice(t,1),Se.length===0&&(document.removeEventListener("mousedown",dt,ct),document.removeEventListener("touchstart",dt,ct)))}const Hi=new Map;function Zn(e){for(const[t,o]of Hi)if(o.$el.contains(e)===!0)return t}function Gn(e,t){if(e==null)return!1;const o=new Set;for(let l=Zn(t);l!==void 0&&o.has(l)===!1;l=Zn(l)){if(Et(e,l)===!0)return!0;o.add(l)}return!1}let Jn,el;const ji=["top","center","bottom"],Ni=["left","middle","right","start","end"];function tl(e){const t=e.split(" ");return t.length!==2?!1:ji.includes(t[0])?Ni.includes(t[1])?!0:(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1):(console.error("Anchor/Self position must start with one of top/center/bottom"),!1)}function Ui(e){return e?!(e.length!==2||typeof e[0]!="number"||typeof e[1]!="number"):!0}const Ot={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(e=>{Ot[`${e}#ltr`]=e,Ot[`${e}#rtl`]=e});function nl(e,t){const o=e.split(" ");return{vertical:o[0],horizontal:Ot[`${o[1]}#${t?"rtl":"ltr"}`]}}function Ki(e,t){let{top:o,left:l,right:i,bottom:a,width:u,height:s}=e.getBoundingClientRect();return t!==void 0&&(o-=t[1],l-=t[0],a+=t[1],i+=t[0],u+=t[0],s+=t[1]),{top:o,bottom:a,height:s,left:l,right:i,width:u,middle:l+(i-l)/2,center:o+(a-o)/2}}function Wi(e,t,o){let{top:l,left:i}=e.getBoundingClientRect();return l+=t.top,i+=t.left,o!==void 0&&(l+=o[1],i+=o[0]),{top:l,bottom:l+1,height:1,left:i,right:i+1,width:1,middle:i,center:l}}function Qi(e,t){return{top:0,center:t/2,bottom:t,left:0,middle:e/2,right:e}}function ll(e,t,o,l){return{top:e[o.vertical]-t[l.vertical],left:e[o.horizontal]-t[l.horizontal]}}function ol(e,t=0){if(e.targetEl===null||e.anchorEl===null||t>5)return;if(e.targetEl.offsetHeight===0||e.targetEl.offsetWidth===0){setTimeout(()=>{ol(e,t+1)},10);return}const{targetEl:o,offset:l,anchorEl:i,anchorOrigin:a,selfOrigin:u,absoluteOffset:s,fit:m,cover:v,maxHeight:c,maxWidth:g}=e;if(de.is.ios&&window.visualViewport!==void 0){const P=document.body.style,{offsetLeft:D,offsetTop:I}=window.visualViewport;D!==Jn&&(P.setProperty("--q-pe-left",D+"px"),Jn=D),I!==el&&(P.setProperty("--q-pe-top",I+"px"),el=I)}const{scrollLeft:p,scrollTop:h}=o,q=s===void 0?Ki(i,v?[0,0]:l):Wi(i,s,l);Object.assign(o.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:g,maxHeight:c,visibility:"visible"});const{offsetWidth:H,offsetHeight:b}=o,{elWidth:O,elHeight:W}=m||v?{elWidth:Math.max(q.width,H),elHeight:v?Math.max(q.height,b):b}:{elWidth:H,elHeight:b};let E={maxWidth:g,maxHeight:c};(m||v)&&(E.minWidth=q.width+"px",v&&(E.minHeight=q.height+"px")),Object.assign(o.style,E);const M=Qi(O,W);let L=ll(q,M,a,u);if(s===void 0||l===void 0)zt(L,q,M,a,u);else{const{top:P,left:D}=L;zt(L,q,M,a,u);let I=!1;if(L.top!==P){I=!0;const X=2*l[1];q.center=q.top-=X,q.bottom-=X+2}if(L.left!==D){I=!0;const X=2*l[0];q.middle=q.left-=X,q.right-=X+2}I&&(L=ll(q,M,a,u),zt(L,q,M,a,u))}E={top:L.top+"px",left:L.left+"px"},L.maxHeight!==void 0&&(E.maxHeight=L.maxHeight+"px",q.height>L.maxHeight&&(E.minHeight=E.maxHeight)),L.maxWidth!==void 0&&(E.maxWidth=L.maxWidth+"px",q.width>L.maxWidth&&(E.minWidth=E.maxWidth)),Object.assign(o.style,E),o.scrollTop!==h&&(o.scrollTop=h),o.scrollLeft!==p&&(o.scrollLeft=p)}function zt(e,t,o,l,i){const a=o.bottom,u=o.right,s=$i(),m=window.innerHeight-s,v=document.body.clientWidth;if(e.top<0||e.top+a>m)if(i.vertical==="center")e.top=t[l.vertical]>m/2?Math.max(0,m-a):0,e.maxHeight=Math.min(a,m);else if(t[l.vertical]>m/2){const c=Math.min(m,l.vertical==="center"?t.center:l.vertical===i.vertical?t.bottom:t.top);e.maxHeight=Math.min(a,c),e.top=Math.max(0,c-a)}else e.top=Math.max(0,l.vertical==="center"?t.center:l.vertical===i.vertical?t.top:t.bottom),e.maxHeight=Math.min(a,m-e.top);if(e.left<0||e.left+u>v)if(e.maxWidth=Math.min(u,v),i.horizontal==="middle")e.left=t[l.horizontal]>v/2?Math.max(0,v-u):0;else if(t[l.horizontal]>v/2){const c=Math.min(v,l.horizontal==="middle"?t.middle:l.horizontal===i.horizontal?t.right:t.left);e.maxWidth=Math.min(u,c),e.left=Math.max(0,c-e.maxWidth)}else e.left=Math.max(0,l.horizontal==="middle"?t.middle:l.horizontal===i.horizontal?t.left:t.right),e.maxWidth=Math.min(u,v-e.left)}const Xi=ie({name:"QMenu",inheritAttrs:!1,props:{...ki,...$n,...nt,...Hn,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noEscDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:tl},self:{type:String,validator:tl},offset:{type:Array,validator:Ui},scrollTarget:Ri,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...On,"click","escapeKey"],setup(e,{slots:t,emit:o,attrs:l}){let i=null,a,u,s;const m=n.getCurrentInstance(),{proxy:v}=m,{$q:c}=v,g=n.ref(null),p=n.ref(!1),h=n.computed(()=>!e.persistent&&!e.noRouteDismiss),q=lt(e,c),{registerTick:H,removeTick:b}=Nn(),{registerTimeout:O}=Un(),{transitionProps:W,transitionStyle:E}=jn(e),{localScrollTarget:M,changeScrollEvent:L,unconfigureScrollTarget:P}=Ci(e,K),{anchorEl:D,canShow:I}=xi({showing:p}),{hide:X}=zn({showing:p,canShow:I,handleShow:Z,handleHide:d,handleRouteChange:S,hideOnRouteChange:h,processOnMount:!0}),{showPortal:w,hidePortal:x,renderPortal:B}=Dn(m,g,N,"menu"),C={anchorEl:D,innerRef:g,onClickOutside($){if(!e.persistent&&p.value)return X($),($.type==="touchstart"||$.target.classList.contains("q-dialog__backdrop"))&&oe($),!0}},k=n.computed(()=>nl(e.anchor||(e.cover?"center middle":"bottom start"),c.lang.rtl)),T=n.computed(()=>e.cover?k.value:nl(e.self||"top start",c.lang.rtl)),U=n.computed(()=>(e.square?" q-menu--square":"")+(q.value?" q-menu--dark q-dark":"")),y=n.computed(()=>e.autoClose?{onClick:F}:{}),_=n.computed(()=>p.value&&!e.persistent);n.watch(_,$=>{$?(Wn(f),Di(C)):(st(f),Yn(C))});function Y(){Re(()=>{let $=g.value;$&&!$.contains(document.activeElement)&&($=$.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||$.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||$.querySelector("[autofocus], [data-autofocus]")||$,$.focus({preventScroll:!0}))})}function Z($){if(i=e.noRefocus?null:document.activeElement,Xn(A),w(),K(),a=void 0,$!==void 0&&(e.touchPosition||e.contextMenu)){const le=tn($);if(le.left!==void 0){const{top:pe,left:re}=D.value.getBoundingClientRect();a={left:le.left-re,top:le.top-pe}}}u===void 0&&(u=n.watch(()=>c.screen.width+"|"+c.screen.height+"|"+e.self+"|"+e.anchor+"|"+c.lang.rtl,j)),e.noFocus||document.activeElement.blur(),H(()=>{j(),e.noFocus||Y()}),O(()=>{c.platform.is.ios&&(s=e.autoClose,g.value.click()),j(),w(!0),o("show",$)},e.transitionDuration)}function d($){if(b(),x(),z(!0),i!==null&&($===void 0||!$.qClickOutside)){const le=(($==null?void 0:$.type.indexOf("key"))===0?i.closest('[tabindex]:not([tabindex^="-"])'):void 0)||i;i=null,Re(()=>{le.isConnected&&le.focus({preventScroll:!0})})}O(()=>{x(!0),o("hide",$)},e.transitionDuration)}function S(){i=null}function z($){a=void 0,u!==void 0&&(u(),u=void 0),($||p.value)&&($t(A),P(),Yn(C),st(f)),$||(i=null)}function K(){(D.value!==null||e.scrollTarget!==void 0)&&(M.value=Fi(D.value,e.scrollTarget),L(M.value,j))}function F($){s?s=!1:(qi(v,$),o("click",$))}function A($){_.value&&!e.noFocus&&!Et(g.value,$.target)&&!Gn(g.value,$.target)&&Y()}function f($){e.noEscDismiss||(o("escapeKey"),X($))}function j(){ol({targetEl:g.value,offset:e.offset,anchorEl:D.value,anchorOrigin:k.value,selfOrigin:T.value,absoluteOffset:a,fit:e.fit,cover:e.cover,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function N(){return n.h(n.Transition,W.value,()=>p.value?n.h("div",{role:"menu",...l,ref:g,tabindex:-1,class:["q-menu q-position-engine scroll"+U.value,l.class],style:[l.style,E.value],...y.value},ge(t.default)):null)}return n.onBeforeUnmount(()=>{z()}),Object.assign(v,{focus:Y,updatePosition:j}),B}});function Yi(e,t,o){function l(){}return n.onBeforeUnmount(()=>{e.value}),{removeFromHistory:l,addToHistory(){}}}let Ye=0,It,Dt,Ze,Ht=!1,il,al,rl,ke=null;function ul(e){e.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function ft(e){Ht||(Ht=!0,requestAnimationFrame(()=>{Ht=!1;const{height:t}=e.target,{clientHeight:o,scrollTop:l}=document.scrollingElement;(Ze===void 0||t!==window.innerHeight)&&(Ze=o-t,document.scrollingElement.scrollTop=l),l>Ze&&(document.scrollingElement.scrollTop-=Math.ceil((l-Ze)/8))}))}function sl(e){const t=document.body,o=window.visualViewport!==void 0;if(e==="add"){const{overflowY:l,overflowX:i}=window.getComputedStyle(t);It=Pi(window),Dt=Li(window),il=t.style.left,al=t.style.top,rl=window.location.pathname,t.style.left=`-${It}px`,t.style.top=`-${Dt}px`,i!=="hidden"&&(i==="scroll"||t.scrollWidth>window.innerWidth)&&t.classList.add("q-body--force-scrollbar-x"),l!=="hidden"&&(l==="scroll"||t.scrollHeight>window.innerHeight)&&t.classList.add("q-body--force-scrollbar-y"),document.documentElement.classList.add("q-document--prevent-scroll"),document.qScrollPrevented=!0,de.is.ios&&(o?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",ft,ae.passiveCapture),window.visualViewport.addEventListener("scroll",ft,ae.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",ul,ae.passiveCapture))}else de.is.ios&&(o?(window.visualViewport.removeEventListener("resize",ft,ae.passiveCapture),window.visualViewport.removeEventListener("scroll",ft,ae.passiveCapture)):window.removeEventListener("scroll",ul,ae.passiveCapture)),document.documentElement.classList.remove("q-document--prevent-scroll"),t.classList.remove("q-body--force-scrollbar-x","q-body--force-scrollbar-y"),document.qScrollPrevented=!1,t.style.left=il,t.style.top=al,window.location.pathname===rl&&window.scrollTo(It,Dt),Ze=void 0}function Zi(e){let t="add";if(e===!0){if(Ye++,ke!==null){clearTimeout(ke),ke=null;return}if(Ye>1)return}else{if(Ye===0||(Ye--,Ye>0))return;if(t="remove",de.is.ios&&de.is.nativeMobile){ke!==null&&clearTimeout(ke),ke=setTimeout(()=>{sl(t),ke=null},100);return}}sl(t)}function Gi(){let e;return{preventBodyScroll(t){t!==e&&(e!==void 0||t)&&(e=t,Zi(t))}}}let mt=0;const Ji={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"},cl={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},ea=ie({name:"QDialog",inheritAttrs:!1,props:{...$n,...Hn,transitionShow:String,transitionHide:String,persistent:Boolean,autoClose:Boolean,allowFocusOutside:Boolean,noEscDismiss:Boolean,noBackdropDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,noShake:Boolean,seamless:Boolean,maximized:Boolean,fullWidth:Boolean,fullHeight:Boolean,square:Boolean,backdropFilter:String,position:{type:String,default:"standard",validator:e=>["standard","top","bottom","left","right"].includes(e)}},emits:[...On,"shake","click","escapeKey"],setup(e,{slots:t,emit:o,attrs:l}){const i=n.getCurrentInstance(),a=n.ref(null),u=n.ref(!1),s=n.ref(!1);let m=null,v=null,c=!1,g=!1;const p=n.computed(()=>!e.persistent&&!e.noRouteDismiss&&!e.seamless),{preventBodyScroll:h}=Gi(),{registerTimeout:q}=Un(),{registerTick:H,removeTick:b}=Nn(),{transitionProps:O,transitionStyle:W}=jn(e,()=>cl[e.position][0],()=>cl[e.position][1]),E=n.computed(()=>W.value+(e.backdropFilter!==void 0?`;backdrop-filter:${e.backdropFilter};-webkit-backdrop-filter:${e.backdropFilter}`:"")),{showPortal:M,hidePortal:L,portalIsAccessible:P,renderPortal:D}=Dn(i,a,K,"dialog"),{hide:I}=zn({showing:u,hideOnRouteChange:p,handleShow:C,handleHide:k,handleRouteChange:T,processOnMount:!0});Yi(u);const X=n.computed(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${e.maximized?"maximized":"minimized"} q-dialog__inner--${e.position} ${Ji[e.position]}`+(s.value?" q-dialog__inner--animating":"")+(e.fullWidth?" q-dialog__inner--fullwidth":"")+(e.fullHeight?" q-dialog__inner--fullheight":"")+(e.square?" q-dialog__inner--square":"")),w=n.computed(()=>u.value&&!e.seamless),x=n.computed(()=>e.autoClose?{onClick:d}:{}),B=n.computed(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${w.value?"modal":"seamless"}`,l.class]);n.watch(()=>e.maximized,F=>{u.value&&Z(F)}),n.watch(w,F=>{h(F),F?(Xn(z),Wn(_)):($t(z),st(_))});function C(F){var A;v=!e.noRefocus&&document.activeElement!==null?document.activeElement:null,Z(e.maximized),M(),s.value=!0,e.noFocus?b():((A=document.activeElement)==null||A.blur(),H(U)),q(()=>{if(i.proxy.$q.platform.is.ios){if(!e.seamless&&document.activeElement){const{top:f,bottom:j}=document.activeElement.getBoundingClientRect(),{innerHeight:N}=window,$=window.visualViewport!==void 0?window.visualViewport.height:N;f>0&&j>$/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-$,j>=N?1/0:Math.ceil(document.scrollingElement.scrollTop+j-$/2))),document.activeElement.scrollIntoView()}g=!0,a.value.click(),g=!1}M(!0),s.value=!1,o("show",F)},e.transitionDuration)}function k(F){if(b(),Y(!0),s.value=!0,L(),v!==null){const A=((F==null?void 0:F.type.indexOf("key"))===0?v.closest('[tabindex]:not([tabindex^="-"])'):void 0)||v;v=null,Re(()=>{A.isConnected&&A.focus({preventScroll:!0})})}q(()=>{L(!0),s.value=!1,o("hide",F)},e.transitionDuration)}function T(){v=null}function U(F){Re(()=>{let A=a.value;if(A!==null){if(F!==void 0){const f=A.querySelector(F);if(f!==null){f.focus({preventScroll:!0});return}}A.contains(document.activeElement)||(A=A.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||A.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||A.querySelector("[autofocus], [data-autofocus]")||A,A.focus({preventScroll:!0}))}})}function y(F){F&&typeof F.focus=="function"?F.focus({preventScroll:!0}):U(),o("shake");const A=a.value;A!==null&&(A.classList.remove("q-animate--scale"),A.classList.add("q-animate--scale"),m!==null&&clearTimeout(m),m=setTimeout(()=>{m=null,a.value!==null&&(A.classList.remove("q-animate--scale"),U())},170))}function _(){e.seamless||(e.persistent||e.noEscDismiss?!e.maximized&&!e.noShake&&y():(o("escapeKey"),I()))}function Y(F){m!==null&&(clearTimeout(m),m=null),(F||u.value)&&(Z(!1),e.seamless||(h(!1),$t(z),st(_))),F||(v=null)}function Z(F){F?c||(mt<1&&document.body.classList.add("q-body--dialog"),mt++,c=!0):c&&(mt<2&&document.body.classList.remove("q-body--dialog"),mt--,c=!1)}function d(F){g||(I(F),o("click",F))}function S(F){!e.persistent&&!e.noBackdropDismiss?I(F):e.noShake||y()}function z(F){!e.allowFocusOutside&&P.value&&!Et(a.value,F.target)&&!Gn(a.value,F.target)&&U('[tabindex]:not([tabindex="-1"])')}Object.assign(i.proxy,{focus:U,shake:y,__updateRefocusTarget(F){v=F||null}}),n.onBeforeUnmount(Y);function K(){return n.h("div",{role:"dialog","aria-modal":w.value?"true":"false",...l,class:B.value},[n.h(n.Transition,{name:"q-transition--fade",appear:!0},()=>w.value?n.h("div",{class:"q-dialog__backdrop fixed-full",style:E.value,"aria-hidden":"true",onClick:S}):null),n.h(n.Transition,O.value,()=>u.value?n.h("div",{ref:a,class:X.value,style:W.value,tabindex:-1,...x.value},ge(t.default)):null)])}return D}});let vt=!1;{const e=document.createElement("div");e.setAttribute("dir","rtl"),Object.assign(e.style,{width:"1px",height:"1px",overflow:"auto"});const t=document.createElement("div");Object.assign(t.style,{width:"1000px",height:"1px"}),document.body.append(e),e.append(t),e.scrollLeft=-1e3,vt=e.scrollLeft>=0,e.remove()}const fe=1e3,ta=["start","center","end","start-force","center-force","end-force"],dl=Array.prototype.filter,na=window.getComputedStyle(document.body).overflowAnchor===void 0?Nl:function(t,o){t!==null&&(t._qOverflowAnimationFrame!==void 0&&cancelAnimationFrame(t._qOverflowAnimationFrame),t._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(t===null)return;t._qOverflowAnimationFrame=void 0;const l=t.children||[];dl.call(l,a=>a.dataset&&a.dataset.qVsAnchor!==void 0).forEach(a=>{delete a.dataset.qVsAnchor});const i=l[o];i!=null&&i.dataset&&(i.dataset.qVsAnchor="")}))};function $e(e,t){return e+t}function jt(e,t,o,l,i,a,u,s){const m=e===window?document.scrollingElement||document.documentElement:e,v=i?"offsetWidth":"offsetHeight",c={scrollStart:0,scrollViewSize:-u-s,scrollMaxSize:0,offsetStart:-u,offsetEnd:-s};if(i?(e===window?(c.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,c.scrollViewSize+=document.documentElement.clientWidth):(c.scrollStart=m.scrollLeft,c.scrollViewSize+=m.clientWidth),c.scrollMaxSize=m.scrollWidth,a&&(c.scrollStart=(vt?c.scrollMaxSize-c.scrollViewSize:0)-c.scrollStart)):(e===window?(c.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,c.scrollViewSize+=document.documentElement.clientHeight):(c.scrollStart=m.scrollTop,c.scrollViewSize+=m.clientHeight),c.scrollMaxSize=m.scrollHeight),o!==null)for(let g=o.previousElementSibling;g!==null;g=g.previousElementSibling)g.classList.contains("q-virtual-scroll--skip")||(c.offsetStart+=g[v]);if(l!==null)for(let g=l.nextElementSibling;g!==null;g=g.nextElementSibling)g.classList.contains("q-virtual-scroll--skip")||(c.offsetEnd+=g[v]);if(t!==e){const g=m.getBoundingClientRect(),p=t.getBoundingClientRect();i?(c.offsetStart+=p.left-g.left,c.offsetEnd-=p.width):(c.offsetStart+=p.top-g.top,c.offsetEnd-=p.height),e!==window&&(c.offsetStart+=c.scrollStart),c.offsetEnd+=c.scrollMaxSize-c.offsetStart}return c}function fl(e,t,o,l){t==="end"&&(t=(e===window?document.body:e)[o?"scrollWidth":"scrollHeight"]),e===window?o?(l&&(t=(vt?document.body.scrollWidth-document.documentElement.clientWidth:0)-t),window.scrollTo(t,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,t):o?(l&&(t=(vt?e.scrollWidth-e.offsetWidth:0)-t),e.scrollLeft=t):e.scrollTop=t}function Ge(e,t,o,l){if(o>=l)return 0;const i=t.length,a=Math.floor(o/fe),u=Math.floor((l-1)/fe)+1;let s=e.slice(a,u).reduce($e,0);return o%fe!==0&&(s-=t.slice(a*fe,o).reduce($e,0)),l%fe!==0&&l!==i&&(s-=t.slice(l,u*fe).reduce($e,0)),s}const ml={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,...{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]}};function la({virtualScrollLength:e,getVirtualScrollTarget:t,getVirtualScrollEl:o,virtualScrollItemSizeComputed:l}){const i=n.getCurrentInstance(),{props:a,emit:u,proxy:s}=i,{$q:m}=s;let v,c,g,p=[],h;const q=n.ref(0),H=n.ref(0),b=n.ref({}),O=n.ref(null),W=n.ref(null),E=n.ref(null),M=n.ref({from:0,to:0}),L=n.computed(()=>a.tableColspan!==void 0?a.tableColspan:100);l===void 0&&(l=n.computed(()=>a.virtualScrollItemSize));const P=n.computed(()=>l.value+";"+a.virtualScrollHorizontal),D=n.computed(()=>P.value+";"+a.virtualScrollSliceRatioBefore+";"+a.virtualScrollSliceRatioAfter);n.watch(D,()=>{U()}),n.watch(P,I);function I(){T(c,!0)}function X(d){T(d===void 0?c:d)}function w(d,S){const z=t();if(z==null||z.nodeType===8)return;const K=jt(z,o(),O.value,W.value,a.virtualScrollHorizontal,m.lang.rtl,a.virtualScrollStickySizeStart,a.virtualScrollStickySizeEnd);g!==K.scrollViewSize&&U(K.scrollViewSize),B(z,K,Math.min(e.value-1,Math.max(0,Number.parseInt(d,10)||0)),0,ta.includes(S)?S:c!==-1&&d>c?"end":"start")}function x(){const d=t();if(d==null||d.nodeType===8)return;const S=jt(d,o(),O.value,W.value,a.virtualScrollHorizontal,m.lang.rtl,a.virtualScrollStickySizeStart,a.virtualScrollStickySizeEnd),z=e.value-1,K=S.scrollMaxSize-S.offsetStart-S.offsetEnd-H.value;if(v===S.scrollStart)return;if(S.scrollMaxSize<=0){B(d,S,0,0);return}g!==S.scrollViewSize&&U(S.scrollViewSize),C(M.value.from);const F=Math.floor(S.scrollMaxSize-Math.max(S.scrollViewSize,S.offsetEnd)-Math.min(h[z],S.scrollViewSize/2));if(F>0&&Math.ceil(S.scrollStart)>=F){B(d,S,z,S.scrollMaxSize-S.offsetEnd-p.reduce($e,0));return}let A=0,f=S.scrollStart-S.offsetStart,j=f;if(f<=K&&f+S.scrollViewSize>=q.value)f-=q.value,A=M.value.from,j=f;else for(let N=0;f>=p[N]&&A<z;N++)f-=p[N],A+=fe;for(;f>0&&A<z;)f-=h[A],f>-S.scrollViewSize?(A++,j=f):j=h[A]+f;B(d,S,A,j)}function B(d,S,z,K,F){const A=typeof F=="string"&&F.includes("-force"),f=A?F.replace("-force",""):F,j=f!==void 0?f:"start";let N=Math.max(0,z-b.value[j]),$=N+b.value.total;$>e.value&&($=e.value,N=Math.max(0,$-b.value.total)),v=S.scrollStart;const le=N!==M.value.from||$!==M.value.to;if(!le&&f===void 0){_(z);return}const{activeElement:pe}=document,re=E.value;le&&re!==null&&re!==pe&&re.contains(pe)&&(re.addEventListener("focusout",k),setTimeout(()=>{re==null||re.removeEventListener("focusout",k)},0)),na(re,z-N);const ht=f!==void 0?h.slice(N,z).reduce($e,0):0;if(le){const xe=$>=M.value.from&&N<=M.value.to?M.value.to:$;M.value={from:N,to:xe},q.value=Ge(p,h,0,N),H.value=Ge(p,h,$,e.value),requestAnimationFrame(()=>{M.value.to!==$&&v===S.scrollStart&&(M.value={from:M.value.from,to:$},H.value=Ge(p,h,$,e.value))})}requestAnimationFrame(()=>{if(v!==S.scrollStart)return;le&&C(N);const xe=h.slice(N,z).reduce($e,0),Ce=xe+S.offsetStart+q.value,gt=Ce+h[z];let Je=Ce+K;if(f!==void 0){const Ut=xe-ht,et=S.scrollStart+Ut;Je=!A&&et<Ce&><et+S.scrollViewSize?et:f==="end"?gt-S.scrollViewSize:Ce-(f==="start"?0:Math.round((S.scrollViewSize-h[z])/2))}v=Je,fl(d,Je,a.virtualScrollHorizontal,m.lang.rtl),_(z)})}function C(d){const S=E.value;if(S){const z=dl.call(S.children,N=>N.classList&&!N.classList.contains("q-virtual-scroll--skip")),K=z.length,F=a.virtualScrollHorizontal?N=>N.getBoundingClientRect().width:N=>N.offsetHeight;let A=d,f,j;for(let N=0;N<K;){for(f=F(z[N]),N++;N<K&&z[N].classList.contains("q-virtual-scroll--with-prev");)f+=F(z[N]),N++;j=f-h[A],j!==0&&(h[A]+=j,p[Math.floor(A/fe)]+=j),A++}}}function k(){var d;(d=E.value)==null||d.focus({preventScroll:!0})}function T(d,S){const z=Number(l.value);(S||!Array.isArray(h))&&(h=[]);const K=h.length;h.length=e.value;for(let A=e.value-1;A>=K;A--)h[A]=z;const F=Math.floor((e.value-1)/fe);p=[];for(let A=0;A<=F;A++){let f=0;const j=Math.min((A+1)*fe,e.value);for(let N=A*fe;N<j;N++)f+=h[N];p.push(f)}c=-1,v=void 0,q.value=Ge(p,h,0,M.value.from),H.value=Ge(p,h,M.value.to,e.value),d>=0?(C(M.value.from),n.nextTick(()=>{w(d)})):Y()}function U(d){if(d===void 0&&typeof window<"u"){const f=t();f!=null&&f.nodeType!==8&&(d=jt(f,o(),O.value,W.value,a.virtualScrollHorizontal,m.lang.rtl,a.virtualScrollStickySizeStart,a.virtualScrollStickySizeEnd).scrollViewSize)}g=d;const S=Number.parseFloat(a.virtualScrollSliceRatioBefore)||0,z=Number.parseFloat(a.virtualScrollSliceRatioAfter)||0,K=1+S+z,F=d===void 0||d<=0?1:Math.ceil(d/l.value),A=Math.max(1,F,Math.ceil((a.virtualScrollSliceSize>0?a.virtualScrollSliceSize:10)/K));b.value={total:Math.ceil(A*K),start:Math.ceil(A*S),center:Math.ceil(A*(.5+S)),end:Math.ceil(A*(1+S)),view:F}}function y(d,S){const z=a.virtualScrollHorizontal?"width":"height",K={["--q-virtual-scroll-item-"+z]:l.value+"px"};return[d==="tbody"?n.h(d,{class:"q-virtual-scroll__padding",key:"before",ref:O},[n.h("tr",[n.h("td",{style:{[z]:`${q.value}px`,...K},colspan:L.value})])]):n.h(d,{class:"q-virtual-scroll__padding",key:"before",ref:O,style:{[z]:`${q.value}px`,...K}}),n.h(d,{class:"q-virtual-scroll__content",key:"content",ref:E,tabindex:-1},S.flat()),d==="tbody"?n.h(d,{class:"q-virtual-scroll__padding",key:"after",ref:W},[n.h("tr",[n.h("td",{style:{[z]:`${H.value}px`,...K},colspan:L.value})])]):n.h(d,{class:"q-virtual-scroll__padding",key:"after",ref:W,style:{[z]:`${H.value}px`,...K}})]}function _(d){c!==d&&(a.onVirtualScroll!==void 0&&u("virtualScroll",{index:d,from:M.value.from,to:M.value.to-1,direction:d<c?"decrease":"increase",ref:s}),c=d)}U();const Y=xn(x,m.platform.is.ios?120:35);n.onBeforeMount(()=>{U()});let Z=!1;return n.onDeactivated(()=>{Z=!0}),n.onActivated(()=>{if(!Z)return;const d=t();v!==void 0&&d!==void 0&&d!==null&&d.nodeType!==8?fl(d,v,a.virtualScrollHorizontal,m.lang.rtl):w(c)}),n.onBeforeUnmount(()=>{Y.cancel()}),Object.assign(s,{scrollTo:w,reset:I,refresh:X}),{virtualScrollSliceRange:M,virtualScrollSliceSizeComputed:b,setVirtualScrollSize:U,onVirtualScrollEvt:Y,localResetVirtualScroll:T,padVirtualScroll:y,scrollTo:w,reset:I,refresh:X}}function ye(e,t){if(e===t)return!0;if(e!==null&&t!==null&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let o,l;if(e.constructor===Array){if(o=e.length,o!==t.length)return!1;for(l=o;l--!==0;)if(!ye(e[l],t[l]))return!1;return!0}if(e.constructor===Map){if(e.size!==t.size)return!1;let a=e.entries();for(l=a.next();!l.done;){if(!t.has(l.value[0]))return!1;l=a.next()}for(a=e.entries(),l=a.next();!l.done;){if(!ye(l.value[1],t.get(l.value[0])))return!1;l=a.next()}return!0}if(e.constructor===Set){if(e.size!==t.size)return!1;const a=e.entries();for(l=a.next();!l.done;){if(!t.has(l.value[0]))return!1;l=a.next()}return!0}if(e.buffer!=null&&e.buffer.constructor===ArrayBuffer){if(o=e.length,o!==t.length)return!1;for(l=o;l--!==0;)if(e[l]!==t[l])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const i=Object.keys(e).filter(a=>e[a]!==void 0);if(o=i.length,o!==Object.keys(t).filter(a=>t[a]!==void 0).length)return!1;for(l=o;l--!==0;){const a=i[l];if(!ye(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function vl(e,t,o){if(o<=t)return t;const l=o-t+1;let i=t+(e-t)%l;return i<t&&(i=l+i),i===0?0:i}const hl=e=>["add","add-unique","toggle"].includes(e),oa=".*+?^${}()|[]\\",ia=Object.keys(at);function Nt(e,t){if(typeof e=="function")return e;const o=e!==void 0?e:t;return l=>l!==null&&typeof l=="object"&&o in l?l[o]:l}const aa=ie({name:"QSelect",inheritAttrs:!1,props:{...ml,...Rn,...at,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:hl},mapOptions:Boolean,emitValue:Boolean,disableTabSelection:Boolean,inputDebounce:{type:[Number,String],default:500},inputClass:[Array,String,Object],inputStyle:[Array,String,Object],tabindex:{type:[String,Number],default:0},autocomplete:String,transitionShow:{},transitionHide:{},transitionDuration:{},behavior:{type:String,validator:e=>["default","menu","dialog"].includes(e),default:"default"},virtualScrollItemSize:ml.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...Ft,"add","remove","inputValue","keyup","keypress","keydown","popupShow","popupHide","filterAbort"],setup(e,{slots:t,emit:o}){const{proxy:l}=n.getCurrentInstance(),{$q:i}=l,a=n.ref(!1),u=n.ref(!1),s=n.ref(-1),m=n.ref(""),v=n.ref(!1),c=n.ref(!1);let g=null,p=null,h,q,H,b=null,O,W,E,M;const L=n.ref(null),P=n.ref(null),D=n.ref(null),I=n.ref(null),X=n.ref(null),w=An(e),x=Fn(ql),B=n.computed(()=>Array.isArray(e.options)?e.options.length:0),C=n.computed(()=>e.virtualScrollItemSize===void 0?e.optionsDense?24:48:e.virtualScrollItemSize),{virtualScrollSliceRange:k,virtualScrollSliceSizeComputed:T,localResetVirtualScroll:U,padVirtualScroll:y,onVirtualScrollEvt:_,scrollTo:Y,setVirtualScrollSize:Z}=la({virtualScrollLength:B,getVirtualScrollTarget:va,getVirtualScrollEl:xl,virtualScrollItemSizeComputed:C}),d=Lt(),S=n.computed(()=>{const r=e.mapOptions&&!e.multiple,V=e.modelValue!==void 0&&(e.modelValue!==null||r)?e.multiple&&Array.isArray(e.modelValue)?e.modelValue:[e.modelValue]:[];if(e.mapOptions&&Array.isArray(e.options)){const R=e.mapOptions&&h!==void 0?h:[],Q=V.map(G=>ma(G,R));return e.modelValue===null&&r?Q.filter(G=>G!==null):Q}return V}),z=n.computed(()=>{const r={};return ia.forEach(V=>{const R=e[V];R!==void 0&&(r[V]=R)}),r}),K=n.computed(()=>e.optionsDark===null?d.isDark.value:e.optionsDark),F=n.computed(()=>Xe(S.value)),A=n.computed(()=>{let r="q-field__input q-placeholder col";return e.hideSelected||S.value.length===0?[r,e.inputClass]:(r+=" q-field__input--padding",e.inputClass===void 0?r:[r,e.inputClass])}),f=n.computed(()=>(e.virtualScrollHorizontal?"q-virtual-scroll--horizontal":"")+(e.popupContentClass?" "+e.popupContentClass:"")),j=n.computed(()=>B.value===0),N=n.computed(()=>S.value.map(r=>ue.value(r)).join(", ")),$=n.computed(()=>e.displayValue!==void 0?e.displayValue:N.value),le=n.computed(()=>e.optionsHtml?()=>!0:r=>(r==null?void 0:r.html)===!0),pe=n.computed(()=>e.displayValueHtml||e.displayValue===void 0&&(e.optionsHtml||S.value.some(le.value))),re=n.computed(()=>d.focused.value?e.tabindex:-1),ht=n.computed(()=>{const r={tabindex:e.tabindex,role:"combobox","aria-label":e.label,"aria-readonly":e.readonly?"true":"false","aria-autocomplete":e.useInput?"list":"none","aria-expanded":a.value?"true":"false","aria-controls":`${d.targetUid.value}_lb`};return s.value>=0&&(r["aria-activedescendant"]=`${d.targetUid.value}_${s.value}`),r}),xe=n.computed(()=>({id:`${d.targetUid.value}_lb`,role:"listbox","aria-multiselectable":e.multiple?"true":"false"})),Ce=n.computed(()=>S.value.map((r,V)=>({index:V,opt:r,html:le.value(r),selected:!0,removeAtIndex:fa,toggleOption:qe,tabindex:re.value}))),gt=n.computed(()=>{if(B.value===0)return[];const{from:r,to:V}=k.value;return e.options.slice(r,V).map((R,Q)=>{const G=Oe.value(R)===!0,ee=Wt(R),J=r+Q,te={clickable:!0,active:ee,activeClass:et.value,manualFocus:!0,focused:!1,disable:G,tabindex:-1,dense:e.optionsDense,dark:K.value,role:"option","aria-selected":ee?"true":"false",id:`${d.targetUid.value}_${J}`,onClick:()=>{qe(R)}};return G||(s.value===J&&(te.focused=!0),i.platform.is.desktop&&(te.onMousemove=()=>{a.value&&ze(J)})),{index:J,opt:R,html:le.value(R),label:ue.value(R),selected:te.active,focused:te.focused,toggleOption:qe,setOptionIndex:ze,itemProps:te}})}),Je=n.computed(()=>e.dropdownIcon!==void 0?e.dropdownIcon:i.iconSet.arrow.dropdown),Ut=n.computed(()=>!e.optionsCover&&!e.outlined&&!e.standout&&!e.borderless&&!e.rounded),et=n.computed(()=>e.optionsSelectedClass!==void 0?e.optionsSelectedClass:e.color!==void 0?`text-${e.color}`:""),he=n.computed(()=>Nt(e.optionValue,"value")),ue=n.computed(()=>Nt(e.optionLabel,"label")),Oe=n.computed(()=>Nt(e.optionDisable,"disable")),pt=n.computed(()=>S.value.map(he.value)),da=n.computed(()=>{const r={onInput:ql,onChange:x,onKeydown:kl,onKeyup:wl,onKeypress:Sl,onFocus:bl,onClick(V){q&&ve(V)}};return r.onCompositionstart=r.onCompositionupdate=r.onCompositionend=x,r});n.watch(S,r=>{h=r,e.useInput&&e.fillInput&&!e.multiple&&!d.innerLoading.value&&(!u.value&&!a.value||!F.value)&&(H||je(),(u.value||a.value)&&Ie(""))},{immediate:!0}),n.watch(()=>e.fillInput,je),n.watch(a,Qt),n.watch(B,Ea);function gl(r){return e.emitValue?he.value(r):r}function Kt(r){if(r!==-1&&r<S.value.length)if(e.multiple){const V=[...e.modelValue];o("remove",{index:r,value:V.splice(r,1)[0]}),o("update:modelValue",V)}else o("update:modelValue",null)}function fa(r){Kt(r),d.focus()}function pl(r,V){const R=gl(r);if(!e.multiple){e.fillInput&&tt(ue.value(r),!0,!0),o("update:modelValue",R);return}if(S.value.length===0){o("add",{index:0,value:R}),o("update:modelValue",e.multiple?[R]:R);return}if(V&&Wt(r)||e.maxValues!==void 0&&e.modelValue.length>=e.maxValues)return;const Q=[...e.modelValue];o("add",{index:Q.length,value:R}),Q.push(R),o("update:modelValue",Q)}function qe(r,V){var ee;if(!d.editable.value||r===void 0||Oe.value(r)===!0)return;const R=he.value(r);if(!e.multiple){V||(tt(e.fillInput?ue.value(r):"",!0,!0),Ee()),(ee=P.value)==null||ee.focus(),(S.value.length===0||!ye(he.value(S.value[0]),R))&&o("update:modelValue",e.emitValue?R:r);return}if((!q||v.value)&&d.focus(),bl(),S.value.length===0){const J=e.emitValue?R:r;o("add",{index:0,value:J}),o("update:modelValue",e.multiple?[J]:J);return}const Q=[...e.modelValue],G=pt.value.findIndex(J=>ye(J,R));if(G!==-1)o("remove",{index:G,value:Q.splice(G,1)[0]});else{if(e.maxValues!==void 0&&Q.length>=e.maxValues)return;const J=e.emitValue?R:r;o("add",{index:Q.length,value:J}),Q.push(J)}o("update:modelValue",Q)}function ze(r){if(!i.platform.is.desktop)return;const V=r!==-1&&r<B.value?r:-1;s.value!==V&&(s.value=V)}function bt(r=1,V){if(a.value){let R=s.value;do R=vl(R+r,-1,B.value-1);while(R!==-1&&R!==s.value&&Oe.value(e.options[R])===!0);s.value!==R&&(ze(R),Y(R),!V&&e.useInput&&e.fillInput&&yt(R>=0?ue.value(e.options[R]):O,!0))}}function ma(r,V){const R=Q=>ye(he.value(Q),r);return e.options.find(R)||V.find(R)||r}function Wt(r){const V=he.value(r);return pt.value.find(R=>ye(R,V))!==void 0}function bl(r){e.useInput&&P.value!==null&&(r===void 0||P.value===r.target&&r.target.value===N.value)&&P.value.select()}function yl(r){we(r,27)&&a.value&&(ve(r),Ee(),je()),o("keyup",r)}function wl(r){const{value:V}=r.target;if(r.keyCode!==void 0){yl(r);return}if(r.target.value="",g!==null&&(clearTimeout(g),g=null),p!==null&&(clearTimeout(p),p=null),je(),typeof V=="string"&&V.length!==0){const R=V.toLocaleLowerCase(),Q=ee=>{const J=e.options.find(te=>String(ee.value(te)).toLocaleLowerCase()===R);return J===void 0?!1:(S.value.includes(J)?Ee():qe(J),!0)},G=ee=>{!Q(he)&&!ee&&!Q(ue)&&Ie(V,!0,()=>G(!0))};G()}else d.clearValue(r)}function Sl(r){o("keypress",r)}function kl(r){if(o("keydown",r),Bt(r))return;const V=m.value.length!==0&&(e.newValueMode!==void 0||e.onNewValue!==void 0),R=!r.shiftKey&&!e.disableTabSelection&&!e.multiple&&(s.value!==-1||V);if(r.keyCode===27){ce(r);return}if(r.keyCode===9&&!R){De();return}if(r.target===void 0||r.target.id!==d.targetUid.value||!d.editable.value)return;if(r.keyCode===40&&!d.innerLoading.value&&!a.value){oe(r),He();return}if(r.keyCode===8&&(e.useChips||e.clearable)&&!e.hideSelected&&m.value.length===0){e.multiple&&Array.isArray(e.modelValue)?Kt(e.modelValue.length-1):!e.multiple&&e.modelValue!==null&&o("update:modelValue",null);return}(r.keyCode===35||r.keyCode===36)&&(typeof m.value!="string"||m.value.length===0)&&(oe(r),s.value=-1,bt(r.keyCode===36?1:-1,e.multiple)),(r.keyCode===33||r.keyCode===34)&&T.value!==void 0&&(oe(r),s.value=Math.max(-1,Math.min(B.value,s.value+(r.keyCode===33?-1:1)*T.value.view)),bt(r.keyCode===33?1:-1,e.multiple)),(r.keyCode===38||r.keyCode===40)&&(oe(r),bt(r.keyCode===38?-1:1,e.multiple));const Q=B.value;if((E===void 0||M<Date.now())&&(E=""),Q>0&&!e.useInput&&r.key!==void 0&&r.key.length===1&&!r.altKey&&!r.ctrlKey&&!r.metaKey&&(r.keyCode!==32||E.length!==0)){a.value||He(r);const G=r.key.toLocaleLowerCase(),ee=E.length===1&&E[0]===G;M=Date.now()+1500,ee||(oe(r),E+=G);const J=new RegExp("^"+[...E].map(Ne=>oa.includes(Ne)?"\\"+Ne:Ne).join(".*"),"i");let te=s.value;if(ee||te<0||!J.test(ue.value(e.options[te])))do te=vl(te+1,-1,Q-1);while(te!==s.value&&(Oe.value(e.options[te])===!0||!J.test(ue.value(e.options[te]))));s.value!==te&&n.nextTick(()=>{ze(te),Y(te),te>=0&&e.useInput&&e.fillInput&&yt(ue.value(e.options[te]),!0)});return}if(!(r.keyCode!==13&&(r.keyCode!==32||e.useInput||E!=="")&&(r.keyCode!==9||!R))){if(r.keyCode!==9&&oe(r),s.value!==-1&&s.value<Q){qe(e.options[s.value]);return}if(V){const G=(ee,J)=>{var Ne;if(J){if(!hl(J))return}else J=e.newValueMode;if(tt("",!e.multiple,!0),ee==null)return;(J==="toggle"?qe:pl)(ee,J==="add-unique"),e.multiple||((Ne=P.value)==null||Ne.focus(),Ee())};if(e.onNewValue!==void 0?o("newValue",m.value,G):G(m.value),!e.multiple)return}a.value?De():d.innerLoading.value||He()}}function xl(){return q?X.value:D.value!==null&&D.value.contentEl!==null?D.value.contentEl:void 0}function va(){return xl()}function ha(){return e.hideSelected?[]:t["selected-item"]!==void 0?Ce.value.map(r=>t["selected-item"](r)):t.selected!==void 0?[t.selected()].flat():e.useChips?Ce.value.map((r,V)=>n.h(pi,{key:"option-"+V,removable:d.editable.value&&Oe.value(r.opt)!==!0,dense:!0,textColor:e.color,tabindex:re.value,onRemove(){r.removeAtIndex(V)}},()=>n.h("span",{class:"ellipsis",[r.html?"innerHTML":"textContent"]:ue.value(r.opt)}))):[n.h("span",{class:"ellipsis",[pe.value?"innerHTML":"textContent"]:$.value})]}function Cl(){if(j.value)return t["no-option"]!==void 0?t["no-option"]({inputValue:m.value}):void 0;const r=t.option!==void 0?t.option:R=>n.h(bi,{key:R.index,...R.itemProps},()=>n.h(yi,()=>n.h(wi,()=>n.h("span",{[R.html?"innerHTML":"textContent"]:R.label}))));let V=y("div",gt.value.map(r));return t["before-options"]!==void 0&&(V=[t["before-options"](),...V].flat()),Me(t["after-options"],V)}function ga(r,V){const R=V?{...ht.value,...d.splitAttrs.attributes.value}:void 0,Q={ref:V?P:void 0,key:"i_t",class:A.value,style:e.inputStyle,value:m.value!==void 0?m.value:"",type:"search",...R,id:V?d.targetUid.value:void 0,maxlength:e.maxlength,autocomplete:e.autocomplete,"data-autofocus":r===!0||e.autofocus||void 0,disabled:e.disable,readonly:e.readonly,...da.value};return!r&&q&&(Array.isArray(Q.class)?Q.class=[...Q.class,"no-pointer-events"]:Q.class+=" no-pointer-events"),n.h("input",Q)}function ql(r){var V;g!==null&&(clearTimeout(g),g=null),p!==null&&(clearTimeout(p),p=null),!((V=r==null?void 0:r.target)!=null&&V.qComposing)&&(yt(r.target.value||""),H=!0,O=m.value,!d.focused.value&&(!q||v.value)&&d.focus(),e.onFilter!==void 0&&(g=setTimeout(()=>{g=null,Ie(m.value)},e.inputDebounce)))}function yt(r,V){m.value!==r&&(p!==null&&(clearTimeout(p),p=null),m.value=r,V||e.inputDebounce===0||e.inputDebounce==="0"?o("inputValue",r):p=setTimeout(()=>{p=null,o("inputValue",r)},e.inputDebounce))}function tt(r,V,R){H=R!==!0,e.useInput&&(yt(r,!0),(V||H)&&(O=r),V||Ie(r))}function Ie(r,V,R){if(e.onFilter===void 0||!V&&!d.focused.value)return;d.innerLoading.value?o("filterAbort"):(d.innerLoading.value=!0,c.value=!0),r!==""&&!e.multiple&&S.value.length!==0&&!H&&r===ue.value(S.value[0])&&(r="");const Q=setTimeout(()=>{a.value&&(a.value=!1)},10);b!==null&&clearTimeout(b),b=Q,o("filter",r,(G,ee)=>{(V||d.focused.value)&&b===Q&&(clearTimeout(b),typeof G=="function"&&G(),c.value=!1,n.nextTick(()=>{d.innerLoading.value=!1,d.editable.value&&(V?a.value&&Ee():a.value?Qt(!0):a.value=!0),typeof ee=="function"&&n.nextTick(()=>{ee(l)}),typeof R=="function"&&n.nextTick(()=>{R(l)})}))},()=>{d.focused.value&&b===Q&&(clearTimeout(b),d.innerLoading.value=!1,c.value=!1),a.value&&(a.value=!1)})}function pa(){return n.h(Xi,{ref:D,class:f.value,style:e.popupContentStyle,modelValue:a.value,fit:!e.menuShrink,cover:e.optionsCover&&!j.value&&!e.useInput,anchor:e.menuAnchor,self:e.menuSelf,offset:e.menuOffset,dark:K.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,noRouteDismiss:e.popupNoRouteDismiss,square:Ut.value,transitionShow:e.transitionShow,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,separateClosePopup:!0,...xe.value,onScrollPassive:_,onBeforeShow:Ml,onBeforeHide:ba,onShow:ya},Cl)}function ba(r){Bl(r),De()}function ya(){Z()}function wa(r){var V;ve(r),(V=P.value)==null||V.focus(),v.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function Sa(r){ve(r),n.nextTick(()=>{v.value=!1})}function ka(){const r=[n.h(hi,{class:`col-auto ${d.fieldClass.value}`,...z.value,for:d.targetUid.value,dark:K.value,square:!0,loading:c.value,itemAligned:!1,filled:!0,stackLabel:m.value.length!==0,...d.splitAttrs.listeners.value,onFocus:wa,onBlur:Sa},{...t,rawControl:()=>d.getControl(!0),before:void 0,after:void 0})];return a.value&&r.push(n.h("div",{ref:X,class:f.value+" scroll",style:e.popupContentStyle,...xe.value,onClick:ce,onScrollPassive:_},Cl())),n.h(ea,{ref:I,modelValue:u.value,position:e.useInput?"top":void 0,transitionShow:W,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,noRouteDismiss:e.popupNoRouteDismiss,onBeforeShow:Ml,onBeforeHide:xa,onHide:Ca,onShow:qa},()=>n.h("div",{class:"q-select__dialog"+(K.value?" q-select__dialog--dark q-dark":"")+(v.value?" q-select__dialog--focused":"")},r))}function xa(r){Bl(r),I.value!==null&&I.value.__updateRefocusTarget(d.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),d.focused.value=!1}function Ca(r){Ee(),d.focused.value||o("blur",r),je()}function qa(){const r=document.activeElement;(r===null||r.id!==d.targetUid.value)&&P.value!==null&&P.value!==r&&P.value.focus(),Z()}function De(){u.value||(s.value=-1,a.value&&(a.value=!1),d.focused.value||(b!==null&&(clearTimeout(b),b=null),d.innerLoading.value&&(o("filterAbort"),d.innerLoading.value=!1,c.value=!1)))}function He(r){d.editable.value&&(q?(d.onControlFocusin(r),u.value=!0,n.nextTick(()=>{d.focus()})):d.focus(),e.onFilter!==void 0?Ie(m.value):(!j.value||t["no-option"]!==void 0)&&(a.value=!0))}function Ee(){u.value=!1,De()}function je(){e.useInput&&tt(!e.multiple&&e.fillInput&&S.value.length!==0&&ue.value(S.value[0])||"",!0,!0)}function Qt(r){let V=-1;if(r){if(S.value.length!==0){const R=he.value(S.value[0]);V=e.options.findIndex(Q=>ye(he.value(Q),R))}U(V)}ze(V)}function Ea(r,V){a.value&&!d.innerLoading.value&&(U(-1,!0),n.nextTick(()=>{a.value&&!d.innerLoading.value&&(r>V?U():Qt(!0))}))}function El(){var r;u.value||(r=D.value)==null||r.updatePosition()}function Ml(r){r!==void 0&&ve(r),o("popupShow",r),d.hasPopupOpen=!0,d.onControlFocusin(r)}function Bl(r){r!==void 0&&ve(r),o("popupHide",r),d.hasPopupOpen=!1,d.onControlFocusout(r)}function Vl(){q=!i.platform.is.mobile&&e.behavior!=="dialog"?!1:e.behavior!=="menu"&&(e.useInput?t["no-option"]!==void 0||e.onFilter!==void 0||!j.value:!0),W=i.platform.is.ios&&q&&e.useInput?"fade":e.transitionShow}return n.onBeforeUpdate(Vl),n.onUpdated(El),Vl(),n.onBeforeUnmount(()=>{g!==null&&clearTimeout(g),p!==null&&clearTimeout(p)}),Object.assign(l,{showPopup:He,hidePopup:Ee,removeAtIndex:Kt,add:pl,toggleOption:qe,getOptionIndex:()=>s.value,setOptionIndex:ze,moveOptionSelection:bt,filter:Ie,updateMenuPosition:El,updateInputValue:tt,isOptionSelected:Wt,getEmittingOptionValue:gl,isOptionDisabled:(...r)=>Oe.value(...r)===!0,getOptionValue:(...r)=>he.value(...r),getOptionLabel:(...r)=>ue.value(...r)}),Object.assign(d,{innerValue:S,fieldClass:n.computed(()=>`q-select q-field--auto-height q-select--with${e.useInput?"":"out"}-input q-select--with${e.useChips?"":"out"}-chips q-select--${e.multiple?"multiple":"single"}`),inputRef:L,targetRef:P,hasValue:F,showPopup:He,floatingLabel:n.computed(()=>!e.hideSelected&&F.value||typeof m.value=="number"||m.value.length!==0||Xe(e.displayValue)),getControlChild:()=>{if(d.editable.value&&(u.value||!j.value||t["no-option"]!==void 0))return q?ka():pa();d.hasPopupOpen&&(d.hasPopupOpen=!1)},controlEvents:{onFocusin(r){d.onControlFocusin(r)},onFocusout(r){d.onControlFocusout(r,()=>{je(),De()})},onClick(r){var V;if(ce(r),!q&&a.value){De(),(V=P.value)==null||V.focus();return}He(r)}},getControl:r=>{const V=ha(),R=r===!0||!u.value||!q;if(e.useInput)V.push(ga(r,R));else if(d.editable.value){const G=R?ht.value:void 0;V.push(n.h("input",{ref:R?P:void 0,key:"d_t",class:"q-select__focus-target",id:R?d.targetUid.value:void 0,value:$.value,readonly:!0,"data-autofocus":r===!0||e.autofocus||void 0,...G,onKeydown:kl,onKeyup:yl,onKeypress:Sl})),R&&typeof e.autocomplete=="string"&&e.autocomplete.length!==0&&V.push(n.h("input",{class:"q-select__autocomplete-input",autocomplete:e.autocomplete,tabindex:-1,onKeyup:wl}))}if(w.value!==void 0&&!e.disable&&pt.value.length!==0){const G=pt.value.map(ee=>n.h("option",{value:ee,selected:!0}));V.push(n.h("select",{class:"hidden",name:w.value,multiple:e.multiple},G))}const Q=e.useInput||!R?void 0:d.splitAttrs.attributes.value;return n.h("div",{class:"q-field__native row items-center",...Q,...d.splitAttrs.listeners.value},V)},getInnerAppend:()=>!e.loading&&!c.value&&!e.hideDropdownIcon?[n.h(be,{class:"q-select__dropdown-icon"+(a.value?" rotate-180":""),name:Je.value})]:null}),Pt(d)}}),ra=Ln(n.defineComponent({__name:"USelect",props:{fieldLabel:{},labelPosition:{default:"top"},labelWidth:{},modelValue:{},outlined:{type:Boolean,default:!0},dense:{type:Boolean,default:!0},filled:{type:Boolean},borderless:{type:Boolean},label:{},hint:{},error:{type:Boolean},errorMessage:{},placeholder:{},disable:{type:Boolean},readonly:{type:Boolean},options:{}},emits:["update:modelValue"],setup(e,{emit:t}){const o=e,l=t,i=n.computed(()=>o.labelPosition==="left"?{width:typeof o.labelWidth=="number"?`${o.labelWidth}px`:o.labelWidth}:{}),a=n.computed(()=>({"u-select-label-left":o.labelPosition==="left","u-select-label-top":o.labelPosition==="top"})),u=m=>{l("update:modelValue",m)},s=n.computed(()=>{const m=["fieldLabel","labelPosition","labelWidth","modelValue"],v={};for(const c in o)!m.includes(c)&&c!=="modelValue"&&(v[c]=o[c]);return v});return(m,v)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["u-select",a.value])},[e.fieldLabel?(n.openBlock(),n.createElementBlock("div",{key:0,class:"u-select-label",style:n.normalizeStyle(i.value)},n.toDisplayString(e.fieldLabel),5)):n.createCommentVNode("",!0),n.createElementVNode("div",{class:n.normalizeClass(["u-select-field",{"q-mt-xs":e.labelPosition==="top"}])},[n.createVNode(aa,n.mergeProps({outlined:"","model-value":e.modelValue},s.value,{"onUpdate:modelValue":u}),null,16,["model-value"])],2)],2))}}),[["__scopeId","data-v-71f6d35a"]]),ua={class:"u-render"},sa={key:0,class:"u-render-label"},ca=n.defineComponent({__name:"URender",props:{widgetList:{default:()=>[]},componentMap:{default:()=>({})},modelValue:{default:()=>({})}},setup(e,{expose:t}){const o=e,l=n.reactive({...o.modelValue}),i=u=>{const s=o.componentMap[u];return s||(console.warn(`Component not found for type: ${u}`),"div")},a=u=>{const{field:s,type:m,fieldLabel:v,...c}=u;return c};return t({getFormData:()=>({...l}),setFormData:u=>{Object.assign(l,u)}}),(u,s)=>(n.openBlock(),n.createElementBlock("div",ua,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.widgetList,m=>(n.openBlock(),n.createElementBlock("div",{key:m.field,class:"u-render-item"},[m.fieldLabel?(n.openBlock(),n.createElementBlock("div",sa,n.toDisplayString(m.fieldLabel),1)):n.createCommentVNode("",!0),(n.openBlock(),n.createBlock(n.resolveDynamicComponent(i(m.type)),n.mergeProps({modelValue:l[m.field],"onUpdate:modelValue":v=>l[m.field]=v},{ref_for:!0},a(m)),null,16,["modelValue","onUpdate:modelValue"]))]))),128))]))}});me.LayoutOne=co,me.UInput=vi,me.URender=ca,me.USelect=ra,Object.defineProperty(me,Symbol.toStringTag,{value:"Module"})});
|