urit-qf-ui 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- (function(ce,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(ce=typeof globalThis<"u"?globalThis:ce||self,t(ce.YourOrgUI={},ce.Vue))})(this,function(ce,t){"use strict";const xt={xs:18,sm:24,md:32,lg:38,xl:46},it={size:String};function at(e,n=xt){return t.computed(()=>e.size!==void 0?{fontSize:e.size in n?`${n[e.size]}px`:e.size}:null)}function je(e,n,l,o){return Object.defineProperty(e,n,{get:l,set:o,enumerable:!0}),e}function ie(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 l=e();if(l!=null)return[...l]}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 Pl(e,n,l,o,i,a){n.key=o+i;const s=t.h(e,n,l);return i?t.withDirectives(s,a()):s}const Jt="0 0 24 24",Ct=e=>e,Et=e=>`ionicons ${e}`,Gt={"mdi-":e=>`mdi ${e}`,"icon-":Ct,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":Et,"ion-ios":Et,"ion-logo":Et,"iconfont ":Ct,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`,"i-":Ct},en={o_:"-outlined",r_:"-round",s_:"-sharp"},tn={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},$l=new RegExp("^("+Object.keys(Gt).join("|")+")"),Ol=new RegExp("^("+Object.keys(en).join("|")+")"),nn=new RegExp("^("+Object.keys(tn).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=ie({name:"QIcon",props:{...it,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:n}){const{proxy:{$q:l}}=t.getCurrentInstance(),o=at(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,c=e.name;if(c==="none"||!c)return{none:!0};if(l.iconMapFn!==null){const u=l.iconMapFn(c);if(u!==void 0)if(u.icon!==void 0){if(c=u.icon,c==="none"||!c)return{none:!0}}else return{cls:u.cls,content:u.content!==void 0?u.content:" "}}if(Il.test(c)){const[u,p=Jt]=c.split("|");return{svg:!0,viewBox:p,nodes:u.split("&&").map(y=>{const[g,S,P]=y.split("@@");return t.h("path",{style:S,d:g,transform:P})})}}if(zl.test(c))return{img:!0,src:c.slice(4)};if(Dl.test(c)){const[u,p=Jt]=c.split("|");return{svguse:!0,src:u.slice(7),viewBox:p}}let m=" ";const v=c.match($l);if(v!==null)s=Gt[v[1]](c);else if(Hl.test(c))s=c;else if(Nl.test(c))s=`ionicons ion-${l.platform.is.ios?"ios":"md"}${c.slice(3)}`;else if(nn.test(c)){s="notranslate material-symbols";const u=c.match(nn);u!==null&&(c=c.slice(6),s+=tn[u[1]]),m=c}else{s="notranslate material-icons";const u=c.match(Ol);u!==null&&(c=c.slice(2),s+=en[u[1]]),m=c}return{cls:s,content:m}});return()=>{const s={class:i.value,style:o.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 xt?`${xt[e.size]}px`:e.size),classes:t.computed(()=>"q-spinner"+(e.color?` text-${e.color}`:""))}}const ln=ie({name:"QSpinner",props:{...Wl,thickness:{type:Number,default:5}},setup(e){const{cSize:n,classes:l}=jl(e);return()=>t.h("svg",{class:l.value+" q-spinner-mat",width:n.value,height:n.value,viewBox:"25 25 50 50"},[t.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":e.thickness,"stroke-miterlimit":"10"})])}});function qt(e,n){const l=e.style;for(const o in n)l[o]=n[o]}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 Vt(e,n){if(e==null||e.contains(n))return!0;for(let l=e.nextElementSibling;l!==null;l=l.nextElementSibling)if(l.contains(n))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 Kl(){}function on(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 _t(e,n,l){const o=`__q_${n}_evt`;e[o]=[...e[o]??[],...l],l.forEach(i=>{i[0].addEventListener(i[1],e[i[2]],ae[i[3]])})}function an(e,n){const l=`__q_${n}_evt`;e[l]!==void 0&&(e[l].forEach(o=>{o[0].removeEventListener(o[1],e[o[2]],ae[o[3]])}),e[l]=void 0)}function Bt(e){return e!==Object(e)||e.isComposing||e.qKeyEvent}function ke(e,n){return!Bt(e)&&[n].flat().includes(e.keyCode)}function Ql(e,n=250){let l=!1,o;return function(...a){return l||(l=!0,setTimeout(()=>{l=!1},n),o=e.apply(this,a)),o}}function rn(e,n,l,o){l.modifiers.stop&&he(e);const i=l.modifiers.color,a=l.modifiers.center||o===!0,s=document.createElement("span"),c=document.createElement("span"),m=on(e),{left:v,top:u,width:p,height:y}=n.getBoundingClientRect(),g=Math.hypot(p,y),S=g/2,P=`${(p-g)/2}px`,k=a?P:`${m.left-v-S}px`,z=`${(y-g)/2}px`,T=a?z:`${m.top-u-S}px`;c.className="q-ripple__inner",qt(c,{height:`${g}px`,width:`${g}px`,transform:`translate3d(${k},${T},0) scale3d(.2,.2,1)`,opacity:0}),s.className=`q-ripple${i?" text-"+i:""}`,s.setAttribute("dir","ltr"),s.append(c),n.append(s);const b=()=>{s.remove(),clearTimeout(h)};l.abort.push(b);let h=setTimeout(()=>{c.classList.add("q-ripple__inner--enter"),c.style.transform=`translate3d(${P},${z},0) scale3d(1,1,1)`,c.style.opacity=.2,h=setTimeout(()=>{c.classList.remove("q-ripple__inner--enter"),c.classList.add("q-ripple__inner--leave"),c.style.opacity=0,h=setTimeout(()=>{s.remove(),l.abort.splice(l.abort.indexOf(b),1)},275)},250)},50)}function sn(e,{modifiers:n,value:l,arg:o}){const i={...e.cfg.ripple,...n,...l};e.modifiers={early:i.early===!0,stop:i.stop===!0,center:i.center===!0,color:i.color||o,keyCodes:[i.keyCodes||13].flat()}}const un=Fl({name:"ripple",beforeMount(e,n){const l=n.instance.$.appContext.config.globalProperties.$q.config||{};if(l.ripple===!1)return;const o={cfg:l,enabled:n.value!==!1,modifiers:{},abort:[],start(i){o.enabled&&!i.qSkipRipple&&i.type===(o.modifiers.early?"pointerdown":"click")&&rn(i,e,o,i.qKeyEvent===!0)},keystart:Ql(i=>{o.enabled&&!i.qSkipRipple&&ke(i,o.modifiers.keyCodes)&&i.type===`key${o.modifiers.early?"down":"up"}`&&rn(i,e,o,!0)},300)};sn(o,n),e.__qripple=o,_t(o,"main",[[e,"pointerdown","start","passive"],[e,"click","start","passive"],[e,"keydown","keystart","passive"],[e,"keyup","keystart","passive"]])},updated(e,n){if(n.oldValue!==n.value){const l=e.__qripple;l!==void 0&&(l.enabled=n.value!==!1,l.enabled&&Object(n.value)===n.value&&sn(l,n))}},beforeUnmount(e){const n=e.__qripple;n!==void 0&&(n.abort.forEach(l=>{l()}),an(n,"main"),delete e.__qripple)}}),cn={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},Xl=Object.keys(cn),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"}-${cn[n]}`})}function Mt(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 dn(e){return e.appContext.config.globalProperties.$router!==void 0}function fn(e){return e.isUnmounted===!0||e.isDeactivated===!0}function mn(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function vn(e,n){return(e.aliasOf||e)===(n.aliasOf||n)}function Jl(e,n){for(const l in n){const o=n[l],i=e[l];if(typeof o=="string"){if(o!==i)return!1}else if(!Array.isArray(i)||i.length!==o.length||o.some((a,s)=>a!==i[s]))return!1}return!0}function gn(e,n){return Array.isArray(n)?e.length===n.length&&e.every((l,o)=>l===n[o]):e.length===1&&e[0]===n}function Gl(e,n){return Array.isArray(e)?gn(e,n):Array.isArray(n)?gn(n,e):e===n}function eo(e,n){if(Object.keys(e).length!==Object.keys(n).length)return!1;for(const l in e)if(!Gl(e[l],n[l]))return!1;return!0}const hn={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},to={...hn,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function pn({fallbackTag:e,useDisableForRouterLinkProps:n=!0}={}){const l=t.getCurrentInstance(),{props:o,proxy:i,emit:a}=l,s=dn(l),c=t.computed(()=>!o.disable&&o.href!==void 0),m=n?t.computed(()=>s&&!o.disable&&!c.value&&o.to!==void 0&&o.to!==null&&o.to!==""):t.computed(()=>s&&!c.value&&o.to!==void 0&&o.to!==null&&o.to!==""),v=t.computed(()=>m.value?T(o.to):null),u=t.computed(()=>v.value!==null),p=t.computed(()=>c.value||u.value),y=t.computed(()=>o.type==="a"||p.value?"a":o.tag||e||"div"),g=t.computed(()=>c.value?{href:o.href,target:o.target}:u.value?{href:v.value.href,target:o.target}:{}),S=t.computed(()=>{if(!u.value)return-1;const{matched:B}=v.value,{length:F}=B,O=B[F-1];if(O===void 0)return-1;const N=i.$route.matched;if(N.length===0)return-1;const X=N.findIndex(vn.bind(null,O));if(X!==-1)return X;const C=mn(B[F-2]);return F>1&&mn(O)===C&&N.at(-1).path!==C?N.findIndex(vn.bind(null,B[F-2])):X}),P=t.computed(()=>u.value&&S.value!==-1&&Jl(i.$route.params,v.value.params)),k=t.computed(()=>P.value&&S.value===i.$route.matched.length-1&&eo(i.$route.params,v.value.params)),z=t.computed(()=>u.value?k.value?` ${o.exactActiveClass} ${o.activeClass}`:o.exact?"":P.value?` ${o.activeClass}`:"":"");function T(B){try{return i.$router.resolve(B)}catch{}return null}function b(B,{returnRouterError:F,to:O=o.to,replace:N=o.replace}={}){if(o.disable)return B.preventDefault(),Promise.resolve(!1);if(B.metaKey||B.altKey||B.ctrlKey||B.shiftKey||B.button!==void 0&&B.button!==0||o.target==="_blank")return Promise.resolve(!1);B.preventDefault();const X=i.$router[N?"replace":"push"](O);return F?X:X.then(()=>{}).catch(()=>{})}function h(B){if(u.value){const F=O=>b(B,O);a("click",B,F),B.defaultPrevented||F()}else a("click",B)}return{hasRouterLink:u,hasHrefLink:c,hasLink:p,linkTag:y,resolvedLink:v,linkIsActive:P,linkIsExactActive:k,linkClass:z,linkAttrs:g,getLink:T,navigateToRouterLink:b,navigateOnClick:h}}const bn={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={...{...it,...hn,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=at(e,no),l=Zl(e),{hasRouterLink:o,hasLink:i,linkTag:a,linkAttrs:s,navigateOnClick:c}=pn({fallbackTag:"button"}),m=t.computed(()=>{const k=e.fab||e.fabMini?{}:n.value;return e.padding!==void 0?{...k,padding:e.padding.split(/\s+/).map(z=>z in bn?bn[z]+"px":z).join(" "),minWidth:"0",minHeight:"0"}:k}),v=t.computed(()=>e.rounded||e.fab||e.fabMini),u=t.computed(()=>!e.disable&&!e.loading),p=t.computed(()=>u.value?e.tabindex||0:-1),y=t.computed(()=>ao(e,"standard")),g=t.computed(()=>{const k={tabindex:p.value};return i.value?Object.assign(k,s.value):lo.includes(e.type)&&(k.type=e.type),a.value==="a"?(e.disable?k["aria-disabled"]="true":k.href===void 0&&(k.role="button"),!o.value&&oo.test(e.type)&&(k.type=e.type)):e.disable&&(k.disabled="",k["aria-disabled"]="true"),e.loading&&e.percentage!==void 0&&Object.assign(k,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e.percentage}),k}),S=t.computed(()=>{let k;e.color!==void 0?k=e.flat||e.outline?`text-${e.textColor||e.color}`:`bg-${e.color} text-${e.textColor||"white"}`:e.textColor&&(k=`text-${e.textColor}`);const z=e.round?"round":`rectangle${v.value?" q-btn--rounded":e.square?" q-btn--square":""}`;return`q-btn--${y.value} q-btn--${z}`+(k!==void 0?" "+k:"")+(u.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":"")}),P=t.computed(()=>l.value+(e.stack?" column":" row")+(e.noWrap?" no-wrap text-no-wrap":"")+(e.loading?" q-btn__content--hidden":""));return{classes:S,style:m,innerClasses:P,attributes:g,hasLink:i,linkTag:a,navigateOnClick:c,isActionable:u}}const{passiveCapture:ue}=ae;let _e=null,Be=null,Me=null;function Ue(e){ee(e),e.qSkipRipple=!0}const yn=ie({name:"QBtn",props:{...ro,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(e,{slots:n,emit:l}){const{proxy:o}=t.getCurrentInstance(),{classes:i,style:a,innerClasses:s,attributes:c,hasLink:m,linkTag:v,navigateOnClick:u,isActionable:p}=so(e),y=t.ref(null),g=t.ref(null);let S=null,P,k=null,z=null;const T=t.computed(()=>e.label!==void 0&&e.label!==null&&e.label!==""),b=t.computed(()=>e.disable||e.ripple===!1?!1:{keyCodes:m.value?[13,32]:[13],...e.ripple===!0?{}:e.ripple}),h=t.computed(()=>({center:e.round})),B=t.computed(()=>{const V=Math.max(0,Math.min(100,e.percentage));return V>0?{transition:"transform 0.6s",transform:`translateX(${V-100}%)`}:{}}),F=t.computed(()=>{if(e.loading)return{onMousedown:Ue,onTouchstart:Ue,onClick:Ue,onKeydown:Ue,onKeyup:Ue};if(p.value){const V={onClick:N,onKeydown:X,onMousedown:w};if(o.$q.platform.has.touch){const A=e.onTouchstart!==void 0?"":"Passive";V[`onTouchstart${A}`]=C}return V}return{onClick:ee}}),O=t.computed(()=>({ref:y,class:"q-btn q-btn-item non-selectable no-outline "+i.value,style:a.value,...c.value,...F.value}));function N(V){if(y.value!==null){if(V!==void 0){if(V.defaultPrevented)return;const A=document.activeElement;if(e.type==="submit"&&A!==document.body&&!y.value.contains(A)&&!A.contains(y.value)){V.qAvoidFocus||y.value.focus();const U=()=>{var x;z=null,document.removeEventListener("keydown",ee,!0),document.removeEventListener("keyup",U,ue),(x=y.value)==null||x.removeEventListener("blur",U,ue)};z=U,document.addEventListener("keydown",ee,!0),document.addEventListener("keyup",U,ue),y.value.addEventListener("blur",U,ue)}}u(V)}}function X(V){y.value!==null&&(l("keydown",V),ke(V,[13,32])&&Be!==y.value&&(Be!==null&&q(),V.defaultPrevented||(V.qAvoidFocus||y.value.focus(),Be=y.value,y.value.classList.add("q-btn--active"),document.addEventListener("keyup",_,!0),y.value.addEventListener("blur",_,ue)),ee(V)))}function C(V){y.value!==null&&(l("touchstart",V),!V.defaultPrevented&&(_e!==y.value&&(_e!==null&&q(),_e=y.value,S=V.target,S.addEventListener("touchcancel",_,ue),S.addEventListener("touchend",_,ue)),P=!0,k!==null&&clearTimeout(k),k=setTimeout(()=>{k=null,P=!1},200)))}function w(V){y.value!==null&&(V.qSkipRipple=P===!0,l("mousedown",V),!V.defaultPrevented&&Me!==y.value&&(Me!==null&&q(),Me=y.value,y.value.classList.add("q-btn--active"),document.addEventListener("mouseup",_,ue)))}function _(V){if(y.value!==null&&!((V==null?void 0:V.type)==="blur"&&document.activeElement===y.value)){if((V==null?void 0:V.type)==="keyup"){if(Be===y.value&&ke(V,[13,32])){const A=new MouseEvent("click",V);A.qKeyEvent=!0,V.defaultPrevented&&de(A),V.cancelBubble&&he(A),y.value.dispatchEvent(A),ee(V),V.qKeyEvent=!0}l("keyup",V)}q()}}function q(V){var U,x;z==null||z();const A=g.value;!V&&(_e===y.value||Me===y.value)&&A!==null&&A!==document.activeElement&&(A.setAttribute("tabindex",-1),A.focus({preventScroll:!0})),_e===y.value&&(S!==null&&(S.removeEventListener("touchcancel",_,ue),S.removeEventListener("touchend",_,ue)),_e=S=null),Me===y.value&&(document.removeEventListener("mouseup",_,ue),Me=null),Be===y.value&&(document.removeEventListener("keyup",_,!0),(U=y.value)==null||U.removeEventListener("blur",_,ue),Be=null),(x=y.value)==null||x.classList.remove("q-btn--active")}return t.onBeforeUnmount(()=>{q(!0)}),Object.assign(o,{click:V=>{p.value&&N(V)}}),()=>{let V=[];e.icon!==void 0&&V.push(t.h(ge,{name:e.icon,left:!e.stack&&T.value,role:"img"})),T.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&&T.value,role:"img"}));const A=[t.h("span",{class:"q-focus-helper",ref:g})];return e.loading&&e.percentage!==void 0&&A.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:B.value})])),A.push(t.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+s.value},V)),e.loading!==null&&A.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(ln)])]:null)),t.withDirectives(t.h(v.value,O.value,A),[[un,b.value,void 0,h.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,l)=>(t.openBlock(),t.createElementBlock("div",{class:"q-ma-sm",style:t.normalizeStyle({height:e.height})},[t.createElementVNode("div",uo,[l[1]||(l[1]=t.createElementVNode("div",{class:"bg-orange-1 text-center",style:{width:"300px"}}," 左边菜单宽度固定(水平居中) ",-1)),t.createElementVNode("div",co,[l[0]||(l[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(yn,{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},(o,i)=>(i+256).toString(16).slice(1));let n,l;return()=>{(n===void 0||l+16>4096)&&(l=0,n=new Uint8Array(4096),crypto.getRandomValues(n));const o=l;return l+=16,n[o+6]=n[o+6]&15|64,n[o+8]=n[o+8]&63|128,e[n[o]]+e[n[o+1]]+e[n[o+2]]+e[n[o+3]]+"-"+e[n[o+4]]+e[n[o+5]]+"-"+e[n[o+6]]+e[n[o+7]]+"-"+e[n[o+8]]+e[n[o+9]]+"-"+e[n[o+10]]+e[n[o+11]]+e[n[o+12]]+e[n[o+13]]+e[n[o+14]]+e[n[o+15]]}}const Rt=vo(),Ke=t.ref(!1);let Tt;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 l=So.exec(e);return{browser:"opera",version:(l==null?void 0:l[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 l=Co.exec(e)||Eo.exec(e)||qo.exec(e)||Vo.exec(e);if(l===null){const o=wo(e);if(o!==null)return{...o,platform:n[0]||""};if(l=_o.exec(e)||Bo.exec(e),l===null){const i=xo(e);if(i!==null)return{...i,platform:n[0]||""};l=[]}}return{browser:l[5]||l[3]||l[1]||"",version:l[4]||l[2]||"0",platform:n[0]||""}}const Ro=/(ipad)/,To=/(ipod)/,Fo=/(iphone)/,Ao=/(windows phone)/,Lo=/(kindle)/,Po=/(silk)/,$o=/(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)||Po.exec(e)||$o.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),l=No(n),o=Mo(n,l),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};o.browser&&(i[o.browser]=!0,i.version=o.version,i.versionNumber=Number.parseInt(o.version,10)),o.platform&&(i[o.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,o.browser="edge"):i.crios?(i.chrome=!0,o.browser="chrome"):i.fxios&&(i.firefox=!0,o.browser="firefox"),(i.ipod||i.ipad||i.iphone)&&(i.ios=!0),i.vivaldi&&(o.browser="vivaldi",i.vivaldi=!0),(i.chrome||i.opr||i.safari||i.vivaldi||i.mobile&&!i.ios&&!a)&&(i.webkit=!0),i.opr&&(o.browser="opera",i.opera=!0),i.safari&&(i.android?(o.browser="android",i.android=!0):i.kindle?(o.browser="kindle",i.kindle=!0):i.silk&&(o.browser="silk",i.silk=!0)),i.name=o.browser,i.platform=o.platform,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"),Ke.value&&(Tt={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}},Ft={install(e){const{$q:n}=e;Ke.value?(e.onSSRHydrated.push(()=>{Object.assign(n.platform,fe),Ke.value=!1}),n.platform=t.reactive(this)):n.platform=this}};{let e;je(fe.has,"webStorage",()=>{if(e!==void 0)return e;try{if(window.localStorage)return e=!0,!0}catch{}return e=!1,!1}),Object.assign(Ft,fe),Ke.value&&(Object.assign(Ft,Tt,Wo),Tt=null)}function jo(e){return e??null}function Sn(e,n){return e??(n?`f_${Rt()}`:null)}function Uo({getValue:e,required:n=!0}={}){if(Ke.value){const l=e!==void 0?t.ref(jo(e())):t.ref(null);return n&&l.value===null&&t.onMounted(()=>{l.value=`f_${Rt()}`}),e!==void 0&&t.watch(e,o=>{l.value=Sn(o,n)}),l}return e!==void 0?t.computed(()=>Sn(e(),n)):t.ref(`f_${Rt()}`)}const xn=/^on[A-Z]/;function Ko(){const e=t.getCurrentInstance(),{attrs:n}=e,l={listeners:t.ref({}),attributes:t.ref({})};function o(){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]);l.attributes.value=i,l.listeners.value=a}return t.onBeforeUpdate(o),o(),l}const Qe={dark:{type:Boolean,default:null}};function Xe(e,n){return t.computed(()=>e.dark===null?n.dark.isActive:e.dark)}const Qo="_q_fo_";function Xo({validate:e,resetValidation:n,requiresQForm:l}){const o=t.inject(Qo,!1);if(o!==!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(),o.unbindComponent(a)):o.bindComponent(a)}),t.onMounted(()=>{i.disable||o.bindComponent(a)}),t.onBeforeUnmount(()=>{i.disable||o.unbindComponent(a)})}else l&&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})$/,rt=/^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])\)$/,st=/^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$/,Jo=/^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/,Go=/^([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,}))$/,At={date:e=>Yo.test(e),time:e=>Zo.test(e),fulltime:e=>Jo.test(e),timeOrFulltime:e=>Go.test(e),email:e=>ei.test(e),hexColor:e=>Cn.test(e),hexaColor:e=>En.test(e),hexOrHexaColor:e=>qn.test(e),rgbColor:e=>rt.test(e),rgbaColor:e=>st.test(e),rgbOrRgbaColor:e=>rt.test(e)||st.test(e),hexOrRgbColor:e=>Cn.test(e)||rt.test(e),hexaOrRgbaColor:e=>En.test(e)||st.test(e),anyColor:e=>qn.test(e)||rt.test(e)||st.test(e)};function Vn(e,n=250,l){let o=null;function i(...a){const s=()=>{o=null,e.apply(this,a)};o!==null&&clearTimeout(o),o=setTimeout(s,n)}return i.cancel=()=>{o!==null&&(clearTimeout(o),o=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:l,proxy:o}=t.getCurrentInstance(),i=t.ref(!1),a=t.ref(null),s=t.ref(!1);Xo({validate:P,resetValidation:S});let c=0,m;const v=t.computed(()=>l.rules!==void 0&&l.rules!==null&&l.rules.length!==0),u=t.computed(()=>!l.disable&&v.value&&!n.value),p=t.computed(()=>l.error===!0||i.value),y=t.computed(()=>typeof l.errorMessage=="string"&&l.errorMessage.length!==0?l.errorMessage:a.value);t.watch(()=>l.modelValue,()=>{s.value=!0,u.value&&l.lazyRules===!1&&k()});function g(){l.lazyRules!=="ondemand"&&u.value&&s.value&&k()}t.watch(()=>l.reactiveRules,z=>{z?m===void 0&&(m=t.watch(()=>l.rules,g,{immediate:!0,deep:!0})):m!==void 0&&(m(),m=void 0)},{immediate:!0}),t.watch(()=>l.lazyRules,g),t.watch(e,z=>{z?s.value=!0:u.value&&l.lazyRules!=="ondemand"&&k()});function S(){c++,n.value=!1,s.value=!1,i.value=!1,a.value=null,k.cancel()}function P(z=l.modelValue){if(l.disable||!v.value)return!0;const T=++c,b=n.value?()=>{}:()=>{s.value=!0},h=(F,O)=>{F&&b(),i.value=F,a.value=O||null,n.value=!1},B=[];for(let F=0;F<l.rules.length;F++){const O=l.rules[F];let N;if(typeof O=="function"?N=O(z,At):typeof O=="string"&&(At[O]===void 0?(console.error(`Unknown validation pattern rule: "${O}"`),N=!1):N=At[O](z)),N===!1||typeof N=="string")return h(!0,N),!1;N!==!0&&N!==void 0&&B.push(N)}return B.length===0?(h(!1),!0):(n.value=!0,Promise.all(B).then(F=>{if(F===void 0||!Array.isArray(F)||F.length===0)return T===c&&h(!1),!0;const O=F.find(N=>N===!1||typeof N=="string");return T===c&&h(O!==void 0,O),O===void 0},F=>(T===c&&(console.error(F),h(!0)),!1)))}const k=Vn(P,0);return t.onBeforeUnmount(()=>{m==null||m(),k.cancel()}),Object.assign(o,{resetValidation:S,validate:P}),je(o,"hasError",()=>p.value),{isDirtyModel:s,hasRules:v,hasError:p,errorMessage:y,validate:P,resetValidation:S}}let Re=[],Ye=[];function _n(e){Ye=Ye.filter(n=>n!==e)}function oi(e){_n(e),Ye.push(e)}function Bn(e){_n(e),Ye.length===0&&Re.length!==0&&(Re.at(-1)(),Re=[])}function Te(e){Ye.length===0?e():Re.push(e)}function Mn(e){Re=Re.filter(n=>n!==e)}function Ze(e){return e!=null&&String(e).length!==0}const ut={...{...Qe,...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]},Lt=["update:modelValue","clear","focus","blur"];function Pt({requiredForAttr:e=!0,tagProp:n,changeEvent:l=!1}={}){const{props:o,proxy:i}=t.getCurrentInstance(),a=Xe(o,i.$q),s=Uo({required:e,getValue:()=>o.for});return{requiredForAttr:e,changeEvent:l,tag:n?t.computed(()=>o.tag):{value:"label"},isDark:a,editable:t.computed(()=>!o.disable&&!o.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 ct(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 $t(e){const{props:n,emit:l,slots:o,attrs:i,proxy:a}=t.getCurrentInstance(),{$q:s}=a;let c=null;e.hasValue===void 0&&(e.hasValue=t.computed(()=>Ze(n.modelValue))),e.emitValue===void 0&&(e.emitValue=x=>{l("update:modelValue",x)}),e.controlEvents===void 0&&(e.controlEvents={onFocusin:X,onFocusout:C}),Object.assign(e,{clearValue:w,onControlFocusin:X,onControlFocusout:C,focus:O}),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,R=n.maxlength!==void 0?n.maxlength:n.maxValues;return x+(R!==void 0?" / "+R:"")}}));const{isDirtyModel:m,hasRules:v,hasError:u,errorMessage:p,resetValidation:y}=li(e.focused,e.innerLoading),g=e.floatingLabel!==void 0?t.computed(()=>n.stackLabel||e.focused.value||e.floatingLabel.value):t.computed(()=>n.stackLabel||e.focused.value||e.hasValue.value),S=t.computed(()=>n.bottomSlots||n.hint!==void 0||v.value||n.counter||n.error!==null),P=t.computed(()=>n.filled?"filled":n.outlined?"outlined":n.borderless?"borderless":n.standout?"standout":"standard"),k=t.computed(()=>`q-field row no-wrap items-start q-field--${P.value}`+(e.fieldClass!==void 0?` ${e.fieldClass.value}`:"")+(n.rounded?" q-field--rounded":"")+(n.square?" q-field--square":"")+(g.value?" q-field--float":"")+(T.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":"")+(u.value?" q-field--error":"")+(u.value||e.focused.value?" q-field--highlighted":"")+(!n.hideBottomSpace&&S.value?" q-field--with-bottom":"")+(n.disable?" q-field--disabled":n.readonly?" q-field--readonly":"")),z=t.computed(()=>"q-field__control relative-position row no-wrap"+(n.bgColor!==void 0?` bg-${n.bgColor}`:"")+(u.value?" text-negative":typeof n.standout=="string"&&n.standout.length!==0&&e.focused.value?` ${n.standout}`:n.color!==void 0?` text-${n.color}`:"")),T=t.computed(()=>n.labelSlot||n.label!==void 0),b=t.computed(()=>"q-field__label no-pointer-events absolute ellipsis"+(n.labelColor!==void 0&&!u.value?` text-${n.labelColor}`:"")),h=t.computed(()=>je({id:e.targetUid.value,editable:e.editable.value,focused:e.focused.value,floatingLabel:g.value,modelValue:n.modelValue,emitValue:e.emitValue},"field",()=>e.rootRef.value)),B=t.computed(()=>{const x={};return e.targetUid.value&&(x.for=e.targetUid.value),n.disable&&(x["aria-disabled"]="true"),x});function F(){var Y;const x=document.activeElement;let R=(Y=e.targetRef)==null?void 0:Y.value;R&&(x===null||x.id!==e.targetUid.value)&&(R.hasAttribute("tabindex")||(R=R.querySelector("[tabindex]")),R!==x&&(R==null||R.focus({preventScroll:!0})))}function O(){Te(F)}function N(){Mn(F);const x=document.activeElement;x!==null&&e.rootRef.value.contains(x)&&x.blur()}function X(x){c!==null&&(clearTimeout(c),c=null),e.editable.value&&!e.focused.value&&(e.focused.value=!0,l("focus",x))}function C(x,R){c!==null&&clearTimeout(c),c=setTimeout(()=>{c=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,l("blur",x)),R==null||R())},0)}function w(x){var R,Y;ee(x),s.platform.is.mobile?e.rootRef.value.contains(document.activeElement)&&document.activeElement.blur():(((R=e.targetRef)==null?void 0:R.value)||e.rootRef.value).focus(),n.type==="file"&&(e.inputRef.value.value=null),(Y=e.onClear)==null||Y.call(e),l("update:modelValue",null),e.changeEvent&&l("change",null),l("clear",n.modelValue),t.nextTick(()=>{const Z=m.value;y(),m.value=Z})}function _(x){[13,32].includes(x.keyCode)&&w(x)}function q(){const x=[];return o.prepend!==void 0&&x.push(t.h("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:de},o.prepend())),x.push(t.h("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},V())),u.value&&!n.noErrorIcon&&x.push(ct("error",[t.h(ge,{name:s.iconSet.field.error,color:"negative"})])),n.loading||e.innerLoading.value?x.push(ct("inner-loading-append",o.loading!==void 0?o.loading():[t.h(ln,{color:n.color})])):n.clearable&&e.hasValue.value&&e.editable.value&&x.push(ct("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:_,onClick:w})])),o.append!==void 0&&x.push(t.h("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:de},o.append())),e.getInnerAppend!==void 0&&x.push(ct("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()),T.value&&x.push(t.h("div",{class:b.value},ve(o.label,n.label))),e.getControl!==void 0?x.push(e.getControl()):o.rawControl!==void 0?x.push(o.rawControl()):o.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},o.control(h.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(o.default))}function A(){let x,R;u.value?p.value!==null?(x=[t.h("div",{role:"alert"},p.value)],R=`q--slot-error-${p.value}`):(x=ve(o.error),R="q--slot-error"):(!n.hideHint||e.focused.value)&&(n.hint!==void 0?(x=[t.h("div",n.hint)],R=`q--slot-hint-${n.hint}`):(x=ve(o.hint),R="q--slot-hint"));const Y=n.counter||o.counter!==void 0;if(n.hideBottomSpace&&!Y&&x===void 0)return;const Z=t.h("div",{key:R,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"},o.counter!==void 0?o.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(()=>{c!==null&&clearTimeout(c)}),Object.assign(a,{focus:O,blur:N}),function(){const R=e.getControl===void 0&&o.control===void 0?{...e.splitAttrs.attributes.value,"data-autofocus":n.autofocus||void 0,...B.value}:B.value;return t.h(e.tag.value,{ref:e.rootRef,class:[k.value,i.class],style:i.style,...R},[o.before!==void 0?t.h("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:de},o.before()):null,t.h("div",{class:"q-field__inner relative-position col self-stretch"},[t.h("div",{ref:e.controlRef,class:z.value,tabindex:-1,...e.controlEvents},q()),S.value?A():null]),o.after!==void 0?t.h("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:de},o.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),l={};return n.forEach(o=>{const i=e[o];l[o]={...i,regex:new RegExp(i.pattern)}}),{tokenMap:l,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,l,o){let i,a,s,c,m,v;const u=t.computed(()=>{if(e.maskTokens===void 0||e.maskTokens===null)return{tokenMap:Tn,tokenRegexMask:ai};const{tokenMap:C}=Fn(e.maskTokens),w={...Tn,...C};return{tokenMap:w,tokenRegexMask:An(Object.keys(w))}}),p=t.ref(null),y=t.ref(S());function g(){return e.autogrow||["textarea","text","search","url","tel","password"].includes(e.type)}t.watch(()=>e.type+e.autogrow,k),t.watch(()=>e.mask,C=>{if(C!==void 0)z(y.value,!0);else{const w=N(y.value);k(),e.modelValue!==w&&n("update:modelValue",w)}}),t.watch(()=>e.fillMask+e.reverseFillMask,()=>{p.value&&z(y.value,!0)}),t.watch(()=>e.unmaskedValue,()=>{p.value&&z(y.value)}),t.watch(()=>e.maskTokens,()=>{p.value&&z(y.value,!0)},{deep:!0});function S(){if(k(),p.value){const C=F(N(e.modelValue));return e.fillMask!==!1?X(C):C}return e.modelValue}function P(C){if(C<i.length)return i.slice(-C);let w="",_=i;const q=_.indexOf(le);if(q!==-1){for(let V=C-_.length;V>0;V--)w+=le;_=_.slice(0,q)+w+_.slice(q)}return _}function k(){if(p.value=e.mask!==void 0&&e.mask.length!==0&&g(),!p.value){c=void 0,i="",a="";return}const C=Rn[e.mask]===void 0?e.mask:Rn[e.mask],w=typeof e.fillMask=="string"&&e.fillMask.length!==0?e.fillMask.slice(0,1):"_",_=w.replace(Ln,String.raw`\$&`),q=[],V=[],A=[];let U=e.reverseFillMask,x="",R="";C.replace(u.value.tokenRegexMask,(E,H,K,I,$)=>{if(I!==void 0){const f=u.value.tokenMap[I];A.push(f),R=f.negate,U&&(V.push("(?:"+R+"+)?("+f.pattern+"+)?(?:"+R+"+)?("+f.pattern+"+)?"),U=!1),V.push("(?:"+R+"+)?("+f.pattern+")?");return}if(K!==void 0)x="\\"+(K==="\\"?"":K),A.push(K);else{const f=H!==void 0?H:$;x=f==="\\"?String.raw`\\\\`:f.replace(Ln,String.raw`\\$&`),A.push(f)}q.push("([^"+x+"]+)?"+x+"?")});const Y=new RegExp("^"+q.join("")+"("+(x===""?".":"[^"+x+"]")+"+)?"+(x===""?"":"["+x+"]*")+"$"),Z=V.length-1,d=V.map((E,H)=>H===0&&e.reverseFillMask?new RegExp("^"+_+"*"+E):H===Z?new RegExp("^"+E+"("+(R===""?".":R)+"+)?"+(e.reverseFillMask?"$":_+"*")):new RegExp("^"+E));s=A,c=E=>{const H=Y.exec(e.reverseFillMask?E:E.slice(0,A.length+1));H!==null&&(E=H.slice(1).join(""));const K=[],I=d.length;for(let $=0,f=E;$<I;$++){const W=d[$].exec(f);if(W===null)break;f=f.slice(W.shift().length),K.push(...W)}return K.length!==0?K.join(""):E},i=A.map(E=>typeof E=="string"?E:le).join(""),a=i.split(le).join(w)}function z(C,w,_){const q=o.value,V=(q==null?void 0:q.selectionEnd)??0,A=q===null?0:q.value.length-V,U=N(C);w===!0&&k();const x=F(U,w),R=e.fillMask!==!1?X(x):x,Y=y.value!==R;q!==null&&q.value!==R&&(q.value=R),Y&&(y.value=R),q!==null&&document.activeElement===q&&t.nextTick(()=>{if(R===a){const d=e.reverseFillMask?a.length:0;q.setSelectionRange(d,d,"forward");return}if(_==="insertFromPaste"&&!e.reverseFillMask){const d=q.selectionEnd;let E=V-1;for(let H=m;H<=E&&H<d;H++)i[H]!==le&&E++;b.right(q,E);return}if(["deleteContentBackward","deleteContentForward"].includes(_)){const d=e.reverseFillMask?V===0?R.length>x.length?1:0:Math.max(0,R.length-(R===a?0:Math.min(x.length,A)+1))+1:V;q.setSelectionRange(d,d,"forward");return}if(e.reverseFillMask)if(Y){const d=Math.max(0,R.length-(R===a?0:Math.min(x.length,A+1)));d===1&&V===1?q.setSelectionRange(d,d,"forward"):b.rightReverse(q,d)}else{const d=R.length-A;q.setSelectionRange(d,d,"backward")}else if(Y){const d=Math.max(0,i.indexOf(le),Math.min(x.length,V)-1);b.right(q,d)}else{const d=V-1;b.right(q,d)}});const Z=e.unmaskedValue?N(R):R;String(e.modelValue)!==Z&&(e.modelValue!==null||Z!=="")&&l(Z,!0)}function T(C,w,_){const q=F(N(C.value));w=Math.max(0,i.indexOf(le),Math.min(q.length,w)),m=w,C.setSelectionRange(w,_,"forward")}const b={left(C,w){const _=!i.slice(w-1).includes(le);let q=Math.max(0,w-1);for(;q>=0;q--)if(i[q]===le){w=q,_&&w++;break}if(q<0&&i[w]!==void 0&&i[w]!==le)return b.right(C,0);w>=0&&C.setSelectionRange(w,w,"backward")},right(C,w){const _=C.value.length;let q=Math.min(_,w+1);for(;q<=_;q++)if(i[q]===le){w=q;break}else i[q-1]===le&&(w=q);if(q>_&&i[w-1]!==void 0&&i[w-1]!==le)return b.left(C,_);C.setSelectionRange(w,w,"forward")},leftReverse(C,w){const _=P(C.value.length);let q=Math.max(0,w-1);for(;q>=0;q--)if(_[q-1]===le){w=q;break}else if(_[q]===le&&(w=q,q===0))break;if(q<0&&_[w]!==void 0&&_[w]!==le)return b.rightReverse(C,0);w>=0&&C.setSelectionRange(w,w,"backward")},rightReverse(C,w){const _=C.value.length,q=P(_),V=!q.slice(0,w+1).includes(le);let A=Math.min(_,w+1);for(;A<=_;A++)if(q[A-1]===le){w=A,w>0&&V&&w--;break}if(A>_&&q[w-1]!==void 0&&q[w-1]!==le)return b.leftReverse(C,_);C.setSelectionRange(w,w,"forward")}};function h(C){n("click",C),v=void 0}function B(C){if(n("keydown",C),Bt(C)||C.altKey)return;const w=o.value,_=w.selectionStart,q=w.selectionEnd;if(C.shiftKey||(v=void 0),C.keyCode===37||C.keyCode===39){C.shiftKey&&v===void 0&&(v=w.selectionDirection==="forward"?_:q);const V=b[(C.keyCode===39?"right":"left")+(e.reverseFillMask?"Reverse":"")];if(C.preventDefault(),V(w,v===_?q:_),C.shiftKey){const A=w.selectionStart;w.setSelectionRange(Math.min(v,A),Math.max(v,A),"forward")}}else C.keyCode===8&&!e.reverseFillMask&&_===q?(b.left(w,_),w.setSelectionRange(w.selectionStart,q,"backward")):C.keyCode===46&&e.reverseFillMask&&_===q&&(b.rightReverse(w,q),w.setSelectionRange(_,w.selectionEnd,"forward"))}function F(C,w){if(C==null||C==="")return"";if(e.reverseFillMask)return O(C,w);const _=s;let q=0,V="";for(let A=0;A<_.length;A++){const U=C[q],x=_[A];if(typeof x=="string")V+=x,w===!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 O(C,w){const _=s,q=i.indexOf(le);let V=C.length-1,A="";for(let U=_.length-1;U>=0&&V!==-1;U--){const x=_[U];let R=C[V];if(typeof x=="string")A=x+A,w===!0&&R===x&&V--;else if(R!==void 0&&x.regex.test(R))do A=(x.transform!==void 0?x.transform(R):R)+A,V--,R=C[V];while(q===U&&R!==void 0&&x.regex.test(R));else return A}return A}function N(C){return typeof C!="string"||c===void 0?typeof C=="number"?c(String(C)):C:c(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:y,hasMask:p,moveCursorForPaste:T,updateMaskValue:z,onMaskedKeydown:B,onMaskedClick:h}}const Ot={name:String};function ui(e={}){return(n,l,o)=>{n[l](t.h("input",{class:"hidden"+(o||""),...e.value}))}}function Pn(e){return t.computed(()=>e.name||e.for)}function ci(e,n){function l(){const o=e.modelValue;try{const i="DataTransfer"in window?new DataTransfer:"ClipboardEvent"in window?new ClipboardEvent("").clipboardData:void 0;return Object(o)===o&&("length"in o?[...o]:[o]).forEach(a=>{i.items.add(a)}),{files:i.files}}catch{return{files:void 0}}}return t.computed(()=>{if(e.type==="file")return l()})}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 $n(e){return function(l){if(l.type==="compositionend"||l.type==="change"){if(!l.target.qComposing)return;l.target.qComposing=!1,e(l)}else l.type==="compositionupdate"&&!l.target.qComposing&&typeof l.data=="string"&&(fe.is.firefox?!vi.test(l.data):di.test(l.data)||fi.test(l.data)||mi.test(l.data))&&(l.target.qComposing=!0)}}const Je=ie({name:"QInput",inheritAttrs:!1,props:{...ut,...ri,...Ot,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:[...Lt,"paste","change","keydown","click","animationend"],setup(e,{emit:n,attrs:l}){const{proxy:o}=t.getCurrentInstance(),{$q:i}=o,a={};let s=Number.NaN,c=!1,m=!1,v=null,u;const p=t.ref(null),y=Pn(e),{innerValue:g,hasMask:S,moveCursorForPaste:P,updateMaskValue:k,onMaskedKeydown:z,onMaskedClick:T}=si(e,n,Y,p),b=ci(e),h=t.computed(()=>Ze(g.value)),B=$n(x);function F(f){if(S.value&&f.type==="compositionstart"){f.target.qComposing=!0;return}B(f)}const O=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 f={...O.splitAttrs.listeners.value,onInput:x,onPaste:U,onChange:H,onBlur:K,onFocus:he};return f.onCompositionstart=f.onCompositionupdate=f.onCompositionend=F,S.value&&(f.onKeydown=z,f.onClick=T),e.autogrow&&(f.onAnimationend=R),f}),w=t.computed(()=>{const f={tabindex:0,"data-autofocus":e.autofocus||void 0,rows:e.type==="textarea"?6:void 0,"aria-label":e.label,name:y.value,...O.splitAttrs.attributes.value,id:O.targetUid.value,maxlength:e.maxlength,disabled:e.disable,readonly:e.readonly};return N.value||(f.type=e.type),e.autogrow&&(f.rows=1),f});t.watch(()=>e.type,()=>{p.value&&(p.value.value=e.modelValue)}),t.watch(()=>e.modelValue,f=>{var W;if(v!==null&&(Z(),c=!1,m=!1,delete a.value),S.value){if(m&&(m=!1,String(f)===s))return;k(f)}else g.value!==f&&(g.value=f,e.type==="number"&&Object.hasOwn(a,"value")&&(c?c=!1:delete a.value),((W=e.modelModifiers)==null?void 0:W.trim)===!0&&Object.hasOwn(a,"value")&&(typeof a.value!="string"||a.value.trim()!==f)&&delete a.value);e.autogrow&&t.nextTick(E)}),t.watch(()=>e.autogrow,f=>{f?t.nextTick(E):p.value!==null&&l.rows>0&&(p.value.style.height="auto")}),t.watch(()=>e.dense,()=>{e.autogrow&&t.nextTick(E)});function _(){const f=document.activeElement;p.value!==null&&p.value!==f&&(f===null||f.id!==O.targetUid.value)&&p.value.focus({preventScroll:!0})}function q(){Te(_)}function V(){Mn(_);const f=document.activeElement;f!==null&&O.rootRef.value.contains(f)&&f.blur()}function A(){var f;(f=p.value)==null||f.select()}function U(f){if(S.value&&e.reverseFillMask!==!0){const W=f.target;P(W,W.selectionStart,W.selectionEnd)}n("paste",f)}function x(f){var j;if(!f||!f.target)return;if(e.type==="file"){n("update:modelValue",f.target.files);return}const W=f.target.value;if(f.target.qComposing){a.value=W;return}if(S.value)k(W,!1,f.inputType);else if(((j=e.modelModifiers)==null?void 0:j.trim)===!0&&(a.value=W),Y(W),X.value&&f.target===document.activeElement){const{selectionStart:D,selectionEnd:oe}=f.target;D!==void 0&&oe!==void 0&&t.nextTick(()=>{f.target===document.activeElement&&W.indexOf(f.target.value)===0&&f.target.setSelectionRange(D,oe)})}e.autogrow&&E()}function R(f){n("animationend",f),E()}function Y(f,W){u=()=>{var j;v=null,e.type!=="number"&&(((j=e.modelModifiers)==null?void 0:j.trim)!==!0||S.value)&&Object.hasOwn(a,"value")&&delete a.value,e.modelValue!==f&&s!==f&&(s=f,W===!0&&(m=!0),n("update:modelValue",f),t.nextTick(()=>{s===f&&(s=Number.NaN)})),u=void 0},e.type==="number"&&(c=!0,a.value=f),e.debounce!==void 0?(v!==null&&clearTimeout(v),a.value=f,v=setTimeout(u,e.debounce)):u()}function Z(){v!==null&&(clearTimeout(v),v=null),u=void 0}function d(){Z(),c=!1,m=!1,delete a.value}function E(){requestAnimationFrame(()=>{const f=p.value;if(f!==null){const W=f.parentNode.style,{scrollTop:j}=f,{overflowY:D,maxHeight:oe}=i.platform.is.firefox?{}:window.getComputedStyle(f),be=D!==void 0&&D!=="scroll";be&&(f.style.overflowY="hidden"),W.marginBottom=f.scrollHeight-1+"px",f.style.height="1px",f.style.height=f.scrollHeight+"px",be&&(f.style.overflowY=Number.parseInt(oe,10)<f.scrollHeight?"auto":"hidden"),W.marginBottom="",f.scrollTop=j}})}function H(f){F(f),v!==null&&(clearTimeout(v),v=null),u==null||u(),n("change",f.target.value)}function K(f){f!==void 0&&he(f),v!==null&&(clearTimeout(v),v=null),u==null||u(),c=!1,m=!1,delete a.value,e.type!=="file"&&setTimeout(()=>{p.value!==null&&(p.value.value=g.value!==void 0?g.value:"")},0)}function I(){return Object.hasOwn(a,"value")?a.value:g.value!==void 0?g.value:""}t.onBeforeUnmount(()=>{K()}),t.onMounted(()=>{e.autogrow&&E()}),Object.assign(O,{innerValue:g,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:p,emitValue:Y,onClear:d,hasValue:h,floatingLabel:t.computed(()=>h.value&&(e.type!=="number"||Number.isFinite(Number(g.value)))||Ze(e.displayValue)),getControl:()=>t.h(N.value?"textarea":"input",{ref:p,class:["q-field__native q-placeholder",e.inputClass],style:e.inputStyle,...w.value,...C.value,...e.type!=="file"?{value:I()}:b.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 $=$t(O);return Object.assign(o,{focus:q,blur:V,select:A,getNativeElement:()=>p.value}),je(o,"nativeEl",()=>p.value),$}}),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 l=e,o=n,i=t.computed(()=>l.labelPosition==="left"?{width:typeof l.labelWidth=="number"?`${l.labelWidth}px`:l.labelWidth}:{}),a=t.computed(()=>({"u-input-label-left":l.labelPosition==="left","u-input-label-top":l.labelPosition==="top"})),s=m=>{o("update:modelValue",m)},c=t.computed(()=>{const m=["fieldLabel","labelPosition","labelWidth","modelValue"],v={};for(const u in l)!m.includes(u)&&u!=="modelValue"&&(v[u]=l[u]);return v});return(m,v)=>(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},c.value,{"onUpdate:modelValue":s}),null,16,["model-value"])],2)],2))}}),It=(e,n)=>{const l=e.__vccOpts||e;for(const[o,i]of n)l[o]=i;return l},hi=It(gi,[["__scopeId","data-v-f952dc62"]]);function pi(e,n){const l=t.ref(null),o=t.computed(()=>e.disable?null:t.h("span",{ref:l,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}):l.value!==null&&(a===void 0||(s==null?void 0:s.contains(a.target))===!0)&&l.value.focus({preventScroll:!0}))}return{refocusTargetEl:o,refocusTarget:i}}const bi={xs:30,sm:35,md:40,lg:50,xl:60},yi={...Qe,...it,...Ot,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]},wi=["update:modelValue"];function ki(e){(e.keyCode===13||e.keyCode===32)&&ee(e)}function Si(e,n){const{props:l,slots:o,emit:i,proxy:a}=t.getCurrentInstance(),{$q:s}=a,c=Xe(l,s),m=t.ref(null),{refocusTargetEl:v,refocusTarget:u}=pi(l,m),p=at(l,bi),y=t.computed(()=>l.val!==void 0&&Array.isArray(l.modelValue)),g=t.computed(()=>{const w=t.toRaw(l.val);return y.value?l.modelValue.findIndex(_=>t.toRaw(_)===w):-1}),S=t.computed(()=>y.value?g.value!==-1:t.toRaw(l.modelValue)===t.toRaw(l.trueValue)),P=t.computed(()=>y.value?g.value===-1:t.toRaw(l.modelValue)===t.toRaw(l.falseValue)),k=t.computed(()=>!S.value&&!P.value),z=t.computed(()=>l.disable?-1:l.tabindex||0),T=t.computed(()=>`q-${e} cursor-pointer no-outline row inline no-wrap items-center`+(l.disable?" disabled":"")+(c.value?` q-${e}--dark`:"")+(l.dense?` q-${e}--dense`:"")+(l.leftLabel?" reverse":"")),b=t.computed(()=>{const w=S.value?"truthy":P.value?"falsy":"indet",_=l.color!==void 0&&(l.keepColor||S.value)?` text-${l.color}`:"";return`q-${e}__inner relative-position non-selectable q-${e}__inner--${w}${_}`}),h=t.computed(()=>{const w={type:"checkbox"};return l.name!==void 0&&Object.assign(w,{".checked":S.value,"^checked":S.value?"checked":void 0,name:l.name,value:y.value?l.val:l.trueValue}),w}),B=ui(h),F=t.computed(()=>{const w={tabindex:z.value,role:"switch","aria-label":l.label,"aria-checked":k.value?"mixed":S.value?"true":"false"};return l.disable&&(w["aria-disabled"]="true"),w});function O(w){w!==void 0&&(ee(w),u(w)),l.disable||i("update:modelValue",N(),w)}function N(){if(y.value){if(S.value){const w=[...l.modelValue];return w.splice(g.value,1),w}return[...l.modelValue,l.val]}if(S.value){if(l.toggleOrder!=="ft"||!l.toggleIndeterminate)return l.falseValue}else if(P.value){if(l.toggleOrder==="ft"||!l.toggleIndeterminate)return l.trueValue}else return l.toggleOrder!=="ft"?l.trueValue:l.falseValue;return l.indeterminateValue}function X(w){(w.keyCode===13||w.keyCode===32)&&O(w)}const C=n(S,k);return Object.assign(a,{toggle:O}),()=>{const w=C();l.disable||B(w,"unshift",` q-${e}__native absolute q-ma-none q-pa-none`);const _=[t.h("div",{class:b.value,style:p.value,"aria-hidden":"true"},w)];v.value!==null&&_.push(v.value);const q=l.label!==void 0?we(o.default,[l.label]):ve(o.default);return q!==void 0&&_.push(t.h("div",{class:`q-${e}__label q-anchor--skip`},q)),t.h("div",{ref:m,class:T.value,...F.value,onClick:O,onKeydown:ki,onKeyup:X},_)}}const xi=ie({name:"QToggle",props:{...yi,icon:String,iconColor:String},emits:wi,setup(e){function n(l,o){const i=t.computed(()=>(l.value?e.checkedIcon:o.value?e.indeterminateIcon:e.uncheckedIcon)||e.icon),a=t.computed(()=>l.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 Si("toggle",n)}}),Ci=ie({name:"QField",inheritAttrs:!1,props:{...ut,tag:{type:String,default:"label"}},emits:Lt,setup(){return $t(Pt({tagProp:!0}))}});function On(e){e.keyCode===32&&ee(e)}const Ei={xs:8,sm:10,md:14,lg:20,xl:24},qi=ie({name:"QChip",props:{...Qe,...it,dense:Boolean,icon:String,iconRight:String,iconRemove:String,iconSelected:String,label:[String,Number],color:String,textColor:String,modelValue:{type:Boolean,default:!0},selected:{type:Boolean,default:null},square:Boolean,outline:Boolean,clickable:Boolean,removable:Boolean,removeAriaLabel:String,tabindex:[String,Number],disable:Boolean,ripple:{type:[Boolean,Object],default:!0}},emits:["update:modelValue","update:selected","remove","click"],setup(e,{slots:n,emit:l}){const{proxy:{$q:o}}=t.getCurrentInstance(),i=Xe(e,o),a=at(e,Ei),s=t.computed(()=>e.selected||e.icon!==void 0),c=t.computed(()=>e.selected?e.iconSelected||o.iconSet.chip.selected:e.icon),m=t.computed(()=>e.iconRemove||o.iconSet.chip.remove),v=t.computed(()=>!e.disable&&(e.clickable||e.selected!==null)),u=t.computed(()=>{const k=e.outline&&e.color||e.textColor;return"q-chip row inline no-wrap items-center"+(!e.outline&&e.color!==void 0?` bg-${e.color}`:"")+(k?` text-${k} 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":"")}),p=t.computed(()=>{const k=e.disable?{tabindex:-1,"aria-disabled":"true"}:{tabindex:e.tabindex||0,role:"button","aria-pressed":e.selected?"true":"false"},z={...k,role:"button","aria-hidden":"false","aria-label":e.removeAriaLabel||o.lang.label.remove};return{chip:k,remove:z}});function y(k){[13,32].includes(k.keyCode)&&(g(k),ee(k))}function g(k){e.disable||(l("update:selected",!e.selected),l("click",k))}function S(k){(k.keyCode===void 0||[13,32].includes(k.keyCode))&&(ee(k),e.disable||(l("update:modelValue",!1),l("remove")))}function P(){const k=[];v.value&&k.push(t.h("div",{class:"q-focus-helper"})),s.value&&k.push(t.h(ge,{class:"q-chip__icon q-chip__icon--left",name:c.value}));const z=e.label!==void 0?[t.h("div",{class:"ellipsis"},[e.label])]:void 0;return k.push(t.h("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},Ll(n.default,z))),e.iconRight&&k.push(t.h(ge,{class:"q-chip__icon q-chip__icon--right",name:e.iconRight})),e.removable&&k.push(t.h(ge,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:m.value,...p.value.remove,onClick:S,onKeydown:On,onKeyup:S})),k}return()=>{if(!e.modelValue)return;const k={class:u.value,style:a.value};return v.value&&Object.assign(k,p.value.chip,{onClick:g,onKeydown:On,onKeyup:y}),Pl("div",k,P(),"ripple",e.ripple!==!1&&!e.disable,()=>[[un,e.ripple]])}}}),Vi=ie({name:"QItem",props:{...Qe,...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:l}){const{proxy:{$q:o}}=t.getCurrentInstance(),i=Xe(e,o),{hasLink:a,linkAttrs:s,linkClass:c,linkTag:m,navigateOnClick:v}=pn(),u=t.ref(null),p=t.ref(null),y=t.computed(()=>e.clickable||a.value||e.tag==="label"),g=t.computed(()=>!e.disable&&y.value),S=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?c.value:e.active?` q-item--active${e.activeClass!==void 0?` ${e.activeClass}`:""}`:"")+(e.disable?" disabled":"")+(g.value?" q-item--clickable q-link cursor-pointer "+(e.manualFocus?"q-manual-focusable":"q-focusable q-hoverable")+(e.focused?" q-manual-focusable--focused":""):"")),P=t.computed(()=>e.insetLevel===void 0?null:{["padding"+(o.lang.rtl?"Right":"Left")]:16+e.insetLevel*56+"px"});function k(h){g.value&&(p.value!==null&&!h.qAvoidFocus&&(!h.qKeyEvent&&document.activeElement===u.value?p.value.focus({preventScroll:!0}):document.activeElement===p.value&&u.value.focus({preventScroll:!0})),v(h))}function z(h){if(g.value&&ke(h,[13,32])){ee(h),h.qKeyEvent=!0;const B=new MouseEvent("click",h);B.qKeyEvent=!0,u.value.dispatchEvent(B)}l("keyup",h)}function T(h){g.value&&h.keyCode===32&&ee(h)}function b(){const h=Al(n.default,[]);return g.value&&h.unshift(t.h("div",{class:"q-focus-helper",tabindex:-1,ref:p})),h}return()=>{const h={ref:u,class:S.value,style:P.value,role:a.value?void 0:g.value?"button":"listitem",onClick:k,onKeydown:T,onKeyup:z};return g.value?(h.tabindex=e.tabindex||"0",Object.assign(h,s.value)):y.value&&(h["aria-disabled"]="true"),t.h(m.value,h,b())}}}),_i=ie({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(e,{slots:n}){const l=t.computed(()=>`q-item__section column q-item__section--${e.avatar||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:l.value},ve(n.default))}}),Bi=ie({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(e,{slots:n}){const l=t.computed(()=>Number.parseInt(e.lines,10)),o=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":"")+(l.value===1?" ellipsis":"")),i=t.computed(()=>e.lines!==void 0&&l.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":l.value}:null);return()=>t.h("div",{style:i.value,class:o.value},ve(n.default))}});function Mi(){if(window.getSelection!==void 0){const e=window.getSelection();e.empty!==void 0?e.empty():e.removeAllRanges!==void 0&&(e.removeAllRanges(),Ft.is.mobile||e.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}const Ri={...{target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},contextMenu:Boolean};function Ti({showing:e,avoidEmit:n,configureAnchorEl:l}){const{props:o,proxy:i,emit:a}=t.getCurrentInstance(),s=t.ref(null);let c=null;function m(g){return s.value===null?!1:g===void 0||g.touches===void 0||g.touches.length<=1}const v={};l===void 0&&(Object.assign(v,{hide(g){i.hide(g)},toggle(g){i.toggle(g),g.qAnchorHandled=!0},toggleKey(g){ke(g,13)&&v.toggle(g)},contextClick(g){i.hide(g),de(g),t.nextTick(()=>{i.show(g),g.qAnchorHandled=!0})},prevent:de,mobileTouch(g){if(v.mobileCleanup(g),!m(g))return;i.hide(g),s.value.classList.add("non-selectable");const S=g.target;_t(v,"anchor",[[S,"touchmove","mobileCleanup","passive"],[S,"touchend","mobileCleanup","passive"],[S,"touchcancel","mobileCleanup","passive"],[s.value,"contextmenu","prevent","notPassive"]]),c=setTimeout(()=>{c=null,i.show(g),g.qAnchorHandled=!0},300)},mobileCleanup(g){s.value.classList.remove("non-selectable"),c!==null&&(clearTimeout(c),c=null),e.value&&g!==void 0&&Mi()}}),l=function(S=o.contextMenu){if(o.noParentEvent||s.value===null)return;const P=S?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"]];_t(v,"anchor",P)});function u(){an(v,"anchor")}function p(g){for(s.value=g;s.value.classList.contains("q-anchor--skip");)s.value=s.value.parentNode;l()}function y(){if(o.target===!1||o.target===""||i.$el.parentNode===null)s.value=null;else if(o.target===!0)p(i.$el.parentNode);else{let g=o.target;if(typeof o.target=="string")try{g=document.querySelector(o.target)}catch{g=void 0}g!=null?(s.value=g.$el||g,l()):(s.value=null,console.error(`Anchor: target "${o.target}" not found`))}}return t.watch(()=>o.contextMenu,g=>{s.value!==null&&(u(),l(g))}),t.watch(()=>o.target,()=>{s.value!==null&&u(),y()}),t.watch(()=>o.noParentEvent,g=>{s.value!==null&&(g?u():l())}),t.onMounted(()=>{y(),!n&&o.modelValue&&s.value===null&&a("update:modelValue",!1)}),t.onBeforeUnmount(()=>{c!==null&&clearTimeout(c),u()}),{anchorEl:s,canShow:m,anchorEvents:v}}function Fi(e,n){const l=t.ref(null);let o;function i(c,m){const v=`${m!==void 0?"add":"remove"}EventListener`,u=m!==void 0?m:o;c!==window&&c[v]("scroll",u,ae.passive),window[v]("scroll",u,ae.passive),o=m}function a(){l.value!==null&&(i(l.value),l.value=null)}const s=t.watch(()=>e.noParentEvent,()=>{l.value!==null&&(a(),n())});return t.onBeforeUnmount(s),{localScrollTarget:l,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:l,handleShow:o,handleHide:i,handleRouteChange:a,processOnMount:s}){const c=t.getCurrentInstance(),{props:m,emit:v,proxy:u}=c;let p;function y(b){e.value?P(b):g(b)}function g(b){if(m.disable||(b==null?void 0:b.qAnchorHandled)===!0||n!==void 0&&!n(b))return;const h=m["onUpdate:modelValue"]!==void 0;h&&(v("update:modelValue",!0),p=b,t.nextTick(()=>{p===b&&(p=void 0)})),(m.modelValue===null||!h)&&S(b)}function S(b){e.value||(e.value=!0,v("beforeShow",b),o!==void 0?o(b):v("show",b))}function P(b){if(m.disable)return;const h=m["onUpdate:modelValue"]!==void 0;h&&(v("update:modelValue",!1),p=b,t.nextTick(()=>{p===b&&(p=void 0)})),(m.modelValue===null||!h)&&k(b)}function k(b){e.value&&(e.value=!1,v("beforeHide",b),i!==void 0?i(b):v("hide",b))}function z(b){m.disable&&b?m["onUpdate:modelValue"]!==void 0&&v("update:modelValue",!1):b===!0!==e.value&&(b?S:k)(p)}t.watch(()=>m.modelValue,z),l!==void 0&&dn(c)&&t.watch(()=>u.$route.fullPath,()=>{l.value&&e.value&&(a==null||a(),P())}),t.onMounted(()=>{z(m.modelValue)});const T={show:g,hide:P,toggle:y};return Object.assign(u,T),T}const Fe=[];function Ai(e,n){do{if(e.$options.name==="QMenu"){if(e.hide(n),e.$props.separateClosePopup)return Mt(e)}else if(e.__qPortal){const l=Mt(e);return(l==null?void 0:l.$options.name)==="QPopupProxy"?(e.hide(n),l):e}e=Mt(e)}while(e!=null)}const Nn={};let Li=1,Pi=document.body;function $i(e,n){const l=document.createElement("div");if(l.id=n!==void 0?`q-portal--${n}--${Li++}`:e,Nn.globalNodes!==void 0){const o=Nn.globalNodes.class;o!==void 0&&(l.className=o)}return Pi.append(l),l}function Oi(e){e.remove()}const Ii=ie({name:"QPortal",setup(e,{slots:n}){return()=>n.default()}});function zi(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,l,o){const i=t.ref(!1),a=t.ref(!1);let s=null;const c={},m=o==="dialog"&&zi(e);function v(p){if(p){Bn(c),a.value=!0;return}a.value=!1,i.value||(!m&&s===null&&(s=$i(!1,o)),i.value=!0,Fe.push(e.proxy),oi(c))}function u(p){if(a.value=!1,!p)return;Bn(c),i.value=!1;const y=Fe.indexOf(e.proxy);y!==-1&&Fe.splice(y,1),s!==null&&(Oi(s),s=null)}return t.onUnmounted(()=>{u(!0)}),e.proxy.__qPortal=!0,je(e.proxy,"contentEl",()=>n.value),{showPortal:v,hidePortal:u,portalIsActive:i,portalIsAccessible:a,renderPortal:()=>m?l():i.value?[t.h(t.Teleport,{to:s},t.h(Ii,l))]:void 0}}const Wn={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function jn(e,n=()=>{},l=()=>{}){return{transitionProps:t.computed(()=>{const o=`q-transition--${e.transitionShow||n()}`,i=`q-transition--${e.transitionHide||l()}`;return{appear:!0,enterFromClass:`${o}-enter-from`,enterActiveClass:`${o}-enter-active`,enterToClass:`${o}-enter-to`,leaveFromClass:`${i}-leave-from`,leaveActiveClass:`${i}-leave-active`,leaveToClass:`${i}-leave-to`}}),transitionStyle:t.computed(()=>`--q-transition-duration: ${e.transitionDuration}ms`)}}function Un(){let e;const n=t.getCurrentInstance();function l(){e=void 0}return t.onDeactivated(l),t.onBeforeUnmount(l),{removeTick:l,registerTick(o){e=o,t.nextTick(()=>{e===o&&(fn(n)||e(),e=void 0)})}}}function Kn(){let e=null;const n=t.getCurrentInstance();function l(){e!==null&&(clearTimeout(e),e=null)}return t.onDeactivated(l),t.onBeforeUnmount(l),{removeTimeout:l,registerTimeout(o,i){l(),fn(n)||(e=setTimeout(()=>{e=null,o()},i))}}}const Di=[Element,String],Ni=[null,document,document.body,document.scrollingElement,document.documentElement];function Hi(e,n){let l=Ul(n);if(l===void 0){if(e==null)return window;l=e.closest(".scroll,.scroll-y,.overflow-auto")}return Ni.includes(l)?window:l}function Wi(e){return e===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:e.scrollTop}function ji(e){return e===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:e.scrollLeft}let dt;function Ui(){if(dt!==void 0)return dt;const e=document.createElement("p"),n=document.createElement("div");qt(e,{width:"100%",height:"200px"}),qt(n,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),n.append(e),document.body.append(n);const l=e.offsetWidth;n.style.overflow="scroll";let o=e.offsetWidth;return l===o&&(o=n.clientWidth),n.remove(),dt=l-o,dt}const Ae=[];let Le;function Ki(e){e.keyCode===27&&(Le=!0)}function Qi(){Le&&(Le=!1)}function Xi(e){Le&&ke(e,27)&&(Le=!1,Ae.at(-1)(e))}function Qn(e){window[e]("keydown",Ki),window[e]("blur",Qi),window[e]("keyup",Xi),Le=!1}function Xn(e){fe.is.desktop&&(Ae.push(e),Ae.length===1&&Qn("addEventListener"))}function ft(e){const n=Ae.indexOf(e);n!==-1&&(Ae.splice(n,1),Ae.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 zt(e){const n=Pe.indexOf(e);n!==-1&&(Pe.splice(n,1),Pe.length===0&&document.body.removeEventListener("focusin",Yn))}const{notPassiveCapture:mt}=ae,Se=[];function vt(e){const n=e.target;if(n===void 0||n.nodeType===8||n.classList.contains("no-pointer-events"))return;let l=null,o=!1;for(let i=Fe.length-1;i>=0;i--){const a=Fe[i].$,s=a.type.name;if(s!=="QTooltip"){if(s==="QDialog"){if(a.props.seamless!==!0){if(o===!1)return;l=new Set(Fe.slice(i+1).map(c=>c.contentEl));break}continue}o=!0}}for(let i=Se.length-1;i>=0;i--){const a=Se[i];if(l!==null&&!l.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 Yi(e){Se.push(e),Se.length===1&&(document.addEventListener("mousedown",vt,mt),document.addEventListener("touchstart",vt,mt))}function Jn(e){const n=Se.indexOf(e);n!==-1&&(Se.splice(n,1),Se.length===0&&(document.removeEventListener("mousedown",vt,mt),document.removeEventListener("touchstart",vt,mt)))}const Zi=new Map;function Gn(e){for(const[n,l]of Zi)if(l.$el.contains(e)===!0)return n}function el(e,n){if(e==null)return!1;const l=new Set;for(let o=Gn(n);o!==void 0&&l.has(o)===!1;o=Gn(o)){if(Vt(e,o)===!0)return!0;l.add(o)}return!1}let tl,nl;const Ji=["top","center","bottom"],Gi=["left","middle","right","start","end"];function ll(e){const n=e.split(" ");return n.length!==2?!1:Ji.includes(n[0])?Gi.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 ea(e){return e?!(e.length!==2||typeof e[0]!="number"||typeof e[1]!="number"):!0}const Dt={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(e=>{Dt[`${e}#ltr`]=e,Dt[`${e}#rtl`]=e});function ol(e,n){const l=e.split(" ");return{vertical:l[0],horizontal:Dt[`${l[1]}#${n?"rtl":"ltr"}`]}}function ta(e,n){let{top:l,left:o,right:i,bottom:a,width:s,height:c}=e.getBoundingClientRect();return n!==void 0&&(l-=n[1],o-=n[0],a+=n[1],i+=n[0],s+=n[0],c+=n[1]),{top:l,bottom:a,height:c,left:o,right:i,width:s,middle:o+(i-o)/2,center:l+(a-l)/2}}function na(e,n,l){let{top:o,left:i}=e.getBoundingClientRect();return o+=n.top,i+=n.left,l!==void 0&&(o+=l[1],i+=l[0]),{top:o,bottom:o+1,height:1,left:i,right:i+1,width:1,middle:i,center:o}}function la(e,n){return{top:0,center:n/2,bottom:n,left:0,middle:e/2,right:e}}function il(e,n,l,o){return{top:e[l.vertical]-n[o.vertical],left:e[l.horizontal]-n[o.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:l,offset:o,anchorEl:i,anchorOrigin:a,selfOrigin:s,absoluteOffset:c,fit:m,cover:v,maxHeight:u,maxWidth:p}=e;if(fe.is.ios&&window.visualViewport!==void 0){const F=document.body.style,{offsetLeft:O,offsetTop:N}=window.visualViewport;O!==tl&&(F.setProperty("--q-pe-left",O+"px"),tl=O),N!==nl&&(F.setProperty("--q-pe-top",N+"px"),nl=N)}const{scrollLeft:y,scrollTop:g}=l,S=c===void 0?ta(i,v?[0,0]:o):na(i,c,o);Object.assign(l.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:p,maxHeight:u,visibility:"visible"});const{offsetWidth:P,offsetHeight:k}=l,{elWidth:z,elHeight:T}=m||v?{elWidth:Math.max(S.width,P),elHeight:v?Math.max(S.height,k):k}:{elWidth:P,elHeight:k};let b={maxWidth:p,maxHeight:u};(m||v)&&(b.minWidth=S.width+"px",v&&(b.minHeight=S.height+"px")),Object.assign(l.style,b);const h=la(z,T);let B=il(S,h,a,s);if(c===void 0||o===void 0)Nt(B,S,h,a,s);else{const{top:F,left:O}=B;Nt(B,S,h,a,s);let N=!1;if(B.top!==F){N=!0;const X=2*o[1];S.center=S.top-=X,S.bottom-=X+2}if(B.left!==O){N=!0;const X=2*o[0];S.middle=S.left-=X,S.right-=X+2}N&&(B=il(S,h,a,s),Nt(B,S,h,a,s))}b={top:B.top+"px",left:B.left+"px"},B.maxHeight!==void 0&&(b.maxHeight=B.maxHeight+"px",S.height>B.maxHeight&&(b.minHeight=b.maxHeight)),B.maxWidth!==void 0&&(b.maxWidth=B.maxWidth+"px",S.width>B.maxWidth&&(b.minWidth=b.maxWidth)),Object.assign(l.style,b),l.scrollTop!==g&&(l.scrollTop=g),l.scrollLeft!==y&&(l.scrollLeft=y)}function Nt(e,n,l,o,i){const a=l.bottom,s=l.right,c=Ui(),m=window.innerHeight-c,v=document.body.clientWidth;if(e.top<0||e.top+a>m)if(i.vertical==="center")e.top=n[o.vertical]>m/2?Math.max(0,m-a):0,e.maxHeight=Math.min(a,m);else if(n[o.vertical]>m/2){const u=Math.min(m,o.vertical==="center"?n.center:o.vertical===i.vertical?n.bottom:n.top);e.maxHeight=Math.min(a,u),e.top=Math.max(0,u-a)}else e.top=Math.max(0,o.vertical==="center"?n.center:o.vertical===i.vertical?n.top:n.bottom),e.maxHeight=Math.min(a,m-e.top);if(e.left<0||e.left+s>v)if(e.maxWidth=Math.min(s,v),i.horizontal==="middle")e.left=n[o.horizontal]>v/2?Math.max(0,v-s):0;else if(n[o.horizontal]>v/2){const u=Math.min(v,o.horizontal==="middle"?n.middle:o.horizontal===i.horizontal?n.right:n.left);e.maxWidth=Math.min(s,u),e.left=Math.max(0,u-e.maxWidth)}else e.left=Math.max(0,o.horizontal==="middle"?n.middle:o.horizontal===i.horizontal?n.left:n.right),e.maxWidth=Math.min(s,v-e.left)}const oa=ie({name:"QMenu",inheritAttrs:!1,props:{...Ri,...In,...Qe,...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:ea},scrollTarget:Di,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...zn,"click","escapeKey"],setup(e,{slots:n,emit:l,attrs:o}){let i=null,a,s,c;const m=t.getCurrentInstance(),{proxy:v}=m,{$q:u}=v,p=t.ref(null),y=t.ref(!1),g=t.computed(()=>!e.persistent&&!e.noRouteDismiss),S=Xe(e,u),{registerTick:P,removeTick:k}=Un(),{registerTimeout:z}=Kn(),{transitionProps:T,transitionStyle:b}=jn(e),{localScrollTarget:h,changeScrollEvent:B,unconfigureScrollTarget:F}=Fi(e,K),{anchorEl:O,canShow:N}=Ti({showing:y}),{hide:X}=Dn({showing:y,canShow:N,handleShow:Z,handleHide:d,handleRouteChange:E,hideOnRouteChange:g,processOnMount:!0}),{showPortal:C,hidePortal:w,renderPortal:_}=Hn(m,p,j,"menu"),q={anchorEl:O,innerRef:p,onClickOutside(D){if(!e.persistent&&y.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"),u.lang.rtl)),A=t.computed(()=>e.cover?V.value:ol(e.self||"top start",u.lang.rtl)),U=t.computed(()=>(e.square?" q-menu--square":"")+(S.value?" q-menu--dark q-dark":"")),x=t.computed(()=>e.autoClose?{onClick:I}:{}),R=t.computed(()=>y.value&&!e.persistent);t.watch(R,D=>{D?(Xn(f),Yi(q)):(ft(f),Jn(q))});function Y(){Te(()=>{let D=p.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($),C(),K(),a=void 0,D!==void 0&&(e.touchPosition||e.contextMenu)){const oe=on(D);if(oe.left!==void 0){const{top:be,left:re}=O.value.getBoundingClientRect();a={left:oe.left-re,top:oe.top-be}}}s===void 0&&(s=t.watch(()=>u.screen.width+"|"+u.screen.height+"|"+e.self+"|"+e.anchor+"|"+u.lang.rtl,W)),e.noFocus||document.activeElement.blur(),P(()=>{W(),e.noFocus||Y()}),z(()=>{u.platform.is.ios&&(c=e.autoClose,p.value.click()),W(),C(!0),l("show",D)},e.transitionDuration)}function d(D){if(k(),w(),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,Te(()=>{oe.isConnected&&oe.focus({preventScroll:!0})})}z(()=>{w(!0),l("hide",D)},e.transitionDuration)}function E(){i=null}function H(D){a=void 0,s!==void 0&&(s(),s=void 0),(D||y.value)&&(zt($),F(),Jn(q),ft(f)),D||(i=null)}function K(){(O.value!==null||e.scrollTarget!==void 0)&&(h.value=Hi(O.value,e.scrollTarget),B(h.value,W))}function I(D){c?c=!1:(Ai(v,D),l("click",D))}function $(D){R.value&&!e.noFocus&&!Vt(p.value,D.target)&&!el(p.value,D.target)&&Y()}function f(D){e.noEscDismiss||(l("escapeKey"),X(D))}function W(){al({targetEl:p.value,offset:e.offset,anchorEl:O.value,anchorOrigin:V.value,selfOrigin:A.value,absoluteOffset:a,fit:e.fit,cover:e.cover,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function j(){return t.h(t.Transition,T.value,()=>y.value?t.h("div",{role:"menu",...o,ref:p,tabindex:-1,class:["q-menu q-position-engine scroll"+U.value,o.class],style:[o.style,b.value],...x.value},ve(n.default)):null)}return t.onBeforeUnmount(()=>{H()}),Object.assign(v,{focus:Y,updatePosition:W}),_}});function ia(e,n,l){function o(){}return t.onBeforeUnmount(()=>{e.value}),{removeFromHistory:o,addToHistory(){}}}let Ge=0,Ht,Wt,et,jt=!1,rl,sl,ul,xe=null;function cl(e){e.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function gt(e){jt||(jt=!0,requestAnimationFrame(()=>{jt=!1;const{height:n}=e.target,{clientHeight:l,scrollTop:o}=document.scrollingElement;(et===void 0||n!==window.innerHeight)&&(et=l-n,document.scrollingElement.scrollTop=o),o>et&&(document.scrollingElement.scrollTop-=Math.ceil((o-et)/8))}))}function dl(e){const n=document.body,l=window.visualViewport!==void 0;if(e==="add"){const{overflowY:o,overflowX:i}=window.getComputedStyle(n);Ht=ji(window),Wt=Wi(window),rl=n.style.left,sl=n.style.top,ul=window.location.pathname,n.style.left=`-${Ht}px`,n.style.top=`-${Wt}px`,i!=="hidden"&&(i==="scroll"||n.scrollWidth>window.innerWidth)&&n.classList.add("q-body--force-scrollbar-x"),o!=="hidden"&&(o==="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&&(l?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",gt,ae.passiveCapture),window.visualViewport.addEventListener("scroll",gt,ae.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",cl,ae.passiveCapture))}else fe.is.ios&&(l?(window.visualViewport.removeEventListener("resize",gt,ae.passiveCapture),window.visualViewport.removeEventListener("scroll",gt,ae.passiveCapture)):window.removeEventListener("scroll",cl,ae.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(Ht,Wt),et=void 0}function aa(e){let n="add";if(e===!0){if(Ge++,xe!==null){clearTimeout(xe),xe=null;return}if(Ge>1)return}else{if(Ge===0||(Ge--,Ge>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 ra(){let e;return{preventBodyScroll(n){n!==e&&(e!==void 0||n)&&(e=n,aa(n))}}}let ht=0;const sa={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"]},ua=ie({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:l,attrs:o}){const i=t.getCurrentInstance(),a=t.ref(null),s=t.ref(!1),c=t.ref(!1);let m=null,v=null,u=!1,p=!1;const y=t.computed(()=>!e.persistent&&!e.noRouteDismiss&&!e.seamless),{preventBodyScroll:g}=ra(),{registerTimeout:S}=Kn(),{registerTick:P,removeTick:k}=Un(),{transitionProps:z,transitionStyle:T}=jn(e,()=>fl[e.position][0],()=>fl[e.position][1]),b=t.computed(()=>T.value+(e.backdropFilter!==void 0?`;backdrop-filter:${e.backdropFilter};-webkit-backdrop-filter:${e.backdropFilter}`:"")),{showPortal:h,hidePortal:B,portalIsAccessible:F,renderPortal:O}=Hn(i,a,K,"dialog"),{hide:N}=Dn({showing:s,hideOnRouteChange:y,handleShow:q,handleHide:V,handleRouteChange:A,processOnMount:!0});ia(s);const X=t.computed(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${e.maximized?"maximized":"minimized"} q-dialog__inner--${e.position} ${sa[e.position]}`+(c.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),w=t.computed(()=>e.autoClose?{onClick:d}:{}),_=t.computed(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${C.value?"modal":"seamless"}`,o.class]);t.watch(()=>e.maximized,I=>{s.value&&Z(I)}),t.watch(C,I=>{g(I),I?(Zn(H),Xn(R)):(zt(H),ft(R))});function q(I){var $;v=!e.noRefocus&&document.activeElement!==null?document.activeElement:null,Z(e.maximized),h(),c.value=!0,e.noFocus?k():(($=document.activeElement)==null||$.blur(),P(U)),S(()=>{if(i.proxy.$q.platform.is.ios){if(!e.seamless&&document.activeElement){const{top:f,bottom:W}=document.activeElement.getBoundingClientRect(),{innerHeight:j}=window,D=window.visualViewport!==void 0?window.visualViewport.height:j;f>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()}p=!0,a.value.click(),p=!1}h(!0),c.value=!1,l("show",I)},e.transitionDuration)}function V(I){if(k(),Y(!0),c.value=!0,B(),v!==null){const $=((I==null?void 0:I.type.indexOf("key"))===0?v.closest('[tabindex]:not([tabindex^="-"])'):void 0)||v;v=null,Te(()=>{$.isConnected&&$.focus({preventScroll:!0})})}S(()=>{B(!0),c.value=!1,l("hide",I)},e.transitionDuration)}function A(){v=null}function U(I){Te(()=>{let $=a.value;if($!==null){if(I!==void 0){const f=$.querySelector(I);if(f!==null){f.focus({preventScroll:!0});return}}$.contains(document.activeElement)||($=$.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||$.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||$.querySelector("[autofocus], [data-autofocus]")||$,$.focus({preventScroll:!0}))}})}function x(I){I&&typeof I.focus=="function"?I.focus({preventScroll:!0}):U(),l("shake");const $=a.value;$!==null&&($.classList.remove("q-animate--scale"),$.classList.add("q-animate--scale"),m!==null&&clearTimeout(m),m=setTimeout(()=>{m=null,a.value!==null&&($.classList.remove("q-animate--scale"),U())},170))}function R(){e.seamless||(e.persistent||e.noEscDismiss?!e.maximized&&!e.noShake&&x():(l("escapeKey"),N()))}function Y(I){m!==null&&(clearTimeout(m),m=null),(I||s.value)&&(Z(!1),e.seamless||(g(!1),zt(H),ft(R))),I||(v=null)}function Z(I){I?u||(ht<1&&document.body.classList.add("q-body--dialog"),ht++,u=!0):u&&(ht<2&&document.body.classList.remove("q-body--dialog"),ht--,u=!1)}function d(I){p||(N(I),l("click",I))}function E(I){!e.persistent&&!e.noBackdropDismiss?N(I):e.noShake||x()}function H(I){!e.allowFocusOutside&&F.value&&!Vt(a.value,I.target)&&!el(a.value,I.target)&&U('[tabindex]:not([tabindex="-1"])')}Object.assign(i.proxy,{focus:U,shake:x,__updateRefocusTarget(I){v=I||null}}),t.onBeforeUnmount(Y);function K(){return t.h("div",{role:"dialog","aria-modal":C.value?"true":"false",...o,class:_.value},[t.h(t.Transition,{name:"q-transition--fade",appear:!0},()=>C.value?t.h("div",{class:"q-dialog__backdrop fixed-full",style:b.value,"aria-hidden":"true",onClick:E}):null),t.h(t.Transition,z.value,()=>s.value?t.h("div",{ref:a,class:X.value,style:T.value,tabindex:-1,...w.value},ve(n.default)):null)])}return O}});let pt=!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,pt=e.scrollLeft>=0,e.remove()}const me=1e3,ca=["start","center","end","start-force","center-force","end-force"],ml=Array.prototype.filter,da=window.getComputedStyle(document.body).overflowAnchor===void 0?Kl:function(n,l){n!==null&&(n._qOverflowAnimationFrame!==void 0&&cancelAnimationFrame(n._qOverflowAnimationFrame),n._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(n===null)return;n._qOverflowAnimationFrame=void 0;const o=n.children||[];ml.call(o,a=>a.dataset&&a.dataset.qVsAnchor!==void 0).forEach(a=>{delete a.dataset.qVsAnchor});const i=o[l];i!=null&&i.dataset&&(i.dataset.qVsAnchor="")}))};function $e(e,n){return e+n}function Ut(e,n,l,o,i,a,s,c){const m=e===window?document.scrollingElement||document.documentElement:e,v=i?"offsetWidth":"offsetHeight",u={scrollStart:0,scrollViewSize:-s-c,scrollMaxSize:0,offsetStart:-s,offsetEnd:-c};if(i?(e===window?(u.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,u.scrollViewSize+=document.documentElement.clientWidth):(u.scrollStart=m.scrollLeft,u.scrollViewSize+=m.clientWidth),u.scrollMaxSize=m.scrollWidth,a&&(u.scrollStart=(pt?u.scrollMaxSize-u.scrollViewSize:0)-u.scrollStart)):(e===window?(u.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,u.scrollViewSize+=document.documentElement.clientHeight):(u.scrollStart=m.scrollTop,u.scrollViewSize+=m.clientHeight),u.scrollMaxSize=m.scrollHeight),l!==null)for(let p=l.previousElementSibling;p!==null;p=p.previousElementSibling)p.classList.contains("q-virtual-scroll--skip")||(u.offsetStart+=p[v]);if(o!==null)for(let p=o.nextElementSibling;p!==null;p=p.nextElementSibling)p.classList.contains("q-virtual-scroll--skip")||(u.offsetEnd+=p[v]);if(n!==e){const p=m.getBoundingClientRect(),y=n.getBoundingClientRect();i?(u.offsetStart+=y.left-p.left,u.offsetEnd-=y.width):(u.offsetStart+=y.top-p.top,u.offsetEnd-=y.height),e!==window&&(u.offsetStart+=u.scrollStart),u.offsetEnd+=u.scrollMaxSize-u.offsetStart}return u}function vl(e,n,l,o){n==="end"&&(n=(e===window?document.body:e)[l?"scrollWidth":"scrollHeight"]),e===window?l?(o&&(n=(pt?document.body.scrollWidth-document.documentElement.clientWidth:0)-n),window.scrollTo(n,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,n):l?(o&&(n=(pt?e.scrollWidth-e.offsetWidth:0)-n),e.scrollLeft=n):e.scrollTop=n}function tt(e,n,l,o){if(l>=o)return 0;const i=n.length,a=Math.floor(l/me),s=Math.floor((o-1)/me)+1;let c=e.slice(a,s).reduce($e,0);return l%me!==0&&(c-=n.slice(a*me,l).reduce($e,0)),o%me!==0&&o!==i&&(c-=n.slice(o,s*me).reduce($e,0)),c}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 fa({virtualScrollLength:e,getVirtualScrollTarget:n,getVirtualScrollEl:l,virtualScrollItemSizeComputed:o}){const i=t.getCurrentInstance(),{props:a,emit:s,proxy:c}=i,{$q:m}=c;let v,u,p,y=[],g;const S=t.ref(0),P=t.ref(0),k=t.ref({}),z=t.ref(null),T=t.ref(null),b=t.ref(null),h=t.ref({from:0,to:0}),B=t.computed(()=>a.tableColspan!==void 0?a.tableColspan:100);o===void 0&&(o=t.computed(()=>a.virtualScrollItemSize));const F=t.computed(()=>o.value+";"+a.virtualScrollHorizontal),O=t.computed(()=>F.value+";"+a.virtualScrollSliceRatioBefore+";"+a.virtualScrollSliceRatioAfter);t.watch(O,()=>{U()}),t.watch(F,N);function N(){A(u,!0)}function X(d){A(d===void 0?u:d)}function C(d,E){const H=n();if(H==null||H.nodeType===8)return;const K=Ut(H,l(),z.value,T.value,a.virtualScrollHorizontal,m.lang.rtl,a.virtualScrollStickySizeStart,a.virtualScrollStickySizeEnd);p!==K.scrollViewSize&&U(K.scrollViewSize),_(H,K,Math.min(e.value-1,Math.max(0,Number.parseInt(d,10)||0)),0,ca.includes(E)?E:u!==-1&&d>u?"end":"start")}function w(){const d=n();if(d==null||d.nodeType===8)return;const E=Ut(d,l(),z.value,T.value,a.virtualScrollHorizontal,m.lang.rtl,a.virtualScrollStickySizeStart,a.virtualScrollStickySizeEnd),H=e.value-1,K=E.scrollMaxSize-E.offsetStart-E.offsetEnd-P.value;if(v===E.scrollStart)return;if(E.scrollMaxSize<=0){_(d,E,0,0);return}p!==E.scrollViewSize&&U(E.scrollViewSize),q(h.value.from);const I=Math.floor(E.scrollMaxSize-Math.max(E.scrollViewSize,E.offsetEnd)-Math.min(g[H],E.scrollViewSize/2));if(I>0&&Math.ceil(E.scrollStart)>=I){_(d,E,H,E.scrollMaxSize-E.offsetEnd-y.reduce($e,0));return}let $=0,f=E.scrollStart-E.offsetStart,W=f;if(f<=K&&f+E.scrollViewSize>=S.value)f-=S.value,$=h.value.from,W=f;else for(let j=0;f>=y[j]&&$<H;j++)f-=y[j],$+=me;for(;f>0&&$<H;)f-=g[$],f>-E.scrollViewSize?($++,W=f):W=g[$]+f;_(d,E,$,W)}function _(d,E,H,K,I){const $=typeof I=="string"&&I.includes("-force"),f=$?I.replace("-force",""):I,W=f!==void 0?f:"start";let j=Math.max(0,H-k.value[W]),D=j+k.value.total;D>e.value&&(D=e.value,j=Math.max(0,D-k.value.total)),v=E.scrollStart;const oe=j!==h.value.from||D!==h.value.to;if(!oe&&f===void 0){R(H);return}const{activeElement:be}=document,re=b.value;oe&&re!==null&&re!==be&&re.contains(be)&&(re.addEventListener("focusout",V),setTimeout(()=>{re==null||re.removeEventListener("focusout",V)},0)),da(re,H-j);const bt=f!==void 0?g.slice(j,H).reduce($e,0):0;if(oe){const Ce=D>=h.value.from&&j<=h.value.to?h.value.to:D;h.value={from:j,to:Ce},S.value=tt(y,g,0,j),P.value=tt(y,g,D,e.value),requestAnimationFrame(()=>{h.value.to!==D&&v===E.scrollStart&&(h.value={from:h.value.from,to:D},P.value=tt(y,g,D,e.value))})}requestAnimationFrame(()=>{if(v!==E.scrollStart)return;oe&&q(j);const Ce=g.slice(j,H).reduce($e,0),Ee=Ce+E.offsetStart+S.value,yt=Ee+g[H];let nt=Ee+K;if(f!==void 0){const Qt=Ce-bt,lt=E.scrollStart+Qt;nt=!$&&lt<Ee&&yt<lt+E.scrollViewSize?lt:f==="end"?yt-E.scrollViewSize:Ee-(f==="start"?0:Math.round((E.scrollViewSize-g[H])/2))}v=nt,vl(d,nt,a.virtualScrollHorizontal,m.lang.rtl),R(H)})}function q(d){const E=b.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 $=d,f,W;for(let j=0;j<K;){for(f=I(H[j]),j++;j<K&&H[j].classList.contains("q-virtual-scroll--with-prev");)f+=I(H[j]),j++;W=f-g[$],W!==0&&(g[$]+=W,y[Math.floor($/me)]+=W),$++}}}function V(){var d;(d=b.value)==null||d.focus({preventScroll:!0})}function A(d,E){const H=Number(o.value);(E||!Array.isArray(g))&&(g=[]);const K=g.length;g.length=e.value;for(let $=e.value-1;$>=K;$--)g[$]=H;const I=Math.floor((e.value-1)/me);y=[];for(let $=0;$<=I;$++){let f=0;const W=Math.min(($+1)*me,e.value);for(let j=$*me;j<W;j++)f+=g[j];y.push(f)}u=-1,v=void 0,S.value=tt(y,g,0,h.value.from),P.value=tt(y,g,h.value.to,e.value),d>=0?(q(h.value.from),t.nextTick(()=>{C(d)})):Y()}function U(d){if(d===void 0&&typeof window<"u"){const f=n();f!=null&&f.nodeType!==8&&(d=Ut(f,l(),z.value,T.value,a.virtualScrollHorizontal,m.lang.rtl,a.virtualScrollStickySizeStart,a.virtualScrollStickySizeEnd).scrollViewSize)}p=d;const E=Number.parseFloat(a.virtualScrollSliceRatioBefore)||0,H=Number.parseFloat(a.virtualScrollSliceRatioAfter)||0,K=1+E+H,I=d===void 0||d<=0?1:Math.ceil(d/o.value),$=Math.max(1,I,Math.ceil((a.virtualScrollSliceSize>0?a.virtualScrollSliceSize:10)/K));k.value={total:Math.ceil($*K),start:Math.ceil($*E),center:Math.ceil($*(.5+E)),end:Math.ceil($*(1+E)),view:I}}function x(d,E){const H=a.virtualScrollHorizontal?"width":"height",K={["--q-virtual-scroll-item-"+H]:o.value+"px"};return[d==="tbody"?t.h(d,{class:"q-virtual-scroll__padding",key:"before",ref:z},[t.h("tr",[t.h("td",{style:{[H]:`${S.value}px`,...K},colspan:B.value})])]):t.h(d,{class:"q-virtual-scroll__padding",key:"before",ref:z,style:{[H]:`${S.value}px`,...K}}),t.h(d,{class:"q-virtual-scroll__content",key:"content",ref:b,tabindex:-1},E.flat()),d==="tbody"?t.h(d,{class:"q-virtual-scroll__padding",key:"after",ref:T},[t.h("tr",[t.h("td",{style:{[H]:`${P.value}px`,...K},colspan:B.value})])]):t.h(d,{class:"q-virtual-scroll__padding",key:"after",ref:T,style:{[H]:`${P.value}px`,...K}})]}function R(d){u!==d&&(a.onVirtualScroll!==void 0&&s("virtualScroll",{index:d,from:h.value.from,to:h.value.to-1,direction:d<u?"decrease":"increase",ref:c}),u=d)}U();const Y=Vn(w,m.platform.is.ios?120:35);t.onBeforeMount(()=>{U()});let Z=!1;return t.onDeactivated(()=>{Z=!0}),t.onActivated(()=>{if(!Z)return;const d=n();v!==void 0&&d!==void 0&&d!==null&&d.nodeType!==8?vl(d,v,a.virtualScrollHorizontal,m.lang.rtl):C(u)}),t.onBeforeUnmount(()=>{Y.cancel()}),Object.assign(c,{scrollTo:C,reset:N,refresh:X}),{virtualScrollSliceRange:h,virtualScrollSliceSizeComputed:k,setVirtualScrollSize:U,onVirtualScrollEvt:Y,localResetVirtualScroll:A,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 l,o;if(e.constructor===Array){if(l=e.length,l!==n.length)return!1;for(o=l;o--!==0;)if(!ye(e[o],n[o]))return!1;return!0}if(e.constructor===Map){if(e.size!==n.size)return!1;let a=e.entries();for(o=a.next();!o.done;){if(!n.has(o.value[0]))return!1;o=a.next()}for(a=e.entries(),o=a.next();!o.done;){if(!ye(o.value[1],n.get(o.value[0])))return!1;o=a.next()}return!0}if(e.constructor===Set){if(e.size!==n.size)return!1;const a=e.entries();for(o=a.next();!o.done;){if(!n.has(o.value[0]))return!1;o=a.next()}return!0}if(e.buffer!=null&&e.buffer.constructor===ArrayBuffer){if(l=e.length,l!==n.length)return!1;for(o=l;o--!==0;)if(e[o]!==n[o])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(l=i.length,l!==Object.keys(n).filter(a=>n[a]!==void 0).length)return!1;for(o=l;o--!==0;){const a=i[o];if(!ye(e[a],n[a]))return!1}return!0}return e!==e&&n!==n}function hl(e,n,l){if(l<=n)return n;const o=l-n+1;let i=n+(e-n)%o;return i<n&&(i=o+i),i===0?0:i}const pl=e=>["add","add-unique","toggle"].includes(e),ma=".*+?^${}()|[]\\",va=Object.keys(ut);function Kt(e,n){if(typeof e=="function")return e;const l=e!==void 0?e:n;return o=>o!==null&&typeof o=="object"&&l in o?o[l]:o}const ga=ie({name:"QSelect",inheritAttrs:!1,props:{...gl,...Ot,...ut,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:[...Lt,"add","remove","inputValue","keyup","keypress","keydown","popupShow","popupHide","filterAbort"],setup(e,{slots:n,emit:l}){const{proxy:o}=t.getCurrentInstance(),{$q:i}=o,a=t.ref(!1),s=t.ref(!1),c=t.ref(-1),m=t.ref(""),v=t.ref(!1),u=t.ref(!1);let p=null,y=null,g,S,P,k=null,z,T,b,h;const B=t.ref(null),F=t.ref(null),O=t.ref(null),N=t.ref(null),X=t.ref(null),C=Pn(e),w=$n(_l),_=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:A,localResetVirtualScroll:U,padVirtualScroll:x,onVirtualScrollEvt:R,scrollTo:Y,setVirtualScrollSize:Z}=fa({virtualScrollLength:_,getVirtualScrollTarget:za,getVirtualScrollEl:ql,virtualScrollItemSizeComputed:q}),d=Pt(),E=t.computed(()=>{const r=e.mapOptions&&!e.multiple,M=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 L=e.mapOptions&&g!==void 0?g:[],Q=M.map(J=>Ia(J,L));return e.modelValue===null&&r?Q.filter(J=>J!==null):Q}return M}),H=t.computed(()=>{const r={};return va.forEach(M=>{const L=e[M];L!==void 0&&(r[M]=L)}),r}),K=t.computed(()=>e.optionsDark===null?d.isDark.value:e.optionsDark),I=t.computed(()=>Ze(E.value)),$=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])}),f=t.computed(()=>(e.virtualScrollHorizontal?"q-virtual-scroll--horizontal":"")+(e.popupContentClass?" "+e.popupContentClass:"")),W=t.computed(()=>_.value===0),j=t.computed(()=>E.value.map(r=>se.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))),re=t.computed(()=>d.focused.value?e.tabindex:-1),bt=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":`${d.targetUid.value}_lb`};return c.value>=0&&(r["aria-activedescendant"]=`${d.targetUid.value}_${c.value}`),r}),Ce=t.computed(()=>({id:`${d.targetUid.value}_lb`,role:"listbox","aria-multiselectable":e.multiple?"true":"false"})),Ee=t.computed(()=>E.value.map((r,M)=>({index:M,opt:r,html:oe.value(r),selected:!0,removeAtIndex:Oa,toggleOption:qe,tabindex:re.value}))),yt=t.computed(()=>{if(_.value===0)return[];const{from:r,to:M}=V.value;return e.options.slice(r,M).map((L,Q)=>{const J=Oe.value(L)===!0,te=Yt(L),G=r+Q,ne={clickable:!0,active:te,activeClass:lt.value,manualFocus:!0,focused:!1,disable:J,tabindex:-1,dense:e.optionsDense,dark:K.value,role:"option","aria-selected":te?"true":"false",id:`${d.targetUid.value}_${G}`,onClick:()=>{qe(L)}};return J||(c.value===G&&(ne.focused=!0),i.platform.is.desktop&&(ne.onMousemove=()=>{a.value&&Ie(G)})),{index:G,opt:L,html:oe.value(L),label:se.value(L),selected:ne.active,focused:ne.focused,toggleOption:qe,setOptionIndex:Ie,itemProps:ne}})}),nt=t.computed(()=>e.dropdownIcon!==void 0?e.dropdownIcon:i.iconSet.arrow.dropdown),Qt=t.computed(()=>!e.optionsCover&&!e.outlined&&!e.standout&&!e.borderless&&!e.rounded),lt=t.computed(()=>e.optionsSelectedClass!==void 0?e.optionsSelectedClass:e.color!==void 0?`text-${e.color}`:""),pe=t.computed(()=>Kt(e.optionValue,"value")),se=t.computed(()=>Kt(e.optionLabel,"label")),Oe=t.computed(()=>Kt(e.optionDisable,"disable")),wt=t.computed(()=>E.value.map(pe.value)),$a=t.computed(()=>{const r={onInput:_l,onChange:w,onKeydown:El,onKeyup:xl,onKeypress:Cl,onFocus:kl,onClick(M){S&&he(M)}};return r.onCompositionstart=r.onCompositionupdate=r.onCompositionend=w,r});t.watch(E,r=>{g=r,e.useInput&&e.fillInput&&!e.multiple&&!d.innerLoading.value&&(!s.value&&!a.value||!I.value)&&(P||He(),(s.value||a.value)&&ze(""))},{immediate:!0}),t.watch(()=>e.fillInput,He),t.watch(a,Zt),t.watch(_,Ja);function yl(r){return e.emitValue?pe.value(r):r}function Xt(r){if(r!==-1&&r<E.value.length)if(e.multiple){const M=[...e.modelValue];l("remove",{index:r,value:M.splice(r,1)[0]}),l("update:modelValue",M)}else l("update:modelValue",null)}function Oa(r){Xt(r),d.focus()}function wl(r,M){const L=yl(r);if(!e.multiple){e.fillInput&&ot(se.value(r),!0,!0),l("update:modelValue",L);return}if(E.value.length===0){l("add",{index:0,value:L}),l("update:modelValue",e.multiple?[L]:L);return}if(M&&Yt(r)||e.maxValues!==void 0&&e.modelValue.length>=e.maxValues)return;const Q=[...e.modelValue];l("add",{index:Q.length,value:L}),Q.push(L),l("update:modelValue",Q)}function qe(r,M){var te;if(!d.editable.value||r===void 0||Oe.value(r)===!0)return;const L=pe.value(r);if(!e.multiple){M||(ot(e.fillInput?se.value(r):"",!0,!0),Ve()),(te=F.value)==null||te.focus(),(E.value.length===0||!ye(pe.value(E.value[0]),L))&&l("update:modelValue",e.emitValue?L:r);return}if((!S||v.value)&&d.focus(),kl(),E.value.length===0){const G=e.emitValue?L:r;l("add",{index:0,value:G}),l("update:modelValue",e.multiple?[G]:G);return}const Q=[...e.modelValue],J=wt.value.findIndex(G=>ye(G,L));if(J!==-1)l("remove",{index:J,value:Q.splice(J,1)[0]});else{if(e.maxValues!==void 0&&Q.length>=e.maxValues)return;const G=e.emitValue?L:r;l("add",{index:Q.length,value:G}),Q.push(G)}l("update:modelValue",Q)}function Ie(r){if(!i.platform.is.desktop)return;const M=r!==-1&&r<_.value?r:-1;c.value!==M&&(c.value=M)}function kt(r=1,M){if(a.value){let L=c.value;do L=hl(L+r,-1,_.value-1);while(L!==-1&&L!==c.value&&Oe.value(e.options[L])===!0);c.value!==L&&(Ie(L),Y(L),!M&&e.useInput&&e.fillInput&&St(L>=0?se.value(e.options[L]):z,!0))}}function Ia(r,M){const L=Q=>ye(pe.value(Q),r);return e.options.find(L)||M.find(L)||r}function Yt(r){const M=pe.value(r);return wt.value.find(L=>ye(L,M))!==void 0}function kl(r){e.useInput&&F.value!==null&&(r===void 0||F.value===r.target&&r.target.value===j.value)&&F.value.select()}function Sl(r){ke(r,27)&&a.value&&(he(r),Ve(),He()),l("keyup",r)}function xl(r){const{value:M}=r.target;if(r.keyCode!==void 0){Sl(r);return}if(r.target.value="",p!==null&&(clearTimeout(p),p=null),y!==null&&(clearTimeout(y),y=null),He(),typeof M=="string"&&M.length!==0){const L=M.toLocaleLowerCase(),Q=te=>{const G=e.options.find(ne=>String(te.value(ne)).toLocaleLowerCase()===L);return G===void 0?!1:(E.value.includes(G)?Ve():qe(G),!0)},J=te=>{!Q(pe)&&!te&&!Q(se)&&ze(M,!0,()=>J(!0))};J()}else d.clearValue(r)}function Cl(r){l("keypress",r)}function El(r){if(l("keydown",r),Bt(r))return;const M=m.value.length!==0&&(e.newValueMode!==void 0||e.onNewValue!==void 0),L=!r.shiftKey&&!e.disableTabSelection&&!e.multiple&&(c.value!==-1||M);if(r.keyCode===27){de(r);return}if(r.keyCode===9&&!L){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){ee(r),Ne();return}if(r.keyCode===8&&(e.useChips||e.clearable)&&!e.hideSelected&&m.value.length===0){e.multiple&&Array.isArray(e.modelValue)?Xt(e.modelValue.length-1):!e.multiple&&e.modelValue!==null&&l("update:modelValue",null);return}(r.keyCode===35||r.keyCode===36)&&(typeof m.value!="string"||m.value.length===0)&&(ee(r),c.value=-1,kt(r.keyCode===36?1:-1,e.multiple)),(r.keyCode===33||r.keyCode===34)&&A.value!==void 0&&(ee(r),c.value=Math.max(-1,Math.min(_.value,c.value+(r.keyCode===33?-1:1)*A.value.view)),kt(r.keyCode===33?1:-1,e.multiple)),(r.keyCode===38||r.keyCode===40)&&(ee(r),kt(r.keyCode===38?-1:1,e.multiple));const Q=_.value;if((b===void 0||h<Date.now())&&(b=""),Q>0&&!e.useInput&&r.key!==void 0&&r.key.length===1&&!r.altKey&&!r.ctrlKey&&!r.metaKey&&(r.keyCode!==32||b.length!==0)){a.value||Ne(r);const J=r.key.toLocaleLowerCase(),te=b.length===1&&b[0]===J;h=Date.now()+1500,te||(ee(r),b+=J);const G=new RegExp("^"+[...b].map(We=>ma.includes(We)?"\\"+We:We).join(".*"),"i");let ne=c.value;if(te||ne<0||!G.test(se.value(e.options[ne])))do ne=hl(ne+1,-1,Q-1);while(ne!==c.value&&(Oe.value(e.options[ne])===!0||!G.test(se.value(e.options[ne]))));c.value!==ne&&t.nextTick(()=>{Ie(ne),Y(ne),ne>=0&&e.useInput&&e.fillInput&&St(se.value(e.options[ne]),!0)});return}if(!(r.keyCode!==13&&(r.keyCode!==32||e.useInput||b!=="")&&(r.keyCode!==9||!L))){if(r.keyCode!==9&&ee(r),c.value!==-1&&c.value<Q){qe(e.options[c.value]);return}if(M){const J=(te,G)=>{var We;if(G){if(!pl(G))return}else G=e.newValueMode;if(ot("",!e.multiple,!0),te==null)return;(G==="toggle"?qe:wl)(te,G==="add-unique"),e.multiple||((We=F.value)==null||We.focus(),Ve())};if(e.onNewValue!==void 0?l("newValue",m.value,J):J(m.value),!e.multiple)return}a.value?De():d.innerLoading.value||Ne()}}function ql(){return S?X.value:O.value!==null&&O.value.contentEl!==null?O.value.contentEl:void 0}function za(){return ql()}function Da(){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,M)=>t.h(qi,{key:"option-"+M,removable:d.editable.value&&Oe.value(r.opt)!==!0,dense:!0,textColor:e.color,tabindex:re.value,onRemove(){r.removeAtIndex(M)}},()=>t.h("span",{class:"ellipsis",[r.html?"innerHTML":"textContent"]:se.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:m.value}):void 0;const r=n.option!==void 0?n.option:L=>t.h(Vi,{key:L.index,...L.itemProps},()=>t.h(_i,()=>t.h(Bi,()=>t.h("span",{[L.html?"innerHTML":"textContent"]:L.label}))));let M=x("div",yt.value.map(r));return n["before-options"]!==void 0&&(M=[n["before-options"](),...M].flat()),we(n["after-options"],M)}function Na(r,M){const L=M?{...bt.value,...d.splitAttrs.attributes.value}:void 0,Q={ref:M?F:void 0,key:"i_t",class:$.value,style:e.inputStyle,value:m.value!==void 0?m.value:"",type:"search",...L,id:M?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,...$a.value};return!r&&S&&(Array.isArray(Q.class)?Q.class=[...Q.class,"no-pointer-events"]:Q.class+=" no-pointer-events"),t.h("input",Q)}function _l(r){var M;p!==null&&(clearTimeout(p),p=null),y!==null&&(clearTimeout(y),y=null),!((M=r==null?void 0:r.target)!=null&&M.qComposing)&&(St(r.target.value||""),P=!0,z=m.value,!d.focused.value&&(!S||v.value)&&d.focus(),e.onFilter!==void 0&&(p=setTimeout(()=>{p=null,ze(m.value)},e.inputDebounce)))}function St(r,M){m.value!==r&&(y!==null&&(clearTimeout(y),y=null),m.value=r,M||e.inputDebounce===0||e.inputDebounce==="0"?l("inputValue",r):y=setTimeout(()=>{y=null,l("inputValue",r)},e.inputDebounce))}function ot(r,M,L){P=L!==!0,e.useInput&&(St(r,!0),(M||P)&&(z=r),M||ze(r))}function ze(r,M,L){if(e.onFilter===void 0||!M&&!d.focused.value)return;d.innerLoading.value?l("filterAbort"):(d.innerLoading.value=!0,u.value=!0),r!==""&&!e.multiple&&E.value.length!==0&&!P&&r===se.value(E.value[0])&&(r="");const Q=setTimeout(()=>{a.value&&(a.value=!1)},10);k!==null&&clearTimeout(k),k=Q,l("filter",r,(J,te)=>{(M||d.focused.value)&&k===Q&&(clearTimeout(k),typeof J=="function"&&J(),u.value=!1,t.nextTick(()=>{d.innerLoading.value=!1,d.editable.value&&(M?a.value&&Ve():a.value?Zt(!0):a.value=!0),typeof te=="function"&&t.nextTick(()=>{te(o)}),typeof L=="function"&&t.nextTick(()=>{L(o)})}))},()=>{d.focused.value&&k===Q&&(clearTimeout(k),d.innerLoading.value=!1,u.value=!1),a.value&&(a.value=!1)})}function Ha(){return t.h(oa,{ref:O,class:f.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:Qt.value,transitionShow:e.transitionShow,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,separateClosePopup:!0,...Ce.value,onScrollPassive:R,onBeforeShow:Ml,onBeforeHide:Wa,onShow:ja},Vl)}function Wa(r){Rl(r),De()}function ja(){Z()}function Ua(r){var M;he(r),(M=F.value)==null||M.focus(),v.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function Ka(r){he(r),t.nextTick(()=>{v.value=!1})}function Qa(){const r=[t.h(Ci,{class:`col-auto ${d.fieldClass.value}`,...H.value,for:d.targetUid.value,dark:K.value,square:!0,loading:u.value,itemAligned:!1,filled:!0,stackLabel:m.value.length!==0,...d.splitAttrs.listeners.value,onFocus:Ua,onBlur:Ka},{...n,rawControl:()=>d.getControl(!0),before:void 0,after:void 0})];return a.value&&r.push(t.h("div",{ref:X,class:f.value+" scroll",style:e.popupContentStyle,...Ce.value,onClick:de,onScrollPassive:R},Vl())),t.h(ua,{ref:N,modelValue:s.value,position:e.useInput?"top":void 0,transitionShow:T,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,noRouteDismiss:e.popupNoRouteDismiss,onBeforeShow:Ml,onBeforeHide:Xa,onHide:Ya,onShow:Za},()=>t.h("div",{class:"q-select__dialog"+(K.value?" q-select__dialog--dark q-dark":"")+(v.value?" q-select__dialog--focused":"")},r))}function Xa(r){Rl(r),N.value!==null&&N.value.__updateRefocusTarget(d.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),d.focused.value=!1}function Ya(r){Ve(),d.focused.value||l("blur",r),He()}function Za(){const r=document.activeElement;(r===null||r.id!==d.targetUid.value)&&F.value!==null&&F.value!==r&&F.value.focus(),Z()}function De(){s.value||(c.value=-1,a.value&&(a.value=!1),d.focused.value||(k!==null&&(clearTimeout(k),k=null),d.innerLoading.value&&(l("filterAbort"),d.innerLoading.value=!1,u.value=!1)))}function Ne(r){d.editable.value&&(S?(d.onControlFocusin(r),s.value=!0,t.nextTick(()=>{d.focus()})):d.focus(),e.onFilter!==void 0?ze(m.value):(!W.value||n["no-option"]!==void 0)&&(a.value=!0))}function Ve(){s.value=!1,De()}function He(){e.useInput&&ot(!e.multiple&&e.fillInput&&E.value.length!==0&&se.value(E.value[0])||"",!0,!0)}function Zt(r){let M=-1;if(r){if(E.value.length!==0){const L=pe.value(E.value[0]);M=e.options.findIndex(Q=>ye(pe.value(Q),L))}U(M)}Ie(M)}function Ja(r,M){a.value&&!d.innerLoading.value&&(U(-1,!0),t.nextTick(()=>{a.value&&!d.innerLoading.value&&(r>M?U():Zt(!0))}))}function Bl(){var r;s.value||(r=O.value)==null||r.updatePosition()}function Ml(r){r!==void 0&&he(r),l("popupShow",r),d.hasPopupOpen=!0,d.onControlFocusin(r)}function Rl(r){r!==void 0&&he(r),l("popupHide",r),d.hasPopupOpen=!1,d.onControlFocusout(r)}function Tl(){S=!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),T=i.platform.is.ios&&S&&e.useInput?"fade":e.transitionShow}return t.onBeforeUpdate(Tl),t.onUpdated(Bl),Tl(),t.onBeforeUnmount(()=>{p!==null&&clearTimeout(p),y!==null&&clearTimeout(y)}),Object.assign(o,{showPopup:Ne,hidePopup:Ve,removeAtIndex:Xt,add:wl,toggleOption:qe,getOptionIndex:()=>c.value,setOptionIndex:Ie,moveOptionSelection:kt,filter:ze,updateMenuPosition:Bl,updateInputValue:ot,isOptionSelected:Yt,getEmittingOptionValue:yl,isOptionDisabled:(...r)=>Oe.value(...r)===!0,getOptionValue:(...r)=>pe.value(...r),getOptionLabel:(...r)=>se.value(...r)}),Object.assign(d,{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:B,targetRef:F,hasValue:I,showPopup:Ne,floatingLabel:t.computed(()=>!e.hideSelected&&I.value||typeof m.value=="number"||m.value.length!==0||Ze(e.displayValue)),getControlChild:()=>{if(d.editable.value&&(s.value||!W.value||n["no-option"]!==void 0))return S?Qa():Ha();d.hasPopupOpen&&(d.hasPopupOpen=!1)},controlEvents:{onFocusin(r){d.onControlFocusin(r)},onFocusout(r){d.onControlFocusout(r,()=>{He(),De()})},onClick(r){var M;if(de(r),!S&&a.value){De(),(M=F.value)==null||M.focus();return}Ne(r)}},getControl:r=>{const M=Da(),L=r===!0||!s.value||!S;if(e.useInput)M.push(Na(r,L));else if(d.editable.value){const J=L?bt.value:void 0;M.push(t.h("input",{ref:L?F:void 0,key:"d_t",class:"q-select__focus-target",id:L?d.targetUid.value:void 0,value:D.value,readonly:!0,"data-autofocus":r===!0||e.autofocus||void 0,...J,onKeydown:El,onKeyup:Sl,onKeypress:Cl})),L&&typeof e.autocomplete=="string"&&e.autocomplete.length!==0&&M.push(t.h("input",{class:"q-select__autocomplete-input",autocomplete:e.autocomplete,tabindex:-1,onKeyup:xl}))}if(C.value!==void 0&&!e.disable&&wt.value.length!==0){const J=wt.value.map(te=>t.h("option",{value:te,selected:!0}));M.push(t.h("select",{class:"hidden",name:C.value,multiple:e.multiple},J))}const Q=e.useInput||!L?void 0:d.splitAttrs.attributes.value;return t.h("div",{class:"q-field__native row items-center",...Q,...d.splitAttrs.listeners.value},M)},getInnerAppend:()=>!e.loading&&!u.value&&!e.hideDropdownIcon?[t.h(ge,{class:"q-select__dropdown-icon"+(a.value?" rotate-180":""),name:nt.value})]:null}),$t(d)}});function bl(){return"widget_"+Date.now()+"_"+Math.random().toString(36).substr(2,9)}const 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:"property-section"},Fa={key:1,class:"empty-property"},Aa=It(t.defineComponent({__name:"UDesigner",props:{modelValue:{default:()=>({formConfig:{labelWidth:100,labelPosition:"left"},widgetList:[]})},components:{default:()=>[]}},emits:["update:modelValue"],setup(e,{expose:n,emit:l}){const o=e,i=l,a=t.reactive({formConfig:{labelWidth:100,labelPosition:"left"},widgetList:[],selectedWidget:null,selectedWidgetConfig:null}),s=T=>o.components.find(b=>b.type===T),c=t.computed(()=>o.components);(()=>{o.modelValue&&(a.formConfig=o.modelValue.formConfig||{labelWidth:100,labelPosition:"left"},a.widgetList=o.modelValue.widgetList||[])})();const v=()=>{const T={formConfig:a.formConfig,widgetList:a.widgetList};i("update:modelValue",T)},u=T=>{const b=s(T);if(!b)return;const h=T.toLowerCase()+"_"+Date.now(),B={id:bl(),type:T,field:h,label:b.label,props:{...b.defaultProps}};a.widgetList.push(B),p(B),v()},p=T=>{a.selectedWidget=T,a.selectedWidgetConfig=s(T.type)||null},y=(T,b)=>{var h;a.widgetList.splice(b,1),((h=a.selectedWidget)==null?void 0:h.id)===T.id&&(a.selectedWidget=null,a.selectedWidgetConfig=null),v()},g=(T,b)=>{a.selectedWidget&&(T==="label"?a.selectedWidget.label=b:T==="field"?a.selectedWidget.field=b:(a.selectedWidget.props=a.selectedWidget.props||{},a.selectedWidget.props[T]=b),v())},S=t.computed(()=>a.selectedWidgetConfig?a.selectedWidgetConfig.propertyConfig:[]),P=T=>{var b;if(a.selectedWidget)return T==="label"?a.selectedWidget.label:T==="field"?a.selectedWidget.field:(b=a.selectedWidget.props)==null?void 0:b[T]};return n({getFormJson:()=>({formConfig:a.formConfig,widgetList:a.widgetList}),setFormJson:T=>{a.formConfig=T.formConfig||{labelWidth:100,labelPosition:"left"},a.widgetList=T.widgetList||[],a.selectedWidget=null,a.selectedWidgetConfig=null}}),(T,b)=>(t.openBlock(),t.createElementBlock("div",ha,[b[8]||(b[8]=t.createElementVNode("div",{class:"u-designer-header"},[t.createElementVNode("div",{class:"header-title"},"UForm 表单设计器")],-1)),t.createElementVNode("div",pa,[t.createElementVNode("div",ba,[b[4]||(b[4]=t.createElementVNode("div",{class:"panel-title"},"组件列表",-1)),t.createElementVNode("div",ya,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.value,h=>(t.openBlock(),t.createElementBlock("div",{key:h.type,class:"component-item",onClick:B=>u(h.type)},[t.createVNode(ge,{name:h.icon,size:"20px"},null,8,["name"]),t.createElementVNode("span",null,t.toDisplayString(h.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(a.widgetList,(h,B)=>{var F;return t.openBlock(),t.createElementBlock("div",{key:h.id,class:t.normalizeClass(["preview-widget",{selected:((F=a.selectedWidget)==null?void 0:F.id)===h.id}]),onClick:O=>p(h)},[t.createElementVNode("div",Ea,[t.createElementVNode("div",qa,t.toDisplayString(h.label||"未设置标签"),1),(t.openBlock(),t.createBlock(t.resolveDynamicComponent(h.type),t.mergeProps({"model-value":null},{ref_for:!0},h.props,{disable:""}),null,16))]),t.createElementVNode("div",Va,[t.createVNode(yn,{flat:"",round:"",dense:"",icon:"delete",color:"negative",size:"sm",onClick:t.withModifiers(O=>y(h,B),["stop"])},null,8,["onClick"])])],10,Ca)}),128)),a.widgetList.length===0?(t.openBlock(),t.createElementBlock("div",_a," 点击左侧组件添加到表单 ")):t.createCommentVNode("",!0)])])]),t.createElementVNode("div",Ba,[b[7]||(b[7]=t.createElementVNode("div",{class:"panel-title"},"属性配置",-1)),a.selectedWidget?(t.openBlock(),t.createElementBlock("div",Ma,[t.createElementVNode("div",Ra,[b[5]||(b[5]=t.createElementVNode("div",{class:"section-title"},"基础信息",-1)),t.createVNode(Je,{modelValue:a.selectedWidget.field,"onUpdate:modelValue":[b[0]||(b[0]=h=>a.selectedWidget.field=h),b[1]||(b[1]=h=>g("field",h))],label:"字段名",dense:"",outlined:""},null,8,["modelValue"]),t.createVNode(Je,{modelValue:a.selectedWidget.label,"onUpdate:modelValue":[b[2]||(b[2]=h=>a.selectedWidget.label=h),b[3]||(b[3]=h=>g("label",h))],label:"标签",dense:"",outlined:"",class:"q-mt-sm"},null,8,["modelValue"])]),t.createElementVNode("div",Ta,[b[6]||(b[6]=t.createElementVNode("div",{class:"section-title"},"组件属性",-1)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(S.value,h=>(t.openBlock(),t.createElementBlock("div",{key:h.name,class:"property-item"},[h.type==="string"?(t.openBlock(),t.createBlock(Je,{key:0,"model-value":P(h.name),label:h.label,dense:"",outlined:"","onUpdate:modelValue":B=>g(h.name,B)},null,8,["model-value","label","onUpdate:modelValue"])):h.type==="number"?(t.openBlock(),t.createBlock(Je,{key:1,"model-value":P(h.name),label:h.label,type:"number",dense:"",outlined:"","onUpdate:modelValue":B=>g(h.name,B)},null,8,["model-value","label","onUpdate:modelValue"])):h.type==="boolean"?(t.openBlock(),t.createBlock(xi,{key:2,"model-value":P(h.name),label:h.label,"onUpdate:modelValue":B=>g(h.name,B)},null,8,["model-value","label","onUpdate:modelValue"])):h.type==="select"?(t.openBlock(),t.createBlock(ga,{key:3,"model-value":P(h.name),options:h.options||[],label:h.label,dense:"",outlined:"","emit-value":"","map-options":"","onUpdate:modelValue":B=>g(h.name,B)},null,8,["model-value","options","label","onUpdate:modelValue"])):t.createCommentVNode("",!0)]))),128))])])):(t.openBlock(),t.createElementBlock("div",Fa," 请选择左侧组件进行配置 "))])])]))}}),[["__scopeId","data-v-788c0eff"]]),La={class:"u-form-render"},Pa=It(t.defineComponent({__name:"URender",props:{formJson:{default:()=>({formConfig:{labelWidth:100,labelPosition:"left"},widgetList:[]})},formData:{default:()=>({})},optionData:{default:()=>({})}},setup(e,{expose:n}){const l=e,o=t.reactive({formData:{},widgetList:[],formConfig:{labelWidth:100,labelPosition:"left"}}),i=()=>{l.formJson&&(o.formConfig=l.formJson.formConfig||{labelWidth:100,labelPosition:"left"},o.widgetList=l.formJson.widgetList||[]),o.formData={...l.formData}};t.watch(()=>l.formJson,()=>{i()},{immediate:!0,deep:!0}),t.watch(()=>l.formData,m=>{o.formData={...m}},{immediate:!0,deep:!0});const a=t.computed(()=>o.formConfig.labelPosition==="top"?"flex-direction: column":""),s=t.computed(()=>o.formConfig.labelPosition==="left"?`width: ${o.formConfig.labelWidth}px`:""),c=m=>{const v={...m.props};return v.options&&Array.isArray(v.options)&&(v.options=v.options.map(u=>typeof u=="object"&&u.label!==void 0&&u.value!==void 0?u:{label:u,value:u})),v};return n({getFormData:()=>Promise.resolve(o.formData),setFormData:m=>{o.formData={...m}},getFormJson:()=>({formConfig:o.formConfig,widgetList:o.widgetList}),setFormJson:m=>{o.formConfig=m.formConfig||{labelWidth:100,labelPosition:"left"},o.widgetList=m.widgetList||[]}}),(m,v)=>(t.openBlock(),t.createElementBlock("div",La,[t.createElementVNode("div",{class:"u-form-content",style:t.normalizeStyle(a.value)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.widgetList,u=>(t.openBlock(),t.createElementBlock("div",{key:u.id,class:"u-form-item"},[u.label?(t.openBlock(),t.createElementBlock("div",{key:0,class:"u-form-label",style:t.normalizeStyle(s.value)},t.toDisplayString(u.label),5)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["u-form-field",{"q-mt-sm":o.formConfig.labelPosition==="top"}])},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(u.type),t.mergeProps({modelValue:o.formData[u.field],"onUpdate:modelValue":p=>o.formData[u.field]=p},{ref_for:!0},c(u)),null,16,["modelValue","onUpdate:modelValue"]))],2)]))),128))],4)]))}}),[["__scopeId","data-v-da024573"]]);ce.LayoutOne=mo,ce.UDesigner=Aa,ce.UInput=hi,ce.URender=Pa,ce.generateId=bl,Object.defineProperty(ce,Symbol.toStringTag,{value:"Module"})});
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"})});