@validol4ik/uikit 0.2.17 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ "use strict";const t=require("vue"),Hl={PRIMARY:"primary",INFO:"info"},he={SM:"sm",MD:"md",LG:"lg"},Hn={[he.SM]:"3px 9px",[he.MD]:"5px 12px",[he.LG]:"9px 20px"},Mt={xs:18,sm:24,md:32,lg:38,xl:46},gt={size:String};function pt(e,l=Mt){return t.computed(()=>e.size!==void 0?{fontSize:e.size in l?`${l[e.size]}px`:e.size}:null)}function Ht(e,l,n,o){return Object.defineProperty(e,l,{get:n,set:o,enumerable:!0}),e}function ae(e){return t.markRaw(t.defineComponent(e))}function Dn(e){return t.markRaw(e)}function me(e,l){return e!==void 0&&e()||l}function jn(e,l){if(e!==void 0){const n=e();if(n!=null)return n.slice()}return l}function Ce(e,l){return e!==void 0?l.concat(e()):l}function Nn(e,l){return e===void 0?l:l!==void 0?l.concat(e()):e()}function Wn(e,l,n,o,i,a){l.key=o+i;const r=t.h(e,l,n);return i===!0?t.withDirectives(r,a()):r}const ul="0 0 24 24",al=e=>e,xt=e=>`ionicons ${e}`,Dl={"mdi-":e=>`mdi ${e}`,"icon-":al,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":xt,"ion-ios":xt,"ion-logo":xt,"iconfont ":al,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`},jl={o_:"-outlined",r_:"-round",s_:"-sharp"},Nl={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},Kn=new RegExp("^("+Object.keys(Dl).join("|")+")"),Un=new RegExp("^("+Object.keys(jl).join("|")+")"),rl=new RegExp("^("+Object.keys(Nl).join("|")+")"),Qn=/^[Mm]\s?[-+]?\.?\d/,Xn=/^img:/,Yn=/^svguse:/,Gn=/^ion-/,Zn=/^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,ge=ae({name:"QIcon",props:{...gt,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:l}){const{proxy:{$q:n}}=t.getCurrentInstance(),o=pt(e),i=t.computed(()=>"q-icon"+(e.left===!0?" on-left":"")+(e.right===!0?" on-right":"")+(e.color!==void 0?` text-${e.color}`:"")),a=t.computed(()=>{let r,s=e.name;if(s==="none"||!s)return{none:!0};if(n.iconMapFn!==null){const c=n.iconMapFn(s);if(c!==void 0)if(c.icon!==void 0){if(s=c.icon,s==="none"||!s)return{none:!0}}else return{cls:c.cls,content:c.content!==void 0?c.content:" "}}if(Qn.test(s)===!0){const[c,b=ul]=s.split("|");return{svg:!0,viewBox:b,nodes:c.split("&&").map(v=>{const[d,m,x]=v.split("@@");return t.h("path",{style:m,d,transform:x})})}}if(Xn.test(s)===!0)return{img:!0,src:s.substring(4)};if(Yn.test(s)===!0){const[c,b=ul]=s.split("|");return{svguse:!0,src:c.substring(7),viewBox:b}}let h=" ";const p=s.match(Kn);if(p!==null)r=Dl[p[1]](s);else if(Zn.test(s)===!0)r=s;else if(Gn.test(s)===!0)r=`ionicons ion-${n.platform.is.ios===!0?"ios":"md"}${s.substring(3)}`;else if(rl.test(s)===!0){r="notranslate material-symbols";const c=s.match(rl);c!==null&&(s=s.substring(6),r+=Nl[c[1]]),h=s}else{r="notranslate material-icons";const c=s.match(Un);c!==null&&(s=s.substring(2),r+=jl[c[1]]),h=s}return{cls:r,content:h}});return()=>{const r={class:i.value,style:o.value,"aria-hidden":"true",role:"presentation"};return a.value.none===!0?t.h(e.tag,r,me(l.default)):a.value.img===!0?t.h(e.tag,r,Ce(l.default,[t.h("img",{src:a.value.src})])):a.value.svg===!0?t.h(e.tag,r,Ce(l.default,[t.h("svg",{viewBox:a.value.viewBox||"0 0 24 24"},a.value.nodes)])):a.value.svguse===!0?t.h(e.tag,r,Ce(l.default,[t.h("svg",{viewBox:a.value.viewBox},[t.h("use",{"xlink:href":a.value.src})])])):(a.value.cls!==void 0&&(r.class+=" "+a.value.cls),t.h(e.tag,r,Ce(l.default,[a.value.content])))}}}),Jn={size:{type:[String,Number],default:"1em"},color:String};function eo(e){return{cSize:t.computed(()=>e.size in Mt?`${Mt[e.size]}px`:e.size),classes:t.computed(()=>"q-spinner"+(e.color?` text-${e.color}`:""))}}const Wl=ae({name:"QSpinner",props:{...Jn,thickness:{type:Number,default:5}},setup(e){const{cSize:l,classes:n}=eo(e);return()=>t.h("svg",{class:n.value+" q-spinner-mat",width:l.value,height:l.value,viewBox:"25 25 50 50"},[t.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":e.thickness,"stroke-miterlimit":"10"})])}});function Lt(e,l){const n=e.style;for(const o in l)n[o]=l[o]}function to(e){if(e==null)return;if(typeof e=="string")try{return document.querySelector(e)||void 0}catch{return}const l=t.unref(e);if(l)return l.$el||l}function Kl(e,l){if(e==null||e.contains(l)===!0)return!0;for(let n=e.nextElementSibling;n!==null;n=n.nextElementSibling)if(n.contains(l))return!0;return!1}const ne={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const e=Object.defineProperty({},"passive",{get(){Object.assign(ne,{hasPassive:!0,passive:{passive:!0},notPassive:{passive:!1},passiveCapture:{passive:!0,capture:!0},notPassiveCapture:{passive:!1,capture:!0}})}});window.addEventListener("qtest",null,e),window.removeEventListener("qtest",null,e)}catch{}function lo(){}function Ul(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 no(e){if(e.path)return e.path;if(e.composedPath)return e.composedPath();const l=[];let n=e.target;for(;n;){if(l.push(n),n.tagName==="HTML")return l.push(document),l.push(window),l;n=n.parentElement}}function pe(e){e.stopPropagation()}function ce(e){e.cancelable!==!1&&e.preventDefault()}function J(e){e.cancelable!==!1&&e.preventDefault(),e.stopPropagation()}function At(e,l,n){const o=`__q_${l}_evt`;e[o]=e[o]!==void 0?e[o].concat(n):n,n.forEach(i=>{i[0].addEventListener(i[1],e[i[2]],ne[i[3]])})}function Ql(e,l){const n=`__q_${l}_evt`;e[n]!==void 0&&(e[n].forEach(o=>{o[0].removeEventListener(o[1],e[o[2]],ne[o[3]])}),e[n]=void 0)}function Xl(e){return e!==Object(e)||e.isComposing===!0||e.qKeyEvent===!0}function Ve(e,l){return Xl(e)===!0?!1:[].concat(l).includes(e.keyCode)}function oo(e,l=250){let n=!1,o;return function(){return n===!1&&(n=!0,setTimeout(()=>{n=!1},l),o=e.apply(this,arguments)),o}}function sl(e,l,n,o){n.modifiers.stop===!0&&pe(e);const i=n.modifiers.color;let a=n.modifiers.center;a=a===!0||o===!0;const r=document.createElement("span"),s=document.createElement("span"),h=Ul(e),{left:p,top:c,width:b,height:v}=l.getBoundingClientRect(),d=Math.sqrt(b*b+v*v),m=d/2,x=`${(b-d)/2}px`,g=a?x:`${h.left-p-m}px`,A=`${(v-d)/2}px`,V=a?A:`${h.top-c-m}px`;s.className="q-ripple__inner",Lt(s,{height:`${d}px`,width:`${d}px`,transform:`translate3d(${g},${V},0) scale3d(.2,.2,1)`,opacity:0}),r.className=`q-ripple${i?" text-"+i:""}`,r.setAttribute("dir","ltr"),r.appendChild(s),l.appendChild(r);const S=()=>{r.remove(),clearTimeout(M)};n.abort.push(S);let M=setTimeout(()=>{s.classList.add("q-ripple__inner--enter"),s.style.transform=`translate3d(${x},${A},0) scale3d(1,1,1)`,s.style.opacity=.2,M=setTimeout(()=>{s.classList.remove("q-ripple__inner--enter"),s.classList.add("q-ripple__inner--leave"),s.style.opacity=0,M=setTimeout(()=>{r.remove(),n.abort.splice(n.abort.indexOf(S),1)},275)},250)},50)}function cl(e,{modifiers:l,value:n,arg:o}){const i=Object.assign({},e.cfg.ripple,l,n);e.modifiers={early:i.early===!0,stop:i.stop===!0,center:i.center===!0,color:i.color||o,keyCodes:[].concat(i.keyCodes||13)}}const Yl=Dn({name:"ripple",beforeMount(e,l){const n=l.instance.$.appContext.config.globalProperties.$q.config||{};if(n.ripple===!1)return;const o={cfg:n,enabled:l.value!==!1,modifiers:{},abort:[],start(i){o.enabled===!0&&i.qSkipRipple!==!0&&i.type===(o.modifiers.early===!0?"pointerdown":"click")&&sl(i,e,o,i.qKeyEvent===!0)},keystart:oo(i=>{o.enabled===!0&&i.qSkipRipple!==!0&&Ve(i,o.modifiers.keyCodes)===!0&&i.type===`key${o.modifiers.early===!0?"down":"up"}`&&sl(i,e,o,!0)},300)};cl(o,l),e.__qripple=o,At(o,"main",[[e,"pointerdown","start","passive"],[e,"click","start","passive"],[e,"keydown","keystart","passive"],[e,"keyup","keystart","passive"]])},updated(e,l){if(l.oldValue!==l.value){const n=e.__qripple;n!==void 0&&(n.enabled=l.value!==!1,n.enabled===!0&&Object(l.value)===l.value&&cl(n,l))}},beforeUnmount(e){const l=e.__qripple;l!==void 0&&(l.abort.forEach(n=>{n()}),Ql(l,"main"),delete e._qripple)}}),Gl={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},io=Object.keys(Gl),uo={align:{type:String,validator:e=>io.includes(e)}};function ao(e){return t.computed(()=>{const l=e.align===void 0?e.vertical===!0?"stretch":"left":e.align;return`${e.vertical===!0?"items":"justify"}-${Gl[l]}`})}function Ct(e){if(Object(e.$parent)===e.$parent)return e.$parent;let{parent:l}=e.$;for(;Object(l)===l;){if(Object(l.proxy)===l.proxy)return l.proxy;l=l.parent}}function Zl(e){return e.appContext.config.globalProperties.$router!==void 0}function Jl(e){return e.isUnmounted===!0||e.isDeactivated===!0}function dl(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function fl(e,l){return(e.aliasOf||e)===(l.aliasOf||l)}function ro(e,l){for(const n in l){const o=l[n],i=e[n];if(typeof o=="string"){if(o!==i)return!1}else if(Array.isArray(i)===!1||i.length!==o.length||o.some((a,r)=>a!==i[r]))return!1}return!0}function vl(e,l){return Array.isArray(l)===!0?e.length===l.length&&e.every((n,o)=>n===l[o]):e.length===1&&e[0]===l}function so(e,l){return Array.isArray(e)===!0?vl(e,l):Array.isArray(l)===!0?vl(l,e):e===l}function co(e,l){if(Object.keys(e).length!==Object.keys(l).length)return!1;for(const n in e)if(so(e[n],l[n])===!1)return!1;return!0}const en={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},fo={...en,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function tn({fallbackTag:e,useDisableForRouterLinkProps:l=!0}={}){const n=t.getCurrentInstance(),{props:o,proxy:i,emit:a}=n,r=Zl(n),s=t.computed(()=>o.disable!==!0&&o.href!==void 0),h=l===!0?t.computed(()=>r===!0&&o.disable!==!0&&s.value!==!0&&o.to!==void 0&&o.to!==null&&o.to!==""):t.computed(()=>r===!0&&s.value!==!0&&o.to!==void 0&&o.to!==null&&o.to!==""),p=t.computed(()=>h.value===!0?V(o.to):null),c=t.computed(()=>p.value!==null),b=t.computed(()=>s.value===!0||c.value===!0),v=t.computed(()=>o.type==="a"||b.value===!0?"a":o.tag||e||"div"),d=t.computed(()=>s.value===!0?{href:o.href,target:o.target}:c.value===!0?{href:p.value.href,target:o.target}:{}),m=t.computed(()=>{if(c.value===!1)return-1;const{matched:R}=p.value,{length:E}=R,L=R[E-1];if(L===void 0)return-1;const O=i.$route.matched;if(O.length===0)return-1;const D=O.findIndex(fl.bind(null,L));if(D!==-1)return D;const Y=dl(R[E-2]);return E>1&&dl(L)===Y&&O[O.length-1].path!==Y?O.findIndex(fl.bind(null,R[E-2])):D}),x=t.computed(()=>c.value===!0&&m.value!==-1&&ro(i.$route.params,p.value.params)),g=t.computed(()=>x.value===!0&&m.value===i.$route.matched.length-1&&co(i.$route.params,p.value.params)),A=t.computed(()=>c.value===!0?g.value===!0?` ${o.exactActiveClass} ${o.activeClass}`:o.exact===!0?"":x.value===!0?` ${o.activeClass}`:"":"");function V(R){try{return i.$router.resolve(R)}catch{}return null}function S(R,{returnRouterError:E,to:L=o.to,replace:O=o.replace}={}){if(o.disable===!0)return R.preventDefault(),Promise.resolve(!1);if(R.metaKey||R.altKey||R.ctrlKey||R.shiftKey||R.button!==void 0&&R.button!==0||o.target==="_blank")return Promise.resolve(!1);R.preventDefault();const D=i.$router[O===!0?"replace":"push"](L);return E===!0?D:D.then(()=>{}).catch(()=>{})}function M(R){if(c.value===!0){const E=L=>S(R,L);a("click",R,E),R.defaultPrevented!==!0&&E()}else a("click",R)}return{hasRouterLink:c,hasHrefLink:s,hasLink:b,linkTag:v,resolvedLink:p,linkIsActive:x,linkIsExactActive:g,linkClass:A,linkAttrs:d,getLink:V,navigateToRouterLink:S,navigateOnClick:M}}const ml={none:0,xs:4,sm:8,md:16,lg:24,xl:32},vo={xs:8,sm:10,md:14,lg:20,xl:24},mo=["button","submit","reset"],ho=/[^\s]\/[^\s]/,go=["flat","outline","push","unelevated"];function po(e,l){return e.flat===!0?"flat":e.outline===!0?"outline":e.push===!0?"push":e.unelevated===!0?"unelevated":l}const bo={...gt,...en,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...go.reduce((e,l)=>(e[l]=Boolean)&&e,{}),square:Boolean,rounded:Boolean,glossy:Boolean,size:String,fab:Boolean,fabMini:Boolean,padding:String,color:String,textColor:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,tabindex:[Number,String],ripple:{type:[Boolean,Object],default:!0},align:{...uo.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},yo={...bo,round:Boolean};function wo(e){const l=pt(e,vo),n=ao(e),{hasRouterLink:o,hasLink:i,linkTag:a,linkAttrs:r,navigateOnClick:s}=tn({fallbackTag:"button"}),h=t.computed(()=>{const g=e.fab===!1&&e.fabMini===!1?l.value:{};return e.padding!==void 0?Object.assign({},g,{padding:e.padding.split(/\s+/).map(A=>A in ml?ml[A]+"px":A).join(" "),minWidth:"0",minHeight:"0"}):g}),p=t.computed(()=>e.rounded===!0||e.fab===!0||e.fabMini===!0),c=t.computed(()=>e.disable!==!0&&e.loading!==!0),b=t.computed(()=>c.value===!0?e.tabindex||0:-1),v=t.computed(()=>po(e,"standard")),d=t.computed(()=>{const g={tabindex:b.value};return i.value===!0?Object.assign(g,r.value):mo.includes(e.type)===!0&&(g.type=e.type),a.value==="a"?(e.disable===!0?g["aria-disabled"]="true":g.href===void 0&&(g.role="button"),o.value!==!0&&ho.test(e.type)===!0&&(g.type=e.type)):e.disable===!0&&(g.disabled="",g["aria-disabled"]="true"),e.loading===!0&&e.percentage!==void 0&&Object.assign(g,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e.percentage}),g}),m=t.computed(()=>{let g;e.color!==void 0?e.flat===!0||e.outline===!0?g=`text-${e.textColor||e.color}`:g=`bg-${e.color} text-${e.textColor||"white"}`:e.textColor&&(g=`text-${e.textColor}`);const A=e.round===!0?"round":`rectangle${p.value===!0?" q-btn--rounded":e.square===!0?" q-btn--square":""}`;return`q-btn--${v.value} q-btn--${A}`+(g!==void 0?" "+g:"")+(c.value===!0?" q-btn--actionable q-focusable q-hoverable":e.disable===!0?" disabled":"")+(e.fab===!0?" q-btn--fab":e.fabMini===!0?" q-btn--fab-mini":"")+(e.noCaps===!0?" q-btn--no-uppercase":"")+(e.dense===!0?" q-btn--dense":"")+(e.stretch===!0?" no-border-radius self-stretch":"")+(e.glossy===!0?" glossy":"")+(e.square?" q-btn--square":"")}),x=t.computed(()=>n.value+(e.stack===!0?" column":" row")+(e.noWrap===!0?" no-wrap text-no-wrap":"")+(e.loading===!0?" q-btn__content--hidden":""));return{classes:m,style:h,innerClasses:x,attributes:d,hasLink:i,linkTag:a,navigateOnClick:s,isActionable:c}}const{passiveCapture:re}=ne;let ze=null,Pe=null,Ie=null;const So=ae({name:"QBtn",props:{...yo,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(e,{slots:l,emit:n}){const{proxy:o}=t.getCurrentInstance(),{classes:i,style:a,innerClasses:r,attributes:s,hasLink:h,linkTag:p,navigateOnClick:c,isActionable:b}=wo(e),v=t.ref(null),d=t.ref(null);let m=null,x,g=null;const A=t.computed(()=>e.label!==void 0&&e.label!==null&&e.label!==""),V=t.computed(()=>e.disable===!0||e.ripple===!1?!1:{keyCodes:h.value===!0?[13,32]:[13],...e.ripple===!0?{}:e.ripple}),S=t.computed(()=>({center:e.round})),M=t.computed(()=>{const _=Math.max(0,Math.min(100,e.percentage));return _>0?{transition:"transform 0.6s",transform:`translateX(${_-100}%)`}:{}}),R=t.computed(()=>{if(e.loading===!0)return{onMousedown:N,onTouchstart:N,onClick:N,onKeydown:N,onKeyup:N};if(b.value===!0){const _={onClick:L,onKeydown:O,onMousedown:Y};if(o.$q.platform.has.touch===!0){const F=e.onTouchstart!==void 0?"":"Passive";_[`onTouchstart${F}`]=D}return _}return{onClick:J}}),E=t.computed(()=>({ref:v,class:"q-btn q-btn-item non-selectable no-outline "+i.value,style:a.value,...s.value,...R.value}));function L(_){if(v.value!==null){if(_!==void 0){if(_.defaultPrevented===!0)return;const F=document.activeElement;if(e.type==="submit"&&F!==document.body&&v.value.contains(F)===!1&&F.contains(v.value)===!1){v.value.focus();const Q=()=>{document.removeEventListener("keydown",J,!0),document.removeEventListener("keyup",Q,re),v.value!==null&&v.value.removeEventListener("blur",Q,re)};document.addEventListener("keydown",J,!0),document.addEventListener("keyup",Q,re),v.value.addEventListener("blur",Q,re)}}c(_)}}function O(_){v.value!==null&&(n("keydown",_),Ve(_,[13,32])===!0&&Pe!==v.value&&(Pe!==null&&$(),_.defaultPrevented!==!0&&(v.value.focus(),Pe=v.value,v.value.classList.add("q-btn--active"),document.addEventListener("keyup",K,!0),v.value.addEventListener("blur",K,re)),J(_)))}function D(_){v.value!==null&&(n("touchstart",_),_.defaultPrevented!==!0&&(ze!==v.value&&(ze!==null&&$(),ze=v.value,m=_.target,m.addEventListener("touchcancel",K,re),m.addEventListener("touchend",K,re)),x=!0,g!==null&&clearTimeout(g),g=setTimeout(()=>{g=null,x=!1},200)))}function Y(_){v.value!==null&&(_.qSkipRipple=x===!0,n("mousedown",_),_.defaultPrevented!==!0&&Ie!==v.value&&(Ie!==null&&$(),Ie=v.value,v.value.classList.add("q-btn--active"),document.addEventListener("mouseup",K,re)))}function K(_){if(v.value!==null&&!(_!==void 0&&_.type==="blur"&&document.activeElement===v.value)){if(_!==void 0&&_.type==="keyup"){if(Pe===v.value&&Ve(_,[13,32])===!0){const F=new MouseEvent("click",_);F.qKeyEvent=!0,_.defaultPrevented===!0&&ce(F),_.cancelBubble===!0&&pe(F),v.value.dispatchEvent(F),J(_),_.qKeyEvent=!0}n("keyup",_)}$()}}function $(_){const F=d.value;_!==!0&&(ze===v.value||Ie===v.value)&&F!==null&&F!==document.activeElement&&(F.setAttribute("tabindex",-1),F.focus()),ze===v.value&&(m!==null&&(m.removeEventListener("touchcancel",K,re),m.removeEventListener("touchend",K,re)),ze=m=null),Ie===v.value&&(document.removeEventListener("mouseup",K,re),Ie=null),Pe===v.value&&(document.removeEventListener("keyup",K,!0),v.value!==null&&v.value.removeEventListener("blur",K,re),Pe=null),v.value!==null&&v.value.classList.remove("q-btn--active")}function N(_){J(_),_.qSkipRipple=!0}return t.onBeforeUnmount(()=>{$(!0)}),Object.assign(o,{click:_=>{b.value===!0&&L(_)}}),()=>{let _=[];e.icon!==void 0&&_.push(t.h(ge,{name:e.icon,left:e.stack!==!0&&A.value===!0,role:"img"})),A.value===!0&&_.push(t.h("span",{class:"block"},[e.label])),_=Ce(l.default,_),e.iconRight!==void 0&&e.round===!1&&_.push(t.h(ge,{name:e.iconRight,right:e.stack!==!0&&A.value===!0,role:"img"}));const F=[t.h("span",{class:"q-focus-helper",ref:d})];return e.loading===!0&&e.percentage!==void 0&&F.push(t.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(e.darkPercentage===!0?" q-btn__progress--dark":"")},[t.h("span",{class:"q-btn__progress-indicator fit block",style:M.value})])),F.push(t.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+r.value},_)),e.loading!==null&&F.push(t.h(t.Transition,{name:"q-transition--fade"},()=>e.loading===!0?[t.h("span",{key:"loading",class:"absolute-full flex flex-center"},l.loading!==void 0?l.loading():[t.h(Wl)])]:null)),t.withDirectives(t.h(p.value,E.value,F),[[Yl,V.value,void 0,S.value]])}}}),ko=t.defineComponent({__name:"index",props:{size:{default:he.MD},transparent:{type:Boolean},flat:{type:Boolean},rounded:{type:Boolean},color:{default:Hl.PRIMARY},iconLeft:{},iconRight:{},iconMiddle:{},disabled:{type:Boolean},loading:{type:Boolean},to:{},href:{},target:{},submit:{type:Boolean},ariaLabel:{},label:{}},emits:["click"],setup(e){const l=e,n=t.computed(()=>["app-btn",{"app-btn_default":!l.transparent&&!l.flat,"app-btn_trans":l.transparent,"app-btn_flat":l.flat,"app-btn_rounded":l.rounded,"app-btn_sm":l.size===he.SM,"app-btn_md":l.size===he.MD,"app-btn_lg":l.size===he.LG,"app-btn_icon-left":l.iconLeft,"app-btn_icon-right":l.iconRight,"app-btn_icon-middle":l.iconMiddle},`app-btn_${l.color}`]);return(o,i)=>(t.openBlock(),t.createBlock(t.unref(So),{"no-caps":"",unelevated:"",class:t.normalizeClass(n.value),padding:t.unref(Hn)[o.size||t.unref(he).MD],loading:o.loading,disable:o.disabled||void 0,to:o.to,href:o.href,target:o.target,type:o.submit?"submit":void 0,"aria-label":o.ariaLabel,onClick:i[0]||(i[0]=a=>o.$emit("click",a))},{default:t.withCtx(()=>[o.iconLeft||o.iconMiddle?(t.openBlock(),t.createElementBlock("i",{key:0,class:t.normalizeClass(["icon-kl",o.iconLeft?"icon-kl_left":"icon-kl_middle",`icon-kl-${o.iconLeft||o.iconMiddle}`,o.transparent||o.flat?`text-${o.color}`:"text-secondary"])},null,2)):t.createCommentVNode("",!0),t.renderSlot(o.$slots,"default",{},void 0,!0),o.label?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(o.label),1)],64)):t.createCommentVNode("",!0),o.iconRight?(t.openBlock(),t.createElementBlock("i",{key:2,class:t.normalizeClass(["icon-kl","icon-kl_right",`icon-kl-${o.iconRight}`,o.transparent?`text-${o.color}`:"text-secondary"])},null,2)):t.createCommentVNode("",!0)]),_:3},8,["class","padding","loading","disable","to","href","target","type","aria-label"]))}}),Dt=(e,l)=>{const n=e.__vccOpts||e;for(const[o,i]of l)n[o]=i;return n},xo=Dt(ko,[["__scopeId","data-v-ac94630a"]]),Ge={dark:{type:Boolean,default:null}};function Ze(e,l){return t.computed(()=>e.dark===null?l.dark.isActive:e.dark)}function Co(e,l){const n=t.ref(null),o=t.computed(()=>e.disable===!0?null:t.h("span",{ref:n,class:"no-outline",tabindex:-1}));function i(a){const r=l.value;a!==void 0&&a.type.indexOf("key")===0?r!==null&&document.activeElement!==r&&r.contains(document.activeElement)===!0&&r.focus():n.value!==null&&(a===void 0||r!==null&&r.contains(a.target)===!0)&&n.value.focus()}return{refocusTargetEl:o,refocusTarget:i}}const ln={name:String};function qo(e={}){return(l,n,o)=>{l[n](t.h("input",{class:"hidden"+(o||""),...e.value}))}}function Bo(e){return t.computed(()=>e.name||e.for)}const _o={xs:30,sm:35,md:40,lg:50,xl:60},Eo={...Ge,...gt,...ln,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]},Vo=["update:modelValue"];function To(e,l){const{props:n,slots:o,emit:i,proxy:a}=t.getCurrentInstance(),{$q:r}=a,s=Ze(n,r),h=t.ref(null),{refocusTargetEl:p,refocusTarget:c}=Co(n,h),b=pt(n,_o),v=t.computed(()=>n.val!==void 0&&Array.isArray(n.modelValue)),d=t.computed(()=>{const $=t.toRaw(n.val);return v.value===!0?n.modelValue.findIndex(N=>t.toRaw(N)===$):-1}),m=t.computed(()=>v.value===!0?d.value!==-1:t.toRaw(n.modelValue)===t.toRaw(n.trueValue)),x=t.computed(()=>v.value===!0?d.value===-1:t.toRaw(n.modelValue)===t.toRaw(n.falseValue)),g=t.computed(()=>m.value===!1&&x.value===!1),A=t.computed(()=>n.disable===!0?-1:n.tabindex||0),V=t.computed(()=>`q-${e} cursor-pointer no-outline row inline no-wrap items-center`+(n.disable===!0?" disabled":"")+(s.value===!0?` q-${e}--dark`:"")+(n.dense===!0?` q-${e}--dense`:"")+(n.leftLabel===!0?" reverse":"")),S=t.computed(()=>{const $=m.value===!0?"truthy":x.value===!0?"falsy":"indet",N=n.color!==void 0&&(n.keepColor===!0||x.value!==!0)?` text-${n.color}`:"";return`q-${e}__inner relative-position non-selectable q-${e}__inner--${$}${N}`}),M=t.computed(()=>{const $={type:"checkbox"};return n.name!==void 0&&Object.assign($,{".checked":m.value,"^checked":m.value===!0?"checked":void 0,name:n.name,value:v.value===!0?n.val:n.trueValue}),$}),R=qo(M),E=t.computed(()=>{const $={tabindex:A.value,role:"checkbox","aria-label":n.label,"aria-checked":g.value===!0?"mixed":m.value===!0?"true":"false"};return n.disable===!0&&($["aria-disabled"]="true"),$});function L($){$!==void 0&&(J($),c($)),n.disable!==!0&&i("update:modelValue",O(),$)}function O(){if(v.value===!0){if(m.value===!0){const $=n.modelValue.slice();return $.splice(d.value,1),$}return n.modelValue.concat([n.val])}if(m.value===!0){if(n.toggleOrder!=="ft"||n.toggleIndeterminate===!1)return n.falseValue}else if(x.value===!0){if(n.toggleOrder==="ft"||n.toggleIndeterminate===!1)return n.trueValue}else return n.toggleOrder!=="ft"?n.trueValue:n.falseValue;return n.indeterminateValue}function D($){($.keyCode===13||$.keyCode===32)&&J($)}function Y($){($.keyCode===13||$.keyCode===32)&&L($)}const K=l(m,g);return Object.assign(a,{toggle:L}),()=>{const $=K();n.disable!==!0&&R($,"unshift",` q-${e}__native absolute q-ma-none q-pa-none`);const N=[t.h("div",{class:S.value,style:b.value,"aria-hidden":"true"},$)];p.value!==null&&N.push(p.value);const _=n.label!==void 0?Ce(o.default,[n.label]):me(o.default);return _!==void 0&&N.push(t.h("div",{class:`q-${e}__label q-anchor--skip`},_)),t.h("div",{ref:h,class:V.value,...E.value,onClick:L,onKeydown:D,onKeyup:Y},N)}}const Ro=()=>t.h("div",{key:"svg",class:"q-checkbox__bg absolute"},[t.h("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24"},[t.h("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),t.h("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]),$o=ae({name:"QCheckbox",props:Eo,emits:Vo,setup(e){const l=Ro();function n(o,i){const a=t.computed(()=>(o.value===!0?e.checkedIcon:i.value===!0?e.indeterminateIcon:e.uncheckedIcon)||null);return()=>a.value!==null?[t.h("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[t.h(ge,{class:"q-checkbox__icon",name:a.value})])]:[l]}return To("checkbox",n)}}),ct=ae({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(e,{slots:l}){const n=t.computed(()=>`q-item__section column q-item__section--${e.avatar===!0||e.side===!0||e.thumbnail===!0?"side":"main"}`+(e.top===!0?" q-item__section--top justify-start":" justify-center")+(e.avatar===!0?" q-item__section--avatar":"")+(e.thumbnail===!0?" q-item__section--thumbnail":"")+(e.noWrap===!0?" q-item__section--nowrap":""));return()=>t.h("div",{class:n.value},me(l.default))}}),nn=ae({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(e,{slots:l}){const n=t.computed(()=>parseInt(e.lines,10)),o=t.computed(()=>"q-item__label"+(e.overline===!0?" q-item__label--overline text-overline":"")+(e.caption===!0?" q-item__label--caption text-caption":"")+(e.header===!0?" q-item__label--header":"")+(n.value===1?" ellipsis":"")),i=t.computed(()=>e.lines!==void 0&&n.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":n.value}:null);return()=>t.h("div",{style:i.value,class:o.value},me(l.default))}}),on=ae({name:"QItem",props:{...Ge,...fo,tag:{type:String,default:"div"},active:{type:Boolean,default:null},clickable:Boolean,dense:Boolean,insetLevel:Number,tabindex:[String,Number],focused:Boolean,manualFocus:Boolean},emits:["click","keyup"],setup(e,{slots:l,emit:n}){const{proxy:{$q:o}}=t.getCurrentInstance(),i=Ze(e,o),{hasLink:a,linkAttrs:r,linkClass:s,linkTag:h,navigateOnClick:p}=tn(),c=t.ref(null),b=t.ref(null),v=t.computed(()=>e.clickable===!0||a.value===!0||e.tag==="label"),d=t.computed(()=>e.disable!==!0&&v.value===!0),m=t.computed(()=>"q-item q-item-type row no-wrap"+(e.dense===!0?" q-item--dense":"")+(i.value===!0?" q-item--dark":"")+(a.value===!0&&e.active===null?s.value:e.active===!0?` q-item--active${e.activeClass!==void 0?` ${e.activeClass}`:""}`:"")+(e.disable===!0?" disabled":"")+(d.value===!0?" q-item--clickable q-link cursor-pointer "+(e.manualFocus===!0?"q-manual-focusable":"q-focusable q-hoverable")+(e.focused===!0?" q-manual-focusable--focused":""):"")),x=t.computed(()=>e.insetLevel===void 0?null:{["padding"+(o.lang.rtl===!0?"Right":"Left")]:16+e.insetLevel*56+"px"});function g(S){d.value===!0&&(b.value!==null&&(S.qKeyEvent!==!0&&document.activeElement===c.value?b.value.focus():document.activeElement===b.value&&c.value.focus()),p(S))}function A(S){if(d.value===!0&&Ve(S,[13,32])===!0){J(S),S.qKeyEvent=!0;const M=new MouseEvent("click",S);M.qKeyEvent=!0,c.value.dispatchEvent(M)}n("keyup",S)}function V(){const S=jn(l.default,[]);return d.value===!0&&S.unshift(t.h("div",{class:"q-focus-helper",tabindex:-1,ref:b})),S}return()=>{const S={ref:c,class:m.value,style:x.value,role:"listitem",onClick:g,onKeyup:A};return d.value===!0?(S.tabindex=e.tabindex||"0",Object.assign(S,r.value)):v.value===!0&&(S["aria-disabled"]="true"),t.h(h.value,S,V())}}});let qt,ot=0;const te=new Array(256);for(let e=0;e<256;e++)te[e]=(e+256).toString(16).substring(1);const Mo=(()=>{const e=typeof crypto<"u"?crypto:typeof window<"u"?window.crypto||window.msCrypto:void 0;if(e!==void 0){if(e.randomBytes!==void 0)return e.randomBytes;if(e.getRandomValues!==void 0)return l=>{const n=new Uint8Array(l);return e.getRandomValues(n),n}}return l=>{const n=[];for(let o=l;o>0;o--)n.push(Math.floor(Math.random()*256));return n}})(),hl=4096;function Ot(){(qt===void 0||ot+16>hl)&&(ot=0,qt=Mo(hl));const e=Array.prototype.slice.call(qt,ot,ot+=16);return e[6]=e[6]&15|64,e[8]=e[8]&63|128,te[e[0]]+te[e[1]]+te[e[2]]+te[e[3]]+"-"+te[e[4]]+te[e[5]]+"-"+te[e[6]]+te[e[7]]+"-"+te[e[8]]+te[e[9]]+"-"+te[e[10]]+te[e[11]]+te[e[12]]+te[e[13]]+te[e[14]]+te[e[15]]}const Xe=t.ref(!1);let zt;function Lo(e,l){const n=/(edg|edge|edga|edgios)\/([\w.]+)/.exec(e)||/(opr)[\/]([\w.]+)/.exec(e)||/(vivaldi)[\/]([\w.]+)/.exec(e)||/(chrome|crios)[\/]([\w.]+)/.exec(e)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e)||/(firefox|fxios)[\/]([\w.]+)/.exec(e)||/(webkit)[\/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[\/]([\w.]+)/.exec(e)||[];return{browser:n[5]||n[3]||n[1]||"",version:n[4]||n[2]||"0",platform:l[0]||""}}function Ao(e){return/(ipad)/.exec(e)||/(ipod)/.exec(e)||/(windows phone)/.exec(e)||/(iphone)/.exec(e)||/(kindle)/.exec(e)||/(silk)/.exec(e)||/(android)/.exec(e)||/(win)/.exec(e)||/(mac)/.exec(e)||/(linux)/.exec(e)||/(cros)/.exec(e)||/(playbook)/.exec(e)||/(bb)/.exec(e)||/(blackberry)/.exec(e)||[]}const un="ontouchstart"in window||window.navigator.maxTouchPoints>0;function Oo(e){const l=e.toLowerCase(),n=Ao(l),o=Lo(l,n),i={mobile:!1,desktop:!1,cordova:!1,capacitor:!1,nativeMobile:!1,electron:!1,bex:!1,linux:!1,mac:!1,win:!1,cros:!1,chrome:!1,firefox:!1,opera:!1,safari:!1,vivaldi:!1,edge:!1,edgeChromium:!1,ie:!1,webkit:!1,android:!1,ios:!1,ipad:!1,iphone:!1,ipod:!1,kindle:!1,winphone:!1,blackberry:!1,playbook:!1,silk:!1};o.browser&&(i[o.browser]=!0,i.version=o.version,i.versionNumber=parseInt(o.version,10)),o.platform&&(i[o.platform]=!0);const a=i.android||i.ios||i.bb||i.blackberry||i.ipad||i.iphone||i.ipod||i.kindle||i.playbook||i.silk||i["windows phone"];if(a===!0||l.indexOf("mobile")!==-1?i.mobile=!0:i.desktop=!0,i["windows phone"]&&(i.winphone=!0,delete i["windows phone"]),i.edga||i.edgios||i.edg?(i.edge=!0,o.browser="edge"):i.crios?(i.chrome=!0,o.browser="chrome"):i.fxios&&(i.firefox=!0,o.browser="firefox"),(i.ipod||i.ipad||i.iphone)&&(i.ios=!0),i.vivaldi&&(o.browser="vivaldi",i.vivaldi=!0),(i.chrome||i.opr||i.safari||i.vivaldi||i.mobile===!0&&i.ios!==!0&&a!==!0)&&(i.webkit=!0),i.opr&&(o.browser="opera",i.opera=!0),i.safari&&(i.blackberry||i.bb?(o.browser="blackberry",i.blackberry=!0):i.playbook?(o.browser="playbook",i.playbook=!0):i.android?(o.browser="android",i.android=!0):i.kindle?(o.browser="kindle",i.kindle=!0):i.silk&&(o.browser="silk",i.silk=!0)),i.name=o.browser,i.platform=o.platform,l.indexOf("electron")!==-1)i.electron=!0;else if(document.location.href.indexOf("-extension://")!==-1)i.bex=!0;else{if(window.Capacitor!==void 0?(i.capacitor=!0,i.nativeMobile=!0,i.nativeMobileWrapper="capacitor"):(window._cordovaNative!==void 0||window.cordova!==void 0)&&(i.cordova=!0,i.nativeMobile=!0,i.nativeMobileWrapper="cordova"),Xe.value===!0&&(zt={is:{...i}}),un===!0&&i.mac===!0&&(i.desktop===!0&&i.safari===!0||i.nativeMobile===!0&&i.android!==!0&&i.ios!==!0&&i.ipad!==!0)){delete i.mac,delete i.desktop;const r=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(i,{mobile:!0,ios:!0,platform:r,[r]:!0})}i.mobile!==!0&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete i.desktop,i.mobile=!0)}return i}const gl=navigator.userAgent||navigator.vendor||window.opera,zo={has:{touch:!1,webStorage:!1},within:{iframe:!1}},ue={userAgent:gl,is:Oo(gl),has:{touch:un},within:{iframe:window.self!==window.top}},Pt={install(e){const{$q:l}=e;Xe.value===!0?(e.onSSRHydrated.push(()=>{Object.assign(l.platform,ue),Xe.value=!1}),l.platform=t.reactive(this)):l.platform=this}};{let e;Ht(ue.has,"webStorage",()=>{if(e!==void 0)return e;try{if(window.localStorage)return e=!0,!0}catch{}return e=!1,!1}),Object.assign(Pt,ue),Xe.value===!0&&(Object.assign(Pt,zt,zo),zt=null)}function Po(e){return e??null}function pl(e,l){return e??(l===!0?`f_${Ot()}`:null)}function Io({getValue:e,required:l=!0}={}){if(Xe.value===!0){const n=e!==void 0?t.ref(Po(e())):t.ref(null);return l===!0&&n.value===null&&t.onMounted(()=>{n.value=`f_${Ot()}`}),e!==void 0&&t.watch(e,o=>{n.value=pl(o,l)}),n}return e!==void 0?t.computed(()=>pl(e(),l)):t.ref(`f_${Ot()}`)}const bl=/^on[A-Z]/;function Fo(){const{attrs:e,vnode:l}=t.getCurrentInstance(),n={listeners:t.ref({}),attributes:t.ref({})};function o(){const i={},a={};for(const r in e)r!=="class"&&r!=="style"&&bl.test(r)===!1&&(i[r]=e[r]);for(const r in l.props)bl.test(r)===!0&&(a[r]=l.props[r]);n.attributes.value=i,n.listeners.value=a}return t.onBeforeUpdate(o),o(),n}const Ho="_q_fo_";function Do({validate:e,resetValidation:l,requiresQForm:n}){const o=t.inject(Ho,!1);if(o!==!1){const{props:i,proxy:a}=t.getCurrentInstance();Object.assign(a,{validate:e,resetValidation:l}),t.watch(()=>i.disable,r=>{r===!0?(typeof l=="function"&&l(),o.unbindComponent(a)):o.bindComponent(a)}),t.onMounted(()=>{i.disable!==!0&&o.bindComponent(a)}),t.onBeforeUnmount(()=>{i.disable!==!0&&o.unbindComponent(a)})}else n===!0&&console.error("Parent QForm not found on useFormChild()!")}const yl=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,wl=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,Sl=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,it=/^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|0\.[0-9]+[1-9]|0\.[1-9]+|1)\)$/,Bt={date:e=>/^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(e),time:e=>/^([0-1]?\d|2[0-3]):[0-5]\d$/.test(e),fulltime:e=>/^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/.test(e),timeOrFulltime:e=>/^([0-1]?\d|2[0-3]):[0-5]\d(:[0-5]\d)?$/.test(e),email:e=>/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e),hexColor:e=>yl.test(e),hexaColor:e=>wl.test(e),hexOrHexaColor:e=>Sl.test(e),rgbColor:e=>it.test(e),rgbaColor:e=>ut.test(e),rgbOrRgbaColor:e=>it.test(e)||ut.test(e),hexOrRgbColor:e=>yl.test(e)||it.test(e),hexaOrRgbaColor:e=>wl.test(e)||ut.test(e),anyColor:e=>Sl.test(e)||it.test(e)||ut.test(e)};function an(e,l=250,n){let o=null;function i(){const a=arguments,r=()=>{o=null,e.apply(this,a)};o!==null&&clearTimeout(o),o=setTimeout(r,l)}return i.cancel=()=>{o!==null&&clearTimeout(o)},i}const jo=[!0,!1,"ondemand"],No={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:e=>jo.includes(e)}};function Wo(e,l){const{props:n,proxy:o}=t.getCurrentInstance(),i=t.ref(!1),a=t.ref(null),r=t.ref(!1);Do({validate:x,resetValidation:m});let s=0,h;const p=t.computed(()=>n.rules!==void 0&&n.rules!==null&&n.rules.length!==0),c=t.computed(()=>n.disable!==!0&&p.value===!0&&l.value===!1),b=t.computed(()=>n.error===!0||i.value===!0),v=t.computed(()=>typeof n.errorMessage=="string"&&n.errorMessage.length!==0?n.errorMessage:a.value);t.watch(()=>n.modelValue,()=>{r.value=!0,c.value===!0&&n.lazyRules===!1&&g()});function d(){n.lazyRules!=="ondemand"&&c.value===!0&&r.value===!0&&g()}t.watch(()=>n.reactiveRules,A=>{A===!0?h===void 0&&(h=t.watch(()=>n.rules,d,{immediate:!0,deep:!0})):h!==void 0&&(h(),h=void 0)},{immediate:!0}),t.watch(()=>n.lazyRules,d),t.watch(e,A=>{A===!0?r.value=!0:c.value===!0&&n.lazyRules!=="ondemand"&&g()});function m(){s++,l.value=!1,r.value=!1,i.value=!1,a.value=null,g.cancel()}function x(A=n.modelValue){if(n.disable===!0||p.value===!1)return!0;const V=++s,S=l.value!==!0?()=>{r.value=!0}:()=>{},M=(E,L)=>{E===!0&&S(),i.value=E,a.value=L||null,l.value=!1},R=[];for(let E=0;E<n.rules.length;E++){const L=n.rules[E];let O;if(typeof L=="function"?O=L(A,Bt):typeof L=="string"&&Bt[L]!==void 0&&(O=Bt[L](A)),O===!1||typeof O=="string")return M(!0,O),!1;O!==!0&&O!==void 0&&R.push(O)}return R.length===0?(M(!1),!0):(l.value=!0,Promise.all(R).then(E=>{if(E===void 0||Array.isArray(E)===!1||E.length===0)return V===s&&M(!1),!0;const L=E.find(O=>O===!1||typeof O=="string");return V===s&&M(L!==void 0,L),L===void 0},E=>(V===s&&(console.error(E),M(!0)),!1)))}const g=an(x,0);return t.onBeforeUnmount(()=>{h!==void 0&&h(),g.cancel()}),Object.assign(o,{resetValidation:m,validate:x}),Ht(o,"hasError",()=>b.value),{isDirtyModel:r,hasRules:p,hasError:b,errorMessage:v,validate:x,resetValidation:m}}let qe=[],Ye=[];function rn(e){Ye=Ye.filter(l=>l!==e)}function Ko(e){rn(e),Ye.push(e)}function kl(e){rn(e),Ye.length===0&&qe.length!==0&&(qe[qe.length-1](),qe=[])}function jt(e){Ye.length===0?e():qe.push(e)}function Uo(e){qe=qe.filter(l=>l!==e)}function It(e){return e!=null&&(""+e).length!==0}const Qo={...Ge,...No,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},Nt={...Qo,maxlength:[Number,String]},sn=["update:modelValue","clear","focus","blur"];function cn({requiredForAttr:e=!0,tagProp:l,changeEvent:n=!1}={}){const{props:o,proxy:i}=t.getCurrentInstance(),a=Ze(o,i.$q),r=Io({required:e,getValue:()=>o.for});return{requiredForAttr:e,changeEvent:n,tag:l===!0?t.computed(()=>o.tag):{value:"label"},isDark:a,editable:t.computed(()=>o.disable!==!0&&o.readonly!==!0),innerLoading:t.ref(!1),focused:t.ref(!1),hasPopupOpen:!1,splitAttrs:Fo(),targetUid:r,rootRef:t.ref(null),targetRef:t.ref(null),controlRef:t.ref(null)}}function dn(e){const{props:l,emit:n,slots:o,attrs:i,proxy:a}=t.getCurrentInstance(),{$q:r}=a;let s=null;e.hasValue===void 0&&(e.hasValue=t.computed(()=>It(l.modelValue))),e.emitValue===void 0&&(e.emitValue=B=>{n("update:modelValue",B)}),e.controlEvents===void 0&&(e.controlEvents={onFocusin:D,onFocusout:Y}),Object.assign(e,{clearValue:K,onControlFocusin:D,onControlFocusout:Y,focus:L}),e.computedCounter===void 0&&(e.computedCounter=t.computed(()=>{if(l.counter!==!1){const B=typeof l.modelValue=="string"||typeof l.modelValue=="number"?(""+l.modelValue).length:Array.isArray(l.modelValue)===!0?l.modelValue.length:0,z=l.maxlength!==void 0?l.maxlength:l.maxValues;return B+(z!==void 0?" / "+z:"")}}));const{isDirtyModel:h,hasRules:p,hasError:c,errorMessage:b,resetValidation:v}=Wo(e.focused,e.innerLoading),d=e.floatingLabel!==void 0?t.computed(()=>l.stackLabel===!0||e.focused.value===!0||e.floatingLabel.value===!0):t.computed(()=>l.stackLabel===!0||e.focused.value===!0||e.hasValue.value===!0),m=t.computed(()=>l.bottomSlots===!0||l.hint!==void 0||p.value===!0||l.counter===!0||l.error!==null),x=t.computed(()=>l.filled===!0?"filled":l.outlined===!0?"outlined":l.borderless===!0?"borderless":l.standout?"standout":"standard"),g=t.computed(()=>`q-field row no-wrap items-start q-field--${x.value}`+(e.fieldClass!==void 0?` ${e.fieldClass.value}`:"")+(l.rounded===!0?" q-field--rounded":"")+(l.square===!0?" q-field--square":"")+(d.value===!0?" q-field--float":"")+(V.value===!0?" q-field--labeled":"")+(l.dense===!0?" q-field--dense":"")+(l.itemAligned===!0?" q-field--item-aligned q-item-type":"")+(e.isDark.value===!0?" q-field--dark":"")+(e.getControl===void 0?" q-field--auto-height":"")+(e.focused.value===!0?" q-field--focused":"")+(c.value===!0?" q-field--error":"")+(c.value===!0||e.focused.value===!0?" q-field--highlighted":"")+(l.hideBottomSpace!==!0&&m.value===!0?" q-field--with-bottom":"")+(l.disable===!0?" q-field--disabled":l.readonly===!0?" q-field--readonly":"")),A=t.computed(()=>"q-field__control relative-position row no-wrap"+(l.bgColor!==void 0?` bg-${l.bgColor}`:"")+(c.value===!0?" text-negative":typeof l.standout=="string"&&l.standout.length!==0&&e.focused.value===!0?` ${l.standout}`:l.color!==void 0?` text-${l.color}`:"")),V=t.computed(()=>l.labelSlot===!0||l.label!==void 0),S=t.computed(()=>"q-field__label no-pointer-events absolute ellipsis"+(l.labelColor!==void 0&&c.value!==!0?` text-${l.labelColor}`:"")),M=t.computed(()=>({id:e.targetUid.value,editable:e.editable.value,focused:e.focused.value,floatingLabel:d.value,modelValue:l.modelValue,emitValue:e.emitValue})),R=t.computed(()=>{const B={};return e.targetUid.value&&(B.for=e.targetUid.value),l.disable===!0&&(B["aria-disabled"]="true"),B});function E(){const B=document.activeElement;let z=e.targetRef!==void 0&&e.targetRef.value;z&&(B===null||B.id!==e.targetUid.value)&&(z.hasAttribute("tabindex")===!0||(z=z.querySelector("[tabindex]")),z&&z!==B&&z.focus({preventScroll:!0}))}function L(){jt(E)}function O(){Uo(E);const B=document.activeElement;B!==null&&e.rootRef.value.contains(B)&&B.blur()}function D(B){s!==null&&(clearTimeout(s),s=null),e.editable.value===!0&&e.focused.value===!1&&(e.focused.value=!0,n("focus",B))}function Y(B,z){s!==null&&clearTimeout(s),s=setTimeout(()=>{s=null,!(document.hasFocus()===!0&&(e.hasPopupOpen===!0||e.controlRef===void 0||e.controlRef.value===null||e.controlRef.value.contains(document.activeElement)!==!1))&&(e.focused.value===!0&&(e.focused.value=!1,n("blur",B)),z!==void 0&&z())})}function K(B){J(B),r.platform.is.mobile!==!0?(e.targetRef!==void 0&&e.targetRef.value||e.rootRef.value).focus():e.rootRef.value.contains(document.activeElement)===!0&&document.activeElement.blur(),l.type==="file"&&(e.inputRef.value.value=null),n("update:modelValue",null),e.changeEvent===!0&&n("change",null),n("clear",l.modelValue),t.nextTick(()=>{const z=h.value;v(),h.value=z})}function $(B){[13,32].includes(B.keyCode)&&K(B)}function N(){const B=[];return o.prepend!==void 0&&B.push(t.h("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:ce},o.prepend())),B.push(t.h("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},_())),c.value===!0&&l.noErrorIcon===!1&&B.push(Q("error",[t.h(ge,{name:r.iconSet.field.error,color:"negative"})])),l.loading===!0||e.innerLoading.value===!0?B.push(Q("inner-loading-append",o.loading!==void 0?o.loading():[t.h(Wl,{color:l.color})])):l.clearable===!0&&e.hasValue.value===!0&&e.editable.value===!0&&B.push(Q("inner-clearable-append",[t.h(ge,{class:"q-field__focusable-action",name:l.clearIcon||r.iconSet.field.clear,tabindex:0,role:"button","aria-hidden":"false","aria-label":r.lang.label.clear,onKeyup:$,onClick:K})])),o.append!==void 0&&B.push(t.h("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:ce},o.append())),e.getInnerAppend!==void 0&&B.push(Q("inner-append",e.getInnerAppend())),e.getControlChild!==void 0&&B.push(e.getControlChild()),B}function _(){const B=[];return l.prefix!==void 0&&l.prefix!==null&&B.push(t.h("div",{class:"q-field__prefix no-pointer-events row items-center"},l.prefix)),e.getShadowControl!==void 0&&e.hasShadow.value===!0&&B.push(e.getShadowControl()),e.getControl!==void 0?B.push(e.getControl()):o.rawControl!==void 0?B.push(o.rawControl()):o.control!==void 0&&B.push(t.h("div",{ref:e.targetRef,class:"q-field__native row",tabindex:-1,...e.splitAttrs.attributes.value,"data-autofocus":l.autofocus===!0||void 0},o.control(M.value))),V.value===!0&&B.push(t.h("div",{class:S.value},me(o.label,l.label))),l.suffix!==void 0&&l.suffix!==null&&B.push(t.h("div",{class:"q-field__suffix no-pointer-events row items-center"},l.suffix)),B.concat(me(o.default))}function F(){let B,z;c.value===!0?b.value!==null?(B=[t.h("div",{role:"alert"},b.value)],z=`q--slot-error-${b.value}`):(B=me(o.error),z="q--slot-error"):(l.hideHint!==!0||e.focused.value===!0)&&(l.hint!==void 0?(B=[t.h("div",l.hint)],z=`q--slot-hint-${l.hint}`):(B=me(o.hint),z="q--slot-hint"));const oe=l.counter===!0||o.counter!==void 0;if(l.hideBottomSpace===!0&&oe===!1&&B===void 0)return;const f=t.h("div",{key:z,class:"q-field__messages col"},B);return t.h("div",{class:"q-field__bottom row items-start q-field__bottom--"+(l.hideBottomSpace!==!0?"animated":"stale"),onClick:ce},[l.hideBottomSpace===!0?f:t.h(t.Transition,{name:"q-transition--field-message"},()=>f),oe===!0?t.h("div",{class:"q-field__counter"},o.counter!==void 0?o.counter():e.computedCounter.value):null])}function Q(B,z){return z===null?null:t.h("div",{key:B,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},z)}let le=!1;return t.onDeactivated(()=>{le=!0}),t.onActivated(()=>{le===!0&&l.autofocus===!0&&a.focus()}),l.autofocus===!0&&t.onMounted(()=>{a.focus()}),t.onBeforeUnmount(()=>{s!==null&&clearTimeout(s)}),Object.assign(a,{focus:L,blur:O}),function(){const z=e.getControl===void 0&&o.control===void 0?{...e.splitAttrs.attributes.value,"data-autofocus":l.autofocus===!0||void 0,...R.value}:R.value;return t.h(e.tag.value,{ref:e.rootRef,class:[g.value,i.class],style:i.style,...z},[o.before!==void 0?t.h("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:ce},o.before()):null,t.h("div",{class:"q-field__inner relative-position col self-stretch"},[t.h("div",{ref:e.controlRef,class:A.value,tabindex:-1,...e.controlEvents},N()),m.value===!0?F():null]),o.after!==void 0?t.h("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:ce},o.after()):null])}}const Xo=ae({name:"QField",inheritAttrs:!1,props:{...Nt,tag:{type:String,default:"label"}},emits:sn,setup(){return dn(cn({tagProp:!0}))}}),Yo={xs:8,sm:10,md:14,lg:20,xl:24},Go=ae({name:"QChip",props:{...Ge,...gt,dense:Boolean,icon:String,iconRight:String,iconRemove:String,iconSelected:String,label:[String,Number],color:String,textColor:String,modelValue:{type:Boolean,default:!0},selected:{type:Boolean,default:null},square:Boolean,outline:Boolean,clickable:Boolean,removable:Boolean,removeAriaLabel:String,tabindex:[String,Number],disable:Boolean,ripple:{type:[Boolean,Object],default:!0}},emits:["update:modelValue","update:selected","remove","click"],setup(e,{slots:l,emit:n}){const{proxy:{$q:o}}=t.getCurrentInstance(),i=Ze(e,o),a=pt(e,Yo),r=t.computed(()=>e.selected===!0||e.icon!==void 0),s=t.computed(()=>e.selected===!0?e.iconSelected||o.iconSet.chip.selected:e.icon),h=t.computed(()=>e.iconRemove||o.iconSet.chip.remove),p=t.computed(()=>e.disable===!1&&(e.clickable===!0||e.selected!==null)),c=t.computed(()=>{const g=e.outline===!0&&e.color||e.textColor;return"q-chip row inline no-wrap items-center"+(e.outline===!1&&e.color!==void 0?` bg-${e.color}`:"")+(g?` text-${g} q-chip--colored`:"")+(e.disable===!0?" disabled":"")+(e.dense===!0?" q-chip--dense":"")+(e.outline===!0?" q-chip--outline":"")+(e.selected===!0?" q-chip--selected":"")+(p.value===!0?" q-chip--clickable cursor-pointer non-selectable q-hoverable":"")+(e.square===!0?" q-chip--square":"")+(i.value===!0?" q-chip--dark q-dark":"")}),b=t.computed(()=>{const g=e.disable===!0?{tabindex:-1,"aria-disabled":"true"}:{tabindex:e.tabindex||0},A={...g,role:"button","aria-hidden":"false","aria-label":e.removeAriaLabel||o.lang.label.remove};return{chip:g,remove:A}});function v(g){g.keyCode===13&&d(g)}function d(g){e.disable||(n("update:selected",!e.selected),n("click",g))}function m(g){(g.keyCode===void 0||g.keyCode===13)&&(J(g),e.disable===!1&&(n("update:modelValue",!1),n("remove")))}function x(){const g=[];p.value===!0&&g.push(t.h("div",{class:"q-focus-helper"})),r.value===!0&&g.push(t.h(ge,{class:"q-chip__icon q-chip__icon--left",name:s.value}));const A=e.label!==void 0?[t.h("div",{class:"ellipsis"},[e.label])]:void 0;return g.push(t.h("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},Nn(l.default,A))),e.iconRight&&g.push(t.h(ge,{class:"q-chip__icon q-chip__icon--right",name:e.iconRight})),e.removable===!0&&g.push(t.h(ge,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:h.value,...b.value.remove,onClick:m,onKeyup:m})),g}return()=>{if(e.modelValue===!1)return;const g={class:c.value,style:a.value};return p.value===!0&&Object.assign(g,b.value.chip,{onClick:d,onKeyup:v}),Wn("div",g,x(),"ripple",e.ripple!==!1&&e.disable!==!0,()=>[[Yl,e.ripple]])}}});function Zo(){if(window.getSelection!==void 0){const e=window.getSelection();e.empty!==void 0?e.empty():e.removeAllRanges!==void 0&&(e.removeAllRanges(),Pt.is.mobile!==!0&&e.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}const Jo={target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},ei={...Jo,contextMenu:Boolean};function ti({showing:e,avoidEmit:l,configureAnchorEl:n}){const{props:o,proxy:i,emit:a}=t.getCurrentInstance(),r=t.ref(null);let s=null;function h(d){return r.value===null?!1:d===void 0||d.touches===void 0||d.touches.length<=1}const p={};n===void 0&&(Object.assign(p,{hide(d){i.hide(d)},toggle(d){i.toggle(d),d.qAnchorHandled=!0},toggleKey(d){Ve(d,13)===!0&&p.toggle(d)},contextClick(d){i.hide(d),ce(d),t.nextTick(()=>{i.show(d),d.qAnchorHandled=!0})},prevent:ce,mobileTouch(d){if(p.mobileCleanup(d),h(d)!==!0)return;i.hide(d),r.value.classList.add("non-selectable");const m=d.target;At(p,"anchor",[[m,"touchmove","mobileCleanup","passive"],[m,"touchend","mobileCleanup","passive"],[m,"touchcancel","mobileCleanup","passive"],[r.value,"contextmenu","prevent","notPassive"]]),s=setTimeout(()=>{s=null,i.show(d),d.qAnchorHandled=!0},300)},mobileCleanup(d){r.value.classList.remove("non-selectable"),s!==null&&(clearTimeout(s),s=null),e.value===!0&&d!==void 0&&Zo()}}),n=function(d=o.contextMenu){if(o.noParentEvent===!0||r.value===null)return;let m;d===!0?i.$q.platform.is.mobile===!0?m=[[r.value,"touchstart","mobileTouch","passive"]]:m=[[r.value,"mousedown","hide","passive"],[r.value,"contextmenu","contextClick","notPassive"]]:m=[[r.value,"click","toggle","passive"],[r.value,"keyup","toggleKey","passive"]],At(p,"anchor",m)});function c(){Ql(p,"anchor")}function b(d){for(r.value=d;r.value.classList.contains("q-anchor--skip");)r.value=r.value.parentNode;n()}function v(){if(o.target===!1||o.target===""||i.$el.parentNode===null)r.value=null;else if(o.target===!0)b(i.$el.parentNode);else{let d=o.target;if(typeof o.target=="string")try{d=document.querySelector(o.target)}catch{d=void 0}d!=null?(r.value=d.$el||d,n()):(r.value=null,console.error(`Anchor: target "${o.target}" not found`))}}return t.watch(()=>o.contextMenu,d=>{r.value!==null&&(c(),n(d))}),t.watch(()=>o.target,()=>{r.value!==null&&c(),v()}),t.watch(()=>o.noParentEvent,d=>{r.value!==null&&(d===!0?c():n())}),t.onMounted(()=>{v(),l!==!0&&o.modelValue===!0&&r.value===null&&a("update:modelValue",!1)}),t.onBeforeUnmount(()=>{s!==null&&clearTimeout(s),c()}),{anchorEl:r,canShow:h,anchorEvents:p}}function li(e,l){const n=t.ref(null);let o;function i(s,h){const p=`${h!==void 0?"add":"remove"}EventListener`,c=h!==void 0?h:o;s!==window&&s[p]("scroll",c,ne.passive),window[p]("scroll",c,ne.passive),o=h}function a(){n.value!==null&&(i(n.value),n.value=null)}const r=t.watch(()=>e.noParentEvent,()=>{n.value!==null&&(a(),l())});return t.onBeforeUnmount(r),{localScrollTarget:n,unconfigureScrollTarget:a,changeScrollEvent:i}}const fn={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},vn=["beforeShow","show","beforeHide","hide"];function mn({showing:e,canShow:l,hideOnRouteChange:n,handleShow:o,handleHide:i,processOnMount:a}){const r=t.getCurrentInstance(),{props:s,emit:h,proxy:p}=r;let c;function b(V){e.value===!0?m(V):v(V)}function v(V){if(s.disable===!0||V!==void 0&&V.qAnchorHandled===!0||l!==void 0&&l(V)!==!0)return;const S=s["onUpdate:modelValue"]!==void 0;S===!0&&(h("update:modelValue",!0),c=V,t.nextTick(()=>{c===V&&(c=void 0)})),(s.modelValue===null||S===!1)&&d(V)}function d(V){e.value!==!0&&(e.value=!0,h("beforeShow",V),o!==void 0?o(V):h("show",V))}function m(V){if(s.disable===!0)return;const S=s["onUpdate:modelValue"]!==void 0;S===!0&&(h("update:modelValue",!1),c=V,t.nextTick(()=>{c===V&&(c=void 0)})),(s.modelValue===null||S===!1)&&x(V)}function x(V){e.value!==!1&&(e.value=!1,h("beforeHide",V),i!==void 0?i(V):h("hide",V))}function g(V){s.disable===!0&&V===!0?s["onUpdate:modelValue"]!==void 0&&h("update:modelValue",!1):V===!0!==e.value&&(V===!0?d:x)(c)}t.watch(()=>s.modelValue,g),n!==void 0&&Zl(r)===!0&&t.watch(()=>p.$route.fullPath,()=>{n.value===!0&&e.value===!0&&m()}),t.onMounted(()=>{g(s.modelValue)});const A={show:v,hide:m,toggle:b};return Object.assign(p,A),A}const xl={};let ni=1,oi=document.body;function ii(e,l){const n=document.createElement("div");if(n.id=l!==void 0?`q-portal--${l}--${ni++}`:e,xl.globalNodes!==void 0){const o=xl.globalNodes.class;o!==void 0&&(n.className=o)}return oi.appendChild(n),n}function ui(e){e.remove()}const Qe=[];function ai(e,l){do{if(e.$options.name==="QMenu"){if(e.hide(l),e.$props.separateClosePopup===!0)return Ct(e)}else if(e.__qPortal===!0){const n=Ct(e);return n!==void 0&&n.$options.name==="QPopupProxy"?(e.hide(l),n):e}e=Ct(e)}while(e!=null)}const ri=ae({name:"QPortal",setup(e,{slots:l}){return()=>l.default()}});function si(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,l,n,o){const i=t.ref(!1),a=t.ref(!1);let r=null;const s={},h=o==="dialog"&&si(e);function p(b){if(b===!0){kl(s),a.value=!0;return}a.value=!1,i.value===!1&&(h===!1&&r===null&&(r=ii(!1,o)),i.value=!0,Qe.push(e.proxy),Ko(s))}function c(b){if(a.value=!1,b!==!0)return;kl(s),i.value=!1;const v=Qe.indexOf(e.proxy);v!==-1&&Qe.splice(v,1),r!==null&&(ui(r),r=null)}return t.onUnmounted(()=>{c(!0)}),e.proxy.__qPortal=!0,Ht(e.proxy,"contentEl",()=>l.value),{showPortal:p,hidePortal:c,portalIsActive:i,portalIsAccessible:a,renderPortal:()=>h===!0?n():i.value===!0?[t.h(t.Teleport,{to:r},t.h(ri,n))]:void 0}}const gn={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function pn(e,l=()=>{},n=()=>{}){return{transitionProps:t.computed(()=>{const o=`q-transition--${e.transitionShow||l()}`,i=`q-transition--${e.transitionHide||n()}`;return{appear:!0,enterFromClass:`${o}-enter-from`,enterActiveClass:`${o}-enter-active`,enterToClass:`${o}-enter-to`,leaveFromClass:`${i}-leave-from`,leaveActiveClass:`${i}-leave-active`,leaveToClass:`${i}-leave-to`}}),transitionStyle:t.computed(()=>`--q-transition-duration: ${e.transitionDuration}ms`)}}function bn(){let e;const l=t.getCurrentInstance();function n(){e=void 0}return t.onDeactivated(n),t.onBeforeUnmount(n),{removeTick:n,registerTick(o){e=o,t.nextTick(()=>{e===o&&(Jl(l)===!1&&e(),e=void 0)})}}}function yn(){let e=null;const l=t.getCurrentInstance();function n(){e!==null&&(clearTimeout(e),e=null)}return t.onDeactivated(n),t.onBeforeUnmount(n),{removeTimeout:n,registerTimeout(o,i){n(),Jl(l)===!1&&(e=setTimeout(()=>{e=null,o()},i))}}}const ci=[Element,String],di=[null,document,document.body,document.scrollingElement,document.documentElement];function fi(e,l){let n=to(l);if(n===void 0){if(e==null)return window;n=e.closest(".scroll,.scroll-y,.overflow-auto")}return di.includes(n)?window:n}function vi(e){return e===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:e.scrollTop}function mi(e){return e===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:e.scrollLeft}let at;function hi(){if(at!==void 0)return at;const e=document.createElement("p"),l=document.createElement("div");Lt(e,{width:"100%",height:"200px"}),Lt(l,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),l.appendChild(e),document.body.appendChild(l);const n=e.offsetWidth;l.style.overflow="scroll";let o=e.offsetWidth;return n===o&&(o=l.clientWidth),l.remove(),at=n-o,at}function gi(e,l=!0){return!e||e.nodeType!==Node.ELEMENT_NODE?!1:l?e.scrollHeight>e.clientHeight&&(e.classList.contains("scroll")||e.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(e)["overflow-y"])):e.scrollWidth>e.clientWidth&&(e.classList.contains("scroll")||e.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(e)["overflow-x"]))}const Be=[];let He;function pi(e){He=e.keyCode===27}function bi(){He===!0&&(He=!1)}function yi(e){He===!0&&(He=!1,Ve(e,27)===!0&&Be[Be.length-1](e))}function wn(e){window[e]("keydown",pi),window[e]("blur",bi),window[e]("keyup",yi),He=!1}function Sn(e){ue.is.desktop===!0&&(Be.push(e),Be.length===1&&wn("addEventListener"))}function dt(e){const l=Be.indexOf(e);l!==-1&&(Be.splice(l,1),Be.length===0&&wn("removeEventListener"))}const _e=[];function kn(e){_e[_e.length-1](e)}function Wt(e){ue.is.desktop===!0&&(_e.push(e),_e.length===1&&document.body.addEventListener("focusin",kn))}function ft(e){const l=_e.indexOf(e);l!==-1&&(_e.splice(l,1),_e.length===0&&document.body.removeEventListener("focusin",kn))}const{notPassiveCapture:vt}=ne,Ee=[];function mt(e){const l=e.target;if(l===void 0||l.nodeType===8||l.classList.contains("no-pointer-events")===!0)return;let n=Qe.length-1;for(;n>=0;){const o=Qe[n].$;if(o.type.name==="QTooltip"){n--;continue}if(o.type.name!=="QDialog")break;if(o.props.seamless!==!0)return;n--}for(let o=Ee.length-1;o>=0;o--){const i=Ee[o];if((i.anchorEl.value===null||i.anchorEl.value.contains(l)===!1)&&(l===document.body||i.innerRef.value!==null&&i.innerRef.value.contains(l)===!1))e.qClickOutside=!0,i.onClickOutside(e);else return}}function wi(e){Ee.push(e),Ee.length===1&&(document.addEventListener("mousedown",mt,vt),document.addEventListener("touchstart",mt,vt))}function Cl(e){const l=Ee.findIndex(n=>n===e);l!==-1&&(Ee.splice(l,1),Ee.length===0&&(document.removeEventListener("mousedown",mt,vt),document.removeEventListener("touchstart",mt,vt)))}let ql,Bl;function _l(e){const l=e.split(" ");return l.length!==2?!1:["top","center","bottom"].includes(l[0])!==!0?(console.error("Anchor/Self position must start with one of top/center/bottom"),!1):["left","middle","right","start","end"].includes(l[1])!==!0?(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1):!0}function Si(e){return e?!(e.length!==2||typeof e[0]!="number"||typeof e[1]!="number"):!0}const Ft={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(e=>{Ft[`${e}#ltr`]=e,Ft[`${e}#rtl`]=e});function El(e,l){const n=e.split(" ");return{vertical:n[0],horizontal:Ft[`${n[1]}#${l===!0?"rtl":"ltr"}`]}}function ki(e,l){let{top:n,left:o,right:i,bottom:a,width:r,height:s}=e.getBoundingClientRect();return l!==void 0&&(n-=l[1],o-=l[0],a+=l[1],i+=l[0],r+=l[0],s+=l[1]),{top:n,bottom:a,height:s,left:o,right:i,width:r,middle:o+(i-o)/2,center:n+(a-n)/2}}function xi(e,l,n){let{top:o,left:i}=e.getBoundingClientRect();return o+=l.top,i+=l.left,n!==void 0&&(o+=n[1],i+=n[0]),{top:o,bottom:o+1,height:1,left:i,right:i+1,width:1,middle:i,center:o}}function Ci(e,l){return{top:0,center:l/2,bottom:l,left:0,middle:e/2,right:e}}function Vl(e,l,n,o){return{top:e[n.vertical]-l[o.vertical],left:e[n.horizontal]-l[o.horizontal]}}function xn(e,l=0){if(e.targetEl===null||e.anchorEl===null||l>5)return;if(e.targetEl.offsetHeight===0||e.targetEl.offsetWidth===0){setTimeout(()=>{xn(e,l+1)},10);return}const{targetEl:n,offset:o,anchorEl:i,anchorOrigin:a,selfOrigin:r,absoluteOffset:s,fit:h,cover:p,maxHeight:c,maxWidth:b}=e;if(ue.is.ios===!0&&window.visualViewport!==void 0){const E=document.body.style,{offsetLeft:L,offsetTop:O}=window.visualViewport;L!==ql&&(E.setProperty("--q-pe-left",L+"px"),ql=L),O!==Bl&&(E.setProperty("--q-pe-top",O+"px"),Bl=O)}const{scrollLeft:v,scrollTop:d}=n,m=s===void 0?ki(i,p===!0?[0,0]:o):xi(i,s,o);Object.assign(n.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:b,maxHeight:c,visibility:"visible"});const{offsetWidth:x,offsetHeight:g}=n,{elWidth:A,elHeight:V}=h===!0||p===!0?{elWidth:Math.max(m.width,x),elHeight:p===!0?Math.max(m.height,g):g}:{elWidth:x,elHeight:g};let S={maxWidth:b,maxHeight:c};(h===!0||p===!0)&&(S.minWidth=m.width+"px",p===!0&&(S.minHeight=m.height+"px")),Object.assign(n.style,S);const M=Ci(A,V);let R=Vl(m,M,a,r);if(s===void 0||o===void 0)_t(R,m,M,a,r);else{const{top:E,left:L}=R;_t(R,m,M,a,r);let O=!1;if(R.top!==E){O=!0;const D=2*o[1];m.center=m.top-=D,m.bottom-=D+2}if(R.left!==L){O=!0;const D=2*o[0];m.middle=m.left-=D,m.right-=D+2}O===!0&&(R=Vl(m,M,a,r),_t(R,m,M,a,r))}S={top:R.top+"px",left:R.left+"px"},R.maxHeight!==void 0&&(S.maxHeight=R.maxHeight+"px",m.height>R.maxHeight&&(S.minHeight=S.maxHeight)),R.maxWidth!==void 0&&(S.maxWidth=R.maxWidth+"px",m.width>R.maxWidth&&(S.minWidth=S.maxWidth)),Object.assign(n.style,S),n.scrollTop!==d&&(n.scrollTop=d),n.scrollLeft!==v&&(n.scrollLeft=v)}function _t(e,l,n,o,i){const a=n.bottom,r=n.right,s=hi(),h=window.innerHeight-s,p=document.body.clientWidth;if(e.top<0||e.top+a>h)if(i.vertical==="center")e.top=l[o.vertical]>h/2?Math.max(0,h-a):0,e.maxHeight=Math.min(a,h);else if(l[o.vertical]>h/2){const c=Math.min(h,o.vertical==="center"?l.center:o.vertical===i.vertical?l.bottom:l.top);e.maxHeight=Math.min(a,c),e.top=Math.max(0,c-a)}else e.top=Math.max(0,o.vertical==="center"?l.center:o.vertical===i.vertical?l.top:l.bottom),e.maxHeight=Math.min(a,h-e.top);if(e.left<0||e.left+r>p)if(e.maxWidth=Math.min(r,p),i.horizontal==="middle")e.left=l[o.horizontal]>p/2?Math.max(0,p-r):0;else if(l[o.horizontal]>p/2){const c=Math.min(p,o.horizontal==="middle"?l.middle:o.horizontal===i.horizontal?l.right:l.left);e.maxWidth=Math.min(r,c),e.left=Math.max(0,c-e.maxWidth)}else e.left=Math.max(0,o.horizontal==="middle"?l.middle:o.horizontal===i.horizontal?l.left:l.right),e.maxWidth=Math.min(r,p-e.left)}const qi=ae({name:"QMenu",inheritAttrs:!1,props:{...ei,...fn,...Ge,...gn,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:_l},self:{type:String,validator:_l},offset:{type:Array,validator:Si},scrollTarget:ci,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...vn,"click","escapeKey"],setup(e,{slots:l,emit:n,attrs:o}){let i=null,a,r,s;const h=t.getCurrentInstance(),{proxy:p}=h,{$q:c}=p,b=t.ref(null),v=t.ref(!1),d=t.computed(()=>e.persistent!==!0&&e.noRouteDismiss!==!0),m=Ze(e,c),{registerTick:x,removeTick:g}=bn(),{registerTimeout:A}=yn(),{transitionProps:V,transitionStyle:S}=pn(e),{localScrollTarget:M,changeScrollEvent:R,unconfigureScrollTarget:E}=li(e,P),{anchorEl:L,canShow:O}=ti({showing:v}),{hide:D}=mn({showing:v,canShow:O,handleShow:oe,handleHide:f,hideOnRouteChange:d,processOnMount:!0}),{showPortal:Y,hidePortal:K,renderPortal:$}=hn(h,b,j,"menu"),N={anchorEl:L,innerRef:b,onClickOutside(y){if(e.persistent!==!0&&v.value===!0)return D(y),(y.type==="touchstart"||y.target.classList.contains("q-dialog__backdrop"))&&J(y),!0}},_=t.computed(()=>El(e.anchor||(e.cover===!0?"center middle":"bottom start"),c.lang.rtl)),F=t.computed(()=>e.cover===!0?_.value:El(e.self||"top start",c.lang.rtl)),Q=t.computed(()=>(e.square===!0?" q-menu--square":"")+(m.value===!0?" q-menu--dark q-dark":"")),le=t.computed(()=>e.autoClose===!0?{onClick:H}:{}),B=t.computed(()=>v.value===!0&&e.persistent!==!0);t.watch(B,y=>{y===!0?(Sn(k),wi(N)):(dt(k),Cl(N))});function z(){jt(()=>{let y=b.value;y&&y.contains(document.activeElement)!==!0&&(y=y.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||y.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||y.querySelector("[autofocus], [data-autofocus]")||y,y.focus({preventScroll:!0}))})}function oe(y){if(i=e.noRefocus===!1?document.activeElement:null,Wt(X),Y(),P(),a=void 0,y!==void 0&&(e.touchPosition||e.contextMenu)){const G=Ul(y);if(G.left!==void 0){const{top:de,left:Te}=L.value.getBoundingClientRect();a={left:G.left-Te,top:G.top-de}}}r===void 0&&(r=t.watch(()=>c.screen.width+"|"+c.screen.height+"|"+e.self+"|"+e.anchor+"|"+c.lang.rtl,T)),e.noFocus!==!0&&document.activeElement.blur(),x(()=>{T(),e.noFocus!==!0&&z()}),A(()=>{c.platform.is.ios===!0&&(s=e.autoClose,b.value.click()),T(),Y(!0),n("show",y)},e.transitionDuration)}function f(y){g(),K(),w(!0),i!==null&&(y===void 0||y.qClickOutside!==!0)&&(((y&&y.type.indexOf("key")===0?i.closest('[tabindex]:not([tabindex^="-"])'):void 0)||i).focus(),i=null),A(()=>{K(!0),n("hide",y)},e.transitionDuration)}function w(y){a=void 0,r!==void 0&&(r(),r=void 0),(y===!0||v.value===!0)&&(ft(X),E(),Cl(N),dt(k)),y!==!0&&(i=null)}function P(){(L.value!==null||e.scrollTarget!==void 0)&&(M.value=fi(L.value,e.scrollTarget),R(M.value,T))}function H(y){s!==!0?(ai(p,y),n("click",y)):s=!1}function X(y){B.value===!0&&e.noFocus!==!0&&Kl(b.value,y.target)!==!0&&z()}function k(y){n("escapeKey"),D(y)}function T(){xn({targetEl:b.value,offset:e.offset,anchorEl:L.value,anchorOrigin:_.value,selfOrigin:F.value,absoluteOffset:a,fit:e.fit,cover:e.cover,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function j(){return t.h(t.Transition,V.value,()=>v.value===!0?t.h("div",{role:"menu",...o,ref:b,tabindex:-1,class:["q-menu q-position-engine scroll"+Q.value,o.class],style:[o.style,S.value],...le.value},me(l.default)):null)}return t.onBeforeUnmount(w),Object.assign(p,{focus:z,updatePosition:T}),$}});function Bi(e,l,n){function o(){}return t.onBeforeUnmount(()=>{e.value===!0&&void 0}),{removeFromHistory:o,addToHistory(){}}}let We=0,Et,Vt,Ue,Tt=!1,Tl,Rl,$l,xe=null;function _i(e){Ei(e)&&J(e)}function Ei(e){if(e.target===document.body||e.target.classList.contains("q-layout__backdrop"))return!0;const l=no(e),n=e.shiftKey&&!e.deltaX,o=!n&&Math.abs(e.deltaX)<=Math.abs(e.deltaY),i=n||o?e.deltaY:e.deltaX;for(let a=0;a<l.length;a++){const r=l[a];if(gi(r,o))return o?i<0&&r.scrollTop===0?!0:i>0&&r.scrollTop+r.clientHeight===r.scrollHeight:i<0&&r.scrollLeft===0?!0:i>0&&r.scrollLeft+r.clientWidth===r.scrollWidth}return!0}function Ml(e){e.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function rt(e){Tt!==!0&&(Tt=!0,requestAnimationFrame(()=>{Tt=!1;const{height:l}=e.target,{clientHeight:n,scrollTop:o}=document.scrollingElement;(Ue===void 0||l!==window.innerHeight)&&(Ue=n-l,document.scrollingElement.scrollTop=o),o>Ue&&(document.scrollingElement.scrollTop-=Math.ceil((o-Ue)/8))}))}function Ll(e){const l=document.body,n=window.visualViewport!==void 0;if(e==="add"){const{overflowY:o,overflowX:i}=window.getComputedStyle(l);Et=mi(window),Vt=vi(window),Tl=l.style.left,Rl=l.style.top,$l=window.location.href,l.style.left=`-${Et}px`,l.style.top=`-${Vt}px`,i!=="hidden"&&(i==="scroll"||l.scrollWidth>window.innerWidth)&&l.classList.add("q-body--force-scrollbar-x"),o!=="hidden"&&(o==="scroll"||l.scrollHeight>window.innerHeight)&&l.classList.add("q-body--force-scrollbar-y"),l.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,ue.is.ios===!0&&(n===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",rt,ne.passiveCapture),window.visualViewport.addEventListener("scroll",rt,ne.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",Ml,ne.passiveCapture))}ue.is.desktop===!0&&ue.is.mac===!0&&window[`${e}EventListener`]("wheel",_i,ne.notPassive),e==="remove"&&(ue.is.ios===!0&&(n===!0?(window.visualViewport.removeEventListener("resize",rt,ne.passiveCapture),window.visualViewport.removeEventListener("scroll",rt,ne.passiveCapture)):window.removeEventListener("scroll",Ml,ne.passiveCapture)),l.classList.remove("q-body--prevent-scroll"),l.classList.remove("q-body--force-scrollbar-x"),l.classList.remove("q-body--force-scrollbar-y"),document.qScrollPrevented=!1,l.style.left=Tl,l.style.top=Rl,window.location.href===$l&&window.scrollTo(Et,Vt),Ue=void 0)}function Vi(e){let l="add";if(e===!0){if(We++,xe!==null){clearTimeout(xe),xe=null;return}if(We>1)return}else{if(We===0||(We--,We>0))return;if(l="remove",ue.is.ios===!0&&ue.is.nativeMobile===!0){xe!==null&&clearTimeout(xe),xe=setTimeout(()=>{Ll(l),xe=null},100);return}}Ll(l)}function Ti(){let e;return{preventBodyScroll(l){l!==e&&(e!==void 0||l===!0)&&(e=l,Vi(l))}}}let st=0;const Ri={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"},Al={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},$i=ae({name:"QDialog",inheritAttrs:!1,props:{...fn,...gn,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:[...vn,"shake","click","escapeKey"],setup(e,{slots:l,emit:n,attrs:o}){const i=t.getCurrentInstance(),a=t.ref(null),r=t.ref(!1),s=t.ref(!1);let h=null,p=null,c,b;const v=t.computed(()=>e.persistent!==!0&&e.noRouteDismiss!==!0&&e.seamless!==!0),{preventBodyScroll:d}=Ti(),{registerTimeout:m}=yn(),{registerTick:x,removeTick:g}=bn(),{transitionProps:A,transitionStyle:V}=pn(e,()=>Al[e.position][0],()=>Al[e.position][1]),S=t.computed(()=>V.value+(e.backdropFilter!==void 0?`;backdrop-filter:${e.backdropFilter};-webkit-backdrop-filter:${e.backdropFilter}`:"")),{showPortal:M,hidePortal:R,portalIsAccessible:E,renderPortal:L}=hn(i,a,X,"dialog"),{hide:O}=mn({showing:r,hideOnRouteChange:v,handleShow:F,handleHide:Q,processOnMount:!0}),{addToHistory:D,removeFromHistory:Y}=Bi(r,O),K=t.computed(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${e.maximized===!0?"maximized":"minimized"} q-dialog__inner--${e.position} ${Ri[e.position]}`+(s.value===!0?" q-dialog__inner--animating":"")+(e.fullWidth===!0?" q-dialog__inner--fullwidth":"")+(e.fullHeight===!0?" q-dialog__inner--fullheight":"")+(e.square===!0?" q-dialog__inner--square":"")),$=t.computed(()=>r.value===!0&&e.seamless!==!0),N=t.computed(()=>e.autoClose===!0?{onClick:w}:{}),_=t.computed(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${$.value===!0?"modal":"seamless"}`,o.class]);t.watch(()=>e.maximized,k=>{r.value===!0&&f(k)}),t.watch($,k=>{d(k),k===!0?(Wt(H),Sn(z)):(ft(H),dt(z))});function F(k){D(),p=e.noRefocus===!1&&document.activeElement!==null?document.activeElement:null,f(e.maximized),M(),s.value=!0,e.noFocus!==!0?(document.activeElement!==null&&document.activeElement.blur(),x(le)):g(),m(()=>{if(i.proxy.$q.platform.is.ios===!0){if(e.seamless!==!0&&document.activeElement){const{top:T,bottom:j}=document.activeElement.getBoundingClientRect(),{innerHeight:y}=window,G=window.visualViewport!==void 0?window.visualViewport.height:y;T>0&&j>G/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-G,j>=y?1/0:Math.ceil(document.scrollingElement.scrollTop+j-G/2))),document.activeElement.scrollIntoView()}b=!0,a.value.click(),b=!1}M(!0),s.value=!1,n("show",k)},e.transitionDuration)}function Q(k){g(),Y(),oe(!0),s.value=!0,R(),p!==null&&(((k&&k.type.indexOf("key")===0?p.closest('[tabindex]:not([tabindex^="-"])'):void 0)||p).focus(),p=null),m(()=>{R(!0),s.value=!1,n("hide",k)},e.transitionDuration)}function le(k){jt(()=>{let T=a.value;if(T!==null){if(k!==void 0){const j=T.querySelector(k);if(j!==null){j.focus({preventScroll:!0});return}}T.contains(document.activeElement)!==!0&&(T=T.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||T.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||T.querySelector("[autofocus], [data-autofocus]")||T,T.focus({preventScroll:!0}))}})}function B(k){k&&typeof k.focus=="function"?k.focus({preventScroll:!0}):le(),n("shake");const T=a.value;T!==null&&(T.classList.remove("q-animate--scale"),T.classList.add("q-animate--scale"),h!==null&&clearTimeout(h),h=setTimeout(()=>{h=null,a.value!==null&&(T.classList.remove("q-animate--scale"),le())},170))}function z(){e.seamless!==!0&&(e.persistent===!0||e.noEscDismiss===!0?e.maximized!==!0&&e.noShake!==!0&&B():(n("escapeKey"),O()))}function oe(k){h!==null&&(clearTimeout(h),h=null),(k===!0||r.value===!0)&&(f(!1),e.seamless!==!0&&(d(!1),ft(H),dt(z))),k!==!0&&(p=null)}function f(k){k===!0?c!==!0&&(st<1&&document.body.classList.add("q-body--dialog"),st++,c=!0):c===!0&&(st<2&&document.body.classList.remove("q-body--dialog"),st--,c=!1)}function w(k){b!==!0&&(O(k),n("click",k))}function P(k){e.persistent!==!0&&e.noBackdropDismiss!==!0?O(k):e.noShake!==!0&&B()}function H(k){e.allowFocusOutside!==!0&&E.value===!0&&Kl(a.value,k.target)!==!0&&le('[tabindex]:not([tabindex="-1"])')}Object.assign(i.proxy,{focus:le,shake:B,__updateRefocusTarget(k){p=k||null}}),t.onBeforeUnmount(oe);function X(){return t.h("div",{role:"dialog","aria-modal":$.value===!0?"true":"false",...o,class:_.value},[t.h(t.Transition,{name:"q-transition--fade",appear:!0},()=>$.value===!0?t.h("div",{class:"q-dialog__backdrop fixed-full",style:S.value,"aria-hidden":"true",tabindex:-1,onClick:P}):null),t.h(t.Transition,A.value,()=>r.value===!0?t.h("div",{ref:a,class:K.value,style:V.value,tabindex:-1,...N.value},me(l.default)):null)])}return L}});let ht=!1;{const e=document.createElement("div");e.setAttribute("dir","rtl"),Object.assign(e.style,{width:"1px",height:"1px",overflow:"auto"});const l=document.createElement("div");Object.assign(l.style,{width:"1000px",height:"1px"}),document.body.appendChild(e),e.appendChild(l),e.scrollLeft=-1e3,ht=e.scrollLeft>=0,e.remove()}const se=1e3,Mi=["start","center","end","start-force","center-force","end-force"],Cn=Array.prototype.filter,Li=window.getComputedStyle(document.body).overflowAnchor===void 0?lo:function(e,l){e!==null&&(e._qOverflowAnimationFrame!==void 0&&cancelAnimationFrame(e._qOverflowAnimationFrame),e._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(e===null)return;e._qOverflowAnimationFrame=void 0;const n=e.children||[];Cn.call(n,i=>i.dataset&&i.dataset.qVsAnchor!==void 0).forEach(i=>{delete i.dataset.qVsAnchor});const o=n[l];o&&o.dataset&&(o.dataset.qVsAnchor="")}))};function Fe(e,l){return e+l}function Rt(e,l,n,o,i,a,r,s){const h=e===window?document.scrollingElement||document.documentElement:e,p=i===!0?"offsetWidth":"offsetHeight",c={scrollStart:0,scrollViewSize:-r-s,scrollMaxSize:0,offsetStart:-r,offsetEnd:-s};if(i===!0?(e===window?(c.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,c.scrollViewSize+=document.documentElement.clientWidth):(c.scrollStart=h.scrollLeft,c.scrollViewSize+=h.clientWidth),c.scrollMaxSize=h.scrollWidth,a===!0&&(c.scrollStart=(ht===!0?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=h.scrollTop,c.scrollViewSize+=h.clientHeight),c.scrollMaxSize=h.scrollHeight),n!==null)for(let b=n.previousElementSibling;b!==null;b=b.previousElementSibling)b.classList.contains("q-virtual-scroll--skip")===!1&&(c.offsetStart+=b[p]);if(o!==null)for(let b=o.nextElementSibling;b!==null;b=b.nextElementSibling)b.classList.contains("q-virtual-scroll--skip")===!1&&(c.offsetEnd+=b[p]);if(l!==e){const b=h.getBoundingClientRect(),v=l.getBoundingClientRect();i===!0?(c.offsetStart+=v.left-b.left,c.offsetEnd-=v.width):(c.offsetStart+=v.top-b.top,c.offsetEnd-=v.height),e!==window&&(c.offsetStart+=c.scrollStart),c.offsetEnd+=c.scrollMaxSize-c.offsetStart}return c}function Ol(e,l,n,o){l==="end"&&(l=(e===window?document.body:e)[n===!0?"scrollWidth":"scrollHeight"]),e===window?n===!0?(o===!0&&(l=(ht===!0?document.body.scrollWidth-document.documentElement.clientWidth:0)-l),window.scrollTo(l,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,l):n===!0?(o===!0&&(l=(ht===!0?e.scrollWidth-e.offsetWidth:0)-l),e.scrollLeft=l):e.scrollTop=l}function Ke(e,l,n,o){if(n>=o)return 0;const i=l.length,a=Math.floor(n/se),r=Math.floor((o-1)/se)+1;let s=e.slice(a,r).reduce(Fe,0);return n%se!==0&&(s-=l.slice(a*se,n).reduce(Fe,0)),o%se!==0&&o!==i&&(s-=l.slice(o,r*se).reduce(Fe,0)),s}const Ai={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]},zl={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,...Ai};function Oi({virtualScrollLength:e,getVirtualScrollTarget:l,getVirtualScrollEl:n,virtualScrollItemSizeComputed:o}){const i=t.getCurrentInstance(),{props:a,emit:r,proxy:s}=i,{$q:h}=s;let p,c,b,v=[],d;const m=t.ref(0),x=t.ref(0),g=t.ref({}),A=t.ref(null),V=t.ref(null),S=t.ref(null),M=t.ref({from:0,to:0}),R=t.computed(()=>a.tableColspan!==void 0?a.tableColspan:100);o===void 0&&(o=t.computed(()=>a.virtualScrollItemSize));const E=t.computed(()=>o.value+";"+a.virtualScrollHorizontal),L=t.computed(()=>E.value+";"+a.virtualScrollSliceRatioBefore+";"+a.virtualScrollSliceRatioAfter);t.watch(L,()=>{Q()}),t.watch(E,O);function O(){F(c,!0)}function D(f){F(f===void 0?c:f)}function Y(f,w){const P=l();if(P==null||P.nodeType===8)return;const H=Rt(P,n(),A.value,V.value,a.virtualScrollHorizontal,h.lang.rtl,a.virtualScrollStickySizeStart,a.virtualScrollStickySizeEnd);b!==H.scrollViewSize&&Q(H.scrollViewSize),$(P,H,Math.min(e.value-1,Math.max(0,parseInt(f,10)||0)),0,Mi.indexOf(w)!==-1?w:c!==-1&&f>c?"end":"start")}function K(){const f=l();if(f==null||f.nodeType===8)return;const w=Rt(f,n(),A.value,V.value,a.virtualScrollHorizontal,h.lang.rtl,a.virtualScrollStickySizeStart,a.virtualScrollStickySizeEnd),P=e.value-1,H=w.scrollMaxSize-w.offsetStart-w.offsetEnd-x.value;if(p===w.scrollStart)return;if(w.scrollMaxSize<=0){$(f,w,0,0);return}b!==w.scrollViewSize&&Q(w.scrollViewSize),N(M.value.from);const X=Math.floor(w.scrollMaxSize-Math.max(w.scrollViewSize,w.offsetEnd)-Math.min(d[P],w.scrollViewSize/2));if(X>0&&Math.ceil(w.scrollStart)>=X){$(f,w,P,w.scrollMaxSize-w.offsetEnd-v.reduce(Fe,0));return}let k=0,T=w.scrollStart-w.offsetStart,j=T;if(T<=H&&T+w.scrollViewSize>=m.value)T-=m.value,k=M.value.from,j=T;else for(let y=0;T>=v[y]&&k<P;y++)T-=v[y],k+=se;for(;T>0&&k<P;)T-=d[k],T>-w.scrollViewSize?(k++,j=T):j=d[k]+T;$(f,w,k,j)}function $(f,w,P,H,X){const k=typeof X=="string"&&X.indexOf("-force")!==-1,T=k===!0?X.replace("-force",""):X,j=T!==void 0?T:"start";let y=Math.max(0,P-g.value[j]),G=y+g.value.total;G>e.value&&(G=e.value,y=Math.max(0,G-g.value.total)),p=w.scrollStart;const de=y!==M.value.from||G!==M.value.to;if(de===!1&&T===void 0){B(P);return}const{activeElement:Te}=document,fe=S.value;de===!0&&fe!==null&&fe!==Te&&fe.contains(Te)===!0&&(fe.addEventListener("focusout",_),setTimeout(()=>{fe!==null&&fe.removeEventListener("focusout",_)})),Li(fe,P-y);const Je=T!==void 0?d.slice(y,P).reduce(Fe,0):0;if(de===!0){const ye=G>=M.value.from&&y<=M.value.to?M.value.to:G;M.value={from:y,to:ye},m.value=Ke(v,d,0,y),x.value=Ke(v,d,G,e.value),requestAnimationFrame(()=>{M.value.to!==G&&p===w.scrollStart&&(M.value={from:M.value.from,to:G},x.value=Ke(v,d,G,e.value))})}requestAnimationFrame(()=>{if(p!==w.scrollStart)return;de===!0&&N(y);const ye=d.slice(y,P).reduce(Fe,0),we=ye+w.offsetStart+m.value,et=we+d[P];let De=we+H;if(T!==void 0){const bt=ye-Je,je=w.scrollStart+bt;De=k!==!0&&je<we&&et<je+w.scrollViewSize?je:T==="end"?et-w.scrollViewSize:we-(T==="start"?0:Math.round((w.scrollViewSize-d[P])/2))}p=De,Ol(f,De,a.virtualScrollHorizontal,h.lang.rtl),B(P)})}function N(f){const w=S.value;if(w){const P=Cn.call(w.children,y=>y.classList&&y.classList.contains("q-virtual-scroll--skip")===!1),H=P.length,X=a.virtualScrollHorizontal===!0?y=>y.getBoundingClientRect().width:y=>y.offsetHeight;let k=f,T,j;for(let y=0;y<H;){for(T=X(P[y]),y++;y<H&&P[y].classList.contains("q-virtual-scroll--with-prev")===!0;)T+=X(P[y]),y++;j=T-d[k],j!==0&&(d[k]+=j,v[Math.floor(k/se)]+=j),k++}}}function _(){S.value!==null&&S.value!==void 0&&S.value.focus()}function F(f,w){const P=1*o.value;(w===!0||Array.isArray(d)===!1)&&(d=[]);const H=d.length;d.length=e.value;for(let k=e.value-1;k>=H;k--)d[k]=P;const X=Math.floor((e.value-1)/se);v=[];for(let k=0;k<=X;k++){let T=0;const j=Math.min((k+1)*se,e.value);for(let y=k*se;y<j;y++)T+=d[y];v.push(T)}c=-1,p=void 0,m.value=Ke(v,d,0,M.value.from),x.value=Ke(v,d,M.value.to,e.value),f>=0?(N(M.value.from),t.nextTick(()=>{Y(f)})):z()}function Q(f){if(f===void 0&&typeof window<"u"){const T=l();T!=null&&T.nodeType!==8&&(f=Rt(T,n(),A.value,V.value,a.virtualScrollHorizontal,h.lang.rtl,a.virtualScrollStickySizeStart,a.virtualScrollStickySizeEnd).scrollViewSize)}b=f;const w=parseFloat(a.virtualScrollSliceRatioBefore)||0,P=parseFloat(a.virtualScrollSliceRatioAfter)||0,H=1+w+P,X=f===void 0||f<=0?1:Math.ceil(f/o.value),k=Math.max(1,X,Math.ceil((a.virtualScrollSliceSize>0?a.virtualScrollSliceSize:10)/H));g.value={total:Math.ceil(k*H),start:Math.ceil(k*w),center:Math.ceil(k*(.5+w)),end:Math.ceil(k*(1+w)),view:X}}function le(f,w){const P=a.virtualScrollHorizontal===!0?"width":"height",H={["--q-virtual-scroll-item-"+P]:o.value+"px"};return[f==="tbody"?t.h(f,{class:"q-virtual-scroll__padding",key:"before",ref:A},[t.h("tr",[t.h("td",{style:{[P]:`${m.value}px`,...H},colspan:R.value})])]):t.h(f,{class:"q-virtual-scroll__padding",key:"before",ref:A,style:{[P]:`${m.value}px`,...H}}),t.h(f,{class:"q-virtual-scroll__content",key:"content",ref:S,tabindex:-1},w.flat()),f==="tbody"?t.h(f,{class:"q-virtual-scroll__padding",key:"after",ref:V},[t.h("tr",[t.h("td",{style:{[P]:`${x.value}px`,...H},colspan:R.value})])]):t.h(f,{class:"q-virtual-scroll__padding",key:"after",ref:V,style:{[P]:`${x.value}px`,...H}})]}function B(f){c!==f&&(a.onVirtualScroll!==void 0&&r("virtualScroll",{index:f,from:M.value.from,to:M.value.to-1,direction:f<c?"decrease":"increase",ref:s}),c=f)}Q();const z=an(K,h.platform.is.ios===!0?120:35);t.onBeforeMount(()=>{Q()});let oe=!1;return t.onDeactivated(()=>{oe=!0}),t.onActivated(()=>{if(oe!==!0)return;const f=l();p!==void 0&&f!==void 0&&f!==null&&f.nodeType!==8?Ol(f,p,a.virtualScrollHorizontal,h.lang.rtl):Y(c)}),t.onBeforeUnmount(()=>{z.cancel()}),Object.assign(s,{scrollTo:Y,reset:O,refresh:D}),{virtualScrollSliceRange:M,virtualScrollSliceSizeComputed:g,setVirtualScrollSize:Q,onVirtualScrollEvt:z,localResetVirtualScroll:F,padVirtualScroll:le,scrollTo:Y,reset:O,refresh:D}}const zi=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,Pi=/[\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,Ii=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,Fi=/[a-z0-9_ -]$/i;function Hi(e){return function(n){if(n.type==="compositionend"||n.type==="change"){if(n.target.qComposing!==!0)return;n.target.qComposing=!1,e(n)}else n.type==="compositionupdate"&&n.target.qComposing!==!0&&typeof n.data=="string"&&(ue.is.firefox===!0?Fi.test(n.data)===!1:zi.test(n.data)===!0||Pi.test(n.data)===!0||Ii.test(n.data)===!0)===!0&&(n.target.qComposing=!0)}}function be(e,l){if(e===l)return!0;if(e!==null&&l!==null&&typeof e=="object"&&typeof l=="object"){if(e.constructor!==l.constructor)return!1;let n,o;if(e.constructor===Array){if(n=e.length,n!==l.length)return!1;for(o=n;o--!==0;)if(be(e[o],l[o])!==!0)return!1;return!0}if(e.constructor===Map){if(e.size!==l.size)return!1;let a=e.entries();for(o=a.next();o.done!==!0;){if(l.has(o.value[0])!==!0)return!1;o=a.next()}for(a=e.entries(),o=a.next();o.done!==!0;){if(be(o.value[1],l.get(o.value[0]))!==!0)return!1;o=a.next()}return!0}if(e.constructor===Set){if(e.size!==l.size)return!1;const a=e.entries();for(o=a.next();o.done!==!0;){if(l.has(o.value[0])!==!0)return!1;o=a.next()}return!0}if(e.buffer!=null&&e.buffer.constructor===ArrayBuffer){if(n=e.length,n!==l.length)return!1;for(o=n;o--!==0;)if(e[o]!==l[o])return!1;return!0}if(e.constructor===RegExp)return e.source===l.source&&e.flags===l.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===l.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===l.toString();const i=Object.keys(e).filter(a=>e[a]!==void 0);if(n=i.length,n!==Object.keys(l).filter(a=>l[a]!==void 0).length)return!1;for(o=n;o--!==0;){const a=i[o];if(be(e[a],l[a])!==!0)return!1}return!0}return e!==e&&l!==l}function Pl(e,l,n){if(n<=l)return l;const o=n-l+1;let i=l+(e-l)%o;return i<l&&(i=o+i),i===0?0:i}const Il=e=>["add","add-unique","toggle"].includes(e),Di=".*+?^${}()|[]\\",ji=Object.keys(Nt);function $t(e,l){if(typeof e=="function")return e;const n=e!==void 0?e:l;return o=>o!==null&&typeof o=="object"&&n in o?o[n]:o}const Ni=ae({name:"QSelect",inheritAttrs:!1,props:{...zl,...ln,...Nt,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:Il},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:zl.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...sn,"add","remove","inputValue","keyup","keypress","keydown","popupShow","popupHide","filterAbort"],setup(e,{slots:l,emit:n}){const{proxy:o}=t.getCurrentInstance(),{$q:i}=o,a=t.ref(!1),r=t.ref(!1),s=t.ref(-1),h=t.ref(""),p=t.ref(!1),c=t.ref(!1);let b=null,v=null,d,m,x,g=null,A,V,S,M;const R=t.ref(null),E=t.ref(null),L=t.ref(null),O=t.ref(null),D=t.ref(null),Y=Bo(e),K=Hi(tl),$=t.computed(()=>Array.isArray(e.options)?e.options.length:0),N=t.computed(()=>e.virtualScrollItemSize===void 0?e.optionsDense===!0?24:48:e.virtualScrollItemSize),{virtualScrollSliceRange:_,virtualScrollSliceSizeComputed:F,localResetVirtualScroll:Q,padVirtualScroll:le,onVirtualScrollEvt:B,scrollTo:z,setVirtualScrollSize:oe}=Oi({virtualScrollLength:$,getVirtualScrollTarget:En,getVirtualScrollEl:Jt,virtualScrollItemSizeComputed:N}),f=cn(),w=t.computed(()=>{const u=e.mapOptions===!0&&e.multiple!==!0,C=e.modelValue!==void 0&&(e.modelValue!==null||u===!0)?e.multiple===!0&&Array.isArray(e.modelValue)?e.modelValue:[e.modelValue]:[];if(e.mapOptions===!0&&Array.isArray(e.options)===!0){const q=e.mapOptions===!0&&d!==void 0?d:[],I=C.map(U=>_n(U,q));return e.modelValue===null&&u===!0?I.filter(U=>U!==null):I}return C}),P=t.computed(()=>{const u={};return ji.forEach(C=>{const q=e[C];q!==void 0&&(u[C]=q)}),u}),H=t.computed(()=>e.optionsDark===null?f.isDark.value:e.optionsDark),X=t.computed(()=>It(w.value)),k=t.computed(()=>{let u="q-field__input q-placeholder col";return e.hideSelected===!0||w.value.length===0?[u,e.inputClass]:(u+=" q-field__input--padding",e.inputClass===void 0?u:[u,e.inputClass])}),T=t.computed(()=>(e.virtualScrollHorizontal===!0?"q-virtual-scroll--horizontal":"")+(e.popupContentClass?" "+e.popupContentClass:"")),j=t.computed(()=>$.value===0),y=t.computed(()=>w.value.map(u=>ie.value(u)).join(", ")),G=t.computed(()=>e.displayValue!==void 0?e.displayValue:y.value),de=t.computed(()=>e.optionsHtml===!0?()=>!0:u=>u!=null&&u.html===!0),Te=t.computed(()=>e.displayValueHtml===!0||e.displayValue===void 0&&(e.optionsHtml===!0||w.value.some(de.value))),fe=t.computed(()=>f.focused.value===!0?e.tabindex:-1),Je=t.computed(()=>{const u={tabindex:e.tabindex,role:"combobox","aria-label":e.label,"aria-readonly":e.readonly===!0?"true":"false","aria-autocomplete":e.useInput===!0?"list":"none","aria-expanded":a.value===!0?"true":"false","aria-controls":`${f.targetUid.value}_lb`};return s.value>=0&&(u["aria-activedescendant"]=`${f.targetUid.value}_${s.value}`),u}),ye=t.computed(()=>({id:`${f.targetUid.value}_lb`,role:"listbox","aria-multiselectable":e.multiple===!0?"true":"false"})),we=t.computed(()=>w.value.map((u,C)=>({index:C,opt:u,html:de.value(u),selected:!0,removeAtIndex:Bn,toggleOption:Se,tabindex:fe.value}))),et=t.computed(()=>{if($.value===0)return[];const{from:u,to:C}=_.value;return e.options.slice(u,C).map((q,I)=>{const U=Re.value(q)===!0,W=wt(q)===!0,ee=u+I,Z={clickable:!0,active:W,activeClass:je.value,manualFocus:!0,focused:!1,disable:U,tabindex:-1,dense:e.optionsDense,dark:H.value,role:"option","aria-selected":W===!0?"true":"false",id:`${f.targetUid.value}_${ee}`,onClick:()=>{Se(q)}};return U!==!0&&(s.value===ee&&(Z.focused=!0),i.platform.is.desktop===!0&&(Z.onMousemove=()=>{a.value===!0&&$e(ee)})),{index:ee,opt:q,html:de.value(q),label:ie.value(q),selected:Z.active,focused:Z.focused,toggleOption:Se,setOptionIndex:$e,itemProps:Z}})}),De=t.computed(()=>e.dropdownIcon!==void 0?e.dropdownIcon:i.iconSet.arrow.dropdown),bt=t.computed(()=>e.optionsCover===!1&&e.outlined!==!0&&e.standout!==!0&&e.borderless!==!0&&e.rounded!==!0),je=t.computed(()=>e.optionsSelectedClass!==void 0?e.optionsSelectedClass:e.color!==void 0?`text-${e.color}`:""),ve=t.computed(()=>$t(e.optionValue,"value")),ie=t.computed(()=>$t(e.optionLabel,"label")),Re=t.computed(()=>$t(e.optionDisable,"disable")),tt=t.computed(()=>w.value.map(ve.value)),qn=t.computed(()=>{const u={onInput:tl,onChange:K,onKeydown:Zt,onKeyup:Yt,onKeypress:Gt,onFocus:Qt,onClick(C){m===!0&&pe(C)}};return u.onCompositionstart=u.onCompositionupdate=u.onCompositionend=K,u});t.watch(w,u=>{d=u,e.useInput===!0&&e.fillInput===!0&&e.multiple!==!0&&f.innerLoading.value!==!0&&(r.value!==!0&&a.value!==!0||X.value!==!0)&&(x!==!0&&Oe(),(r.value===!0||a.value===!0)&&Me(""))},{immediate:!0}),t.watch(()=>e.fillInput,Oe),t.watch(a,St),t.watch($,Fn);function Kt(u){return e.emitValue===!0?ve.value(u):u}function yt(u){if(u!==-1&&u<w.value.length)if(e.multiple===!0){const C=e.modelValue.slice();n("remove",{index:u,value:C.splice(u,1)[0]}),n("update:modelValue",C)}else n("update:modelValue",null)}function Bn(u){yt(u),f.focus()}function Ut(u,C){const q=Kt(u);if(e.multiple!==!0){e.fillInput===!0&&Ne(ie.value(u),!0,!0),n("update:modelValue",q);return}if(w.value.length===0){n("add",{index:0,value:q}),n("update:modelValue",e.multiple===!0?[q]:q);return}if(C===!0&&wt(u)===!0||e.maxValues!==void 0&&e.modelValue.length>=e.maxValues)return;const I=e.modelValue.slice();n("add",{index:I.length,value:q}),I.push(q),n("update:modelValue",I)}function Se(u,C){if(f.editable.value!==!0||u===void 0||Re.value(u)===!0)return;const q=ve.value(u);if(e.multiple!==!0){C!==!0&&(Ne(e.fillInput===!0?ie.value(u):"",!0,!0),ke()),E.value!==null&&E.value.focus(),(w.value.length===0||be(ve.value(w.value[0]),q)!==!0)&&n("update:modelValue",e.emitValue===!0?q:u);return}if((m!==!0||p.value===!0)&&f.focus(),Qt(),w.value.length===0){const W=e.emitValue===!0?q:u;n("add",{index:0,value:W}),n("update:modelValue",e.multiple===!0?[W]:W);return}const I=e.modelValue.slice(),U=tt.value.findIndex(W=>be(W,q));if(U!==-1)n("remove",{index:U,value:I.splice(U,1)[0]});else{if(e.maxValues!==void 0&&I.length>=e.maxValues)return;const W=e.emitValue===!0?q:u;n("add",{index:I.length,value:W}),I.push(W)}n("update:modelValue",I)}function $e(u){if(i.platform.is.desktop!==!0)return;const C=u!==-1&&u<$.value?u:-1;s.value!==C&&(s.value=C)}function lt(u=1,C){if(a.value===!0){let q=s.value;do q=Pl(q+u,-1,$.value-1);while(q!==-1&&q!==s.value&&Re.value(e.options[q])===!0);s.value!==q&&($e(q),z(q),C!==!0&&e.useInput===!0&&e.fillInput===!0&&nt(q>=0?ie.value(e.options[q]):A,!0))}}function _n(u,C){const q=I=>be(ve.value(I),u);return e.options.find(q)||C.find(q)||u}function wt(u){const C=ve.value(u);return tt.value.find(q=>be(q,C))!==void 0}function Qt(u){e.useInput===!0&&E.value!==null&&(u===void 0||E.value===u.target&&u.target.value===y.value)&&E.value.select()}function Xt(u){Ve(u,27)===!0&&a.value===!0&&(pe(u),ke(),Oe()),n("keyup",u)}function Yt(u){const{value:C}=u.target;if(u.keyCode!==void 0){Xt(u);return}if(u.target.value="",b!==null&&(clearTimeout(b),b=null),v!==null&&(clearTimeout(v),v=null),Oe(),typeof C=="string"&&C.length!==0){const q=C.toLocaleLowerCase(),I=W=>{const ee=e.options.find(Z=>String(W.value(Z)).toLocaleLowerCase()===q);return ee===void 0?!1:(w.value.indexOf(ee)===-1?Se(ee):ke(),!0)},U=W=>{I(ve)!==!0&&W!==!0&&I(ie)!==!0&&Me(C,!0,()=>U(!0))};U()}else f.clearValue(u)}function Gt(u){n("keypress",u)}function Zt(u){if(n("keydown",u),Xl(u)===!0)return;const C=h.value.length!==0&&(e.newValueMode!==void 0||e.onNewValue!==void 0),q=u.shiftKey!==!0&&e.disableTabSelection!==!0&&e.multiple!==!0&&(s.value!==-1||C===!0);if(u.keyCode===27){ce(u);return}if(u.keyCode===9&&q===!1){Le();return}if(u.target===void 0||u.target.id!==f.targetUid.value||f.editable.value!==!0)return;if(u.keyCode===40&&f.innerLoading.value!==!0&&a.value===!1){J(u),Ae();return}if(u.keyCode===8&&(e.useChips===!0||e.clearable===!0)&&e.hideSelected!==!0&&h.value.length===0){e.multiple===!0&&Array.isArray(e.modelValue)===!0?yt(e.modelValue.length-1):e.multiple!==!0&&e.modelValue!==null&&n("update:modelValue",null);return}(u.keyCode===35||u.keyCode===36)&&(typeof h.value!="string"||h.value.length===0)&&(J(u),s.value=-1,lt(u.keyCode===36?1:-1,e.multiple)),(u.keyCode===33||u.keyCode===34)&&F.value!==void 0&&(J(u),s.value=Math.max(-1,Math.min($.value,s.value+(u.keyCode===33?-1:1)*F.value.view)),lt(u.keyCode===33?1:-1,e.multiple)),(u.keyCode===38||u.keyCode===40)&&(J(u),lt(u.keyCode===38?-1:1,e.multiple));const I=$.value;if((S===void 0||M<Date.now())&&(S=""),I>0&&e.useInput!==!0&&u.key!==void 0&&u.key.length===1&&u.altKey===!1&&u.ctrlKey===!1&&u.metaKey===!1&&(u.keyCode!==32||S.length!==0)){a.value!==!0&&Ae(u);const U=u.key.toLocaleLowerCase(),W=S.length===1&&S[0]===U;M=Date.now()+1500,W===!1&&(J(u),S+=U);const ee=new RegExp("^"+S.split("").map(kt=>Di.indexOf(kt)!==-1?"\\"+kt:kt).join(".*"),"i");let Z=s.value;if(W===!0||Z<0||ee.test(ie.value(e.options[Z]))!==!0)do Z=Pl(Z+1,-1,I-1);while(Z!==s.value&&(Re.value(e.options[Z])===!0||ee.test(ie.value(e.options[Z]))!==!0));s.value!==Z&&t.nextTick(()=>{$e(Z),z(Z),Z>=0&&e.useInput===!0&&e.fillInput===!0&&nt(ie.value(e.options[Z]),!0)});return}if(!(u.keyCode!==13&&(u.keyCode!==32||e.useInput===!0||S!=="")&&(u.keyCode!==9||q===!1))){if(u.keyCode!==9&&J(u),s.value!==-1&&s.value<I){Se(e.options[s.value]);return}if(C===!0){const U=(W,ee)=>{if(ee){if(Il(ee)!==!0)return}else ee=e.newValueMode;if(Ne("",e.multiple!==!0,!0),W==null)return;(ee==="toggle"?Se:Ut)(W,ee==="add-unique"),e.multiple!==!0&&(E.value!==null&&E.value.focus(),ke())};if(e.onNewValue!==void 0?n("newValue",h.value,U):U(h.value),e.multiple!==!0)return}a.value===!0?Le():f.innerLoading.value!==!0&&Ae()}}function Jt(){return m===!0?D.value:L.value!==null&&L.value.contentEl!==null?L.value.contentEl:void 0}function En(){return Jt()}function Vn(){return e.hideSelected===!0?[]:l["selected-item"]!==void 0?we.value.map(u=>l["selected-item"](u)).slice():l.selected!==void 0?[].concat(l.selected()):e.useChips===!0?we.value.map((u,C)=>t.h(Go,{key:"option-"+C,removable:f.editable.value===!0&&Re.value(u.opt)!==!0,dense:!0,textColor:e.color,tabindex:fe.value,onRemove(){u.removeAtIndex(C)}},()=>t.h("span",{class:"ellipsis",[u.html===!0?"innerHTML":"textContent"]:ie.value(u.opt)}))):[t.h("span",{[Te.value===!0?"innerHTML":"textContent"]:G.value})]}function el(){if(j.value===!0)return l["no-option"]!==void 0?l["no-option"]({inputValue:h.value}):void 0;const u=l.option!==void 0?l.option:q=>t.h(on,{key:q.index,...q.itemProps},()=>t.h(ct,()=>t.h(nn,()=>t.h("span",{[q.html===!0?"innerHTML":"textContent"]:q.label}))));let C=le("div",et.value.map(u));return l["before-options"]!==void 0&&(C=l["before-options"]().concat(C)),Ce(l["after-options"],C)}function Tn(u,C){const q=C===!0?{...Je.value,...f.splitAttrs.attributes.value}:void 0,I={ref:C===!0?E:void 0,key:"i_t",class:k.value,style:e.inputStyle,value:h.value!==void 0?h.value:"",type:"search",...q,id:C===!0?f.targetUid.value:void 0,maxlength:e.maxlength,autocomplete:e.autocomplete,"data-autofocus":u===!0||e.autofocus===!0||void 0,disabled:e.disable===!0,readonly:e.readonly===!0,...qn.value};return u!==!0&&m===!0&&(Array.isArray(I.class)===!0?I.class=[...I.class,"no-pointer-events"]:I.class+=" no-pointer-events"),t.h("input",I)}function tl(u){b!==null&&(clearTimeout(b),b=null),v!==null&&(clearTimeout(v),v=null),!(u&&u.target&&u.target.qComposing===!0)&&(nt(u.target.value||""),x=!0,A=h.value,f.focused.value!==!0&&(m!==!0||p.value===!0)&&f.focus(),e.onFilter!==void 0&&(b=setTimeout(()=>{b=null,Me(h.value)},e.inputDebounce)))}function nt(u,C){h.value!==u&&(h.value=u,C===!0||e.inputDebounce===0||e.inputDebounce==="0"?n("inputValue",u):v=setTimeout(()=>{v=null,n("inputValue",u)},e.inputDebounce))}function Ne(u,C,q){x=q!==!0,e.useInput===!0&&(nt(u,!0),(C===!0||q!==!0)&&(A=u),C!==!0&&Me(u))}function Me(u,C,q){if(e.onFilter===void 0||C!==!0&&f.focused.value!==!0)return;f.innerLoading.value===!0?n("filterAbort"):(f.innerLoading.value=!0,c.value=!0),u!==""&&e.multiple!==!0&&w.value.length!==0&&x!==!0&&u===ie.value(w.value[0])&&(u="");const I=setTimeout(()=>{a.value===!0&&(a.value=!1)},10);g!==null&&clearTimeout(g),g=I,n("filter",u,(U,W)=>{(C===!0||f.focused.value===!0)&&g===I&&(clearTimeout(g),typeof U=="function"&&U(),c.value=!1,t.nextTick(()=>{f.innerLoading.value=!1,f.editable.value===!0&&(C===!0?a.value===!0&&ke():a.value===!0?St(!0):a.value=!0),typeof W=="function"&&t.nextTick(()=>{W(o)}),typeof q=="function"&&t.nextTick(()=>{q(o)})}))},()=>{f.focused.value===!0&&g===I&&(clearTimeout(g),f.innerLoading.value=!1,c.value=!1),a.value===!0&&(a.value=!1)})}function Rn(){return t.h(qi,{ref:L,class:T.value,style:e.popupContentStyle,modelValue:a.value,fit:e.menuShrink!==!0,cover:e.optionsCover===!0&&j.value!==!0&&e.useInput!==!0,anchor:e.menuAnchor,self:e.menuSelf,offset:e.menuOffset,dark:H.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,noRouteDismiss:e.popupNoRouteDismiss,square:bt.value,transitionShow:e.transitionShow,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,separateClosePopup:!0,...ye.value,onScrollPassive:B,onBeforeShow:nl,onBeforeHide:$n,onShow:Mn},el)}function $n(u){ol(u),Le()}function Mn(){oe()}function Ln(u){pe(u),E.value!==null&&E.value.focus(),p.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function An(u){pe(u),t.nextTick(()=>{p.value=!1})}function On(){const u=[t.h(Xo,{class:`col-auto ${f.fieldClass.value}`,...P.value,for:f.targetUid.value,dark:H.value,square:!0,loading:c.value,itemAligned:!1,filled:!0,stackLabel:h.value.length!==0,...f.splitAttrs.listeners.value,onFocus:Ln,onBlur:An},{...l,rawControl:()=>f.getControl(!0),before:void 0,after:void 0})];return a.value===!0&&u.push(t.h("div",{ref:D,class:T.value+" scroll",style:e.popupContentStyle,...ye.value,onClick:ce,onScrollPassive:B},el())),t.h($i,{ref:O,modelValue:r.value,position:e.useInput===!0?"top":void 0,transitionShow:V,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,noRouteDismiss:e.popupNoRouteDismiss,onBeforeShow:nl,onBeforeHide:zn,onHide:Pn,onShow:In},()=>t.h("div",{class:"q-select__dialog"+(H.value===!0?" q-select__dialog--dark q-dark":"")+(p.value===!0?" q-select__dialog--focused":"")},u))}function zn(u){ol(u),O.value!==null&&O.value.__updateRefocusTarget(f.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),f.focused.value=!1}function Pn(u){ke(),f.focused.value===!1&&n("blur",u),Oe()}function In(){const u=document.activeElement;(u===null||u.id!==f.targetUid.value)&&E.value!==null&&E.value!==u&&E.value.focus(),oe()}function Le(){r.value!==!0&&(s.value=-1,a.value===!0&&(a.value=!1),f.focused.value===!1&&(g!==null&&(clearTimeout(g),g=null),f.innerLoading.value===!0&&(n("filterAbort"),f.innerLoading.value=!1,c.value=!1)))}function Ae(u){f.editable.value===!0&&(m===!0?(f.onControlFocusin(u),r.value=!0,t.nextTick(()=>{f.focus()})):f.focus(),e.onFilter!==void 0?Me(h.value):(j.value!==!0||l["no-option"]!==void 0)&&(a.value=!0))}function ke(){r.value=!1,Le()}function Oe(){e.useInput===!0&&Ne(e.multiple!==!0&&e.fillInput===!0&&w.value.length!==0&&ie.value(w.value[0])||"",!0,!0)}function St(u){let C=-1;if(u===!0){if(w.value.length!==0){const q=ve.value(w.value[0]);C=e.options.findIndex(I=>be(ve.value(I),q))}Q(C)}$e(C)}function Fn(u,C){a.value===!0&&f.innerLoading.value===!1&&(Q(-1,!0),t.nextTick(()=>{a.value===!0&&f.innerLoading.value===!1&&(u>C?Q():St(!0))}))}function ll(){r.value===!1&&L.value!==null&&L.value.updatePosition()}function nl(u){u!==void 0&&pe(u),n("popupShow",u),f.hasPopupOpen=!0,f.onControlFocusin(u)}function ol(u){u!==void 0&&pe(u),n("popupHide",u),f.hasPopupOpen=!1,f.onControlFocusout(u)}function il(){m=i.platform.is.mobile!==!0&&e.behavior!=="dialog"?!1:e.behavior!=="menu"&&(e.useInput===!0?l["no-option"]!==void 0||e.onFilter!==void 0||j.value===!1:!0),V=i.platform.is.ios===!0&&m===!0&&e.useInput===!0?"fade":e.transitionShow}return t.onBeforeUpdate(il),t.onUpdated(ll),il(),t.onBeforeUnmount(()=>{b!==null&&clearTimeout(b),v!==null&&clearTimeout(v)}),Object.assign(o,{showPopup:Ae,hidePopup:ke,removeAtIndex:yt,add:Ut,toggleOption:Se,getOptionIndex:()=>s.value,setOptionIndex:$e,moveOptionSelection:lt,filter:Me,updateMenuPosition:ll,updateInputValue:Ne,isOptionSelected:wt,getEmittingOptionValue:Kt,isOptionDisabled:(...u)=>Re.value.apply(null,u)===!0,getOptionValue:(...u)=>ve.value.apply(null,u),getOptionLabel:(...u)=>ie.value.apply(null,u)}),Object.assign(f,{innerValue:w,fieldClass:t.computed(()=>`q-select q-field--auto-height q-select--with${e.useInput!==!0?"out":""}-input q-select--with${e.useChips!==!0?"out":""}-chips q-select--${e.multiple===!0?"multiple":"single"}`),inputRef:R,targetRef:E,hasValue:X,showPopup:Ae,floatingLabel:t.computed(()=>e.hideSelected!==!0&&X.value===!0||typeof h.value=="number"||h.value.length!==0||It(e.displayValue)),getControlChild:()=>{if(f.editable.value!==!1&&(r.value===!0||j.value!==!0||l["no-option"]!==void 0))return m===!0?On():Rn();f.hasPopupOpen===!0&&(f.hasPopupOpen=!1)},controlEvents:{onFocusin(u){f.onControlFocusin(u)},onFocusout(u){f.onControlFocusout(u,()=>{Oe(),Le()})},onClick(u){if(ce(u),m!==!0&&a.value===!0){Le(),E.value!==null&&E.value.focus();return}Ae(u)}},getControl:u=>{const C=Vn(),q=u===!0||r.value!==!0||m!==!0;if(e.useInput===!0)C.push(Tn(u,q));else if(f.editable.value===!0){const U=q===!0?Je.value:void 0;C.push(t.h("input",{ref:q===!0?E:void 0,key:"d_t",class:"q-select__focus-target",id:q===!0?f.targetUid.value:void 0,value:G.value,readonly:!0,"data-autofocus":u===!0||e.autofocus===!0||void 0,...U,onKeydown:Zt,onKeyup:Xt,onKeypress:Gt})),q===!0&&typeof e.autocomplete=="string"&&e.autocomplete.length!==0&&C.push(t.h("input",{class:"q-select__autocomplete-input",autocomplete:e.autocomplete,tabindex:-1,onKeyup:Yt}))}if(Y.value!==void 0&&e.disable!==!0&&tt.value.length!==0){const U=tt.value.map(W=>t.h("option",{value:W,selected:!0}));C.push(t.h("select",{class:"hidden",name:Y.value,multiple:e.multiple},U))}const I=e.useInput===!0||q!==!0?void 0:f.splitAttrs.attributes.value;return t.h("div",{class:"q-field__native row items-center",...I,...f.splitAttrs.listeners.value},C)},getInnerAppend:()=>e.loading!==!0&&c.value!==!0&&e.hideDropdownIcon!==!0?[t.h(ge,{class:"q-select__dropdown-icon"+(a.value===!0?" rotate-180":""),name:De.value})]:null}),dn(f)}}),Fl=e=>e?!0:"Обовʼязкове поле",Wi={class:"app-select__amount"},Ki=t.defineComponent({__name:"index",props:{modelValue:{},size:{default:he.MD},options:{},multiple:{type:Boolean},label:{},placeholder:{},required:{type:Boolean},clearable:{type:Boolean},disabled:{type:Boolean},loading:{type:Boolean},filtering:{type:Boolean},autofocus:{type:Boolean},rules:{},lazyRules:{type:[Boolean,String]}},emits:["update:modelValue"],setup(e,{emit:l}){const n=e,o=l,i=t.ref(!1),a=t.ref(""),r=t.computed({get(){return n.modelValue},set(d){o("update:modelValue",d)}}),s=t.computed(()=>{var d;if(Array.isArray(r.value)){if(n.multiple&&r.value.length==0)return n.placeholder}else return((d=r.value)==null?void 0:d.label)||n.placeholder||"";return""}),h=t.computed(()=>!(!n.clearable||!n.modelValue||n.modelValue&&Array.isArray(n.modelValue)&&!n.modelValue.length)),p=t.computed(()=>a.value?n.options.filter(d=>d.label.toLowerCase().includes(a.value.toLowerCase())):n.options),c=t.computed(()=>{if(n.rules)return n.required?[...n.rules,Fl]:n.rules;if(n.required)return[Fl]}),b=()=>{r.value=void 0},v=(d,m)=>{m(()=>{a.value=d})};return(d,m)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["app-select",[{"app-select_opened":i.value},`app-select_${d.size}`]])},[d.label?(t.openBlock(),t.createElementBlock("label",{key:0,class:t.normalizeClass(["app-select__label",{"app-select__label_bold":d.required}])},t.toDisplayString(d.required?`${d.label} *`:d.label),3)):t.createCommentVNode("",!0),t.createVNode(Ni,{standout:"","hide-bottom-space":"","hide-dropdown-icon":"","no-error-icon":"",behavior:"menu","popup-content-class":`app-select-menu app-select-menu_${d.size}`,placeholder:d.filtering&&"Почніть вводити","input-debounce":"50",modelValue:r.value,"onUpdate:modelValue":m[0]||(m[0]=x=>r.value=x),options:p.value,multiple:d.multiple,"use-input":d.filtering&&(Array.isArray(r.value)||!r.value),rules:c.value,"lazy-rules":d.lazyRules,autofocus:d.autofocus,disable:d.disabled,loading:d.loading,onFilter:v,onPopupShow:m[1]||(m[1]=x=>i.value=!0),onPopupHide:m[2]||(m[2]=x=>i.value=!1)},{append:t.withCtx(()=>[h.value?(t.openBlock(),t.createElementBlock("i",{key:0,class:"icon-kl icon-kl-close app-select__clear",onClick:t.withModifiers(b,["stop","prevent"])})):t.createCommentVNode("",!0),m[3]||(m[3]=t.createElementVNode("i",{class:"icon-kl icon-kl-arrow-down app-select__drop-icon"},null,-1))]),selected:t.withCtx(()=>{var x,g;return[Array.isArray(r.value)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[!d.filtering||r.value.length?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["app-select__selected",{"app-select__placeholder":!((x=r.value)!=null&&x.length)&&d.placeholder}])},[(g=r.value)!=null&&g.length?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[m[4]||(m[4]=t.createTextVNode(" Вибрано ")),t.createElementVNode("span",Wi,t.toDisplayString(r.value.length),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(n.placeholder),1)],64))],2)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[!d.filtering||r.value?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["app-select__selected",{"app-select__placeholder":!r.value&&d.placeholder}])},t.toDisplayString(s.value),3)):t.createCommentVNode("",!0)],64))]}),option:t.withCtx(x=>[t.createVNode(on,t.mergeProps({class:["app-select__option",{"app-select__option_selected":x.selected}]},x.itemProps),{default:t.withCtx(()=>[n.multiple?(t.openBlock(),t.createBlock(ct,{key:0,class:"option-multiple",avatar:""},{default:t.withCtx(()=>[t.createVNode($o,{size:"30px","model-value":x.selected,"onUpdate:modelValue":()=>x.toggleOption(x.opt)},null,8,["model-value","onUpdate:modelValue"])]),_:2},1024)):t.createCommentVNode("",!0),x.opt.done?(t.openBlock(),t.createBlock(ct,{key:1,class:"option-done",avatar:""},{default:t.withCtx(()=>m[5]||(m[5]=[t.createElementVNode("i",{class:"icon-kl icon-kl-check option-done__icon"},null,-1)])),_:1})):t.createCommentVNode("",!0),t.createVNode(ct,null,{default:t.withCtx(()=>[t.createVNode(nn,null,{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(x.opt.label),1)]),_:2},1024)]),_:2},1024)]),_:2},1040,["class"])]),_:1},8,["popup-content-class","placeholder","modelValue","options","multiple","use-input","rules","lazy-rules","autofocus","disable","loading"])],2))}}),Ui=Dt(Ki,[["__scopeId","data-v-8b2d09b5"]]),Qi=t.defineComponent({__name:"index",props:{name:{},size:{},color:{}},setup(e){return(l,n)=>(t.openBlock(),t.createElementBlock("i",{class:t.normalizeClass(["icon-kl",`icon-kl-${l.name}`,l.color?`text-${l.color}`:""]),style:t.normalizeStyle(l.size?`font-size: ${l.size}`:void 0)},null,6))}}),Xi=Dt(Qi,[["__scopeId","data-v-73419357"]]),Yi=t.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-CIRM8l-I.cjs")));exports.AppButton=xo;exports.AppButtonCopy=Yi;exports.COLORS=Hl;exports.addFocusout=Wt;exports.index=Xi;exports.index$1=Ui;exports.removeFocusout=ft;
package/dist/index.css CHANGED
@@ -1 +1 @@
1
- .app-btn[data-v-2e62fe83] .q-btn__content{font-family:OpenSans,sans-serif;font-weight:600}.app-btn_sm[data-v-2e62fe83]{font-size:12px;border-radius:7px}.app-btn_sm[data-v-2e62fe83] .q-btn__content{line-height:20px}.app-btn_sm .icon-kl[data-v-2e62fe83]{font-size:18px}.app-btn_sm.app-btn_icon-left[data-v-2e62fe83]{padding-left:5px!important}.app-btn_sm.app-btn_icon-left .icon-kl_left[data-v-2e62fe83]{margin-right:2px}.app-btn_sm.app-btn_icon-right[data-v-2e62fe83]{padding-right:5px!important}.app-btn_sm.app-btn_icon-right .icon-kl_right[data-v-2e62fe83]{margin-left:2px}.app-btn_sm.app-btn_icon-middle[data-v-2e62fe83]{padding:4px!important}.app-btn_md[data-v-2e62fe83]{font-size:14px;border-radius:8px}.app-btn_md[data-v-2e62fe83] .q-btn__content{line-height:22px}.app-btn_md .icon-kl[data-v-2e62fe83]{font-size:22px}.app-btn_md.app-btn_icon-left[data-v-2e62fe83]{padding-left:9px!important}.app-btn_md.app-btn_icon-left .icon-kl_left[data-v-2e62fe83]{margin-right:4px}.app-btn_md.app-btn_icon-right[data-v-2e62fe83]{padding-right:9px!important}.app-btn_md.app-btn_icon-right .icon-kl_right[data-v-2e62fe83]{margin-left:4px}.app-btn_md.app-btn_icon-middle[data-v-2e62fe83]{padding:5px!important}.app-btn_lg[data-v-2e62fe83]{font-size:17px;border-radius:10px}.app-btn_lg[data-v-2e62fe83] .q-btn__content{line-height:26px}.app-btn_lg .icon-kl[data-v-2e62fe83]{font-size:26px}.app-btn_lg.app-btn_icon-left[data-v-2e62fe83]{padding-left:16px!important}.app-btn_lg.app-btn_icon-left .icon-kl_left[data-v-2e62fe83]{margin-right:6px}.app-btn_lg.app-btn_icon-right[data-v-2e62fe83]{padding-right:16px!important}.app-btn_lg.app-btn_icon-right .icon-kl_right[data-v-2e62fe83]{margin-left:6px}.app-btn_lg.app-btn_icon-middle[data-v-2e62fe83]{padding:11px!important}.app-btn_primary[data-v-2e62fe83]{color:#1a5cff}.app-btn_info[data-v-2e62fe83]{color:#399}.app-btn_negative[data-v-2e62fe83]{color:#ff4757}.app-btn_positive[data-v-2e62fe83]{color:#46c93a}.app-btn_default.app-btn_primary[data-v-2e62fe83]{background-color:#1a5cff;color:#fdfffc}.app-btn_default.app-btn_info[data-v-2e62fe83]{background-color:#399;color:#fdfffc}.app-btn_default.app-btn_negative[data-v-2e62fe83]{background-color:#ff4757;color:#fdfffc}.app-btn_default.app-btn_positive[data-v-2e62fe83]{background-color:#46c93a;color:#fdfffc}.app-btn_trans.app-btn_primary[data-v-2e62fe83]{background-color:#1a5cff26}.app-btn_trans.app-btn_info[data-v-2e62fe83]{background-color:#33999926}.app-btn_trans.app-btn_negative[data-v-2e62fe83]{background-color:#ff475726}.app-btn_trans.app-btn_positive[data-v-2e62fe83]{background-color:#46c93a26}.app-btn_flat[data-v-2e62fe83]{background-color:transparent}.app-btn_flat:hover.app-btn_primary[data-v-2e62fe83]{background-color:#1a5cff05}.app-btn_flat:hover.app-btn_info[data-v-2e62fe83]{background-color:#33999905}.app-btn_flat:hover.app-btn_negative[data-v-2e62fe83]{background-color:#ff475705}.app-btn_flat:hover.app-btn_positive[data-v-2e62fe83]{background-color:#46c93a05}.app-btn_rounded[data-v-2e62fe83]{border-radius:50px}.icon-kl[data-v-73419357]{font-size:24px}
1
+ .q-menu{background:#fdfffc40;border-radius:14px;box-shadow:2px 2px 8px #1e1e1e14;border-top:1px solid rgba(253,255,252,.6);border-left:1px solid rgba(253,255,252,.6);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.q-menu .q-item{padding:8px 14px;color:#1e1e1e}.q-menu .q-item:not(:last-child){border-bottom:1px solid rgba(30,30,30,.05)}.q-menu .q-item :hover .q-item__label{color:#1a5cff}.q-menu .q-item .q-focus-helper{display:none}.app-btn[data-v-ac94630a] .q-btn__content{font-family:OpenSans,sans-serif;font-weight:600}.app-btn_sm[data-v-ac94630a]{font-size:12px;border-radius:7px}.app-btn_sm[data-v-ac94630a] .q-btn__content{line-height:20px}.app-btn_sm .icon-kl[data-v-ac94630a]{font-size:18px}.app-btn_sm.app-btn_icon-left[data-v-ac94630a]{padding-left:5px!important}.app-btn_sm.app-btn_icon-left .icon-kl_left[data-v-ac94630a]{margin-right:2px}.app-btn_sm.app-btn_icon-right[data-v-ac94630a]{padding-right:5px!important}.app-btn_sm.app-btn_icon-right .icon-kl_right[data-v-ac94630a]{margin-left:2px}.app-btn_sm.app-btn_icon-middle[data-v-ac94630a]{padding:4px!important}.app-btn_md[data-v-ac94630a]{font-size:14px;border-radius:8px}.app-btn_md[data-v-ac94630a] .q-btn__content{line-height:22px}.app-btn_md .icon-kl[data-v-ac94630a]{font-size:22px}.app-btn_md.app-btn_icon-left[data-v-ac94630a]{padding-left:9px!important}.app-btn_md.app-btn_icon-left .icon-kl_left[data-v-ac94630a]{margin-right:4px}.app-btn_md.app-btn_icon-right[data-v-ac94630a]{padding-right:9px!important}.app-btn_md.app-btn_icon-right .icon-kl_right[data-v-ac94630a]{margin-left:4px}.app-btn_md.app-btn_icon-middle[data-v-ac94630a]{padding:5px!important}.app-btn_lg[data-v-ac94630a]{font-size:17px;border-radius:10px}.app-btn_lg[data-v-ac94630a] .q-btn__content{line-height:26px}.app-btn_lg .icon-kl[data-v-ac94630a]{font-size:26px}.app-btn_lg.app-btn_icon-left[data-v-ac94630a]{padding-left:16px!important}.app-btn_lg.app-btn_icon-left .icon-kl_left[data-v-ac94630a]{margin-right:6px}.app-btn_lg.app-btn_icon-right[data-v-ac94630a]{padding-right:16px!important}.app-btn_lg.app-btn_icon-right .icon-kl_right[data-v-ac94630a]{margin-left:6px}.app-btn_lg.app-btn_icon-middle[data-v-ac94630a]{padding:11px!important}.app-btn_primary[data-v-ac94630a]{color:#1a5cff}.app-btn_info[data-v-ac94630a]{color:#399}.app-btn_negative[data-v-ac94630a]{color:#ff4757}.app-btn_positive[data-v-ac94630a]{color:#46c93a}.app-btn_default.app-btn_primary[data-v-ac94630a]{background-color:#1a5cff;color:#fdfffc}.app-btn_default.app-btn_info[data-v-ac94630a]{background-color:#399;color:#fdfffc}.app-btn_default.app-btn_negative[data-v-ac94630a]{background-color:#ff4757;color:#fdfffc}.app-btn_default.app-btn_positive[data-v-ac94630a]{background-color:#46c93a;color:#fdfffc}.app-btn_trans.app-btn_primary[data-v-ac94630a]{background-color:#1a5cff26}.app-btn_trans.app-btn_info[data-v-ac94630a]{background-color:#33999926}.app-btn_trans.app-btn_negative[data-v-ac94630a]{background-color:#ff475726}.app-btn_trans.app-btn_positive[data-v-ac94630a]{background-color:#46c93a26}.app-btn_flat[data-v-ac94630a]{background-color:transparent}.app-btn_flat:hover.app-btn_primary[data-v-ac94630a]{background-color:#1a5cff05}.app-btn_flat:hover.app-btn_info[data-v-ac94630a]{background-color:#33999905}.app-btn_flat:hover.app-btn_negative[data-v-ac94630a]{background-color:#ff475705}.app-btn_flat:hover.app-btn_positive[data-v-ac94630a]{background-color:#46c93a05}.app-btn_rounded[data-v-ac94630a]{border-radius:50px}.app-select[data-v-8b2d09b5]{width:220px}.app-select__label[data-v-8b2d09b5]{padding-left:6px}.app-select__label_bold[data-v-8b2d09b5]{font-weight:600}.app-select__drop-icon[data-v-8b2d09b5]{color:#1e1e1e;transition:.2s;cursor:pointer}.app-select__clear[data-v-8b2d09b5]{border-radius:50px;background:#1e1e1e14;color:#1e1e1e;cursor:pointer}.app-select__clear[data-v-8b2d09b5]:hover{background:#1e1e1e21}.app-select__selected[data-v-8b2d09b5]{color:#1e1e1e}.app-select__amount[data-v-8b2d09b5]{line-height:10px;padding:1px 5px;border-radius:50px;background:#1a5cff;color:#fdfffc;font-size:12px;font-weight:500}.app-select__placeholder[data-v-8b2d09b5]{color:#1e1e1e80!important}.app-select__option[data-v-8b2d09b5]{-webkit-user-select:none;user-select:none}.app-select__option_selected .q-item__label[data-v-8b2d09b5]{color:#1a5cff}.app-select__option .q-item__section--avatar[data-v-8b2d09b5]{min-width:0;padding-right:0;justify-content:center}.app-select[data-v-8b2d09b5] .q-field .q-field__control{background:#7676801f;box-shadow:none}.app-select[data-v-8b2d09b5] .q-field .q-field__control:before{background:#0000000d}.app-select[data-v-8b2d09b5] .q-field .q-placeholder{color:#1e1e1e80!important}.app-select[data-v-8b2d09b5] .q-field .q-spinner circle{stroke:#1e1e1ea6}.app-select_opened .app-select__drop-icon[data-v-8b2d09b5]{transform:rotate(180deg)}.app-select_sm .app-select__label[data-v-8b2d09b5]{display:none}.app-select_sm .app-select__selected[data-v-8b2d09b5]{font-size:12px}.app-select_sm .app-select__clear[data-v-8b2d09b5]{font-size:13px}.app-select_sm .app-select__drop-icon[data-v-8b2d09b5]{font-size:18px}.app-select_sm .app-select__amount[data-v-8b2d09b5]{font-size:10px;padding:.5px 3.5px}.app-select_sm[data-v-8b2d09b5] .q-field .q-field__control{border-radius:8px;padding:0 6px 0 12px}.app-select_sm[data-v-8b2d09b5] .q-field .q-field__native{padding:4px 0}.app-select_sm[data-v-8b2d09b5] .q-field .q-field__control,.app-select_sm[data-v-8b2d09b5] .q-field .q-field__native,.app-select_sm[data-v-8b2d09b5] .q-field .q-field__append,.app-select_sm[data-v-8b2d09b5] .q-field .q-field__prepend,.app-select_sm[data-v-8b2d09b5] .q-field .q-field__before,.app-select_sm[data-v-8b2d09b5] .q-field .q-field__after{min-height:26px;height:26px}.app-select_sm[data-v-8b2d09b5] .q-field .q-field__input{min-height:18px;line-height:18px;font-size:12px}.app-select_sm[data-v-8b2d09b5] .q-field .q-field__bottom{padding:5px 12px 0;font-size:10px}.app-select_md .app-select__label[data-v-8b2d09b5]{font-size:10px}.app-select_md .app-select__selected[data-v-8b2d09b5]{font-size:13px}.app-select_md .app-select__clear[data-v-8b2d09b5]{font-size:16px}.app-select_md .app-select__drop-icon[data-v-8b2d09b5]{font-size:22px}.app-select_md .app-select__amount[data-v-8b2d09b5]{padding:.5px 4.2px;font-size:11px}.app-select_md[data-v-8b2d09b5] .q-field .q-field__control{border-radius:10px;padding:0 8px 0 12px}.app-select_md[data-v-8b2d09b5] .q-field .q-field__control,.app-select_md[data-v-8b2d09b5] .q-field .q-field__native,.app-select_md[data-v-8b2d09b5] .q-field .q-field__append,.app-select_md[data-v-8b2d09b5] .q-field .q-field__prepend,.app-select_md[data-v-8b2d09b5] .q-field .q-field__before,.app-select_md[data-v-8b2d09b5] .q-field .q-field__after{min-height:32px;height:32px}.app-select_md[data-v-8b2d09b5] .q-field .q-field__input{min-height:20px;line-height:20px;font-size:13px}.app-select_md[data-v-8b2d09b5] .q-field .q-field__bottom{padding:6px 12px 0;font-size:11px}.app-select_lg .app-select__label[data-v-8b2d09b5]{font-size:12px}.app-select_lg .app-select__clear[data-v-8b2d09b5]{font-size:18px}.app-select_lg .app-select__selected[data-v-8b2d09b5]{font-size:16px}.app-select_lg[data-v-8b2d09b5] .q-field .q-field__control{border-radius:12px}.app-select_lg[data-v-8b2d09b5] .q-field .q-field__control,.app-select_lg[data-v-8b2d09b5] .q-field .q-field__native,.app-select_lg[data-v-8b2d09b5] .q-field .q-field__append,.app-select_lg[data-v-8b2d09b5] .q-field .q-field__prepend,.app-select_lg[data-v-8b2d09b5] .q-field .q-field__before,.app-select_lg[data-v-8b2d09b5] .q-field .q-field__after{min-height:44px;height:44px}.app-select_lg[data-v-8b2d09b5] .q-field .q-spinner{width:18px;height:18px}.option-multiple[data-v-8b2d09b5]{width:30px}.option-done[data-v-8b2d09b5]{width:24px}.option-done__icon[data-v-8b2d09b5]{font-size:20px;color:#46c93a}.app-select-menu_sm .q-item[data-v-8b2d09b5]{min-height:36px;padding:3px 10px}.app-select-menu_sm .q-item__label[data-v-8b2d09b5]{font-size:12px}.app-select-menu_md .q-item[data-v-8b2d09b5]{min-height:42px;padding:5px 12px}.app-select-menu_md .q-item__label[data-v-8b2d09b5]{font-size:13px}.icon-kl[data-v-73419357]{font-size:24px}
package/dist/uikit.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("vue");const t=require("./index-DE-1xUzC.cjs");exports.AppButton=t.AppButton;exports.AppButtonCopy=t.AppButtonCopy;exports.AppIcon=t.index;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-pgLl9453.cjs");require("vue");exports.AppButton=t.AppButton;exports.AppButtonCopy=t.AppButtonCopy;exports.AppIcon=t.index;exports.AppSelect=t.index$1;
package/dist/uikit.es.js CHANGED
@@ -1,7 +1,8 @@
1
+ import { A, b as a, i as s, c } from "./index-NqUac_wO.js";
1
2
  import "vue";
2
- import { A as a, a as A, i as n } from "./index-B9RCyE8G.js";
3
3
  export {
4
- a as AppButton,
5
- A as AppButtonCopy,
6
- n as AppIcon
4
+ A as AppButton,
5
+ a as AppButtonCopy,
6
+ s as AppIcon,
7
+ c as AppSelect
7
8
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@validol4ik/uikit",
3
- "version": "0.2.17",
3
+ "version": "0.3.1",
4
4
  "type": "module",
5
5
  "main": "./dist/uikit.cjs",
6
6
  "module": "./dist/uikit.es.js",
@@ -1,7 +0,0 @@
1
- import { Size } from '../types';
2
- declare const _default: {
3
- SM: Size;
4
- MD: Size;
5
- LG: Size;
6
- };
7
- export default _default;