@win2win/shared-ui 0.1.0 → 0.1.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.
- package/dist/components/pdf/Card.vue.d.ts +28 -0
- package/dist/components/pdf/Card.vue.d.ts.map +1 -0
- package/dist/components/pdf/CardGridSection.vue.d.ts +14 -0
- package/dist/components/pdf/CardGridSection.vue.d.ts.map +1 -0
- package/dist/components/pdf/ImageSection.vue.d.ts +14 -0
- package/dist/components/pdf/ImageSection.vue.d.ts.map +1 -0
- package/dist/components/pdf/SectionsContainer.vue.d.ts +21 -0
- package/dist/components/pdf/SectionsContainer.vue.d.ts.map +1 -0
- package/dist/components/pdf/TableSection.vue.d.ts +14 -0
- package/dist/components/pdf/TableSection.vue.d.ts.map +1 -0
- package/dist/components/pdf/TextSection.vue.d.ts +14 -0
- package/dist/components/pdf/TextSection.vue.d.ts.map +1 -0
- package/dist/components/pdf/WrapperComponent.vue.d.ts +19 -0
- package/dist/components/pdf/WrapperComponent.vue.d.ts.map +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/interfaces/document-layouts.d.ts +7 -0
- package/dist/interfaces/document-layouts.d.ts.map +1 -0
- package/dist/style.css +1 -1
- package/dist/w2w-shared-ui.js +5396 -5032
- package/dist/w2w-shared-ui.umd.cjs +15 -15
- package/package.json +3 -3
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(jt,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("vue"),require("pinia")):typeof define=="function"&&define.amd?define(["exports","vue","pinia"],i):(jt=typeof globalThis<"u"?globalThis:jt||self,i(jt.W2WSharedUi={},jt.Vue,jt.Pinia))})(this,function(jt,i,Ca){"use strict";var xe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},oi={exports:{}};/**
|
|
2
2
|
* @license
|
|
3
3
|
* Lodash <https://lodash.com/>
|
|
4
4
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
5
5
|
* Released under MIT license <https://lodash.com/license>
|
|
6
6
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
7
7
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
8
|
-
*/ei.exports,function(n,o){(function(){var l,u="4.17.21",s=200,f="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",m="Expected a function",g="Invalid `variable` option passed into `_.template`",x="__lodash_hash_undefined__",A=500,v="__lodash_placeholder__",C=1,k=2,y=4,B=1,U=2,q=1,W=2,D=4,$=8,Z=16,K=32,Q=64,G=128,le=256,V=512,N=30,X="...",E=800,te=16,P=1,ae=2,ue=3,fe=1/0,H=9007199254740991,se=17976931348623157e292,ge=NaN,R=4294967295,T=R-1,ie=R>>>1,ve=[["ary",G],["bind",q],["bindKey",W],["curry",$],["curryRight",Z],["flip",V],["partial",K],["partialRight",Q],["rearg",le]],_e="[object Arguments]",z="[object Array]",ne="[object AsyncFunction]",Ee="[object Boolean]",Y="[object Date]",$e="[object DOMException]",lt="[object Error]",Pt="[object Function]",_t="[object GeneratorFunction]",nt="[object Map]",bt="[object Number]",Jt="[object Null]",ct="[object Object]",gn="[object Promise]",Or="[object Proxy]",$t="[object RegExp]",Ne="[object Set]",Ge="[object String]",Ft="[object Symbol]",ar="[object Undefined]",Pn="[object WeakMap]",yi="[object WeakSet]",en="[object ArrayBuffer]",pn="[object DataView]",ur="[object Float32Array]",Nt="[object Float64Array]",Gt="[object Int8Array]",vn="[object Int16Array]",Lr="[object Int32Array]",$n="[object Uint8Array]",Fn="[object Uint8ClampedArray]",sr="[object Uint16Array]",cr="[object Uint32Array]",wi=/\b__p \+= '';/g,Si=/\b(__p \+=) '' \+/g,xi=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ir=/&(?:amp|lt|gt|quot|#39);/g,Ci=/[&<>"']/g,Wl=RegExp(Ir.source),ki=RegExp(Ci.source),Hl=/<%-([\s\S]+?)%>/g,Ei=/<%([\s\S]+?)%>/g,Nn=/<%=([\s\S]+?)%>/g,Dn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_n=/^\w*$/,Kl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Vr=/[\\^$.*+?()[\]{}|]/g,Gl=RegExp(Vr.source),Pr=/^\s+/,Ql=/\s/,Yl=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Zl=/\{\n\/\* \[wrapped with (.+)\] \*/,Xl=/,? & /,jl=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,bn=/[()=,{}\[\]\/\s]/,yn=/\\(\\)?/g,tn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,nn=/\w*$/,$r=/^[-+]0x[0-9a-f]+$/i,Jl=/^0b[01]+$/i,Ti=/^\[object .+?Constructor\]$/,Ai=/^0o[0-7]+$/i,Bi=/^(?:0|[1-9]\d*)$/,Ri=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_=/($^)/,ee=/['\n\r\u2028\u2029\\]/g,j="\\ud800-\\udfff",me="\\u0300-\\u036f",qe="\\ufe20-\\ufe2f",Be="\\u20d0-\\u20ff",He=me+qe+Be,Ie="\\u2700-\\u27bf",fr="a-z\\xdf-\\xf6\\xf8-\\xff",Lm="\\xac\\xb1\\xd7\\xf7",Im="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Vm="\\u2000-\\u206f",Pm=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ju="A-Z\\xc0-\\xd6\\xd8-\\xde",es="\\ufe0e\\ufe0f",ts=Lm+Im+Vm+Pm,eo="['’]",$m="["+j+"]",ns="["+ts+"]",qi="["+He+"]",rs="\\d+",Fm="["+Ie+"]",is="["+fr+"]",ls="[^"+j+ts+rs+Ie+fr+Ju+"]",to="\\ud83c[\\udffb-\\udfff]",Nm="(?:"+qi+"|"+to+")",os="[^"+j+"]",no="(?:\\ud83c[\\udde6-\\uddff]){2}",ro="[\\ud800-\\udbff][\\udc00-\\udfff]",dr="["+Ju+"]",as="\\u200d",us="(?:"+is+"|"+ls+")",Dm="(?:"+dr+"|"+ls+")",ss="(?:"+eo+"(?:d|ll|m|re|s|t|ve))?",cs="(?:"+eo+"(?:D|LL|M|RE|S|T|VE))?",fs=Nm+"?",ds="["+es+"]?",zm="(?:"+as+"(?:"+[os,no,ro].join("|")+")"+ds+fs+")*",Um="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Wm="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",hs=ds+fs+zm,Hm="(?:"+[Fm,no,ro].join("|")+")"+hs,Km="(?:"+[os+qi+"?",qi,no,ro,$m].join("|")+")",Gm=RegExp(eo,"g"),Qm=RegExp(qi,"g"),io=RegExp(to+"(?="+to+")|"+Km+hs,"g"),Ym=RegExp([dr+"?"+is+"+"+ss+"(?="+[ns,dr,"$"].join("|")+")",Dm+"+"+cs+"(?="+[ns,dr+us,"$"].join("|")+")",dr+"?"+us+"+"+ss,dr+"+"+cs,Wm,Um,rs,Hm].join("|"),"g"),Zm=RegExp("["+as+j+He+es+"]"),Xm=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,jm=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Jm=-1,Le={};Le[ur]=Le[Nt]=Le[Gt]=Le[vn]=Le[Lr]=Le[$n]=Le[Fn]=Le[sr]=Le[cr]=!0,Le[_e]=Le[z]=Le[en]=Le[Ee]=Le[pn]=Le[Y]=Le[lt]=Le[Pt]=Le[nt]=Le[bt]=Le[ct]=Le[$t]=Le[Ne]=Le[Ge]=Le[Pn]=!1;var Oe={};Oe[_e]=Oe[z]=Oe[en]=Oe[pn]=Oe[Ee]=Oe[Y]=Oe[ur]=Oe[Nt]=Oe[Gt]=Oe[vn]=Oe[Lr]=Oe[nt]=Oe[bt]=Oe[ct]=Oe[$t]=Oe[Ne]=Oe[Ge]=Oe[Ft]=Oe[$n]=Oe[Fn]=Oe[sr]=Oe[cr]=!0,Oe[lt]=Oe[Pt]=Oe[Pn]=!1;var eg={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},tg={"&":"&","<":"<",">":">",'"':""","'":"'"},ng={"&":"&","<":"<",">":">",""":'"',"'":"'"},rg={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ig=parseFloat,lg=parseInt,ms=typeof je=="object"&&je&&je.Object===Object&&je,og=typeof self=="object"&&self&&self.Object===Object&&self,et=ms||og||Function("return this")(),lo=o&&!o.nodeType&&o,zn=lo&&!0&&n&&!n.nodeType&&n,gs=zn&&zn.exports===lo,oo=gs&&ms.process,Tt=function(){try{var w=zn&&zn.require&&zn.require("util").types;return w||oo&&oo.binding&&oo.binding("util")}catch{}}(),ps=Tt&&Tt.isArrayBuffer,vs=Tt&&Tt.isDate,_s=Tt&&Tt.isMap,bs=Tt&&Tt.isRegExp,ys=Tt&&Tt.isSet,ws=Tt&&Tt.isTypedArray;function yt(w,O,M){switch(M.length){case 0:return w.call(O);case 1:return w.call(O,M[0]);case 2:return w.call(O,M[0],M[1]);case 3:return w.call(O,M[0],M[1],M[2])}return w.apply(O,M)}function ag(w,O,M,re){for(var pe=-1,Te=w==null?0:w.length;++pe<Te;){var Qe=w[pe];O(re,Qe,M(Qe),w)}return re}function At(w,O){for(var M=-1,re=w==null?0:w.length;++M<re&&O(w[M],M,w)!==!1;);return w}function ug(w,O){for(var M=w==null?0:w.length;M--&&O(w[M],M,w)!==!1;);return w}function Ss(w,O){for(var M=-1,re=w==null?0:w.length;++M<re;)if(!O(w[M],M,w))return!1;return!0}function wn(w,O){for(var M=-1,re=w==null?0:w.length,pe=0,Te=[];++M<re;){var Qe=w[M];O(Qe,M,w)&&(Te[pe++]=Qe)}return Te}function Mi(w,O){var M=w==null?0:w.length;return!!M&&hr(w,O,0)>-1}function ao(w,O,M){for(var re=-1,pe=w==null?0:w.length;++re<pe;)if(M(O,w[re]))return!0;return!1}function Ve(w,O){for(var M=-1,re=w==null?0:w.length,pe=Array(re);++M<re;)pe[M]=O(w[M],M,w);return pe}function Sn(w,O){for(var M=-1,re=O.length,pe=w.length;++M<re;)w[pe+M]=O[M];return w}function uo(w,O,M,re){var pe=-1,Te=w==null?0:w.length;for(re&&Te&&(M=w[++pe]);++pe<Te;)M=O(M,w[pe],pe,w);return M}function sg(w,O,M,re){var pe=w==null?0:w.length;for(re&&pe&&(M=w[--pe]);pe--;)M=O(M,w[pe],pe,w);return M}function so(w,O){for(var M=-1,re=w==null?0:w.length;++M<re;)if(O(w[M],M,w))return!0;return!1}var cg=co("length");function fg(w){return w.split("")}function dg(w){return w.match(jl)||[]}function xs(w,O,M){var re;return M(w,function(pe,Te,Qe){if(O(pe,Te,Qe))return re=Te,!1}),re}function Oi(w,O,M,re){for(var pe=w.length,Te=M+(re?1:-1);re?Te--:++Te<pe;)if(O(w[Te],Te,w))return Te;return-1}function hr(w,O,M){return O===O?Cg(w,O,M):Oi(w,Cs,M)}function hg(w,O,M,re){for(var pe=M-1,Te=w.length;++pe<Te;)if(re(w[pe],O))return pe;return-1}function Cs(w){return w!==w}function ks(w,O){var M=w==null?0:w.length;return M?ho(w,O)/M:ge}function co(w){return function(O){return O==null?l:O[w]}}function fo(w){return function(O){return w==null?l:w[O]}}function Es(w,O,M,re,pe){return pe(w,function(Te,Qe,Me){M=re?(re=!1,Te):O(M,Te,Qe,Me)}),M}function mg(w,O){var M=w.length;for(w.sort(O);M--;)w[M]=w[M].value;return w}function ho(w,O){for(var M,re=-1,pe=w.length;++re<pe;){var Te=O(w[re]);Te!==l&&(M=M===l?Te:M+Te)}return M}function mo(w,O){for(var M=-1,re=Array(w);++M<w;)re[M]=O(M);return re}function gg(w,O){return Ve(O,function(M){return[M,w[M]]})}function Ts(w){return w&&w.slice(0,qs(w)+1).replace(Pr,"")}function wt(w){return function(O){return w(O)}}function go(w,O){return Ve(O,function(M){return w[M]})}function Fr(w,O){return w.has(O)}function As(w,O){for(var M=-1,re=w.length;++M<re&&hr(O,w[M],0)>-1;);return M}function Bs(w,O){for(var M=w.length;M--&&hr(O,w[M],0)>-1;);return M}function pg(w,O){for(var M=w.length,re=0;M--;)w[M]===O&&++re;return re}var vg=fo(eg),_g=fo(tg);function bg(w){return"\\"+rg[w]}function yg(w,O){return w==null?l:w[O]}function mr(w){return Zm.test(w)}function wg(w){return Xm.test(w)}function Sg(w){for(var O,M=[];!(O=w.next()).done;)M.push(O.value);return M}function po(w){var O=-1,M=Array(w.size);return w.forEach(function(re,pe){M[++O]=[pe,re]}),M}function Rs(w,O){return function(M){return w(O(M))}}function xn(w,O){for(var M=-1,re=w.length,pe=0,Te=[];++M<re;){var Qe=w[M];(Qe===O||Qe===v)&&(w[M]=v,Te[pe++]=M)}return Te}function Li(w){var O=-1,M=Array(w.size);return w.forEach(function(re){M[++O]=re}),M}function xg(w){var O=-1,M=Array(w.size);return w.forEach(function(re){M[++O]=[re,re]}),M}function Cg(w,O,M){for(var re=M-1,pe=w.length;++re<pe;)if(w[re]===O)return re;return-1}function kg(w,O,M){for(var re=M+1;re--;)if(w[re]===O)return re;return re}function gr(w){return mr(w)?Tg(w):cg(w)}function Dt(w){return mr(w)?Ag(w):fg(w)}function qs(w){for(var O=w.length;O--&&Ql.test(w.charAt(O)););return O}var Eg=fo(ng);function Tg(w){for(var O=io.lastIndex=0;io.test(w);)++O;return O}function Ag(w){return w.match(io)||[]}function Bg(w){return w.match(Ym)||[]}var Rg=function w(O){O=O==null?et:pr.defaults(et.Object(),O,pr.pick(et,jm));var M=O.Array,re=O.Date,pe=O.Error,Te=O.Function,Qe=O.Math,Me=O.Object,vo=O.RegExp,qg=O.String,Bt=O.TypeError,Ii=M.prototype,Mg=Te.prototype,vr=Me.prototype,Vi=O["__core-js_shared__"],Pi=Mg.toString,Re=vr.hasOwnProperty,Og=0,Ms=function(){var e=/[^.]+$/.exec(Vi&&Vi.keys&&Vi.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),$i=vr.toString,Lg=Pi.call(Me),Ig=et._,Vg=vo("^"+Pi.call(Re).replace(Vr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Fi=gs?O.Buffer:l,Cn=O.Symbol,Ni=O.Uint8Array,Os=Fi?Fi.allocUnsafe:l,Di=Rs(Me.getPrototypeOf,Me),Ls=Me.create,Is=vr.propertyIsEnumerable,zi=Ii.splice,Vs=Cn?Cn.isConcatSpreadable:l,Nr=Cn?Cn.iterator:l,Un=Cn?Cn.toStringTag:l,Ui=function(){try{var e=Qn(Me,"defineProperty");return e({},"",{}),e}catch{}}(),Pg=O.clearTimeout!==et.clearTimeout&&O.clearTimeout,$g=re&&re.now!==et.Date.now&&re.now,Fg=O.setTimeout!==et.setTimeout&&O.setTimeout,Wi=Qe.ceil,Hi=Qe.floor,_o=Me.getOwnPropertySymbols,Ng=Fi?Fi.isBuffer:l,Ps=O.isFinite,Dg=Ii.join,zg=Rs(Me.keys,Me),Ye=Qe.max,rt=Qe.min,Ug=re.now,Wg=O.parseInt,$s=Qe.random,Hg=Ii.reverse,bo=Qn(O,"DataView"),Dr=Qn(O,"Map"),yo=Qn(O,"Promise"),_r=Qn(O,"Set"),zr=Qn(O,"WeakMap"),Ur=Qn(Me,"create"),Ki=zr&&new zr,br={},Kg=Yn(bo),Gg=Yn(Dr),Qg=Yn(yo),Yg=Yn(_r),Zg=Yn(zr),Gi=Cn?Cn.prototype:l,Wr=Gi?Gi.valueOf:l,Fs=Gi?Gi.toString:l;function d(e){if(De(e)&&!be(e)&&!(e instanceof Ce)){if(e instanceof Rt)return e;if(Re.call(e,"__wrapped__"))return Nc(e)}return new Rt(e)}var yr=function(){function e(){}return function(t){if(!Fe(t))return{};if(Ls)return Ls(t);e.prototype=t;var r=new e;return e.prototype=l,r}}();function Qi(){}function Rt(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=l}d.templateSettings={escape:Hl,evaluate:Ei,interpolate:Nn,variable:"",imports:{_:d}},d.prototype=Qi.prototype,d.prototype.constructor=d,Rt.prototype=yr(Qi.prototype),Rt.prototype.constructor=Rt;function Ce(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=R,this.__views__=[]}function Xg(){var e=new Ce(this.__wrapped__);return e.__actions__=ft(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ft(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ft(this.__views__),e}function jg(){if(this.__filtered__){var e=new Ce(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Jg(){var e=this.__wrapped__.value(),t=this.__dir__,r=be(e),a=t<0,c=r?e.length:0,h=fv(0,c,this.__views__),p=h.start,b=h.end,S=b-p,L=a?b:p-1,I=this.__iteratees__,F=I.length,J=0,oe=rt(S,this.__takeCount__);if(!r||!a&&c==S&&oe==S)return sc(e,this.__actions__);var de=[];e:for(;S--&&J<oe;){L+=t;for(var we=-1,he=e[L];++we<F;){var xe=I[we],ke=xe.iteratee,Ct=xe.type,ut=ke(he);if(Ct==ae)he=ut;else if(!ut){if(Ct==P)continue e;break e}}de[J++]=he}return de}Ce.prototype=yr(Qi.prototype),Ce.prototype.constructor=Ce;function Wn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}function ep(){this.__data__=Ur?Ur(null):{},this.size=0}function tp(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function np(e){var t=this.__data__;if(Ur){var r=t[e];return r===x?l:r}return Re.call(t,e)?t[e]:l}function rp(e){var t=this.__data__;return Ur?t[e]!==l:Re.call(t,e)}function ip(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Ur&&t===l?x:t,this}Wn.prototype.clear=ep,Wn.prototype.delete=tp,Wn.prototype.get=np,Wn.prototype.has=rp,Wn.prototype.set=ip;function rn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}function lp(){this.__data__=[],this.size=0}function op(e){var t=this.__data__,r=Yi(t,e);if(r<0)return!1;var a=t.length-1;return r==a?t.pop():zi.call(t,r,1),--this.size,!0}function ap(e){var t=this.__data__,r=Yi(t,e);return r<0?l:t[r][1]}function up(e){return Yi(this.__data__,e)>-1}function sp(e,t){var r=this.__data__,a=Yi(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}rn.prototype.clear=lp,rn.prototype.delete=op,rn.prototype.get=ap,rn.prototype.has=up,rn.prototype.set=sp;function ln(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}function cp(){this.size=0,this.__data__={hash:new Wn,map:new(Dr||rn),string:new Wn}}function fp(e){var t=al(this,e).delete(e);return this.size-=t?1:0,t}function dp(e){return al(this,e).get(e)}function hp(e){return al(this,e).has(e)}function mp(e,t){var r=al(this,e),a=r.size;return r.set(e,t),this.size+=r.size==a?0:1,this}ln.prototype.clear=cp,ln.prototype.delete=fp,ln.prototype.get=dp,ln.prototype.has=hp,ln.prototype.set=mp;function Hn(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new ln;++t<r;)this.add(e[t])}function gp(e){return this.__data__.set(e,x),this}function pp(e){return this.__data__.has(e)}Hn.prototype.add=Hn.prototype.push=gp,Hn.prototype.has=pp;function zt(e){var t=this.__data__=new rn(e);this.size=t.size}function vp(){this.__data__=new rn,this.size=0}function _p(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function bp(e){return this.__data__.get(e)}function yp(e){return this.__data__.has(e)}function wp(e,t){var r=this.__data__;if(r instanceof rn){var a=r.__data__;if(!Dr||a.length<s-1)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new ln(a)}return r.set(e,t),this.size=r.size,this}zt.prototype.clear=vp,zt.prototype.delete=_p,zt.prototype.get=bp,zt.prototype.has=yp,zt.prototype.set=wp;function Ns(e,t){var r=be(e),a=!r&&Zn(e),c=!r&&!a&&Bn(e),h=!r&&!a&&!c&&Cr(e),p=r||a||c||h,b=p?mo(e.length,qg):[],S=b.length;for(var L in e)(t||Re.call(e,L))&&!(p&&(L=="length"||c&&(L=="offset"||L=="parent")||h&&(L=="buffer"||L=="byteLength"||L=="byteOffset")||sn(L,S)))&&b.push(L);return b}function Ds(e){var t=e.length;return t?e[qo(0,t-1)]:l}function Sp(e,t){return ul(ft(e),Kn(t,0,e.length))}function xp(e){return ul(ft(e))}function wo(e,t,r){(r!==l&&!Ut(e[t],r)||r===l&&!(t in e))&&on(e,t,r)}function Hr(e,t,r){var a=e[t];(!(Re.call(e,t)&&Ut(a,r))||r===l&&!(t in e))&&on(e,t,r)}function Yi(e,t){for(var r=e.length;r--;)if(Ut(e[r][0],t))return r;return-1}function Cp(e,t,r,a){return kn(e,function(c,h,p){t(a,c,r(c),p)}),a}function zs(e,t){return e&&Yt(t,Xe(t),e)}function kp(e,t){return e&&Yt(t,ht(t),e)}function on(e,t,r){t=="__proto__"&&Ui?Ui(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function So(e,t){for(var r=-1,a=t.length,c=M(a),h=e==null;++r<a;)c[r]=h?l:na(e,t[r]);return c}function Kn(e,t,r){return e===e&&(r!==l&&(e=e<=r?e:r),t!==l&&(e=e>=t?e:t)),e}function qt(e,t,r,a,c,h){var p,b=t&C,S=t&k,L=t&y;if(r&&(p=c?r(e,a,c,h):r(e)),p!==l)return p;if(!Fe(e))return e;var I=be(e);if(I){if(p=hv(e),!b)return ft(e,p)}else{var F=it(e),J=F==Pt||F==_t;if(Bn(e))return dc(e,b);if(F==ct||F==_e||J&&!c){if(p=S||J?{}:qc(e),!b)return S?nv(e,kp(p,e)):tv(e,zs(p,e))}else{if(!Oe[F])return c?e:{};p=mv(e,F,b)}}h||(h=new zt);var oe=h.get(e);if(oe)return oe;h.set(e,p),af(e)?e.forEach(function(he){p.add(qt(he,t,r,he,e,h))}):lf(e)&&e.forEach(function(he,xe){p.set(xe,qt(he,t,r,xe,e,h))});var de=L?S?zo:Do:S?ht:Xe,we=I?l:de(e);return At(we||e,function(he,xe){we&&(xe=he,he=e[xe]),Hr(p,xe,qt(he,t,r,xe,e,h))}),p}function Ep(e){var t=Xe(e);return function(r){return Us(r,e,t)}}function Us(e,t,r){var a=r.length;if(e==null)return!a;for(e=Me(e);a--;){var c=r[a],h=t[c],p=e[c];if(p===l&&!(c in e)||!h(p))return!1}return!0}function Ws(e,t,r){if(typeof e!="function")throw new Bt(m);return jr(function(){e.apply(l,r)},t)}function Kr(e,t,r,a){var c=-1,h=Mi,p=!0,b=e.length,S=[],L=t.length;if(!b)return S;r&&(t=Ve(t,wt(r))),a?(h=ao,p=!1):t.length>=s&&(h=Fr,p=!1,t=new Hn(t));e:for(;++c<b;){var I=e[c],F=r==null?I:r(I);if(I=a||I!==0?I:0,p&&F===F){for(var J=L;J--;)if(t[J]===F)continue e;S.push(I)}else h(t,F,a)||S.push(I)}return S}var kn=vc(Qt),Hs=vc(Co,!0);function Tp(e,t){var r=!0;return kn(e,function(a,c,h){return r=!!t(a,c,h),r}),r}function Zi(e,t,r){for(var a=-1,c=e.length;++a<c;){var h=e[a],p=t(h);if(p!=null&&(b===l?p===p&&!xt(p):r(p,b)))var b=p,S=h}return S}function Ap(e,t,r,a){var c=e.length;for(r=ye(r),r<0&&(r=-r>c?0:c+r),a=a===l||a>c?c:ye(a),a<0&&(a+=c),a=r>a?0:sf(a);r<a;)e[r++]=t;return e}function Ks(e,t){var r=[];return kn(e,function(a,c,h){t(a,c,h)&&r.push(a)}),r}function tt(e,t,r,a,c){var h=-1,p=e.length;for(r||(r=pv),c||(c=[]);++h<p;){var b=e[h];t>0&&r(b)?t>1?tt(b,t-1,r,a,c):Sn(c,b):a||(c[c.length]=b)}return c}var xo=_c(),Gs=_c(!0);function Qt(e,t){return e&&xo(e,t,Xe)}function Co(e,t){return e&&Gs(e,t,Xe)}function Xi(e,t){return wn(t,function(r){return cn(e[r])})}function Gn(e,t){t=Tn(t,e);for(var r=0,a=t.length;e!=null&&r<a;)e=e[Zt(t[r++])];return r&&r==a?e:l}function Qs(e,t,r){var a=t(e);return be(e)?a:Sn(a,r(e))}function ot(e){return e==null?e===l?ar:Jt:Un&&Un in Me(e)?cv(e):xv(e)}function ko(e,t){return e>t}function Bp(e,t){return e!=null&&Re.call(e,t)}function Rp(e,t){return e!=null&&t in Me(e)}function qp(e,t,r){return e>=rt(t,r)&&e<Ye(t,r)}function Eo(e,t,r){for(var a=r?ao:Mi,c=e[0].length,h=e.length,p=h,b=M(h),S=1/0,L=[];p--;){var I=e[p];p&&t&&(I=Ve(I,wt(t))),S=rt(I.length,S),b[p]=!r&&(t||c>=120&&I.length>=120)?new Hn(p&&I):l}I=e[0];var F=-1,J=b[0];e:for(;++F<c&&L.length<S;){var oe=I[F],de=t?t(oe):oe;if(oe=r||oe!==0?oe:0,!(J?Fr(J,de):a(L,de,r))){for(p=h;--p;){var we=b[p];if(!(we?Fr(we,de):a(e[p],de,r)))continue e}J&&J.push(de),L.push(oe)}}return L}function Mp(e,t,r,a){return Qt(e,function(c,h,p){t(a,r(c),h,p)}),a}function Gr(e,t,r){t=Tn(t,e),e=Ic(e,t);var a=e==null?e:e[Zt(Ot(t))];return a==null?l:yt(a,e,r)}function Ys(e){return De(e)&&ot(e)==_e}function Op(e){return De(e)&&ot(e)==en}function Lp(e){return De(e)&&ot(e)==Y}function Qr(e,t,r,a,c){return e===t?!0:e==null||t==null||!De(e)&&!De(t)?e!==e&&t!==t:Ip(e,t,r,a,Qr,c)}function Ip(e,t,r,a,c,h){var p=be(e),b=be(t),S=p?z:it(e),L=b?z:it(t);S=S==_e?ct:S,L=L==_e?ct:L;var I=S==ct,F=L==ct,J=S==L;if(J&&Bn(e)){if(!Bn(t))return!1;p=!0,I=!1}if(J&&!I)return h||(h=new zt),p||Cr(e)?Ac(e,t,r,a,c,h):uv(e,t,S,r,a,c,h);if(!(r&B)){var oe=I&&Re.call(e,"__wrapped__"),de=F&&Re.call(t,"__wrapped__");if(oe||de){var we=oe?e.value():e,he=de?t.value():t;return h||(h=new zt),c(we,he,r,a,h)}}return J?(h||(h=new zt),sv(e,t,r,a,c,h)):!1}function Vp(e){return De(e)&&it(e)==nt}function To(e,t,r,a){var c=r.length,h=c,p=!a;if(e==null)return!h;for(e=Me(e);c--;){var b=r[c];if(p&&b[2]?b[1]!==e[b[0]]:!(b[0]in e))return!1}for(;++c<h;){b=r[c];var S=b[0],L=e[S],I=b[1];if(p&&b[2]){if(L===l&&!(S in e))return!1}else{var F=new zt;if(a)var J=a(L,I,S,e,t,F);if(!(J===l?Qr(I,L,B|U,a,F):J))return!1}}return!0}function Zs(e){if(!Fe(e)||_v(e))return!1;var t=cn(e)?Vg:Ti;return t.test(Yn(e))}function Pp(e){return De(e)&&ot(e)==$t}function $p(e){return De(e)&&it(e)==Ne}function Fp(e){return De(e)&&ml(e.length)&&!!Le[ot(e)]}function Xs(e){return typeof e=="function"?e:e==null?mt:typeof e=="object"?be(e)?ec(e[0],e[1]):Js(e):yf(e)}function Ao(e){if(!Xr(e))return zg(e);var t=[];for(var r in Me(e))Re.call(e,r)&&r!="constructor"&&t.push(r);return t}function Np(e){if(!Fe(e))return Sv(e);var t=Xr(e),r=[];for(var a in e)a=="constructor"&&(t||!Re.call(e,a))||r.push(a);return r}function Bo(e,t){return e<t}function js(e,t){var r=-1,a=dt(e)?M(e.length):[];return kn(e,function(c,h,p){a[++r]=t(c,h,p)}),a}function Js(e){var t=Wo(e);return t.length==1&&t[0][2]?Oc(t[0][0],t[0][1]):function(r){return r===e||To(r,e,t)}}function ec(e,t){return Ko(e)&&Mc(t)?Oc(Zt(e),t):function(r){var a=na(r,e);return a===l&&a===t?ra(r,e):Qr(t,a,B|U)}}function ji(e,t,r,a,c){e!==t&&xo(t,function(h,p){if(c||(c=new zt),Fe(h))Dp(e,t,p,r,ji,a,c);else{var b=a?a(Qo(e,p),h,p+"",e,t,c):l;b===l&&(b=h),wo(e,p,b)}},ht)}function Dp(e,t,r,a,c,h,p){var b=Qo(e,r),S=Qo(t,r),L=p.get(S);if(L){wo(e,r,L);return}var I=h?h(b,S,r+"",e,t,p):l,F=I===l;if(F){var J=be(S),oe=!J&&Bn(S),de=!J&&!oe&&Cr(S);I=S,J||oe||de?be(b)?I=b:ze(b)?I=ft(b):oe?(F=!1,I=dc(S,!0)):de?(F=!1,I=hc(S,!0)):I=[]:Jr(S)||Zn(S)?(I=b,Zn(b)?I=cf(b):(!Fe(b)||cn(b))&&(I=qc(S))):F=!1}F&&(p.set(S,I),c(I,S,a,h,p),p.delete(S)),wo(e,r,I)}function tc(e,t){var r=e.length;if(r)return t+=t<0?r:0,sn(t,r)?e[t]:l}function nc(e,t,r){t.length?t=Ve(t,function(h){return be(h)?function(p){return Gn(p,h.length===1?h[0]:h)}:h}):t=[mt];var a=-1;t=Ve(t,wt(ce()));var c=js(e,function(h,p,b){var S=Ve(t,function(L){return L(h)});return{criteria:S,index:++a,value:h}});return mg(c,function(h,p){return ev(h,p,r)})}function zp(e,t){return rc(e,t,function(r,a){return ra(e,a)})}function rc(e,t,r){for(var a=-1,c=t.length,h={};++a<c;){var p=t[a],b=Gn(e,p);r(b,p)&&Yr(h,Tn(p,e),b)}return h}function Up(e){return function(t){return Gn(t,e)}}function Ro(e,t,r,a){var c=a?hg:hr,h=-1,p=t.length,b=e;for(e===t&&(t=ft(t)),r&&(b=Ve(e,wt(r)));++h<p;)for(var S=0,L=t[h],I=r?r(L):L;(S=c(b,I,S,a))>-1;)b!==e&&zi.call(b,S,1),zi.call(e,S,1);return e}function ic(e,t){for(var r=e?t.length:0,a=r-1;r--;){var c=t[r];if(r==a||c!==h){var h=c;sn(c)?zi.call(e,c,1):Lo(e,c)}}return e}function qo(e,t){return e+Hi($s()*(t-e+1))}function Wp(e,t,r,a){for(var c=-1,h=Ye(Wi((t-e)/(r||1)),0),p=M(h);h--;)p[a?h:++c]=e,e+=r;return p}function Mo(e,t){var r="";if(!e||t<1||t>H)return r;do t%2&&(r+=e),t=Hi(t/2),t&&(e+=e);while(t);return r}function Se(e,t){return Yo(Lc(e,t,mt),e+"")}function Hp(e){return Ds(kr(e))}function Kp(e,t){var r=kr(e);return ul(r,Kn(t,0,r.length))}function Yr(e,t,r,a){if(!Fe(e))return e;t=Tn(t,e);for(var c=-1,h=t.length,p=h-1,b=e;b!=null&&++c<h;){var S=Zt(t[c]),L=r;if(S==="__proto__"||S==="constructor"||S==="prototype")return e;if(c!=p){var I=b[S];L=a?a(I,S,b):l,L===l&&(L=Fe(I)?I:sn(t[c+1])?[]:{})}Hr(b,S,L),b=b[S]}return e}var lc=Ki?function(e,t){return Ki.set(e,t),e}:mt,Gp=Ui?function(e,t){return Ui(e,"toString",{configurable:!0,enumerable:!1,value:la(t),writable:!0})}:mt;function Qp(e){return ul(kr(e))}function Mt(e,t,r){var a=-1,c=e.length;t<0&&(t=-t>c?0:c+t),r=r>c?c:r,r<0&&(r+=c),c=t>r?0:r-t>>>0,t>>>=0;for(var h=M(c);++a<c;)h[a]=e[a+t];return h}function Yp(e,t){var r;return kn(e,function(a,c,h){return r=t(a,c,h),!r}),!!r}function Ji(e,t,r){var a=0,c=e==null?a:e.length;if(typeof t=="number"&&t===t&&c<=ie){for(;a<c;){var h=a+c>>>1,p=e[h];p!==null&&!xt(p)&&(r?p<=t:p<t)?a=h+1:c=h}return c}return Oo(e,t,mt,r)}function Oo(e,t,r,a){var c=0,h=e==null?0:e.length;if(h===0)return 0;t=r(t);for(var p=t!==t,b=t===null,S=xt(t),L=t===l;c<h;){var I=Hi((c+h)/2),F=r(e[I]),J=F!==l,oe=F===null,de=F===F,we=xt(F);if(p)var he=a||de;else L?he=de&&(a||J):b?he=de&&J&&(a||!oe):S?he=de&&J&&!oe&&(a||!we):oe||we?he=!1:he=a?F<=t:F<t;he?c=I+1:h=I}return rt(h,T)}function oc(e,t){for(var r=-1,a=e.length,c=0,h=[];++r<a;){var p=e[r],b=t?t(p):p;if(!r||!Ut(b,S)){var S=b;h[c++]=p===0?0:p}}return h}function ac(e){return typeof e=="number"?e:xt(e)?ge:+e}function St(e){if(typeof e=="string")return e;if(be(e))return Ve(e,St)+"";if(xt(e))return Fs?Fs.call(e):"";var t=e+"";return t=="0"&&1/e==-fe?"-0":t}function En(e,t,r){var a=-1,c=Mi,h=e.length,p=!0,b=[],S=b;if(r)p=!1,c=ao;else if(h>=s){var L=t?null:ov(e);if(L)return Li(L);p=!1,c=Fr,S=new Hn}else S=t?[]:b;e:for(;++a<h;){var I=e[a],F=t?t(I):I;if(I=r||I!==0?I:0,p&&F===F){for(var J=S.length;J--;)if(S[J]===F)continue e;t&&S.push(F),b.push(I)}else c(S,F,r)||(S!==b&&S.push(F),b.push(I))}return b}function Lo(e,t){return t=Tn(t,e),e=Ic(e,t),e==null||delete e[Zt(Ot(t))]}function uc(e,t,r,a){return Yr(e,t,r(Gn(e,t)),a)}function el(e,t,r,a){for(var c=e.length,h=a?c:-1;(a?h--:++h<c)&&t(e[h],h,e););return r?Mt(e,a?0:h,a?h+1:c):Mt(e,a?h+1:0,a?c:h)}function sc(e,t){var r=e;return r instanceof Ce&&(r=r.value()),uo(t,function(a,c){return c.func.apply(c.thisArg,Sn([a],c.args))},r)}function Io(e,t,r){var a=e.length;if(a<2)return a?En(e[0]):[];for(var c=-1,h=M(a);++c<a;)for(var p=e[c],b=-1;++b<a;)b!=c&&(h[c]=Kr(h[c]||p,e[b],t,r));return En(tt(h,1),t,r)}function cc(e,t,r){for(var a=-1,c=e.length,h=t.length,p={};++a<c;){var b=a<h?t[a]:l;r(p,e[a],b)}return p}function Vo(e){return ze(e)?e:[]}function Po(e){return typeof e=="function"?e:mt}function Tn(e,t){return be(e)?e:Ko(e,t)?[e]:Fc(Ae(e))}var Zp=Se;function An(e,t,r){var a=e.length;return r=r===l?a:r,!t&&r>=a?e:Mt(e,t,r)}var fc=Pg||function(e){return et.clearTimeout(e)};function dc(e,t){if(t)return e.slice();var r=e.length,a=Os?Os(r):new e.constructor(r);return e.copy(a),a}function $o(e){var t=new e.constructor(e.byteLength);return new Ni(t).set(new Ni(e)),t}function Xp(e,t){var r=t?$o(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function jp(e){var t=new e.constructor(e.source,nn.exec(e));return t.lastIndex=e.lastIndex,t}function Jp(e){return Wr?Me(Wr.call(e)):{}}function hc(e,t){var r=t?$o(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function mc(e,t){if(e!==t){var r=e!==l,a=e===null,c=e===e,h=xt(e),p=t!==l,b=t===null,S=t===t,L=xt(t);if(!b&&!L&&!h&&e>t||h&&p&&S&&!b&&!L||a&&p&&S||!r&&S||!c)return 1;if(!a&&!h&&!L&&e<t||L&&r&&c&&!a&&!h||b&&r&&c||!p&&c||!S)return-1}return 0}function ev(e,t,r){for(var a=-1,c=e.criteria,h=t.criteria,p=c.length,b=r.length;++a<p;){var S=mc(c[a],h[a]);if(S){if(a>=b)return S;var L=r[a];return S*(L=="desc"?-1:1)}}return e.index-t.index}function gc(e,t,r,a){for(var c=-1,h=e.length,p=r.length,b=-1,S=t.length,L=Ye(h-p,0),I=M(S+L),F=!a;++b<S;)I[b]=t[b];for(;++c<p;)(F||c<h)&&(I[r[c]]=e[c]);for(;L--;)I[b++]=e[c++];return I}function pc(e,t,r,a){for(var c=-1,h=e.length,p=-1,b=r.length,S=-1,L=t.length,I=Ye(h-b,0),F=M(I+L),J=!a;++c<I;)F[c]=e[c];for(var oe=c;++S<L;)F[oe+S]=t[S];for(;++p<b;)(J||c<h)&&(F[oe+r[p]]=e[c++]);return F}function ft(e,t){var r=-1,a=e.length;for(t||(t=M(a));++r<a;)t[r]=e[r];return t}function Yt(e,t,r,a){var c=!r;r||(r={});for(var h=-1,p=t.length;++h<p;){var b=t[h],S=a?a(r[b],e[b],b,r,e):l;S===l&&(S=e[b]),c?on(r,b,S):Hr(r,b,S)}return r}function tv(e,t){return Yt(e,Ho(e),t)}function nv(e,t){return Yt(e,Bc(e),t)}function tl(e,t){return function(r,a){var c=be(r)?ag:Cp,h=t?t():{};return c(r,e,ce(a,2),h)}}function wr(e){return Se(function(t,r){var a=-1,c=r.length,h=c>1?r[c-1]:l,p=c>2?r[2]:l;for(h=e.length>3&&typeof h=="function"?(c--,h):l,p&&at(r[0],r[1],p)&&(h=c<3?l:h,c=1),t=Me(t);++a<c;){var b=r[a];b&&e(t,b,a,h)}return t})}function vc(e,t){return function(r,a){if(r==null)return r;if(!dt(r))return e(r,a);for(var c=r.length,h=t?c:-1,p=Me(r);(t?h--:++h<c)&&a(p[h],h,p)!==!1;);return r}}function _c(e){return function(t,r,a){for(var c=-1,h=Me(t),p=a(t),b=p.length;b--;){var S=p[e?b:++c];if(r(h[S],S,h)===!1)break}return t}}function rv(e,t,r){var a=t&q,c=Zr(e);function h(){var p=this&&this!==et&&this instanceof h?c:e;return p.apply(a?r:this,arguments)}return h}function bc(e){return function(t){t=Ae(t);var r=mr(t)?Dt(t):l,a=r?r[0]:t.charAt(0),c=r?An(r,1).join(""):t.slice(1);return a[e]()+c}}function Sr(e){return function(t){return uo(_f(vf(t).replace(Gm,"")),e,"")}}function Zr(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=yr(e.prototype),a=e.apply(r,t);return Fe(a)?a:r}}function iv(e,t,r){var a=Zr(e);function c(){for(var h=arguments.length,p=M(h),b=h,S=xr(c);b--;)p[b]=arguments[b];var L=h<3&&p[0]!==S&&p[h-1]!==S?[]:xn(p,S);if(h-=L.length,h<r)return Cc(e,t,nl,c.placeholder,l,p,L,l,l,r-h);var I=this&&this!==et&&this instanceof c?a:e;return yt(I,this,p)}return c}function yc(e){return function(t,r,a){var c=Me(t);if(!dt(t)){var h=ce(r,3);t=Xe(t),r=function(b){return h(c[b],b,c)}}var p=e(t,r,a);return p>-1?c[h?t[p]:p]:l}}function wc(e){return un(function(t){var r=t.length,a=r,c=Rt.prototype.thru;for(e&&t.reverse();a--;){var h=t[a];if(typeof h!="function")throw new Bt(m);if(c&&!p&&ol(h)=="wrapper")var p=new Rt([],!0)}for(a=p?a:r;++a<r;){h=t[a];var b=ol(h),S=b=="wrapper"?Uo(h):l;S&&Go(S[0])&&S[1]==(G|$|K|le)&&!S[4].length&&S[9]==1?p=p[ol(S[0])].apply(p,S[3]):p=h.length==1&&Go(h)?p[b]():p.thru(h)}return function(){var L=arguments,I=L[0];if(p&&L.length==1&&be(I))return p.plant(I).value();for(var F=0,J=r?t[F].apply(this,L):I;++F<r;)J=t[F].call(this,J);return J}})}function nl(e,t,r,a,c,h,p,b,S,L){var I=t&G,F=t&q,J=t&W,oe=t&($|Z),de=t&V,we=J?l:Zr(e);function he(){for(var xe=arguments.length,ke=M(xe),Ct=xe;Ct--;)ke[Ct]=arguments[Ct];if(oe)var ut=xr(he),kt=pg(ke,ut);if(a&&(ke=gc(ke,a,c,oe)),h&&(ke=pc(ke,h,p,oe)),xe-=kt,oe&&xe<L){var Ue=xn(ke,ut);return Cc(e,t,nl,he.placeholder,r,ke,Ue,b,S,L-xe)}var Wt=F?r:this,dn=J?Wt[e]:e;return xe=ke.length,b?ke=Cv(ke,b):de&&xe>1&&ke.reverse(),I&&S<xe&&(ke.length=S),this&&this!==et&&this instanceof he&&(dn=we||Zr(dn)),dn.apply(Wt,ke)}return he}function Sc(e,t){return function(r,a){return Mp(r,e,t(a),{})}}function rl(e,t){return function(r,a){var c;if(r===l&&a===l)return t;if(r!==l&&(c=r),a!==l){if(c===l)return a;typeof r=="string"||typeof a=="string"?(r=St(r),a=St(a)):(r=ac(r),a=ac(a)),c=e(r,a)}return c}}function Fo(e){return un(function(t){return t=Ve(t,wt(ce())),Se(function(r){var a=this;return e(t,function(c){return yt(c,a,r)})})})}function il(e,t){t=t===l?" ":St(t);var r=t.length;if(r<2)return r?Mo(t,e):t;var a=Mo(t,Wi(e/gr(t)));return mr(t)?An(Dt(a),0,e).join(""):a.slice(0,e)}function lv(e,t,r,a){var c=t&q,h=Zr(e);function p(){for(var b=-1,S=arguments.length,L=-1,I=a.length,F=M(I+S),J=this&&this!==et&&this instanceof p?h:e;++L<I;)F[L]=a[L];for(;S--;)F[L++]=arguments[++b];return yt(J,c?r:this,F)}return p}function xc(e){return function(t,r,a){return a&&typeof a!="number"&&at(t,r,a)&&(r=a=l),t=fn(t),r===l?(r=t,t=0):r=fn(r),a=a===l?t<r?1:-1:fn(a),Wp(t,r,a,e)}}function ll(e){return function(t,r){return typeof t=="string"&&typeof r=="string"||(t=Lt(t),r=Lt(r)),e(t,r)}}function Cc(e,t,r,a,c,h,p,b,S,L){var I=t&$,F=I?p:l,J=I?l:p,oe=I?h:l,de=I?l:h;t|=I?K:Q,t&=~(I?Q:K),t&D||(t&=~(q|W));var we=[e,t,c,oe,F,de,J,b,S,L],he=r.apply(l,we);return Go(e)&&Vc(he,we),he.placeholder=a,Pc(he,e,t)}function No(e){var t=Qe[e];return function(r,a){if(r=Lt(r),a=a==null?0:rt(ye(a),292),a&&Ps(r)){var c=(Ae(r)+"e").split("e"),h=t(c[0]+"e"+(+c[1]+a));return c=(Ae(h)+"e").split("e"),+(c[0]+"e"+(+c[1]-a))}return t(r)}}var ov=_r&&1/Li(new _r([,-0]))[1]==fe?function(e){return new _r(e)}:ua;function kc(e){return function(t){var r=it(t);return r==nt?po(t):r==Ne?xg(t):gg(t,e(t))}}function an(e,t,r,a,c,h,p,b){var S=t&W;if(!S&&typeof e!="function")throw new Bt(m);var L=a?a.length:0;if(L||(t&=~(K|Q),a=c=l),p=p===l?p:Ye(ye(p),0),b=b===l?b:ye(b),L-=c?c.length:0,t&Q){var I=a,F=c;a=c=l}var J=S?l:Uo(e),oe=[e,t,r,a,c,I,F,h,p,b];if(J&&wv(oe,J),e=oe[0],t=oe[1],r=oe[2],a=oe[3],c=oe[4],b=oe[9]=oe[9]===l?S?0:e.length:Ye(oe[9]-L,0),!b&&t&($|Z)&&(t&=~($|Z)),!t||t==q)var de=rv(e,t,r);else t==$||t==Z?de=iv(e,t,b):(t==K||t==(q|K))&&!c.length?de=lv(e,t,r,a):de=nl.apply(l,oe);var we=J?lc:Vc;return Pc(we(de,oe),e,t)}function Ec(e,t,r,a){return e===l||Ut(e,vr[r])&&!Re.call(a,r)?t:e}function Tc(e,t,r,a,c,h){return Fe(e)&&Fe(t)&&(h.set(t,e),ji(e,t,l,Tc,h),h.delete(t)),e}function av(e){return Jr(e)?l:e}function Ac(e,t,r,a,c,h){var p=r&B,b=e.length,S=t.length;if(b!=S&&!(p&&S>b))return!1;var L=h.get(e),I=h.get(t);if(L&&I)return L==t&&I==e;var F=-1,J=!0,oe=r&U?new Hn:l;for(h.set(e,t),h.set(t,e);++F<b;){var de=e[F],we=t[F];if(a)var he=p?a(we,de,F,t,e,h):a(de,we,F,e,t,h);if(he!==l){if(he)continue;J=!1;break}if(oe){if(!so(t,function(xe,ke){if(!Fr(oe,ke)&&(de===xe||c(de,xe,r,a,h)))return oe.push(ke)})){J=!1;break}}else if(!(de===we||c(de,we,r,a,h))){J=!1;break}}return h.delete(e),h.delete(t),J}function uv(e,t,r,a,c,h,p){switch(r){case pn:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case en:return!(e.byteLength!=t.byteLength||!h(new Ni(e),new Ni(t)));case Ee:case Y:case bt:return Ut(+e,+t);case lt:return e.name==t.name&&e.message==t.message;case $t:case Ge:return e==t+"";case nt:var b=po;case Ne:var S=a&B;if(b||(b=Li),e.size!=t.size&&!S)return!1;var L=p.get(e);if(L)return L==t;a|=U,p.set(e,t);var I=Ac(b(e),b(t),a,c,h,p);return p.delete(e),I;case Ft:if(Wr)return Wr.call(e)==Wr.call(t)}return!1}function sv(e,t,r,a,c,h){var p=r&B,b=Do(e),S=b.length,L=Do(t),I=L.length;if(S!=I&&!p)return!1;for(var F=S;F--;){var J=b[F];if(!(p?J in t:Re.call(t,J)))return!1}var oe=h.get(e),de=h.get(t);if(oe&&de)return oe==t&&de==e;var we=!0;h.set(e,t),h.set(t,e);for(var he=p;++F<S;){J=b[F];var xe=e[J],ke=t[J];if(a)var Ct=p?a(ke,xe,J,t,e,h):a(xe,ke,J,e,t,h);if(!(Ct===l?xe===ke||c(xe,ke,r,a,h):Ct)){we=!1;break}he||(he=J=="constructor")}if(we&&!he){var ut=e.constructor,kt=t.constructor;ut!=kt&&"constructor"in e&&"constructor"in t&&!(typeof ut=="function"&&ut instanceof ut&&typeof kt=="function"&&kt instanceof kt)&&(we=!1)}return h.delete(e),h.delete(t),we}function un(e){return Yo(Lc(e,l,Uc),e+"")}function Do(e){return Qs(e,Xe,Ho)}function zo(e){return Qs(e,ht,Bc)}var Uo=Ki?function(e){return Ki.get(e)}:ua;function ol(e){for(var t=e.name+"",r=br[t],a=Re.call(br,t)?r.length:0;a--;){var c=r[a],h=c.func;if(h==null||h==e)return c.name}return t}function xr(e){var t=Re.call(d,"placeholder")?d:e;return t.placeholder}function ce(){var e=d.iteratee||oa;return e=e===oa?Xs:e,arguments.length?e(arguments[0],arguments[1]):e}function al(e,t){var r=e.__data__;return vv(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Wo(e){for(var t=Xe(e),r=t.length;r--;){var a=t[r],c=e[a];t[r]=[a,c,Mc(c)]}return t}function Qn(e,t){var r=yg(e,t);return Zs(r)?r:l}function cv(e){var t=Re.call(e,Un),r=e[Un];try{e[Un]=l;var a=!0}catch{}var c=$i.call(e);return a&&(t?e[Un]=r:delete e[Un]),c}var Ho=_o?function(e){return e==null?[]:(e=Me(e),wn(_o(e),function(t){return Is.call(e,t)}))}:sa,Bc=_o?function(e){for(var t=[];e;)Sn(t,Ho(e)),e=Di(e);return t}:sa,it=ot;(bo&&it(new bo(new ArrayBuffer(1)))!=pn||Dr&&it(new Dr)!=nt||yo&&it(yo.resolve())!=gn||_r&&it(new _r)!=Ne||zr&&it(new zr)!=Pn)&&(it=function(e){var t=ot(e),r=t==ct?e.constructor:l,a=r?Yn(r):"";if(a)switch(a){case Kg:return pn;case Gg:return nt;case Qg:return gn;case Yg:return Ne;case Zg:return Pn}return t});function fv(e,t,r){for(var a=-1,c=r.length;++a<c;){var h=r[a],p=h.size;switch(h.type){case"drop":e+=p;break;case"dropRight":t-=p;break;case"take":t=rt(t,e+p);break;case"takeRight":e=Ye(e,t-p);break}}return{start:e,end:t}}function dv(e){var t=e.match(Zl);return t?t[1].split(Xl):[]}function Rc(e,t,r){t=Tn(t,e);for(var a=-1,c=t.length,h=!1;++a<c;){var p=Zt(t[a]);if(!(h=e!=null&&r(e,p)))break;e=e[p]}return h||++a!=c?h:(c=e==null?0:e.length,!!c&&ml(c)&&sn(p,c)&&(be(e)||Zn(e)))}function hv(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&Re.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function qc(e){return typeof e.constructor=="function"&&!Xr(e)?yr(Di(e)):{}}function mv(e,t,r){var a=e.constructor;switch(t){case en:return $o(e);case Ee:case Y:return new a(+e);case pn:return Xp(e,r);case ur:case Nt:case Gt:case vn:case Lr:case $n:case Fn:case sr:case cr:return hc(e,r);case nt:return new a;case bt:case Ge:return new a(e);case $t:return jp(e);case Ne:return new a;case Ft:return Jp(e)}}function gv(e,t){var r=t.length;if(!r)return e;var a=r-1;return t[a]=(r>1?"& ":"")+t[a],t=t.join(r>2?", ":" "),e.replace(Yl,`{
|
|
9
|
-
/* [wrapped with `+
|
|
10
|
-
`)}function pv(e){return be(e)||Zn(e)||!!(Vs&&e&&e[Vs])}function sn(e,t){var r=typeof e;return t=t??H,!!t&&(r=="number"||r!="symbol"&&Bi.test(e))&&e>-1&&e%1==0&&e<t}function at(e,t,r){if(!Fe(r))return!1;var a=typeof t;return(a=="number"?dt(r)&&sn(t,r.length):a=="string"&&t in r)?Ut(r[t],e):!1}function Ko(e,t){if(be(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||xt(e)?!0:_n.test(e)||!Dn.test(e)||t!=null&&e in Me(t)}function vv(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Go(e){var t=ol(e),r=d[t];if(typeof r!="function"||!(t in Ce.prototype))return!1;if(e===r)return!0;var a=Uo(r);return!!a&&e===a[0]}function _v(e){return!!Ms&&Ms in e}var bv=Vi?cn:ca;function Xr(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||vr;return e===r}function Mc(e){return e===e&&!Fe(e)}function Oc(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==l||e in Me(r))}}function yv(e){var t=dl(e,function(a){return r.size===A&&r.clear(),a}),r=t.cache;return t}function wv(e,t){var r=e[1],a=t[1],c=r|a,h=c<(q|W|G),p=a==G&&r==$||a==G&&r==le&&e[7].length<=t[8]||a==(G|le)&&t[7].length<=t[8]&&r==$;if(!(h||p))return e;a&q&&(e[2]=t[2],c|=r&q?0:D);var b=t[3];if(b){var S=e[3];e[3]=S?gc(S,b,t[4]):b,e[4]=S?xn(e[3],v):t[4]}return b=t[5],b&&(S=e[5],e[5]=S?pc(S,b,t[6]):b,e[6]=S?xn(e[5],v):t[6]),b=t[7],b&&(e[7]=b),a&G&&(e[8]=e[8]==null?t[8]:rt(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=c,e}function Sv(e){var t=[];if(e!=null)for(var r in Me(e))t.push(r);return t}function xv(e){return $i.call(e)}function Lc(e,t,r){return t=Ye(t===l?e.length-1:t,0),function(){for(var a=arguments,c=-1,h=Ye(a.length-t,0),p=M(h);++c<h;)p[c]=a[t+c];c=-1;for(var b=M(t+1);++c<t;)b[c]=a[c];return b[t]=r(p),yt(e,this,b)}}function Ic(e,t){return t.length<2?e:Gn(e,Mt(t,0,-1))}function Cv(e,t){for(var r=e.length,a=rt(t.length,r),c=ft(e);a--;){var h=t[a];e[a]=sn(h,r)?c[h]:l}return e}function Qo(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Vc=$c(lc),jr=Fg||function(e,t){return et.setTimeout(e,t)},Yo=$c(Gp);function Pc(e,t,r){var a=t+"";return Yo(e,gv(a,kv(dv(a),r)))}function $c(e){var t=0,r=0;return function(){var a=Ug(),c=te-(a-r);if(r=a,c>0){if(++t>=E)return arguments[0]}else t=0;return e.apply(l,arguments)}}function ul(e,t){var r=-1,a=e.length,c=a-1;for(t=t===l?a:t;++r<t;){var h=qo(r,c),p=e[h];e[h]=e[r],e[r]=p}return e.length=t,e}var Fc=yv(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Kl,function(r,a,c,h){t.push(c?h.replace(yn,"$1"):a||r)}),t});function Zt(e){if(typeof e=="string"||xt(e))return e;var t=e+"";return t=="0"&&1/e==-fe?"-0":t}function Yn(e){if(e!=null){try{return Pi.call(e)}catch{}try{return e+""}catch{}}return""}function kv(e,t){return At(ve,function(r){var a="_."+r[0];t&r[1]&&!Mi(e,a)&&e.push(a)}),e.sort()}function Nc(e){if(e instanceof Ce)return e.clone();var t=new Rt(e.__wrapped__,e.__chain__);return t.__actions__=ft(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Ev(e,t,r){(r?at(e,t,r):t===l)?t=1:t=Ye(ye(t),0);var a=e==null?0:e.length;if(!a||t<1)return[];for(var c=0,h=0,p=M(Wi(a/t));c<a;)p[h++]=Mt(e,c,c+=t);return p}function Tv(e){for(var t=-1,r=e==null?0:e.length,a=0,c=[];++t<r;){var h=e[t];h&&(c[a++]=h)}return c}function Av(){var e=arguments.length;if(!e)return[];for(var t=M(e-1),r=arguments[0],a=e;a--;)t[a-1]=arguments[a];return Sn(be(r)?ft(r):[r],tt(t,1))}var Bv=Se(function(e,t){return ze(e)?Kr(e,tt(t,1,ze,!0)):[]}),Rv=Se(function(e,t){var r=Ot(t);return ze(r)&&(r=l),ze(e)?Kr(e,tt(t,1,ze,!0),ce(r,2)):[]}),qv=Se(function(e,t){var r=Ot(t);return ze(r)&&(r=l),ze(e)?Kr(e,tt(t,1,ze,!0),l,r):[]});function Mv(e,t,r){var a=e==null?0:e.length;return a?(t=r||t===l?1:ye(t),Mt(e,t<0?0:t,a)):[]}function Ov(e,t,r){var a=e==null?0:e.length;return a?(t=r||t===l?1:ye(t),t=a-t,Mt(e,0,t<0?0:t)):[]}function Lv(e,t){return e&&e.length?el(e,ce(t,3),!0,!0):[]}function Iv(e,t){return e&&e.length?el(e,ce(t,3),!0):[]}function Vv(e,t,r,a){var c=e==null?0:e.length;return c?(r&&typeof r!="number"&&at(e,t,r)&&(r=0,a=c),Ap(e,t,r,a)):[]}function Dc(e,t,r){var a=e==null?0:e.length;if(!a)return-1;var c=r==null?0:ye(r);return c<0&&(c=Ye(a+c,0)),Oi(e,ce(t,3),c)}function zc(e,t,r){var a=e==null?0:e.length;if(!a)return-1;var c=a-1;return r!==l&&(c=ye(r),c=r<0?Ye(a+c,0):rt(c,a-1)),Oi(e,ce(t,3),c,!0)}function Uc(e){var t=e==null?0:e.length;return t?tt(e,1):[]}function Pv(e){var t=e==null?0:e.length;return t?tt(e,fe):[]}function $v(e,t){var r=e==null?0:e.length;return r?(t=t===l?1:ye(t),tt(e,t)):[]}function Fv(e){for(var t=-1,r=e==null?0:e.length,a={};++t<r;){var c=e[t];a[c[0]]=c[1]}return a}function Wc(e){return e&&e.length?e[0]:l}function Nv(e,t,r){var a=e==null?0:e.length;if(!a)return-1;var c=r==null?0:ye(r);return c<0&&(c=Ye(a+c,0)),hr(e,t,c)}function Dv(e){var t=e==null?0:e.length;return t?Mt(e,0,-1):[]}var zv=Se(function(e){var t=Ve(e,Vo);return t.length&&t[0]===e[0]?Eo(t):[]}),Uv=Se(function(e){var t=Ot(e),r=Ve(e,Vo);return t===Ot(r)?t=l:r.pop(),r.length&&r[0]===e[0]?Eo(r,ce(t,2)):[]}),Wv=Se(function(e){var t=Ot(e),r=Ve(e,Vo);return t=typeof t=="function"?t:l,t&&r.pop(),r.length&&r[0]===e[0]?Eo(r,l,t):[]});function Hv(e,t){return e==null?"":Dg.call(e,t)}function Ot(e){var t=e==null?0:e.length;return t?e[t-1]:l}function Kv(e,t,r){var a=e==null?0:e.length;if(!a)return-1;var c=a;return r!==l&&(c=ye(r),c=c<0?Ye(a+c,0):rt(c,a-1)),t===t?kg(e,t,c):Oi(e,Cs,c,!0)}function Gv(e,t){return e&&e.length?tc(e,ye(t)):l}var Qv=Se(Hc);function Hc(e,t){return e&&e.length&&t&&t.length?Ro(e,t):e}function Yv(e,t,r){return e&&e.length&&t&&t.length?Ro(e,t,ce(r,2)):e}function Zv(e,t,r){return e&&e.length&&t&&t.length?Ro(e,t,l,r):e}var Xv=un(function(e,t){var r=e==null?0:e.length,a=So(e,t);return ic(e,Ve(t,function(c){return sn(c,r)?+c:c}).sort(mc)),a});function jv(e,t){var r=[];if(!(e&&e.length))return r;var a=-1,c=[],h=e.length;for(t=ce(t,3);++a<h;){var p=e[a];t(p,a,e)&&(r.push(p),c.push(a))}return ic(e,c),r}function Zo(e){return e==null?e:Hg.call(e)}function Jv(e,t,r){var a=e==null?0:e.length;return a?(r&&typeof r!="number"&&at(e,t,r)?(t=0,r=a):(t=t==null?0:ye(t),r=r===l?a:ye(r)),Mt(e,t,r)):[]}function e0(e,t){return Ji(e,t)}function t0(e,t,r){return Oo(e,t,ce(r,2))}function n0(e,t){var r=e==null?0:e.length;if(r){var a=Ji(e,t);if(a<r&&Ut(e[a],t))return a}return-1}function r0(e,t){return Ji(e,t,!0)}function i0(e,t,r){return Oo(e,t,ce(r,2),!0)}function l0(e,t){var r=e==null?0:e.length;if(r){var a=Ji(e,t,!0)-1;if(Ut(e[a],t))return a}return-1}function o0(e){return e&&e.length?oc(e):[]}function a0(e,t){return e&&e.length?oc(e,ce(t,2)):[]}function u0(e){var t=e==null?0:e.length;return t?Mt(e,1,t):[]}function s0(e,t,r){return e&&e.length?(t=r||t===l?1:ye(t),Mt(e,0,t<0?0:t)):[]}function c0(e,t,r){var a=e==null?0:e.length;return a?(t=r||t===l?1:ye(t),t=a-t,Mt(e,t<0?0:t,a)):[]}function f0(e,t){return e&&e.length?el(e,ce(t,3),!1,!0):[]}function d0(e,t){return e&&e.length?el(e,ce(t,3)):[]}var h0=Se(function(e){return En(tt(e,1,ze,!0))}),m0=Se(function(e){var t=Ot(e);return ze(t)&&(t=l),En(tt(e,1,ze,!0),ce(t,2))}),g0=Se(function(e){var t=Ot(e);return t=typeof t=="function"?t:l,En(tt(e,1,ze,!0),l,t)});function p0(e){return e&&e.length?En(e):[]}function v0(e,t){return e&&e.length?En(e,ce(t,2)):[]}function _0(e,t){return t=typeof t=="function"?t:l,e&&e.length?En(e,l,t):[]}function Xo(e){if(!(e&&e.length))return[];var t=0;return e=wn(e,function(r){if(ze(r))return t=Ye(r.length,t),!0}),mo(t,function(r){return Ve(e,co(r))})}function Kc(e,t){if(!(e&&e.length))return[];var r=Xo(e);return t==null?r:Ve(r,function(a){return yt(t,l,a)})}var b0=Se(function(e,t){return ze(e)?Kr(e,t):[]}),y0=Se(function(e){return Io(wn(e,ze))}),w0=Se(function(e){var t=Ot(e);return ze(t)&&(t=l),Io(wn(e,ze),ce(t,2))}),S0=Se(function(e){var t=Ot(e);return t=typeof t=="function"?t:l,Io(wn(e,ze),l,t)}),x0=Se(Xo);function C0(e,t){return cc(e||[],t||[],Hr)}function k0(e,t){return cc(e||[],t||[],Yr)}var E0=Se(function(e){var t=e.length,r=t>1?e[t-1]:l;return r=typeof r=="function"?(e.pop(),r):l,Kc(e,r)});function Gc(e){var t=d(e);return t.__chain__=!0,t}function T0(e,t){return t(e),e}function sl(e,t){return t(e)}var A0=un(function(e){var t=e.length,r=t?e[0]:0,a=this.__wrapped__,c=function(h){return So(h,e)};return t>1||this.__actions__.length||!(a instanceof Ce)||!sn(r)?this.thru(c):(a=a.slice(r,+r+(t?1:0)),a.__actions__.push({func:sl,args:[c],thisArg:l}),new Rt(a,this.__chain__).thru(function(h){return t&&!h.length&&h.push(l),h}))});function B0(){return Gc(this)}function R0(){return new Rt(this.value(),this.__chain__)}function q0(){this.__values__===l&&(this.__values__=uf(this.value()));var e=this.__index__>=this.__values__.length,t=e?l:this.__values__[this.__index__++];return{done:e,value:t}}function M0(){return this}function O0(e){for(var t,r=this;r instanceof Qi;){var a=Nc(r);a.__index__=0,a.__values__=l,t?c.__wrapped__=a:t=a;var c=a;r=r.__wrapped__}return c.__wrapped__=e,t}function L0(){var e=this.__wrapped__;if(e instanceof Ce){var t=e;return this.__actions__.length&&(t=new Ce(this)),t=t.reverse(),t.__actions__.push({func:sl,args:[Zo],thisArg:l}),new Rt(t,this.__chain__)}return this.thru(Zo)}function I0(){return sc(this.__wrapped__,this.__actions__)}var V0=tl(function(e,t,r){Re.call(e,r)?++e[r]:on(e,r,1)});function P0(e,t,r){var a=be(e)?Ss:Tp;return r&&at(e,t,r)&&(t=l),a(e,ce(t,3))}function $0(e,t){var r=be(e)?wn:Ks;return r(e,ce(t,3))}var F0=yc(Dc),N0=yc(zc);function D0(e,t){return tt(cl(e,t),1)}function z0(e,t){return tt(cl(e,t),fe)}function U0(e,t,r){return r=r===l?1:ye(r),tt(cl(e,t),r)}function Qc(e,t){var r=be(e)?At:kn;return r(e,ce(t,3))}function Yc(e,t){var r=be(e)?ug:Hs;return r(e,ce(t,3))}var W0=tl(function(e,t,r){Re.call(e,r)?e[r].push(t):on(e,r,[t])});function H0(e,t,r,a){e=dt(e)?e:kr(e),r=r&&!a?ye(r):0;var c=e.length;return r<0&&(r=Ye(c+r,0)),gl(e)?r<=c&&e.indexOf(t,r)>-1:!!c&&hr(e,t,r)>-1}var K0=Se(function(e,t,r){var a=-1,c=typeof t=="function",h=dt(e)?M(e.length):[];return kn(e,function(p){h[++a]=c?yt(t,p,r):Gr(p,t,r)}),h}),G0=tl(function(e,t,r){on(e,r,t)});function cl(e,t){var r=be(e)?Ve:js;return r(e,ce(t,3))}function Q0(e,t,r,a){return e==null?[]:(be(t)||(t=t==null?[]:[t]),r=a?l:r,be(r)||(r=r==null?[]:[r]),nc(e,t,r))}var Y0=tl(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});function Z0(e,t,r){var a=be(e)?uo:Es,c=arguments.length<3;return a(e,ce(t,4),r,c,kn)}function X0(e,t,r){var a=be(e)?sg:Es,c=arguments.length<3;return a(e,ce(t,4),r,c,Hs)}function j0(e,t){var r=be(e)?wn:Ks;return r(e,hl(ce(t,3)))}function J0(e){var t=be(e)?Ds:Hp;return t(e)}function e_(e,t,r){(r?at(e,t,r):t===l)?t=1:t=ye(t);var a=be(e)?Sp:Kp;return a(e,t)}function t_(e){var t=be(e)?xp:Qp;return t(e)}function n_(e){if(e==null)return 0;if(dt(e))return gl(e)?gr(e):e.length;var t=it(e);return t==nt||t==Ne?e.size:Ao(e).length}function r_(e,t,r){var a=be(e)?so:Yp;return r&&at(e,t,r)&&(t=l),a(e,ce(t,3))}var i_=Se(function(e,t){if(e==null)return[];var r=t.length;return r>1&&at(e,t[0],t[1])?t=[]:r>2&&at(t[0],t[1],t[2])&&(t=[t[0]]),nc(e,tt(t,1),[])}),fl=$g||function(){return et.Date.now()};function l_(e,t){if(typeof t!="function")throw new Bt(m);return e=ye(e),function(){if(--e<1)return t.apply(this,arguments)}}function Zc(e,t,r){return t=r?l:t,t=e&&t==null?e.length:t,an(e,G,l,l,l,l,t)}function Xc(e,t){var r;if(typeof t!="function")throw new Bt(m);return e=ye(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=l),r}}var jo=Se(function(e,t,r){var a=q;if(r.length){var c=xn(r,xr(jo));a|=K}return an(e,a,t,r,c)}),jc=Se(function(e,t,r){var a=q|W;if(r.length){var c=xn(r,xr(jc));a|=K}return an(t,a,e,r,c)});function Jc(e,t,r){t=r?l:t;var a=an(e,$,l,l,l,l,l,t);return a.placeholder=Jc.placeholder,a}function ef(e,t,r){t=r?l:t;var a=an(e,Z,l,l,l,l,l,t);return a.placeholder=ef.placeholder,a}function tf(e,t,r){var a,c,h,p,b,S,L=0,I=!1,F=!1,J=!0;if(typeof e!="function")throw new Bt(m);t=Lt(t)||0,Fe(r)&&(I=!!r.leading,F="maxWait"in r,h=F?Ye(Lt(r.maxWait)||0,t):h,J="trailing"in r?!!r.trailing:J);function oe(Ue){var Wt=a,dn=c;return a=c=l,L=Ue,p=e.apply(dn,Wt),p}function de(Ue){return L=Ue,b=jr(xe,t),I?oe(Ue):p}function we(Ue){var Wt=Ue-S,dn=Ue-L,wf=t-Wt;return F?rt(wf,h-dn):wf}function he(Ue){var Wt=Ue-S,dn=Ue-L;return S===l||Wt>=t||Wt<0||F&&dn>=h}function xe(){var Ue=fl();if(he(Ue))return ke(Ue);b=jr(xe,we(Ue))}function ke(Ue){return b=l,J&&a?oe(Ue):(a=c=l,p)}function Ct(){b!==l&&fc(b),L=0,a=S=c=b=l}function ut(){return b===l?p:ke(fl())}function kt(){var Ue=fl(),Wt=he(Ue);if(a=arguments,c=this,S=Ue,Wt){if(b===l)return de(S);if(F)return fc(b),b=jr(xe,t),oe(S)}return b===l&&(b=jr(xe,t)),p}return kt.cancel=Ct,kt.flush=ut,kt}var o_=Se(function(e,t){return Ws(e,1,t)}),a_=Se(function(e,t,r){return Ws(e,Lt(t)||0,r)});function u_(e){return an(e,V)}function dl(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Bt(m);var r=function(){var a=arguments,c=t?t.apply(this,a):a[0],h=r.cache;if(h.has(c))return h.get(c);var p=e.apply(this,a);return r.cache=h.set(c,p)||h,p};return r.cache=new(dl.Cache||ln),r}dl.Cache=ln;function hl(e){if(typeof e!="function")throw new Bt(m);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function s_(e){return Xc(2,e)}var c_=Zp(function(e,t){t=t.length==1&&be(t[0])?Ve(t[0],wt(ce())):Ve(tt(t,1),wt(ce()));var r=t.length;return Se(function(a){for(var c=-1,h=rt(a.length,r);++c<h;)a[c]=t[c].call(this,a[c]);return yt(e,this,a)})}),Jo=Se(function(e,t){var r=xn(t,xr(Jo));return an(e,K,l,t,r)}),nf=Se(function(e,t){var r=xn(t,xr(nf));return an(e,Q,l,t,r)}),f_=un(function(e,t){return an(e,le,l,l,l,t)});function d_(e,t){if(typeof e!="function")throw new Bt(m);return t=t===l?t:ye(t),Se(e,t)}function h_(e,t){if(typeof e!="function")throw new Bt(m);return t=t==null?0:Ye(ye(t),0),Se(function(r){var a=r[t],c=An(r,0,t);return a&&Sn(c,a),yt(e,this,c)})}function m_(e,t,r){var a=!0,c=!0;if(typeof e!="function")throw new Bt(m);return Fe(r)&&(a="leading"in r?!!r.leading:a,c="trailing"in r?!!r.trailing:c),tf(e,t,{leading:a,maxWait:t,trailing:c})}function g_(e){return Zc(e,1)}function p_(e,t){return Jo(Po(t),e)}function v_(){if(!arguments.length)return[];var e=arguments[0];return be(e)?e:[e]}function __(e){return qt(e,y)}function b_(e,t){return t=typeof t=="function"?t:l,qt(e,y,t)}function y_(e){return qt(e,C|y)}function w_(e,t){return t=typeof t=="function"?t:l,qt(e,C|y,t)}function S_(e,t){return t==null||Us(e,t,Xe(t))}function Ut(e,t){return e===t||e!==e&&t!==t}var x_=ll(ko),C_=ll(function(e,t){return e>=t}),Zn=Ys(function(){return arguments}())?Ys:function(e){return De(e)&&Re.call(e,"callee")&&!Is.call(e,"callee")},be=M.isArray,k_=ps?wt(ps):Op;function dt(e){return e!=null&&ml(e.length)&&!cn(e)}function ze(e){return De(e)&&dt(e)}function E_(e){return e===!0||e===!1||De(e)&&ot(e)==Ee}var Bn=Ng||ca,T_=vs?wt(vs):Lp;function A_(e){return De(e)&&e.nodeType===1&&!Jr(e)}function B_(e){if(e==null)return!0;if(dt(e)&&(be(e)||typeof e=="string"||typeof e.splice=="function"||Bn(e)||Cr(e)||Zn(e)))return!e.length;var t=it(e);if(t==nt||t==Ne)return!e.size;if(Xr(e))return!Ao(e).length;for(var r in e)if(Re.call(e,r))return!1;return!0}function R_(e,t){return Qr(e,t)}function q_(e,t,r){r=typeof r=="function"?r:l;var a=r?r(e,t):l;return a===l?Qr(e,t,l,r):!!a}function ea(e){if(!De(e))return!1;var t=ot(e);return t==lt||t==$e||typeof e.message=="string"&&typeof e.name=="string"&&!Jr(e)}function M_(e){return typeof e=="number"&&Ps(e)}function cn(e){if(!Fe(e))return!1;var t=ot(e);return t==Pt||t==_t||t==ne||t==Or}function rf(e){return typeof e=="number"&&e==ye(e)}function ml(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=H}function Fe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function De(e){return e!=null&&typeof e=="object"}var lf=_s?wt(_s):Vp;function O_(e,t){return e===t||To(e,t,Wo(t))}function L_(e,t,r){return r=typeof r=="function"?r:l,To(e,t,Wo(t),r)}function I_(e){return of(e)&&e!=+e}function V_(e){if(bv(e))throw new pe(f);return Zs(e)}function P_(e){return e===null}function $_(e){return e==null}function of(e){return typeof e=="number"||De(e)&&ot(e)==bt}function Jr(e){if(!De(e)||ot(e)!=ct)return!1;var t=Di(e);if(t===null)return!0;var r=Re.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Pi.call(r)==Lg}var ta=bs?wt(bs):Pp;function F_(e){return rf(e)&&e>=-H&&e<=H}var af=ys?wt(ys):$p;function gl(e){return typeof e=="string"||!be(e)&&De(e)&&ot(e)==Ge}function xt(e){return typeof e=="symbol"||De(e)&&ot(e)==Ft}var Cr=ws?wt(ws):Fp;function N_(e){return e===l}function D_(e){return De(e)&&it(e)==Pn}function z_(e){return De(e)&&ot(e)==yi}var U_=ll(Bo),W_=ll(function(e,t){return e<=t});function uf(e){if(!e)return[];if(dt(e))return gl(e)?Dt(e):ft(e);if(Nr&&e[Nr])return Sg(e[Nr]());var t=it(e),r=t==nt?po:t==Ne?Li:kr;return r(e)}function fn(e){if(!e)return e===0?e:0;if(e=Lt(e),e===fe||e===-fe){var t=e<0?-1:1;return t*se}return e===e?e:0}function ye(e){var t=fn(e),r=t%1;return t===t?r?t-r:t:0}function sf(e){return e?Kn(ye(e),0,R):0}function Lt(e){if(typeof e=="number")return e;if(xt(e))return ge;if(Fe(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Fe(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Ts(e);var r=Jl.test(e);return r||Ai.test(e)?lg(e.slice(2),r?2:8):$r.test(e)?ge:+e}function cf(e){return Yt(e,ht(e))}function H_(e){return e?Kn(ye(e),-H,H):e===0?e:0}function Ae(e){return e==null?"":St(e)}var K_=wr(function(e,t){if(Xr(t)||dt(t)){Yt(t,Xe(t),e);return}for(var r in t)Re.call(t,r)&&Hr(e,r,t[r])}),ff=wr(function(e,t){Yt(t,ht(t),e)}),pl=wr(function(e,t,r,a){Yt(t,ht(t),e,a)}),G_=wr(function(e,t,r,a){Yt(t,Xe(t),e,a)}),Q_=un(So);function Y_(e,t){var r=yr(e);return t==null?r:zs(r,t)}var Z_=Se(function(e,t){e=Me(e);var r=-1,a=t.length,c=a>2?t[2]:l;for(c&&at(t[0],t[1],c)&&(a=1);++r<a;)for(var h=t[r],p=ht(h),b=-1,S=p.length;++b<S;){var L=p[b],I=e[L];(I===l||Ut(I,vr[L])&&!Re.call(e,L))&&(e[L]=h[L])}return e}),X_=Se(function(e){return e.push(l,Tc),yt(df,l,e)});function j_(e,t){return xs(e,ce(t,3),Qt)}function J_(e,t){return xs(e,ce(t,3),Co)}function eb(e,t){return e==null?e:xo(e,ce(t,3),ht)}function tb(e,t){return e==null?e:Gs(e,ce(t,3),ht)}function nb(e,t){return e&&Qt(e,ce(t,3))}function rb(e,t){return e&&Co(e,ce(t,3))}function ib(e){return e==null?[]:Xi(e,Xe(e))}function lb(e){return e==null?[]:Xi(e,ht(e))}function na(e,t,r){var a=e==null?l:Gn(e,t);return a===l?r:a}function ob(e,t){return e!=null&&Rc(e,t,Bp)}function ra(e,t){return e!=null&&Rc(e,t,Rp)}var ab=Sc(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=$i.call(t)),e[t]=r},la(mt)),ub=Sc(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=$i.call(t)),Re.call(e,t)?e[t].push(r):e[t]=[r]},ce),sb=Se(Gr);function Xe(e){return dt(e)?Ns(e):Ao(e)}function ht(e){return dt(e)?Ns(e,!0):Np(e)}function cb(e,t){var r={};return t=ce(t,3),Qt(e,function(a,c,h){on(r,t(a,c,h),a)}),r}function fb(e,t){var r={};return t=ce(t,3),Qt(e,function(a,c,h){on(r,c,t(a,c,h))}),r}var db=wr(function(e,t,r){ji(e,t,r)}),df=wr(function(e,t,r,a){ji(e,t,r,a)}),hb=un(function(e,t){var r={};if(e==null)return r;var a=!1;t=Ve(t,function(h){return h=Tn(h,e),a||(a=h.length>1),h}),Yt(e,zo(e),r),a&&(r=qt(r,C|k|y,av));for(var c=t.length;c--;)Lo(r,t[c]);return r});function mb(e,t){return hf(e,hl(ce(t)))}var gb=un(function(e,t){return e==null?{}:zp(e,t)});function hf(e,t){if(e==null)return{};var r=Ve(zo(e),function(a){return[a]});return t=ce(t),rc(e,r,function(a,c){return t(a,c[0])})}function pb(e,t,r){t=Tn(t,e);var a=-1,c=t.length;for(c||(c=1,e=l);++a<c;){var h=e==null?l:e[Zt(t[a])];h===l&&(a=c,h=r),e=cn(h)?h.call(e):h}return e}function vb(e,t,r){return e==null?e:Yr(e,t,r)}function _b(e,t,r,a){return a=typeof a=="function"?a:l,e==null?e:Yr(e,t,r,a)}var mf=kc(Xe),gf=kc(ht);function bb(e,t,r){var a=be(e),c=a||Bn(e)||Cr(e);if(t=ce(t,4),r==null){var h=e&&e.constructor;c?r=a?new h:[]:Fe(e)?r=cn(h)?yr(Di(e)):{}:r={}}return(c?At:Qt)(e,function(p,b,S){return t(r,p,b,S)}),r}function yb(e,t){return e==null?!0:Lo(e,t)}function wb(e,t,r){return e==null?e:uc(e,t,Po(r))}function Sb(e,t,r,a){return a=typeof a=="function"?a:l,e==null?e:uc(e,t,Po(r),a)}function kr(e){return e==null?[]:go(e,Xe(e))}function xb(e){return e==null?[]:go(e,ht(e))}function Cb(e,t,r){return r===l&&(r=t,t=l),r!==l&&(r=Lt(r),r=r===r?r:0),t!==l&&(t=Lt(t),t=t===t?t:0),Kn(Lt(e),t,r)}function kb(e,t,r){return t=fn(t),r===l?(r=t,t=0):r=fn(r),e=Lt(e),qp(e,t,r)}function Eb(e,t,r){if(r&&typeof r!="boolean"&&at(e,t,r)&&(t=r=l),r===l&&(typeof t=="boolean"?(r=t,t=l):typeof e=="boolean"&&(r=e,e=l)),e===l&&t===l?(e=0,t=1):(e=fn(e),t===l?(t=e,e=0):t=fn(t)),e>t){var a=e;e=t,t=a}if(r||e%1||t%1){var c=$s();return rt(e+c*(t-e+ig("1e-"+((c+"").length-1))),t)}return qo(e,t)}var Tb=Sr(function(e,t,r){return t=t.toLowerCase(),e+(r?pf(t):t)});function pf(e){return ia(Ae(e).toLowerCase())}function vf(e){return e=Ae(e),e&&e.replace(Ri,vg).replace(Qm,"")}function Ab(e,t,r){e=Ae(e),t=St(t);var a=e.length;r=r===l?a:Kn(ye(r),0,a);var c=r;return r-=t.length,r>=0&&e.slice(r,c)==t}function Bb(e){return e=Ae(e),e&&ki.test(e)?e.replace(Ci,_g):e}function Rb(e){return e=Ae(e),e&&Gl.test(e)?e.replace(Vr,"\\$&"):e}var qb=Sr(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),Mb=Sr(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),Ob=bc("toLowerCase");function Lb(e,t,r){e=Ae(e),t=ye(t);var a=t?gr(e):0;if(!t||a>=t)return e;var c=(t-a)/2;return il(Hi(c),r)+e+il(Wi(c),r)}function Ib(e,t,r){e=Ae(e),t=ye(t);var a=t?gr(e):0;return t&&a<t?e+il(t-a,r):e}function Vb(e,t,r){e=Ae(e),t=ye(t);var a=t?gr(e):0;return t&&a<t?il(t-a,r)+e:e}function Pb(e,t,r){return r||t==null?t=0:t&&(t=+t),Wg(Ae(e).replace(Pr,""),t||0)}function $b(e,t,r){return(r?at(e,t,r):t===l)?t=1:t=ye(t),Mo(Ae(e),t)}function Fb(){var e=arguments,t=Ae(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var Nb=Sr(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});function Db(e,t,r){return r&&typeof r!="number"&&at(e,t,r)&&(t=r=l),r=r===l?R:r>>>0,r?(e=Ae(e),e&&(typeof t=="string"||t!=null&&!ta(t))&&(t=St(t),!t&&mr(e))?An(Dt(e),0,r):e.split(t,r)):[]}var zb=Sr(function(e,t,r){return e+(r?" ":"")+ia(t)});function Ub(e,t,r){return e=Ae(e),r=r==null?0:Kn(ye(r),0,e.length),t=St(t),e.slice(r,r+t.length)==t}function Wb(e,t,r){var a=d.templateSettings;r&&at(e,t,r)&&(t=l),e=Ae(e),t=pl({},t,a,Ec);var c=pl({},t.imports,a.imports,Ec),h=Xe(c),p=go(c,h),b,S,L=0,I=t.interpolate||_,F="__p += '",J=vo((t.escape||_).source+"|"+I.source+"|"+(I===Nn?tn:_).source+"|"+(t.evaluate||_).source+"|$","g"),oe="//# sourceURL="+(Re.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Jm+"]")+`
|
|
11
|
-
`;e.replace(J,function(he,
|
|
12
|
-
__e(`+
|
|
13
|
-
'`),
|
|
14
|
-
`+
|
|
15
|
-
__p += '`),ke&&(
|
|
8
|
+
*/oi.exports,function(t,o){(function(){var l,u="4.17.21",s=200,f="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",h="Expected a function",g="Invalid `variable` option passed into `_.template`",x="__lodash_hash_undefined__",O=500,v="__lodash_placeholder__",C=1,E=2,y=4,T=1,z=2,R=1,H=2,F=4,N=8,Q=16,G=32,j=64,K=128,le=256,V=512,$=30,Z="...",k=800,te=16,P=1,ae=2,ue=3,fe=1/0,W=9007199254740991,se=17976931348623157e292,ge=NaN,B=4294967295,A=B-1,ie=B>>>1,ve=[["ary",K],["bind",R],["bindKey",H],["curry",N],["curryRight",Q],["flip",V],["partial",G],["partialRight",j],["rearg",le]],_e="[object Arguments]",U="[object Array]",ne="[object AsyncFunction]",Ae="[object Boolean]",Y="[object Date]",De="[object DOMException]",ot="[object Error]",$t="[object Function]",bt="[object GeneratorFunction]",rt="[object Map]",yt="[object Number]",tn="[object Null]",ft="[object Object]",vn="[object Promise]",Dr="[object Proxy]",Ft="[object RegExp]",Fe="[object Set]",je="[object String]",Ut="[object Symbol]",hr="[object Undefined]",Dn="[object WeakMap]",Mi="[object WeakSet]",nn="[object ArrayBuffer]",_n="[object DataView]",mr="[object Float32Array]",zt="[object Float64Array]",Qt="[object Int8Array]",bn="[object Int16Array]",$r="[object Int32Array]",$n="[object Uint8Array]",Fn="[object Uint8ClampedArray]",gr="[object Uint16Array]",pr="[object Uint32Array]",Li=/\b__p \+= '';/g,qi=/\b(__p \+=) '' \+/g,Vi=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Fr=/&(?:amp|lt|gt|quot|#39);/g,Pi=/[&<>"']/g,ro=RegExp(Fr.source),Ni=RegExp(Pi.source),io=/<%-([\s\S]+?)%>/g,Di=/<%([\s\S]+?)%>/g,Un=/<%=([\s\S]+?)%>/g,zn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,yn=/^\w*$/,lo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ur=/[\\^$.*+?()[\]{}|]/g,oo=RegExp(Ur.source),zr=/^\s+/,ao=/\s/,uo=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,so=/\{\n\/\* \[wrapped with (.+)\] \*/,co=/,? & /,fo=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,wn=/[()=,{}\[\]\/\s]/,Sn=/\\(\\)?/g,rn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ln=/\w*$/,Hr=/^[-+]0x[0-9a-f]+$/i,ho=/^0b[01]+$/i,$i=/^\[object .+?Constructor\]$/,Fi=/^0o[0-7]+$/i,Ui=/^(?:0|[1-9]\d*)$/,zi=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_=/($^)/,ee=/['\n\r\u2028\u2029\\]/g,X="\\ud800-\\udfff",me="\\u0300-\\u036f",Ie="\\ufe20-\\ufe2f",Be="\\u20d0-\\u20ff",Ge=me+Ie+Be,Ve="\\u2700-\\u27bf",vr="a-z\\xdf-\\xf6\\xf8-\\xff",Og="\\xac\\xb1\\xd7\\xf7",Tg="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Bg="\\u2000-\\u206f",Rg=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Is="A-Z\\xc0-\\xd6\\xd8-\\xde",Ms="\\ufe0e\\ufe0f",Ls=Og+Tg+Bg+Rg,mo="['’]",Ig="["+X+"]",qs="["+Ls+"]",Hi="["+Ge+"]",Vs="\\d+",Mg="["+Ve+"]",Ps="["+vr+"]",Ns="[^"+X+Ls+Vs+Ve+vr+Is+"]",go="\\ud83c[\\udffb-\\udfff]",Lg="(?:"+Hi+"|"+go+")",Ds="[^"+X+"]",po="(?:\\ud83c[\\udde6-\\uddff]){2}",vo="[\\ud800-\\udbff][\\udc00-\\udfff]",_r="["+Is+"]",$s="\\u200d",Fs="(?:"+Ps+"|"+Ns+")",qg="(?:"+_r+"|"+Ns+")",Us="(?:"+mo+"(?:d|ll|m|re|s|t|ve))?",zs="(?:"+mo+"(?:D|LL|M|RE|S|T|VE))?",Hs=Lg+"?",Ws="["+Ms+"]?",Vg="(?:"+$s+"(?:"+[Ds,po,vo].join("|")+")"+Ws+Hs+")*",Pg="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ng="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Gs=Ws+Hs+Vg,Dg="(?:"+[Mg,po,vo].join("|")+")"+Gs,$g="(?:"+[Ds+Hi+"?",Hi,po,vo,Ig].join("|")+")",Fg=RegExp(mo,"g"),Ug=RegExp(Hi,"g"),_o=RegExp(go+"(?="+go+")|"+$g+Gs,"g"),zg=RegExp([_r+"?"+Ps+"+"+Us+"(?="+[qs,_r,"$"].join("|")+")",qg+"+"+zs+"(?="+[qs,_r+Fs,"$"].join("|")+")",_r+"?"+Fs+"+"+Us,_r+"+"+zs,Ng,Pg,Vs,Dg].join("|"),"g"),Hg=RegExp("["+$s+X+Ge+Ms+"]"),Wg=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Gg=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Kg=-1,qe={};qe[mr]=qe[zt]=qe[Qt]=qe[bn]=qe[$r]=qe[$n]=qe[Fn]=qe[gr]=qe[pr]=!0,qe[_e]=qe[U]=qe[nn]=qe[Ae]=qe[_n]=qe[Y]=qe[ot]=qe[$t]=qe[rt]=qe[yt]=qe[ft]=qe[Ft]=qe[Fe]=qe[je]=qe[Dn]=!1;var Le={};Le[_e]=Le[U]=Le[nn]=Le[_n]=Le[Ae]=Le[Y]=Le[mr]=Le[zt]=Le[Qt]=Le[bn]=Le[$r]=Le[rt]=Le[yt]=Le[ft]=Le[Ft]=Le[Fe]=Le[je]=Le[Ut]=Le[$n]=Le[Fn]=Le[gr]=Le[pr]=!0,Le[ot]=Le[$t]=Le[Dn]=!1;var jg={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Yg={"&":"&","<":"<",">":">",'"':""","'":"'"},Qg={"&":"&","<":"<",">":">",""":'"',"'":"'"},Zg={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Xg=parseFloat,Jg=parseInt,Ks=typeof xe=="object"&&xe&&xe.Object===Object&&xe,ep=typeof self=="object"&&self&&self.Object===Object&&self,tt=Ks||ep||Function("return this")(),bo=o&&!o.nodeType&&o,Hn=bo&&!0&&t&&!t.nodeType&&t,js=Hn&&Hn.exports===bo,yo=js&&Ks.process,Bt=function(){try{var w=Hn&&Hn.require&&Hn.require("util").types;return w||yo&&yo.binding&&yo.binding("util")}catch{}}(),Ys=Bt&&Bt.isArrayBuffer,Qs=Bt&&Bt.isDate,Zs=Bt&&Bt.isMap,Xs=Bt&&Bt.isRegExp,Js=Bt&&Bt.isSet,ec=Bt&&Bt.isTypedArray;function wt(w,M,I){switch(I.length){case 0:return w.call(M);case 1:return w.call(M,I[0]);case 2:return w.call(M,I[0],I[1]);case 3:return w.call(M,I[0],I[1],I[2])}return w.apply(M,I)}function tp(w,M,I,re){for(var pe=-1,Oe=w==null?0:w.length;++pe<Oe;){var Ye=w[pe];M(re,Ye,I(Ye),w)}return re}function Rt(w,M){for(var I=-1,re=w==null?0:w.length;++I<re&&M(w[I],I,w)!==!1;);return w}function np(w,M){for(var I=w==null?0:w.length;I--&&M(w[I],I,w)!==!1;);return w}function tc(w,M){for(var I=-1,re=w==null?0:w.length;++I<re;)if(!M(w[I],I,w))return!1;return!0}function xn(w,M){for(var I=-1,re=w==null?0:w.length,pe=0,Oe=[];++I<re;){var Ye=w[I];M(Ye,I,w)&&(Oe[pe++]=Ye)}return Oe}function Wi(w,M){var I=w==null?0:w.length;return!!I&&br(w,M,0)>-1}function wo(w,M,I){for(var re=-1,pe=w==null?0:w.length;++re<pe;)if(I(M,w[re]))return!0;return!1}function Pe(w,M){for(var I=-1,re=w==null?0:w.length,pe=Array(re);++I<re;)pe[I]=M(w[I],I,w);return pe}function Cn(w,M){for(var I=-1,re=M.length,pe=w.length;++I<re;)w[pe+I]=M[I];return w}function So(w,M,I,re){var pe=-1,Oe=w==null?0:w.length;for(re&&Oe&&(I=w[++pe]);++pe<Oe;)I=M(I,w[pe],pe,w);return I}function rp(w,M,I,re){var pe=w==null?0:w.length;for(re&&pe&&(I=w[--pe]);pe--;)I=M(I,w[pe],pe,w);return I}function xo(w,M){for(var I=-1,re=w==null?0:w.length;++I<re;)if(M(w[I],I,w))return!0;return!1}var ip=Co("length");function lp(w){return w.split("")}function op(w){return w.match(fo)||[]}function nc(w,M,I){var re;return I(w,function(pe,Oe,Ye){if(M(pe,Oe,Ye))return re=Oe,!1}),re}function Gi(w,M,I,re){for(var pe=w.length,Oe=I+(re?1:-1);re?Oe--:++Oe<pe;)if(M(w[Oe],Oe,w))return Oe;return-1}function br(w,M,I){return M===M?_p(w,M,I):Gi(w,rc,I)}function ap(w,M,I,re){for(var pe=I-1,Oe=w.length;++pe<Oe;)if(re(w[pe],M))return pe;return-1}function rc(w){return w!==w}function ic(w,M){var I=w==null?0:w.length;return I?ko(w,M)/I:ge}function Co(w){return function(M){return M==null?l:M[w]}}function Eo(w){return function(M){return w==null?l:w[M]}}function lc(w,M,I,re,pe){return pe(w,function(Oe,Ye,Me){I=re?(re=!1,Oe):M(I,Oe,Ye,Me)}),I}function up(w,M){var I=w.length;for(w.sort(M);I--;)w[I]=w[I].value;return w}function ko(w,M){for(var I,re=-1,pe=w.length;++re<pe;){var Oe=M(w[re]);Oe!==l&&(I=I===l?Oe:I+Oe)}return I}function Ao(w,M){for(var I=-1,re=Array(w);++I<w;)re[I]=M(I);return re}function sp(w,M){return Pe(M,function(I){return[I,w[I]]})}function oc(w){return w&&w.slice(0,cc(w)+1).replace(zr,"")}function St(w){return function(M){return w(M)}}function Oo(w,M){return Pe(M,function(I){return w[I]})}function Wr(w,M){return w.has(M)}function ac(w,M){for(var I=-1,re=w.length;++I<re&&br(M,w[I],0)>-1;);return I}function uc(w,M){for(var I=w.length;I--&&br(M,w[I],0)>-1;);return I}function cp(w,M){for(var I=w.length,re=0;I--;)w[I]===M&&++re;return re}var fp=Eo(jg),dp=Eo(Yg);function hp(w){return"\\"+Zg[w]}function mp(w,M){return w==null?l:w[M]}function yr(w){return Hg.test(w)}function gp(w){return Wg.test(w)}function pp(w){for(var M,I=[];!(M=w.next()).done;)I.push(M.value);return I}function To(w){var M=-1,I=Array(w.size);return w.forEach(function(re,pe){I[++M]=[pe,re]}),I}function sc(w,M){return function(I){return w(M(I))}}function En(w,M){for(var I=-1,re=w.length,pe=0,Oe=[];++I<re;){var Ye=w[I];(Ye===M||Ye===v)&&(w[I]=v,Oe[pe++]=I)}return Oe}function Ki(w){var M=-1,I=Array(w.size);return w.forEach(function(re){I[++M]=re}),I}function vp(w){var M=-1,I=Array(w.size);return w.forEach(function(re){I[++M]=[re,re]}),I}function _p(w,M,I){for(var re=I-1,pe=w.length;++re<pe;)if(w[re]===M)return re;return-1}function bp(w,M,I){for(var re=I+1;re--;)if(w[re]===M)return re;return re}function wr(w){return yr(w)?wp(w):ip(w)}function Ht(w){return yr(w)?Sp(w):lp(w)}function cc(w){for(var M=w.length;M--&&ao.test(w.charAt(M)););return M}var yp=Eo(Qg);function wp(w){for(var M=_o.lastIndex=0;_o.test(w);)++M;return M}function Sp(w){return w.match(_o)||[]}function xp(w){return w.match(zg)||[]}var Cp=function w(M){M=M==null?tt:Sr.defaults(tt.Object(),M,Sr.pick(tt,Gg));var I=M.Array,re=M.Date,pe=M.Error,Oe=M.Function,Ye=M.Math,Me=M.Object,Bo=M.RegExp,Ep=M.String,It=M.TypeError,ji=I.prototype,kp=Oe.prototype,xr=Me.prototype,Yi=M["__core-js_shared__"],Qi=kp.toString,Re=xr.hasOwnProperty,Ap=0,fc=function(){var e=/[^.]+$/.exec(Yi&&Yi.keys&&Yi.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Zi=xr.toString,Op=Qi.call(Me),Tp=tt._,Bp=Bo("^"+Qi.call(Re).replace(Ur,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Xi=js?M.Buffer:l,kn=M.Symbol,Ji=M.Uint8Array,dc=Xi?Xi.allocUnsafe:l,el=sc(Me.getPrototypeOf,Me),hc=Me.create,mc=xr.propertyIsEnumerable,tl=ji.splice,gc=kn?kn.isConcatSpreadable:l,Gr=kn?kn.iterator:l,Wn=kn?kn.toStringTag:l,nl=function(){try{var e=Qn(Me,"defineProperty");return e({},"",{}),e}catch{}}(),Rp=M.clearTimeout!==tt.clearTimeout&&M.clearTimeout,Ip=re&&re.now!==tt.Date.now&&re.now,Mp=M.setTimeout!==tt.setTimeout&&M.setTimeout,rl=Ye.ceil,il=Ye.floor,Ro=Me.getOwnPropertySymbols,Lp=Xi?Xi.isBuffer:l,pc=M.isFinite,qp=ji.join,Vp=sc(Me.keys,Me),Qe=Ye.max,it=Ye.min,Pp=re.now,Np=M.parseInt,vc=Ye.random,Dp=ji.reverse,Io=Qn(M,"DataView"),Kr=Qn(M,"Map"),Mo=Qn(M,"Promise"),Cr=Qn(M,"Set"),jr=Qn(M,"WeakMap"),Yr=Qn(Me,"create"),ll=jr&&new jr,Er={},$p=Zn(Io),Fp=Zn(Kr),Up=Zn(Mo),zp=Zn(Cr),Hp=Zn(jr),ol=kn?kn.prototype:l,Qr=ol?ol.valueOf:l,_c=ol?ol.toString:l;function d(e){if(Ue(e)&&!be(e)&&!(e instanceof Ee)){if(e instanceof Mt)return e;if(Re.call(e,"__wrapped__"))return yf(e)}return new Mt(e)}var kr=function(){function e(){}return function(n){if(!$e(n))return{};if(hc)return hc(n);e.prototype=n;var r=new e;return e.prototype=l,r}}();function al(){}function Mt(e,n){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=l}d.templateSettings={escape:io,evaluate:Di,interpolate:Un,variable:"",imports:{_:d}},d.prototype=al.prototype,d.prototype.constructor=d,Mt.prototype=kr(al.prototype),Mt.prototype.constructor=Mt;function Ee(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=B,this.__views__=[]}function Wp(){var e=new Ee(this.__wrapped__);return e.__actions__=dt(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=dt(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=dt(this.__views__),e}function Gp(){if(this.__filtered__){var e=new Ee(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Kp(){var e=this.__wrapped__.value(),n=this.__dir__,r=be(e),a=n<0,c=r?e.length:0,m=l0(0,c,this.__views__),p=m.start,b=m.end,S=b-p,L=a?b:p-1,q=this.__iteratees__,D=q.length,J=0,oe=it(S,this.__takeCount__);if(!r||!a&&c==S&&oe==S)return Uc(e,this.__actions__);var de=[];e:for(;S--&&J<oe;){L+=n;for(var we=-1,he=e[L];++we<D;){var Ce=q[we],ke=Ce.iteratee,Et=Ce.type,st=ke(he);if(Et==ae)he=st;else if(!st){if(Et==P)continue e;break e}}de[J++]=he}return de}Ee.prototype=kr(al.prototype),Ee.prototype.constructor=Ee;function Gn(e){var n=-1,r=e==null?0:e.length;for(this.clear();++n<r;){var a=e[n];this.set(a[0],a[1])}}function jp(){this.__data__=Yr?Yr(null):{},this.size=0}function Yp(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}function Qp(e){var n=this.__data__;if(Yr){var r=n[e];return r===x?l:r}return Re.call(n,e)?n[e]:l}function Zp(e){var n=this.__data__;return Yr?n[e]!==l:Re.call(n,e)}function Xp(e,n){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Yr&&n===l?x:n,this}Gn.prototype.clear=jp,Gn.prototype.delete=Yp,Gn.prototype.get=Qp,Gn.prototype.has=Zp,Gn.prototype.set=Xp;function on(e){var n=-1,r=e==null?0:e.length;for(this.clear();++n<r;){var a=e[n];this.set(a[0],a[1])}}function Jp(){this.__data__=[],this.size=0}function ev(e){var n=this.__data__,r=ul(n,e);if(r<0)return!1;var a=n.length-1;return r==a?n.pop():tl.call(n,r,1),--this.size,!0}function tv(e){var n=this.__data__,r=ul(n,e);return r<0?l:n[r][1]}function nv(e){return ul(this.__data__,e)>-1}function rv(e,n){var r=this.__data__,a=ul(r,e);return a<0?(++this.size,r.push([e,n])):r[a][1]=n,this}on.prototype.clear=Jp,on.prototype.delete=ev,on.prototype.get=tv,on.prototype.has=nv,on.prototype.set=rv;function an(e){var n=-1,r=e==null?0:e.length;for(this.clear();++n<r;){var a=e[n];this.set(a[0],a[1])}}function iv(){this.size=0,this.__data__={hash:new Gn,map:new(Kr||on),string:new Gn}}function lv(e){var n=yl(this,e).delete(e);return this.size-=n?1:0,n}function ov(e){return yl(this,e).get(e)}function av(e){return yl(this,e).has(e)}function uv(e,n){var r=yl(this,e),a=r.size;return r.set(e,n),this.size+=r.size==a?0:1,this}an.prototype.clear=iv,an.prototype.delete=lv,an.prototype.get=ov,an.prototype.has=av,an.prototype.set=uv;function Kn(e){var n=-1,r=e==null?0:e.length;for(this.__data__=new an;++n<r;)this.add(e[n])}function sv(e){return this.__data__.set(e,x),this}function cv(e){return this.__data__.has(e)}Kn.prototype.add=Kn.prototype.push=sv,Kn.prototype.has=cv;function Wt(e){var n=this.__data__=new on(e);this.size=n.size}function fv(){this.__data__=new on,this.size=0}function dv(e){var n=this.__data__,r=n.delete(e);return this.size=n.size,r}function hv(e){return this.__data__.get(e)}function mv(e){return this.__data__.has(e)}function gv(e,n){var r=this.__data__;if(r instanceof on){var a=r.__data__;if(!Kr||a.length<s-1)return a.push([e,n]),this.size=++r.size,this;r=this.__data__=new an(a)}return r.set(e,n),this.size=r.size,this}Wt.prototype.clear=fv,Wt.prototype.delete=dv,Wt.prototype.get=hv,Wt.prototype.has=mv,Wt.prototype.set=gv;function bc(e,n){var r=be(e),a=!r&&Xn(e),c=!r&&!a&&Rn(e),m=!r&&!a&&!c&&Br(e),p=r||a||c||m,b=p?Ao(e.length,Ep):[],S=b.length;for(var L in e)(n||Re.call(e,L))&&!(p&&(L=="length"||c&&(L=="offset"||L=="parent")||m&&(L=="buffer"||L=="byteLength"||L=="byteOffset")||fn(L,S)))&&b.push(L);return b}function yc(e){var n=e.length;return n?e[Ho(0,n-1)]:l}function pv(e,n){return wl(dt(e),jn(n,0,e.length))}function vv(e){return wl(dt(e))}function Lo(e,n,r){(r!==l&&!Gt(e[n],r)||r===l&&!(n in e))&&un(e,n,r)}function Zr(e,n,r){var a=e[n];(!(Re.call(e,n)&&Gt(a,r))||r===l&&!(n in e))&&un(e,n,r)}function ul(e,n){for(var r=e.length;r--;)if(Gt(e[r][0],n))return r;return-1}function _v(e,n,r,a){return An(e,function(c,m,p){n(a,c,r(c),p)}),a}function wc(e,n){return e&&Xt(n,Xe(n),e)}function bv(e,n){return e&&Xt(n,mt(n),e)}function un(e,n,r){n=="__proto__"&&nl?nl(e,n,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[n]=r}function qo(e,n){for(var r=-1,a=n.length,c=I(a),m=e==null;++r<a;)c[r]=m?l:ga(e,n[r]);return c}function jn(e,n,r){return e===e&&(r!==l&&(e=e<=r?e:r),n!==l&&(e=e>=n?e:n)),e}function Lt(e,n,r,a,c,m){var p,b=n&C,S=n&E,L=n&y;if(r&&(p=c?r(e,a,c,m):r(e)),p!==l)return p;if(!$e(e))return e;var q=be(e);if(q){if(p=a0(e),!b)return dt(e,p)}else{var D=lt(e),J=D==$t||D==bt;if(Rn(e))return Wc(e,b);if(D==ft||D==_e||J&&!c){if(p=S||J?{}:ff(e),!b)return S?Qv(e,bv(p,e)):Yv(e,wc(p,e))}else{if(!Le[D])return c?e:{};p=u0(e,D,b)}}m||(m=new Wt);var oe=m.get(e);if(oe)return oe;m.set(e,p),$f(e)?e.forEach(function(he){p.add(Lt(he,n,r,he,e,m))}):Nf(e)&&e.forEach(function(he,Ce){p.set(Ce,Lt(he,n,r,Ce,e,m))});var de=L?S?ta:ea:S?mt:Xe,we=q?l:de(e);return Rt(we||e,function(he,Ce){we&&(Ce=he,he=e[Ce]),Zr(p,Ce,Lt(he,n,r,Ce,e,m))}),p}function yv(e){var n=Xe(e);return function(r){return Sc(r,e,n)}}function Sc(e,n,r){var a=r.length;if(e==null)return!a;for(e=Me(e);a--;){var c=r[a],m=n[c],p=e[c];if(p===l&&!(c in e)||!m(p))return!1}return!0}function xc(e,n,r){if(typeof e!="function")throw new It(h);return ii(function(){e.apply(l,r)},n)}function Xr(e,n,r,a){var c=-1,m=Wi,p=!0,b=e.length,S=[],L=n.length;if(!b)return S;r&&(n=Pe(n,St(r))),a?(m=wo,p=!1):n.length>=s&&(m=Wr,p=!1,n=new Kn(n));e:for(;++c<b;){var q=e[c],D=r==null?q:r(q);if(q=a||q!==0?q:0,p&&D===D){for(var J=L;J--;)if(n[J]===D)continue e;S.push(q)}else m(n,D,a)||S.push(q)}return S}var An=Qc(Zt),Cc=Qc(Po,!0);function wv(e,n){var r=!0;return An(e,function(a,c,m){return r=!!n(a,c,m),r}),r}function sl(e,n,r){for(var a=-1,c=e.length;++a<c;){var m=e[a],p=n(m);if(p!=null&&(b===l?p===p&&!Ct(p):r(p,b)))var b=p,S=m}return S}function Sv(e,n,r,a){var c=e.length;for(r=ye(r),r<0&&(r=-r>c?0:c+r),a=a===l||a>c?c:ye(a),a<0&&(a+=c),a=r>a?0:Uf(a);r<a;)e[r++]=n;return e}function Ec(e,n){var r=[];return An(e,function(a,c,m){n(a,c,m)&&r.push(a)}),r}function nt(e,n,r,a,c){var m=-1,p=e.length;for(r||(r=c0),c||(c=[]);++m<p;){var b=e[m];n>0&&r(b)?n>1?nt(b,n-1,r,a,c):Cn(c,b):a||(c[c.length]=b)}return c}var Vo=Zc(),kc=Zc(!0);function Zt(e,n){return e&&Vo(e,n,Xe)}function Po(e,n){return e&&kc(e,n,Xe)}function cl(e,n){return xn(n,function(r){return dn(e[r])})}function Yn(e,n){n=Tn(n,e);for(var r=0,a=n.length;e!=null&&r<a;)e=e[Jt(n[r++])];return r&&r==a?e:l}function Ac(e,n,r){var a=n(e);return be(e)?a:Cn(a,r(e))}function at(e){return e==null?e===l?hr:tn:Wn&&Wn in Me(e)?i0(e):v0(e)}function No(e,n){return e>n}function xv(e,n){return e!=null&&Re.call(e,n)}function Cv(e,n){return e!=null&&n in Me(e)}function Ev(e,n,r){return e>=it(n,r)&&e<Qe(n,r)}function Do(e,n,r){for(var a=r?wo:Wi,c=e[0].length,m=e.length,p=m,b=I(m),S=1/0,L=[];p--;){var q=e[p];p&&n&&(q=Pe(q,St(n))),S=it(q.length,S),b[p]=!r&&(n||c>=120&&q.length>=120)?new Kn(p&&q):l}q=e[0];var D=-1,J=b[0];e:for(;++D<c&&L.length<S;){var oe=q[D],de=n?n(oe):oe;if(oe=r||oe!==0?oe:0,!(J?Wr(J,de):a(L,de,r))){for(p=m;--p;){var we=b[p];if(!(we?Wr(we,de):a(e[p],de,r)))continue e}J&&J.push(de),L.push(oe)}}return L}function kv(e,n,r,a){return Zt(e,function(c,m,p){n(a,r(c),m,p)}),a}function Jr(e,n,r){n=Tn(n,e),e=gf(e,n);var a=e==null?e:e[Jt(Vt(n))];return a==null?l:wt(a,e,r)}function Oc(e){return Ue(e)&&at(e)==_e}function Av(e){return Ue(e)&&at(e)==nn}function Ov(e){return Ue(e)&&at(e)==Y}function ei(e,n,r,a,c){return e===n?!0:e==null||n==null||!Ue(e)&&!Ue(n)?e!==e&&n!==n:Tv(e,n,r,a,ei,c)}function Tv(e,n,r,a,c,m){var p=be(e),b=be(n),S=p?U:lt(e),L=b?U:lt(n);S=S==_e?ft:S,L=L==_e?ft:L;var q=S==ft,D=L==ft,J=S==L;if(J&&Rn(e)){if(!Rn(n))return!1;p=!0,q=!1}if(J&&!q)return m||(m=new Wt),p||Br(e)?uf(e,n,r,a,c,m):n0(e,n,S,r,a,c,m);if(!(r&T)){var oe=q&&Re.call(e,"__wrapped__"),de=D&&Re.call(n,"__wrapped__");if(oe||de){var we=oe?e.value():e,he=de?n.value():n;return m||(m=new Wt),c(we,he,r,a,m)}}return J?(m||(m=new Wt),r0(e,n,r,a,c,m)):!1}function Bv(e){return Ue(e)&<(e)==rt}function $o(e,n,r,a){var c=r.length,m=c,p=!a;if(e==null)return!m;for(e=Me(e);c--;){var b=r[c];if(p&&b[2]?b[1]!==e[b[0]]:!(b[0]in e))return!1}for(;++c<m;){b=r[c];var S=b[0],L=e[S],q=b[1];if(p&&b[2]){if(L===l&&!(S in e))return!1}else{var D=new Wt;if(a)var J=a(L,q,S,e,n,D);if(!(J===l?ei(q,L,T|z,a,D):J))return!1}}return!0}function Tc(e){if(!$e(e)||d0(e))return!1;var n=dn(e)?Bp:$i;return n.test(Zn(e))}function Rv(e){return Ue(e)&&at(e)==Ft}function Iv(e){return Ue(e)&<(e)==Fe}function Mv(e){return Ue(e)&&Al(e.length)&&!!qe[at(e)]}function Bc(e){return typeof e=="function"?e:e==null?gt:typeof e=="object"?be(e)?Mc(e[0],e[1]):Ic(e):Jf(e)}function Fo(e){if(!ri(e))return Vp(e);var n=[];for(var r in Me(e))Re.call(e,r)&&r!="constructor"&&n.push(r);return n}function Lv(e){if(!$e(e))return p0(e);var n=ri(e),r=[];for(var a in e)a=="constructor"&&(n||!Re.call(e,a))||r.push(a);return r}function Uo(e,n){return e<n}function Rc(e,n){var r=-1,a=ht(e)?I(e.length):[];return An(e,function(c,m,p){a[++r]=n(c,m,p)}),a}function Ic(e){var n=ra(e);return n.length==1&&n[0][2]?hf(n[0][0],n[0][1]):function(r){return r===e||$o(r,e,n)}}function Mc(e,n){return la(e)&&df(n)?hf(Jt(e),n):function(r){var a=ga(r,e);return a===l&&a===n?pa(r,e):ei(n,a,T|z)}}function fl(e,n,r,a,c){e!==n&&Vo(n,function(m,p){if(c||(c=new Wt),$e(m))qv(e,n,p,r,fl,a,c);else{var b=a?a(aa(e,p),m,p+"",e,n,c):l;b===l&&(b=m),Lo(e,p,b)}},mt)}function qv(e,n,r,a,c,m,p){var b=aa(e,r),S=aa(n,r),L=p.get(S);if(L){Lo(e,r,L);return}var q=m?m(b,S,r+"",e,n,p):l,D=q===l;if(D){var J=be(S),oe=!J&&Rn(S),de=!J&&!oe&&Br(S);q=S,J||oe||de?be(b)?q=b:ze(b)?q=dt(b):oe?(D=!1,q=Wc(S,!0)):de?(D=!1,q=Gc(S,!0)):q=[]:li(S)||Xn(S)?(q=b,Xn(b)?q=zf(b):(!$e(b)||dn(b))&&(q=ff(S))):D=!1}D&&(p.set(S,q),c(q,S,a,m,p),p.delete(S)),Lo(e,r,q)}function Lc(e,n){var r=e.length;if(r)return n+=n<0?r:0,fn(n,r)?e[n]:l}function qc(e,n,r){n.length?n=Pe(n,function(m){return be(m)?function(p){return Yn(p,m.length===1?m[0]:m)}:m}):n=[gt];var a=-1;n=Pe(n,St(ce()));var c=Rc(e,function(m,p,b){var S=Pe(n,function(L){return L(m)});return{criteria:S,index:++a,value:m}});return up(c,function(m,p){return jv(m,p,r)})}function Vv(e,n){return Vc(e,n,function(r,a){return pa(e,a)})}function Vc(e,n,r){for(var a=-1,c=n.length,m={};++a<c;){var p=n[a],b=Yn(e,p);r(b,p)&&ti(m,Tn(p,e),b)}return m}function Pv(e){return function(n){return Yn(n,e)}}function zo(e,n,r,a){var c=a?ap:br,m=-1,p=n.length,b=e;for(e===n&&(n=dt(n)),r&&(b=Pe(e,St(r)));++m<p;)for(var S=0,L=n[m],q=r?r(L):L;(S=c(b,q,S,a))>-1;)b!==e&&tl.call(b,S,1),tl.call(e,S,1);return e}function Pc(e,n){for(var r=e?n.length:0,a=r-1;r--;){var c=n[r];if(r==a||c!==m){var m=c;fn(c)?tl.call(e,c,1):Ko(e,c)}}return e}function Ho(e,n){return e+il(vc()*(n-e+1))}function Nv(e,n,r,a){for(var c=-1,m=Qe(rl((n-e)/(r||1)),0),p=I(m);m--;)p[a?m:++c]=e,e+=r;return p}function Wo(e,n){var r="";if(!e||n<1||n>W)return r;do n%2&&(r+=e),n=il(n/2),n&&(e+=e);while(n);return r}function Se(e,n){return ua(mf(e,n,gt),e+"")}function Dv(e){return yc(Rr(e))}function $v(e,n){var r=Rr(e);return wl(r,jn(n,0,r.length))}function ti(e,n,r,a){if(!$e(e))return e;n=Tn(n,e);for(var c=-1,m=n.length,p=m-1,b=e;b!=null&&++c<m;){var S=Jt(n[c]),L=r;if(S==="__proto__"||S==="constructor"||S==="prototype")return e;if(c!=p){var q=b[S];L=a?a(q,S,b):l,L===l&&(L=$e(q)?q:fn(n[c+1])?[]:{})}Zr(b,S,L),b=b[S]}return e}var Nc=ll?function(e,n){return ll.set(e,n),e}:gt,Fv=nl?function(e,n){return nl(e,"toString",{configurable:!0,enumerable:!1,value:_a(n),writable:!0})}:gt;function Uv(e){return wl(Rr(e))}function qt(e,n,r){var a=-1,c=e.length;n<0&&(n=-n>c?0:c+n),r=r>c?c:r,r<0&&(r+=c),c=n>r?0:r-n>>>0,n>>>=0;for(var m=I(c);++a<c;)m[a]=e[a+n];return m}function zv(e,n){var r;return An(e,function(a,c,m){return r=n(a,c,m),!r}),!!r}function dl(e,n,r){var a=0,c=e==null?a:e.length;if(typeof n=="number"&&n===n&&c<=ie){for(;a<c;){var m=a+c>>>1,p=e[m];p!==null&&!Ct(p)&&(r?p<=n:p<n)?a=m+1:c=m}return c}return Go(e,n,gt,r)}function Go(e,n,r,a){var c=0,m=e==null?0:e.length;if(m===0)return 0;n=r(n);for(var p=n!==n,b=n===null,S=Ct(n),L=n===l;c<m;){var q=il((c+m)/2),D=r(e[q]),J=D!==l,oe=D===null,de=D===D,we=Ct(D);if(p)var he=a||de;else L?he=de&&(a||J):b?he=de&&J&&(a||!oe):S?he=de&&J&&!oe&&(a||!we):oe||we?he=!1:he=a?D<=n:D<n;he?c=q+1:m=q}return it(m,A)}function Dc(e,n){for(var r=-1,a=e.length,c=0,m=[];++r<a;){var p=e[r],b=n?n(p):p;if(!r||!Gt(b,S)){var S=b;m[c++]=p===0?0:p}}return m}function $c(e){return typeof e=="number"?e:Ct(e)?ge:+e}function xt(e){if(typeof e=="string")return e;if(be(e))return Pe(e,xt)+"";if(Ct(e))return _c?_c.call(e):"";var n=e+"";return n=="0"&&1/e==-fe?"-0":n}function On(e,n,r){var a=-1,c=Wi,m=e.length,p=!0,b=[],S=b;if(r)p=!1,c=wo;else if(m>=s){var L=n?null:e0(e);if(L)return Ki(L);p=!1,c=Wr,S=new Kn}else S=n?[]:b;e:for(;++a<m;){var q=e[a],D=n?n(q):q;if(q=r||q!==0?q:0,p&&D===D){for(var J=S.length;J--;)if(S[J]===D)continue e;n&&S.push(D),b.push(q)}else c(S,D,r)||(S!==b&&S.push(D),b.push(q))}return b}function Ko(e,n){return n=Tn(n,e),e=gf(e,n),e==null||delete e[Jt(Vt(n))]}function Fc(e,n,r,a){return ti(e,n,r(Yn(e,n)),a)}function hl(e,n,r,a){for(var c=e.length,m=a?c:-1;(a?m--:++m<c)&&n(e[m],m,e););return r?qt(e,a?0:m,a?m+1:c):qt(e,a?m+1:0,a?c:m)}function Uc(e,n){var r=e;return r instanceof Ee&&(r=r.value()),So(n,function(a,c){return c.func.apply(c.thisArg,Cn([a],c.args))},r)}function jo(e,n,r){var a=e.length;if(a<2)return a?On(e[0]):[];for(var c=-1,m=I(a);++c<a;)for(var p=e[c],b=-1;++b<a;)b!=c&&(m[c]=Xr(m[c]||p,e[b],n,r));return On(nt(m,1),n,r)}function zc(e,n,r){for(var a=-1,c=e.length,m=n.length,p={};++a<c;){var b=a<m?n[a]:l;r(p,e[a],b)}return p}function Yo(e){return ze(e)?e:[]}function Qo(e){return typeof e=="function"?e:gt}function Tn(e,n){return be(e)?e:la(e,n)?[e]:bf(Te(e))}var Hv=Se;function Bn(e,n,r){var a=e.length;return r=r===l?a:r,!n&&r>=a?e:qt(e,n,r)}var Hc=Rp||function(e){return tt.clearTimeout(e)};function Wc(e,n){if(n)return e.slice();var r=e.length,a=dc?dc(r):new e.constructor(r);return e.copy(a),a}function Zo(e){var n=new e.constructor(e.byteLength);return new Ji(n).set(new Ji(e)),n}function Wv(e,n){var r=n?Zo(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function Gv(e){var n=new e.constructor(e.source,ln.exec(e));return n.lastIndex=e.lastIndex,n}function Kv(e){return Qr?Me(Qr.call(e)):{}}function Gc(e,n){var r=n?Zo(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function Kc(e,n){if(e!==n){var r=e!==l,a=e===null,c=e===e,m=Ct(e),p=n!==l,b=n===null,S=n===n,L=Ct(n);if(!b&&!L&&!m&&e>n||m&&p&&S&&!b&&!L||a&&p&&S||!r&&S||!c)return 1;if(!a&&!m&&!L&&e<n||L&&r&&c&&!a&&!m||b&&r&&c||!p&&c||!S)return-1}return 0}function jv(e,n,r){for(var a=-1,c=e.criteria,m=n.criteria,p=c.length,b=r.length;++a<p;){var S=Kc(c[a],m[a]);if(S){if(a>=b)return S;var L=r[a];return S*(L=="desc"?-1:1)}}return e.index-n.index}function jc(e,n,r,a){for(var c=-1,m=e.length,p=r.length,b=-1,S=n.length,L=Qe(m-p,0),q=I(S+L),D=!a;++b<S;)q[b]=n[b];for(;++c<p;)(D||c<m)&&(q[r[c]]=e[c]);for(;L--;)q[b++]=e[c++];return q}function Yc(e,n,r,a){for(var c=-1,m=e.length,p=-1,b=r.length,S=-1,L=n.length,q=Qe(m-b,0),D=I(q+L),J=!a;++c<q;)D[c]=e[c];for(var oe=c;++S<L;)D[oe+S]=n[S];for(;++p<b;)(J||c<m)&&(D[oe+r[p]]=e[c++]);return D}function dt(e,n){var r=-1,a=e.length;for(n||(n=I(a));++r<a;)n[r]=e[r];return n}function Xt(e,n,r,a){var c=!r;r||(r={});for(var m=-1,p=n.length;++m<p;){var b=n[m],S=a?a(r[b],e[b],b,r,e):l;S===l&&(S=e[b]),c?un(r,b,S):Zr(r,b,S)}return r}function Yv(e,n){return Xt(e,ia(e),n)}function Qv(e,n){return Xt(e,sf(e),n)}function ml(e,n){return function(r,a){var c=be(r)?tp:_v,m=n?n():{};return c(r,e,ce(a,2),m)}}function Ar(e){return Se(function(n,r){var a=-1,c=r.length,m=c>1?r[c-1]:l,p=c>2?r[2]:l;for(m=e.length>3&&typeof m=="function"?(c--,m):l,p&&ut(r[0],r[1],p)&&(m=c<3?l:m,c=1),n=Me(n);++a<c;){var b=r[a];b&&e(n,b,a,m)}return n})}function Qc(e,n){return function(r,a){if(r==null)return r;if(!ht(r))return e(r,a);for(var c=r.length,m=n?c:-1,p=Me(r);(n?m--:++m<c)&&a(p[m],m,p)!==!1;);return r}}function Zc(e){return function(n,r,a){for(var c=-1,m=Me(n),p=a(n),b=p.length;b--;){var S=p[e?b:++c];if(r(m[S],S,m)===!1)break}return n}}function Zv(e,n,r){var a=n&R,c=ni(e);function m(){var p=this&&this!==tt&&this instanceof m?c:e;return p.apply(a?r:this,arguments)}return m}function Xc(e){return function(n){n=Te(n);var r=yr(n)?Ht(n):l,a=r?r[0]:n.charAt(0),c=r?Bn(r,1).join(""):n.slice(1);return a[e]()+c}}function Or(e){return function(n){return So(Zf(Qf(n).replace(Fg,"")),e,"")}}function ni(e){return function(){var n=arguments;switch(n.length){case 0:return new e;case 1:return new e(n[0]);case 2:return new e(n[0],n[1]);case 3:return new e(n[0],n[1],n[2]);case 4:return new e(n[0],n[1],n[2],n[3]);case 5:return new e(n[0],n[1],n[2],n[3],n[4]);case 6:return new e(n[0],n[1],n[2],n[3],n[4],n[5]);case 7:return new e(n[0],n[1],n[2],n[3],n[4],n[5],n[6])}var r=kr(e.prototype),a=e.apply(r,n);return $e(a)?a:r}}function Xv(e,n,r){var a=ni(e);function c(){for(var m=arguments.length,p=I(m),b=m,S=Tr(c);b--;)p[b]=arguments[b];var L=m<3&&p[0]!==S&&p[m-1]!==S?[]:En(p,S);if(m-=L.length,m<r)return rf(e,n,gl,c.placeholder,l,p,L,l,l,r-m);var q=this&&this!==tt&&this instanceof c?a:e;return wt(q,this,p)}return c}function Jc(e){return function(n,r,a){var c=Me(n);if(!ht(n)){var m=ce(r,3);n=Xe(n),r=function(b){return m(c[b],b,c)}}var p=e(n,r,a);return p>-1?c[m?n[p]:p]:l}}function ef(e){return cn(function(n){var r=n.length,a=r,c=Mt.prototype.thru;for(e&&n.reverse();a--;){var m=n[a];if(typeof m!="function")throw new It(h);if(c&&!p&&bl(m)=="wrapper")var p=new Mt([],!0)}for(a=p?a:r;++a<r;){m=n[a];var b=bl(m),S=b=="wrapper"?na(m):l;S&&oa(S[0])&&S[1]==(K|N|G|le)&&!S[4].length&&S[9]==1?p=p[bl(S[0])].apply(p,S[3]):p=m.length==1&&oa(m)?p[b]():p.thru(m)}return function(){var L=arguments,q=L[0];if(p&&L.length==1&&be(q))return p.plant(q).value();for(var D=0,J=r?n[D].apply(this,L):q;++D<r;)J=n[D].call(this,J);return J}})}function gl(e,n,r,a,c,m,p,b,S,L){var q=n&K,D=n&R,J=n&H,oe=n&(N|Q),de=n&V,we=J?l:ni(e);function he(){for(var Ce=arguments.length,ke=I(Ce),Et=Ce;Et--;)ke[Et]=arguments[Et];if(oe)var st=Tr(he),kt=cp(ke,st);if(a&&(ke=jc(ke,a,c,oe)),m&&(ke=Yc(ke,m,p,oe)),Ce-=kt,oe&&Ce<L){var He=En(ke,st);return rf(e,n,gl,he.placeholder,r,ke,He,b,S,L-Ce)}var Kt=D?r:this,mn=J?Kt[e]:e;return Ce=ke.length,b?ke=_0(ke,b):de&&Ce>1&&ke.reverse(),q&&S<Ce&&(ke.length=S),this&&this!==tt&&this instanceof he&&(mn=we||ni(mn)),mn.apply(Kt,ke)}return he}function tf(e,n){return function(r,a){return kv(r,e,n(a),{})}}function pl(e,n){return function(r,a){var c;if(r===l&&a===l)return n;if(r!==l&&(c=r),a!==l){if(c===l)return a;typeof r=="string"||typeof a=="string"?(r=xt(r),a=xt(a)):(r=$c(r),a=$c(a)),c=e(r,a)}return c}}function Xo(e){return cn(function(n){return n=Pe(n,St(ce())),Se(function(r){var a=this;return e(n,function(c){return wt(c,a,r)})})})}function vl(e,n){n=n===l?" ":xt(n);var r=n.length;if(r<2)return r?Wo(n,e):n;var a=Wo(n,rl(e/wr(n)));return yr(n)?Bn(Ht(a),0,e).join(""):a.slice(0,e)}function Jv(e,n,r,a){var c=n&R,m=ni(e);function p(){for(var b=-1,S=arguments.length,L=-1,q=a.length,D=I(q+S),J=this&&this!==tt&&this instanceof p?m:e;++L<q;)D[L]=a[L];for(;S--;)D[L++]=arguments[++b];return wt(J,c?r:this,D)}return p}function nf(e){return function(n,r,a){return a&&typeof a!="number"&&ut(n,r,a)&&(r=a=l),n=hn(n),r===l?(r=n,n=0):r=hn(r),a=a===l?n<r?1:-1:hn(a),Nv(n,r,a,e)}}function _l(e){return function(n,r){return typeof n=="string"&&typeof r=="string"||(n=Pt(n),r=Pt(r)),e(n,r)}}function rf(e,n,r,a,c,m,p,b,S,L){var q=n&N,D=q?p:l,J=q?l:p,oe=q?m:l,de=q?l:m;n|=q?G:j,n&=~(q?j:G),n&F||(n&=~(R|H));var we=[e,n,c,oe,D,de,J,b,S,L],he=r.apply(l,we);return oa(e)&&pf(he,we),he.placeholder=a,vf(he,e,n)}function Jo(e){var n=Ye[e];return function(r,a){if(r=Pt(r),a=a==null?0:it(ye(a),292),a&&pc(r)){var c=(Te(r)+"e").split("e"),m=n(c[0]+"e"+(+c[1]+a));return c=(Te(m)+"e").split("e"),+(c[0]+"e"+(+c[1]-a))}return n(r)}}var e0=Cr&&1/Ki(new Cr([,-0]))[1]==fe?function(e){return new Cr(e)}:wa;function lf(e){return function(n){var r=lt(n);return r==rt?To(n):r==Fe?vp(n):sp(n,e(n))}}function sn(e,n,r,a,c,m,p,b){var S=n&H;if(!S&&typeof e!="function")throw new It(h);var L=a?a.length:0;if(L||(n&=~(G|j),a=c=l),p=p===l?p:Qe(ye(p),0),b=b===l?b:ye(b),L-=c?c.length:0,n&j){var q=a,D=c;a=c=l}var J=S?l:na(e),oe=[e,n,r,a,c,q,D,m,p,b];if(J&&g0(oe,J),e=oe[0],n=oe[1],r=oe[2],a=oe[3],c=oe[4],b=oe[9]=oe[9]===l?S?0:e.length:Qe(oe[9]-L,0),!b&&n&(N|Q)&&(n&=~(N|Q)),!n||n==R)var de=Zv(e,n,r);else n==N||n==Q?de=Xv(e,n,b):(n==G||n==(R|G))&&!c.length?de=Jv(e,n,r,a):de=gl.apply(l,oe);var we=J?Nc:pf;return vf(we(de,oe),e,n)}function of(e,n,r,a){return e===l||Gt(e,xr[r])&&!Re.call(a,r)?n:e}function af(e,n,r,a,c,m){return $e(e)&&$e(n)&&(m.set(n,e),fl(e,n,l,af,m),m.delete(n)),e}function t0(e){return li(e)?l:e}function uf(e,n,r,a,c,m){var p=r&T,b=e.length,S=n.length;if(b!=S&&!(p&&S>b))return!1;var L=m.get(e),q=m.get(n);if(L&&q)return L==n&&q==e;var D=-1,J=!0,oe=r&z?new Kn:l;for(m.set(e,n),m.set(n,e);++D<b;){var de=e[D],we=n[D];if(a)var he=p?a(we,de,D,n,e,m):a(de,we,D,e,n,m);if(he!==l){if(he)continue;J=!1;break}if(oe){if(!xo(n,function(Ce,ke){if(!Wr(oe,ke)&&(de===Ce||c(de,Ce,r,a,m)))return oe.push(ke)})){J=!1;break}}else if(!(de===we||c(de,we,r,a,m))){J=!1;break}}return m.delete(e),m.delete(n),J}function n0(e,n,r,a,c,m,p){switch(r){case _n:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case nn:return!(e.byteLength!=n.byteLength||!m(new Ji(e),new Ji(n)));case Ae:case Y:case yt:return Gt(+e,+n);case ot:return e.name==n.name&&e.message==n.message;case Ft:case je:return e==n+"";case rt:var b=To;case Fe:var S=a&T;if(b||(b=Ki),e.size!=n.size&&!S)return!1;var L=p.get(e);if(L)return L==n;a|=z,p.set(e,n);var q=uf(b(e),b(n),a,c,m,p);return p.delete(e),q;case Ut:if(Qr)return Qr.call(e)==Qr.call(n)}return!1}function r0(e,n,r,a,c,m){var p=r&T,b=ea(e),S=b.length,L=ea(n),q=L.length;if(S!=q&&!p)return!1;for(var D=S;D--;){var J=b[D];if(!(p?J in n:Re.call(n,J)))return!1}var oe=m.get(e),de=m.get(n);if(oe&&de)return oe==n&&de==e;var we=!0;m.set(e,n),m.set(n,e);for(var he=p;++D<S;){J=b[D];var Ce=e[J],ke=n[J];if(a)var Et=p?a(ke,Ce,J,n,e,m):a(Ce,ke,J,e,n,m);if(!(Et===l?Ce===ke||c(Ce,ke,r,a,m):Et)){we=!1;break}he||(he=J=="constructor")}if(we&&!he){var st=e.constructor,kt=n.constructor;st!=kt&&"constructor"in e&&"constructor"in n&&!(typeof st=="function"&&st instanceof st&&typeof kt=="function"&&kt instanceof kt)&&(we=!1)}return m.delete(e),m.delete(n),we}function cn(e){return ua(mf(e,l,xf),e+"")}function ea(e){return Ac(e,Xe,ia)}function ta(e){return Ac(e,mt,sf)}var na=ll?function(e){return ll.get(e)}:wa;function bl(e){for(var n=e.name+"",r=Er[n],a=Re.call(Er,n)?r.length:0;a--;){var c=r[a],m=c.func;if(m==null||m==e)return c.name}return n}function Tr(e){var n=Re.call(d,"placeholder")?d:e;return n.placeholder}function ce(){var e=d.iteratee||ba;return e=e===ba?Bc:e,arguments.length?e(arguments[0],arguments[1]):e}function yl(e,n){var r=e.__data__;return f0(n)?r[typeof n=="string"?"string":"hash"]:r.map}function ra(e){for(var n=Xe(e),r=n.length;r--;){var a=n[r],c=e[a];n[r]=[a,c,df(c)]}return n}function Qn(e,n){var r=mp(e,n);return Tc(r)?r:l}function i0(e){var n=Re.call(e,Wn),r=e[Wn];try{e[Wn]=l;var a=!0}catch{}var c=Zi.call(e);return a&&(n?e[Wn]=r:delete e[Wn]),c}var ia=Ro?function(e){return e==null?[]:(e=Me(e),xn(Ro(e),function(n){return mc.call(e,n)}))}:Sa,sf=Ro?function(e){for(var n=[];e;)Cn(n,ia(e)),e=el(e);return n}:Sa,lt=at;(Io&<(new Io(new ArrayBuffer(1)))!=_n||Kr&<(new Kr)!=rt||Mo&<(Mo.resolve())!=vn||Cr&<(new Cr)!=Fe||jr&<(new jr)!=Dn)&&(lt=function(e){var n=at(e),r=n==ft?e.constructor:l,a=r?Zn(r):"";if(a)switch(a){case $p:return _n;case Fp:return rt;case Up:return vn;case zp:return Fe;case Hp:return Dn}return n});function l0(e,n,r){for(var a=-1,c=r.length;++a<c;){var m=r[a],p=m.size;switch(m.type){case"drop":e+=p;break;case"dropRight":n-=p;break;case"take":n=it(n,e+p);break;case"takeRight":e=Qe(e,n-p);break}}return{start:e,end:n}}function o0(e){var n=e.match(so);return n?n[1].split(co):[]}function cf(e,n,r){n=Tn(n,e);for(var a=-1,c=n.length,m=!1;++a<c;){var p=Jt(n[a]);if(!(m=e!=null&&r(e,p)))break;e=e[p]}return m||++a!=c?m:(c=e==null?0:e.length,!!c&&Al(c)&&fn(p,c)&&(be(e)||Xn(e)))}function a0(e){var n=e.length,r=new e.constructor(n);return n&&typeof e[0]=="string"&&Re.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function ff(e){return typeof e.constructor=="function"&&!ri(e)?kr(el(e)):{}}function u0(e,n,r){var a=e.constructor;switch(n){case nn:return Zo(e);case Ae:case Y:return new a(+e);case _n:return Wv(e,r);case mr:case zt:case Qt:case bn:case $r:case $n:case Fn:case gr:case pr:return Gc(e,r);case rt:return new a;case yt:case je:return new a(e);case Ft:return Gv(e);case Fe:return new a;case Ut:return Kv(e)}}function s0(e,n){var r=n.length;if(!r)return e;var a=r-1;return n[a]=(r>1?"& ":"")+n[a],n=n.join(r>2?", ":" "),e.replace(uo,`{
|
|
9
|
+
/* [wrapped with `+n+`] */
|
|
10
|
+
`)}function c0(e){return be(e)||Xn(e)||!!(gc&&e&&e[gc])}function fn(e,n){var r=typeof e;return n=n??W,!!n&&(r=="number"||r!="symbol"&&Ui.test(e))&&e>-1&&e%1==0&&e<n}function ut(e,n,r){if(!$e(r))return!1;var a=typeof n;return(a=="number"?ht(r)&&fn(n,r.length):a=="string"&&n in r)?Gt(r[n],e):!1}function la(e,n){if(be(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Ct(e)?!0:yn.test(e)||!zn.test(e)||n!=null&&e in Me(n)}function f0(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}function oa(e){var n=bl(e),r=d[n];if(typeof r!="function"||!(n in Ee.prototype))return!1;if(e===r)return!0;var a=na(r);return!!a&&e===a[0]}function d0(e){return!!fc&&fc in e}var h0=Yi?dn:xa;function ri(e){var n=e&&e.constructor,r=typeof n=="function"&&n.prototype||xr;return e===r}function df(e){return e===e&&!$e(e)}function hf(e,n){return function(r){return r==null?!1:r[e]===n&&(n!==l||e in Me(r))}}function m0(e){var n=El(e,function(a){return r.size===O&&r.clear(),a}),r=n.cache;return n}function g0(e,n){var r=e[1],a=n[1],c=r|a,m=c<(R|H|K),p=a==K&&r==N||a==K&&r==le&&e[7].length<=n[8]||a==(K|le)&&n[7].length<=n[8]&&r==N;if(!(m||p))return e;a&R&&(e[2]=n[2],c|=r&R?0:F);var b=n[3];if(b){var S=e[3];e[3]=S?jc(S,b,n[4]):b,e[4]=S?En(e[3],v):n[4]}return b=n[5],b&&(S=e[5],e[5]=S?Yc(S,b,n[6]):b,e[6]=S?En(e[5],v):n[6]),b=n[7],b&&(e[7]=b),a&K&&(e[8]=e[8]==null?n[8]:it(e[8],n[8])),e[9]==null&&(e[9]=n[9]),e[0]=n[0],e[1]=c,e}function p0(e){var n=[];if(e!=null)for(var r in Me(e))n.push(r);return n}function v0(e){return Zi.call(e)}function mf(e,n,r){return n=Qe(n===l?e.length-1:n,0),function(){for(var a=arguments,c=-1,m=Qe(a.length-n,0),p=I(m);++c<m;)p[c]=a[n+c];c=-1;for(var b=I(n+1);++c<n;)b[c]=a[c];return b[n]=r(p),wt(e,this,b)}}function gf(e,n){return n.length<2?e:Yn(e,qt(n,0,-1))}function _0(e,n){for(var r=e.length,a=it(n.length,r),c=dt(e);a--;){var m=n[a];e[a]=fn(m,r)?c[m]:l}return e}function aa(e,n){if(!(n==="constructor"&&typeof e[n]=="function")&&n!="__proto__")return e[n]}var pf=_f(Nc),ii=Mp||function(e,n){return tt.setTimeout(e,n)},ua=_f(Fv);function vf(e,n,r){var a=n+"";return ua(e,s0(a,b0(o0(a),r)))}function _f(e){var n=0,r=0;return function(){var a=Pp(),c=te-(a-r);if(r=a,c>0){if(++n>=k)return arguments[0]}else n=0;return e.apply(l,arguments)}}function wl(e,n){var r=-1,a=e.length,c=a-1;for(n=n===l?a:n;++r<n;){var m=Ho(r,c),p=e[m];e[m]=e[r],e[r]=p}return e.length=n,e}var bf=m0(function(e){var n=[];return e.charCodeAt(0)===46&&n.push(""),e.replace(lo,function(r,a,c,m){n.push(c?m.replace(Sn,"$1"):a||r)}),n});function Jt(e){if(typeof e=="string"||Ct(e))return e;var n=e+"";return n=="0"&&1/e==-fe?"-0":n}function Zn(e){if(e!=null){try{return Qi.call(e)}catch{}try{return e+""}catch{}}return""}function b0(e,n){return Rt(ve,function(r){var a="_."+r[0];n&r[1]&&!Wi(e,a)&&e.push(a)}),e.sort()}function yf(e){if(e instanceof Ee)return e.clone();var n=new Mt(e.__wrapped__,e.__chain__);return n.__actions__=dt(e.__actions__),n.__index__=e.__index__,n.__values__=e.__values__,n}function y0(e,n,r){(r?ut(e,n,r):n===l)?n=1:n=Qe(ye(n),0);var a=e==null?0:e.length;if(!a||n<1)return[];for(var c=0,m=0,p=I(rl(a/n));c<a;)p[m++]=qt(e,c,c+=n);return p}function w0(e){for(var n=-1,r=e==null?0:e.length,a=0,c=[];++n<r;){var m=e[n];m&&(c[a++]=m)}return c}function S0(){var e=arguments.length;if(!e)return[];for(var n=I(e-1),r=arguments[0],a=e;a--;)n[a-1]=arguments[a];return Cn(be(r)?dt(r):[r],nt(n,1))}var x0=Se(function(e,n){return ze(e)?Xr(e,nt(n,1,ze,!0)):[]}),C0=Se(function(e,n){var r=Vt(n);return ze(r)&&(r=l),ze(e)?Xr(e,nt(n,1,ze,!0),ce(r,2)):[]}),E0=Se(function(e,n){var r=Vt(n);return ze(r)&&(r=l),ze(e)?Xr(e,nt(n,1,ze,!0),l,r):[]});function k0(e,n,r){var a=e==null?0:e.length;return a?(n=r||n===l?1:ye(n),qt(e,n<0?0:n,a)):[]}function A0(e,n,r){var a=e==null?0:e.length;return a?(n=r||n===l?1:ye(n),n=a-n,qt(e,0,n<0?0:n)):[]}function O0(e,n){return e&&e.length?hl(e,ce(n,3),!0,!0):[]}function T0(e,n){return e&&e.length?hl(e,ce(n,3),!0):[]}function B0(e,n,r,a){var c=e==null?0:e.length;return c?(r&&typeof r!="number"&&ut(e,n,r)&&(r=0,a=c),Sv(e,n,r,a)):[]}function wf(e,n,r){var a=e==null?0:e.length;if(!a)return-1;var c=r==null?0:ye(r);return c<0&&(c=Qe(a+c,0)),Gi(e,ce(n,3),c)}function Sf(e,n,r){var a=e==null?0:e.length;if(!a)return-1;var c=a-1;return r!==l&&(c=ye(r),c=r<0?Qe(a+c,0):it(c,a-1)),Gi(e,ce(n,3),c,!0)}function xf(e){var n=e==null?0:e.length;return n?nt(e,1):[]}function R0(e){var n=e==null?0:e.length;return n?nt(e,fe):[]}function I0(e,n){var r=e==null?0:e.length;return r?(n=n===l?1:ye(n),nt(e,n)):[]}function M0(e){for(var n=-1,r=e==null?0:e.length,a={};++n<r;){var c=e[n];a[c[0]]=c[1]}return a}function Cf(e){return e&&e.length?e[0]:l}function L0(e,n,r){var a=e==null?0:e.length;if(!a)return-1;var c=r==null?0:ye(r);return c<0&&(c=Qe(a+c,0)),br(e,n,c)}function q0(e){var n=e==null?0:e.length;return n?qt(e,0,-1):[]}var V0=Se(function(e){var n=Pe(e,Yo);return n.length&&n[0]===e[0]?Do(n):[]}),P0=Se(function(e){var n=Vt(e),r=Pe(e,Yo);return n===Vt(r)?n=l:r.pop(),r.length&&r[0]===e[0]?Do(r,ce(n,2)):[]}),N0=Se(function(e){var n=Vt(e),r=Pe(e,Yo);return n=typeof n=="function"?n:l,n&&r.pop(),r.length&&r[0]===e[0]?Do(r,l,n):[]});function D0(e,n){return e==null?"":qp.call(e,n)}function Vt(e){var n=e==null?0:e.length;return n?e[n-1]:l}function $0(e,n,r){var a=e==null?0:e.length;if(!a)return-1;var c=a;return r!==l&&(c=ye(r),c=c<0?Qe(a+c,0):it(c,a-1)),n===n?bp(e,n,c):Gi(e,rc,c,!0)}function F0(e,n){return e&&e.length?Lc(e,ye(n)):l}var U0=Se(Ef);function Ef(e,n){return e&&e.length&&n&&n.length?zo(e,n):e}function z0(e,n,r){return e&&e.length&&n&&n.length?zo(e,n,ce(r,2)):e}function H0(e,n,r){return e&&e.length&&n&&n.length?zo(e,n,l,r):e}var W0=cn(function(e,n){var r=e==null?0:e.length,a=qo(e,n);return Pc(e,Pe(n,function(c){return fn(c,r)?+c:c}).sort(Kc)),a});function G0(e,n){var r=[];if(!(e&&e.length))return r;var a=-1,c=[],m=e.length;for(n=ce(n,3);++a<m;){var p=e[a];n(p,a,e)&&(r.push(p),c.push(a))}return Pc(e,c),r}function sa(e){return e==null?e:Dp.call(e)}function K0(e,n,r){var a=e==null?0:e.length;return a?(r&&typeof r!="number"&&ut(e,n,r)?(n=0,r=a):(n=n==null?0:ye(n),r=r===l?a:ye(r)),qt(e,n,r)):[]}function j0(e,n){return dl(e,n)}function Y0(e,n,r){return Go(e,n,ce(r,2))}function Q0(e,n){var r=e==null?0:e.length;if(r){var a=dl(e,n);if(a<r&&Gt(e[a],n))return a}return-1}function Z0(e,n){return dl(e,n,!0)}function X0(e,n,r){return Go(e,n,ce(r,2),!0)}function J0(e,n){var r=e==null?0:e.length;if(r){var a=dl(e,n,!0)-1;if(Gt(e[a],n))return a}return-1}function e_(e){return e&&e.length?Dc(e):[]}function t_(e,n){return e&&e.length?Dc(e,ce(n,2)):[]}function n_(e){var n=e==null?0:e.length;return n?qt(e,1,n):[]}function r_(e,n,r){return e&&e.length?(n=r||n===l?1:ye(n),qt(e,0,n<0?0:n)):[]}function i_(e,n,r){var a=e==null?0:e.length;return a?(n=r||n===l?1:ye(n),n=a-n,qt(e,n<0?0:n,a)):[]}function l_(e,n){return e&&e.length?hl(e,ce(n,3),!1,!0):[]}function o_(e,n){return e&&e.length?hl(e,ce(n,3)):[]}var a_=Se(function(e){return On(nt(e,1,ze,!0))}),u_=Se(function(e){var n=Vt(e);return ze(n)&&(n=l),On(nt(e,1,ze,!0),ce(n,2))}),s_=Se(function(e){var n=Vt(e);return n=typeof n=="function"?n:l,On(nt(e,1,ze,!0),l,n)});function c_(e){return e&&e.length?On(e):[]}function f_(e,n){return e&&e.length?On(e,ce(n,2)):[]}function d_(e,n){return n=typeof n=="function"?n:l,e&&e.length?On(e,l,n):[]}function ca(e){if(!(e&&e.length))return[];var n=0;return e=xn(e,function(r){if(ze(r))return n=Qe(r.length,n),!0}),Ao(n,function(r){return Pe(e,Co(r))})}function kf(e,n){if(!(e&&e.length))return[];var r=ca(e);return n==null?r:Pe(r,function(a){return wt(n,l,a)})}var h_=Se(function(e,n){return ze(e)?Xr(e,n):[]}),m_=Se(function(e){return jo(xn(e,ze))}),g_=Se(function(e){var n=Vt(e);return ze(n)&&(n=l),jo(xn(e,ze),ce(n,2))}),p_=Se(function(e){var n=Vt(e);return n=typeof n=="function"?n:l,jo(xn(e,ze),l,n)}),v_=Se(ca);function __(e,n){return zc(e||[],n||[],Zr)}function b_(e,n){return zc(e||[],n||[],ti)}var y_=Se(function(e){var n=e.length,r=n>1?e[n-1]:l;return r=typeof r=="function"?(e.pop(),r):l,kf(e,r)});function Af(e){var n=d(e);return n.__chain__=!0,n}function w_(e,n){return n(e),e}function Sl(e,n){return n(e)}var S_=cn(function(e){var n=e.length,r=n?e[0]:0,a=this.__wrapped__,c=function(m){return qo(m,e)};return n>1||this.__actions__.length||!(a instanceof Ee)||!fn(r)?this.thru(c):(a=a.slice(r,+r+(n?1:0)),a.__actions__.push({func:Sl,args:[c],thisArg:l}),new Mt(a,this.__chain__).thru(function(m){return n&&!m.length&&m.push(l),m}))});function x_(){return Af(this)}function C_(){return new Mt(this.value(),this.__chain__)}function E_(){this.__values__===l&&(this.__values__=Ff(this.value()));var e=this.__index__>=this.__values__.length,n=e?l:this.__values__[this.__index__++];return{done:e,value:n}}function k_(){return this}function A_(e){for(var n,r=this;r instanceof al;){var a=yf(r);a.__index__=0,a.__values__=l,n?c.__wrapped__=a:n=a;var c=a;r=r.__wrapped__}return c.__wrapped__=e,n}function O_(){var e=this.__wrapped__;if(e instanceof Ee){var n=e;return this.__actions__.length&&(n=new Ee(this)),n=n.reverse(),n.__actions__.push({func:Sl,args:[sa],thisArg:l}),new Mt(n,this.__chain__)}return this.thru(sa)}function T_(){return Uc(this.__wrapped__,this.__actions__)}var B_=ml(function(e,n,r){Re.call(e,r)?++e[r]:un(e,r,1)});function R_(e,n,r){var a=be(e)?tc:wv;return r&&ut(e,n,r)&&(n=l),a(e,ce(n,3))}function I_(e,n){var r=be(e)?xn:Ec;return r(e,ce(n,3))}var M_=Jc(wf),L_=Jc(Sf);function q_(e,n){return nt(xl(e,n),1)}function V_(e,n){return nt(xl(e,n),fe)}function P_(e,n,r){return r=r===l?1:ye(r),nt(xl(e,n),r)}function Of(e,n){var r=be(e)?Rt:An;return r(e,ce(n,3))}function Tf(e,n){var r=be(e)?np:Cc;return r(e,ce(n,3))}var N_=ml(function(e,n,r){Re.call(e,r)?e[r].push(n):un(e,r,[n])});function D_(e,n,r,a){e=ht(e)?e:Rr(e),r=r&&!a?ye(r):0;var c=e.length;return r<0&&(r=Qe(c+r,0)),Ol(e)?r<=c&&e.indexOf(n,r)>-1:!!c&&br(e,n,r)>-1}var $_=Se(function(e,n,r){var a=-1,c=typeof n=="function",m=ht(e)?I(e.length):[];return An(e,function(p){m[++a]=c?wt(n,p,r):Jr(p,n,r)}),m}),F_=ml(function(e,n,r){un(e,r,n)});function xl(e,n){var r=be(e)?Pe:Rc;return r(e,ce(n,3))}function U_(e,n,r,a){return e==null?[]:(be(n)||(n=n==null?[]:[n]),r=a?l:r,be(r)||(r=r==null?[]:[r]),qc(e,n,r))}var z_=ml(function(e,n,r){e[r?0:1].push(n)},function(){return[[],[]]});function H_(e,n,r){var a=be(e)?So:lc,c=arguments.length<3;return a(e,ce(n,4),r,c,An)}function W_(e,n,r){var a=be(e)?rp:lc,c=arguments.length<3;return a(e,ce(n,4),r,c,Cc)}function G_(e,n){var r=be(e)?xn:Ec;return r(e,kl(ce(n,3)))}function K_(e){var n=be(e)?yc:Dv;return n(e)}function j_(e,n,r){(r?ut(e,n,r):n===l)?n=1:n=ye(n);var a=be(e)?pv:$v;return a(e,n)}function Y_(e){var n=be(e)?vv:Uv;return n(e)}function Q_(e){if(e==null)return 0;if(ht(e))return Ol(e)?wr(e):e.length;var n=lt(e);return n==rt||n==Fe?e.size:Fo(e).length}function Z_(e,n,r){var a=be(e)?xo:zv;return r&&ut(e,n,r)&&(n=l),a(e,ce(n,3))}var X_=Se(function(e,n){if(e==null)return[];var r=n.length;return r>1&&ut(e,n[0],n[1])?n=[]:r>2&&ut(n[0],n[1],n[2])&&(n=[n[0]]),qc(e,nt(n,1),[])}),Cl=Ip||function(){return tt.Date.now()};function J_(e,n){if(typeof n!="function")throw new It(h);return e=ye(e),function(){if(--e<1)return n.apply(this,arguments)}}function Bf(e,n,r){return n=r?l:n,n=e&&n==null?e.length:n,sn(e,K,l,l,l,l,n)}function Rf(e,n){var r;if(typeof n!="function")throw new It(h);return e=ye(e),function(){return--e>0&&(r=n.apply(this,arguments)),e<=1&&(n=l),r}}var fa=Se(function(e,n,r){var a=R;if(r.length){var c=En(r,Tr(fa));a|=G}return sn(e,a,n,r,c)}),If=Se(function(e,n,r){var a=R|H;if(r.length){var c=En(r,Tr(If));a|=G}return sn(n,a,e,r,c)});function Mf(e,n,r){n=r?l:n;var a=sn(e,N,l,l,l,l,l,n);return a.placeholder=Mf.placeholder,a}function Lf(e,n,r){n=r?l:n;var a=sn(e,Q,l,l,l,l,l,n);return a.placeholder=Lf.placeholder,a}function qf(e,n,r){var a,c,m,p,b,S,L=0,q=!1,D=!1,J=!0;if(typeof e!="function")throw new It(h);n=Pt(n)||0,$e(r)&&(q=!!r.leading,D="maxWait"in r,m=D?Qe(Pt(r.maxWait)||0,n):m,J="trailing"in r?!!r.trailing:J);function oe(He){var Kt=a,mn=c;return a=c=l,L=He,p=e.apply(mn,Kt),p}function de(He){return L=He,b=ii(Ce,n),q?oe(He):p}function we(He){var Kt=He-S,mn=He-L,ed=n-Kt;return D?it(ed,m-mn):ed}function he(He){var Kt=He-S,mn=He-L;return S===l||Kt>=n||Kt<0||D&&mn>=m}function Ce(){var He=Cl();if(he(He))return ke(He);b=ii(Ce,we(He))}function ke(He){return b=l,J&&a?oe(He):(a=c=l,p)}function Et(){b!==l&&Hc(b),L=0,a=S=c=b=l}function st(){return b===l?p:ke(Cl())}function kt(){var He=Cl(),Kt=he(He);if(a=arguments,c=this,S=He,Kt){if(b===l)return de(S);if(D)return Hc(b),b=ii(Ce,n),oe(S)}return b===l&&(b=ii(Ce,n)),p}return kt.cancel=Et,kt.flush=st,kt}var eb=Se(function(e,n){return xc(e,1,n)}),tb=Se(function(e,n,r){return xc(e,Pt(n)||0,r)});function nb(e){return sn(e,V)}function El(e,n){if(typeof e!="function"||n!=null&&typeof n!="function")throw new It(h);var r=function(){var a=arguments,c=n?n.apply(this,a):a[0],m=r.cache;if(m.has(c))return m.get(c);var p=e.apply(this,a);return r.cache=m.set(c,p)||m,p};return r.cache=new(El.Cache||an),r}El.Cache=an;function kl(e){if(typeof e!="function")throw new It(h);return function(){var n=arguments;switch(n.length){case 0:return!e.call(this);case 1:return!e.call(this,n[0]);case 2:return!e.call(this,n[0],n[1]);case 3:return!e.call(this,n[0],n[1],n[2])}return!e.apply(this,n)}}function rb(e){return Rf(2,e)}var ib=Hv(function(e,n){n=n.length==1&&be(n[0])?Pe(n[0],St(ce())):Pe(nt(n,1),St(ce()));var r=n.length;return Se(function(a){for(var c=-1,m=it(a.length,r);++c<m;)a[c]=n[c].call(this,a[c]);return wt(e,this,a)})}),da=Se(function(e,n){var r=En(n,Tr(da));return sn(e,G,l,n,r)}),Vf=Se(function(e,n){var r=En(n,Tr(Vf));return sn(e,j,l,n,r)}),lb=cn(function(e,n){return sn(e,le,l,l,l,n)});function ob(e,n){if(typeof e!="function")throw new It(h);return n=n===l?n:ye(n),Se(e,n)}function ab(e,n){if(typeof e!="function")throw new It(h);return n=n==null?0:Qe(ye(n),0),Se(function(r){var a=r[n],c=Bn(r,0,n);return a&&Cn(c,a),wt(e,this,c)})}function ub(e,n,r){var a=!0,c=!0;if(typeof e!="function")throw new It(h);return $e(r)&&(a="leading"in r?!!r.leading:a,c="trailing"in r?!!r.trailing:c),qf(e,n,{leading:a,maxWait:n,trailing:c})}function sb(e){return Bf(e,1)}function cb(e,n){return da(Qo(n),e)}function fb(){if(!arguments.length)return[];var e=arguments[0];return be(e)?e:[e]}function db(e){return Lt(e,y)}function hb(e,n){return n=typeof n=="function"?n:l,Lt(e,y,n)}function mb(e){return Lt(e,C|y)}function gb(e,n){return n=typeof n=="function"?n:l,Lt(e,C|y,n)}function pb(e,n){return n==null||Sc(e,n,Xe(n))}function Gt(e,n){return e===n||e!==e&&n!==n}var vb=_l(No),_b=_l(function(e,n){return e>=n}),Xn=Oc(function(){return arguments}())?Oc:function(e){return Ue(e)&&Re.call(e,"callee")&&!mc.call(e,"callee")},be=I.isArray,bb=Ys?St(Ys):Av;function ht(e){return e!=null&&Al(e.length)&&!dn(e)}function ze(e){return Ue(e)&&ht(e)}function yb(e){return e===!0||e===!1||Ue(e)&&at(e)==Ae}var Rn=Lp||xa,wb=Qs?St(Qs):Ov;function Sb(e){return Ue(e)&&e.nodeType===1&&!li(e)}function xb(e){if(e==null)return!0;if(ht(e)&&(be(e)||typeof e=="string"||typeof e.splice=="function"||Rn(e)||Br(e)||Xn(e)))return!e.length;var n=lt(e);if(n==rt||n==Fe)return!e.size;if(ri(e))return!Fo(e).length;for(var r in e)if(Re.call(e,r))return!1;return!0}function Cb(e,n){return ei(e,n)}function Eb(e,n,r){r=typeof r=="function"?r:l;var a=r?r(e,n):l;return a===l?ei(e,n,l,r):!!a}function ha(e){if(!Ue(e))return!1;var n=at(e);return n==ot||n==De||typeof e.message=="string"&&typeof e.name=="string"&&!li(e)}function kb(e){return typeof e=="number"&&pc(e)}function dn(e){if(!$e(e))return!1;var n=at(e);return n==$t||n==bt||n==ne||n==Dr}function Pf(e){return typeof e=="number"&&e==ye(e)}function Al(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=W}function $e(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}function Ue(e){return e!=null&&typeof e=="object"}var Nf=Zs?St(Zs):Bv;function Ab(e,n){return e===n||$o(e,n,ra(n))}function Ob(e,n,r){return r=typeof r=="function"?r:l,$o(e,n,ra(n),r)}function Tb(e){return Df(e)&&e!=+e}function Bb(e){if(h0(e))throw new pe(f);return Tc(e)}function Rb(e){return e===null}function Ib(e){return e==null}function Df(e){return typeof e=="number"||Ue(e)&&at(e)==yt}function li(e){if(!Ue(e)||at(e)!=ft)return!1;var n=el(e);if(n===null)return!0;var r=Re.call(n,"constructor")&&n.constructor;return typeof r=="function"&&r instanceof r&&Qi.call(r)==Op}var ma=Xs?St(Xs):Rv;function Mb(e){return Pf(e)&&e>=-W&&e<=W}var $f=Js?St(Js):Iv;function Ol(e){return typeof e=="string"||!be(e)&&Ue(e)&&at(e)==je}function Ct(e){return typeof e=="symbol"||Ue(e)&&at(e)==Ut}var Br=ec?St(ec):Mv;function Lb(e){return e===l}function qb(e){return Ue(e)&<(e)==Dn}function Vb(e){return Ue(e)&&at(e)==Mi}var Pb=_l(Uo),Nb=_l(function(e,n){return e<=n});function Ff(e){if(!e)return[];if(ht(e))return Ol(e)?Ht(e):dt(e);if(Gr&&e[Gr])return pp(e[Gr]());var n=lt(e),r=n==rt?To:n==Fe?Ki:Rr;return r(e)}function hn(e){if(!e)return e===0?e:0;if(e=Pt(e),e===fe||e===-fe){var n=e<0?-1:1;return n*se}return e===e?e:0}function ye(e){var n=hn(e),r=n%1;return n===n?r?n-r:n:0}function Uf(e){return e?jn(ye(e),0,B):0}function Pt(e){if(typeof e=="number")return e;if(Ct(e))return ge;if($e(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=$e(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=oc(e);var r=ho.test(e);return r||Fi.test(e)?Jg(e.slice(2),r?2:8):Hr.test(e)?ge:+e}function zf(e){return Xt(e,mt(e))}function Db(e){return e?jn(ye(e),-W,W):e===0?e:0}function Te(e){return e==null?"":xt(e)}var $b=Ar(function(e,n){if(ri(n)||ht(n)){Xt(n,Xe(n),e);return}for(var r in n)Re.call(n,r)&&Zr(e,r,n[r])}),Hf=Ar(function(e,n){Xt(n,mt(n),e)}),Tl=Ar(function(e,n,r,a){Xt(n,mt(n),e,a)}),Fb=Ar(function(e,n,r,a){Xt(n,Xe(n),e,a)}),Ub=cn(qo);function zb(e,n){var r=kr(e);return n==null?r:wc(r,n)}var Hb=Se(function(e,n){e=Me(e);var r=-1,a=n.length,c=a>2?n[2]:l;for(c&&ut(n[0],n[1],c)&&(a=1);++r<a;)for(var m=n[r],p=mt(m),b=-1,S=p.length;++b<S;){var L=p[b],q=e[L];(q===l||Gt(q,xr[L])&&!Re.call(e,L))&&(e[L]=m[L])}return e}),Wb=Se(function(e){return e.push(l,af),wt(Wf,l,e)});function Gb(e,n){return nc(e,ce(n,3),Zt)}function Kb(e,n){return nc(e,ce(n,3),Po)}function jb(e,n){return e==null?e:Vo(e,ce(n,3),mt)}function Yb(e,n){return e==null?e:kc(e,ce(n,3),mt)}function Qb(e,n){return e&&Zt(e,ce(n,3))}function Zb(e,n){return e&&Po(e,ce(n,3))}function Xb(e){return e==null?[]:cl(e,Xe(e))}function Jb(e){return e==null?[]:cl(e,mt(e))}function ga(e,n,r){var a=e==null?l:Yn(e,n);return a===l?r:a}function ey(e,n){return e!=null&&cf(e,n,xv)}function pa(e,n){return e!=null&&cf(e,n,Cv)}var ty=tf(function(e,n,r){n!=null&&typeof n.toString!="function"&&(n=Zi.call(n)),e[n]=r},_a(gt)),ny=tf(function(e,n,r){n!=null&&typeof n.toString!="function"&&(n=Zi.call(n)),Re.call(e,n)?e[n].push(r):e[n]=[r]},ce),ry=Se(Jr);function Xe(e){return ht(e)?bc(e):Fo(e)}function mt(e){return ht(e)?bc(e,!0):Lv(e)}function iy(e,n){var r={};return n=ce(n,3),Zt(e,function(a,c,m){un(r,n(a,c,m),a)}),r}function ly(e,n){var r={};return n=ce(n,3),Zt(e,function(a,c,m){un(r,c,n(a,c,m))}),r}var oy=Ar(function(e,n,r){fl(e,n,r)}),Wf=Ar(function(e,n,r,a){fl(e,n,r,a)}),ay=cn(function(e,n){var r={};if(e==null)return r;var a=!1;n=Pe(n,function(m){return m=Tn(m,e),a||(a=m.length>1),m}),Xt(e,ta(e),r),a&&(r=Lt(r,C|E|y,t0));for(var c=n.length;c--;)Ko(r,n[c]);return r});function uy(e,n){return Gf(e,kl(ce(n)))}var sy=cn(function(e,n){return e==null?{}:Vv(e,n)});function Gf(e,n){if(e==null)return{};var r=Pe(ta(e),function(a){return[a]});return n=ce(n),Vc(e,r,function(a,c){return n(a,c[0])})}function cy(e,n,r){n=Tn(n,e);var a=-1,c=n.length;for(c||(c=1,e=l);++a<c;){var m=e==null?l:e[Jt(n[a])];m===l&&(a=c,m=r),e=dn(m)?m.call(e):m}return e}function fy(e,n,r){return e==null?e:ti(e,n,r)}function dy(e,n,r,a){return a=typeof a=="function"?a:l,e==null?e:ti(e,n,r,a)}var Kf=lf(Xe),jf=lf(mt);function hy(e,n,r){var a=be(e),c=a||Rn(e)||Br(e);if(n=ce(n,4),r==null){var m=e&&e.constructor;c?r=a?new m:[]:$e(e)?r=dn(m)?kr(el(e)):{}:r={}}return(c?Rt:Zt)(e,function(p,b,S){return n(r,p,b,S)}),r}function my(e,n){return e==null?!0:Ko(e,n)}function gy(e,n,r){return e==null?e:Fc(e,n,Qo(r))}function py(e,n,r,a){return a=typeof a=="function"?a:l,e==null?e:Fc(e,n,Qo(r),a)}function Rr(e){return e==null?[]:Oo(e,Xe(e))}function vy(e){return e==null?[]:Oo(e,mt(e))}function _y(e,n,r){return r===l&&(r=n,n=l),r!==l&&(r=Pt(r),r=r===r?r:0),n!==l&&(n=Pt(n),n=n===n?n:0),jn(Pt(e),n,r)}function by(e,n,r){return n=hn(n),r===l?(r=n,n=0):r=hn(r),e=Pt(e),Ev(e,n,r)}function yy(e,n,r){if(r&&typeof r!="boolean"&&ut(e,n,r)&&(n=r=l),r===l&&(typeof n=="boolean"?(r=n,n=l):typeof e=="boolean"&&(r=e,e=l)),e===l&&n===l?(e=0,n=1):(e=hn(e),n===l?(n=e,e=0):n=hn(n)),e>n){var a=e;e=n,n=a}if(r||e%1||n%1){var c=vc();return it(e+c*(n-e+Xg("1e-"+((c+"").length-1))),n)}return Ho(e,n)}var wy=Or(function(e,n,r){return n=n.toLowerCase(),e+(r?Yf(n):n)});function Yf(e){return va(Te(e).toLowerCase())}function Qf(e){return e=Te(e),e&&e.replace(zi,fp).replace(Ug,"")}function Sy(e,n,r){e=Te(e),n=xt(n);var a=e.length;r=r===l?a:jn(ye(r),0,a);var c=r;return r-=n.length,r>=0&&e.slice(r,c)==n}function xy(e){return e=Te(e),e&&Ni.test(e)?e.replace(Pi,dp):e}function Cy(e){return e=Te(e),e&&oo.test(e)?e.replace(Ur,"\\$&"):e}var Ey=Or(function(e,n,r){return e+(r?"-":"")+n.toLowerCase()}),ky=Or(function(e,n,r){return e+(r?" ":"")+n.toLowerCase()}),Ay=Xc("toLowerCase");function Oy(e,n,r){e=Te(e),n=ye(n);var a=n?wr(e):0;if(!n||a>=n)return e;var c=(n-a)/2;return vl(il(c),r)+e+vl(rl(c),r)}function Ty(e,n,r){e=Te(e),n=ye(n);var a=n?wr(e):0;return n&&a<n?e+vl(n-a,r):e}function By(e,n,r){e=Te(e),n=ye(n);var a=n?wr(e):0;return n&&a<n?vl(n-a,r)+e:e}function Ry(e,n,r){return r||n==null?n=0:n&&(n=+n),Np(Te(e).replace(zr,""),n||0)}function Iy(e,n,r){return(r?ut(e,n,r):n===l)?n=1:n=ye(n),Wo(Te(e),n)}function My(){var e=arguments,n=Te(e[0]);return e.length<3?n:n.replace(e[1],e[2])}var Ly=Or(function(e,n,r){return e+(r?"_":"")+n.toLowerCase()});function qy(e,n,r){return r&&typeof r!="number"&&ut(e,n,r)&&(n=r=l),r=r===l?B:r>>>0,r?(e=Te(e),e&&(typeof n=="string"||n!=null&&!ma(n))&&(n=xt(n),!n&&yr(e))?Bn(Ht(e),0,r):e.split(n,r)):[]}var Vy=Or(function(e,n,r){return e+(r?" ":"")+va(n)});function Py(e,n,r){return e=Te(e),r=r==null?0:jn(ye(r),0,e.length),n=xt(n),e.slice(r,r+n.length)==n}function Ny(e,n,r){var a=d.templateSettings;r&&ut(e,n,r)&&(n=l),e=Te(e),n=Tl({},n,a,of);var c=Tl({},n.imports,a.imports,of),m=Xe(c),p=Oo(c,m),b,S,L=0,q=n.interpolate||_,D="__p += '",J=Bo((n.escape||_).source+"|"+q.source+"|"+(q===Un?rn:_).source+"|"+(n.evaluate||_).source+"|$","g"),oe="//# sourceURL="+(Re.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Kg+"]")+`
|
|
11
|
+
`;e.replace(J,function(he,Ce,ke,Et,st,kt){return ke||(ke=Et),D+=e.slice(L,kt).replace(ee,hp),Ce&&(b=!0,D+=`' +
|
|
12
|
+
__e(`+Ce+`) +
|
|
13
|
+
'`),st&&(S=!0,D+=`';
|
|
14
|
+
`+st+`;
|
|
15
|
+
__p += '`),ke&&(D+=`' +
|
|
16
16
|
((__t = (`+ke+`)) == null ? '' : __t) +
|
|
17
|
-
'`),L=kt+he.length,he}),
|
|
18
|
-
`;var de=Re.call(
|
|
19
|
-
`+
|
|
17
|
+
'`),L=kt+he.length,he}),D+=`';
|
|
18
|
+
`;var de=Re.call(n,"variable")&&n.variable;if(!de)D=`with (obj) {
|
|
19
|
+
`+D+`
|
|
20
20
|
}
|
|
21
|
-
`;else if(
|
|
21
|
+
`;else if(wn.test(de))throw new pe(g);D=(S?D.replace(Li,""):D).replace(qi,"$1").replace(Vi,"$1;"),D="function("+(de||"obj")+`) {
|
|
22
22
|
`+(de?"":`obj || (obj = {});
|
|
23
23
|
`)+"var __t, __p = ''"+(b?", __e = _.escape":"")+(S?`, __j = Array.prototype.join;
|
|
24
24
|
function print() { __p += __j.call(arguments, '') }
|
|
25
25
|
`:`;
|
|
26
|
-
`)+
|
|
27
|
-
}`;var we=bf(function(){return Te(h,oe+"return "+F).apply(l,p)});if(we.source=F,ea(we))throw we;return we}function Hb(e){return Ae(e).toLowerCase()}function Kb(e){return Ae(e).toUpperCase()}function Gb(e,t,r){if(e=Ae(e),e&&(r||t===l))return Ts(e);if(!e||!(t=St(t)))return e;var a=Dt(e),c=Dt(t),h=As(a,c),p=Bs(a,c)+1;return An(a,h,p).join("")}function Qb(e,t,r){if(e=Ae(e),e&&(r||t===l))return e.slice(0,qs(e)+1);if(!e||!(t=St(t)))return e;var a=Dt(e),c=Bs(a,Dt(t))+1;return An(a,0,c).join("")}function Yb(e,t,r){if(e=Ae(e),e&&(r||t===l))return e.replace(Pr,"");if(!e||!(t=St(t)))return e;var a=Dt(e),c=As(a,Dt(t));return An(a,c).join("")}function Zb(e,t){var r=N,a=X;if(Fe(t)){var c="separator"in t?t.separator:c;r="length"in t?ye(t.length):r,a="omission"in t?St(t.omission):a}e=Ae(e);var h=e.length;if(mr(e)){var p=Dt(e);h=p.length}if(r>=h)return e;var b=r-gr(a);if(b<1)return a;var S=p?An(p,0,b).join(""):e.slice(0,b);if(c===l)return S+a;if(p&&(b+=S.length-b),ta(c)){if(e.slice(b).search(c)){var L,I=S;for(c.global||(c=vo(c.source,Ae(nn.exec(c))+"g")),c.lastIndex=0;L=c.exec(I);)var F=L.index;S=S.slice(0,F===l?b:F)}}else if(e.indexOf(St(c),b)!=b){var J=S.lastIndexOf(c);J>-1&&(S=S.slice(0,J))}return S+a}function Xb(e){return e=Ae(e),e&&Wl.test(e)?e.replace(Ir,Eg):e}var jb=Sr(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),ia=bc("toUpperCase");function _f(e,t,r){return e=Ae(e),t=r?l:t,t===l?wg(e)?Bg(e):dg(e):e.match(t)||[]}var bf=Se(function(e,t){try{return yt(e,l,t)}catch(r){return ea(r)?r:new pe(r)}}),Jb=un(function(e,t){return At(t,function(r){r=Zt(r),on(e,r,jo(e[r],e))}),e});function ey(e){var t=e==null?0:e.length,r=ce();return e=t?Ve(e,function(a){if(typeof a[1]!="function")throw new Bt(m);return[r(a[0]),a[1]]}):[],Se(function(a){for(var c=-1;++c<t;){var h=e[c];if(yt(h[0],this,a))return yt(h[1],this,a)}})}function ty(e){return Ep(qt(e,C))}function la(e){return function(){return e}}function ny(e,t){return e==null||e!==e?t:e}var ry=wc(),iy=wc(!0);function mt(e){return e}function oa(e){return Xs(typeof e=="function"?e:qt(e,C))}function ly(e){return Js(qt(e,C))}function oy(e,t){return ec(e,qt(t,C))}var ay=Se(function(e,t){return function(r){return Gr(r,e,t)}}),uy=Se(function(e,t){return function(r){return Gr(e,r,t)}});function aa(e,t,r){var a=Xe(t),c=Xi(t,a);r==null&&!(Fe(t)&&(c.length||!a.length))&&(r=t,t=e,e=this,c=Xi(t,Xe(t)));var h=!(Fe(r)&&"chain"in r)||!!r.chain,p=cn(e);return At(c,function(b){var S=t[b];e[b]=S,p&&(e.prototype[b]=function(){var L=this.__chain__;if(h||L){var I=e(this.__wrapped__),F=I.__actions__=ft(this.__actions__);return F.push({func:S,args:arguments,thisArg:e}),I.__chain__=L,I}return S.apply(e,Sn([this.value()],arguments))})}),e}function sy(){return et._===this&&(et._=Ig),this}function ua(){}function cy(e){return e=ye(e),Se(function(t){return tc(t,e)})}var fy=Fo(Ve),dy=Fo(Ss),hy=Fo(so);function yf(e){return Ko(e)?co(Zt(e)):Up(e)}function my(e){return function(t){return e==null?l:Gn(e,t)}}var gy=xc(),py=xc(!0);function sa(){return[]}function ca(){return!1}function vy(){return{}}function _y(){return""}function by(){return!0}function yy(e,t){if(e=ye(e),e<1||e>H)return[];var r=R,a=rt(e,R);t=ce(t),e-=R;for(var c=mo(a,t);++r<e;)t(r);return c}function wy(e){return be(e)?Ve(e,Zt):xt(e)?[e]:ft(Fc(Ae(e)))}function Sy(e){var t=++Og;return Ae(e)+t}var xy=rl(function(e,t){return e+t},0),Cy=No("ceil"),ky=rl(function(e,t){return e/t},1),Ey=No("floor");function Ty(e){return e&&e.length?Zi(e,mt,ko):l}function Ay(e,t){return e&&e.length?Zi(e,ce(t,2),ko):l}function By(e){return ks(e,mt)}function Ry(e,t){return ks(e,ce(t,2))}function qy(e){return e&&e.length?Zi(e,mt,Bo):l}function My(e,t){return e&&e.length?Zi(e,ce(t,2),Bo):l}var Oy=rl(function(e,t){return e*t},1),Ly=No("round"),Iy=rl(function(e,t){return e-t},0);function Vy(e){return e&&e.length?ho(e,mt):0}function Py(e,t){return e&&e.length?ho(e,ce(t,2)):0}return d.after=l_,d.ary=Zc,d.assign=K_,d.assignIn=ff,d.assignInWith=pl,d.assignWith=G_,d.at=Q_,d.before=Xc,d.bind=jo,d.bindAll=Jb,d.bindKey=jc,d.castArray=v_,d.chain=Gc,d.chunk=Ev,d.compact=Tv,d.concat=Av,d.cond=ey,d.conforms=ty,d.constant=la,d.countBy=V0,d.create=Y_,d.curry=Jc,d.curryRight=ef,d.debounce=tf,d.defaults=Z_,d.defaultsDeep=X_,d.defer=o_,d.delay=a_,d.difference=Bv,d.differenceBy=Rv,d.differenceWith=qv,d.drop=Mv,d.dropRight=Ov,d.dropRightWhile=Lv,d.dropWhile=Iv,d.fill=Vv,d.filter=$0,d.flatMap=D0,d.flatMapDeep=z0,d.flatMapDepth=U0,d.flatten=Uc,d.flattenDeep=Pv,d.flattenDepth=$v,d.flip=u_,d.flow=ry,d.flowRight=iy,d.fromPairs=Fv,d.functions=ib,d.functionsIn=lb,d.groupBy=W0,d.initial=Dv,d.intersection=zv,d.intersectionBy=Uv,d.intersectionWith=Wv,d.invert=ab,d.invertBy=ub,d.invokeMap=K0,d.iteratee=oa,d.keyBy=G0,d.keys=Xe,d.keysIn=ht,d.map=cl,d.mapKeys=cb,d.mapValues=fb,d.matches=ly,d.matchesProperty=oy,d.memoize=dl,d.merge=db,d.mergeWith=df,d.method=ay,d.methodOf=uy,d.mixin=aa,d.negate=hl,d.nthArg=cy,d.omit=hb,d.omitBy=mb,d.once=s_,d.orderBy=Q0,d.over=fy,d.overArgs=c_,d.overEvery=dy,d.overSome=hy,d.partial=Jo,d.partialRight=nf,d.partition=Y0,d.pick=gb,d.pickBy=hf,d.property=yf,d.propertyOf=my,d.pull=Qv,d.pullAll=Hc,d.pullAllBy=Yv,d.pullAllWith=Zv,d.pullAt=Xv,d.range=gy,d.rangeRight=py,d.rearg=f_,d.reject=j0,d.remove=jv,d.rest=d_,d.reverse=Zo,d.sampleSize=e_,d.set=vb,d.setWith=_b,d.shuffle=t_,d.slice=Jv,d.sortBy=i_,d.sortedUniq=o0,d.sortedUniqBy=a0,d.split=Db,d.spread=h_,d.tail=u0,d.take=s0,d.takeRight=c0,d.takeRightWhile=f0,d.takeWhile=d0,d.tap=T0,d.throttle=m_,d.thru=sl,d.toArray=uf,d.toPairs=mf,d.toPairsIn=gf,d.toPath=wy,d.toPlainObject=cf,d.transform=bb,d.unary=g_,d.union=h0,d.unionBy=m0,d.unionWith=g0,d.uniq=p0,d.uniqBy=v0,d.uniqWith=_0,d.unset=yb,d.unzip=Xo,d.unzipWith=Kc,d.update=wb,d.updateWith=Sb,d.values=kr,d.valuesIn=xb,d.without=b0,d.words=_f,d.wrap=p_,d.xor=y0,d.xorBy=w0,d.xorWith=S0,d.zip=x0,d.zipObject=C0,d.zipObjectDeep=k0,d.zipWith=E0,d.entries=mf,d.entriesIn=gf,d.extend=ff,d.extendWith=pl,aa(d,d),d.add=xy,d.attempt=bf,d.camelCase=Tb,d.capitalize=pf,d.ceil=Cy,d.clamp=Cb,d.clone=__,d.cloneDeep=y_,d.cloneDeepWith=w_,d.cloneWith=b_,d.conformsTo=S_,d.deburr=vf,d.defaultTo=ny,d.divide=ky,d.endsWith=Ab,d.eq=Ut,d.escape=Bb,d.escapeRegExp=Rb,d.every=P0,d.find=F0,d.findIndex=Dc,d.findKey=j_,d.findLast=N0,d.findLastIndex=zc,d.findLastKey=J_,d.floor=Ey,d.forEach=Qc,d.forEachRight=Yc,d.forIn=eb,d.forInRight=tb,d.forOwn=nb,d.forOwnRight=rb,d.get=na,d.gt=x_,d.gte=C_,d.has=ob,d.hasIn=ra,d.head=Wc,d.identity=mt,d.includes=H0,d.indexOf=Nv,d.inRange=kb,d.invoke=sb,d.isArguments=Zn,d.isArray=be,d.isArrayBuffer=k_,d.isArrayLike=dt,d.isArrayLikeObject=ze,d.isBoolean=E_,d.isBuffer=Bn,d.isDate=T_,d.isElement=A_,d.isEmpty=B_,d.isEqual=R_,d.isEqualWith=q_,d.isError=ea,d.isFinite=M_,d.isFunction=cn,d.isInteger=rf,d.isLength=ml,d.isMap=lf,d.isMatch=O_,d.isMatchWith=L_,d.isNaN=I_,d.isNative=V_,d.isNil=$_,d.isNull=P_,d.isNumber=of,d.isObject=Fe,d.isObjectLike=De,d.isPlainObject=Jr,d.isRegExp=ta,d.isSafeInteger=F_,d.isSet=af,d.isString=gl,d.isSymbol=xt,d.isTypedArray=Cr,d.isUndefined=N_,d.isWeakMap=D_,d.isWeakSet=z_,d.join=Hv,d.kebabCase=qb,d.last=Ot,d.lastIndexOf=Kv,d.lowerCase=Mb,d.lowerFirst=Ob,d.lt=U_,d.lte=W_,d.max=Ty,d.maxBy=Ay,d.mean=By,d.meanBy=Ry,d.min=qy,d.minBy=My,d.stubArray=sa,d.stubFalse=ca,d.stubObject=vy,d.stubString=_y,d.stubTrue=by,d.multiply=Oy,d.nth=Gv,d.noConflict=sy,d.noop=ua,d.now=fl,d.pad=Lb,d.padEnd=Ib,d.padStart=Vb,d.parseInt=Pb,d.random=Eb,d.reduce=Z0,d.reduceRight=X0,d.repeat=$b,d.replace=Fb,d.result=pb,d.round=Ly,d.runInContext=w,d.sample=J0,d.size=n_,d.snakeCase=Nb,d.some=r_,d.sortedIndex=e0,d.sortedIndexBy=t0,d.sortedIndexOf=n0,d.sortedLastIndex=r0,d.sortedLastIndexBy=i0,d.sortedLastIndexOf=l0,d.startCase=zb,d.startsWith=Ub,d.subtract=Iy,d.sum=Vy,d.sumBy=Py,d.template=Wb,d.times=yy,d.toFinite=fn,d.toInteger=ye,d.toLength=sf,d.toLower=Hb,d.toNumber=Lt,d.toSafeInteger=H_,d.toString=Ae,d.toUpper=Kb,d.trim=Gb,d.trimEnd=Qb,d.trimStart=Yb,d.truncate=Zb,d.unescape=Xb,d.uniqueId=Sy,d.upperCase=jb,d.upperFirst=ia,d.each=Qc,d.eachRight=Yc,d.first=Wc,aa(d,function(){var e={};return Qt(d,function(t,r){Re.call(d.prototype,r)||(e[r]=t)}),e}(),{chain:!1}),d.VERSION=u,At(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){d[e].placeholder=d}),At(["drop","take"],function(e,t){Ce.prototype[e]=function(r){r=r===l?1:Ye(ye(r),0);var a=this.__filtered__&&!t?new Ce(this):this.clone();return a.__filtered__?a.__takeCount__=rt(r,a.__takeCount__):a.__views__.push({size:rt(r,R),type:e+(a.__dir__<0?"Right":"")}),a},Ce.prototype[e+"Right"]=function(r){return this.reverse()[e](r).reverse()}}),At(["filter","map","takeWhile"],function(e,t){var r=t+1,a=r==P||r==ue;Ce.prototype[e]=function(c){var h=this.clone();return h.__iteratees__.push({iteratee:ce(c,3),type:r}),h.__filtered__=h.__filtered__||a,h}}),At(["head","last"],function(e,t){var r="take"+(t?"Right":"");Ce.prototype[e]=function(){return this[r](1).value()[0]}}),At(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");Ce.prototype[e]=function(){return this.__filtered__?new Ce(this):this[r](1)}}),Ce.prototype.compact=function(){return this.filter(mt)},Ce.prototype.find=function(e){return this.filter(e).head()},Ce.prototype.findLast=function(e){return this.reverse().find(e)},Ce.prototype.invokeMap=Se(function(e,t){return typeof e=="function"?new Ce(this):this.map(function(r){return Gr(r,e,t)})}),Ce.prototype.reject=function(e){return this.filter(hl(ce(e)))},Ce.prototype.slice=function(e,t){e=ye(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Ce(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==l&&(t=ye(t),r=t<0?r.dropRight(-t):r.take(t-e)),r)},Ce.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Ce.prototype.toArray=function(){return this.take(R)},Qt(Ce.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),a=/^(?:head|last)$/.test(t),c=d[a?"take"+(t=="last"?"Right":""):t],h=a||/^find/.test(t);c&&(d.prototype[t]=function(){var p=this.__wrapped__,b=a?[1]:arguments,S=p instanceof Ce,L=b[0],I=S||be(p),F=function(xe){var ke=c.apply(d,Sn([xe],b));return a&&J?ke[0]:ke};I&&r&&typeof L=="function"&&L.length!=1&&(S=I=!1);var J=this.__chain__,oe=!!this.__actions__.length,de=h&&!J,we=S&&!oe;if(!h&&I){p=we?p:new Ce(this);var he=e.apply(p,b);return he.__actions__.push({func:sl,args:[F],thisArg:l}),new Rt(he,J)}return de&&we?e.apply(this,b):(he=this.thru(F),de?a?he.value()[0]:he.value():he)})}),At(["pop","push","shift","sort","splice","unshift"],function(e){var t=Ii[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",a=/^(?:pop|shift)$/.test(e);d.prototype[e]=function(){var c=arguments;if(a&&!this.__chain__){var h=this.value();return t.apply(be(h)?h:[],c)}return this[r](function(p){return t.apply(be(p)?p:[],c)})}}),Qt(Ce.prototype,function(e,t){var r=d[t];if(r){var a=r.name+"";Re.call(br,a)||(br[a]=[]),br[a].push({name:t,func:r})}}),br[nl(l,W).name]=[{name:"wrapper",func:l}],Ce.prototype.clone=Xg,Ce.prototype.reverse=jg,Ce.prototype.value=Jg,d.prototype.at=A0,d.prototype.chain=B0,d.prototype.commit=R0,d.prototype.next=q0,d.prototype.plant=O0,d.prototype.reverse=L0,d.prototype.toJSON=d.prototype.valueOf=d.prototype.value=I0,d.prototype.first=d.prototype.head,Nr&&(d.prototype[Nr]=M0),d},pr=Rg();zn?((zn.exports=pr)._=pr,lo._=pr):et._=pr}).call(je)}(ei,ei.exports);var Pe=ei.exports,Xt={},da={},ha={},ti={};Object.defineProperty(ti,"__esModule",{value:!0}),ti.OPERATORS=void 0,ti.OPERATORS=["==","!=",">","<",">=","<=","contains","not_contains","in","not_in"];var Xn={};Object.defineProperty(Xn,"__esModule",{value:!0}),Xn.ControlType=Xn.GAMA_PROP_CONTROL_TYPES=void 0,Xn.GAMA_PROP_CONTROL_TYPES=[{code:"input_text",icon:"title",label:"Texto"},{code:"input_number",icon:"o_looks_one",label:"Número"},{code:"datetime",icon:"event",label:"Fecha y hora"},{code:"date",icon:"calendar_today",label:"Fecha"},{code:"time",icon:"schedule",label:"Hora"},{code:"switch",icon:"toggle_on",label:"Switch"},{code:"checkbox",icon:"o_check_box",label:"Checkbox"},{code:"select",icon:"list",label:"Selector simple"},{code:"cards_select",icon:"grid_view",label:"Selector de tarjetas"},{code:"location",icon:"location_on",label:"Ubicación"},{code:"dynamic_array",icon:"data_array",label:"Colección dinámica"},{code:"object",icon:"data_object",label:"Objeto"}];var ma;(function(n){n.TEXT="input_text",n.NUMBER="input_number",n.DATETIME="datetime",n.DATE="date",n.TIME="time",n.SWITCH="switch",n.CHECKBOX="checkbox",n.SELECT="select",n.CARDS_SELECT="cards_select",n.LOCATION="location",n.DYNAMIC_ARRAY="dynamic_array",n.OBJECT="object"})(ma||(Xn.ControlType=ma={}));var ga={};Object.defineProperty(ga,"__esModule",{value:!0});var pa={};Object.defineProperty(pa,"__esModule",{value:!0});var va={};(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.VALIDATORS=n.PropValidatorKeys=n.GamaPropValidatorsMap=void 0,n.GamaPropValidatorsMap={required:{fn:()=>l=>l.value!==null&&l.value!==void 0&&l.value!=="",message:"Este campo es requerido",label:"Requerido"},min:{fn:l=>u=>{if(typeof u.value=="number")return(u.value||0)>=l;if(typeof u.value=="string"){const s=u.value||"";return u.multiple?s.split(",").length>=l:s.length>=l}return!1},message:"El valor es menor al mínimo permitido",label:"Mínimo"},max:{fn:l=>u=>{if(typeof u.value=="number")return(u.value||0)<=l;if(typeof u.value=="string"){const s=u.value||"";return u.multiple?s.split(",").length<=l:(s||"").length<=l}return!1},message:"El valor es mayor al máximo permitido",label:"Máximo"},onlyNumbers:{fn:()=>l=>/^[0-9]*$/.test(String(l.value)||""),message:"Este campo solo acepta números",label:"Solo números"},email:{fn:()=>l=>l.value?/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(String(l.value)||""):!0,message:"El correo electrónico no es válido",label:"Correo electrónico"},url:{fn:()=>l=>l.value?/^(ftp|http|https):\/\/[^ "]+$/.test(String(l.value)||"")||/^www\.[^ "]+$/.test(String(l.value)||""):!0,message:"La URL no es válida",label:"URL"}};var o;(function(l){l.REQUERIDO="required",l.MINIMO="min",l.MAXIMO="max",l.SOLO_NUMEROS="onlyNumbers",l.EMAIL="email",l.URL="url"})(o||(n.PropValidatorKeys=o={})),n.VALIDATORS=Object.entries(n.GamaPropValidatorsMap).map(([l,u])=>({value:l,...u}))})(va);var _a={};Object.defineProperty(_a,"__esModule",{value:!0}),function(n){var o=je&&je.__createBinding||(Object.create?function(u,s,f,m){m===void 0&&(m=f);var g=Object.getOwnPropertyDescriptor(s,f);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[f]}}),Object.defineProperty(u,m,g)}:function(u,s,f,m){m===void 0&&(m=f),u[m]=s[f]}),l=je&&je.__exportStar||function(u,s){for(var f in u)f!=="default"&&!Object.prototype.hasOwnProperty.call(s,f)&&o(s,u,f)};Object.defineProperty(n,"__esModule",{value:!0}),l(ti,n),l(Xn,n),l(ga,n),l(pa,n),l(va,n),l(_a,n)}(ha),function(n){var o=je&&je.__createBinding||(Object.create?function(u,s,f,m){m===void 0&&(m=f);var g=Object.getOwnPropertyDescriptor(s,f);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[f]}}),Object.defineProperty(u,m,g)}:function(u,s,f,m){m===void 0&&(m=f),u[m]=s[f]}),l=je&&je.__exportStar||function(u,s){for(var f in u)f!=="default"&&!Object.prototype.hasOwnProperty.call(s,f)&&o(s,u,f)};Object.defineProperty(n,"__esModule",{value:!0}),l(ha,n)}(da),function(n){var o=je&&je.__createBinding||(Object.create?function(u,s,f,m){m===void 0&&(m=f);var g=Object.getOwnPropertyDescriptor(s,f);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[f]}}),Object.defineProperty(u,m,g)}:function(u,s,f,m){m===void 0&&(m=f),u[m]=s[f]}),l=je&&je.__exportStar||function(u,s){for(var f in u)f!=="default"&&!Object.prototype.hasOwnProperty.call(s,f)&&o(s,u,f)};Object.defineProperty(n,"__esModule",{value:!0}),l(da,n)}(Xt);const vl=[Xt.ControlType.DYNAMIC_ARRAY,Xt.ControlType.OBJECT],Sf={maxControlsPerGroup:1,notifyValidations:!0},ba={required:{fn:()=>n=>{var o;if(n.controlType===Xt.ControlType.LOCATION){const{value:l}=n.value;return Pe.values(Pe.omit(l,"catastro")).every(u=>!Pe.isNil(u)&&u!=="")&&(l!=null&&l.catastro?xf(l==null?void 0:l.catastro):!0)}return n.controlType===Xt.ControlType.DYNAMIC_ARRAY||n.multiple?(((o=n.value)==null?void 0:o.length)||0)>0:!Pe.isNil(n.value)&&n.value!==""},message:"Este campo es requerido"},min:{fn:n=>o=>ya(o,">=",n),message:"El valor es menor al mínimo permitido"},max:{fn:n=>o=>ya(o,"<=",n),message:"El valor es mayor al máximo permitido"},onlyNumbers:{fn:()=>n=>/^[0-9]*$/.test(String(n.value)||""),message:"Este campo solo acepta números"},email:{fn:()=>n=>n.value?/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(String(n.value)||""):!0,message:"El correo electrónico no es válido"},url:{fn:()=>n=>n.value?/^(ftp|http|https):\/\/[^ "]+$/.test(String(n.value)||"")||/^www\.[^ "]+$/.test(String(n.value)||""):!0,message:"La URL no es válida"}};function ya(n,o,l){const u={">":(s,f)=>s>f,"<":(s,f)=>s<f,">=":(s,f)=>s>=f,"<=":(s,f)=>s<=f}[o];if(n.controlType===Xt.ControlType.NUMBER){const s=Number(n.value);return u(s,l)}if(n.controlType===Xt.ControlType.TEXT){const s=(n.value||"").length;return u(s,l)}if([Xt.ControlType.CARDS_SELECT,Xt.ControlType.SELECT].includes(n.controlType)&&n.multiple){const s=(n.value||[]).length;return u(s,l)}return!1}function xf(n){return/^[A-Za-z0-9]{20}$/.test(n)}function Cf(n){const o=[];n.controls.forEach((u,s)=>{const f=kf(u);o.push(...f);const m=!f.length;n.controls[s].valid=m});const l=!o.length;return n.valid=l,o}function kf(n){const o=[];return n.validators&&n.validators.forEach(l=>{const{validator:u,param:s}=l,f=ba[u]||null;f&&(f.fn(Number(s))(n)||o.push(f.message))}),o}function Ef(n,o,l){return o.controlType==="dynamic_array"?Tf(n,o,l):o.controlType==="object"?wa(n,o,l):[]}function Tf(n,o,l){var f,m;const u=[],s=((f=o.itemsLength)==null?void 0:f.value)||0;for(let g=0;g<s;g++){const x=wa({...n,title:`${n.title} ${g+1}`},{...o,value:(m=o.value)==null?void 0:m[g]},l);x.forEach(A=>{A.controls.forEach(v=>{v.code=`${g}.${v.code}`})}),u.push(...x)}return u}function wa(n,o,l){const u=o.structure;return Pe.chunk(u,l).map(f=>({...n,controls:Sa(f).map(m=>{var g;return{...m,id:o.id,value:((g=o.value)==null?void 0:g[m.code])||m.value}})}))}function Af(n){return Pe.chain(n).groupBy("group").toPairs().orderBy(([l,u])=>l).map(([l,u])=>{var m;const s=((m=u.find(g=>{var x;return!!((x=g.title)!=null&&x.trim())}))==null?void 0:m.title)||"",f=u[0].group;return{title:s,controls:u,order:f,visible:!0,valid:u.every(g=>g.valid),id:""}}).value()}function Bf(n){return n.map(o=>({...o,valid:!1,controls:Sa(o.controls)}))}function Sa(n){return n.map(o=>{var l,u,s;return{...o,valid:!((l=o.validators)!=null&&l.length),visible:!((u=o.conditions)!=null&&u.length),value:Rf(o),itemsLength:o.controlType==="dynamic_array"?{...o.itemsLength,value:((s=o.itemsLength)==null?void 0:s.default)||1}:null}})}function Rf(n){if(!Pe.isNil(n.defaultValue))return n.defaultValue;switch(n.controlType){case"input_text":return"";case"input_number":return null;case"select":return n.multiple?[]:"";case"cards_select":return n.multiple?[]:"";case"checkbox":return null;case"switch":return null;case"location":return{};case"dynamic_array":return[];case"object":return{};default:return""}}console.log("active pinia:",fa.getActivePinia());const jn=fa.defineStore("form",{state:()=>({formSteps:[],currentStep:1,onLastSubstep:!1,collections:{}}),actions:{setFormSteps(n){this.formSteps=Bf(n)},nextStep(){this.currentStep!==this.formSteps.length&&this.currentStep++},previousStep(){this.currentStep!==1&&this.currentStep--},setControlValue(n,o){const{id:l,value:u,code:s}=o,f=this.formSteps[n].controls.find(m=>m.id===l);f&&(vl.includes(f.controlType)?Pe.set(f.value,s,u):f.value=u)},setControlVisibility(n,o,l){const u=this.formSteps[n].controls.find(s=>s.id===o);u&&(u.visible=l)},setControlItemsLength(n,o,l){const u=this.formSteps[n].controls.find(s=>s.id===o);!u||u.controlType!=="dynamic_array"||(u.itemsLength.value=l)},setOnLastSubstep(n){this.onLastSubstep=n},resetSteps(){this.currentStep=1},setCollection(n,o){this.collections[n]=o}},getters:{currentFormStep(n){return n.formSteps[n.currentStep-1]||null},stepsCount(n){return n.formSteps.length},nextDisabled(){return this.currentFormStep.controls.filter(n=>n.visible).some(n=>!n.valid)},getCollection(n){return o=>n.collections[o]||null}}});class xa{toRaw(o){return o.flatMap(s=>s.controls).filter(s=>s.visible).map(s=>({ID_CUESTIONARIO_PREGUNTA:s.id,RESPUESTA:this.formatValue(s)}))}fromRaw(o){return Pe.orderBy(o,"ORDEN").filter(u=>u.PREGUNTAS.length&&u.ESTADO===1).map(u=>{const s=u.NOMBRE,f=u.ORDEN,m=u.DESCRIPCION,g=u.CLAVE,x=u.ID_CUESTIONARIO,A=u.PREGUNTAS.filter(v=>v.ESTADO===1).map(v=>this.parseControl(v));return{title:s,order:f,text:m,controls:A,name:g,id:x}})}parseControl(o){return{controlType:o.TIPO,label:o.NOMBRE,name:o.CLAVE,options:o.RESPUESTAS,multiple:o.MULTIPLE||!1,validators:o.VALIDACIONES,conditions:o.CONDITIONS,itemsLength:o.LENGTH,id:o.ID_CUESTIONARIO_PREGUNTA,row:o.FILA,col:o.COLUMNA,prefix:o.PREFIJO,suffix:o.SUFIJO,structure:o.STRUCTURE,group:o.GRUPO,title:o.TITULO_GRUPO,customParams:o.PARAMS}}formatValue(o){const{controlType:l,value:u,structure:s}=o,f=(m,g)=>g.controlType==="input_number"&&m!==null&&m!==void 0&&m!==""&&typeof m=="string";return f(u,o)?parseFloat(u.replaceAll(".","")):(l==="object"&&s.forEach(m=>{const g=u[m.code];f(g,m)&&(u[m.code]=parseFloat(g==null?void 0:g.replaceAll(".","")))}),u)}}function ni(n,o,l,u){return Object.defineProperty(n,o,{get:l,set:u,enumerable:!0}),n}const hn=i.ref(!1);let _l;function qf(n,o){const l=/(edg|edge|edga|edgios)\/([\w.]+)/.exec(n)||/(opr)[\/]([\w.]+)/.exec(n)||/(vivaldi)[\/]([\w.]+)/.exec(n)||/(chrome|crios)[\/]([\w.]+)/.exec(n)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(n)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(n)||/(firefox|fxios)[\/]([\w.]+)/.exec(n)||/(webkit)[\/]([\w.]+)/.exec(n)||/(opera)(?:.*version|)[\/]([\w.]+)/.exec(n)||[];return{browser:l[5]||l[3]||l[1]||"",version:l[4]||l[2]||"0",platform:o[0]||""}}function Mf(n){return/(ipad)/.exec(n)||/(ipod)/.exec(n)||/(windows phone)/.exec(n)||/(iphone)/.exec(n)||/(kindle)/.exec(n)||/(silk)/.exec(n)||/(android)/.exec(n)||/(win)/.exec(n)||/(mac)/.exec(n)||/(linux)/.exec(n)||/(cros)/.exec(n)||/(playbook)/.exec(n)||/(bb)/.exec(n)||/(blackberry)/.exec(n)||[]}const Ca="ontouchstart"in window||window.navigator.maxTouchPoints>0;function Of(n){const o=n.toLowerCase(),l=Mf(o),u=qf(o,l),s={};u.browser&&(s[u.browser]=!0,s.version=u.version,s.versionNumber=parseInt(u.version,10)),u.platform&&(s[u.platform]=!0);const f=s.android||s.ios||s.bb||s.blackberry||s.ipad||s.iphone||s.ipod||s.kindle||s.playbook||s.silk||s["windows phone"];if(f===!0||o.indexOf("mobile")!==-1?s.mobile=!0:s.desktop=!0,s["windows phone"]&&(s.winphone=!0,delete s["windows phone"]),s.edga||s.edgios||s.edg?(s.edge=!0,u.browser="edge"):s.crios?(s.chrome=!0,u.browser="chrome"):s.fxios&&(s.firefox=!0,u.browser="firefox"),(s.ipod||s.ipad||s.iphone)&&(s.ios=!0),s.vivaldi&&(u.browser="vivaldi",s.vivaldi=!0),(s.chrome||s.opr||s.safari||s.vivaldi||s.mobile===!0&&s.ios!==!0&&f!==!0)&&(s.webkit=!0),s.opr&&(u.browser="opera",s.opera=!0),s.safari&&(s.blackberry||s.bb?(u.browser="blackberry",s.blackberry=!0):s.playbook?(u.browser="playbook",s.playbook=!0):s.android?(u.browser="android",s.android=!0):s.kindle?(u.browser="kindle",s.kindle=!0):s.silk&&(u.browser="silk",s.silk=!0)),s.name=u.browser,s.platform=u.platform,o.indexOf("electron")!==-1)s.electron=!0;else if(document.location.href.indexOf("-extension://")!==-1)s.bex=!0;else{if(window.Capacitor!==void 0?(s.capacitor=!0,s.nativeMobile=!0,s.nativeMobileWrapper="capacitor"):(window._cordovaNative!==void 0||window.cordova!==void 0)&&(s.cordova=!0,s.nativeMobile=!0,s.nativeMobileWrapper="cordova"),hn.value===!0&&(_l={is:{...s}}),Ca===!0&&s.mac===!0&&(s.desktop===!0&&s.safari===!0||s.nativeMobile===!0&&s.android!==!0&&s.ios!==!0&&s.ipad!==!0)){delete s.mac,delete s.desktop;const m=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(s,{mobile:!0,ios:!0,platform:m,[m]:!0})}s.mobile!==!0&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete s.desktop,s.mobile=!0)}return s}const ka=navigator.userAgent||navigator.vendor||window.opera,Lf={has:{touch:!1,webStorage:!1},within:{iframe:!1}},gt={userAgent:ka,is:Of(ka),has:{touch:Ca},within:{iframe:window.self!==window.top}},bl={install(n){const{$q:o}=n;hn.value===!0?(n.onSSRHydrated.push(()=>{Object.assign(o.platform,gt),hn.value=!1}),o.platform=i.reactive(this)):o.platform=this}};{let n;ni(gt.has,"webStorage",()=>{if(n!==void 0)return n;try{if(window.localStorage)return n=!0,!0}catch{}return n=!1,!1}),Object.assign(bl,gt),hn.value===!0&&(Object.assign(bl,_l,Lf),_l=null)}function Ze(n){return i.markRaw(i.defineComponent(n))}function Ea(n){return i.markRaw(n)}function jt(n,o){if(n===o)return!0;if(n!==null&&o!==null&&typeof n=="object"&&typeof o=="object"){if(n.constructor!==o.constructor)return!1;let l,u;if(n.constructor===Array){if(l=n.length,l!==o.length)return!1;for(u=l;u--!==0;)if(jt(n[u],o[u])!==!0)return!1;return!0}if(n.constructor===Map){if(n.size!==o.size)return!1;let f=n.entries();for(u=f.next();u.done!==!0;){if(o.has(u.value[0])!==!0)return!1;u=f.next()}for(f=n.entries(),u=f.next();u.done!==!0;){if(jt(u.value[1],o.get(u.value[0]))!==!0)return!1;u=f.next()}return!0}if(n.constructor===Set){if(n.size!==o.size)return!1;const f=n.entries();for(u=f.next();u.done!==!0;){if(o.has(u.value[0])!==!0)return!1;u=f.next()}return!0}if(n.buffer!=null&&n.buffer.constructor===ArrayBuffer){if(l=n.length,l!==o.length)return!1;for(u=l;u--!==0;)if(n[u]!==o[u])return!1;return!0}if(n.constructor===RegExp)return n.source===o.source&&n.flags===o.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===o.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===o.toString();const s=Object.keys(n).filter(f=>n[f]!==void 0);if(l=s.length,l!==Object.keys(o).filter(f=>o[f]!==void 0).length)return!1;for(u=l;u--!==0;){const f=s[u];if(jt(n[f],o[f])!==!0)return!1}return!0}return n!==n&&o!==o}const Ta={threshold:0,root:null,rootMargin:"0px"};function Aa(n,o,l){let u,s,f;typeof l=="function"?(u=l,s=Ta,f=o.cfg===void 0):(u=l.handler,s=Object.assign({},Ta,l.cfg),f=o.cfg===void 0||jt(o.cfg,s)===!1),o.handler!==u&&(o.handler=u),f===!0&&(o.cfg=s,o.observer!==void 0&&o.observer.unobserve(n),o.observer=new IntersectionObserver(([m])=>{if(typeof o.handler=="function"){if(m.rootBounds===null&&document.body.contains(n)===!0){o.observer.unobserve(n),o.observer.observe(n);return}(o.handler(m,o.observer)===!1||o.once===!0&&m.isIntersecting===!0)&&Ba(n)}},s),o.observer.observe(n))}function Ba(n){const o=n.__qvisible;o!==void 0&&(o.observer!==void 0&&o.observer.unobserve(n),delete n.__qvisible)}const If=Ea({name:"intersection",mounted(n,{modifiers:o,value:l}){const u={once:o.once===!0};Aa(n,u,l),n.__qvisible=u},updated(n,o){const l=n.__qvisible;l!==void 0&&Aa(n,l,o.value)},beforeUnmount:Ba});function pt(n,o){return n!==void 0&&n()||o}function Vf(n,o){if(n!==void 0){const l=n();if(l!=null)return l.slice()}return o}function Rn(n,o){return n!==void 0?o.concat(n()):o}function Pf(n,o){return n===void 0?o:o!==void 0?o.concat(n()):n()}function Ra(n,o,l,u,s,f){o.key=u+s;const m=i.h(n,o,l);return s===!0?i.withDirectives(m,f()):m}const $f=Ze({name:"QIntersection",props:{tag:{type:String,default:"div"},once:Boolean,transition:String,transitionDuration:{type:[String,Number],default:300},ssrPrerender:Boolean,margin:String,threshold:[Number,Array],root:{default:null},disable:Boolean,onVisibility:Function},setup(n,{slots:o,emit:l}){const u=i.ref(hn.value===!0?n.ssrPrerender:!1),s=i.computed(()=>n.root!==void 0||n.margin!==void 0||n.threshold!==void 0?{handler:x,cfg:{root:n.root,rootMargin:n.margin,threshold:n.threshold}}:x),f=i.computed(()=>n.disable!==!0&&(hn.value!==!0||n.once!==!0||n.ssrPrerender!==!0)),m=i.computed(()=>[[If,s.value,void 0,{once:n.once}]]),g=i.computed(()=>`--q-transition-duration: ${n.transitionDuration}ms`);function x(v){u.value!==v.isIntersecting&&(u.value=v.isIntersecting,n.onVisibility!==void 0&&l("visibility",u.value))}function A(){if(u.value===!0)return[i.h("div",{key:"content",style:g.value},pt(o.default))];if(o.hidden!==void 0)return[i.h("div",{key:"hidden",style:g.value},o.hidden())]}return()=>{const v=n.transition?[i.h(i.Transition,{name:"q-transition--"+n.transition},A)]:A();return Ra(n.tag,{class:"q-intersection"},v,"main",f.value,()=>m.value)}}}),yl={xs:18,sm:24,md:32,lg:38,xl:46},ri={size:String};function ii(n,o=yl){return i.computed(()=>n.size!==void 0?{fontSize:n.size in o?`${o[n.size]}px`:n.size}:null)}const Ff={size:{type:[String,Number],default:"1em"},color:String};function Nf(n){return{cSize:i.computed(()=>n.size in yl?`${yl[n.size]}px`:n.size),classes:i.computed(()=>"q-spinner"+(n.color?` text-${n.color}`:""))}}const wl=Ze({name:"QSpinner",props:{...Ff,thickness:{type:Number,default:5}},setup(n){const{cSize:o,classes:l}=Nf(n);return()=>i.h("svg",{class:l.value+" q-spinner-mat",width:o.value,height:o.value,viewBox:"25 25 50 50"},[i.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":n.thickness,"stroke-miterlimit":"10"})])}}),Df={ratio:[String,Number]};function zf(n,o){return i.computed(()=>{const l=Number(n.ratio||(o!==void 0?o.value:void 0));return isNaN(l)!==!0&&l>0?{paddingBottom:`${100/l}%`}:null})}function Sl(n){if(Object(n.$parent)===n.$parent)return n.$parent;let{parent:o}=n.$;for(;Object(o)===o;){if(Object(o.proxy)===o.proxy)return o.proxy;o=o.parent}}function qa(n){return n.appContext.config.globalProperties.$router!==void 0}function Er(n){return n.isUnmounted===!0||n.isDeactivated===!0}function li(){let n=null;const o=i.getCurrentInstance();function l(){n!==null&&(clearTimeout(n),n=null)}return i.onDeactivated(l),i.onBeforeUnmount(l),{removeTimeout:l,registerTimeout(u,s){l(),Er(o)===!1&&(n=setTimeout(()=>{n=null,u()},s))}}}const Uf=Ze({name:"QImg",props:{...Df,src:String,srcset:String,sizes:String,alt:String,crossorigin:String,decoding:String,referrerpolicy:String,draggable:Boolean,loading:{type:String,default:"lazy"},loadingShowDelay:{type:[Number,String],default:0},fetchpriority:{type:String,default:"auto"},width:String,height:String,initialRatio:{type:[Number,String],default:1.7778},placeholderSrc:String,errorSrc:String,fit:{type:String,default:"cover"},position:{type:String,default:"50% 50%"},imgClass:String,imgStyle:Object,noSpinner:Boolean,noNativeMenu:Boolean,noTransition:Boolean,spinnerColor:String,spinnerSize:String},emits:["load","error"],setup(n,{slots:o,emit:l}){const u=i.ref(n.initialRatio),s=zf(n,u),f=i.getCurrentInstance(),{registerTimeout:m,removeTimeout:g}=li(),{registerTimeout:x,removeTimeout:A}=li(),v=i.computed(()=>n.placeholderSrc!==void 0?{src:n.placeholderSrc}:null),C=i.computed(()=>n.errorSrc!==void 0?{src:n.errorSrc,__qerror:!0}:null),k=[i.ref(null),i.ref(v.value)],y=i.ref(0),B=i.ref(!1),U=i.ref(!1),q=i.computed(()=>`q-img q-img--${n.noNativeMenu===!0?"no-":""}menu`),W=i.computed(()=>({width:n.width,height:n.height})),D=i.computed(()=>`q-img__image ${n.imgClass!==void 0?n.imgClass+" ":""}q-img__image--with${n.noTransition===!0?"out":""}-transition q-img__image--`),$=i.computed(()=>({...n.imgStyle,objectFit:n.fit,objectPosition:n.position}));function Z(){if(A(),n.loadingShowDelay===0){B.value=!0;return}x(()=>{B.value=!0},n.loadingShowDelay)}function K(){A(),B.value=!1}function Q({target:E}){Er(f)===!1&&(g(),u.value=E.naturalHeight===0?.5:E.naturalWidth/E.naturalHeight,G(E,1))}function G(E,te){te===1e3||Er(f)===!0||(E.complete===!0?le(E):m(()=>{G(E,te+1)},50))}function le(E){Er(f)!==!0&&(y.value=y.value^1,k[y.value].value=null,K(),E.getAttribute("__qerror")!=="true"&&(U.value=!1),l("load",E.currentSrc||E.src))}function V(E){g(),K(),U.value=!0,k[y.value].value=C.value,k[y.value^1].value=v.value,l("error",E)}function N(E){const te=k[E].value,P={key:"img_"+E,class:D.value,style:$.value,alt:n.alt,crossorigin:n.crossorigin,decoding:n.decoding,referrerpolicy:n.referrerpolicy,height:n.height,width:n.width,loading:n.loading,fetchpriority:n.fetchpriority,"aria-hidden":"true",draggable:n.draggable,...te};return y.value===E?Object.assign(P,{class:P.class+"current",onLoad:Q,onError:V}):P.class+="loaded",i.h("div",{class:"q-img__container absolute-full",key:"img"+E},i.h("img",P))}function X(){return B.value===!1?i.h("div",{key:"content",class:"q-img__content absolute-full q-anchor--skip"},pt(o[U.value===!0?"error":"default"])):i.h("div",{key:"loading",class:"q-img__loading absolute-full flex flex-center"},o.loading!==void 0?o.loading():n.noSpinner===!0?void 0:[i.h(wl,{color:n.spinnerColor,size:n.spinnerSize})])}{let E=function(){i.watch(()=>n.src||n.srcset||n.sizes?{src:n.src,srcset:n.srcset,sizes:n.sizes}:null,te=>{g(),U.value=!1,te===null?(K(),k[y.value^1].value=v.value):Z(),k[y.value].value=te},{immediate:!0})};hn.value===!0?i.onMounted(E):E()}return()=>{const E=[];return s.value!==null&&E.push(i.h("div",{key:"filler",style:s.value})),k[0].value!==null&&E.push(N(0)),k[1].value!==null&&E.push(N(1)),E.push(i.h(i.Transition,{name:"q-transition--fade"},X)),i.h("div",{key:"main",class:q.value,style:W.value,role:"img","aria-label":n.alt},E)}}}),Ma="0 0 24 24",Oa=n=>n,xl=n=>`ionicons ${n}`,La={"mdi-":n=>`mdi ${n}`,"icon-":Oa,"bt-":n=>`bt ${n}`,"eva-":n=>`eva ${n}`,"ion-md":xl,"ion-ios":xl,"ion-logo":xl,"iconfont ":Oa,"ti-":n=>`themify-icon ${n}`,"bi-":n=>`bootstrap-icons ${n}`},Ia={o_:"-outlined",r_:"-round",s_:"-sharp"},Va={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},Wf=new RegExp("^("+Object.keys(La).join("|")+")"),Hf=new RegExp("^("+Object.keys(Ia).join("|")+")"),Pa=new RegExp("^("+Object.keys(Va).join("|")+")"),Kf=/^[Mm]\s?[-+]?\.?\d/,Gf=/^img:/,Qf=/^svguse:/,Yf=/^ion-/,Zf=/^(fa-(sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,vt=Ze({name:"QIcon",props:{...ri,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(n,{slots:o}){const{proxy:{$q:l}}=i.getCurrentInstance(),u=ii(n),s=i.computed(()=>"q-icon"+(n.left===!0?" on-left":"")+(n.right===!0?" on-right":"")+(n.color!==void 0?` text-${n.color}`:"")),f=i.computed(()=>{let m,g=n.name;if(g==="none"||!g)return{none:!0};if(l.iconMapFn!==null){const v=l.iconMapFn(g);if(v!==void 0)if(v.icon!==void 0){if(g=v.icon,g==="none"||!g)return{none:!0}}else return{cls:v.cls,content:v.content!==void 0?v.content:" "}}if(Kf.test(g)===!0){const[v,C=Ma]=g.split("|");return{svg:!0,viewBox:C,nodes:v.split("&&").map(k=>{const[y,B,U]=k.split("@@");return i.h("path",{style:B,d:y,transform:U})})}}if(Gf.test(g)===!0)return{img:!0,src:g.substring(4)};if(Qf.test(g)===!0){const[v,C=Ma]=g.split("|");return{svguse:!0,src:v.substring(7),viewBox:C}}let x=" ";const A=g.match(Wf);if(A!==null)m=La[A[1]](g);else if(Zf.test(g)===!0)m=g;else if(Yf.test(g)===!0)m=`ionicons ion-${l.platform.is.ios===!0?"ios":"md"}${g.substring(3)}`;else if(Pa.test(g)===!0){m="notranslate material-symbols";const v=g.match(Pa);v!==null&&(g=g.substring(6),m+=Va[v[1]]),x=g}else{m="notranslate material-icons";const v=g.match(Hf);v!==null&&(g=g.substring(2),m+=Ia[v[1]]),x=g}return{cls:m,content:x}});return()=>{const m={class:s.value,style:u.value,"aria-hidden":"true",role:"presentation"};return f.value.none===!0?i.h(n.tag,m,pt(o.default)):f.value.img===!0?i.h(n.tag,m,Rn(o.default,[i.h("img",{src:f.value.src})])):f.value.svg===!0?i.h(n.tag,m,Rn(o.default,[i.h("svg",{viewBox:f.value.viewBox||"0 0 24 24"},f.value.nodes)])):f.value.svguse===!0?i.h(n.tag,m,Rn(o.default,[i.h("svg",{viewBox:f.value.viewBox},[i.h("use",{"xlink:href":f.value.src})])])):(f.value.cls!==void 0&&(m.class+=" "+f.value.cls),i.h(n.tag,m,Rn(o.default,[f.value.content])))}}}),Xf={class:"card-select-container"},jf=["onClick"],Jf={class:"check"},ed={class:"row justify-center items-center",style:{height:"100%"}},td=["onClick"],nd=i.defineComponent({__name:"CardsSelectControl",props:i.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const o=i.useModel(n,"modelValue"),l=n,{control:u}=i.toRefs(l);function s(g){if(u.value.multiple){let x=Pe.cloneDeep(o.value);g.exclusive?x=[g.value]:(x=x.filter(A=>{var v,C;return!((C=(v=u.value.options)==null?void 0:v.find(k=>k.value===A))!=null&&C.exclusive)}),x.includes(g.value)?x=x.filter(A=>A!==g.value):x.push(g.value)),o.value=x}else o.value=g.value}function f(g){return m(g)?"active":""}function m(g){let x;return u.value.multiple?x=(o.value||[]).includes(String(g.value)):x=o.value===g.value,x}return(g,x)=>{const A=i.resolveComponent("ControlLabel");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.unref(u).label?(i.openBlock(),i.createBlock(A,{key:0,label:i.unref(u).label},null,8,["label"])):i.createCommentVNode("",!0),i.createElementVNode("div",Xf,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(u).options,(v,C)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:C},[v.image?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(`image-card ${f(v)}`),onClick:()=>s(v)},[i.createVNode(Uf,{src:v.image,height:"200px",width:"200px",fit:"fill",class:"image"},null,8,["src"]),i.createElementVNode("div",Jf,[i.createElementVNode("div",ed,[m(v)?(i.openBlock(),i.createBlock(vt,{key:0,name:"check",size:"25px"})):i.createCommentVNode("",!0)])])],10,jf)):(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(`card-option ${f(v)}`),onClick:()=>s(v)},[i.createElementVNode("span",null,i.toDisplayString(v.label),1)],10,td))],64))),128))])],64)}}}),mn=(n,o)=>{const l=n.__vccOpts||n;for(const[u,s]of o)l[u]=s;return l},rd=mn(nd,[["__scopeId","data-v-148468d6"]]),Jn={dark:{type:Boolean,default:null}};function er(n,o){return i.computed(()=>n.dark===null?o.dark.isActive:n.dark)}function id(n,o){const l=i.ref(null),u=i.computed(()=>n.disable===!0?null:i.h("span",{ref:l,class:"no-outline",tabindex:-1}));function s(f){const m=o.value;f!==void 0&&f.type.indexOf("key")===0?m!==null&&document.activeElement!==m&&m.contains(document.activeElement)===!0&&m.focus():l.value!==null&&(f===void 0||m!==null&&m.contains(f.target)===!0)&&l.value.focus()}return{refocusTargetEl:u,refocusTarget:s}}const Cl={name:String};function ld(n={}){return(o,l,u)=>{o[l](i.h("input",{class:"hidden"+(u||""),...n.value}))}}function $a(n){return i.computed(()=>n.name||n.for)}const od={xs:30,sm:35,md:40,lg:50,xl:60},st={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const n=Object.defineProperty({},"passive",{get(){Object.assign(st,{hasPassive:!0,passive:{passive:!0},notPassive:{passive:!1},passiveCapture:{passive:!0,capture:!0},notPassiveCapture:{passive:!1,capture:!0}})}});window.addEventListener("qtest",null,n),window.removeEventListener("qtest",null,n)}catch{}function ad(){}function Fa(n){return n.touches&&n.touches[0]?n=n.touches[0]:n.changedTouches&&n.changedTouches[0]?n=n.changedTouches[0]:n.targetTouches&&n.targetTouches[0]&&(n=n.targetTouches[0]),{top:n.clientY,left:n.clientX}}function ud(n){if(n.path)return n.path;if(n.composedPath)return n.composedPath();const o=[];let l=n.target;for(;l;){if(o.push(l),l.tagName==="HTML")return o.push(document),o.push(window),o;l=l.parentElement}}function Kt(n){n.stopPropagation()}function It(n){n.cancelable!==!1&&n.preventDefault()}function Ke(n){n.cancelable!==!1&&n.preventDefault(),n.stopPropagation()}function kl(n,o,l){const u=`__q_${o}_evt`;n[u]=n[u]!==void 0?n[u].concat(l):l,l.forEach(s=>{s[0].addEventListener(s[1],n[s[2]],st[s[3]])})}function Na(n,o){const l=`__q_${o}_evt`;n[l]!==void 0&&(n[l].forEach(u=>{u[0].removeEventListener(u[1],n[u[2]],st[u[3]])}),n[l]=void 0)}const Da={...Jn,...ri,...Cl,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:n=>n==="tf"||n==="ft"},toggleIndeterminate:Boolean,label:String,leftLabel:Boolean,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},za=["update:modelValue"];function Ua(n,o){const{props:l,slots:u,emit:s,proxy:f}=i.getCurrentInstance(),{$q:m}=f,g=er(l,m),x=i.ref(null),{refocusTargetEl:A,refocusTarget:v}=id(l,x),C=ii(l,od),k=i.computed(()=>l.val!==void 0&&Array.isArray(l.modelValue)),y=i.computed(()=>{const E=i.toRaw(l.val);return k.value===!0?l.modelValue.findIndex(te=>i.toRaw(te)===E):-1}),B=i.computed(()=>k.value===!0?y.value!==-1:i.toRaw(l.modelValue)===i.toRaw(l.trueValue)),U=i.computed(()=>k.value===!0?y.value===-1:i.toRaw(l.modelValue)===i.toRaw(l.falseValue)),q=i.computed(()=>B.value===!1&&U.value===!1),W=i.computed(()=>l.disable===!0?-1:l.tabindex||0),D=i.computed(()=>`q-${n} cursor-pointer no-outline row inline no-wrap items-center`+(l.disable===!0?" disabled":"")+(g.value===!0?` q-${n}--dark`:"")+(l.dense===!0?` q-${n}--dense`:"")+(l.leftLabel===!0?" reverse":"")),$=i.computed(()=>{const E=B.value===!0?"truthy":U.value===!0?"falsy":"indet",te=l.color!==void 0&&(l.keepColor===!0||(n==="toggle"?B.value===!0:U.value!==!0))?` text-${l.color}`:"";return`q-${n}__inner relative-position non-selectable q-${n}__inner--${E}${te}`}),Z=i.computed(()=>{const E={type:"checkbox"};return l.name!==void 0&&Object.assign(E,{".checked":B.value,"^checked":B.value===!0?"checked":void 0,name:l.name,value:k.value===!0?l.val:l.trueValue}),E}),K=ld(Z),Q=i.computed(()=>{const E={tabindex:W.value,role:n==="toggle"?"switch":"checkbox","aria-label":l.label,"aria-checked":q.value===!0?"mixed":B.value===!0?"true":"false"};return l.disable===!0&&(E["aria-disabled"]="true"),E});function G(E){E!==void 0&&(Ke(E),v(E)),l.disable!==!0&&s("update:modelValue",le(),E)}function le(){if(k.value===!0){if(B.value===!0){const E=l.modelValue.slice();return E.splice(y.value,1),E}return l.modelValue.concat([l.val])}if(B.value===!0){if(l.toggleOrder!=="ft"||l.toggleIndeterminate===!1)return l.falseValue}else if(U.value===!0){if(l.toggleOrder==="ft"||l.toggleIndeterminate===!1)return l.trueValue}else return l.toggleOrder!=="ft"?l.trueValue:l.falseValue;return l.indeterminateValue}function V(E){(E.keyCode===13||E.keyCode===32)&&Ke(E)}function N(E){(E.keyCode===13||E.keyCode===32)&&G(E)}const X=o(B,q);return Object.assign(f,{toggle:G}),()=>{const E=X();l.disable!==!0&&K(E,"unshift",` q-${n}__native absolute q-ma-none q-pa-none`);const te=[i.h("div",{class:$.value,style:C.value,"aria-hidden":"true"},E)];A.value!==null&&te.push(A.value);const P=l.label!==void 0?Rn(u.default,[l.label]):pt(u.default);return P!==void 0&&te.push(i.h("div",{class:`q-${n}__label q-anchor--skip`},P)),i.h("div",{ref:x,class:D.value,...Q.value,onClick:G,onKeydown:V,onKeyup:N},te)}}const sd=i.h("div",{key:"svg",class:"q-checkbox__bg absolute"},[i.h("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24"},[i.h("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),i.h("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]),Wa=Ze({name:"QCheckbox",props:Da,emits:za,setup(n){function o(l,u){const s=i.computed(()=>(l.value===!0?n.checkedIcon:u.value===!0?n.indeterminateIcon:n.uncheckedIcon)||null);return()=>s.value!==null?[i.h("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[i.h(vt,{class:"q-checkbox__icon",name:s.value})])]:[sd]}return Ua("checkbox",o)}}),Ha=i.defineComponent({__name:"SimpleCheckbox",props:i.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const o=i.useModel(n,"modelValue");return(l,u)=>(i.openBlock(),i.createBlock(Wa,{outlined:"",label:l.control.label,color:"green-10","model-value":!!o.value,"onUpdate:modelValue":u[0]||(u[0]=s=>o.value=!o.value),style:{height:"66.2px"}},null,8,["label","model-value"]))}}),cd=Ze({name:"QToggle",props:{...Da,icon:String,iconColor:String},emits:za,setup(n){function o(l,u){const s=i.computed(()=>(l.value===!0?n.checkedIcon:u.value===!0?n.indeterminateIcon:n.uncheckedIcon)||n.icon),f=i.computed(()=>l.value===!0?n.iconColor:null);return()=>[i.h("div",{class:"q-toggle__track"}),i.h("div",{class:"q-toggle__thumb absolute flex flex-center no-wrap"},s.value!==void 0?[i.h(vt,{name:s.value,color:f.value})]:void 0)]}return Ua("toggle",o)}}),fd=i.defineComponent({__name:"SimpleSwitch",props:i.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const o=i.useModel(n,"modelValue");return(l,u)=>(i.openBlock(),i.createBlock(cd,{falseValue:0,trueValue:1,outlined:"",label:l.control.label,modelValue:o.value,"onUpdate:modelValue":u[0]||(u[0]=s=>o.value=s),leftLabel:"",color:"green-10",style:{height:"66.2px"}},null,8,["label","modelValue"]))}});let El,oi=0;const Je=new Array(256);for(let n=0;n<256;n++)Je[n]=(n+256).toString(16).substring(1);const dd=(()=>{const n=typeof crypto<"u"?crypto:typeof window<"u"?window.crypto||window.msCrypto:void 0;if(n!==void 0){if(n.randomBytes!==void 0)return n.randomBytes;if(n.getRandomValues!==void 0)return o=>{const l=new Uint8Array(o);return n.getRandomValues(l),l}}return o=>{const l=[];for(let u=o;u>0;u--)l.push(Math.floor(Math.random()*256));return l}})(),Ka=4096;function Tl(){(El===void 0||oi+16>Ka)&&(oi=0,El=dd(Ka));const n=Array.prototype.slice.call(El,oi,oi+=16);return n[6]=n[6]&15|64,n[8]=n[8]&63|128,Je[n[0]]+Je[n[1]]+Je[n[2]]+Je[n[3]]+"-"+Je[n[4]]+Je[n[5]]+"-"+Je[n[6]]+Je[n[7]]+"-"+Je[n[8]]+Je[n[9]]+"-"+Je[n[10]]+Je[n[11]]+Je[n[12]]+Je[n[13]]+Je[n[14]]+Je[n[15]]}function hd(n){return n??null}function Ga(n,o){return n??(o===!0?`f_${Tl()}`:null)}function md({getValue:n,required:o=!0}={}){if(hn.value===!0){const l=n!==void 0?i.ref(hd(n())):i.ref(null);return o===!0&&l.value===null&&i.onMounted(()=>{l.value=`f_${Tl()}`}),n!==void 0&&i.watch(n,u=>{l.value=Ga(u,o)}),l}return n!==void 0?i.computed(()=>Ga(n(),o)):i.ref(`f_${Tl()}`)}const Qa=/^on[A-Z]/;function gd(){const{attrs:n,vnode:o}=i.getCurrentInstance(),l={listeners:i.ref({}),attributes:i.ref({})};function u(){const s={},f={};for(const m in n)m!=="class"&&m!=="style"&&Qa.test(m)===!1&&(s[m]=n[m]);for(const m in o.props)Qa.test(m)===!0&&(f[m]=o.props[m]);l.attributes.value=s,l.listeners.value=f}return i.onBeforeUpdate(u),u(),l}const pd="_q_",vd="_q_fo_";function _d({validate:n,resetValidation:o,requiresQForm:l}){const u=i.inject(vd,!1);if(u!==!1){const{props:s,proxy:f}=i.getCurrentInstance();Object.assign(f,{validate:n,resetValidation:o}),i.watch(()=>s.disable,m=>{m===!0?(typeof o=="function"&&o(),u.unbindComponent(f)):u.bindComponent(f)}),i.onMounted(()=>{s.disable!==!0&&u.bindComponent(f)}),i.onBeforeUnmount(()=>{s.disable!==!0&&u.unbindComponent(f)})}else l===!0&&console.error("Parent QForm not found on useFormChild()!")}const Ya=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,Za=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,Xa=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,ai=/^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])\)$/,ui=/^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)\)$/,Al={date:n=>/^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(n),time:n=>/^([0-1]?\d|2[0-3]):[0-5]\d$/.test(n),fulltime:n=>/^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/.test(n),timeOrFulltime:n=>/^([0-1]?\d|2[0-3]):[0-5]\d(:[0-5]\d)?$/.test(n),email:n=>/^(([^<>()\[\]\\.,;:\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(n),hexColor:n=>Ya.test(n),hexaColor:n=>Za.test(n),hexOrHexaColor:n=>Xa.test(n),rgbColor:n=>ai.test(n),rgbaColor:n=>ui.test(n),rgbOrRgbaColor:n=>ai.test(n)||ui.test(n),hexOrRgbColor:n=>Ya.test(n)||ai.test(n),hexaOrRgbaColor:n=>Za.test(n)||ui.test(n),anyColor:n=>Xa.test(n)||ai.test(n)||ui.test(n)};function ja(n,o=250,l){let u=null;function s(){const f=arguments,m=()=>{u=null,n.apply(this,f)};u!==null&&clearTimeout(u),u=setTimeout(m,o)}return s.cancel=()=>{u!==null&&clearTimeout(u)},s}const bd=[!0,!1,"ondemand"],yd={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:n=>bd.includes(n)}};function wd(n,o){const{props:l,proxy:u}=i.getCurrentInstance(),s=i.ref(!1),f=i.ref(null),m=i.ref(!1);_d({validate:U,resetValidation:B});let g=0,x;const A=i.computed(()=>l.rules!==void 0&&l.rules!==null&&l.rules.length!==0),v=i.computed(()=>l.disable!==!0&&A.value===!0&&o.value===!1),C=i.computed(()=>l.error===!0||s.value===!0),k=i.computed(()=>typeof l.errorMessage=="string"&&l.errorMessage.length!==0?l.errorMessage:f.value);i.watch(()=>l.modelValue,()=>{m.value=!0,v.value===!0&&l.lazyRules===!1&&q()});function y(){l.lazyRules!=="ondemand"&&v.value===!0&&m.value===!0&&q()}i.watch(()=>l.reactiveRules,W=>{W===!0?x===void 0&&(x=i.watch(()=>l.rules,y,{immediate:!0,deep:!0})):x!==void 0&&(x(),x=void 0)},{immediate:!0}),i.watch(()=>l.lazyRules,y),i.watch(n,W=>{W===!0?m.value=!0:v.value===!0&&l.lazyRules!=="ondemand"&&q()});function B(){g++,o.value=!1,m.value=!1,s.value=!1,f.value=null,q.cancel()}function U(W=l.modelValue){if(l.disable===!0||A.value===!1)return!0;const D=++g,$=o.value!==!0?()=>{m.value=!0}:()=>{},Z=(Q,G)=>{Q===!0&&$(),s.value=Q,f.value=G||null,o.value=!1},K=[];for(let Q=0;Q<l.rules.length;Q++){const G=l.rules[Q];let le;if(typeof G=="function"?le=G(W,Al):typeof G=="string"&&Al[G]!==void 0&&(le=Al[G](W)),le===!1||typeof le=="string")return Z(!0,le),!1;le!==!0&&le!==void 0&&K.push(le)}return K.length===0?(Z(!1),!0):(o.value=!0,Promise.all(K).then(Q=>{if(Q===void 0||Array.isArray(Q)===!1||Q.length===0)return D===g&&Z(!1),!0;const G=Q.find(le=>le===!1||typeof le=="string");return D===g&&Z(G!==void 0,G),G===void 0},Q=>(D===g&&(console.error(Q),Z(!0)),!1)))}const q=ja(U,0);return i.onBeforeUnmount(()=>{x!==void 0&&x(),q.cancel()}),Object.assign(u,{resetValidation:B,validate:U}),ni(u,"hasError",()=>C.value),{isDirtyModel:m,hasRules:A,hasError:C,errorMessage:k,validate:U,resetValidation:B}}let qn=[],Tr=[];function Ja(n){Tr=Tr.filter(o=>o!==n)}function Sd(n){Ja(n),Tr.push(n)}function eu(n){Ja(n),Tr.length===0&&qn.length!==0&&(qn[qn.length-1](),qn=[])}function si(n){Tr.length===0?n():qn.push(n)}function xd(n){qn=qn.filter(o=>o!==n)}function Ar(n){return n!=null&&(""+n).length!==0}const ci={...{...Jn,...yd,label:String,stackLabel:Boolean,hint:String,hideHint:Boolean,prefix:String,suffix:String,labelColor:String,color:String,bgColor:String,filled:Boolean,outlined:Boolean,borderless:Boolean,standout:[Boolean,String],square:Boolean,loading:Boolean,labelSlot:Boolean,bottomSlots:Boolean,hideBottomSpace:Boolean,rounded:Boolean,dense:Boolean,itemAligned:Boolean,counter:Boolean,clearable:Boolean,clearIcon:String,disable:Boolean,readonly:Boolean,autofocus:Boolean,for:String},maxlength:[Number,String]},Bl=["update:modelValue","clear","focus","blur"];function Rl({requiredForAttr:n=!0,tagProp:o,changeEvent:l=!1}={}){const{props:u,proxy:s}=i.getCurrentInstance(),f=er(u,s.$q),m=md({required:n,getValue:()=>u.for});return{requiredForAttr:n,changeEvent:l,tag:o===!0?i.computed(()=>u.tag):{value:"label"},isDark:f,editable:i.computed(()=>u.disable!==!0&&u.readonly!==!0),innerLoading:i.ref(!1),focused:i.ref(!1),hasPopupOpen:!1,splitAttrs:gd(),targetUid:m,rootRef:i.ref(null),targetRef:i.ref(null),controlRef:i.ref(null)}}function ql(n){const{props:o,emit:l,slots:u,attrs:s,proxy:f}=i.getCurrentInstance(),{$q:m}=f;let g=null;n.hasValue===void 0&&(n.hasValue=i.computed(()=>Ar(o.modelValue))),n.emitValue===void 0&&(n.emitValue=H=>{l("update:modelValue",H)}),n.controlEvents===void 0&&(n.controlEvents={onFocusin:V,onFocusout:N}),Object.assign(n,{clearValue:X,onControlFocusin:V,onControlFocusout:N,focus:G}),n.computedCounter===void 0&&(n.computedCounter=i.computed(()=>{if(o.counter!==!1){const H=typeof o.modelValue=="string"||typeof o.modelValue=="number"?(""+o.modelValue).length:Array.isArray(o.modelValue)===!0?o.modelValue.length:0,se=o.maxlength!==void 0?o.maxlength:o.maxValues;return H+(se!==void 0?" / "+se:"")}}));const{isDirtyModel:x,hasRules:A,hasError:v,errorMessage:C,resetValidation:k}=wd(n.focused,n.innerLoading),y=n.floatingLabel!==void 0?i.computed(()=>o.stackLabel===!0||n.focused.value===!0||n.floatingLabel.value===!0):i.computed(()=>o.stackLabel===!0||n.focused.value===!0||n.hasValue.value===!0),B=i.computed(()=>o.bottomSlots===!0||o.hint!==void 0||A.value===!0||o.counter===!0||o.error!==null),U=i.computed(()=>o.filled===!0?"filled":o.outlined===!0?"outlined":o.borderless===!0?"borderless":o.standout?"standout":"standard"),q=i.computed(()=>`q-field row no-wrap items-start q-field--${U.value}`+(n.fieldClass!==void 0?` ${n.fieldClass.value}`:"")+(o.rounded===!0?" q-field--rounded":"")+(o.square===!0?" q-field--square":"")+(y.value===!0?" q-field--float":"")+(D.value===!0?" q-field--labeled":"")+(o.dense===!0?" q-field--dense":"")+(o.itemAligned===!0?" q-field--item-aligned q-item-type":"")+(n.isDark.value===!0?" q-field--dark":"")+(n.getControl===void 0?" q-field--auto-height":"")+(n.focused.value===!0?" q-field--focused":"")+(v.value===!0?" q-field--error":"")+(v.value===!0||n.focused.value===!0?" q-field--highlighted":"")+(o.hideBottomSpace!==!0&&B.value===!0?" q-field--with-bottom":"")+(o.disable===!0?" q-field--disabled":o.readonly===!0?" q-field--readonly":"")),W=i.computed(()=>"q-field__control relative-position row no-wrap"+(o.bgColor!==void 0?` bg-${o.bgColor}`:"")+(v.value===!0?" text-negative":typeof o.standout=="string"&&o.standout.length!==0&&n.focused.value===!0?` ${o.standout}`:o.color!==void 0?` text-${o.color}`:"")),D=i.computed(()=>o.labelSlot===!0||o.label!==void 0),$=i.computed(()=>"q-field__label no-pointer-events absolute ellipsis"+(o.labelColor!==void 0&&v.value!==!0?` text-${o.labelColor}`:"")),Z=i.computed(()=>({id:n.targetUid.value,editable:n.editable.value,focused:n.focused.value,floatingLabel:y.value,modelValue:o.modelValue,emitValue:n.emitValue})),K=i.computed(()=>{const H={};return n.targetUid.value&&(H.for=n.targetUid.value),o.disable===!0&&(H["aria-disabled"]="true"),H});function Q(){const H=document.activeElement;let se=n.targetRef!==void 0&&n.targetRef.value;se&&(H===null||H.id!==n.targetUid.value)&&(se.hasAttribute("tabindex")===!0||(se=se.querySelector("[tabindex]")),se&&se!==H&&se.focus({preventScroll:!0}))}function G(){si(Q)}function le(){xd(Q);const H=document.activeElement;H!==null&&n.rootRef.value.contains(H)&&H.blur()}function V(H){g!==null&&(clearTimeout(g),g=null),n.editable.value===!0&&n.focused.value===!1&&(n.focused.value=!0,l("focus",H))}function N(H,se){g!==null&&clearTimeout(g),g=setTimeout(()=>{g=null,!(document.hasFocus()===!0&&(n.hasPopupOpen===!0||n.controlRef===void 0||n.controlRef.value===null||n.controlRef.value.contains(document.activeElement)!==!1))&&(n.focused.value===!0&&(n.focused.value=!1,l("blur",H)),se!==void 0&&se())})}function X(H){Ke(H),m.platform.is.mobile!==!0?(n.targetRef!==void 0&&n.targetRef.value||n.rootRef.value).focus():n.rootRef.value.contains(document.activeElement)===!0&&document.activeElement.blur(),o.type==="file"&&(n.inputRef.value.value=null),l("update:modelValue",null),n.changeEvent===!0&&l("change",null),l("clear",o.modelValue),i.nextTick(()=>{const se=x.value;k(),x.value=se})}function E(H){[13,32].includes(H.keyCode)&&X(H)}function te(){const H=[];return u.prepend!==void 0&&H.push(i.h("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:It},u.prepend())),H.push(i.h("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},P())),v.value===!0&&o.noErrorIcon===!1&&H.push(ue("error",[i.h(vt,{name:m.iconSet.field.error,color:"negative"})])),o.loading===!0||n.innerLoading.value===!0?H.push(ue("inner-loading-append",u.loading!==void 0?u.loading():[i.h(wl,{color:o.color})])):o.clearable===!0&&n.hasValue.value===!0&&n.editable.value===!0&&H.push(ue("inner-clearable-append",[i.h(vt,{class:"q-field__focusable-action",name:o.clearIcon||m.iconSet.field.clear,tabindex:0,role:"button","aria-hidden":"false","aria-label":m.lang.label.clear,onKeyup:E,onClick:X})])),u.append!==void 0&&H.push(i.h("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:It},u.append())),n.getInnerAppend!==void 0&&H.push(ue("inner-append",n.getInnerAppend())),n.getControlChild!==void 0&&H.push(n.getControlChild()),H}function P(){const H=[];return o.prefix!==void 0&&o.prefix!==null&&H.push(i.h("div",{class:"q-field__prefix no-pointer-events row items-center"},o.prefix)),n.getShadowControl!==void 0&&n.hasShadow.value===!0&&H.push(n.getShadowControl()),n.getControl!==void 0?H.push(n.getControl()):u.rawControl!==void 0?H.push(u.rawControl()):u.control!==void 0&&H.push(i.h("div",{ref:n.targetRef,class:"q-field__native row",tabindex:-1,...n.splitAttrs.attributes.value,"data-autofocus":o.autofocus===!0||void 0},u.control(Z.value))),D.value===!0&&H.push(i.h("div",{class:$.value},pt(u.label,o.label))),o.suffix!==void 0&&o.suffix!==null&&H.push(i.h("div",{class:"q-field__suffix no-pointer-events row items-center"},o.suffix)),H.concat(pt(u.default))}function ae(){let H,se;v.value===!0?C.value!==null?(H=[i.h("div",{role:"alert"},C.value)],se=`q--slot-error-${C.value}`):(H=pt(u.error),se="q--slot-error"):(o.hideHint!==!0||n.focused.value===!0)&&(o.hint!==void 0?(H=[i.h("div",o.hint)],se=`q--slot-hint-${o.hint}`):(H=pt(u.hint),se="q--slot-hint"));const ge=o.counter===!0||u.counter!==void 0;if(o.hideBottomSpace===!0&&ge===!1&&H===void 0)return;const R=i.h("div",{key:se,class:"q-field__messages col"},H);return i.h("div",{class:"q-field__bottom row items-start q-field__bottom--"+(o.hideBottomSpace!==!0?"animated":"stale"),onClick:It},[o.hideBottomSpace===!0?R:i.h(i.Transition,{name:"q-transition--field-message"},()=>R),ge===!0?i.h("div",{class:"q-field__counter"},u.counter!==void 0?u.counter():n.computedCounter.value):null])}function ue(H,se){return se===null?null:i.h("div",{key:H,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},se)}let fe=!1;return i.onDeactivated(()=>{fe=!0}),i.onActivated(()=>{fe===!0&&o.autofocus===!0&&f.focus()}),o.autofocus===!0&&i.onMounted(()=>{f.focus()}),i.onBeforeUnmount(()=>{g!==null&&clearTimeout(g)}),Object.assign(f,{focus:G,blur:le}),function(){const se=n.getControl===void 0&&u.control===void 0?{...n.splitAttrs.attributes.value,"data-autofocus":o.autofocus===!0||void 0,...K.value}:K.value;return i.h(n.tag.value,{ref:n.rootRef,class:[q.value,s.class],style:s.style,...se},[u.before!==void 0?i.h("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:It},u.before()):null,i.h("div",{class:"q-field__inner relative-position col self-stretch"},[i.h("div",{ref:n.controlRef,class:W.value,tabindex:-1,...n.controlEvents},te()),B.value===!0?ae():null]),u.after!==void 0?i.h("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:It},u.after()):null])}}function Ml(n){return n!==Object(n)||n.isComposing===!0||n.qKeyEvent===!0}function Mn(n,o){return Ml(n)===!0?!1:[].concat(o).includes(n.keyCode)}const tu={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},fi={"#":{pattern:"[\\d]",negate:"[^\\d]"},S:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]"},N:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]"},A:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:n=>n.toLocaleUpperCase()},a:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:n=>n.toLocaleLowerCase()},X:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:n=>n.toLocaleUpperCase()},x:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:n=>n.toLocaleLowerCase()}},nu=Object.keys(fi);nu.forEach(n=>{fi[n].regex=new RegExp(fi[n].pattern)});const Cd=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+nu.join("")+"])|(.)","g"),ru=/[.*+?^${}()|[\]\\]/g,We="",kd={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean};function Ed(n,o,l,u){let s,f,m,g,x,A;const v=i.ref(null),C=i.ref(y());function k(){return n.autogrow===!0||["textarea","text","search","url","tel","password"].includes(n.type)}i.watch(()=>n.type+n.autogrow,U),i.watch(()=>n.mask,V=>{if(V!==void 0)q(C.value,!0);else{const N=G(C.value);U(),n.modelValue!==N&&o("update:modelValue",N)}}),i.watch(()=>n.fillMask+n.reverseFillMask,()=>{v.value===!0&&q(C.value,!0)}),i.watch(()=>n.unmaskedValue,()=>{v.value===!0&&q(C.value)});function y(){if(U(),v.value===!0){const V=K(G(n.modelValue));return n.fillMask!==!1?le(V):V}return n.modelValue}function B(V){if(V<s.length)return s.slice(-V);let N="",X=s;const E=X.indexOf(We);if(E!==-1){for(let te=V-X.length;te>0;te--)N+=We;X=X.slice(0,E)+N+X.slice(E)}return X}function U(){if(v.value=n.mask!==void 0&&n.mask.length!==0&&k(),v.value===!1){g=void 0,s="",f="";return}const V=tu[n.mask]===void 0?n.mask:tu[n.mask],N=typeof n.fillMask=="string"&&n.fillMask.length!==0?n.fillMask.slice(0,1):"_",X=N.replace(ru,"\\$&"),E=[],te=[],P=[];let ae=n.reverseFillMask===!0,ue="",fe="";V.replace(Cd,(R,T,ie,ve,_e)=>{if(ve!==void 0){const z=fi[ve];P.push(z),fe=z.negate,ae===!0&&(te.push("(?:"+fe+"+)?("+z.pattern+"+)?(?:"+fe+"+)?("+z.pattern+"+)?"),ae=!1),te.push("(?:"+fe+"+)?("+z.pattern+")?")}else if(ie!==void 0)ue="\\"+(ie==="\\"?"":ie),P.push(ie),E.push("([^"+ue+"]+)?"+ue+"?");else{const z=T!==void 0?T:_e;ue=z==="\\"?"\\\\\\\\":z.replace(ru,"\\\\$&"),P.push(z),E.push("([^"+ue+"]+)?"+ue+"?")}});const H=new RegExp("^"+E.join("")+"("+(ue===""?".":"[^"+ue+"]")+"+)?"+(ue===""?"":"["+ue+"]*")+"$"),se=te.length-1,ge=te.map((R,T)=>T===0&&n.reverseFillMask===!0?new RegExp("^"+X+"*"+R):T===se?new RegExp("^"+R+"("+(fe===""?".":fe)+"+)?"+(n.reverseFillMask===!0?"$":X+"*")):new RegExp("^"+R));m=P,g=R=>{const T=H.exec(n.reverseFillMask===!0?R:R.slice(0,P.length+1));T!==null&&(R=T.slice(1).join(""));const ie=[],ve=ge.length;for(let _e=0,z=R;_e<ve;_e++){const ne=ge[_e].exec(z);if(ne===null)break;z=z.slice(ne.shift().length),ie.push(...ne)}return ie.length!==0?ie.join(""):R},s=P.map(R=>typeof R=="string"?R:We).join(""),f=s.split(We).join(N)}function q(V,N,X){const E=u.value,te=E.selectionEnd,P=E.value.length-te,ae=G(V);N===!0&&U();const ue=K(ae),fe=n.fillMask!==!1?le(ue):ue,H=C.value!==fe;E.value!==fe&&(E.value=fe),H===!0&&(C.value=fe),document.activeElement===E&&i.nextTick(()=>{if(fe===f){const ge=n.reverseFillMask===!0?f.length:0;E.setSelectionRange(ge,ge,"forward");return}if(X==="insertFromPaste"&&n.reverseFillMask!==!0){const ge=E.selectionEnd;let R=te-1;for(let T=x;T<=R&&T<ge;T++)s[T]!==We&&R++;D.right(E,R);return}if(["deleteContentBackward","deleteContentForward"].indexOf(X)!==-1){const ge=n.reverseFillMask===!0?te===0?fe.length>ue.length?1:0:Math.max(0,fe.length-(fe===f?0:Math.min(ue.length,P)+1))+1:te;E.setSelectionRange(ge,ge,"forward");return}if(n.reverseFillMask===!0)if(H===!0){const ge=Math.max(0,fe.length-(fe===f?0:Math.min(ue.length,P+1)));ge===1&&te===1?E.setSelectionRange(ge,ge,"forward"):D.rightReverse(E,ge)}else{const ge=fe.length-P;E.setSelectionRange(ge,ge,"backward")}else if(H===!0){const ge=Math.max(0,s.indexOf(We),Math.min(ue.length,te)-1);D.right(E,ge)}else{const ge=te-1;D.right(E,ge)}});const se=n.unmaskedValue===!0?G(fe):fe;String(n.modelValue)!==se&&(n.modelValue!==null||se!=="")&&l(se,!0)}function W(V,N,X){const E=K(G(V.value));N=Math.max(0,s.indexOf(We),Math.min(E.length,N)),x=N,V.setSelectionRange(N,X,"forward")}const D={left(V,N){const X=s.slice(N-1).indexOf(We)===-1;let E=Math.max(0,N-1);for(;E>=0;E--)if(s[E]===We){N=E,X===!0&&N++;break}if(E<0&&s[N]!==void 0&&s[N]!==We)return D.right(V,0);N>=0&&V.setSelectionRange(N,N,"backward")},right(V,N){const X=V.value.length;let E=Math.min(X,N+1);for(;E<=X;E++)if(s[E]===We){N=E;break}else s[E-1]===We&&(N=E);if(E>X&&s[N-1]!==void 0&&s[N-1]!==We)return D.left(V,X);V.setSelectionRange(N,N,"forward")},leftReverse(V,N){const X=B(V.value.length);let E=Math.max(0,N-1);for(;E>=0;E--)if(X[E-1]===We){N=E;break}else if(X[E]===We&&(N=E,E===0))break;if(E<0&&X[N]!==void 0&&X[N]!==We)return D.rightReverse(V,0);N>=0&&V.setSelectionRange(N,N,"backward")},rightReverse(V,N){const X=V.value.length,E=B(X),te=E.slice(0,N+1).indexOf(We)===-1;let P=Math.min(X,N+1);for(;P<=X;P++)if(E[P-1]===We){N=P,N>0&&te===!0&&N--;break}if(P>X&&E[N-1]!==void 0&&E[N-1]!==We)return D.leftReverse(V,X);V.setSelectionRange(N,N,"forward")}};function $(V){o("click",V),A=void 0}function Z(V){if(o("keydown",V),Ml(V)===!0||V.altKey===!0)return;const N=u.value,X=N.selectionStart,E=N.selectionEnd;if(V.shiftKey||(A=void 0),V.keyCode===37||V.keyCode===39){V.shiftKey&&A===void 0&&(A=N.selectionDirection==="forward"?X:E);const te=D[(V.keyCode===39?"right":"left")+(n.reverseFillMask===!0?"Reverse":"")];if(V.preventDefault(),te(N,A===X?E:X),V.shiftKey){const P=N.selectionStart;N.setSelectionRange(Math.min(A,P),Math.max(A,P),"forward")}}else V.keyCode===8&&n.reverseFillMask!==!0&&X===E?(D.left(N,X),N.setSelectionRange(N.selectionStart,E,"backward")):V.keyCode===46&&n.reverseFillMask===!0&&X===E&&(D.rightReverse(N,E),N.setSelectionRange(X,N.selectionEnd,"forward"))}function K(V){if(V==null||V==="")return"";if(n.reverseFillMask===!0)return Q(V);const N=m;let X=0,E="";for(let te=0;te<N.length;te++){const P=V[X],ae=N[te];if(typeof ae=="string")E+=ae,P===ae&&X++;else if(P!==void 0&&ae.regex.test(P))E+=ae.transform!==void 0?ae.transform(P):P,X++;else return E}return E}function Q(V){const N=m,X=s.indexOf(We);let E=V.length-1,te="";for(let P=N.length-1;P>=0&&E!==-1;P--){const ae=N[P];let ue=V[E];if(typeof ae=="string")te=ae+te,ue===ae&&E--;else if(ue!==void 0&&ae.regex.test(ue))do te=(ae.transform!==void 0?ae.transform(ue):ue)+te,E--,ue=V[E];while(X===P&&ue!==void 0&&ae.regex.test(ue));else return te}return te}function G(V){return typeof V!="string"||g===void 0?typeof V=="number"?g(""+V):V:g(V)}function le(V){return f.length-V.length<=0?V:n.reverseFillMask===!0&&V.length!==0?f.slice(0,-V.length)+V:V+f.slice(V.length)}return{innerValue:C,hasMask:v,moveCursorForPaste:W,updateMaskValue:q,onMaskedKeydown:Z,onMaskedClick:$}}function Td(n,o){function l(){const u=n.modelValue;try{const s="DataTransfer"in window?new DataTransfer:"ClipboardEvent"in window?new ClipboardEvent("").clipboardData:void 0;return Object(u)===u&&("length"in u?Array.from(u):[u]).forEach(f=>{s.items.add(f)}),{files:s.files}}catch{return{files:void 0}}}return i.computed(()=>{if(n.type==="file")return l()})}const Ad=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,Bd=/[\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,Rd=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,qd=/[a-z0-9_ -]$/i;function iu(n){return function(l){if(l.type==="compositionend"||l.type==="change"){if(l.target.qComposing!==!0)return;l.target.qComposing=!1,n(l)}else l.type==="compositionupdate"&&l.target.qComposing!==!0&&typeof l.data=="string"&&(gt.is.firefox===!0?qd.test(l.data)===!1:Ad.test(l.data)===!0||Bd.test(l.data)===!0||Rd.test(l.data)===!0)===!0&&(l.target.qComposing=!0)}}const lu=Ze({name:"QInput",inheritAttrs:!1,props:{...ci,...kd,...Cl,modelValue:[String,Number,FileList],shadowText:String,type:{type:String,default:"text"},debounce:[String,Number],autogrow:Boolean,inputClass:[Array,String,Object],inputStyle:[Array,String,Object]},emits:[...Bl,"paste","change","keydown","click","animationend"],setup(n,{emit:o,attrs:l}){const{proxy:u}=i.getCurrentInstance(),{$q:s}=u,f={};let m=NaN,g,x,A=null,v;const C=i.ref(null),k=$a(n),{innerValue:y,hasMask:B,moveCursorForPaste:U,updateMaskValue:q,onMaskedKeydown:W,onMaskedClick:D}=Ed(n,o,ue,C),$=Td(n),Z=i.computed(()=>Ar(y.value)),K=iu(P),Q=Rl({changeEvent:!0}),G=i.computed(()=>n.type==="textarea"||n.autogrow===!0),le=i.computed(()=>G.value===!0||["text","search","url","tel","password"].includes(n.type)),V=i.computed(()=>{const T={...Q.splitAttrs.listeners.value,onInput:P,onPaste:te,onChange:H,onBlur:se,onFocus:Kt};return T.onCompositionstart=T.onCompositionupdate=T.onCompositionend=K,B.value===!0&&(T.onKeydown=W,T.onClick=D),n.autogrow===!0&&(T.onAnimationend=ae),T}),N=i.computed(()=>{const T={tabindex:0,"data-autofocus":n.autofocus===!0||void 0,rows:n.type==="textarea"?6:void 0,"aria-label":n.label,name:k.value,...Q.splitAttrs.attributes.value,id:Q.targetUid.value,maxlength:n.maxlength,disabled:n.disable===!0,readonly:n.readonly===!0};return G.value===!1&&(T.type=n.type),n.autogrow===!0&&(T.rows=1),T});i.watch(()=>n.type,()=>{C.value&&(C.value.value=n.modelValue)}),i.watch(()=>n.modelValue,T=>{if(B.value===!0){if(x===!0&&(x=!1,String(T)===m))return;q(T)}else y.value!==T&&(y.value=T,n.type==="number"&&f.hasOwnProperty("value")===!0&&(g===!0?g=!1:delete f.value));n.autogrow===!0&&i.nextTick(fe)}),i.watch(()=>n.autogrow,T=>{T===!0?i.nextTick(fe):C.value!==null&&l.rows>0&&(C.value.style.height="auto")}),i.watch(()=>n.dense,()=>{n.autogrow===!0&&i.nextTick(fe)});function X(){si(()=>{const T=document.activeElement;C.value!==null&&C.value!==T&&(T===null||T.id!==Q.targetUid.value)&&C.value.focus({preventScroll:!0})})}function E(){C.value!==null&&C.value.select()}function te(T){if(B.value===!0&&n.reverseFillMask!==!0){const ie=T.target;U(ie,ie.selectionStart,ie.selectionEnd)}o("paste",T)}function P(T){if(!T||!T.target)return;if(n.type==="file"){o("update:modelValue",T.target.files);return}const ie=T.target.value;if(T.target.qComposing===!0){f.value=ie;return}if(B.value===!0)q(ie,!1,T.inputType);else if(ue(ie),le.value===!0&&T.target===document.activeElement){const{selectionStart:ve,selectionEnd:_e}=T.target;ve!==void 0&&_e!==void 0&&i.nextTick(()=>{T.target===document.activeElement&&ie.indexOf(T.target.value)===0&&T.target.setSelectionRange(ve,_e)})}n.autogrow===!0&&fe()}function ae(T){o("animationend",T),fe()}function ue(T,ie){v=()=>{A=null,n.type!=="number"&&f.hasOwnProperty("value")===!0&&delete f.value,n.modelValue!==T&&m!==T&&(m=T,ie===!0&&(x=!0),o("update:modelValue",T),i.nextTick(()=>{m===T&&(m=NaN)})),v=void 0},n.type==="number"&&(g=!0,f.value=T),n.debounce!==void 0?(A!==null&&clearTimeout(A),f.value=T,A=setTimeout(v,n.debounce)):v()}function fe(){requestAnimationFrame(()=>{const T=C.value;if(T!==null){const ie=T.parentNode.style,{scrollTop:ve}=T,{overflowY:_e,maxHeight:z}=s.platform.is.firefox===!0?{}:window.getComputedStyle(T),ne=_e!==void 0&&_e!=="scroll";ne===!0&&(T.style.overflowY="hidden"),ie.marginBottom=T.scrollHeight-1+"px",T.style.height="1px",T.style.height=T.scrollHeight+"px",ne===!0&&(T.style.overflowY=parseInt(z,10)<T.scrollHeight?"auto":"hidden"),ie.marginBottom="",T.scrollTop=ve}})}function H(T){K(T),A!==null&&(clearTimeout(A),A=null),v!==void 0&&v(),o("change",T.target.value)}function se(T){T!==void 0&&Kt(T),A!==null&&(clearTimeout(A),A=null),v!==void 0&&v(),g=!1,x=!1,delete f.value,n.type!=="file"&&setTimeout(()=>{C.value!==null&&(C.value.value=y.value!==void 0?y.value:"")})}function ge(){return f.hasOwnProperty("value")===!0?f.value:y.value!==void 0?y.value:""}i.onBeforeUnmount(()=>{se()}),i.onMounted(()=>{n.autogrow===!0&&fe()}),Object.assign(Q,{innerValue:y,fieldClass:i.computed(()=>`q-${G.value===!0?"textarea":"input"}`+(n.autogrow===!0?" q-textarea--autogrow":"")),hasShadow:i.computed(()=>n.type!=="file"&&typeof n.shadowText=="string"&&n.shadowText.length!==0),inputRef:C,emitValue:ue,hasValue:Z,floatingLabel:i.computed(()=>Z.value===!0&&(n.type!=="number"||isNaN(y.value)===!1)||Ar(n.displayValue)),getControl:()=>i.h(G.value===!0?"textarea":"input",{ref:C,class:["q-field__native q-placeholder",n.inputClass],style:n.inputStyle,...N.value,...V.value,...n.type!=="file"?{value:ge()}:$.value}),getShadowControl:()=>i.h("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(G.value===!0?"":" text-no-wrap")},[i.h("span",{class:"invisible"},ge()),i.h("span",n.shadowText)])});const R=ql(Q);return Object.assign(u,{focus:X,select:E,getNativeElement:()=>C.value}),ni(u,"nativeEl",()=>C.value),R}}),di=Ze({name:"QCard",props:{...Jn,tag:{type:String,default:"div"},square:Boolean,flat:Boolean,bordered:Boolean},setup(n,{slots:o}){const{proxy:{$q:l}}=i.getCurrentInstance(),u=er(n,l),s=i.computed(()=>"q-card"+(u.value===!0?" q-card--dark q-dark":"")+(n.bordered===!0?" q-card--bordered":"")+(n.square===!0?" q-card--square no-border-radius":"")+(n.flat===!0?" q-card--flat no-shadow":""));return()=>i.h(n.tag,{class:s.value},pt(o.default))}}),Md=i.defineComponent({__name:"WinInput",props:i.mergeModels({modelValue:{},rules:{},label:{},placeholder:{},mask:{},prefix:{},suffix:{},hint:{},maxlength:{},type:{default:"text"},transparent:{type:Boolean,default:!0},width:{default:"100%"},height:{default:"70px"},inputHeight:{},readonly:{type:Boolean},fillMask:{type:Boolean,default:!1},minWidth:{default:"200px"},inputStyle:{default:"resize: none"},labelStyle:{default:"padding-left: 5px"},hintOptions:{default:{color:"grey-7",position:"right"}},counter:{type:Boolean,default:!1},dense:{type:Boolean,default:!1},required:{type:Boolean,default:!1}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(n,{expose:o}){const l=i.useModel(n,"modelValue"),u=n,s=i.ref(!1),f=i.computed(()=>u.transparent?"glass-card":"win-card"),m=i.computed(()=>u.label===""?void 0:u.label),g=i.computed(()=>{let y="width: 100%; padding-left: 10px; padding-right: 10px;";return u.inputHeight&&(y+="height: "+u.inputHeight),y}),x=i.computed(()=>l.value||s.value?"17.5px":"15px"),A=i.ref(null);function v(){A.value.focus()}function C(){s.value=!0}function k(){s.value=!1}return o({focus:v}),(y,B)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(di,{onClick:v,class:i.normalizeClass(`${f.value} row items-center ${l.value&&y.label||s.value&&y.label?"q-pt-md":""} `),style:i.normalizeStyle({minHeight:y.height,width:y.width,maxWidth:"calc(100vw - 32px)",minWidth:y.minWidth,margin:"auto"})},{default:i.withCtx(()=>[i.renderSlot(y.$slots,"fixed-label",{class:"self-start"}),i.createVNode(lu,{modelValue:l.value,"onUpdate:modelValue":B[0]||(B[0]=U=>l.value=U),ref_key:"inputRef",ref:A,"label-color":"black","input-class":`text-black ${m.value?"":"text-center ww-title"}`,"input-style":y.inputStyle,style:i.normalizeStyle(g.value),readonly:y.readonly,mask:y.mask,prefix:y.prefix,label:m.value,type:y.type,suffix:y.suffix,counter:y.counter,maxlength:y.maxlength,rules:y.rules,borderless:"",dense:"","unmasked-value":"","reverse-fill-mask":"",placeholder:y.placeholder,onFocus:C,onBlur:k},{label:i.withCtx(()=>[!y.label||y.label!=""?(i.openBlock(),i.createElementBlock("div",{key:0,style:i.normalizeStyle(`padding-bottom: 30px; transition: 0.5s ease; font-size: ${x.value};`+y.labelStyle)},i.toDisplayString(y.label)+" "+i.toDisplayString(y.required&&!y.readonly?"*":""),5)):i.createCommentVNode("",!0)]),append:i.withCtx(()=>[i.renderSlot(y.$slots,"append")]),_:3},8,["modelValue","input-class","input-style","style","readonly","mask","prefix","label","type","suffix","counter","maxlength","rules","placeholder"]),i.renderSlot(y.$slots,"bottom")]),_:3},8,["class","style"]),y.hint?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(`text-${y.hintOptions.position} text-${y.hintOptions.color} text-caption q-mt-xl q-pt-xl q-pl-sm`)},i.toDisplayString(y.hint),3)):i.createCommentVNode("",!0)],64))}}),Od={class:"ww-subtitle text-center q-mb-md text-grey-9",style:{"font-weight":"600"}},Ld=i.defineComponent({__name:"ControlLabel",props:{label:{}},setup(n){return(o,l)=>(i.openBlock(),i.createElementBlock("div",Od,i.toDisplayString(o.label),1))}}),Id={style:{"max-width":"400px"},class:"text-center"},Vd={style:{"font-size":"16px"}},Pd={style:{"font-size":"16px"}},Ol=mn(i.defineComponent({__name:"InputControl",props:i.mergeModels({control:{},innerLabel:{type:Boolean,default:!1}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const o=n,l=i.ref(null),u=i.computed(()=>{var f;return(f=o.control.controlType)==null?void 0:f.split("_")[1]}),s=i.useModel(n,"modelValue");return i.onMounted(()=>{var f;(f=l.value)==null||f.focus()}),(f,m)=>(i.openBlock(),i.createElementBlock("div",Id,[!f.innerLabel&&f.control.label?(i.openBlock(),i.createBlock(Ld,{key:0,label:f.control.label},null,8,["label"])):i.createCommentVNode("",!0),i.createVNode(Md,{modelValue:s.value,"onUpdate:modelValue":m[0]||(m[0]=g=>s.value=g),width:"250px",mask:u.value==="number"?"###.###.###.###.###":void 0,label:f.innerLabel?f.control.label:void 0,inputStyle:{textAlign:(u.value==="number","center")},ref_key:"inputRef",ref:l},i.createSlots({_:2},[f.control.prefix?{name:"prepend",fn:i.withCtx(()=>[i.createElementVNode("span",Vd,i.toDisplayString(f.control.prefix),1)]),key:"0"}:void 0,f.control.suffix?{name:"append",fn:i.withCtx(()=>[i.createElementVNode("span",Pd,i.toDisplayString(f.control.suffix),1)]),key:"1"}:void 0]),1032,["modelValue","mask","label","inputStyle"])]))}}),[["__scopeId","data-v-8f5284d3"]]);function Ll(n,o){const l=n.style;for(const u in o)l[u]=o[u]}function $d(n){if(n==null)return;if(typeof n=="string")try{return document.querySelector(n)||void 0}catch{return}const o=i.unref(n);if(o)return o.$el||o}function ou(n,o){if(n==null||n.contains(o)===!0)return!0;for(let l=n.nextElementSibling;l!==null;l=l.nextElementSibling)if(l.contains(o))return!0;return!1}function Fd(n,o=250){let l=!1,u;return function(){return l===!1&&(l=!0,setTimeout(()=>{l=!1},o),u=n.apply(this,arguments)),u}}function au(n,o,l,u){l.modifiers.stop===!0&&Kt(n);const s=l.modifiers.color;let f=l.modifiers.center;f=f===!0||u===!0;const m=document.createElement("span"),g=document.createElement("span"),x=Fa(n),{left:A,top:v,width:C,height:k}=o.getBoundingClientRect(),y=Math.sqrt(C*C+k*k),B=y/2,U=`${(C-y)/2}px`,q=f?U:`${x.left-A-B}px`,W=`${(k-y)/2}px`,D=f?W:`${x.top-v-B}px`;g.className="q-ripple__inner",Ll(g,{height:`${y}px`,width:`${y}px`,transform:`translate3d(${q},${D},0) scale3d(.2,.2,1)`,opacity:0}),m.className=`q-ripple${s?" text-"+s:""}`,m.setAttribute("dir","ltr"),m.appendChild(g),o.appendChild(m);const $=()=>{m.remove(),clearTimeout(Z)};l.abort.push($);let Z=setTimeout(()=>{g.classList.add("q-ripple__inner--enter"),g.style.transform=`translate3d(${U},${W},0) scale3d(1,1,1)`,g.style.opacity=.2,Z=setTimeout(()=>{g.classList.remove("q-ripple__inner--enter"),g.classList.add("q-ripple__inner--leave"),g.style.opacity=0,Z=setTimeout(()=>{m.remove(),l.abort.splice(l.abort.indexOf($),1)},275)},250)},50)}function uu(n,{modifiers:o,value:l,arg:u}){const s=Object.assign({},n.cfg.ripple,o,l);n.modifiers={early:s.early===!0,stop:s.stop===!0,center:s.center===!0,color:s.color||u,keyCodes:[].concat(s.keyCodes||13)}}const su=Ea({name:"ripple",beforeMount(n,o){const l=o.instance.$.appContext.config.globalProperties.$q.config||{};if(l.ripple===!1)return;const u={cfg:l,enabled:o.value!==!1,modifiers:{},abort:[],start(s){u.enabled===!0&&s.qSkipRipple!==!0&&s.type===(u.modifiers.early===!0?"pointerdown":"click")&&au(s,n,u,s.qKeyEvent===!0)},keystart:Fd(s=>{u.enabled===!0&&s.qSkipRipple!==!0&&Mn(s,u.modifiers.keyCodes)===!0&&s.type===`key${u.modifiers.early===!0?"down":"up"}`&&au(s,n,u,!0)},300)};uu(u,o),n.__qripple=u,kl(u,"main",[[n,"pointerdown","start","passive"],[n,"click","start","passive"],[n,"keydown","keystart","passive"],[n,"keyup","keystart","passive"]])},updated(n,o){if(o.oldValue!==o.value){const l=n.__qripple;l!==void 0&&(l.enabled=o.value!==!1,l.enabled===!0&&Object(o.value)===o.value&&uu(l,o))}},beforeUnmount(n){const o=n.__qripple;o!==void 0&&(o.abort.forEach(l=>{l()}),Na(o,"main"),delete n._qripple)}}),cu={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},Nd=Object.keys(cu),Dd={align:{type:String,validator:n=>Nd.includes(n)}};function zd(n){return i.computed(()=>{const o=n.align===void 0?n.vertical===!0?"stretch":"left":n.align;return`${n.vertical===!0?"items":"justify"}-${cu[o]}`})}function fu(n){return n?n.aliasOf?n.aliasOf.path:n.path:""}function du(n,o){return(n.aliasOf||n)===(o.aliasOf||o)}function Ud(n,o){for(const l in o){const u=o[l],s=n[l];if(typeof u=="string"){if(u!==s)return!1}else if(Array.isArray(s)===!1||s.length!==u.length||u.some((f,m)=>f!==s[m]))return!1}return!0}function hu(n,o){return Array.isArray(o)===!0?n.length===o.length&&n.every((l,u)=>l===o[u]):n.length===1&&n[0]===o}function Wd(n,o){return Array.isArray(n)===!0?hu(n,o):Array.isArray(o)===!0?hu(o,n):n===o}function Hd(n,o){if(Object.keys(n).length!==Object.keys(o).length)return!1;for(const l in n)if(Wd(n[l],o[l])===!1)return!1;return!0}const mu={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},Kd={...mu,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function gu({fallbackTag:n,useDisableForRouterLinkProps:o=!0}={}){const l=i.getCurrentInstance(),{props:u,proxy:s,emit:f}=l,m=qa(l),g=i.computed(()=>u.disable!==!0&&u.href!==void 0),x=o===!0?i.computed(()=>m===!0&&u.disable!==!0&&g.value!==!0&&u.to!==void 0&&u.to!==null&&u.to!==""):i.computed(()=>m===!0&&g.value!==!0&&u.to!==void 0&&u.to!==null&&u.to!==""),A=i.computed(()=>x.value===!0?D(u.to):null),v=i.computed(()=>A.value!==null),C=i.computed(()=>g.value===!0||v.value===!0),k=i.computed(()=>u.type==="a"||C.value===!0?"a":u.tag||n||"div"),y=i.computed(()=>g.value===!0?{href:u.href,target:u.target}:v.value===!0?{href:A.value.href,target:u.target}:{}),B=i.computed(()=>{if(v.value===!1)return-1;const{matched:K}=A.value,{length:Q}=K,G=K[Q-1];if(G===void 0)return-1;const le=s.$route.matched;if(le.length===0)return-1;const V=le.findIndex(du.bind(null,G));if(V!==-1)return V;const N=fu(K[Q-2]);return Q>1&&fu(G)===N&&le[le.length-1].path!==N?le.findIndex(du.bind(null,K[Q-2])):V}),U=i.computed(()=>v.value===!0&&B.value!==-1&&Ud(s.$route.params,A.value.params)),q=i.computed(()=>U.value===!0&&B.value===s.$route.matched.length-1&&Hd(s.$route.params,A.value.params)),W=i.computed(()=>v.value===!0?q.value===!0?` ${u.exactActiveClass} ${u.activeClass}`:u.exact===!0?"":U.value===!0?` ${u.activeClass}`:"":"");function D(K){try{return s.$router.resolve(K)}catch{}return null}function $(K,{returnRouterError:Q,to:G=u.to,replace:le=u.replace}={}){if(u.disable===!0)return K.preventDefault(),Promise.resolve(!1);if(K.metaKey||K.altKey||K.ctrlKey||K.shiftKey||K.button!==void 0&&K.button!==0||u.target==="_blank")return Promise.resolve(!1);K.preventDefault();const V=s.$router[le===!0?"replace":"push"](G);return Q===!0?V:V.then(()=>{}).catch(()=>{})}function Z(K){if(v.value===!0){const Q=G=>$(K,G);f("click",K,Q),K.defaultPrevented!==!0&&Q()}else f("click",K)}return{hasRouterLink:v,hasHrefLink:g,hasLink:C,linkTag:k,resolvedLink:A,linkIsActive:U,linkIsExactActive:q,linkClass:W,linkAttrs:y,getLink:D,navigateToRouterLink:$,navigateOnClick:Z}}const pu={none:0,xs:4,sm:8,md:16,lg:24,xl:32},Gd={xs:8,sm:10,md:14,lg:20,xl:24},Qd=["button","submit","reset"],Yd=/[^\s]\/[^\s]/,Zd=["flat","outline","push","unelevated"];function Xd(n,o){return n.flat===!0?"flat":n.outline===!0?"outline":n.push===!0?"push":n.unelevated===!0?"unelevated":o}const jd={...{...ri,...mu,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...Zd.reduce((n,o)=>(n[o]=Boolean)&&n,{}),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:{...Dd.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},round:Boolean};function Jd(n){const o=ii(n,Gd),l=zd(n),{hasRouterLink:u,hasLink:s,linkTag:f,linkAttrs:m,navigateOnClick:g}=gu({fallbackTag:"button"}),x=i.computed(()=>{const q=n.fab===!1&&n.fabMini===!1?o.value:{};return n.padding!==void 0?Object.assign({},q,{padding:n.padding.split(/\s+/).map(W=>W in pu?pu[W]+"px":W).join(" "),minWidth:"0",minHeight:"0"}):q}),A=i.computed(()=>n.rounded===!0||n.fab===!0||n.fabMini===!0),v=i.computed(()=>n.disable!==!0&&n.loading!==!0),C=i.computed(()=>v.value===!0?n.tabindex||0:-1),k=i.computed(()=>Xd(n,"standard")),y=i.computed(()=>{const q={tabindex:C.value};return s.value===!0?Object.assign(q,m.value):Qd.includes(n.type)===!0&&(q.type=n.type),f.value==="a"?(n.disable===!0?q["aria-disabled"]="true":q.href===void 0&&(q.role="button"),u.value!==!0&&Yd.test(n.type)===!0&&(q.type=n.type)):n.disable===!0&&(q.disabled="",q["aria-disabled"]="true"),n.loading===!0&&n.percentage!==void 0&&Object.assign(q,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":n.percentage}),q}),B=i.computed(()=>{let q;n.color!==void 0?n.flat===!0||n.outline===!0?q=`text-${n.textColor||n.color}`:q=`bg-${n.color} text-${n.textColor||"white"}`:n.textColor&&(q=`text-${n.textColor}`);const W=n.round===!0?"round":`rectangle${A.value===!0?" q-btn--rounded":n.square===!0?" q-btn--square":""}`;return`q-btn--${k.value} q-btn--${W}`+(q!==void 0?" "+q:"")+(v.value===!0?" q-btn--actionable q-focusable q-hoverable":n.disable===!0?" disabled":"")+(n.fab===!0?" q-btn--fab":n.fabMini===!0?" q-btn--fab-mini":"")+(n.noCaps===!0?" q-btn--no-uppercase":"")+(n.dense===!0?" q-btn--dense":"")+(n.stretch===!0?" no-border-radius self-stretch":"")+(n.glossy===!0?" glossy":"")+(n.square?" q-btn--square":"")}),U=i.computed(()=>l.value+(n.stack===!0?" column":" row")+(n.noWrap===!0?" no-wrap text-no-wrap":"")+(n.loading===!0?" q-btn__content--hidden":""));return{classes:B,style:x,innerClasses:U,attributes:y,hasLink:s,linkTag:f,navigateOnClick:g,isActionable:v}}const{passiveCapture:Et}=st;let tr=null,nr=null,rr=null;const ir=Ze({name:"QBtn",props:{...jd,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(n,{slots:o,emit:l}){const{proxy:u}=i.getCurrentInstance(),{classes:s,style:f,innerClasses:m,attributes:g,hasLink:x,linkTag:A,navigateOnClick:v,isActionable:C}=Jd(n),k=i.ref(null),y=i.ref(null);let B=null,U,q=null;const W=i.computed(()=>n.label!==void 0&&n.label!==null&&n.label!==""),D=i.computed(()=>n.disable===!0||n.ripple===!1?!1:{keyCodes:x.value===!0?[13,32]:[13],...n.ripple===!0?{}:n.ripple}),$=i.computed(()=>({center:n.round})),Z=i.computed(()=>{const P=Math.max(0,Math.min(100,n.percentage));return P>0?{transition:"transform 0.6s",transform:`translateX(${P-100}%)`}:{}}),K=i.computed(()=>{if(n.loading===!0)return{onMousedown:te,onTouchstart:te,onClick:te,onKeydown:te,onKeyup:te};if(C.value===!0){const P={onClick:G,onKeydown:le,onMousedown:N};if(u.$q.platform.has.touch===!0){const ae=n.onTouchstart!==void 0?"":"Passive";P[`onTouchstart${ae}`]=V}return P}return{onClick:Ke}}),Q=i.computed(()=>({ref:k,class:"q-btn q-btn-item non-selectable no-outline "+s.value,style:f.value,...g.value,...K.value}));function G(P){if(k.value!==null){if(P!==void 0){if(P.defaultPrevented===!0)return;const ae=document.activeElement;if(n.type==="submit"&&ae!==document.body&&k.value.contains(ae)===!1&&ae.contains(k.value)===!1){k.value.focus();const ue=()=>{document.removeEventListener("keydown",Ke,!0),document.removeEventListener("keyup",ue,Et),k.value!==null&&k.value.removeEventListener("blur",ue,Et)};document.addEventListener("keydown",Ke,!0),document.addEventListener("keyup",ue,Et),k.value.addEventListener("blur",ue,Et)}}v(P)}}function le(P){k.value!==null&&(l("keydown",P),Mn(P,[13,32])===!0&&nr!==k.value&&(nr!==null&&E(),P.defaultPrevented!==!0&&(k.value.focus(),nr=k.value,k.value.classList.add("q-btn--active"),document.addEventListener("keyup",X,!0),k.value.addEventListener("blur",X,Et)),Ke(P)))}function V(P){k.value!==null&&(l("touchstart",P),P.defaultPrevented!==!0&&(tr!==k.value&&(tr!==null&&E(),tr=k.value,B=P.target,B.addEventListener("touchcancel",X,Et),B.addEventListener("touchend",X,Et)),U=!0,q!==null&&clearTimeout(q),q=setTimeout(()=>{q=null,U=!1},200)))}function N(P){k.value!==null&&(P.qSkipRipple=U===!0,l("mousedown",P),P.defaultPrevented!==!0&&rr!==k.value&&(rr!==null&&E(),rr=k.value,k.value.classList.add("q-btn--active"),document.addEventListener("mouseup",X,Et)))}function X(P){if(k.value!==null&&!(P!==void 0&&P.type==="blur"&&document.activeElement===k.value)){if(P!==void 0&&P.type==="keyup"){if(nr===k.value&&Mn(P,[13,32])===!0){const ae=new MouseEvent("click",P);ae.qKeyEvent=!0,P.defaultPrevented===!0&&It(ae),P.cancelBubble===!0&&Kt(ae),k.value.dispatchEvent(ae),Ke(P),P.qKeyEvent=!0}l("keyup",P)}E()}}function E(P){const ae=y.value;P!==!0&&(tr===k.value||rr===k.value)&&ae!==null&&ae!==document.activeElement&&(ae.setAttribute("tabindex",-1),ae.focus()),tr===k.value&&(B!==null&&(B.removeEventListener("touchcancel",X,Et),B.removeEventListener("touchend",X,Et)),tr=B=null),rr===k.value&&(document.removeEventListener("mouseup",X,Et),rr=null),nr===k.value&&(document.removeEventListener("keyup",X,!0),k.value!==null&&k.value.removeEventListener("blur",X,Et),nr=null),k.value!==null&&k.value.classList.remove("q-btn--active")}function te(P){Ke(P),P.qSkipRipple=!0}return i.onBeforeUnmount(()=>{E(!0)}),Object.assign(u,{click:P=>{C.value===!0&&G(P)}}),()=>{let P=[];n.icon!==void 0&&P.push(i.h(vt,{name:n.icon,left:n.stack!==!0&&W.value===!0,role:"img"})),W.value===!0&&P.push(i.h("span",{class:"block"},[n.label])),P=Rn(o.default,P),n.iconRight!==void 0&&n.round===!1&&P.push(i.h(vt,{name:n.iconRight,right:n.stack!==!0&&W.value===!0,role:"img"}));const ae=[i.h("span",{class:"q-focus-helper",ref:y})];return n.loading===!0&&n.percentage!==void 0&&ae.push(i.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(n.darkPercentage===!0?" q-btn__progress--dark":"")},[i.h("span",{class:"q-btn__progress-indicator fit block",style:Z.value})])),ae.push(i.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+m.value},P)),n.loading!==null&&ae.push(i.h(i.Transition,{name:"q-transition--fade"},()=>n.loading===!0?[i.h("span",{key:"loading",class:"absolute-full flex flex-center"},o.loading!==void 0?o.loading():[i.h(wl)])]:null)),i.withDirectives(i.h(A.value,Q.value,ae),[[su,D.value,void 0,$.value]])}}}),vu=n=>(i.pushScopeId("data-v-3bcb795a"),n=n(),i.popScopeId(),n),eh={class:"buttons-container"},th={class:"lt-md"},nh={class:"row justify-between q-my-md q-px-md"},rh=vu(()=>i.createElementVNode("span",{class:"text-black"},"Atrás",-1)),ih={key:1},lh=vu(()=>i.createElementVNode("span",{class:"text-black"},"Siguiente",-1)),oh=mn(i.defineComponent({__name:"NavigationButtons",props:{currentStep:{},stepsCount:{},nextDisabled:{type:Boolean}},emits:["prev","next"],setup(n){const o=n,l=i.computed(()=>o.currentStep+1);return(u,s)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",eh,[l.value>1?(i.openBlock(),i.createBlock(ir,{key:0,style:{position:"absolute",left:"25px",cursor:"pointer"},size:"26px",color:"white","text-color":"white",class:"gt-sm",onClick:s[0]||(s[0]=f=>u.$emit("prev")),flat:""},{default:i.withCtx(()=>[i.createVNode(vt,{name:"arrow_back_ios",color:"info"})]),_:1})):i.createCommentVNode("",!0),l.value!==u.stepsCount?(i.openBlock(),i.createBlock(ir,{key:1,style:{position:"absolute",right:"25px",cursor:"pointer"},size:"26px",color:"white","text-color":"white",class:"gt-sm",onClick:s[1]||(s[1]=f=>u.$emit("next")),disable:u.nextDisabled,flat:""},{default:i.withCtx(()=>[i.createVNode(vt,{name:"arrow_forward_ios",color:"info"})]),_:1},8,["disable"])):i.createCommentVNode("",!0)]),i.createElementVNode("div",th,[i.createElementVNode("div",nh,[l.value>1&&l.value<u.stepsCount?(i.openBlock(),i.createBlock(ir,{key:0,color:"info",class:"q-px-md-xl q-py-sm q-mr-sm win-btn win-btn-primary",onClick:s[2]||(s[2]=f=>u.$emit("prev")),flat:"","no-caps":""},{default:i.withCtx(()=>[rh]),_:1})):(i.openBlock(),i.createElementBlock("div",ih)),l.value<u.stepsCount?(i.openBlock(),i.createBlock(ir,{key:2,color:"info",class:"q-px-xl q-py-sm q-ml-sm win-btn win-btn-primary",onClick:s[3]||(s[3]=f=>u.$emit("next")),disable:u.nextDisabled,flat:"","no-caps":""},{default:i.withCtx(()=>[lh]),_:1},8,["disable"])):i.createCommentVNode("",!0)])])],64))}}),[["__scopeId","data-v-3bcb795a"]]),ah=Ze({name:"QField",inheritAttrs:!1,props:{...ci,tag:{type:String,default:"label"}},emits:Bl,setup(){return ql(Rl({tagProp:!0}))}}),uh={xs:8,sm:10,md:14,lg:20,xl:24},sh=Ze({name:"QChip",props:{...Jn,...ri,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(n,{slots:o,emit:l}){const{proxy:{$q:u}}=i.getCurrentInstance(),s=er(n,u),f=ii(n,uh),m=i.computed(()=>n.selected===!0||n.icon!==void 0),g=i.computed(()=>n.selected===!0?n.iconSelected||u.iconSet.chip.selected:n.icon),x=i.computed(()=>n.iconRemove||u.iconSet.chip.remove),A=i.computed(()=>n.disable===!1&&(n.clickable===!0||n.selected!==null)),v=i.computed(()=>{const q=n.outline===!0&&n.color||n.textColor;return"q-chip row inline no-wrap items-center"+(n.outline===!1&&n.color!==void 0?` bg-${n.color}`:"")+(q?` text-${q} q-chip--colored`:"")+(n.disable===!0?" disabled":"")+(n.dense===!0?" q-chip--dense":"")+(n.outline===!0?" q-chip--outline":"")+(n.selected===!0?" q-chip--selected":"")+(A.value===!0?" q-chip--clickable cursor-pointer non-selectable q-hoverable":"")+(n.square===!0?" q-chip--square":"")+(s.value===!0?" q-chip--dark q-dark":"")}),C=i.computed(()=>{const q=n.disable===!0?{tabindex:-1,"aria-disabled":"true"}:{tabindex:n.tabindex||0},W={...q,role:"button","aria-hidden":"false","aria-label":n.removeAriaLabel||u.lang.label.remove};return{chip:q,remove:W}});function k(q){q.keyCode===13&&y(q)}function y(q){n.disable||(l("update:selected",!n.selected),l("click",q))}function B(q){(q.keyCode===void 0||q.keyCode===13)&&(Ke(q),n.disable===!1&&(l("update:modelValue",!1),l("remove")))}function U(){const q=[];A.value===!0&&q.push(i.h("div",{class:"q-focus-helper"})),m.value===!0&&q.push(i.h(vt,{class:"q-chip__icon q-chip__icon--left",name:g.value}));const W=n.label!==void 0?[i.h("div",{class:"ellipsis"},[n.label])]:void 0;return q.push(i.h("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},Pf(o.default,W))),n.iconRight&&q.push(i.h(vt,{class:"q-chip__icon q-chip__icon--right",name:n.iconRight})),n.removable===!0&&q.push(i.h(vt,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:x.value,...C.value.remove,onClick:B,onKeyup:B})),q}return()=>{if(n.modelValue===!1)return;const q={class:v.value,style:f.value};return A.value===!0&&Object.assign(q,C.value.chip,{onClick:y,onKeyup:k}),Ra("div",q,U(),"ripple",n.ripple!==!1&&n.disable!==!0,()=>[[su,n.ripple]])}}}),ch=Ze({name:"QItem",props:{...Jn,...Kd,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(n,{slots:o,emit:l}){const{proxy:{$q:u}}=i.getCurrentInstance(),s=er(n,u),{hasLink:f,linkAttrs:m,linkClass:g,linkTag:x,navigateOnClick:A}=gu(),v=i.ref(null),C=i.ref(null),k=i.computed(()=>n.clickable===!0||f.value===!0||n.tag==="label"),y=i.computed(()=>n.disable!==!0&&k.value===!0),B=i.computed(()=>"q-item q-item-type row no-wrap"+(n.dense===!0?" q-item--dense":"")+(s.value===!0?" q-item--dark":"")+(f.value===!0&&n.active===null?g.value:n.active===!0?` q-item--active${n.activeClass!==void 0?` ${n.activeClass}`:""}`:"")+(n.disable===!0?" disabled":"")+(y.value===!0?" q-item--clickable q-link cursor-pointer "+(n.manualFocus===!0?"q-manual-focusable":"q-focusable q-hoverable")+(n.focused===!0?" q-manual-focusable--focused":""):"")),U=i.computed(()=>n.insetLevel===void 0?null:{["padding"+(u.lang.rtl===!0?"Right":"Left")]:16+n.insetLevel*56+"px"});function q($){y.value===!0&&(C.value!==null&&($.qKeyEvent!==!0&&document.activeElement===v.value?C.value.focus():document.activeElement===C.value&&v.value.focus()),A($))}function W($){if(y.value===!0&&Mn($,[13,32])===!0){Ke($),$.qKeyEvent=!0;const Z=new MouseEvent("click",$);Z.qKeyEvent=!0,v.value.dispatchEvent(Z)}l("keyup",$)}function D(){const $=Vf(o.default,[]);return y.value===!0&&$.unshift(i.h("div",{class:"q-focus-helper",tabindex:-1,ref:C})),$}return()=>{const $={ref:v,class:B.value,style:U.value,role:"listitem",onClick:q,onKeyup:W};return y.value===!0?($.tabindex=n.tabindex||"0",Object.assign($,m.value)):k.value===!0&&($["aria-disabled"]="true"),i.h(x.value,$,D())}}}),fh=Ze({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(n,{slots:o}){const l=i.computed(()=>`q-item__section column q-item__section--${n.avatar===!0||n.side===!0||n.thumbnail===!0?"side":"main"}`+(n.top===!0?" q-item__section--top justify-start":" justify-center")+(n.avatar===!0?" q-item__section--avatar":"")+(n.thumbnail===!0?" q-item__section--thumbnail":"")+(n.noWrap===!0?" q-item__section--nowrap":""));return()=>i.h("div",{class:l.value},pt(o.default))}}),dh=Ze({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(n,{slots:o}){const l=i.computed(()=>parseInt(n.lines,10)),u=i.computed(()=>"q-item__label"+(n.overline===!0?" q-item__label--overline text-overline":"")+(n.caption===!0?" q-item__label--caption text-caption":"")+(n.header===!0?" q-item__label--header":"")+(l.value===1?" ellipsis":"")),s=i.computed(()=>n.lines!==void 0&&l.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":l.value}:null);return()=>i.h("div",{style:s.value,class:u.value},pt(o.default))}});function hh(){if(window.getSelection!==void 0){const n=window.getSelection();n.empty!==void 0?n.empty():n.removeAllRanges!==void 0&&(n.removeAllRanges(),bl.is.mobile!==!0&&n.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}const mh={...{target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},contextMenu:Boolean};function gh({showing:n,avoidEmit:o,configureAnchorEl:l}){const{props:u,proxy:s,emit:f}=i.getCurrentInstance(),m=i.ref(null);let g=null;function x(y){return m.value===null?!1:y===void 0||y.touches===void 0||y.touches.length<=1}const A={};l===void 0&&(Object.assign(A,{hide(y){s.hide(y)},toggle(y){s.toggle(y),y.qAnchorHandled=!0},toggleKey(y){Mn(y,13)===!0&&A.toggle(y)},contextClick(y){s.hide(y),It(y),i.nextTick(()=>{s.show(y),y.qAnchorHandled=!0})},prevent:It,mobileTouch(y){if(A.mobileCleanup(y),x(y)!==!0)return;s.hide(y),m.value.classList.add("non-selectable");const B=y.target;kl(A,"anchor",[[B,"touchmove","mobileCleanup","passive"],[B,"touchend","mobileCleanup","passive"],[B,"touchcancel","mobileCleanup","passive"],[m.value,"contextmenu","prevent","notPassive"]]),g=setTimeout(()=>{g=null,s.show(y),y.qAnchorHandled=!0},300)},mobileCleanup(y){m.value.classList.remove("non-selectable"),g!==null&&(clearTimeout(g),g=null),n.value===!0&&y!==void 0&&hh()}}),l=function(y=u.contextMenu){if(u.noParentEvent===!0||m.value===null)return;let B;y===!0?s.$q.platform.is.mobile===!0?B=[[m.value,"touchstart","mobileTouch","passive"]]:B=[[m.value,"mousedown","hide","passive"],[m.value,"contextmenu","contextClick","notPassive"]]:B=[[m.value,"click","toggle","passive"],[m.value,"keyup","toggleKey","passive"]],kl(A,"anchor",B)});function v(){Na(A,"anchor")}function C(y){for(m.value=y;m.value.classList.contains("q-anchor--skip");)m.value=m.value.parentNode;l()}function k(){if(u.target===!1||u.target===""||s.$el.parentNode===null)m.value=null;else if(u.target===!0)C(s.$el.parentNode);else{let y=u.target;if(typeof u.target=="string")try{y=document.querySelector(u.target)}catch{y=void 0}y!=null?(m.value=y.$el||y,l()):(m.value=null,console.error(`Anchor: target "${u.target}" not found`))}}return i.watch(()=>u.contextMenu,y=>{m.value!==null&&(v(),l(y))}),i.watch(()=>u.target,()=>{m.value!==null&&v(),k()}),i.watch(()=>u.noParentEvent,y=>{m.value!==null&&(y===!0?v():l())}),i.onMounted(()=>{k(),o!==!0&&u.modelValue===!0&&m.value===null&&f("update:modelValue",!1)}),i.onBeforeUnmount(()=>{g!==null&&clearTimeout(g),v()}),{anchorEl:m,canShow:x,anchorEvents:A}}function ph(n,o){const l=i.ref(null);let u;function s(g,x){const A=`${x!==void 0?"add":"remove"}EventListener`,v=x!==void 0?x:u;g!==window&&g[A]("scroll",v,st.passive),window[A]("scroll",v,st.passive),u=x}function f(){l.value!==null&&(s(l.value),l.value=null)}const m=i.watch(()=>n.noParentEvent,()=>{l.value!==null&&(f(),o())});return i.onBeforeUnmount(m),{localScrollTarget:l,unconfigureScrollTarget:f,changeScrollEvent:s}}const _u={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},bu=["beforeShow","show","beforeHide","hide"];function yu({showing:n,canShow:o,hideOnRouteChange:l,handleShow:u,handleHide:s,processOnMount:f}){const m=i.getCurrentInstance(),{props:g,emit:x,proxy:A}=m;let v;function C(D){n.value===!0?B(D):k(D)}function k(D){if(g.disable===!0||D!==void 0&&D.qAnchorHandled===!0||o!==void 0&&o(D)!==!0)return;const $=g["onUpdate:modelValue"]!==void 0;$===!0&&(x("update:modelValue",!0),v=D,i.nextTick(()=>{v===D&&(v=void 0)})),(g.modelValue===null||$===!1)&&y(D)}function y(D){n.value!==!0&&(n.value=!0,x("beforeShow",D),u!==void 0?u(D):x("show",D))}function B(D){if(g.disable===!0)return;const $=g["onUpdate:modelValue"]!==void 0;$===!0&&(x("update:modelValue",!1),v=D,i.nextTick(()=>{v===D&&(v=void 0)})),(g.modelValue===null||$===!1)&&U(D)}function U(D){n.value!==!1&&(n.value=!1,x("beforeHide",D),s!==void 0?s(D):x("hide",D))}function q(D){g.disable===!0&&D===!0?g["onUpdate:modelValue"]!==void 0&&x("update:modelValue",!1):D===!0!==n.value&&(D===!0?y:U)(v)}i.watch(()=>g.modelValue,q),l!==void 0&&qa(m)===!0&&i.watch(()=>A.$route.fullPath,()=>{l.value===!0&&n.value===!0&&B()}),f===!0&&i.onMounted(()=>{q(g.modelValue)});const W={show:k,hide:B,toggle:C};return Object.assign(A,W),W}const wu={};let vh=1,_h=document.body;function bh(n,o){const l=document.createElement("div");if(l.id=o!==void 0?`q-portal--${o}--${vh++}`:n,wu.globalNodes!==void 0){const u=wu.globalNodes.class;u!==void 0&&(l.className=u)}return _h.appendChild(l),l}function yh(n){n.remove()}const Br=[];function wh(n,o){do{if(n.$options.name==="QMenu"){if(n.hide(o),n.$props.separateClosePopup===!0)return Sl(n)}else if(n.__qPortal===!0){const l=Sl(n);return l!==void 0&&l.$options.name==="QPopupProxy"?(n.hide(o),l):n}n=Sl(n)}while(n!=null)}const Sh=Ze({name:"QPortal",setup(n,{slots:o}){return()=>o.default()}});function xh(n){for(n=n.parent;n!=null;){if(n.type.name==="QGlobalDialog")return!0;if(n.type.name==="QDialog"||n.type.name==="QMenu")return!1;n=n.parent}return!1}function Su(n,o,l,u){const s=i.ref(!1),f=i.ref(!1);let m=null;const g={},x=u==="dialog"&&xh(n);function A(C){if(C===!0){eu(g),f.value=!0;return}f.value=!1,s.value===!1&&(x===!1&&m===null&&(m=bh(!1,u)),s.value=!0,Br.push(n.proxy),Sd(g))}function v(C){if(f.value=!1,C!==!0)return;eu(g),s.value=!1;const k=Br.indexOf(n.proxy);k!==-1&&Br.splice(k,1),m!==null&&(yh(m),m=null)}return i.onUnmounted(()=>{v(!0)}),n.proxy.__qPortal=!0,ni(n.proxy,"contentEl",()=>o.value),{showPortal:A,hidePortal:v,portalIsActive:s,portalIsAccessible:f,renderPortal:()=>x===!0?l():s.value===!0?[i.h(i.Teleport,{to:m},i.h(Sh,l))]:void 0}}const xu={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function Cu(n,o=()=>{},l=()=>{}){return{transitionProps:i.computed(()=>{const u=`q-transition--${n.transitionShow||o()}`,s=`q-transition--${n.transitionHide||l()}`;return{appear:!0,enterFromClass:`${u}-enter-from`,enterActiveClass:`${u}-enter-active`,enterToClass:`${u}-enter-to`,leaveFromClass:`${s}-leave-from`,leaveActiveClass:`${s}-leave-active`,leaveToClass:`${s}-leave-to`}}),transitionStyle:i.computed(()=>`--q-transition-duration: ${n.transitionDuration}ms`)}}function ku(){let n;const o=i.getCurrentInstance();function l(){n=void 0}return i.onDeactivated(l),i.onBeforeUnmount(l),{removeTick:l,registerTick(u){n=u,i.nextTick(()=>{n===u&&(Er(o)===!1&&n(),n=void 0)})}}}const Ch=[Element,String],kh=[null,document,document.body,document.scrollingElement,document.documentElement];function Eh(n,o){let l=$d(o);if(l===void 0){if(n==null)return window;l=n.closest(".scroll,.scroll-y,.overflow-auto")}return kh.includes(l)?window:l}function Th(n){return n===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:n.scrollTop}function Ah(n){return n===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:n.scrollLeft}let hi;function Bh(){if(hi!==void 0)return hi;const n=document.createElement("p"),o=document.createElement("div");Ll(n,{width:"100%",height:"200px"}),Ll(o,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),o.appendChild(n),document.body.appendChild(o);const l=n.offsetWidth;o.style.overflow="scroll";let u=n.offsetWidth;return l===u&&(u=o.clientWidth),o.remove(),hi=l-u,hi}function Rh(n,o=!0){return!n||n.nodeType!==Node.ELEMENT_NODE?!1:o?n.scrollHeight>n.clientHeight&&(n.classList.contains("scroll")||n.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(n)["overflow-y"])):n.scrollWidth>n.clientWidth&&(n.classList.contains("scroll")||n.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(n)["overflow-x"]))}const On=[];let lr;function qh(n){lr=n.keyCode===27}function Mh(){lr===!0&&(lr=!1)}function Oh(n){lr===!0&&(lr=!1,Mn(n,27)===!0&&On[On.length-1](n))}function Eu(n){window[n]("keydown",qh),window[n]("blur",Mh),window[n]("keyup",Oh),lr=!1}function Tu(n){gt.is.desktop===!0&&(On.push(n),On.length===1&&Eu("addEventListener"))}function mi(n){const o=On.indexOf(n);o!==-1&&(On.splice(o,1),On.length===0&&Eu("removeEventListener"))}const Ln=[];function Au(n){Ln[Ln.length-1](n)}function Bu(n){gt.is.desktop===!0&&(Ln.push(n),Ln.length===1&&document.body.addEventListener("focusin",Au))}function Il(n){const o=Ln.indexOf(n);o!==-1&&(Ln.splice(o,1),Ln.length===0&&document.body.removeEventListener("focusin",Au))}const{notPassiveCapture:gi}=st,In=[];function pi(n){const o=n.target;if(o===void 0||o.nodeType===8||o.classList.contains("no-pointer-events")===!0)return;let l=Br.length-1;for(;l>=0;){const u=Br[l].$;if(u.type.name==="QTooltip"){l--;continue}if(u.type.name!=="QDialog")break;if(u.props.seamless!==!0)return;l--}for(let u=In.length-1;u>=0;u--){const s=In[u];if((s.anchorEl.value===null||s.anchorEl.value.contains(o)===!1)&&(o===document.body||s.innerRef.value!==null&&s.innerRef.value.contains(o)===!1))n.qClickOutside=!0,s.onClickOutside(n);else return}}function Lh(n){In.push(n),In.length===1&&(document.addEventListener("mousedown",pi,gi),document.addEventListener("touchstart",pi,gi))}function Ru(n){const o=In.findIndex(l=>l===n);o!==-1&&(In.splice(o,1),In.length===0&&(document.removeEventListener("mousedown",pi,gi),document.removeEventListener("touchstart",pi,gi)))}let qu,Mu;function Ou(n){const o=n.split(" ");return o.length!==2?!1:["top","center","bottom"].includes(o[0])!==!0?(console.error("Anchor/Self position must start with one of top/center/bottom"),!1):["left","middle","right","start","end"].includes(o[1])!==!0?(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1):!0}function Ih(n){return n?!(n.length!==2||typeof n[0]!="number"||typeof n[1]!="number"):!0}const Vl={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(n=>{Vl[`${n}#ltr`]=n,Vl[`${n}#rtl`]=n});function Lu(n,o){const l=n.split(" ");return{vertical:l[0],horizontal:Vl[`${l[1]}#${o===!0?"rtl":"ltr"}`]}}function Vh(n,o){let{top:l,left:u,right:s,bottom:f,width:m,height:g}=n.getBoundingClientRect();return o!==void 0&&(l-=o[1],u-=o[0],f+=o[1],s+=o[0],m+=o[0],g+=o[1]),{top:l,bottom:f,height:g,left:u,right:s,width:m,middle:u+(s-u)/2,center:l+(f-l)/2}}function Ph(n,o,l){let{top:u,left:s}=n.getBoundingClientRect();return u+=o.top,s+=o.left,l!==void 0&&(u+=l[1],s+=l[0]),{top:u,bottom:u+1,height:1,left:s,right:s+1,width:1,middle:s,center:u}}function $h(n,o){return{top:0,center:o/2,bottom:o,left:0,middle:n/2,right:n}}function Iu(n,o,l,u){return{top:n[l.vertical]-o[u.vertical],left:n[l.horizontal]-o[u.horizontal]}}function Vu(n,o=0){if(n.targetEl===null||n.anchorEl===null||o>5)return;if(n.targetEl.offsetHeight===0||n.targetEl.offsetWidth===0){setTimeout(()=>{Vu(n,o+1)},10);return}const{targetEl:l,offset:u,anchorEl:s,anchorOrigin:f,selfOrigin:m,absoluteOffset:g,fit:x,cover:A,maxHeight:v,maxWidth:C}=n;if(gt.is.ios===!0&&window.visualViewport!==void 0){const Q=document.body.style,{offsetLeft:G,offsetTop:le}=window.visualViewport;G!==qu&&(Q.setProperty("--q-pe-left",G+"px"),qu=G),le!==Mu&&(Q.setProperty("--q-pe-top",le+"px"),Mu=le)}const{scrollLeft:k,scrollTop:y}=l,B=g===void 0?Vh(s,A===!0?[0,0]:u):Ph(s,g,u);Object.assign(l.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:C||"100vw",maxHeight:v||"100vh",visibility:"visible"});const{offsetWidth:U,offsetHeight:q}=l,{elWidth:W,elHeight:D}=x===!0||A===!0?{elWidth:Math.max(B.width,U),elHeight:A===!0?Math.max(B.height,q):q}:{elWidth:U,elHeight:q};let $={maxWidth:C,maxHeight:v};(x===!0||A===!0)&&($.minWidth=B.width+"px",A===!0&&($.minHeight=B.height+"px")),Object.assign(l.style,$);const Z=$h(W,D);let K=Iu(B,Z,f,m);if(g===void 0||u===void 0)Pl(K,B,Z,f,m);else{const{top:Q,left:G}=K;Pl(K,B,Z,f,m);let le=!1;if(K.top!==Q){le=!0;const V=2*u[1];B.center=B.top-=V,B.bottom-=V+2}if(K.left!==G){le=!0;const V=2*u[0];B.middle=B.left-=V,B.right-=V+2}le===!0&&(K=Iu(B,Z,f,m),Pl(K,B,Z,f,m))}$={top:K.top+"px",left:K.left+"px"},K.maxHeight!==void 0&&($.maxHeight=K.maxHeight+"px",B.height>K.maxHeight&&($.minHeight=$.maxHeight)),K.maxWidth!==void 0&&($.maxWidth=K.maxWidth+"px",B.width>K.maxWidth&&($.minWidth=$.maxWidth)),Object.assign(l.style,$),l.scrollTop!==y&&(l.scrollTop=y),l.scrollLeft!==k&&(l.scrollLeft=k)}function Pl(n,o,l,u,s){const f=l.bottom,m=l.right,g=Bh(),x=window.innerHeight-g,A=document.body.clientWidth;if(n.top<0||n.top+f>x)if(s.vertical==="center")n.top=o[u.vertical]>x/2?Math.max(0,x-f):0,n.maxHeight=Math.min(f,x);else if(o[u.vertical]>x/2){const v=Math.min(x,u.vertical==="center"?o.center:u.vertical===s.vertical?o.bottom:o.top);n.maxHeight=Math.min(f,v),n.top=Math.max(0,v-f)}else n.top=Math.max(0,u.vertical==="center"?o.center:u.vertical===s.vertical?o.top:o.bottom),n.maxHeight=Math.min(f,x-n.top);if(n.left<0||n.left+m>A)if(n.maxWidth=Math.min(m,A),s.horizontal==="middle")n.left=o[u.horizontal]>A/2?Math.max(0,A-m):0;else if(o[u.horizontal]>A/2){const v=Math.min(A,u.horizontal==="middle"?o.middle:u.horizontal===s.horizontal?o.right:o.left);n.maxWidth=Math.min(m,v),n.left=Math.max(0,v-n.maxWidth)}else n.left=Math.max(0,u.horizontal==="middle"?o.middle:u.horizontal===s.horizontal?o.left:o.right),n.maxWidth=Math.min(m,A-n.left)}const Fh=Ze({name:"QMenu",inheritAttrs:!1,props:{...mh,..._u,...Jn,...xu,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:Ou},self:{type:String,validator:Ou},offset:{type:Array,validator:Ih},scrollTarget:Ch,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...bu,"click","escapeKey"],setup(n,{slots:o,emit:l,attrs:u}){let s=null,f,m,g;const x=i.getCurrentInstance(),{proxy:A}=x,{$q:v}=A,C=i.ref(null),k=i.ref(!1),y=i.computed(()=>n.persistent!==!0&&n.noRouteDismiss!==!0),B=er(n,v),{registerTick:U,removeTick:q}=ku(),{registerTimeout:W}=li(),{transitionProps:D,transitionStyle:$}=Cu(n),{localScrollTarget:Z,changeScrollEvent:K,unconfigureScrollTarget:Q}=ph(n,ie),{anchorEl:G,canShow:le}=gh({showing:k}),{hide:V}=yu({showing:k,canShow:le,handleShow:ge,handleHide:R,hideOnRouteChange:y,processOnMount:!0}),{showPortal:N,hidePortal:X,renderPortal:E}=Su(x,C,Ee,"menu"),te={anchorEl:G,innerRef:C,onClickOutside(Y){if(n.persistent!==!0&&k.value===!0)return V(Y),(Y.type==="touchstart"||Y.target.classList.contains("q-dialog__backdrop"))&&Ke(Y),!0}},P=i.computed(()=>Lu(n.anchor||(n.cover===!0?"center middle":"bottom start"),v.lang.rtl)),ae=i.computed(()=>n.cover===!0?P.value:Lu(n.self||"top start",v.lang.rtl)),ue=i.computed(()=>(n.square===!0?" q-menu--square":"")+(B.value===!0?" q-menu--dark q-dark":"")),fe=i.computed(()=>n.autoClose===!0?{onClick:ve}:{}),H=i.computed(()=>k.value===!0&&n.persistent!==!0);i.watch(H,Y=>{Y===!0?(Tu(z),Lh(te)):(mi(z),Ru(te))});function se(){si(()=>{let Y=C.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 ge(Y){if(s=n.noRefocus===!1?document.activeElement:null,Bu(_e),N(),ie(),f=void 0,Y!==void 0&&(n.touchPosition||n.contextMenu)){const $e=Fa(Y);if($e.left!==void 0){const{top:lt,left:Pt}=G.value.getBoundingClientRect();f={left:$e.left-Pt,top:$e.top-lt}}}m===void 0&&(m=i.watch(()=>v.screen.width+"|"+v.screen.height+"|"+n.self+"|"+n.anchor+"|"+v.lang.rtl,ne)),n.noFocus!==!0&&document.activeElement.blur(),U(()=>{ne(),n.noFocus!==!0&&se()}),W(()=>{v.platform.is.ios===!0&&(g=n.autoClose,C.value.click()),ne(),N(!0),l("show",Y)},n.transitionDuration)}function R(Y){q(),X(),T(!0),s!==null&&(Y===void 0||Y.qClickOutside!==!0)&&(((Y&&Y.type.indexOf("key")===0?s.closest('[tabindex]:not([tabindex^="-"])'):void 0)||s).focus(),s=null),W(()=>{X(!0),l("hide",Y)},n.transitionDuration)}function T(Y){f=void 0,m!==void 0&&(m(),m=void 0),(Y===!0||k.value===!0)&&(Il(_e),Q(),Ru(te),mi(z)),Y!==!0&&(s=null)}function ie(){(G.value!==null||n.scrollTarget!==void 0)&&(Z.value=Eh(G.value,n.scrollTarget),K(Z.value,ne))}function ve(Y){g!==!0?(wh(A,Y),l("click",Y)):g=!1}function _e(Y){H.value===!0&&n.noFocus!==!0&&ou(C.value,Y.target)!==!0&&se()}function z(Y){l("escapeKey"),V(Y)}function ne(){Vu({targetEl:C.value,offset:n.offset,anchorEl:G.value,anchorOrigin:P.value,selfOrigin:ae.value,absoluteOffset:f,fit:n.fit,cover:n.cover,maxHeight:n.maxHeight,maxWidth:n.maxWidth})}function Ee(){return i.h(i.Transition,D.value,()=>k.value===!0?i.h("div",{role:"menu",...u,ref:C,tabindex:-1,class:["q-menu q-position-engine scroll"+ue.value,u.class],style:[u.style,$.value],...fe.value},pt(o.default)):null)}return i.onBeforeUnmount(T),Object.assign(A,{focus:se,updatePosition:ne}),E}});function Nh(n,o,l){function u(){}return i.onBeforeUnmount(()=>{n.value===!0&&void 0}),{removeFromHistory:u,addToHistory(){}}}let Rr=0,$l,Fl,qr,Nl=!1,Pu,$u,Fu,Vn=null;function Dh(n){zh(n)&&Ke(n)}function zh(n){if(n.target===document.body||n.target.classList.contains("q-layout__backdrop"))return!0;const o=ud(n),l=n.shiftKey&&!n.deltaX,u=!l&&Math.abs(n.deltaX)<=Math.abs(n.deltaY),s=l||u?n.deltaY:n.deltaX;for(let f=0;f<o.length;f++){const m=o[f];if(Rh(m,u))return u?s<0&&m.scrollTop===0?!0:s>0&&m.scrollTop+m.clientHeight===m.scrollHeight:s<0&&m.scrollLeft===0?!0:s>0&&m.scrollLeft+m.clientWidth===m.scrollWidth}return!0}function Nu(n){n.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function vi(n){Nl!==!0&&(Nl=!0,requestAnimationFrame(()=>{Nl=!1;const{height:o}=n.target,{clientHeight:l,scrollTop:u}=document.scrollingElement;(qr===void 0||o!==window.innerHeight)&&(qr=l-o,document.scrollingElement.scrollTop=u),u>qr&&(document.scrollingElement.scrollTop-=Math.ceil((u-qr)/8))}))}function Du(n){const o=document.body,l=window.visualViewport!==void 0;if(n==="add"){const{overflowY:u,overflowX:s}=window.getComputedStyle(o);$l=Ah(window),Fl=Th(window),Pu=o.style.left,$u=o.style.top,Fu=window.location.href,o.style.left=`-${$l}px`,o.style.top=`-${Fl}px`,s!=="hidden"&&(s==="scroll"||o.scrollWidth>window.innerWidth)&&o.classList.add("q-body--force-scrollbar-x"),u!=="hidden"&&(u==="scroll"||o.scrollHeight>window.innerHeight)&&o.classList.add("q-body--force-scrollbar-y"),o.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,gt.is.ios===!0&&(l===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",vi,st.passiveCapture),window.visualViewport.addEventListener("scroll",vi,st.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",Nu,st.passiveCapture))}gt.is.desktop===!0&>.is.mac===!0&&window[`${n}EventListener`]("wheel",Dh,st.notPassive),n==="remove"&&(gt.is.ios===!0&&(l===!0?(window.visualViewport.removeEventListener("resize",vi,st.passiveCapture),window.visualViewport.removeEventListener("scroll",vi,st.passiveCapture)):window.removeEventListener("scroll",Nu,st.passiveCapture)),o.classList.remove("q-body--prevent-scroll"),o.classList.remove("q-body--force-scrollbar-x"),o.classList.remove("q-body--force-scrollbar-y"),document.qScrollPrevented=!1,o.style.left=Pu,o.style.top=$u,window.location.href===Fu&&window.scrollTo($l,Fl),qr=void 0)}function Uh(n){let o="add";if(n===!0){if(Rr++,Vn!==null){clearTimeout(Vn),Vn=null;return}if(Rr>1)return}else{if(Rr===0||(Rr--,Rr>0))return;if(o="remove",gt.is.ios===!0&>.is.nativeMobile===!0){Vn!==null&&clearTimeout(Vn),Vn=setTimeout(()=>{Du(o),Vn=null},100);return}}Du(o)}function Wh(){let n;return{preventBodyScroll(o){o!==n&&(n!==void 0||o===!0)&&(n=o,Uh(o))}}}let _i=0;const Hh={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"},zu={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},Kh=Ze({name:"QDialog",inheritAttrs:!1,props:{..._u,...xu,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:n=>["standard","top","bottom","left","right"].includes(n)}},emits:[...bu,"shake","click","escapeKey"],setup(n,{slots:o,emit:l,attrs:u}){const s=i.getCurrentInstance(),f=i.ref(null),m=i.ref(!1),g=i.ref(!1);let x=null,A=null,v,C;const k=i.computed(()=>n.persistent!==!0&&n.noRouteDismiss!==!0&&n.seamless!==!0),{preventBodyScroll:y}=Wh(),{registerTimeout:B}=li(),{registerTick:U,removeTick:q}=ku(),{transitionProps:W,transitionStyle:D}=Cu(n,()=>zu[n.position][0],()=>zu[n.position][1]),$=i.computed(()=>D.value+(n.backdropFilter!==void 0?`;backdrop-filter:${n.backdropFilter};-webkit-backdrop-filter:${n.backdropFilter}`:"")),{showPortal:Z,hidePortal:K,portalIsAccessible:Q,renderPortal:G}=Su(s,f,_e,"dialog"),{hide:le}=yu({showing:m,hideOnRouteChange:k,handleShow:ae,handleHide:ue,processOnMount:!0}),{addToHistory:V,removeFromHistory:N}=Nh(m),X=i.computed(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${n.maximized===!0?"maximized":"minimized"} q-dialog__inner--${n.position} ${Hh[n.position]}`+(g.value===!0?" q-dialog__inner--animating":"")+(n.fullWidth===!0?" q-dialog__inner--fullwidth":"")+(n.fullHeight===!0?" q-dialog__inner--fullheight":"")+(n.square===!0?" q-dialog__inner--square":"")),E=i.computed(()=>m.value===!0&&n.seamless!==!0),te=i.computed(()=>n.autoClose===!0?{onClick:T}:{}),P=i.computed(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${E.value===!0?"modal":"seamless"}`,u.class]);i.watch(()=>n.maximized,z=>{m.value===!0&&R(z)}),i.watch(E,z=>{y(z),z===!0?(Bu(ve),Tu(se)):(Il(ve),mi(se))});function ae(z){V(),A=n.noRefocus===!1&&document.activeElement!==null?document.activeElement:null,R(n.maximized),Z(),g.value=!0,n.noFocus!==!0?(document.activeElement!==null&&document.activeElement.blur(),U(fe)):q(),B(()=>{if(s.proxy.$q.platform.is.ios===!0){if(n.seamless!==!0&&document.activeElement){const{top:ne,bottom:Ee}=document.activeElement.getBoundingClientRect(),{innerHeight:Y}=window,$e=window.visualViewport!==void 0?window.visualViewport.height:Y;ne>0&&Ee>$e/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-$e,Ee>=Y?1/0:Math.ceil(document.scrollingElement.scrollTop+Ee-$e/2))),document.activeElement.scrollIntoView()}C=!0,f.value.click(),C=!1}Z(!0),g.value=!1,l("show",z)},n.transitionDuration)}function ue(z){q(),N(),ge(!0),g.value=!0,K(),A!==null&&(((z&&z.type.indexOf("key")===0?A.closest('[tabindex]:not([tabindex^="-"])'):void 0)||A).focus(),A=null),B(()=>{K(!0),g.value=!1,l("hide",z)},n.transitionDuration)}function fe(z){si(()=>{let ne=f.value;if(ne!==null){if(z!==void 0){const Ee=ne.querySelector(z);if(Ee!==null){Ee.focus({preventScroll:!0});return}}ne.contains(document.activeElement)!==!0&&(ne=ne.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||ne.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||ne.querySelector("[autofocus], [data-autofocus]")||ne,ne.focus({preventScroll:!0}))}})}function H(z){z&&typeof z.focus=="function"?z.focus({preventScroll:!0}):fe(),l("shake");const ne=f.value;ne!==null&&(ne.classList.remove("q-animate--scale"),ne.classList.add("q-animate--scale"),x!==null&&clearTimeout(x),x=setTimeout(()=>{x=null,f.value!==null&&(ne.classList.remove("q-animate--scale"),fe())},170))}function se(){n.seamless!==!0&&(n.persistent===!0||n.noEscDismiss===!0?n.maximized!==!0&&n.noShake!==!0&&H():(l("escapeKey"),le()))}function ge(z){x!==null&&(clearTimeout(x),x=null),(z===!0||m.value===!0)&&(R(!1),n.seamless!==!0&&(y(!1),Il(ve),mi(se))),z!==!0&&(A=null)}function R(z){z===!0?v!==!0&&(_i<1&&document.body.classList.add("q-body--dialog"),_i++,v=!0):v===!0&&(_i<2&&document.body.classList.remove("q-body--dialog"),_i--,v=!1)}function T(z){C!==!0&&(le(z),l("click",z))}function ie(z){n.persistent!==!0&&n.noBackdropDismiss!==!0?le(z):n.noShake!==!0&&H()}function ve(z){n.allowFocusOutside!==!0&&Q.value===!0&&ou(f.value,z.target)!==!0&&fe('[tabindex]:not([tabindex="-1"])')}Object.assign(s.proxy,{focus:fe,shake:H,__updateRefocusTarget(z){A=z||null}}),i.onBeforeUnmount(ge);function _e(){return i.h("div",{role:"dialog","aria-modal":E.value===!0?"true":"false",...u,class:P.value},[i.h(i.Transition,{name:"q-transition--fade",appear:!0},()=>E.value===!0?i.h("div",{class:"q-dialog__backdrop fixed-full",style:$.value,"aria-hidden":"true",tabindex:-1,onClick:ie}):null),i.h(i.Transition,W.value,()=>m.value===!0?i.h("div",{ref:f,class:X.value,style:D.value,tabindex:-1,...te.value},pt(o.default)):null)])}return G}});let bi=!1;{const n=document.createElement("div");n.setAttribute("dir","rtl"),Object.assign(n.style,{width:"1px",height:"1px",overflow:"auto"});const o=document.createElement("div");Object.assign(o.style,{width:"1000px",height:"1px"}),document.body.appendChild(n),n.appendChild(o),n.scrollLeft=-1e3,bi=n.scrollLeft>=0,n.remove()}const Vt=1e3,Gh=["start","center","end","start-force","center-force","end-force"],Uu=Array.prototype.filter,Qh=window.getComputedStyle(document.body).overflowAnchor===void 0?ad:function(n,o){n!==null&&(n._qOverflowAnimationFrame!==void 0&&cancelAnimationFrame(n._qOverflowAnimationFrame),n._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(n===null)return;n._qOverflowAnimationFrame=void 0;const l=n.children||[];Uu.call(l,s=>s.dataset&&s.dataset.qVsAnchor!==void 0).forEach(s=>{delete s.dataset.qVsAnchor});const u=l[o];u&&u.dataset&&(u.dataset.qVsAnchor="")}))};function or(n,o){return n+o}function Dl(n,o,l,u,s,f,m,g){const x=n===window?document.scrollingElement||document.documentElement:n,A=s===!0?"offsetWidth":"offsetHeight",v={scrollStart:0,scrollViewSize:-m-g,scrollMaxSize:0,offsetStart:-m,offsetEnd:-g};if(s===!0?(n===window?(v.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,v.scrollViewSize+=document.documentElement.clientWidth):(v.scrollStart=x.scrollLeft,v.scrollViewSize+=x.clientWidth),v.scrollMaxSize=x.scrollWidth,f===!0&&(v.scrollStart=(bi===!0?v.scrollMaxSize-v.scrollViewSize:0)-v.scrollStart)):(n===window?(v.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,v.scrollViewSize+=document.documentElement.clientHeight):(v.scrollStart=x.scrollTop,v.scrollViewSize+=x.clientHeight),v.scrollMaxSize=x.scrollHeight),l!==null)for(let C=l.previousElementSibling;C!==null;C=C.previousElementSibling)C.classList.contains("q-virtual-scroll--skip")===!1&&(v.offsetStart+=C[A]);if(u!==null)for(let C=u.nextElementSibling;C!==null;C=C.nextElementSibling)C.classList.contains("q-virtual-scroll--skip")===!1&&(v.offsetEnd+=C[A]);if(o!==n){const C=x.getBoundingClientRect(),k=o.getBoundingClientRect();s===!0?(v.offsetStart+=k.left-C.left,v.offsetEnd-=k.width):(v.offsetStart+=k.top-C.top,v.offsetEnd-=k.height),n!==window&&(v.offsetStart+=v.scrollStart),v.offsetEnd+=v.scrollMaxSize-v.offsetStart}return v}function Wu(n,o,l,u){o==="end"&&(o=(n===window?document.body:n)[l===!0?"scrollWidth":"scrollHeight"]),n===window?l===!0?(u===!0&&(o=(bi===!0?document.body.scrollWidth-document.documentElement.clientWidth:0)-o),window.scrollTo(o,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,o):l===!0?(u===!0&&(o=(bi===!0?n.scrollWidth-n.offsetWidth:0)-o),n.scrollLeft=o):n.scrollTop=o}function Mr(n,o,l,u){if(l>=u)return 0;const s=o.length,f=Math.floor(l/Vt),m=Math.floor((u-1)/Vt)+1;let g=n.slice(f,m).reduce(or,0);return l%Vt!==0&&(g-=o.slice(f*Vt,l).reduce(or,0)),u%Vt!==0&&u!==s&&(g-=o.slice(u,m*Vt).reduce(or,0)),g}const Hu={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,...{virtualScrollSliceSize:{type:[Number,String],default:10},virtualScrollSliceRatioBefore:{type:[Number,String],default:1},virtualScrollSliceRatioAfter:{type:[Number,String],default:1},virtualScrollItemSize:{type:[Number,String],default:24},virtualScrollStickySizeStart:{type:[Number,String],default:0},virtualScrollStickySizeEnd:{type:[Number,String],default:0},tableColspan:[Number,String]}};function Yh({virtualScrollLength:n,getVirtualScrollTarget:o,getVirtualScrollEl:l,virtualScrollItemSizeComputed:u}){const s=i.getCurrentInstance(),{props:f,emit:m,proxy:g}=s,{$q:x}=g;let A,v,C,k=[],y;const B=i.ref(0),U=i.ref(0),q=i.ref({}),W=i.ref(null),D=i.ref(null),$=i.ref(null),Z=i.ref({from:0,to:0}),K=i.computed(()=>f.tableColspan!==void 0?f.tableColspan:100);u===void 0&&(u=i.computed(()=>f.virtualScrollItemSize));const Q=i.computed(()=>u.value+";"+f.virtualScrollHorizontal),G=i.computed(()=>Q.value+";"+f.virtualScrollSliceRatioBefore+";"+f.virtualScrollSliceRatioAfter);i.watch(G,()=>{ue()}),i.watch(Q,le);function le(){ae(v,!0)}function V(R){ae(R===void 0?v:R)}function N(R,T){const ie=o();if(ie==null||ie.nodeType===8)return;const ve=Dl(ie,l(),W.value,D.value,f.virtualScrollHorizontal,x.lang.rtl,f.virtualScrollStickySizeStart,f.virtualScrollStickySizeEnd);C!==ve.scrollViewSize&&ue(ve.scrollViewSize),E(ie,ve,Math.min(n.value-1,Math.max(0,parseInt(R,10)||0)),0,Gh.indexOf(T)!==-1?T:v!==-1&&R>v?"end":"start")}function X(){const R=o();if(R==null||R.nodeType===8)return;const T=Dl(R,l(),W.value,D.value,f.virtualScrollHorizontal,x.lang.rtl,f.virtualScrollStickySizeStart,f.virtualScrollStickySizeEnd),ie=n.value-1,ve=T.scrollMaxSize-T.offsetStart-T.offsetEnd-U.value;if(A===T.scrollStart)return;if(T.scrollMaxSize<=0){E(R,T,0,0);return}C!==T.scrollViewSize&&ue(T.scrollViewSize),te(Z.value.from);const _e=Math.floor(T.scrollMaxSize-Math.max(T.scrollViewSize,T.offsetEnd)-Math.min(y[ie],T.scrollViewSize/2));if(_e>0&&Math.ceil(T.scrollStart)>=_e){E(R,T,ie,T.scrollMaxSize-T.offsetEnd-k.reduce(or,0));return}let z=0,ne=T.scrollStart-T.offsetStart,Ee=ne;if(ne<=ve&&ne+T.scrollViewSize>=B.value)ne-=B.value,z=Z.value.from,Ee=ne;else for(let Y=0;ne>=k[Y]&&z<ie;Y++)ne-=k[Y],z+=Vt;for(;ne>0&&z<ie;)ne-=y[z],ne>-T.scrollViewSize?(z++,Ee=ne):Ee=y[z]+ne;E(R,T,z,Ee)}function E(R,T,ie,ve,_e){const z=typeof _e=="string"&&_e.indexOf("-force")!==-1,ne=z===!0?_e.replace("-force",""):_e,Ee=ne!==void 0?ne:"start";let Y=Math.max(0,ie-q.value[Ee]),$e=Y+q.value.total;$e>n.value&&($e=n.value,Y=Math.max(0,$e-q.value.total)),A=T.scrollStart;const lt=Y!==Z.value.from||$e!==Z.value.to;if(lt===!1&&ne===void 0){H(ie);return}const{activeElement:Pt}=document,_t=$.value;lt===!0&&_t!==null&&_t!==Pt&&_t.contains(Pt)===!0&&(_t.addEventListener("focusout",P),setTimeout(()=>{_t!==null&&_t.removeEventListener("focusout",P)})),Qh(_t,ie-Y);const nt=ne!==void 0?y.slice(Y,ie).reduce(or,0):0;if(lt===!0){const bt=$e>=Z.value.from&&Y<=Z.value.to?Z.value.to:$e;Z.value={from:Y,to:bt},B.value=Mr(k,y,0,Y),U.value=Mr(k,y,$e,n.value),requestAnimationFrame(()=>{Z.value.to!==$e&&A===T.scrollStart&&(Z.value={from:Z.value.from,to:$e},U.value=Mr(k,y,$e,n.value))})}requestAnimationFrame(()=>{if(A!==T.scrollStart)return;lt===!0&&te(Y);const bt=y.slice(Y,ie).reduce(or,0),Jt=bt+T.offsetStart+B.value,ct=Jt+y[ie];let gn=Jt+ve;if(ne!==void 0){const Or=bt-nt,$t=T.scrollStart+Or;gn=z!==!0&&$t<Jt&&ct<$t+T.scrollViewSize?$t:ne==="end"?ct-T.scrollViewSize:Jt-(ne==="start"?0:Math.round((T.scrollViewSize-y[ie])/2))}A=gn,Wu(R,gn,f.virtualScrollHorizontal,x.lang.rtl),H(ie)})}function te(R){const T=$.value;if(T){const ie=Uu.call(T.children,Y=>Y.classList&&Y.classList.contains("q-virtual-scroll--skip")===!1),ve=ie.length,_e=f.virtualScrollHorizontal===!0?Y=>Y.getBoundingClientRect().width:Y=>Y.offsetHeight;let z=R,ne,Ee;for(let Y=0;Y<ve;){for(ne=_e(ie[Y]),Y++;Y<ve&&ie[Y].classList.contains("q-virtual-scroll--with-prev")===!0;)ne+=_e(ie[Y]),Y++;Ee=ne-y[z],Ee!==0&&(y[z]+=Ee,k[Math.floor(z/Vt)]+=Ee),z++}}}function P(){$.value!==null&&$.value!==void 0&&$.value.focus()}function ae(R,T){const ie=1*u.value;(T===!0||Array.isArray(y)===!1)&&(y=[]);const ve=y.length;y.length=n.value;for(let z=n.value-1;z>=ve;z--)y[z]=ie;const _e=Math.floor((n.value-1)/Vt);k=[];for(let z=0;z<=_e;z++){let ne=0;const Ee=Math.min((z+1)*Vt,n.value);for(let Y=z*Vt;Y<Ee;Y++)ne+=y[Y];k.push(ne)}v=-1,A=void 0,B.value=Mr(k,y,0,Z.value.from),U.value=Mr(k,y,Z.value.to,n.value),R>=0?(te(Z.value.from),i.nextTick(()=>{N(R)})):se()}function ue(R){if(R===void 0&&typeof window<"u"){const ne=o();ne!=null&&ne.nodeType!==8&&(R=Dl(ne,l(),W.value,D.value,f.virtualScrollHorizontal,x.lang.rtl,f.virtualScrollStickySizeStart,f.virtualScrollStickySizeEnd).scrollViewSize)}C=R;const T=parseFloat(f.virtualScrollSliceRatioBefore)||0,ie=parseFloat(f.virtualScrollSliceRatioAfter)||0,ve=1+T+ie,_e=R===void 0||R<=0?1:Math.ceil(R/u.value),z=Math.max(1,_e,Math.ceil((f.virtualScrollSliceSize>0?f.virtualScrollSliceSize:10)/ve));q.value={total:Math.ceil(z*ve),start:Math.ceil(z*T),center:Math.ceil(z*(.5+T)),end:Math.ceil(z*(1+T)),view:_e}}function fe(R,T){const ie=f.virtualScrollHorizontal===!0?"width":"height",ve={["--q-virtual-scroll-item-"+ie]:u.value+"px"};return[R==="tbody"?i.h(R,{class:"q-virtual-scroll__padding",key:"before",ref:W},[i.h("tr",[i.h("td",{style:{[ie]:`${B.value}px`,...ve},colspan:K.value})])]):i.h(R,{class:"q-virtual-scroll__padding",key:"before",ref:W,style:{[ie]:`${B.value}px`,...ve}}),i.h(R,{class:"q-virtual-scroll__content",key:"content",ref:$,tabindex:-1},T.flat()),R==="tbody"?i.h(R,{class:"q-virtual-scroll__padding",key:"after",ref:D},[i.h("tr",[i.h("td",{style:{[ie]:`${U.value}px`,...ve},colspan:K.value})])]):i.h(R,{class:"q-virtual-scroll__padding",key:"after",ref:D,style:{[ie]:`${U.value}px`,...ve}})]}function H(R){v!==R&&(f.onVirtualScroll!==void 0&&m("virtualScroll",{index:R,from:Z.value.from,to:Z.value.to-1,direction:R<v?"decrease":"increase",ref:g}),v=R)}ue();const se=ja(X,x.platform.is.ios===!0?120:35);i.onBeforeMount(()=>{ue()});let ge=!1;return i.onDeactivated(()=>{ge=!0}),i.onActivated(()=>{if(ge!==!0)return;const R=o();A!==void 0&&R!==void 0&&R!==null&&R.nodeType!==8?Wu(R,A,f.virtualScrollHorizontal,x.lang.rtl):N(v)}),i.onBeforeUnmount(()=>{se.cancel()}),Object.assign(g,{scrollTo:N,reset:le,refresh:V}),{virtualScrollSliceRange:Z,virtualScrollSliceSizeComputed:q,setVirtualScrollSize:ue,onVirtualScrollEvt:se,localResetVirtualScroll:ae,padVirtualScroll:fe,scrollTo:N,reset:le,refresh:V}}function Ku(n,o,l){if(l<=o)return o;const u=l-o+1;let s=o+(n-o)%u;return s<o&&(s=u+s),s===0?0:s}const Gu=n=>["add","add-unique","toggle"].includes(n),Zh=".*+?^${}()|[]\\",Xh=Object.keys(ci),Qu=Ze({name:"QSelect",inheritAttrs:!1,props:{...Hu,...Cl,...ci,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:Gu},mapOptions:Boolean,emitValue: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:n=>["default","menu","dialog"].includes(n),default:"default"},virtualScrollItemSize:Hu.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...Bl,"add","remove","inputValue","keyup","keypress","keydown","popupShow","popupHide","filterAbort"],setup(n,{slots:o,emit:l}){const{proxy:u}=i.getCurrentInstance(),{$q:s}=u,f=i.ref(!1),m=i.ref(!1),g=i.ref(-1),x=i.ref(""),A=i.ref(!1),v=i.ref(!1);let C=null,k=null,y,B,U,q=null,W,D,$,Z;const K=i.ref(null),Q=i.ref(null),G=i.ref(null),le=i.ref(null),V=i.ref(null),N=$a(n),X=iu(Ei),E=i.computed(()=>Array.isArray(n.options)?n.options.length:0),te=i.computed(()=>n.virtualScrollItemSize===void 0?n.optionsDense===!0?24:48:n.virtualScrollItemSize),{virtualScrollSliceRange:P,virtualScrollSliceSizeComputed:ae,localResetVirtualScroll:ue,padVirtualScroll:fe,onVirtualScrollEvt:H,scrollTo:se,setVirtualScrollSize:ge}=Yh({virtualScrollLength:E,getVirtualScrollTarget:Ci,getVirtualScrollEl:Ir,virtualScrollItemSizeComputed:te}),R=Rl(),T=i.computed(()=>{const _=n.mapOptions===!0&&n.multiple!==!0,ee=n.modelValue!==void 0&&(n.modelValue!==null||_===!0)?n.multiple===!0&&Array.isArray(n.modelValue)?n.modelValue:[n.modelValue]:[];if(n.mapOptions===!0&&Array.isArray(n.options)===!0){const j=n.mapOptions===!0&&y!==void 0?y:[],me=ee.map(qe=>Lr(qe,j));return n.modelValue===null&&_===!0?me.filter(qe=>qe!==null):me}return ee}),ie=i.computed(()=>{const _={};return Xh.forEach(ee=>{const j=n[ee];j!==void 0&&(_[ee]=j)}),_}),ve=i.computed(()=>n.optionsDark===null?R.isDark.value:n.optionsDark),_e=i.computed(()=>Ar(T.value)),z=i.computed(()=>{let _="q-field__input q-placeholder col";return n.hideSelected===!0||T.value.length===0?[_,n.inputClass]:(_+=" q-field__input--padding",n.inputClass===void 0?_:[_,n.inputClass])}),ne=i.computed(()=>(n.virtualScrollHorizontal===!0?"q-virtual-scroll--horizontal":"")+(n.popupContentClass?" "+n.popupContentClass:"")),Ee=i.computed(()=>E.value===0),Y=i.computed(()=>T.value.map(_=>Ge.value(_)).join(", ")),$e=i.computed(()=>n.displayValue!==void 0?n.displayValue:Y.value),lt=i.computed(()=>n.optionsHtml===!0?()=>!0:_=>_!=null&&_.html===!0),Pt=i.computed(()=>n.displayValueHtml===!0||n.displayValue===void 0&&(n.optionsHtml===!0||T.value.some(lt.value))),_t=i.computed(()=>R.focused.value===!0?n.tabindex:-1),nt=i.computed(()=>{const _={tabindex:n.tabindex,role:"combobox","aria-label":n.label,"aria-readonly":n.readonly===!0?"true":"false","aria-autocomplete":n.useInput===!0?"list":"none","aria-expanded":f.value===!0?"true":"false","aria-controls":`${R.targetUid.value}_lb`};return g.value>=0&&(_["aria-activedescendant"]=`${R.targetUid.value}_${g.value}`),_}),bt=i.computed(()=>({id:`${R.targetUid.value}_lb`,role:"listbox","aria-multiselectable":n.multiple===!0?"true":"false"})),Jt=i.computed(()=>T.value.map((_,ee)=>({index:ee,opt:_,html:lt.value(_),selected:!0,removeAtIndex:pn,toggleOption:Nt,tabindex:_t.value}))),ct=i.computed(()=>{if(E.value===0)return[];const{from:_,to:ee}=P.value;return n.options.slice(_,ee).map((j,me)=>{const qe=Ft.value(j)===!0,Be=Fn(j)===!0,He=_+me,Ie={clickable:!0,active:Be,activeClass:$t.value,manualFocus:!0,focused:!1,disable:qe,tabindex:-1,dense:n.optionsDense,dark:ve.value,role:"option","aria-selected":Be===!0?"true":"false",id:`${R.targetUid.value}_${He}`,onClick:()=>{Nt(j)}};return qe!==!0&&(g.value===He&&(Ie.focused=!0),s.platform.is.desktop===!0&&(Ie.onMousemove=()=>{f.value===!0&&Gt(He)})),{index:He,opt:j,html:lt.value(j),label:Ge.value(j),selected:Ie.active,focused:Ie.focused,toggleOption:Nt,setOptionIndex:Gt,itemProps:Ie}})}),gn=i.computed(()=>n.dropdownIcon!==void 0?n.dropdownIcon:s.iconSet.arrow.dropdown),Or=i.computed(()=>n.optionsCover===!1&&n.outlined!==!0&&n.standout!==!0&&n.borderless!==!0&&n.rounded!==!0),$t=i.computed(()=>n.optionsSelectedClass!==void 0?n.optionsSelectedClass:n.color!==void 0?`text-${n.color}`:""),Ne=i.computed(()=>$n(n.optionValue,"value")),Ge=i.computed(()=>$n(n.optionLabel,"label")),Ft=i.computed(()=>$n(n.optionDisable,"disable")),ar=i.computed(()=>T.value.map(_=>Ne.value(_))),Pn=i.computed(()=>{const _={onInput:Ei,onChange:X,onKeydown:xi,onKeyup:wi,onKeypress:Si,onFocus:sr,onClick(ee){B===!0&&Kt(ee)}};return _.onCompositionstart=_.onCompositionupdate=_.onCompositionend=X,_});i.watch(T,_=>{y=_,n.useInput===!0&&n.fillInput===!0&&n.multiple!==!0&&R.innerLoading.value!==!0&&(m.value!==!0&&f.value!==!0||_e.value!==!0)&&(U!==!0&&nn(),(m.value===!0||f.value===!0)&&_n(""))},{immediate:!0}),i.watch(()=>n.fillInput,nn),i.watch(f,$r),i.watch(E,Jl);function yi(_){return n.emitValue===!0?Ne.value(_):_}function en(_){if(_!==-1&&_<T.value.length)if(n.multiple===!0){const ee=n.modelValue.slice();l("remove",{index:_,value:ee.splice(_,1)[0]}),l("update:modelValue",ee)}else l("update:modelValue",null)}function pn(_){en(_),R.focus()}function ur(_,ee){const j=yi(_);if(n.multiple!==!0){n.fillInput===!0&&Dn(Ge.value(_),!0,!0),l("update:modelValue",j);return}if(T.value.length===0){l("add",{index:0,value:j}),l("update:modelValue",n.multiple===!0?[j]:j);return}if(ee===!0&&Fn(_)===!0||n.maxValues!==void 0&&n.modelValue.length>=n.maxValues)return;const me=n.modelValue.slice();l("add",{index:me.length,value:j}),me.push(j),l("update:modelValue",me)}function Nt(_,ee){if(R.editable.value!==!0||_===void 0||Ft.value(_)===!0)return;const j=Ne.value(_);if(n.multiple!==!0){ee!==!0&&(Dn(n.fillInput===!0?Ge.value(_):"",!0,!0),tn()),Q.value!==null&&Q.value.focus(),(T.value.length===0||jt(Ne.value(T.value[0]),j)!==!0)&&l("update:modelValue",n.emitValue===!0?j:_);return}if((B!==!0||A.value===!0)&&R.focus(),sr(),T.value.length===0){const Be=n.emitValue===!0?j:_;l("add",{index:0,value:Be}),l("update:modelValue",n.multiple===!0?[Be]:Be);return}const me=n.modelValue.slice(),qe=ar.value.findIndex(Be=>jt(Be,j));if(qe!==-1)l("remove",{index:qe,value:me.splice(qe,1)[0]});else{if(n.maxValues!==void 0&&me.length>=n.maxValues)return;const Be=n.emitValue===!0?j:_;l("add",{index:me.length,value:Be}),me.push(Be)}l("update:modelValue",me)}function Gt(_){if(s.platform.is.desktop!==!0)return;const ee=_!==-1&&_<E.value?_:-1;g.value!==ee&&(g.value=ee)}function vn(_=1,ee){if(f.value===!0){let j=g.value;do j=Ku(j+_,-1,E.value-1);while(j!==-1&&j!==g.value&&Ft.value(n.options[j])===!0);g.value!==j&&(Gt(j),se(j),ee!==!0&&n.useInput===!0&&n.fillInput===!0&&Nn(j>=0?Ge.value(n.options[j]):W,!0))}}function Lr(_,ee){const j=me=>jt(Ne.value(me),_);return n.options.find(j)||ee.find(j)||_}function $n(_,ee){const j=_!==void 0?_:ee;return typeof j=="function"?j:me=>me!==null&&typeof me=="object"&&j in me?me[j]:me}function Fn(_){const ee=Ne.value(_);return ar.value.find(j=>jt(j,ee))!==void 0}function sr(_){n.useInput===!0&&Q.value!==null&&(_===void 0||Q.value===_.target&&_.target.value===Y.value)&&Q.value.select()}function cr(_){Mn(_,27)===!0&&f.value===!0&&(Kt(_),tn(),nn()),l("keyup",_)}function wi(_){const{value:ee}=_.target;if(_.keyCode!==void 0){cr(_);return}if(_.target.value="",C!==null&&(clearTimeout(C),C=null),k!==null&&(clearTimeout(k),k=null),nn(),typeof ee=="string"&&ee.length!==0){const j=ee.toLocaleLowerCase(),me=Be=>{const He=n.options.find(Ie=>Be.value(Ie).toLocaleLowerCase()===j);return He===void 0?!1:(T.value.indexOf(He)===-1?Nt(He):tn(),!0)},qe=Be=>{me(Ne)!==!0&&(me(Ge)===!0||Be===!0||_n(ee,!0,()=>qe(!0)))};qe()}else R.clearValue(_)}function Si(_){l("keypress",_)}function xi(_){if(l("keydown",_),Ml(_)===!0)return;const ee=x.value.length!==0&&(n.newValueMode!==void 0||n.onNewValue!==void 0),j=_.shiftKey!==!0&&n.multiple!==!0&&(g.value!==-1||ee===!0);if(_.keyCode===27){It(_);return}if(_.keyCode===9&&j===!1){bn();return}if(_.target===void 0||_.target.id!==R.targetUid.value||R.editable.value!==!0)return;if(_.keyCode===40&&R.innerLoading.value!==!0&&f.value===!1){Ke(_),yn();return}if(_.keyCode===8&&(n.useChips===!0||n.clearable===!0)&&n.hideSelected!==!0&&x.value.length===0){n.multiple===!0&&Array.isArray(n.modelValue)===!0?en(n.modelValue.length-1):n.multiple!==!0&&n.modelValue!==null&&l("update:modelValue",null);return}(_.keyCode===35||_.keyCode===36)&&(typeof x.value!="string"||x.value.length===0)&&(Ke(_),g.value=-1,vn(_.keyCode===36?1:-1,n.multiple)),(_.keyCode===33||_.keyCode===34)&&ae.value!==void 0&&(Ke(_),g.value=Math.max(-1,Math.min(E.value,g.value+(_.keyCode===33?-1:1)*ae.value.view)),vn(_.keyCode===33?1:-1,n.multiple)),(_.keyCode===38||_.keyCode===40)&&(Ke(_),vn(_.keyCode===38?-1:1,n.multiple));const me=E.value;if(($===void 0||Z<Date.now())&&($=""),me>0&&n.useInput!==!0&&_.key!==void 0&&_.key.length===1&&_.altKey===!1&&_.ctrlKey===!1&&_.metaKey===!1&&(_.keyCode!==32||$.length!==0)){f.value!==!0&&yn(_);const qe=_.key.toLocaleLowerCase(),Be=$.length===1&&$[0]===qe;Z=Date.now()+1500,Be===!1&&(Ke(_),$+=qe);const He=new RegExp("^"+$.split("").map(fr=>Zh.indexOf(fr)!==-1?"\\"+fr:fr).join(".*"),"i");let Ie=g.value;if(Be===!0||Ie<0||He.test(Ge.value(n.options[Ie]))!==!0)do Ie=Ku(Ie+1,-1,me-1);while(Ie!==g.value&&(Ft.value(n.options[Ie])===!0||He.test(Ge.value(n.options[Ie]))!==!0));g.value!==Ie&&i.nextTick(()=>{Gt(Ie),se(Ie),Ie>=0&&n.useInput===!0&&n.fillInput===!0&&Nn(Ge.value(n.options[Ie]),!0)});return}if(!(_.keyCode!==13&&(_.keyCode!==32||n.useInput===!0||$!=="")&&(_.keyCode!==9||j===!1))){if(_.keyCode!==9&&Ke(_),g.value!==-1&&g.value<me){Nt(n.options[g.value]);return}if(ee===!0){const qe=(Be,He)=>{if(He){if(Gu(He)!==!0)return}else He=n.newValueMode;if(Dn("",n.multiple!==!0,!0),Be==null)return;(He==="toggle"?Nt:ur)(Be,He==="add-unique"),n.multiple!==!0&&(Q.value!==null&&Q.value.focus(),tn())};if(n.onNewValue!==void 0?l("newValue",x.value,qe):qe(x.value),n.multiple!==!0)return}f.value===!0?bn():R.innerLoading.value!==!0&&yn()}}function Ir(){return B===!0?V.value:G.value!==null&&G.value.contentEl!==null?G.value.contentEl:void 0}function Ci(){return Ir()}function Wl(){return n.hideSelected===!0?[]:o["selected-item"]!==void 0?Jt.value.map(_=>o["selected-item"](_)).slice():o.selected!==void 0?[].concat(o.selected()):n.useChips===!0?Jt.value.map((_,ee)=>i.h(sh,{key:"option-"+ee,removable:R.editable.value===!0&&Ft.value(_.opt)!==!0,dense:!0,textColor:n.color,tabindex:_t.value,onRemove(){_.removeAtIndex(ee)}},()=>i.h("span",{class:"ellipsis",[_.html===!0?"innerHTML":"textContent"]:Ge.value(_.opt)}))):[i.h("span",{[Pt.value===!0?"innerHTML":"textContent"]:$e.value})]}function ki(){if(Ee.value===!0)return o["no-option"]!==void 0?o["no-option"]({inputValue:x.value}):void 0;const _=o.option!==void 0?o.option:j=>i.h(ch,{key:j.index,...j.itemProps},()=>i.h(fh,()=>i.h(dh,()=>i.h("span",{[j.html===!0?"innerHTML":"textContent"]:j.label}))));let ee=fe("div",ct.value.map(_));return o["before-options"]!==void 0&&(ee=o["before-options"]().concat(ee)),Rn(o["after-options"],ee)}function Hl(_,ee){const j=ee===!0?{...nt.value,...R.splitAttrs.attributes.value}:void 0,me={ref:ee===!0?Q:void 0,key:"i_t",class:z.value,style:n.inputStyle,value:x.value!==void 0?x.value:"",type:"search",...j,id:ee===!0?R.targetUid.value:void 0,maxlength:n.maxlength,autocomplete:n.autocomplete,"data-autofocus":_===!0||n.autofocus===!0||void 0,disabled:n.disable===!0,readonly:n.readonly===!0,...Pn.value};return _!==!0&&B===!0&&(Array.isArray(me.class)===!0?me.class=[...me.class,"no-pointer-events"]:me.class+=" no-pointer-events"),i.h("input",me)}function Ei(_){C!==null&&(clearTimeout(C),C=null),k!==null&&(clearTimeout(k),k=null),!(_&&_.target&&_.target.qComposing===!0)&&(Nn(_.target.value||""),U=!0,W=x.value,R.focused.value!==!0&&(B!==!0||A.value===!0)&&R.focus(),n.onFilter!==void 0&&(C=setTimeout(()=>{C=null,_n(x.value)},n.inputDebounce)))}function Nn(_,ee){x.value!==_&&(x.value=_,ee===!0||n.inputDebounce===0||n.inputDebounce==="0"?l("inputValue",_):k=setTimeout(()=>{k=null,l("inputValue",_)},n.inputDebounce))}function Dn(_,ee,j){U=j!==!0,n.useInput===!0&&(Nn(_,!0),(ee===!0||j!==!0)&&(W=_),ee!==!0&&_n(_))}function _n(_,ee,j){if(n.onFilter===void 0||ee!==!0&&R.focused.value!==!0)return;R.innerLoading.value===!0?l("filterAbort"):(R.innerLoading.value=!0,v.value=!0),_!==""&&n.multiple!==!0&&T.value.length!==0&&U!==!0&&_===Ge.value(T.value[0])&&(_="");const me=setTimeout(()=>{f.value===!0&&(f.value=!1)},10);q!==null&&clearTimeout(q),q=me,l("filter",_,(qe,Be)=>{(ee===!0||R.focused.value===!0)&&q===me&&(clearTimeout(q),typeof qe=="function"&&qe(),v.value=!1,i.nextTick(()=>{R.innerLoading.value=!1,R.editable.value===!0&&(ee===!0?f.value===!0&&tn():f.value===!0?$r(!0):f.value=!0),typeof Be=="function"&&i.nextTick(()=>{Be(u)}),typeof j=="function"&&i.nextTick(()=>{j(u)})}))},()=>{R.focused.value===!0&&q===me&&(clearTimeout(q),R.innerLoading.value=!1,v.value=!1),f.value===!0&&(f.value=!1)})}function Kl(){return i.h(Fh,{ref:G,class:ne.value,style:n.popupContentStyle,modelValue:f.value,fit:n.menuShrink!==!0,cover:n.optionsCover===!0&&Ee.value!==!0&&n.useInput!==!0,anchor:n.menuAnchor,self:n.menuSelf,offset:n.menuOffset,dark:ve.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,noRouteDismiss:n.popupNoRouteDismiss,square:Or.value,transitionShow:n.transitionShow,transitionHide:n.transitionHide,transitionDuration:n.transitionDuration,separateClosePopup:!0,...bt.value,onScrollPassive:H,onBeforeShow:Ai,onBeforeHide:Vr,onShow:Gl},ki)}function Vr(_){Bi(_),bn()}function Gl(){ge()}function Pr(_){Kt(_),Q.value!==null&&Q.value.focus(),A.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function Ql(_){Kt(_),i.nextTick(()=>{A.value=!1})}function Yl(){const _=[i.h(ah,{class:`col-auto ${R.fieldClass.value}`,...ie.value,for:R.targetUid.value,dark:ve.value,square:!0,loading:v.value,itemAligned:!1,filled:!0,stackLabel:x.value.length!==0,...R.splitAttrs.listeners.value,onFocus:Pr,onBlur:Ql},{...o,rawControl:()=>R.getControl(!0),before:void 0,after:void 0})];return f.value===!0&&_.push(i.h("div",{ref:V,class:ne.value+" scroll",style:n.popupContentStyle,...bt.value,onClick:It,onScrollPassive:H},ki())),i.h(Kh,{ref:le,modelValue:m.value,position:n.useInput===!0?"top":void 0,transitionShow:D,transitionHide:n.transitionHide,transitionDuration:n.transitionDuration,noRouteDismiss:n.popupNoRouteDismiss,onBeforeShow:Ai,onBeforeHide:Zl,onHide:Xl,onShow:jl},()=>i.h("div",{class:"q-select__dialog"+(ve.value===!0?" q-select__dialog--dark q-dark":"")+(A.value===!0?" q-select__dialog--focused":"")},_))}function Zl(_){Bi(_),le.value!==null&&le.value.__updateRefocusTarget(R.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),R.focused.value=!1}function Xl(_){tn(),R.focused.value===!1&&l("blur",_),nn()}function jl(){const _=document.activeElement;(_===null||_.id!==R.targetUid.value)&&Q.value!==null&&Q.value!==_&&Q.value.focus(),ge()}function bn(){m.value!==!0&&(g.value=-1,f.value===!0&&(f.value=!1),R.focused.value===!1&&(q!==null&&(clearTimeout(q),q=null),R.innerLoading.value===!0&&(l("filterAbort"),R.innerLoading.value=!1,v.value=!1)))}function yn(_){R.editable.value===!0&&(B===!0?(R.onControlFocusin(_),m.value=!0,i.nextTick(()=>{R.focus()})):R.focus(),n.onFilter!==void 0?_n(x.value):(Ee.value!==!0||o["no-option"]!==void 0)&&(f.value=!0))}function tn(){m.value=!1,bn()}function nn(){n.useInput===!0&&Dn(n.multiple!==!0&&n.fillInput===!0&&T.value.length!==0&&Ge.value(T.value[0])||"",!0,!0)}function $r(_){let ee=-1;if(_===!0){if(T.value.length!==0){const j=Ne.value(T.value[0]);ee=n.options.findIndex(me=>jt(Ne.value(me),j))}ue(ee)}Gt(ee)}function Jl(_,ee){f.value===!0&&R.innerLoading.value===!1&&(ue(-1,!0),i.nextTick(()=>{f.value===!0&&R.innerLoading.value===!1&&(_>ee?ue():$r(!0))}))}function Ti(){m.value===!1&&G.value!==null&&G.value.updatePosition()}function Ai(_){_!==void 0&&Kt(_),l("popupShow",_),R.hasPopupOpen=!0,R.onControlFocusin(_)}function Bi(_){_!==void 0&&Kt(_),l("popupHide",_),R.hasPopupOpen=!1,R.onControlFocusout(_)}function Ri(){B=s.platform.is.mobile!==!0&&n.behavior!=="dialog"?!1:n.behavior!=="menu"&&(n.useInput===!0?o["no-option"]!==void 0||n.onFilter!==void 0||Ee.value===!1:!0),D=s.platform.is.ios===!0&&B===!0&&n.useInput===!0?"fade":n.transitionShow}return i.onBeforeUpdate(Ri),i.onUpdated(Ti),Ri(),i.onBeforeUnmount(()=>{C!==null&&clearTimeout(C),k!==null&&clearTimeout(k)}),Object.assign(u,{showPopup:yn,hidePopup:tn,removeAtIndex:en,add:ur,toggleOption:Nt,getOptionIndex:()=>g.value,setOptionIndex:Gt,moveOptionSelection:vn,filter:_n,updateMenuPosition:Ti,updateInputValue:Dn,isOptionSelected:Fn,getEmittingOptionValue:yi,isOptionDisabled:(..._)=>Ft.value.apply(null,_)===!0,getOptionValue:(..._)=>Ne.value.apply(null,_),getOptionLabel:(..._)=>Ge.value.apply(null,_)}),Object.assign(R,{innerValue:T,fieldClass:i.computed(()=>`q-select q-field--auto-height q-select--with${n.useInput!==!0?"out":""}-input q-select--with${n.useChips!==!0?"out":""}-chips q-select--${n.multiple===!0?"multiple":"single"}`),inputRef:K,targetRef:Q,hasValue:_e,showPopup:yn,floatingLabel:i.computed(()=>n.hideSelected!==!0&&_e.value===!0||typeof x.value=="number"||x.value.length!==0||Ar(n.displayValue)),getControlChild:()=>{if(R.editable.value!==!1&&(m.value===!0||Ee.value!==!0||o["no-option"]!==void 0))return B===!0?Yl():Kl();R.hasPopupOpen===!0&&(R.hasPopupOpen=!1)},controlEvents:{onFocusin(_){R.onControlFocusin(_)},onFocusout(_){R.onControlFocusout(_,()=>{nn(),bn()})},onClick(_){if(It(_),B!==!0&&f.value===!0){bn(),Q.value!==null&&Q.value.focus();return}yn(_)}},getControl:_=>{const ee=Wl(),j=_===!0||m.value!==!0||B!==!0;if(n.useInput===!0)ee.push(Hl(_,j));else if(R.editable.value===!0){const qe=j===!0?nt.value:void 0;ee.push(i.h("input",{ref:j===!0?Q:void 0,key:"d_t",class:"q-select__focus-target",id:j===!0?R.targetUid.value:void 0,value:$e.value,readonly:!0,"data-autofocus":_===!0||n.autofocus===!0||void 0,...qe,onKeydown:xi,onKeyup:cr,onKeypress:Si})),j===!0&&typeof n.autocomplete=="string"&&n.autocomplete.length!==0&&ee.push(i.h("input",{class:"q-select__autocomplete-input",autocomplete:n.autocomplete,tabindex:-1,onKeyup:wi}))}if(N.value!==void 0&&n.disable!==!0&&ar.value.length!==0){const qe=ar.value.map(Be=>i.h("option",{value:Be,selected:!0}));ee.push(i.h("select",{class:"hidden",name:N.value,multiple:n.multiple},qe))}const me=n.useInput===!0||j!==!0?void 0:R.splitAttrs.attributes.value;return i.h("div",{class:"q-field__native row items-center",...me,...R.splitAttrs.listeners.value},ee)},getInnerAppend:()=>n.loading!==!0&&v.value!==!0&&n.hideDropdownIcon!==!0?[i.h(vt,{class:"q-select__dropdown-icon"+(f.value===!0?" rotate-180":""),name:gn.value})]:null}),ql(R)}}),jh=mn(i.defineComponent({__name:"SelectControl",props:i.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const o=i.ref([]),l=i.useModel(n,"modelValue"),u=n,s=i.ref(!1),f=i.computed(()=>u.control.customParams),m=i.ref([]),g=i.computed(()=>{var C;return((C=f.value)==null?void 0:C.collection)||null}),x=i.computed(()=>g.value?m.value:u.control.options),A=jn();i.watch(g,C=>{if(!C)return;const k=A.getCollection(g.value);if(k){m.value=k;return}s.value=!0},{immediate:!0});function v(C,k){if(C===""){k(()=>{o.value=Pe.cloneDeep(x.value)});return}k(()=>{const y=C.toLowerCase();o.value=(x.value||[]).filter(B=>B.toLowerCase().includes(y))})}return(C,k)=>{const y=i.resolveComponent("ControlLabel");return i.openBlock(),i.createElementBlock(i.Fragment,null,[C.control.label?(i.openBlock(),i.createBlock(y,{key:0,label:C.control.label},null,8,["label"])):i.createCommentVNode("",!0),i.createVNode(di,{class:"q-card win-card row items-center q-px-md"},{default:i.withCtx(()=>[i.createVNode(Qu,{borderless:"",label:C.control.label,modelValue:l.value,"onUpdate:modelValue":k[0]||(k[0]=B=>l.value=B),"emit-value":"","option-label":"label","map-options":"","use-input":"",clearable:"",onFilter:v,options:o.value,style:{minHeight:"70px",width:"300px",margin:"auto"}},null,8,["label","modelValue","options"])]),_:1})],64)}}}),[["__scopeId","data-v-fa1749f7"]]),Jh={class:"text-center",style:{width:"100%"}},em={class:"text-center text-weight-medium"},tm={class:"question-title"},nm=i.defineComponent({__name:"StepHeader",props:{formGroup:{},stepsCount:{}},setup(n){return(o,l)=>(i.openBlock(),i.createElementBlock("div",Jh,[i.createElementVNode("div",em,i.toDisplayString(o.formGroup.order+1)+"/"+i.toDisplayString(o.stepsCount),1),i.createElementVNode("div",tm,i.toDisplayString(o.formGroup.title||""),1)]))}});function rm(){return i.inject(pd)}function Yu(n,o){const{maxControlsPerGroup:l,notifyValidations:u}={...Sf,...o||{}},s=jn(),f=i.computed(()=>s.formSteps[n]),m=i.ref([]),g=i.ref([]),x=(y,B)=>{s.setControlValue(n,y);const U=m.value.find(D=>D.id===B);U&&(g.value=Cf(U));const q=v(y),W=C(y);(q||W)&&A()};function A(){const y=f.value.controls,B=[];Af(y).forEach(q=>{const W=q.controls;if(W.every($=>!vl.includes($.controlType))){B.push(q);return}let D={...q,controls:[]};for(const $ of W)if(vl.includes($.controlType)){B.push(D),D={...D,controls:[]};const Z=Ef(q,$,l);B.push(...Z)}else D.controls.push($)}),m.value=Pe.orderBy(B,"order").map(q=>({...q,id:q.controls.map(W=>W.id).join("-")})).filter(q=>q.controls.some(W=>W.visible)).map((q,W)=>({...q,order:W,controls:q.controls.filter(D=>D.visible)}))}function v({id:y,value:B}){let U=!1;const W=f.value.controls.filter(D=>{var $;return(($=D.conditions)==null?void 0:$.some(Z=>Z.id===y))||!1});if(W!=null&&W.length)return W.forEach(({id:D,conditions:$,visible:Z})=>{const K=$.every(Q=>{const{value:G,operator:le}=Q;return{"==":B===G,"!=":B!==G,">":B>G,"<":B<G}[le]||!1});Z!==K&&(s.setControlVisibility(n,D,K),U=!0)}),U}function C({id:y,value:B}){const U=Number(B||0);let q=!1;const D=f.value.controls.filter($=>{var Z;return $.controlType==="dynamic_array"&&((Z=$.itemsLength)==null?void 0:Z.controlId)===y});if(D!=null&&D.length)return D.forEach(({id:$,itemsLength:Z})=>{(Z==null?void 0:Z.value)!==U&&(s.setControlItemsLength(n,$,U),q=!0)}),q}const{notify:k}=rm();return i.watch(g,y=>{y.length&&(u&&k({message:y[0],color:"negative",position:"bottom",timeout:5e3,actions:[{label:"✕",color:"white"}]}),g.value=[])},{deep:!0}),i.watch(f,()=>{A()},{immediate:!0}),{model:m,errorMessages:g,rebuildModel:A,onControlValueUpdate:x}}const im={key:0,style:{height:"100%"}},lm={class:"q-py-sm"},om={class:"form-steps-container"},am={class:"row justify-center items-center",style:{height:"100%",width:"100vw"}},um={class:"controls-container",style:{height:"100%"}},sm={class:"form-container flex column items-center q-px-md",style:{width:"100vw"}},cm=mn(i.defineComponent({__name:"MultipleFormGroups",props:{index:{}},setup(n){const o=n,l=jn(),{model:u,onControlValueUpdate:s}=Yu(o.index),f=i.computed(()=>u.value.length),m=i.ref(0),g=i.computed(()=>u.value[m.value]),x=v=>{const C=Pe.toPairs(Pe.groupBy(v,"row"));return Pe.orderBy(C,([k,y])=>Number(k),"asc").map(([k,y])=>({controls:Pe.orderBy(y,"col","asc")}))};i.watch(m,v=>{const C=v+1===f.value;l.setOnLastSubstep(C)},{immediate:!0});function A(v){return{input_text:Ol,input_number:Ol,checkbox:Ha,switch:fd,select:jh,cards_select:rd}[v]||Ol}return(v,C)=>g.value?(i.openBlock(),i.createElementBlock("div",im,[i.createElementVNode("div",lm,[i.createVNode(nm,{formGroup:g.value,stepsCount:f.value},null,8,["formGroup","stepsCount"])]),i.createElementVNode("div",om,[i.createElementVNode("div",am,[i.createElementVNode("div",um,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(u),k=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:k.id},[m.value===k.order?(i.openBlock(),i.createBlock($f,{key:0,transition:"slide-left",style:{height:"75%",width:"100vw"},class:"row q-py-xs justify-center items-center bg-grey-1"},{default:i.withCtx(()=>[i.createElementVNode("div",sm,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(x(k.controls),(y,B)=>(i.openBlock(),i.createElementBlock("div",{class:"q-mb-xl",key:B},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(y.controls,(U,q)=>(i.openBlock(),i.createElementBlock("div",{key:q},[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(A(U.controlType)),{control:U,modelValue:y.controls[q].value,"onUpdate:modelValue":[W=>y.controls[q].value=W,W=>i.unref(s)(U,k.id)]},null,8,["control","modelValue","onUpdate:modelValue"]))]))),128))]))),128))])]),_:2},1024)):i.createCommentVNode("",!0)],64))),128)),i.createVNode(oh,{currentStep:m.value,stepsCount:f.value,nextDisabled:!g.value.valid,onPrev:C[0]||(C[0]=k=>m.value--),onNext:C[1]||(C[1]=k=>g.value.valid&&m.value++)},null,8,["currentStep","stepsCount","nextDisabled"])])])])])):i.createCommentVNode("",!0)}}),[["__scopeId","data-v-2d9dca33"]]),fm={style:{"font-size":"16px","padding-top":"1rem"}},dm={style:{"font-size":"16px","padding-top":"1rem"}},zl=mn(i.defineComponent({__name:"SimpleInput",props:i.mergeModels({control:{},rules:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const o=i.useModel(n,"modelValue"),l=n,u=i.computed(()=>{var s;return(s=l.control.controlType)==null?void 0:s.split("_")[1]});return(s,f)=>(i.openBlock(),i.createBlock(di,{class:"q-px-md win-card"},{default:i.withCtx(()=>[i.createVNode(lu,{borderless:"","reverse-fill-mask":"",modelValue:o.value,"onUpdate:modelValue":f[0]||(f[0]=m=>o.value=m),label:s.control.label,mask:u.value==="number"?"###.###.###.###.###":void 0,"input-class":{"text-right":u.value==="number"},"input-style":{fontSize:"16px"},rules:s.rules},i.createSlots({_:2},[s.control.prefix?{name:"prepend",fn:i.withCtx(()=>[i.createElementVNode("span",fm,i.toDisplayString(s.control.prefix),1)]),key:"0"}:void 0,s.control.suffix?{name:"append",fn:i.withCtx(()=>[i.createElementVNode("span",dm,i.toDisplayString(s.control.suffix),1)]),key:"1"}:void 0]),1032,["modelValue","label","mask","input-class","rules"])]),_:1}))}}),[["__scopeId","data-v-bd5dfdca"]]),Zu=i.defineComponent({__name:"SimpleSelect",props:i.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const o=i.useModel(n,"modelValue");return(l,u)=>(i.openBlock(),i.createBlock(di,{class:"q-px-md win-card"},{default:i.withCtx(()=>[i.createVNode(Qu,{borderless:"",label:l.control.label,options:l.control.options,modelValue:o.value,"onUpdate:modelValue":u[0]||(u[0]=s=>o.value=s),"emit-value":"","option-label":"label","map-options":""},null,8,["label","options","modelValue"])]),_:1}))}}),hm={key:0,style:{height:"100%"}},mm={class:"question-title text-center q-py-sm"},gm={class:"form-steps-container bg-grey-1"},pm={class:"form-container",style:{height:"100%"}},vm={class:"row items-center"},_m={class:"col-12 row"},bm=mn(i.defineComponent({__name:"SingleFormGroup",props:{index:{}},setup(n){const o=n,{model:l,onControlValueUpdate:u}=Yu(o.index,{notifyValidations:!1});function s(x){return{input_text:zl,input_number:zl,select:Zu,cards_select:Zu,checkbox:Ha}[x]||zl}const f=x=>Pe.orderBy(Pe.toPairs(Pe.groupBy(x,"row")),"row").map(([A,v])=>({controls:Pe.orderBy(v,"col")}));function m(x){return[A=>{var C;let v="";return(C=x.validators)==null||C.some(k=>{const{param:y,validator:B}=k,U=ba[B];return U.fn(Number(y))({...x,value:A})?!1:(v=U.message,!0)}),!v.length||v}]}const g=jn();return i.onMounted(()=>g.setOnLastSubstep(!0)),(x,A)=>i.unref(l)?(i.openBlock(),i.createElementBlock("div",hm,[i.createElementVNode("div",mm,i.toDisplayString(i.unref(l)[0].title),1),i.createElementVNode("div",gm,[i.createElementVNode("div",pm,[i.createElementVNode("div",vm,[i.createElementVNode("div",_m,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(f(i.unref(l)[0].controls),(v,C)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(f(i.unref(l)[0].controls).length>1?"col-md-6 col-12":"col-12"),key:C},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(v.controls,(k,y)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(`col-xs-12 col-sm q-pa-xs ${f(i.unref(l)[0].controls).length>1?"col-md-6 col-12":"col-12"}`),key:y},[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(s(k.controlType)),{control:k,modelValue:k.value,"onUpdate:modelValue":[B=>k.value=B,B=>i.unref(u)(k,i.unref(l)[0].id)],rules:m(k)},null,8,["control","modelValue","onUpdate:modelValue","rules"]))],2))),128))],2))),128))])])])])])):i.createCommentVNode("",!0)}}),[["__scopeId","data-v-a8cd1002"]]),Ul=n=>(i.pushScopeId("data-v-ea1ef607"),n=n(),i.popScopeId(),n),ym={class:"buttons-container"},wm={class:"max-container"},Sm={key:0,class:"row checkbox justify-end q-my-sm"},xm={style:{"max-width":"650px"}},Cm=Ul(()=>i.createElementVNode("br",{class:"gt-sm"},null,-1)),km={class:"row justify-between q-my-md q-px-md q-pb-xl"},Em=Ul(()=>i.createElementVNode("span",{class:"text-black"},"Atrás",-1)),Tm={key:1},Am={key:0,class:"text-black"},Bm=Ul(()=>i.createElementVNode("span",{class:"gt-sm"},"formulario",-1)),Rm={key:1,class:"text-black"},qm=mn(i.defineComponent({__name:"StepsNavigationButtons",emits:["submit"],setup(n,{emit:o}){const{nextStep:l,previousStep:u,currentStep:s,stepsCount:f,nextDisabled:m,onLastSubstep:g}=i.toRefs(jn()),x=o,A=i.ref(!1),v=k=>{},C=()=>{s.value===f.value?x("submit"):l.value()};return(k,y)=>(i.openBlock(),i.createElementBlock("div",ym,[i.createElementVNode("div",wm,[i.unref(s)===i.unref(f)?(i.openBlock(),i.createElementBlock("div",Sm,[i.createElementVNode("div",xm,[i.createVNode(Wa,{color:"info",class:"checkbox",modelValue:A.value,"onUpdate:modelValue":y[1]||(y[1]=B=>A.value=B)},{default:i.withCtx(()=>[i.createElementVNode("div",null,[i.createTextVNode(" He leído, comprendo y acepto los términos de tratamiento de datos "),Cm,i.createTextVNode(" personales para esta solicitud. Más info. sobre la protección de datos "),i.createElementVNode("span",{style:{"text-decoration":"underline"},onClick:y[0]||(y[0]=B=>v())},"aquí"),i.createTextVNode(". ")])]),_:1},8,["modelValue"])])])):i.createCommentVNode("",!0),i.createElementVNode("div",km,[i.unref(s)>1?(i.openBlock(),i.createBlock(ir,{key:0,color:"info",class:"q-px-xl q-py-sm q-mr-sm win-btn win-btn-primary bg-white",onClick:i.unref(u),flat:"","no-caps":""},{default:i.withCtx(()=>[Em]),_:1},8,["onClick"])):(i.openBlock(),i.createElementBlock("div",Tm)),i.createElementVNode("div",null,[!i.unref(m)&&i.unref(g)?(i.openBlock(),i.createBlock(ir,{key:0,color:"green",class:"q-px-xl q-py-sm q-ml-sm win-btn win-btn-primary bg-white",onClick:C,disable:i.unref(s)===i.unref(f)&&!A.value,flat:"","no-caps":""},{default:i.withCtx(()=>[i.unref(s)===i.unref(f)?(i.openBlock(),i.createElementBlock("span",Am,[i.createTextVNode(" Enviar "),Bm])):(i.openBlock(),i.createElementBlock("span",Rm," Siguiente "))]),_:1},8,["disable"])):i.createCommentVNode("",!0)])])])]))}}),[["__scopeId","data-v-ea1ef607"]]),Xu=i.defineComponent({__name:"DynamicForm",props:{forms:{}},emits:["onSubmit"],setup(n,{emit:o}){const l=n,u=o,s=i.ref(!1),f=jn(),m=x=>Pe.keys(Pe.groupBy(x.controls,"group")).length===1;i.watch(()=>l.forms,x=>{const v=new xa().fromRaw(x);f.setFormSteps(v)},{immediate:!0});function g(){const x=Pe.cloneDeep(f.formSteps),v=new xa().toRaw(x);u("onSubmit",v)}return(x,A)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",null,[i.renderSlot(x.$slots,"header"),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(f).formSteps,(v,C)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:C},[m(v)?i.withDirectives((i.openBlock(),i.createBlock(bm,{key:0,index:C},null,8,["index"])),[[i.vShow,i.unref(f).currentStep===C+1]]):i.withDirectives((i.openBlock(),i.createBlock(cm,{key:1,index:C,onOnLastStep:A[0]||(A[0]=k=>s.value=k)},null,8,["index"])),[[i.vShow,i.unref(f).currentStep===C+1]])],64))),128))]),i.createVNode(qm,{onSubmit:g})],64))}}),Mm=i.createElementVNode("img",{src:"https://upload.wikimedia.org/wikipedia/commons/thumb/9/95/Vue.js_Logo_2.svg/640px-Vue.js_Logo_2.svg.png",alt:""},null,-1),ju=i.defineComponent({__name:"TestUi",setup(n){const o=i.ref("Test W2W UI!");return(l,u)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[Mm,i.createElementVNode("h1",null,i.toDisplayString(o.value),1)],64))}}),Om={install(n,o){if(o!=null&&o.pinia)n.use(o.pinia);else throw new Error("No se ha encontrado una instancia de pinia");n.component("DynamicForm",Xu),n.component("TestUi",ju)}};Ht.DynamicForm=Xu,Ht.TestUi=ju,Ht.default=Om,Object.defineProperties(Ht,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
26
|
+
`)+D+`return __p
|
|
27
|
+
}`;var we=Xf(function(){return Oe(m,oe+"return "+D).apply(l,p)});if(we.source=D,ha(we))throw we;return we}function Dy(e){return Te(e).toLowerCase()}function $y(e){return Te(e).toUpperCase()}function Fy(e,n,r){if(e=Te(e),e&&(r||n===l))return oc(e);if(!e||!(n=xt(n)))return e;var a=Ht(e),c=Ht(n),m=ac(a,c),p=uc(a,c)+1;return Bn(a,m,p).join("")}function Uy(e,n,r){if(e=Te(e),e&&(r||n===l))return e.slice(0,cc(e)+1);if(!e||!(n=xt(n)))return e;var a=Ht(e),c=uc(a,Ht(n))+1;return Bn(a,0,c).join("")}function zy(e,n,r){if(e=Te(e),e&&(r||n===l))return e.replace(zr,"");if(!e||!(n=xt(n)))return e;var a=Ht(e),c=ac(a,Ht(n));return Bn(a,c).join("")}function Hy(e,n){var r=$,a=Z;if($e(n)){var c="separator"in n?n.separator:c;r="length"in n?ye(n.length):r,a="omission"in n?xt(n.omission):a}e=Te(e);var m=e.length;if(yr(e)){var p=Ht(e);m=p.length}if(r>=m)return e;var b=r-wr(a);if(b<1)return a;var S=p?Bn(p,0,b).join(""):e.slice(0,b);if(c===l)return S+a;if(p&&(b+=S.length-b),ma(c)){if(e.slice(b).search(c)){var L,q=S;for(c.global||(c=Bo(c.source,Te(ln.exec(c))+"g")),c.lastIndex=0;L=c.exec(q);)var D=L.index;S=S.slice(0,D===l?b:D)}}else if(e.indexOf(xt(c),b)!=b){var J=S.lastIndexOf(c);J>-1&&(S=S.slice(0,J))}return S+a}function Wy(e){return e=Te(e),e&&ro.test(e)?e.replace(Fr,yp):e}var Gy=Or(function(e,n,r){return e+(r?" ":"")+n.toUpperCase()}),va=Xc("toUpperCase");function Zf(e,n,r){return e=Te(e),n=r?l:n,n===l?gp(e)?xp(e):op(e):e.match(n)||[]}var Xf=Se(function(e,n){try{return wt(e,l,n)}catch(r){return ha(r)?r:new pe(r)}}),Ky=cn(function(e,n){return Rt(n,function(r){r=Jt(r),un(e,r,fa(e[r],e))}),e});function jy(e){var n=e==null?0:e.length,r=ce();return e=n?Pe(e,function(a){if(typeof a[1]!="function")throw new It(h);return[r(a[0]),a[1]]}):[],Se(function(a){for(var c=-1;++c<n;){var m=e[c];if(wt(m[0],this,a))return wt(m[1],this,a)}})}function Yy(e){return yv(Lt(e,C))}function _a(e){return function(){return e}}function Qy(e,n){return e==null||e!==e?n:e}var Zy=ef(),Xy=ef(!0);function gt(e){return e}function ba(e){return Bc(typeof e=="function"?e:Lt(e,C))}function Jy(e){return Ic(Lt(e,C))}function ew(e,n){return Mc(e,Lt(n,C))}var tw=Se(function(e,n){return function(r){return Jr(r,e,n)}}),nw=Se(function(e,n){return function(r){return Jr(e,r,n)}});function ya(e,n,r){var a=Xe(n),c=cl(n,a);r==null&&!($e(n)&&(c.length||!a.length))&&(r=n,n=e,e=this,c=cl(n,Xe(n)));var m=!($e(r)&&"chain"in r)||!!r.chain,p=dn(e);return Rt(c,function(b){var S=n[b];e[b]=S,p&&(e.prototype[b]=function(){var L=this.__chain__;if(m||L){var q=e(this.__wrapped__),D=q.__actions__=dt(this.__actions__);return D.push({func:S,args:arguments,thisArg:e}),q.__chain__=L,q}return S.apply(e,Cn([this.value()],arguments))})}),e}function rw(){return tt._===this&&(tt._=Tp),this}function wa(){}function iw(e){return e=ye(e),Se(function(n){return Lc(n,e)})}var lw=Xo(Pe),ow=Xo(tc),aw=Xo(xo);function Jf(e){return la(e)?Co(Jt(e)):Pv(e)}function uw(e){return function(n){return e==null?l:Yn(e,n)}}var sw=nf(),cw=nf(!0);function Sa(){return[]}function xa(){return!1}function fw(){return{}}function dw(){return""}function hw(){return!0}function mw(e,n){if(e=ye(e),e<1||e>W)return[];var r=B,a=it(e,B);n=ce(n),e-=B;for(var c=Ao(a,n);++r<e;)n(r);return c}function gw(e){return be(e)?Pe(e,Jt):Ct(e)?[e]:dt(bf(Te(e)))}function pw(e){var n=++Ap;return Te(e)+n}var vw=pl(function(e,n){return e+n},0),_w=Jo("ceil"),bw=pl(function(e,n){return e/n},1),yw=Jo("floor");function ww(e){return e&&e.length?sl(e,gt,No):l}function Sw(e,n){return e&&e.length?sl(e,ce(n,2),No):l}function xw(e){return ic(e,gt)}function Cw(e,n){return ic(e,ce(n,2))}function Ew(e){return e&&e.length?sl(e,gt,Uo):l}function kw(e,n){return e&&e.length?sl(e,ce(n,2),Uo):l}var Aw=pl(function(e,n){return e*n},1),Ow=Jo("round"),Tw=pl(function(e,n){return e-n},0);function Bw(e){return e&&e.length?ko(e,gt):0}function Rw(e,n){return e&&e.length?ko(e,ce(n,2)):0}return d.after=J_,d.ary=Bf,d.assign=$b,d.assignIn=Hf,d.assignInWith=Tl,d.assignWith=Fb,d.at=Ub,d.before=Rf,d.bind=fa,d.bindAll=Ky,d.bindKey=If,d.castArray=fb,d.chain=Af,d.chunk=y0,d.compact=w0,d.concat=S0,d.cond=jy,d.conforms=Yy,d.constant=_a,d.countBy=B_,d.create=zb,d.curry=Mf,d.curryRight=Lf,d.debounce=qf,d.defaults=Hb,d.defaultsDeep=Wb,d.defer=eb,d.delay=tb,d.difference=x0,d.differenceBy=C0,d.differenceWith=E0,d.drop=k0,d.dropRight=A0,d.dropRightWhile=O0,d.dropWhile=T0,d.fill=B0,d.filter=I_,d.flatMap=q_,d.flatMapDeep=V_,d.flatMapDepth=P_,d.flatten=xf,d.flattenDeep=R0,d.flattenDepth=I0,d.flip=nb,d.flow=Zy,d.flowRight=Xy,d.fromPairs=M0,d.functions=Xb,d.functionsIn=Jb,d.groupBy=N_,d.initial=q0,d.intersection=V0,d.intersectionBy=P0,d.intersectionWith=N0,d.invert=ty,d.invertBy=ny,d.invokeMap=$_,d.iteratee=ba,d.keyBy=F_,d.keys=Xe,d.keysIn=mt,d.map=xl,d.mapKeys=iy,d.mapValues=ly,d.matches=Jy,d.matchesProperty=ew,d.memoize=El,d.merge=oy,d.mergeWith=Wf,d.method=tw,d.methodOf=nw,d.mixin=ya,d.negate=kl,d.nthArg=iw,d.omit=ay,d.omitBy=uy,d.once=rb,d.orderBy=U_,d.over=lw,d.overArgs=ib,d.overEvery=ow,d.overSome=aw,d.partial=da,d.partialRight=Vf,d.partition=z_,d.pick=sy,d.pickBy=Gf,d.property=Jf,d.propertyOf=uw,d.pull=U0,d.pullAll=Ef,d.pullAllBy=z0,d.pullAllWith=H0,d.pullAt=W0,d.range=sw,d.rangeRight=cw,d.rearg=lb,d.reject=G_,d.remove=G0,d.rest=ob,d.reverse=sa,d.sampleSize=j_,d.set=fy,d.setWith=dy,d.shuffle=Y_,d.slice=K0,d.sortBy=X_,d.sortedUniq=e_,d.sortedUniqBy=t_,d.split=qy,d.spread=ab,d.tail=n_,d.take=r_,d.takeRight=i_,d.takeRightWhile=l_,d.takeWhile=o_,d.tap=w_,d.throttle=ub,d.thru=Sl,d.toArray=Ff,d.toPairs=Kf,d.toPairsIn=jf,d.toPath=gw,d.toPlainObject=zf,d.transform=hy,d.unary=sb,d.union=a_,d.unionBy=u_,d.unionWith=s_,d.uniq=c_,d.uniqBy=f_,d.uniqWith=d_,d.unset=my,d.unzip=ca,d.unzipWith=kf,d.update=gy,d.updateWith=py,d.values=Rr,d.valuesIn=vy,d.without=h_,d.words=Zf,d.wrap=cb,d.xor=m_,d.xorBy=g_,d.xorWith=p_,d.zip=v_,d.zipObject=__,d.zipObjectDeep=b_,d.zipWith=y_,d.entries=Kf,d.entriesIn=jf,d.extend=Hf,d.extendWith=Tl,ya(d,d),d.add=vw,d.attempt=Xf,d.camelCase=wy,d.capitalize=Yf,d.ceil=_w,d.clamp=_y,d.clone=db,d.cloneDeep=mb,d.cloneDeepWith=gb,d.cloneWith=hb,d.conformsTo=pb,d.deburr=Qf,d.defaultTo=Qy,d.divide=bw,d.endsWith=Sy,d.eq=Gt,d.escape=xy,d.escapeRegExp=Cy,d.every=R_,d.find=M_,d.findIndex=wf,d.findKey=Gb,d.findLast=L_,d.findLastIndex=Sf,d.findLastKey=Kb,d.floor=yw,d.forEach=Of,d.forEachRight=Tf,d.forIn=jb,d.forInRight=Yb,d.forOwn=Qb,d.forOwnRight=Zb,d.get=ga,d.gt=vb,d.gte=_b,d.has=ey,d.hasIn=pa,d.head=Cf,d.identity=gt,d.includes=D_,d.indexOf=L0,d.inRange=by,d.invoke=ry,d.isArguments=Xn,d.isArray=be,d.isArrayBuffer=bb,d.isArrayLike=ht,d.isArrayLikeObject=ze,d.isBoolean=yb,d.isBuffer=Rn,d.isDate=wb,d.isElement=Sb,d.isEmpty=xb,d.isEqual=Cb,d.isEqualWith=Eb,d.isError=ha,d.isFinite=kb,d.isFunction=dn,d.isInteger=Pf,d.isLength=Al,d.isMap=Nf,d.isMatch=Ab,d.isMatchWith=Ob,d.isNaN=Tb,d.isNative=Bb,d.isNil=Ib,d.isNull=Rb,d.isNumber=Df,d.isObject=$e,d.isObjectLike=Ue,d.isPlainObject=li,d.isRegExp=ma,d.isSafeInteger=Mb,d.isSet=$f,d.isString=Ol,d.isSymbol=Ct,d.isTypedArray=Br,d.isUndefined=Lb,d.isWeakMap=qb,d.isWeakSet=Vb,d.join=D0,d.kebabCase=Ey,d.last=Vt,d.lastIndexOf=$0,d.lowerCase=ky,d.lowerFirst=Ay,d.lt=Pb,d.lte=Nb,d.max=ww,d.maxBy=Sw,d.mean=xw,d.meanBy=Cw,d.min=Ew,d.minBy=kw,d.stubArray=Sa,d.stubFalse=xa,d.stubObject=fw,d.stubString=dw,d.stubTrue=hw,d.multiply=Aw,d.nth=F0,d.noConflict=rw,d.noop=wa,d.now=Cl,d.pad=Oy,d.padEnd=Ty,d.padStart=By,d.parseInt=Ry,d.random=yy,d.reduce=H_,d.reduceRight=W_,d.repeat=Iy,d.replace=My,d.result=cy,d.round=Ow,d.runInContext=w,d.sample=K_,d.size=Q_,d.snakeCase=Ly,d.some=Z_,d.sortedIndex=j0,d.sortedIndexBy=Y0,d.sortedIndexOf=Q0,d.sortedLastIndex=Z0,d.sortedLastIndexBy=X0,d.sortedLastIndexOf=J0,d.startCase=Vy,d.startsWith=Py,d.subtract=Tw,d.sum=Bw,d.sumBy=Rw,d.template=Ny,d.times=mw,d.toFinite=hn,d.toInteger=ye,d.toLength=Uf,d.toLower=Dy,d.toNumber=Pt,d.toSafeInteger=Db,d.toString=Te,d.toUpper=$y,d.trim=Fy,d.trimEnd=Uy,d.trimStart=zy,d.truncate=Hy,d.unescape=Wy,d.uniqueId=pw,d.upperCase=Gy,d.upperFirst=va,d.each=Of,d.eachRight=Tf,d.first=Cf,ya(d,function(){var e={};return Zt(d,function(n,r){Re.call(d.prototype,r)||(e[r]=n)}),e}(),{chain:!1}),d.VERSION=u,Rt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){d[e].placeholder=d}),Rt(["drop","take"],function(e,n){Ee.prototype[e]=function(r){r=r===l?1:Qe(ye(r),0);var a=this.__filtered__&&!n?new Ee(this):this.clone();return a.__filtered__?a.__takeCount__=it(r,a.__takeCount__):a.__views__.push({size:it(r,B),type:e+(a.__dir__<0?"Right":"")}),a},Ee.prototype[e+"Right"]=function(r){return this.reverse()[e](r).reverse()}}),Rt(["filter","map","takeWhile"],function(e,n){var r=n+1,a=r==P||r==ue;Ee.prototype[e]=function(c){var m=this.clone();return m.__iteratees__.push({iteratee:ce(c,3),type:r}),m.__filtered__=m.__filtered__||a,m}}),Rt(["head","last"],function(e,n){var r="take"+(n?"Right":"");Ee.prototype[e]=function(){return this[r](1).value()[0]}}),Rt(["initial","tail"],function(e,n){var r="drop"+(n?"":"Right");Ee.prototype[e]=function(){return this.__filtered__?new Ee(this):this[r](1)}}),Ee.prototype.compact=function(){return this.filter(gt)},Ee.prototype.find=function(e){return this.filter(e).head()},Ee.prototype.findLast=function(e){return this.reverse().find(e)},Ee.prototype.invokeMap=Se(function(e,n){return typeof e=="function"?new Ee(this):this.map(function(r){return Jr(r,e,n)})}),Ee.prototype.reject=function(e){return this.filter(kl(ce(e)))},Ee.prototype.slice=function(e,n){e=ye(e);var r=this;return r.__filtered__&&(e>0||n<0)?new Ee(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),n!==l&&(n=ye(n),r=n<0?r.dropRight(-n):r.take(n-e)),r)},Ee.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Ee.prototype.toArray=function(){return this.take(B)},Zt(Ee.prototype,function(e,n){var r=/^(?:filter|find|map|reject)|While$/.test(n),a=/^(?:head|last)$/.test(n),c=d[a?"take"+(n=="last"?"Right":""):n],m=a||/^find/.test(n);c&&(d.prototype[n]=function(){var p=this.__wrapped__,b=a?[1]:arguments,S=p instanceof Ee,L=b[0],q=S||be(p),D=function(Ce){var ke=c.apply(d,Cn([Ce],b));return a&&J?ke[0]:ke};q&&r&&typeof L=="function"&&L.length!=1&&(S=q=!1);var J=this.__chain__,oe=!!this.__actions__.length,de=m&&!J,we=S&&!oe;if(!m&&q){p=we?p:new Ee(this);var he=e.apply(p,b);return he.__actions__.push({func:Sl,args:[D],thisArg:l}),new Mt(he,J)}return de&&we?e.apply(this,b):(he=this.thru(D),de?a?he.value()[0]:he.value():he)})}),Rt(["pop","push","shift","sort","splice","unshift"],function(e){var n=ji[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",a=/^(?:pop|shift)$/.test(e);d.prototype[e]=function(){var c=arguments;if(a&&!this.__chain__){var m=this.value();return n.apply(be(m)?m:[],c)}return this[r](function(p){return n.apply(be(p)?p:[],c)})}}),Zt(Ee.prototype,function(e,n){var r=d[n];if(r){var a=r.name+"";Re.call(Er,a)||(Er[a]=[]),Er[a].push({name:n,func:r})}}),Er[gl(l,H).name]=[{name:"wrapper",func:l}],Ee.prototype.clone=Wp,Ee.prototype.reverse=Gp,Ee.prototype.value=Kp,d.prototype.at=S_,d.prototype.chain=x_,d.prototype.commit=C_,d.prototype.next=E_,d.prototype.plant=A_,d.prototype.reverse=O_,d.prototype.toJSON=d.prototype.valueOf=d.prototype.value=T_,d.prototype.first=d.prototype.head,Gr&&(d.prototype[Gr]=k_),d},Sr=Cp();Hn?((Hn.exports=Sr)._=Sr,bo._=Sr):tt._=Sr}).call(xe)}(oi,oi.exports);var Ne=oi.exports,Je={},Ea={},Jn={};Object.defineProperty(Jn,"__esModule",{value:!0}),Jn.EstadoCaptacion=Jn.TipoCaptacion=void 0;var ka;(function(t){t.CLIENTES="1",t.PROVEEDORES="2",t.USUARIOS="3",t.PRODUCTOS="4",t.PEDIDOS="5"})(ka||(Jn.TipoCaptacion=ka={}));var Aa;(function(t){t.EN_ESTUDIO="1",t.PRE_APROBADA="2",t.APROBADA="3",t.EN_NEGOCIACION="4",t.NEGOCIACION_FINALIZADA="5",t.CONFIRMADA="6",t.FINALIZADA="7",t.CANCELADA="0"})(Aa||(Jn.EstadoCaptacion=Aa={}));var ai={};Object.defineProperty(ai,"__esModule",{value:!0}),ai.TipoGarantia=void 0;var Oa;(function(t){t.INMUEBLE="Propiedad inmobiliaria",t.VEHICULO="Vehículo",t.AVAL_PERSONAL="Aval personal",t.OTROS="Otros"})(Oa||(ai.TipoGarantia=Oa={}));var ui={};Object.defineProperty(ui,"__esModule",{value:!0}),ui.TipoImportacion=void 0;var Ta;(function(t){t.CAPTACION="captacion",t.PEDIDO="pedido",t.PRODUCTO="producto",t.CLIENTE="cliente"})(Ta||(ui.TipoImportacion=Ta={}));var gn={};Object.defineProperty(gn,"__esModule",{value:!0}),gn.TipoLiquidacionReclamo=gn.EstadoLiquidacionReclamo=gn.EstadoLiquidacion=void 0;var Ba;(function(t){t[t.EN_PREVISION=1]="EN_PREVISION",t[t.CONFIRMACION_PENDIENTE=2]="CONFIRMACION_PENDIENTE",t[t.CONFIRMADA=3]="CONFIRMADA",t[t.PAGADA=4]="PAGADA",t[t.CON_RECLAMOS=5]="CON_RECLAMOS"})(Ba||(gn.EstadoLiquidacion=Ba={}));var Ra;(function(t){t[t.ACTIVO=1]="ACTIVO",t[t.APROBADO=2]="APROBADO",t[t.NEGADO=3]="NEGADO"})(Ra||(gn.EstadoLiquidacionReclamo=Ra={}));var Ia;(function(t){t[t.ITEM=1]="ITEM",t[t.COBRO=2]="COBRO"})(Ia||(gn.TipoLiquidacionReclamo=Ia={}));var si={};Object.defineProperty(si,"__esModule",{value:!0}),si.TipoNotificacion=void 0;var Ma;(function(t){t.NUEVO="1",t.DOCUMENTOS="2",t.REALIZADO="3",t.INCIDENTES="4",t.CANCELACION="5"})(Ma||(si.TipoNotificacion=Ma={}));var ci={};Object.defineProperty(ci,"__esModule",{value:!0}),ci.EstadoPedido=void 0;var La;(function(t){t[t.PENDIENTE=1]="PENDIENTE",t[t.REVISAR_DOC=2]="REVISAR_DOC",t[t.LLAMAR=3]="LLAMAR",t[t.FINALIZADO=4]="FINALIZADO",t[t.CANCELADO=5]="CANCELADO",t[t.LIQUIDADO=6]="LIQUIDADO",t[t.INCIDENCIA=7]="INCIDENCIA",t[t.TRAMITADO=8]="TRAMITADO",t[t.PENDIENTE_ASIGNAR=9]="PENDIENTE_ASIGNAR"})(La||(ci.EstadoPedido=La={}));var er={};Object.defineProperty(er,"__esModule",{value:!0}),er.TipoProducto=er.EstadoProducto=void 0;var qa;(function(t){t.DESHABILITADO="0",t.INACTIVO="1",t.ACTIVADO="2",t.PUBLICO="3"})(qa||(er.EstadoProducto=qa={}));var Va;(function(t){t.ARTICULO="1",t.SERVICIO_CONTRATO="2",t.MEMBRESIA="3",t.OFERTA_EMPLEO="4"})(Va||(er.TipoProducto=Va={}));var fi={};Object.defineProperty(fi,"__esModule",{value:!0}),fi.EstadoBase=void 0;var Pa;(function(t){t[t.INACTIVO=0]="INACTIVO",t[t.ACTIVO=1]="ACTIVO"})(Pa||(fi.EstadoBase=Pa={})),function(t){var o=xe&&xe.__createBinding||(Object.create?function(u,s,f,h){h===void 0&&(h=f);var g=Object.getOwnPropertyDescriptor(s,f);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[f]}}),Object.defineProperty(u,h,g)}:function(u,s,f,h){h===void 0&&(h=f),u[h]=s[f]}),l=xe&&xe.__exportStar||function(u,s){for(var f in u)f!=="default"&&!Object.prototype.hasOwnProperty.call(s,f)&&o(s,u,f)};Object.defineProperty(t,"__esModule",{value:!0}),l(Jn,t),l(ai,t),l(ui,t),l(gn,t),l(si,t),l(ci,t),l(er,t),l(fi,t)}(Ea);var Na={},Da={},di={};Object.defineProperty(di,"__esModule",{value:!0}),di.LAYOUT_COLUMNA_TYPES=void 0,di.LAYOUT_COLUMNA_TYPES=["texto","numero","fecha"],function(t){var o=xe&&xe.__createBinding||(Object.create?function(u,s,f,h){h===void 0&&(h=f);var g=Object.getOwnPropertyDescriptor(s,f);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[f]}}),Object.defineProperty(u,h,g)}:function(u,s,f,h){h===void 0&&(h=f),u[h]=s[f]}),l=xe&&xe.__exportStar||function(u,s){for(var f in u)f!=="default"&&!Object.prototype.hasOwnProperty.call(s,f)&&o(s,u,f)};Object.defineProperty(t,"__esModule",{value:!0}),l(di,t)}(Da);var $a={},tr={};Object.defineProperty(tr,"__esModule",{value:!0}),tr.LAYOUT_SECTION_TYPES=tr.LayoutSectionType=void 0;var nr;(function(t){t.TEXT="text",t.TABLE="table",t.CARDS_GRID="cards-grid",t.IMAGE="image"})(nr||(tr.LayoutSectionType=nr={})),tr.LAYOUT_SECTION_TYPES=[nr.TEXT,nr.CARDS_GRID,nr.TABLE,nr.IMAGE],function(t){var o=xe&&xe.__createBinding||(Object.create?function(u,s,f,h){h===void 0&&(h=f);var g=Object.getOwnPropertyDescriptor(s,f);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[f]}}),Object.defineProperty(u,h,g)}:function(u,s,f,h){h===void 0&&(h=f),u[h]=s[f]}),l=xe&&xe.__exportStar||function(u,s){for(var f in u)f!=="default"&&!Object.prototype.hasOwnProperty.call(s,f)&&o(s,u,f)};Object.defineProperty(t,"__esModule",{value:!0}),l(tr,t)}($a);var Fa={},hi={};Object.defineProperty(hi,"__esModule",{value:!0}),hi.TipoComision=void 0;var Ua;(function(t){t.PORCENTAJE="porcentaje",t.MONTO_FIJO="monto_fijo"})(Ua||(hi.TipoComision=Ua={}));var za={};Object.defineProperty(za,"__esModule",{value:!0});var At={};Object.defineProperty(At,"__esModule",{value:!0}),At.TABLES=At.TABLES_FIELDS=At.SOURCES=At.LOGIC_OPERATORS=At.RULE_OPERATORS=void 0,At.RULE_OPERATORS=["==","!=","<",">","IN"],At.LOGIC_OPERATORS=["AND","OR"],At.SOURCES=["IMPORTACION","TABLA","CONTENEDOR"],At.TABLES_FIELDS={PRODUCTOS:["TIPO","NOMBRE","DESCRIPCION","ID_GAMA","ESTADO","TAGS","ID_PRODUCTO","PROPS","COD_ART_MVX"],CAPTACION:["ESTADO","TIPO","CAPTADO","ID_CAPTACION","FECHA_CAPTADO"]},At.TABLES=[{label:"PRODUCTOS",value:"PRODUCTOS"},{label:"CAPTACIONES",value:"CAPTACION"}],function(t){var o=xe&&xe.__createBinding||(Object.create?function(u,s,f,h){h===void 0&&(h=f);var g=Object.getOwnPropertyDescriptor(s,f);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[f]}}),Object.defineProperty(u,h,g)}:function(u,s,f,h){h===void 0&&(h=f),u[h]=s[f]}),l=xe&&xe.__exportStar||function(u,s){for(var f in u)f!=="default"&&!Object.prototype.hasOwnProperty.call(s,f)&&o(s,u,f)};Object.defineProperty(t,"__esModule",{value:!0}),l(hi,t),l(za,t),l(At,t)}(Fa);var Ha={},mi={};Object.defineProperty(mi,"__esModule",{value:!0}),mi.OPERATORS=void 0,mi.OPERATORS=["==","!=",">","<",">=","<=","contains","not_contains","in","not_in"];var rr={};Object.defineProperty(rr,"__esModule",{value:!0}),rr.ControlType=rr.GAMA_PROP_CONTROL_TYPES=void 0,rr.GAMA_PROP_CONTROL_TYPES=[{code:"input_text",icon:"title",label:"Texto"},{code:"input_number",icon:"o_looks_one",label:"Número"},{code:"datetime",icon:"event",label:"Fecha y hora"},{code:"date",icon:"calendar_today",label:"Fecha"},{code:"time",icon:"schedule",label:"Hora"},{code:"switch",icon:"toggle_on",label:"Switch"},{code:"checkbox",icon:"o_check_box",label:"Checkbox"},{code:"select",icon:"list",label:"Selector simple"},{code:"cards_select",icon:"grid_view",label:"Selector de tarjetas"},{code:"location",icon:"location_on",label:"Ubicación"},{code:"dynamic_array",icon:"data_array",label:"Colección dinámica"},{code:"object",icon:"data_object",label:"Objeto"}];var Wa;(function(t){t.TEXT="input_text",t.NUMBER="input_number",t.DATETIME="datetime",t.DATE="date",t.TIME="time",t.SWITCH="switch",t.CHECKBOX="checkbox",t.SELECT="select",t.CARDS_SELECT="cards_select",t.LOCATION="location",t.DYNAMIC_ARRAY="dynamic_array",t.OBJECT="object"})(Wa||(rr.ControlType=Wa={}));var Ga={};Object.defineProperty(Ga,"__esModule",{value:!0});var Ka={};Object.defineProperty(Ka,"__esModule",{value:!0});var ja={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.VALIDATORS=t.PropValidatorKeys=t.GamaPropValidatorsMap=void 0,t.GamaPropValidatorsMap={required:{fn:()=>l=>l.value!==null&&l.value!==void 0&&l.value!=="",message:"Este campo es requerido",label:"Requerido"},min:{fn:l=>u=>{if(typeof u.value=="number")return(u.value||0)>=l;if(typeof u.value=="string"){const s=u.value||"";return u.multiple?s.split(",").length>=l:s.length>=l}return!1},message:"El valor es menor al mínimo permitido",label:"Mínimo"},max:{fn:l=>u=>{if(typeof u.value=="number")return(u.value||0)<=l;if(typeof u.value=="string"){const s=u.value||"";return u.multiple?s.split(",").length<=l:(s||"").length<=l}return!1},message:"El valor es mayor al máximo permitido",label:"Máximo"},onlyNumbers:{fn:()=>l=>/^[0-9]*$/.test(String(l.value)||""),message:"Este campo solo acepta números",label:"Solo números"},email:{fn:()=>l=>l.value?/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(String(l.value)||""):!0,message:"El correo electrónico no es válido",label:"Correo electrónico"},url:{fn:()=>l=>l.value?/^(ftp|http|https):\/\/[^ "]+$/.test(String(l.value)||"")||/^www\.[^ "]+$/.test(String(l.value)||""):!0,message:"La URL no es válida",label:"URL"}};var o;(function(l){l.REQUERIDO="required",l.MINIMO="min",l.MAXIMO="max",l.SOLO_NUMEROS="onlyNumbers",l.EMAIL="email",l.URL="url"})(o||(t.PropValidatorKeys=o={})),t.VALIDATORS=Object.entries(t.GamaPropValidatorsMap).map(([l,u])=>({value:l,...u}))})(ja);var Ya={};Object.defineProperty(Ya,"__esModule",{value:!0}),function(t){var o=xe&&xe.__createBinding||(Object.create?function(u,s,f,h){h===void 0&&(h=f);var g=Object.getOwnPropertyDescriptor(s,f);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[f]}}),Object.defineProperty(u,h,g)}:function(u,s,f,h){h===void 0&&(h=f),u[h]=s[f]}),l=xe&&xe.__exportStar||function(u,s){for(var f in u)f!=="default"&&!Object.prototype.hasOwnProperty.call(s,f)&&o(s,u,f)};Object.defineProperty(t,"__esModule",{value:!0}),l(mi,t),l(rr,t),l(Ga,t),l(Ka,t),l(ja,t),l(Ya,t)}(Ha);var Qa={},Za={};Object.defineProperty(Za,"__esModule",{value:!0}),function(t){var o=xe&&xe.__createBinding||(Object.create?function(u,s,f,h){h===void 0&&(h=f);var g=Object.getOwnPropertyDescriptor(s,f);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[f]}}),Object.defineProperty(u,h,g)}:function(u,s,f,h){h===void 0&&(h=f),u[h]=s[f]}),l=xe&&xe.__exportStar||function(u,s){for(var f in u)f!=="default"&&!Object.prototype.hasOwnProperty.call(s,f)&&o(s,u,f)};Object.defineProperty(t,"__esModule",{value:!0}),l(Za,t)}(Qa),function(t){var o=xe&&xe.__createBinding||(Object.create?function(u,s,f,h){h===void 0&&(h=f);var g=Object.getOwnPropertyDescriptor(s,f);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[f]}}),Object.defineProperty(u,h,g)}:function(u,s,f,h){h===void 0&&(h=f),u[h]=s[f]}),l=xe&&xe.__exportStar||function(u,s){for(var f in u)f!=="default"&&!Object.prototype.hasOwnProperty.call(s,f)&&o(s,u,f)};Object.defineProperty(t,"__esModule",{value:!0}),l(Da,t),l($a,t),l(Fa,t),l(Ha,t),l(Qa,t)}(Na),function(t){var o=xe&&xe.__createBinding||(Object.create?function(u,s,f,h){h===void 0&&(h=f);var g=Object.getOwnPropertyDescriptor(s,f);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[f]}}),Object.defineProperty(u,h,g)}:function(u,s,f,h){h===void 0&&(h=f),u[h]=s[f]}),l=xe&&xe.__exportStar||function(u,s){for(var f in u)f!=="default"&&!Object.prototype.hasOwnProperty.call(s,f)&&o(s,u,f)};Object.defineProperty(t,"__esModule",{value:!0}),l(Ea,t),l(Na,t)}(Je);const Bl=[Je.ControlType.DYNAMIC_ARRAY,Je.ControlType.OBJECT],td={maxControlsPerGroup:1,notifyValidations:!0},Xa={required:{fn:()=>t=>{var o;if(t.controlType===Je.ControlType.LOCATION){const{value:l}=t.value;return Ne.values(Ne.omit(l,"catastro")).every(u=>!Ne.isNil(u)&&u!=="")&&(l!=null&&l.catastro?nd(l==null?void 0:l.catastro):!0)}return t.controlType===Je.ControlType.DYNAMIC_ARRAY||t.multiple?(((o=t.value)==null?void 0:o.length)||0)>0:!Ne.isNil(t.value)&&t.value!==""},message:"Este campo es requerido"},min:{fn:t=>o=>Ja(o,">=",t),message:"El valor es menor al mínimo permitido"},max:{fn:t=>o=>Ja(o,"<=",t),message:"El valor es mayor al máximo permitido"},onlyNumbers:{fn:()=>t=>/^[0-9]*$/.test(String(t.value)||""),message:"Este campo solo acepta números"},email:{fn:()=>t=>t.value?/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(String(t.value)||""):!0,message:"El correo electrónico no es válido"},url:{fn:()=>t=>t.value?/^(ftp|http|https):\/\/[^ "]+$/.test(String(t.value)||"")||/^www\.[^ "]+$/.test(String(t.value)||""):!0,message:"La URL no es válida"}};function Ja(t,o,l){const u={">":(s,f)=>s>f,"<":(s,f)=>s<f,">=":(s,f)=>s>=f,"<=":(s,f)=>s<=f}[o];if(t.controlType===Je.ControlType.NUMBER){const s=Number(t.value);return u(s,l)}if(t.controlType===Je.ControlType.TEXT){const s=(t.value||"").length;return u(s,l)}if([Je.ControlType.CARDS_SELECT,Je.ControlType.SELECT].includes(t.controlType)&&t.multiple){const s=(t.value||[]).length;return u(s,l)}return!1}function nd(t){return/^[A-Za-z0-9]{20}$/.test(t)}function rd(t){const o=[];t.controls.forEach((u,s)=>{const f=id(u);o.push(...f);const h=!f.length;t.controls[s].valid=h});const l=!o.length;return t.valid=l,o}function id(t){const o=[];return t.validators&&t.validators.forEach(l=>{const{validator:u,param:s}=l,f=Xa[u]||null;f&&(f.fn(Number(s))(t)||o.push(f.message))}),o}function ld(t,o,l){return o.controlType==="dynamic_array"?od(t,o,l):o.controlType==="object"?eu(t,o,l):[]}function od(t,o,l){var f,h;const u=[],s=((f=o.itemsLength)==null?void 0:f.value)||0;for(let g=0;g<s;g++){const x=eu({...t,title:`${t.title} ${g+1}`},{...o,value:(h=o.value)==null?void 0:h[g]},l);x.forEach(O=>{O.controls.forEach(v=>{v.code=`${g}.${v.code}`})}),u.push(...x)}return u}function eu(t,o,l){const u=o.structure;return Ne.chunk(u,l).map(f=>({...t,controls:tu(f).map(h=>{var g;return{...h,id:o.id,value:((g=o.value)==null?void 0:g[h.code])||h.value}})}))}function ad(t){return Ne.chain(t).groupBy("group").toPairs().orderBy(([l,u])=>l).map(([l,u])=>{var h;const s=((h=u.find(g=>{var x;return!!((x=g.title)!=null&&x.trim())}))==null?void 0:h.title)||"",f=u[0].group;return{title:s,controls:u,order:f,visible:!0,valid:u.every(g=>g.valid),id:""}}).value()}function ud(t){return t.map(o=>({...o,valid:!1,controls:tu(o.controls)}))}function tu(t){return t.map(o=>{var l,u,s;return{...o,valid:!((l=o.validators)!=null&&l.length),visible:!((u=o.conditions)!=null&&u.length),value:sd(o),itemsLength:o.controlType==="dynamic_array"?{...o.itemsLength,value:((s=o.itemsLength)==null?void 0:s.default)||1}:null}})}function sd(t){if(!Ne.isNil(t.defaultValue))return t.defaultValue;switch(t.controlType){case"input_text":return"";case"input_number":return null;case"select":return t.multiple?[]:"";case"cards_select":return t.multiple?[]:"";case"checkbox":return null;case"switch":return null;case"location":return{};case"dynamic_array":return[];case"object":return{};default:return""}}console.log("active pinia:",Ca.getActivePinia());const ir=Ca.defineStore("form",{state:()=>({formSteps:[],currentStep:1,onLastSubstep:!1,collections:{}}),actions:{setFormSteps(t){this.formSteps=ud(t)},nextStep(){this.currentStep!==this.formSteps.length&&this.currentStep++},previousStep(){this.currentStep!==1&&this.currentStep--},setControlValue(t,o){const{id:l,value:u,code:s}=o,f=this.formSteps[t].controls.find(h=>h.id===l);f&&(Bl.includes(f.controlType)?Ne.set(f.value,s,u):f.value=u)},setControlVisibility(t,o,l){const u=this.formSteps[t].controls.find(s=>s.id===o);u&&(u.visible=l)},setControlItemsLength(t,o,l){const u=this.formSteps[t].controls.find(s=>s.id===o);!u||u.controlType!=="dynamic_array"||(u.itemsLength.value=l)},setOnLastSubstep(t){this.onLastSubstep=t},resetSteps(){this.currentStep=1},setCollection(t,o){this.collections[t]=o}},getters:{currentFormStep(t){return t.formSteps[t.currentStep-1]||null},stepsCount(t){return t.formSteps.length},nextDisabled(){return this.currentFormStep.controls.filter(t=>t.visible).some(t=>!t.valid)},getCollection(t){return o=>t.collections[o]||null}}});class nu{toRaw(o){return o.flatMap(s=>s.controls).filter(s=>s.visible).map(s=>({ID_CUESTIONARIO_PREGUNTA:s.id,RESPUESTA:this.formatValue(s)}))}fromRaw(o){return Ne.orderBy(o,"ORDEN").filter(u=>u.PREGUNTAS.length&&u.ESTADO===1).map(u=>{const s=u.NOMBRE,f=u.ORDEN,h=u.DESCRIPCION,g=u.CLAVE,x=u.ID_CUESTIONARIO,O=u.PREGUNTAS.filter(v=>v.ESTADO===1).map(v=>this.parseControl(v));return{title:s,order:f,text:h,controls:O,name:g,id:x}})}parseControl(o){return{controlType:o.TIPO,label:o.NOMBRE,name:o.CLAVE,options:o.RESPUESTAS,multiple:o.MULTIPLE||!1,validators:o.VALIDACIONES,conditions:o.CONDITIONS,itemsLength:o.LENGTH,id:o.ID_CUESTIONARIO_PREGUNTA,row:o.FILA,col:o.COLUMNA,prefix:o.PREFIJO,suffix:o.SUFIJO,structure:o.STRUCTURE,group:o.GRUPO,title:o.TITULO_GRUPO,customParams:o.PARAMS}}formatValue(o){const{controlType:l,value:u,structure:s}=o,f=(h,g)=>g.controlType==="input_number"&&h!==null&&h!==void 0&&h!==""&&typeof h=="string";return f(u,o)?parseFloat(u.replaceAll(".","")):(l==="object"&&s.forEach(h=>{const g=u[h.code];f(g,h)&&(u[h.code]=parseFloat(g==null?void 0:g.replaceAll(".","")))}),u)}}function gi(t,o,l,u){return Object.defineProperty(t,o,{get:l,set:u,enumerable:!0}),t}const pn=i.ref(!1);let Rl;function cd(t,o){const l=/(edg|edge|edga|edgios)\/([\w.]+)/.exec(t)||/(opr)[\/]([\w.]+)/.exec(t)||/(vivaldi)[\/]([\w.]+)/.exec(t)||/(chrome|crios)[\/]([\w.]+)/.exec(t)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(t)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(t)||/(firefox|fxios)[\/]([\w.]+)/.exec(t)||/(webkit)[\/]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[\/]([\w.]+)/.exec(t)||[];return{browser:l[5]||l[3]||l[1]||"",version:l[4]||l[2]||"0",platform:o[0]||""}}function fd(t){return/(ipad)/.exec(t)||/(ipod)/.exec(t)||/(windows phone)/.exec(t)||/(iphone)/.exec(t)||/(kindle)/.exec(t)||/(silk)/.exec(t)||/(android)/.exec(t)||/(win)/.exec(t)||/(mac)/.exec(t)||/(linux)/.exec(t)||/(cros)/.exec(t)||/(playbook)/.exec(t)||/(bb)/.exec(t)||/(blackberry)/.exec(t)||[]}const ru="ontouchstart"in window||window.navigator.maxTouchPoints>0;function dd(t){const o=t.toLowerCase(),l=fd(o),u=cd(o,l),s={};u.browser&&(s[u.browser]=!0,s.version=u.version,s.versionNumber=parseInt(u.version,10)),u.platform&&(s[u.platform]=!0);const f=s.android||s.ios||s.bb||s.blackberry||s.ipad||s.iphone||s.ipod||s.kindle||s.playbook||s.silk||s["windows phone"];if(f===!0||o.indexOf("mobile")!==-1?s.mobile=!0:s.desktop=!0,s["windows phone"]&&(s.winphone=!0,delete s["windows phone"]),s.edga||s.edgios||s.edg?(s.edge=!0,u.browser="edge"):s.crios?(s.chrome=!0,u.browser="chrome"):s.fxios&&(s.firefox=!0,u.browser="firefox"),(s.ipod||s.ipad||s.iphone)&&(s.ios=!0),s.vivaldi&&(u.browser="vivaldi",s.vivaldi=!0),(s.chrome||s.opr||s.safari||s.vivaldi||s.mobile===!0&&s.ios!==!0&&f!==!0)&&(s.webkit=!0),s.opr&&(u.browser="opera",s.opera=!0),s.safari&&(s.blackberry||s.bb?(u.browser="blackberry",s.blackberry=!0):s.playbook?(u.browser="playbook",s.playbook=!0):s.android?(u.browser="android",s.android=!0):s.kindle?(u.browser="kindle",s.kindle=!0):s.silk&&(u.browser="silk",s.silk=!0)),s.name=u.browser,s.platform=u.platform,o.indexOf("electron")!==-1)s.electron=!0;else if(document.location.href.indexOf("-extension://")!==-1)s.bex=!0;else{if(window.Capacitor!==void 0?(s.capacitor=!0,s.nativeMobile=!0,s.nativeMobileWrapper="capacitor"):(window._cordovaNative!==void 0||window.cordova!==void 0)&&(s.cordova=!0,s.nativeMobile=!0,s.nativeMobileWrapper="cordova"),pn.value===!0&&(Rl={is:{...s}}),ru===!0&&s.mac===!0&&(s.desktop===!0&&s.safari===!0||s.nativeMobile===!0&&s.android!==!0&&s.ios!==!0&&s.ipad!==!0)){delete s.mac,delete s.desktop;const h=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(s,{mobile:!0,ios:!0,platform:h,[h]:!0})}s.mobile!==!0&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete s.desktop,s.mobile=!0)}return s}const iu=navigator.userAgent||navigator.vendor||window.opera,hd={has:{touch:!1,webStorage:!1},within:{iframe:!1}},pt={userAgent:iu,is:dd(iu),has:{touch:ru},within:{iframe:window.self!==window.top}},Il={install(t){const{$q:o}=t;pn.value===!0?(t.onSSRHydrated.push(()=>{Object.assign(o.platform,pt),pn.value=!1}),o.platform=i.reactive(this)):o.platform=this}};{let t;gi(pt.has,"webStorage",()=>{if(t!==void 0)return t;try{if(window.localStorage)return t=!0,!0}catch{}return t=!1,!1}),Object.assign(Il,pt),pn.value===!0&&(Object.assign(Il,Rl,hd),Rl=null)}function Ze(t){return i.markRaw(i.defineComponent(t))}function lu(t){return i.markRaw(t)}function en(t,o){if(t===o)return!0;if(t!==null&&o!==null&&typeof t=="object"&&typeof o=="object"){if(t.constructor!==o.constructor)return!1;let l,u;if(t.constructor===Array){if(l=t.length,l!==o.length)return!1;for(u=l;u--!==0;)if(en(t[u],o[u])!==!0)return!1;return!0}if(t.constructor===Map){if(t.size!==o.size)return!1;let f=t.entries();for(u=f.next();u.done!==!0;){if(o.has(u.value[0])!==!0)return!1;u=f.next()}for(f=t.entries(),u=f.next();u.done!==!0;){if(en(u.value[1],o.get(u.value[0]))!==!0)return!1;u=f.next()}return!0}if(t.constructor===Set){if(t.size!==o.size)return!1;const f=t.entries();for(u=f.next();u.done!==!0;){if(o.has(u.value[0])!==!0)return!1;u=f.next()}return!0}if(t.buffer!=null&&t.buffer.constructor===ArrayBuffer){if(l=t.length,l!==o.length)return!1;for(u=l;u--!==0;)if(t[u]!==o[u])return!1;return!0}if(t.constructor===RegExp)return t.source===o.source&&t.flags===o.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===o.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===o.toString();const s=Object.keys(t).filter(f=>t[f]!==void 0);if(l=s.length,l!==Object.keys(o).filter(f=>o[f]!==void 0).length)return!1;for(u=l;u--!==0;){const f=s[u];if(en(t[f],o[f])!==!0)return!1}return!0}return t!==t&&o!==o}const ou={threshold:0,root:null,rootMargin:"0px"};function au(t,o,l){let u,s,f;typeof l=="function"?(u=l,s=ou,f=o.cfg===void 0):(u=l.handler,s=Object.assign({},ou,l.cfg),f=o.cfg===void 0||en(o.cfg,s)===!1),o.handler!==u&&(o.handler=u),f===!0&&(o.cfg=s,o.observer!==void 0&&o.observer.unobserve(t),o.observer=new IntersectionObserver(([h])=>{if(typeof o.handler=="function"){if(h.rootBounds===null&&document.body.contains(t)===!0){o.observer.unobserve(t),o.observer.observe(t);return}(o.handler(h,o.observer)===!1||o.once===!0&&h.isIntersecting===!0)&&uu(t)}},s),o.observer.observe(t))}function uu(t){const o=t.__qvisible;o!==void 0&&(o.observer!==void 0&&o.observer.unobserve(t),delete t.__qvisible)}const md=lu({name:"intersection",mounted(t,{modifiers:o,value:l}){const u={once:o.once===!0};au(t,u,l),t.__qvisible=u},updated(t,o){const l=t.__qvisible;l!==void 0&&au(t,l,o.value)},beforeUnmount:uu});function vt(t,o){return t!==void 0&&t()||o}function gd(t,o){if(t!==void 0){const l=t();if(l!=null)return l.slice()}return o}function In(t,o){return t!==void 0?o.concat(t()):o}function pd(t,o){return t===void 0?o:o!==void 0?o.concat(t()):t()}function su(t,o,l,u,s,f){o.key=u+s;const h=i.h(t,o,l);return s===!0?i.withDirectives(h,f()):h}const vd=Ze({name:"QIntersection",props:{tag:{type:String,default:"div"},once:Boolean,transition:String,transitionDuration:{type:[String,Number],default:300},ssrPrerender:Boolean,margin:String,threshold:[Number,Array],root:{default:null},disable:Boolean,onVisibility:Function},setup(t,{slots:o,emit:l}){const u=i.ref(pn.value===!0?t.ssrPrerender:!1),s=i.computed(()=>t.root!==void 0||t.margin!==void 0||t.threshold!==void 0?{handler:x,cfg:{root:t.root,rootMargin:t.margin,threshold:t.threshold}}:x),f=i.computed(()=>t.disable!==!0&&(pn.value!==!0||t.once!==!0||t.ssrPrerender!==!0)),h=i.computed(()=>[[md,s.value,void 0,{once:t.once}]]),g=i.computed(()=>`--q-transition-duration: ${t.transitionDuration}ms`);function x(v){u.value!==v.isIntersecting&&(u.value=v.isIntersecting,t.onVisibility!==void 0&&l("visibility",u.value))}function O(){if(u.value===!0)return[i.h("div",{key:"content",style:g.value},vt(o.default))];if(o.hidden!==void 0)return[i.h("div",{key:"hidden",style:g.value},o.hidden())]}return()=>{const v=t.transition?[i.h(i.Transition,{name:"q-transition--"+t.transition},O)]:O();return su(t.tag,{class:"q-intersection"},v,"main",f.value,()=>h.value)}}}),Ml={xs:18,sm:24,md:32,lg:38,xl:46},pi={size:String};function vi(t,o=Ml){return i.computed(()=>t.size!==void 0?{fontSize:t.size in o?`${o[t.size]}px`:t.size}:null)}const _d={size:{type:[String,Number],default:"1em"},color:String};function bd(t){return{cSize:i.computed(()=>t.size in Ml?`${Ml[t.size]}px`:t.size),classes:i.computed(()=>"q-spinner"+(t.color?` text-${t.color}`:""))}}const Ll=Ze({name:"QSpinner",props:{..._d,thickness:{type:Number,default:5}},setup(t){const{cSize:o,classes:l}=bd(t);return()=>i.h("svg",{class:l.value+" q-spinner-mat",width:o.value,height:o.value,viewBox:"25 25 50 50"},[i.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":t.thickness,"stroke-miterlimit":"10"})])}}),yd={ratio:[String,Number]};function wd(t,o){return i.computed(()=>{const l=Number(t.ratio||(o!==void 0?o.value:void 0));return isNaN(l)!==!0&&l>0?{paddingBottom:`${100/l}%`}:null})}function ql(t){if(Object(t.$parent)===t.$parent)return t.$parent;let{parent:o}=t.$;for(;Object(o)===o;){if(Object(o.proxy)===o.proxy)return o.proxy;o=o.parent}}function cu(t){return t.appContext.config.globalProperties.$router!==void 0}function Ir(t){return t.isUnmounted===!0||t.isDeactivated===!0}function _i(){let t=null;const o=i.getCurrentInstance();function l(){t!==null&&(clearTimeout(t),t=null)}return i.onDeactivated(l),i.onBeforeUnmount(l),{removeTimeout:l,registerTimeout(u,s){l(),Ir(o)===!1&&(t=setTimeout(()=>{t=null,u()},s))}}}const Sd=Ze({name:"QImg",props:{...yd,src:String,srcset:String,sizes:String,alt:String,crossorigin:String,decoding:String,referrerpolicy:String,draggable:Boolean,loading:{type:String,default:"lazy"},loadingShowDelay:{type:[Number,String],default:0},fetchpriority:{type:String,default:"auto"},width:String,height:String,initialRatio:{type:[Number,String],default:1.7778},placeholderSrc:String,errorSrc:String,fit:{type:String,default:"cover"},position:{type:String,default:"50% 50%"},imgClass:String,imgStyle:Object,noSpinner:Boolean,noNativeMenu:Boolean,noTransition:Boolean,spinnerColor:String,spinnerSize:String},emits:["load","error"],setup(t,{slots:o,emit:l}){const u=i.ref(t.initialRatio),s=wd(t,u),f=i.getCurrentInstance(),{registerTimeout:h,removeTimeout:g}=_i(),{registerTimeout:x,removeTimeout:O}=_i(),v=i.computed(()=>t.placeholderSrc!==void 0?{src:t.placeholderSrc}:null),C=i.computed(()=>t.errorSrc!==void 0?{src:t.errorSrc,__qerror:!0}:null),E=[i.ref(null),i.ref(v.value)],y=i.ref(0),T=i.ref(!1),z=i.ref(!1),R=i.computed(()=>`q-img q-img--${t.noNativeMenu===!0?"no-":""}menu`),H=i.computed(()=>({width:t.width,height:t.height})),F=i.computed(()=>`q-img__image ${t.imgClass!==void 0?t.imgClass+" ":""}q-img__image--with${t.noTransition===!0?"out":""}-transition q-img__image--`),N=i.computed(()=>({...t.imgStyle,objectFit:t.fit,objectPosition:t.position}));function Q(){if(O(),t.loadingShowDelay===0){T.value=!0;return}x(()=>{T.value=!0},t.loadingShowDelay)}function G(){O(),T.value=!1}function j({target:k}){Ir(f)===!1&&(g(),u.value=k.naturalHeight===0?.5:k.naturalWidth/k.naturalHeight,K(k,1))}function K(k,te){te===1e3||Ir(f)===!0||(k.complete===!0?le(k):h(()=>{K(k,te+1)},50))}function le(k){Ir(f)!==!0&&(y.value=y.value^1,E[y.value].value=null,G(),k.getAttribute("__qerror")!=="true"&&(z.value=!1),l("load",k.currentSrc||k.src))}function V(k){g(),G(),z.value=!0,E[y.value].value=C.value,E[y.value^1].value=v.value,l("error",k)}function $(k){const te=E[k].value,P={key:"img_"+k,class:F.value,style:N.value,alt:t.alt,crossorigin:t.crossorigin,decoding:t.decoding,referrerpolicy:t.referrerpolicy,height:t.height,width:t.width,loading:t.loading,fetchpriority:t.fetchpriority,"aria-hidden":"true",draggable:t.draggable,...te};return y.value===k?Object.assign(P,{class:P.class+"current",onLoad:j,onError:V}):P.class+="loaded",i.h("div",{class:"q-img__container absolute-full",key:"img"+k},i.h("img",P))}function Z(){return T.value===!1?i.h("div",{key:"content",class:"q-img__content absolute-full q-anchor--skip"},vt(o[z.value===!0?"error":"default"])):i.h("div",{key:"loading",class:"q-img__loading absolute-full flex flex-center"},o.loading!==void 0?o.loading():t.noSpinner===!0?void 0:[i.h(Ll,{color:t.spinnerColor,size:t.spinnerSize})])}{let k=function(){i.watch(()=>t.src||t.srcset||t.sizes?{src:t.src,srcset:t.srcset,sizes:t.sizes}:null,te=>{g(),z.value=!1,te===null?(G(),E[y.value^1].value=v.value):Q(),E[y.value].value=te},{immediate:!0})};pn.value===!0?i.onMounted(k):k()}return()=>{const k=[];return s.value!==null&&k.push(i.h("div",{key:"filler",style:s.value})),E[0].value!==null&&k.push($(0)),E[1].value!==null&&k.push($(1)),k.push(i.h(i.Transition,{name:"q-transition--fade"},Z)),i.h("div",{key:"main",class:R.value,style:H.value,role:"img","aria-label":t.alt},k)}}}),fu="0 0 24 24",du=t=>t,Vl=t=>`ionicons ${t}`,hu={"mdi-":t=>`mdi ${t}`,"icon-":du,"bt-":t=>`bt ${t}`,"eva-":t=>`eva ${t}`,"ion-md":Vl,"ion-ios":Vl,"ion-logo":Vl,"iconfont ":du,"ti-":t=>`themify-icon ${t}`,"bi-":t=>`bootstrap-icons ${t}`},mu={o_:"-outlined",r_:"-round",s_:"-sharp"},gu={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},xd=new RegExp("^("+Object.keys(hu).join("|")+")"),Cd=new RegExp("^("+Object.keys(mu).join("|")+")"),pu=new RegExp("^("+Object.keys(gu).join("|")+")"),Ed=/^[Mm]\s?[-+]?\.?\d/,kd=/^img:/,Ad=/^svguse:/,Od=/^ion-/,Td=/^(fa-(sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,_t=Ze({name:"QIcon",props:{...pi,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(t,{slots:o}){const{proxy:{$q:l}}=i.getCurrentInstance(),u=vi(t),s=i.computed(()=>"q-icon"+(t.left===!0?" on-left":"")+(t.right===!0?" on-right":"")+(t.color!==void 0?` text-${t.color}`:"")),f=i.computed(()=>{let h,g=t.name;if(g==="none"||!g)return{none:!0};if(l.iconMapFn!==null){const v=l.iconMapFn(g);if(v!==void 0)if(v.icon!==void 0){if(g=v.icon,g==="none"||!g)return{none:!0}}else return{cls:v.cls,content:v.content!==void 0?v.content:" "}}if(Ed.test(g)===!0){const[v,C=fu]=g.split("|");return{svg:!0,viewBox:C,nodes:v.split("&&").map(E=>{const[y,T,z]=E.split("@@");return i.h("path",{style:T,d:y,transform:z})})}}if(kd.test(g)===!0)return{img:!0,src:g.substring(4)};if(Ad.test(g)===!0){const[v,C=fu]=g.split("|");return{svguse:!0,src:v.substring(7),viewBox:C}}let x=" ";const O=g.match(xd);if(O!==null)h=hu[O[1]](g);else if(Td.test(g)===!0)h=g;else if(Od.test(g)===!0)h=`ionicons ion-${l.platform.is.ios===!0?"ios":"md"}${g.substring(3)}`;else if(pu.test(g)===!0){h="notranslate material-symbols";const v=g.match(pu);v!==null&&(g=g.substring(6),h+=gu[v[1]]),x=g}else{h="notranslate material-icons";const v=g.match(Cd);v!==null&&(g=g.substring(2),h+=mu[v[1]]),x=g}return{cls:h,content:x}});return()=>{const h={class:s.value,style:u.value,"aria-hidden":"true",role:"presentation"};return f.value.none===!0?i.h(t.tag,h,vt(o.default)):f.value.img===!0?i.h(t.tag,h,In(o.default,[i.h("img",{src:f.value.src})])):f.value.svg===!0?i.h(t.tag,h,In(o.default,[i.h("svg",{viewBox:f.value.viewBox||"0 0 24 24"},f.value.nodes)])):f.value.svguse===!0?i.h(t.tag,h,In(o.default,[i.h("svg",{viewBox:f.value.viewBox},[i.h("use",{"xlink:href":f.value.src})])])):(f.value.cls!==void 0&&(h.class+=" "+f.value.cls),i.h(t.tag,h,In(o.default,[f.value.content])))}}}),Bd={class:"card-select-container"},Rd=["onClick"],Id={class:"check"},Md={class:"row justify-center items-center",style:{height:"100%"}},Ld=["onClick"],qd=i.defineComponent({__name:"CardsSelectControl",props:i.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=i.useModel(t,"modelValue"),l=t,{control:u}=i.toRefs(l);function s(g){if(u.value.multiple){let x=Ne.cloneDeep(o.value);g.exclusive?x=[g.value]:(x=x.filter(O=>{var v,C;return!((C=(v=u.value.options)==null?void 0:v.find(E=>E.value===O))!=null&&C.exclusive)}),x.includes(g.value)?x=x.filter(O=>O!==g.value):x.push(g.value)),o.value=x}else o.value=g.value}function f(g){return h(g)?"active":""}function h(g){let x;return u.value.multiple?x=(o.value||[]).includes(String(g.value)):x=o.value===g.value,x}return(g,x)=>{const O=i.resolveComponent("ControlLabel");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.unref(u).label?(i.openBlock(),i.createBlock(O,{key:0,label:i.unref(u).label},null,8,["label"])):i.createCommentVNode("",!0),i.createElementVNode("div",Bd,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(u).options,(v,C)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:C},[v.image?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(`image-card ${f(v)}`),onClick:()=>s(v)},[i.createVNode(Sd,{src:v.image,height:"200px",width:"200px",fit:"fill",class:"image"},null,8,["src"]),i.createElementVNode("div",Id,[i.createElementVNode("div",Md,[h(v)?(i.openBlock(),i.createBlock(_t,{key:0,name:"check",size:"25px"})):i.createCommentVNode("",!0)])])],10,Rd)):(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(`card-option ${f(v)}`),onClick:()=>s(v)},[i.createElementVNode("span",null,i.toDisplayString(v.label),1)],10,Ld))],64))),128))])],64)}}}),Ot=(t,o)=>{const l=t.__vccOpts||t;for(const[u,s]of o)l[u]=s;return l},Vd=Ot(qd,[["__scopeId","data-v-148468d6"]]),lr={dark:{type:Boolean,default:null}};function or(t,o){return i.computed(()=>t.dark===null?o.dark.isActive:t.dark)}function Pd(t,o){const l=i.ref(null),u=i.computed(()=>t.disable===!0?null:i.h("span",{ref:l,class:"no-outline",tabindex:-1}));function s(f){const h=o.value;f!==void 0&&f.type.indexOf("key")===0?h!==null&&document.activeElement!==h&&h.contains(document.activeElement)===!0&&h.focus():l.value!==null&&(f===void 0||h!==null&&h.contains(f.target)===!0)&&l.value.focus()}return{refocusTargetEl:u,refocusTarget:s}}const Pl={name:String};function Nd(t={}){return(o,l,u)=>{o[l](i.h("input",{class:"hidden"+(u||""),...t.value}))}}function vu(t){return i.computed(()=>t.name||t.for)}const Dd={xs:30,sm:35,md:40,lg:50,xl:60},ct={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const t=Object.defineProperty({},"passive",{get(){Object.assign(ct,{hasPassive:!0,passive:{passive:!0},notPassive:{passive:!1},passiveCapture:{passive:!0,capture:!0},notPassiveCapture:{passive:!1,capture:!0}})}});window.addEventListener("qtest",null,t),window.removeEventListener("qtest",null,t)}catch{}function $d(){}function _u(t){return t.touches&&t.touches[0]?t=t.touches[0]:t.changedTouches&&t.changedTouches[0]?t=t.changedTouches[0]:t.targetTouches&&t.targetTouches[0]&&(t=t.targetTouches[0]),{top:t.clientY,left:t.clientX}}function Fd(t){if(t.path)return t.path;if(t.composedPath)return t.composedPath();const o=[];let l=t.target;for(;l;){if(o.push(l),l.tagName==="HTML")return o.push(document),o.push(window),o;l=l.parentElement}}function Yt(t){t.stopPropagation()}function Nt(t){t.cancelable!==!1&&t.preventDefault()}function Ke(t){t.cancelable!==!1&&t.preventDefault(),t.stopPropagation()}function Nl(t,o,l){const u=`__q_${o}_evt`;t[u]=t[u]!==void 0?t[u].concat(l):l,l.forEach(s=>{s[0].addEventListener(s[1],t[s[2]],ct[s[3]])})}function bu(t,o){const l=`__q_${o}_evt`;t[l]!==void 0&&(t[l].forEach(u=>{u[0].removeEventListener(u[1],t[u[2]],ct[u[3]])}),t[l]=void 0)}const yu={...lr,...pi,...Pl,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:t=>t==="tf"||t==="ft"},toggleIndeterminate:Boolean,label:String,leftLabel:Boolean,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},wu=["update:modelValue"];function Su(t,o){const{props:l,slots:u,emit:s,proxy:f}=i.getCurrentInstance(),{$q:h}=f,g=or(l,h),x=i.ref(null),{refocusTargetEl:O,refocusTarget:v}=Pd(l,x),C=vi(l,Dd),E=i.computed(()=>l.val!==void 0&&Array.isArray(l.modelValue)),y=i.computed(()=>{const k=i.toRaw(l.val);return E.value===!0?l.modelValue.findIndex(te=>i.toRaw(te)===k):-1}),T=i.computed(()=>E.value===!0?y.value!==-1:i.toRaw(l.modelValue)===i.toRaw(l.trueValue)),z=i.computed(()=>E.value===!0?y.value===-1:i.toRaw(l.modelValue)===i.toRaw(l.falseValue)),R=i.computed(()=>T.value===!1&&z.value===!1),H=i.computed(()=>l.disable===!0?-1:l.tabindex||0),F=i.computed(()=>`q-${t} cursor-pointer no-outline row inline no-wrap items-center`+(l.disable===!0?" disabled":"")+(g.value===!0?` q-${t}--dark`:"")+(l.dense===!0?` q-${t}--dense`:"")+(l.leftLabel===!0?" reverse":"")),N=i.computed(()=>{const k=T.value===!0?"truthy":z.value===!0?"falsy":"indet",te=l.color!==void 0&&(l.keepColor===!0||(t==="toggle"?T.value===!0:z.value!==!0))?` text-${l.color}`:"";return`q-${t}__inner relative-position non-selectable q-${t}__inner--${k}${te}`}),Q=i.computed(()=>{const k={type:"checkbox"};return l.name!==void 0&&Object.assign(k,{".checked":T.value,"^checked":T.value===!0?"checked":void 0,name:l.name,value:E.value===!0?l.val:l.trueValue}),k}),G=Nd(Q),j=i.computed(()=>{const k={tabindex:H.value,role:t==="toggle"?"switch":"checkbox","aria-label":l.label,"aria-checked":R.value===!0?"mixed":T.value===!0?"true":"false"};return l.disable===!0&&(k["aria-disabled"]="true"),k});function K(k){k!==void 0&&(Ke(k),v(k)),l.disable!==!0&&s("update:modelValue",le(),k)}function le(){if(E.value===!0){if(T.value===!0){const k=l.modelValue.slice();return k.splice(y.value,1),k}return l.modelValue.concat([l.val])}if(T.value===!0){if(l.toggleOrder!=="ft"||l.toggleIndeterminate===!1)return l.falseValue}else if(z.value===!0){if(l.toggleOrder==="ft"||l.toggleIndeterminate===!1)return l.trueValue}else return l.toggleOrder!=="ft"?l.trueValue:l.falseValue;return l.indeterminateValue}function V(k){(k.keyCode===13||k.keyCode===32)&&Ke(k)}function $(k){(k.keyCode===13||k.keyCode===32)&&K(k)}const Z=o(T,R);return Object.assign(f,{toggle:K}),()=>{const k=Z();l.disable!==!0&&G(k,"unshift",` q-${t}__native absolute q-ma-none q-pa-none`);const te=[i.h("div",{class:N.value,style:C.value,"aria-hidden":"true"},k)];O.value!==null&&te.push(O.value);const P=l.label!==void 0?In(u.default,[l.label]):vt(u.default);return P!==void 0&&te.push(i.h("div",{class:`q-${t}__label q-anchor--skip`},P)),i.h("div",{ref:x,class:F.value,...j.value,onClick:K,onKeydown:V,onKeyup:$},te)}}const Ud=i.h("div",{key:"svg",class:"q-checkbox__bg absolute"},[i.h("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24"},[i.h("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),i.h("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]),xu=Ze({name:"QCheckbox",props:yu,emits:wu,setup(t){function o(l,u){const s=i.computed(()=>(l.value===!0?t.checkedIcon:u.value===!0?t.indeterminateIcon:t.uncheckedIcon)||null);return()=>s.value!==null?[i.h("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[i.h(_t,{class:"q-checkbox__icon",name:s.value})])]:[Ud]}return Su("checkbox",o)}}),Cu=i.defineComponent({__name:"SimpleCheckbox",props:i.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=i.useModel(t,"modelValue");return(l,u)=>(i.openBlock(),i.createBlock(xu,{outlined:"",label:l.control.label,color:"green-10","model-value":!!o.value,"onUpdate:modelValue":u[0]||(u[0]=s=>o.value=!o.value),style:{height:"66.2px"}},null,8,["label","model-value"]))}}),zd=Ze({name:"QToggle",props:{...yu,icon:String,iconColor:String},emits:wu,setup(t){function o(l,u){const s=i.computed(()=>(l.value===!0?t.checkedIcon:u.value===!0?t.indeterminateIcon:t.uncheckedIcon)||t.icon),f=i.computed(()=>l.value===!0?t.iconColor:null);return()=>[i.h("div",{class:"q-toggle__track"}),i.h("div",{class:"q-toggle__thumb absolute flex flex-center no-wrap"},s.value!==void 0?[i.h(_t,{name:s.value,color:f.value})]:void 0)]}return Su("toggle",o)}}),Hd=i.defineComponent({__name:"SimpleSwitch",props:i.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=i.useModel(t,"modelValue");return(l,u)=>(i.openBlock(),i.createBlock(zd,{falseValue:0,trueValue:1,outlined:"",label:l.control.label,modelValue:o.value,"onUpdate:modelValue":u[0]||(u[0]=s=>o.value=s),leftLabel:"",color:"green-10",style:{height:"66.2px"}},null,8,["label","modelValue"]))}});let Dl,bi=0;const et=new Array(256);for(let t=0;t<256;t++)et[t]=(t+256).toString(16).substring(1);const Wd=(()=>{const t=typeof crypto<"u"?crypto:typeof window<"u"?window.crypto||window.msCrypto:void 0;if(t!==void 0){if(t.randomBytes!==void 0)return t.randomBytes;if(t.getRandomValues!==void 0)return o=>{const l=new Uint8Array(o);return t.getRandomValues(l),l}}return o=>{const l=[];for(let u=o;u>0;u--)l.push(Math.floor(Math.random()*256));return l}})(),Eu=4096;function $l(){(Dl===void 0||bi+16>Eu)&&(bi=0,Dl=Wd(Eu));const t=Array.prototype.slice.call(Dl,bi,bi+=16);return t[6]=t[6]&15|64,t[8]=t[8]&63|128,et[t[0]]+et[t[1]]+et[t[2]]+et[t[3]]+"-"+et[t[4]]+et[t[5]]+"-"+et[t[6]]+et[t[7]]+"-"+et[t[8]]+et[t[9]]+"-"+et[t[10]]+et[t[11]]+et[t[12]]+et[t[13]]+et[t[14]]+et[t[15]]}function Gd(t){return t??null}function ku(t,o){return t??(o===!0?`f_${$l()}`:null)}function Kd({getValue:t,required:o=!0}={}){if(pn.value===!0){const l=t!==void 0?i.ref(Gd(t())):i.ref(null);return o===!0&&l.value===null&&i.onMounted(()=>{l.value=`f_${$l()}`}),t!==void 0&&i.watch(t,u=>{l.value=ku(u,o)}),l}return t!==void 0?i.computed(()=>ku(t(),o)):i.ref(`f_${$l()}`)}const Au=/^on[A-Z]/;function jd(){const{attrs:t,vnode:o}=i.getCurrentInstance(),l={listeners:i.ref({}),attributes:i.ref({})};function u(){const s={},f={};for(const h in t)h!=="class"&&h!=="style"&&Au.test(h)===!1&&(s[h]=t[h]);for(const h in o.props)Au.test(h)===!0&&(f[h]=o.props[h]);l.attributes.value=s,l.listeners.value=f}return i.onBeforeUpdate(u),u(),l}const Yd="_q_",Qd="_q_fo_";function Zd({validate:t,resetValidation:o,requiresQForm:l}){const u=i.inject(Qd,!1);if(u!==!1){const{props:s,proxy:f}=i.getCurrentInstance();Object.assign(f,{validate:t,resetValidation:o}),i.watch(()=>s.disable,h=>{h===!0?(typeof o=="function"&&o(),u.unbindComponent(f)):u.bindComponent(f)}),i.onMounted(()=>{s.disable!==!0&&u.bindComponent(f)}),i.onBeforeUnmount(()=>{s.disable!==!0&&u.unbindComponent(f)})}else l===!0&&console.error("Parent QForm not found on useFormChild()!")}const Ou=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,Tu=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,Bu=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,yi=/^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])\)$/,wi=/^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)\)$/,Fl={date:t=>/^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(t),time:t=>/^([0-1]?\d|2[0-3]):[0-5]\d$/.test(t),fulltime:t=>/^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/.test(t),timeOrFulltime:t=>/^([0-1]?\d|2[0-3]):[0-5]\d(:[0-5]\d)?$/.test(t),email:t=>/^(([^<>()\[\]\\.,;:\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(t),hexColor:t=>Ou.test(t),hexaColor:t=>Tu.test(t),hexOrHexaColor:t=>Bu.test(t),rgbColor:t=>yi.test(t),rgbaColor:t=>wi.test(t),rgbOrRgbaColor:t=>yi.test(t)||wi.test(t),hexOrRgbColor:t=>Ou.test(t)||yi.test(t),hexaOrRgbaColor:t=>Tu.test(t)||wi.test(t),anyColor:t=>Bu.test(t)||yi.test(t)||wi.test(t)};function Ru(t,o=250,l){let u=null;function s(){const f=arguments,h=()=>{u=null,t.apply(this,f)};u!==null&&clearTimeout(u),u=setTimeout(h,o)}return s.cancel=()=>{u!==null&&clearTimeout(u)},s}const Xd=[!0,!1,"ondemand"],Jd={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:t=>Xd.includes(t)}};function eh(t,o){const{props:l,proxy:u}=i.getCurrentInstance(),s=i.ref(!1),f=i.ref(null),h=i.ref(!1);Zd({validate:z,resetValidation:T});let g=0,x;const O=i.computed(()=>l.rules!==void 0&&l.rules!==null&&l.rules.length!==0),v=i.computed(()=>l.disable!==!0&&O.value===!0&&o.value===!1),C=i.computed(()=>l.error===!0||s.value===!0),E=i.computed(()=>typeof l.errorMessage=="string"&&l.errorMessage.length!==0?l.errorMessage:f.value);i.watch(()=>l.modelValue,()=>{h.value=!0,v.value===!0&&l.lazyRules===!1&&R()});function y(){l.lazyRules!=="ondemand"&&v.value===!0&&h.value===!0&&R()}i.watch(()=>l.reactiveRules,H=>{H===!0?x===void 0&&(x=i.watch(()=>l.rules,y,{immediate:!0,deep:!0})):x!==void 0&&(x(),x=void 0)},{immediate:!0}),i.watch(()=>l.lazyRules,y),i.watch(t,H=>{H===!0?h.value=!0:v.value===!0&&l.lazyRules!=="ondemand"&&R()});function T(){g++,o.value=!1,h.value=!1,s.value=!1,f.value=null,R.cancel()}function z(H=l.modelValue){if(l.disable===!0||O.value===!1)return!0;const F=++g,N=o.value!==!0?()=>{h.value=!0}:()=>{},Q=(j,K)=>{j===!0&&N(),s.value=j,f.value=K||null,o.value=!1},G=[];for(let j=0;j<l.rules.length;j++){const K=l.rules[j];let le;if(typeof K=="function"?le=K(H,Fl):typeof K=="string"&&Fl[K]!==void 0&&(le=Fl[K](H)),le===!1||typeof le=="string")return Q(!0,le),!1;le!==!0&&le!==void 0&&G.push(le)}return G.length===0?(Q(!1),!0):(o.value=!0,Promise.all(G).then(j=>{if(j===void 0||Array.isArray(j)===!1||j.length===0)return F===g&&Q(!1),!0;const K=j.find(le=>le===!1||typeof le=="string");return F===g&&Q(K!==void 0,K),K===void 0},j=>(F===g&&(console.error(j),Q(!0)),!1)))}const R=Ru(z,0);return i.onBeforeUnmount(()=>{x!==void 0&&x(),R.cancel()}),Object.assign(u,{resetValidation:T,validate:z}),gi(u,"hasError",()=>C.value),{isDirtyModel:h,hasRules:O,hasError:C,errorMessage:E,validate:z,resetValidation:T}}let Mn=[],Mr=[];function Iu(t){Mr=Mr.filter(o=>o!==t)}function th(t){Iu(t),Mr.push(t)}function Mu(t){Iu(t),Mr.length===0&&Mn.length!==0&&(Mn[Mn.length-1](),Mn=[])}function Si(t){Mr.length===0?t():Mn.push(t)}function nh(t){Mn=Mn.filter(o=>o!==t)}function Lr(t){return t!=null&&(""+t).length!==0}const xi={...{...lr,...Jd,label:String,stackLabel:Boolean,hint:String,hideHint:Boolean,prefix:String,suffix:String,labelColor:String,color:String,bgColor:String,filled:Boolean,outlined:Boolean,borderless:Boolean,standout:[Boolean,String],square:Boolean,loading:Boolean,labelSlot:Boolean,bottomSlots:Boolean,hideBottomSpace:Boolean,rounded:Boolean,dense:Boolean,itemAligned:Boolean,counter:Boolean,clearable:Boolean,clearIcon:String,disable:Boolean,readonly:Boolean,autofocus:Boolean,for:String},maxlength:[Number,String]},Ul=["update:modelValue","clear","focus","blur"];function zl({requiredForAttr:t=!0,tagProp:o,changeEvent:l=!1}={}){const{props:u,proxy:s}=i.getCurrentInstance(),f=or(u,s.$q),h=Kd({required:t,getValue:()=>u.for});return{requiredForAttr:t,changeEvent:l,tag:o===!0?i.computed(()=>u.tag):{value:"label"},isDark:f,editable:i.computed(()=>u.disable!==!0&&u.readonly!==!0),innerLoading:i.ref(!1),focused:i.ref(!1),hasPopupOpen:!1,splitAttrs:jd(),targetUid:h,rootRef:i.ref(null),targetRef:i.ref(null),controlRef:i.ref(null)}}function Hl(t){const{props:o,emit:l,slots:u,attrs:s,proxy:f}=i.getCurrentInstance(),{$q:h}=f;let g=null;t.hasValue===void 0&&(t.hasValue=i.computed(()=>Lr(o.modelValue))),t.emitValue===void 0&&(t.emitValue=W=>{l("update:modelValue",W)}),t.controlEvents===void 0&&(t.controlEvents={onFocusin:V,onFocusout:$}),Object.assign(t,{clearValue:Z,onControlFocusin:V,onControlFocusout:$,focus:K}),t.computedCounter===void 0&&(t.computedCounter=i.computed(()=>{if(o.counter!==!1){const W=typeof o.modelValue=="string"||typeof o.modelValue=="number"?(""+o.modelValue).length:Array.isArray(o.modelValue)===!0?o.modelValue.length:0,se=o.maxlength!==void 0?o.maxlength:o.maxValues;return W+(se!==void 0?" / "+se:"")}}));const{isDirtyModel:x,hasRules:O,hasError:v,errorMessage:C,resetValidation:E}=eh(t.focused,t.innerLoading),y=t.floatingLabel!==void 0?i.computed(()=>o.stackLabel===!0||t.focused.value===!0||t.floatingLabel.value===!0):i.computed(()=>o.stackLabel===!0||t.focused.value===!0||t.hasValue.value===!0),T=i.computed(()=>o.bottomSlots===!0||o.hint!==void 0||O.value===!0||o.counter===!0||o.error!==null),z=i.computed(()=>o.filled===!0?"filled":o.outlined===!0?"outlined":o.borderless===!0?"borderless":o.standout?"standout":"standard"),R=i.computed(()=>`q-field row no-wrap items-start q-field--${z.value}`+(t.fieldClass!==void 0?` ${t.fieldClass.value}`:"")+(o.rounded===!0?" q-field--rounded":"")+(o.square===!0?" q-field--square":"")+(y.value===!0?" q-field--float":"")+(F.value===!0?" q-field--labeled":"")+(o.dense===!0?" q-field--dense":"")+(o.itemAligned===!0?" q-field--item-aligned q-item-type":"")+(t.isDark.value===!0?" q-field--dark":"")+(t.getControl===void 0?" q-field--auto-height":"")+(t.focused.value===!0?" q-field--focused":"")+(v.value===!0?" q-field--error":"")+(v.value===!0||t.focused.value===!0?" q-field--highlighted":"")+(o.hideBottomSpace!==!0&&T.value===!0?" q-field--with-bottom":"")+(o.disable===!0?" q-field--disabled":o.readonly===!0?" q-field--readonly":"")),H=i.computed(()=>"q-field__control relative-position row no-wrap"+(o.bgColor!==void 0?` bg-${o.bgColor}`:"")+(v.value===!0?" text-negative":typeof o.standout=="string"&&o.standout.length!==0&&t.focused.value===!0?` ${o.standout}`:o.color!==void 0?` text-${o.color}`:"")),F=i.computed(()=>o.labelSlot===!0||o.label!==void 0),N=i.computed(()=>"q-field__label no-pointer-events absolute ellipsis"+(o.labelColor!==void 0&&v.value!==!0?` text-${o.labelColor}`:"")),Q=i.computed(()=>({id:t.targetUid.value,editable:t.editable.value,focused:t.focused.value,floatingLabel:y.value,modelValue:o.modelValue,emitValue:t.emitValue})),G=i.computed(()=>{const W={};return t.targetUid.value&&(W.for=t.targetUid.value),o.disable===!0&&(W["aria-disabled"]="true"),W});function j(){const W=document.activeElement;let se=t.targetRef!==void 0&&t.targetRef.value;se&&(W===null||W.id!==t.targetUid.value)&&(se.hasAttribute("tabindex")===!0||(se=se.querySelector("[tabindex]")),se&&se!==W&&se.focus({preventScroll:!0}))}function K(){Si(j)}function le(){nh(j);const W=document.activeElement;W!==null&&t.rootRef.value.contains(W)&&W.blur()}function V(W){g!==null&&(clearTimeout(g),g=null),t.editable.value===!0&&t.focused.value===!1&&(t.focused.value=!0,l("focus",W))}function $(W,se){g!==null&&clearTimeout(g),g=setTimeout(()=>{g=null,!(document.hasFocus()===!0&&(t.hasPopupOpen===!0||t.controlRef===void 0||t.controlRef.value===null||t.controlRef.value.contains(document.activeElement)!==!1))&&(t.focused.value===!0&&(t.focused.value=!1,l("blur",W)),se!==void 0&&se())})}function Z(W){Ke(W),h.platform.is.mobile!==!0?(t.targetRef!==void 0&&t.targetRef.value||t.rootRef.value).focus():t.rootRef.value.contains(document.activeElement)===!0&&document.activeElement.blur(),o.type==="file"&&(t.inputRef.value.value=null),l("update:modelValue",null),t.changeEvent===!0&&l("change",null),l("clear",o.modelValue),i.nextTick(()=>{const se=x.value;E(),x.value=se})}function k(W){[13,32].includes(W.keyCode)&&Z(W)}function te(){const W=[];return u.prepend!==void 0&&W.push(i.h("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:Nt},u.prepend())),W.push(i.h("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},P())),v.value===!0&&o.noErrorIcon===!1&&W.push(ue("error",[i.h(_t,{name:h.iconSet.field.error,color:"negative"})])),o.loading===!0||t.innerLoading.value===!0?W.push(ue("inner-loading-append",u.loading!==void 0?u.loading():[i.h(Ll,{color:o.color})])):o.clearable===!0&&t.hasValue.value===!0&&t.editable.value===!0&&W.push(ue("inner-clearable-append",[i.h(_t,{class:"q-field__focusable-action",name:o.clearIcon||h.iconSet.field.clear,tabindex:0,role:"button","aria-hidden":"false","aria-label":h.lang.label.clear,onKeyup:k,onClick:Z})])),u.append!==void 0&&W.push(i.h("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:Nt},u.append())),t.getInnerAppend!==void 0&&W.push(ue("inner-append",t.getInnerAppend())),t.getControlChild!==void 0&&W.push(t.getControlChild()),W}function P(){const W=[];return o.prefix!==void 0&&o.prefix!==null&&W.push(i.h("div",{class:"q-field__prefix no-pointer-events row items-center"},o.prefix)),t.getShadowControl!==void 0&&t.hasShadow.value===!0&&W.push(t.getShadowControl()),t.getControl!==void 0?W.push(t.getControl()):u.rawControl!==void 0?W.push(u.rawControl()):u.control!==void 0&&W.push(i.h("div",{ref:t.targetRef,class:"q-field__native row",tabindex:-1,...t.splitAttrs.attributes.value,"data-autofocus":o.autofocus===!0||void 0},u.control(Q.value))),F.value===!0&&W.push(i.h("div",{class:N.value},vt(u.label,o.label))),o.suffix!==void 0&&o.suffix!==null&&W.push(i.h("div",{class:"q-field__suffix no-pointer-events row items-center"},o.suffix)),W.concat(vt(u.default))}function ae(){let W,se;v.value===!0?C.value!==null?(W=[i.h("div",{role:"alert"},C.value)],se=`q--slot-error-${C.value}`):(W=vt(u.error),se="q--slot-error"):(o.hideHint!==!0||t.focused.value===!0)&&(o.hint!==void 0?(W=[i.h("div",o.hint)],se=`q--slot-hint-${o.hint}`):(W=vt(u.hint),se="q--slot-hint"));const ge=o.counter===!0||u.counter!==void 0;if(o.hideBottomSpace===!0&&ge===!1&&W===void 0)return;const B=i.h("div",{key:se,class:"q-field__messages col"},W);return i.h("div",{class:"q-field__bottom row items-start q-field__bottom--"+(o.hideBottomSpace!==!0?"animated":"stale"),onClick:Nt},[o.hideBottomSpace===!0?B:i.h(i.Transition,{name:"q-transition--field-message"},()=>B),ge===!0?i.h("div",{class:"q-field__counter"},u.counter!==void 0?u.counter():t.computedCounter.value):null])}function ue(W,se){return se===null?null:i.h("div",{key:W,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},se)}let fe=!1;return i.onDeactivated(()=>{fe=!0}),i.onActivated(()=>{fe===!0&&o.autofocus===!0&&f.focus()}),o.autofocus===!0&&i.onMounted(()=>{f.focus()}),i.onBeforeUnmount(()=>{g!==null&&clearTimeout(g)}),Object.assign(f,{focus:K,blur:le}),function(){const se=t.getControl===void 0&&u.control===void 0?{...t.splitAttrs.attributes.value,"data-autofocus":o.autofocus===!0||void 0,...G.value}:G.value;return i.h(t.tag.value,{ref:t.rootRef,class:[R.value,s.class],style:s.style,...se},[u.before!==void 0?i.h("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:Nt},u.before()):null,i.h("div",{class:"q-field__inner relative-position col self-stretch"},[i.h("div",{ref:t.controlRef,class:H.value,tabindex:-1,...t.controlEvents},te()),T.value===!0?ae():null]),u.after!==void 0?i.h("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:Nt},u.after()):null])}}function Wl(t){return t!==Object(t)||t.isComposing===!0||t.qKeyEvent===!0}function Ln(t,o){return Wl(t)===!0?!1:[].concat(o).includes(t.keyCode)}const Lu={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},Ci={"#":{pattern:"[\\d]",negate:"[^\\d]"},S:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]"},N:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]"},A:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:t=>t.toLocaleUpperCase()},a:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:t=>t.toLocaleLowerCase()},X:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:t=>t.toLocaleUpperCase()},x:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:t=>t.toLocaleLowerCase()}},qu=Object.keys(Ci);qu.forEach(t=>{Ci[t].regex=new RegExp(Ci[t].pattern)});const rh=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+qu.join("")+"])|(.)","g"),Vu=/[.*+?^${}()|[\]\\]/g,We="",ih={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean};function lh(t,o,l,u){let s,f,h,g,x,O;const v=i.ref(null),C=i.ref(y());function E(){return t.autogrow===!0||["textarea","text","search","url","tel","password"].includes(t.type)}i.watch(()=>t.type+t.autogrow,z),i.watch(()=>t.mask,V=>{if(V!==void 0)R(C.value,!0);else{const $=K(C.value);z(),t.modelValue!==$&&o("update:modelValue",$)}}),i.watch(()=>t.fillMask+t.reverseFillMask,()=>{v.value===!0&&R(C.value,!0)}),i.watch(()=>t.unmaskedValue,()=>{v.value===!0&&R(C.value)});function y(){if(z(),v.value===!0){const V=G(K(t.modelValue));return t.fillMask!==!1?le(V):V}return t.modelValue}function T(V){if(V<s.length)return s.slice(-V);let $="",Z=s;const k=Z.indexOf(We);if(k!==-1){for(let te=V-Z.length;te>0;te--)$+=We;Z=Z.slice(0,k)+$+Z.slice(k)}return Z}function z(){if(v.value=t.mask!==void 0&&t.mask.length!==0&&E(),v.value===!1){g=void 0,s="",f="";return}const V=Lu[t.mask]===void 0?t.mask:Lu[t.mask],$=typeof t.fillMask=="string"&&t.fillMask.length!==0?t.fillMask.slice(0,1):"_",Z=$.replace(Vu,"\\$&"),k=[],te=[],P=[];let ae=t.reverseFillMask===!0,ue="",fe="";V.replace(rh,(B,A,ie,ve,_e)=>{if(ve!==void 0){const U=Ci[ve];P.push(U),fe=U.negate,ae===!0&&(te.push("(?:"+fe+"+)?("+U.pattern+"+)?(?:"+fe+"+)?("+U.pattern+"+)?"),ae=!1),te.push("(?:"+fe+"+)?("+U.pattern+")?")}else if(ie!==void 0)ue="\\"+(ie==="\\"?"":ie),P.push(ie),k.push("([^"+ue+"]+)?"+ue+"?");else{const U=A!==void 0?A:_e;ue=U==="\\"?"\\\\\\\\":U.replace(Vu,"\\\\$&"),P.push(U),k.push("([^"+ue+"]+)?"+ue+"?")}});const W=new RegExp("^"+k.join("")+"("+(ue===""?".":"[^"+ue+"]")+"+)?"+(ue===""?"":"["+ue+"]*")+"$"),se=te.length-1,ge=te.map((B,A)=>A===0&&t.reverseFillMask===!0?new RegExp("^"+Z+"*"+B):A===se?new RegExp("^"+B+"("+(fe===""?".":fe)+"+)?"+(t.reverseFillMask===!0?"$":Z+"*")):new RegExp("^"+B));h=P,g=B=>{const A=W.exec(t.reverseFillMask===!0?B:B.slice(0,P.length+1));A!==null&&(B=A.slice(1).join(""));const ie=[],ve=ge.length;for(let _e=0,U=B;_e<ve;_e++){const ne=ge[_e].exec(U);if(ne===null)break;U=U.slice(ne.shift().length),ie.push(...ne)}return ie.length!==0?ie.join(""):B},s=P.map(B=>typeof B=="string"?B:We).join(""),f=s.split(We).join($)}function R(V,$,Z){const k=u.value,te=k.selectionEnd,P=k.value.length-te,ae=K(V);$===!0&&z();const ue=G(ae),fe=t.fillMask!==!1?le(ue):ue,W=C.value!==fe;k.value!==fe&&(k.value=fe),W===!0&&(C.value=fe),document.activeElement===k&&i.nextTick(()=>{if(fe===f){const ge=t.reverseFillMask===!0?f.length:0;k.setSelectionRange(ge,ge,"forward");return}if(Z==="insertFromPaste"&&t.reverseFillMask!==!0){const ge=k.selectionEnd;let B=te-1;for(let A=x;A<=B&&A<ge;A++)s[A]!==We&&B++;F.right(k,B);return}if(["deleteContentBackward","deleteContentForward"].indexOf(Z)!==-1){const ge=t.reverseFillMask===!0?te===0?fe.length>ue.length?1:0:Math.max(0,fe.length-(fe===f?0:Math.min(ue.length,P)+1))+1:te;k.setSelectionRange(ge,ge,"forward");return}if(t.reverseFillMask===!0)if(W===!0){const ge=Math.max(0,fe.length-(fe===f?0:Math.min(ue.length,P+1)));ge===1&&te===1?k.setSelectionRange(ge,ge,"forward"):F.rightReverse(k,ge)}else{const ge=fe.length-P;k.setSelectionRange(ge,ge,"backward")}else if(W===!0){const ge=Math.max(0,s.indexOf(We),Math.min(ue.length,te)-1);F.right(k,ge)}else{const ge=te-1;F.right(k,ge)}});const se=t.unmaskedValue===!0?K(fe):fe;String(t.modelValue)!==se&&(t.modelValue!==null||se!=="")&&l(se,!0)}function H(V,$,Z){const k=G(K(V.value));$=Math.max(0,s.indexOf(We),Math.min(k.length,$)),x=$,V.setSelectionRange($,Z,"forward")}const F={left(V,$){const Z=s.slice($-1).indexOf(We)===-1;let k=Math.max(0,$-1);for(;k>=0;k--)if(s[k]===We){$=k,Z===!0&&$++;break}if(k<0&&s[$]!==void 0&&s[$]!==We)return F.right(V,0);$>=0&&V.setSelectionRange($,$,"backward")},right(V,$){const Z=V.value.length;let k=Math.min(Z,$+1);for(;k<=Z;k++)if(s[k]===We){$=k;break}else s[k-1]===We&&($=k);if(k>Z&&s[$-1]!==void 0&&s[$-1]!==We)return F.left(V,Z);V.setSelectionRange($,$,"forward")},leftReverse(V,$){const Z=T(V.value.length);let k=Math.max(0,$-1);for(;k>=0;k--)if(Z[k-1]===We){$=k;break}else if(Z[k]===We&&($=k,k===0))break;if(k<0&&Z[$]!==void 0&&Z[$]!==We)return F.rightReverse(V,0);$>=0&&V.setSelectionRange($,$,"backward")},rightReverse(V,$){const Z=V.value.length,k=T(Z),te=k.slice(0,$+1).indexOf(We)===-1;let P=Math.min(Z,$+1);for(;P<=Z;P++)if(k[P-1]===We){$=P,$>0&&te===!0&&$--;break}if(P>Z&&k[$-1]!==void 0&&k[$-1]!==We)return F.leftReverse(V,Z);V.setSelectionRange($,$,"forward")}};function N(V){o("click",V),O=void 0}function Q(V){if(o("keydown",V),Wl(V)===!0||V.altKey===!0)return;const $=u.value,Z=$.selectionStart,k=$.selectionEnd;if(V.shiftKey||(O=void 0),V.keyCode===37||V.keyCode===39){V.shiftKey&&O===void 0&&(O=$.selectionDirection==="forward"?Z:k);const te=F[(V.keyCode===39?"right":"left")+(t.reverseFillMask===!0?"Reverse":"")];if(V.preventDefault(),te($,O===Z?k:Z),V.shiftKey){const P=$.selectionStart;$.setSelectionRange(Math.min(O,P),Math.max(O,P),"forward")}}else V.keyCode===8&&t.reverseFillMask!==!0&&Z===k?(F.left($,Z),$.setSelectionRange($.selectionStart,k,"backward")):V.keyCode===46&&t.reverseFillMask===!0&&Z===k&&(F.rightReverse($,k),$.setSelectionRange(Z,$.selectionEnd,"forward"))}function G(V){if(V==null||V==="")return"";if(t.reverseFillMask===!0)return j(V);const $=h;let Z=0,k="";for(let te=0;te<$.length;te++){const P=V[Z],ae=$[te];if(typeof ae=="string")k+=ae,P===ae&&Z++;else if(P!==void 0&&ae.regex.test(P))k+=ae.transform!==void 0?ae.transform(P):P,Z++;else return k}return k}function j(V){const $=h,Z=s.indexOf(We);let k=V.length-1,te="";for(let P=$.length-1;P>=0&&k!==-1;P--){const ae=$[P];let ue=V[k];if(typeof ae=="string")te=ae+te,ue===ae&&k--;else if(ue!==void 0&&ae.regex.test(ue))do te=(ae.transform!==void 0?ae.transform(ue):ue)+te,k--,ue=V[k];while(Z===P&&ue!==void 0&&ae.regex.test(ue));else return te}return te}function K(V){return typeof V!="string"||g===void 0?typeof V=="number"?g(""+V):V:g(V)}function le(V){return f.length-V.length<=0?V:t.reverseFillMask===!0&&V.length!==0?f.slice(0,-V.length)+V:V+f.slice(V.length)}return{innerValue:C,hasMask:v,moveCursorForPaste:H,updateMaskValue:R,onMaskedKeydown:Q,onMaskedClick:N}}function oh(t,o){function l(){const u=t.modelValue;try{const s="DataTransfer"in window?new DataTransfer:"ClipboardEvent"in window?new ClipboardEvent("").clipboardData:void 0;return Object(u)===u&&("length"in u?Array.from(u):[u]).forEach(f=>{s.items.add(f)}),{files:s.files}}catch{return{files:void 0}}}return i.computed(()=>{if(t.type==="file")return l()})}const ah=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,uh=/[\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,sh=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,ch=/[a-z0-9_ -]$/i;function Pu(t){return function(l){if(l.type==="compositionend"||l.type==="change"){if(l.target.qComposing!==!0)return;l.target.qComposing=!1,t(l)}else l.type==="compositionupdate"&&l.target.qComposing!==!0&&typeof l.data=="string"&&(pt.is.firefox===!0?ch.test(l.data)===!1:ah.test(l.data)===!0||uh.test(l.data)===!0||sh.test(l.data)===!0)===!0&&(l.target.qComposing=!0)}}const Nu=Ze({name:"QInput",inheritAttrs:!1,props:{...xi,...ih,...Pl,modelValue:[String,Number,FileList],shadowText:String,type:{type:String,default:"text"},debounce:[String,Number],autogrow:Boolean,inputClass:[Array,String,Object],inputStyle:[Array,String,Object]},emits:[...Ul,"paste","change","keydown","click","animationend"],setup(t,{emit:o,attrs:l}){const{proxy:u}=i.getCurrentInstance(),{$q:s}=u,f={};let h=NaN,g,x,O=null,v;const C=i.ref(null),E=vu(t),{innerValue:y,hasMask:T,moveCursorForPaste:z,updateMaskValue:R,onMaskedKeydown:H,onMaskedClick:F}=lh(t,o,ue,C),N=oh(t),Q=i.computed(()=>Lr(y.value)),G=Pu(P),j=zl({changeEvent:!0}),K=i.computed(()=>t.type==="textarea"||t.autogrow===!0),le=i.computed(()=>K.value===!0||["text","search","url","tel","password"].includes(t.type)),V=i.computed(()=>{const A={...j.splitAttrs.listeners.value,onInput:P,onPaste:te,onChange:W,onBlur:se,onFocus:Yt};return A.onCompositionstart=A.onCompositionupdate=A.onCompositionend=G,T.value===!0&&(A.onKeydown=H,A.onClick=F),t.autogrow===!0&&(A.onAnimationend=ae),A}),$=i.computed(()=>{const A={tabindex:0,"data-autofocus":t.autofocus===!0||void 0,rows:t.type==="textarea"?6:void 0,"aria-label":t.label,name:E.value,...j.splitAttrs.attributes.value,id:j.targetUid.value,maxlength:t.maxlength,disabled:t.disable===!0,readonly:t.readonly===!0};return K.value===!1&&(A.type=t.type),t.autogrow===!0&&(A.rows=1),A});i.watch(()=>t.type,()=>{C.value&&(C.value.value=t.modelValue)}),i.watch(()=>t.modelValue,A=>{if(T.value===!0){if(x===!0&&(x=!1,String(A)===h))return;R(A)}else y.value!==A&&(y.value=A,t.type==="number"&&f.hasOwnProperty("value")===!0&&(g===!0?g=!1:delete f.value));t.autogrow===!0&&i.nextTick(fe)}),i.watch(()=>t.autogrow,A=>{A===!0?i.nextTick(fe):C.value!==null&&l.rows>0&&(C.value.style.height="auto")}),i.watch(()=>t.dense,()=>{t.autogrow===!0&&i.nextTick(fe)});function Z(){Si(()=>{const A=document.activeElement;C.value!==null&&C.value!==A&&(A===null||A.id!==j.targetUid.value)&&C.value.focus({preventScroll:!0})})}function k(){C.value!==null&&C.value.select()}function te(A){if(T.value===!0&&t.reverseFillMask!==!0){const ie=A.target;z(ie,ie.selectionStart,ie.selectionEnd)}o("paste",A)}function P(A){if(!A||!A.target)return;if(t.type==="file"){o("update:modelValue",A.target.files);return}const ie=A.target.value;if(A.target.qComposing===!0){f.value=ie;return}if(T.value===!0)R(ie,!1,A.inputType);else if(ue(ie),le.value===!0&&A.target===document.activeElement){const{selectionStart:ve,selectionEnd:_e}=A.target;ve!==void 0&&_e!==void 0&&i.nextTick(()=>{A.target===document.activeElement&&ie.indexOf(A.target.value)===0&&A.target.setSelectionRange(ve,_e)})}t.autogrow===!0&&fe()}function ae(A){o("animationend",A),fe()}function ue(A,ie){v=()=>{O=null,t.type!=="number"&&f.hasOwnProperty("value")===!0&&delete f.value,t.modelValue!==A&&h!==A&&(h=A,ie===!0&&(x=!0),o("update:modelValue",A),i.nextTick(()=>{h===A&&(h=NaN)})),v=void 0},t.type==="number"&&(g=!0,f.value=A),t.debounce!==void 0?(O!==null&&clearTimeout(O),f.value=A,O=setTimeout(v,t.debounce)):v()}function fe(){requestAnimationFrame(()=>{const A=C.value;if(A!==null){const ie=A.parentNode.style,{scrollTop:ve}=A,{overflowY:_e,maxHeight:U}=s.platform.is.firefox===!0?{}:window.getComputedStyle(A),ne=_e!==void 0&&_e!=="scroll";ne===!0&&(A.style.overflowY="hidden"),ie.marginBottom=A.scrollHeight-1+"px",A.style.height="1px",A.style.height=A.scrollHeight+"px",ne===!0&&(A.style.overflowY=parseInt(U,10)<A.scrollHeight?"auto":"hidden"),ie.marginBottom="",A.scrollTop=ve}})}function W(A){G(A),O!==null&&(clearTimeout(O),O=null),v!==void 0&&v(),o("change",A.target.value)}function se(A){A!==void 0&&Yt(A),O!==null&&(clearTimeout(O),O=null),v!==void 0&&v(),g=!1,x=!1,delete f.value,t.type!=="file"&&setTimeout(()=>{C.value!==null&&(C.value.value=y.value!==void 0?y.value:"")})}function ge(){return f.hasOwnProperty("value")===!0?f.value:y.value!==void 0?y.value:""}i.onBeforeUnmount(()=>{se()}),i.onMounted(()=>{t.autogrow===!0&&fe()}),Object.assign(j,{innerValue:y,fieldClass:i.computed(()=>`q-${K.value===!0?"textarea":"input"}`+(t.autogrow===!0?" q-textarea--autogrow":"")),hasShadow:i.computed(()=>t.type!=="file"&&typeof t.shadowText=="string"&&t.shadowText.length!==0),inputRef:C,emitValue:ue,hasValue:Q,floatingLabel:i.computed(()=>Q.value===!0&&(t.type!=="number"||isNaN(y.value)===!1)||Lr(t.displayValue)),getControl:()=>i.h(K.value===!0?"textarea":"input",{ref:C,class:["q-field__native q-placeholder",t.inputClass],style:t.inputStyle,...$.value,...V.value,...t.type!=="file"?{value:ge()}:N.value}),getShadowControl:()=>i.h("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(K.value===!0?"":" text-no-wrap")},[i.h("span",{class:"invisible"},ge()),i.h("span",t.shadowText)])});const B=Hl(j);return Object.assign(u,{focus:Z,select:k,getNativeElement:()=>C.value}),gi(u,"nativeEl",()=>C.value),B}}),Ei=Ze({name:"QCard",props:{...lr,tag:{type:String,default:"div"},square:Boolean,flat:Boolean,bordered:Boolean},setup(t,{slots:o}){const{proxy:{$q:l}}=i.getCurrentInstance(),u=or(t,l),s=i.computed(()=>"q-card"+(u.value===!0?" q-card--dark q-dark":"")+(t.bordered===!0?" q-card--bordered":"")+(t.square===!0?" q-card--square no-border-radius":"")+(t.flat===!0?" q-card--flat no-shadow":""));return()=>i.h(t.tag,{class:s.value},vt(o.default))}}),fh=i.defineComponent({__name:"WinInput",props:i.mergeModels({modelValue:{},rules:{},label:{},placeholder:{},mask:{},prefix:{},suffix:{},hint:{},maxlength:{},type:{default:"text"},transparent:{type:Boolean,default:!0},width:{default:"100%"},height:{default:"70px"},inputHeight:{},readonly:{type:Boolean},fillMask:{type:Boolean,default:!1},minWidth:{default:"200px"},inputStyle:{default:"resize: none"},labelStyle:{default:"padding-left: 5px"},hintOptions:{default:{color:"grey-7",position:"right"}},counter:{type:Boolean,default:!1},dense:{type:Boolean,default:!1},required:{type:Boolean,default:!1}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t,{expose:o}){const l=i.useModel(t,"modelValue"),u=t,s=i.ref(!1),f=i.computed(()=>u.transparent?"glass-card":"win-card"),h=i.computed(()=>u.label===""?void 0:u.label),g=i.computed(()=>{let y="width: 100%; padding-left: 10px; padding-right: 10px;";return u.inputHeight&&(y+="height: "+u.inputHeight),y}),x=i.computed(()=>l.value||s.value?"17.5px":"15px"),O=i.ref(null);function v(){O.value.focus()}function C(){s.value=!0}function E(){s.value=!1}return o({focus:v}),(y,T)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(Ei,{onClick:v,class:i.normalizeClass(`${f.value} row items-center ${l.value&&y.label||s.value&&y.label?"q-pt-md":""} `),style:i.normalizeStyle({minHeight:y.height,width:y.width,maxWidth:"calc(100vw - 32px)",minWidth:y.minWidth,margin:"auto"})},{default:i.withCtx(()=>[i.renderSlot(y.$slots,"fixed-label",{class:"self-start"}),i.createVNode(Nu,{modelValue:l.value,"onUpdate:modelValue":T[0]||(T[0]=z=>l.value=z),ref_key:"inputRef",ref:O,"label-color":"black","input-class":`text-black ${h.value?"":"text-center ww-title"}`,"input-style":y.inputStyle,style:i.normalizeStyle(g.value),readonly:y.readonly,mask:y.mask,prefix:y.prefix,label:h.value,type:y.type,suffix:y.suffix,counter:y.counter,maxlength:y.maxlength,rules:y.rules,borderless:"",dense:"","unmasked-value":"","reverse-fill-mask":"",placeholder:y.placeholder,onFocus:C,onBlur:E},{label:i.withCtx(()=>[!y.label||y.label!=""?(i.openBlock(),i.createElementBlock("div",{key:0,style:i.normalizeStyle(`padding-bottom: 30px; transition: 0.5s ease; font-size: ${x.value};`+y.labelStyle)},i.toDisplayString(y.label)+" "+i.toDisplayString(y.required&&!y.readonly?"*":""),5)):i.createCommentVNode("",!0)]),append:i.withCtx(()=>[i.renderSlot(y.$slots,"append")]),_:3},8,["modelValue","input-class","input-style","style","readonly","mask","prefix","label","type","suffix","counter","maxlength","rules","placeholder"]),i.renderSlot(y.$slots,"bottom")]),_:3},8,["class","style"]),y.hint?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(`text-${y.hintOptions.position} text-${y.hintOptions.color} text-caption q-mt-xl q-pt-xl q-pl-sm`)},i.toDisplayString(y.hint),3)):i.createCommentVNode("",!0)],64))}}),dh={class:"ww-subtitle text-center q-mb-md text-grey-9",style:{"font-weight":"600"}},hh=i.defineComponent({__name:"ControlLabel",props:{label:{}},setup(t){return(o,l)=>(i.openBlock(),i.createElementBlock("div",dh,i.toDisplayString(o.label),1))}}),mh={style:{"max-width":"400px"},class:"text-center"},gh={style:{"font-size":"16px"}},ph={style:{"font-size":"16px"}},Gl=Ot(i.defineComponent({__name:"InputControl",props:i.mergeModels({control:{},innerLabel:{type:Boolean,default:!1}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=t,l=i.ref(null),u=i.computed(()=>{var f;return(f=o.control.controlType)==null?void 0:f.split("_")[1]}),s=i.useModel(t,"modelValue");return i.onMounted(()=>{var f;(f=l.value)==null||f.focus()}),(f,h)=>(i.openBlock(),i.createElementBlock("div",mh,[!f.innerLabel&&f.control.label?(i.openBlock(),i.createBlock(hh,{key:0,label:f.control.label},null,8,["label"])):i.createCommentVNode("",!0),i.createVNode(fh,{modelValue:s.value,"onUpdate:modelValue":h[0]||(h[0]=g=>s.value=g),width:"250px",mask:u.value==="number"?"###.###.###.###.###":void 0,label:f.innerLabel?f.control.label:void 0,inputStyle:{textAlign:(u.value==="number","center")},ref_key:"inputRef",ref:l},i.createSlots({_:2},[f.control.prefix?{name:"prepend",fn:i.withCtx(()=>[i.createElementVNode("span",gh,i.toDisplayString(f.control.prefix),1)]),key:"0"}:void 0,f.control.suffix?{name:"append",fn:i.withCtx(()=>[i.createElementVNode("span",ph,i.toDisplayString(f.control.suffix),1)]),key:"1"}:void 0]),1032,["modelValue","mask","label","inputStyle"])]))}}),[["__scopeId","data-v-8f5284d3"]]);function Kl(t,o){const l=t.style;for(const u in o)l[u]=o[u]}function vh(t){if(t==null)return;if(typeof t=="string")try{return document.querySelector(t)||void 0}catch{return}const o=i.unref(t);if(o)return o.$el||o}function Du(t,o){if(t==null||t.contains(o)===!0)return!0;for(let l=t.nextElementSibling;l!==null;l=l.nextElementSibling)if(l.contains(o))return!0;return!1}function _h(t,o=250){let l=!1,u;return function(){return l===!1&&(l=!0,setTimeout(()=>{l=!1},o),u=t.apply(this,arguments)),u}}function $u(t,o,l,u){l.modifiers.stop===!0&&Yt(t);const s=l.modifiers.color;let f=l.modifiers.center;f=f===!0||u===!0;const h=document.createElement("span"),g=document.createElement("span"),x=_u(t),{left:O,top:v,width:C,height:E}=o.getBoundingClientRect(),y=Math.sqrt(C*C+E*E),T=y/2,z=`${(C-y)/2}px`,R=f?z:`${x.left-O-T}px`,H=`${(E-y)/2}px`,F=f?H:`${x.top-v-T}px`;g.className="q-ripple__inner",Kl(g,{height:`${y}px`,width:`${y}px`,transform:`translate3d(${R},${F},0) scale3d(.2,.2,1)`,opacity:0}),h.className=`q-ripple${s?" text-"+s:""}`,h.setAttribute("dir","ltr"),h.appendChild(g),o.appendChild(h);const N=()=>{h.remove(),clearTimeout(Q)};l.abort.push(N);let Q=setTimeout(()=>{g.classList.add("q-ripple__inner--enter"),g.style.transform=`translate3d(${z},${H},0) scale3d(1,1,1)`,g.style.opacity=.2,Q=setTimeout(()=>{g.classList.remove("q-ripple__inner--enter"),g.classList.add("q-ripple__inner--leave"),g.style.opacity=0,Q=setTimeout(()=>{h.remove(),l.abort.splice(l.abort.indexOf(N),1)},275)},250)},50)}function Fu(t,{modifiers:o,value:l,arg:u}){const s=Object.assign({},t.cfg.ripple,o,l);t.modifiers={early:s.early===!0,stop:s.stop===!0,center:s.center===!0,color:s.color||u,keyCodes:[].concat(s.keyCodes||13)}}const Uu=lu({name:"ripple",beforeMount(t,o){const l=o.instance.$.appContext.config.globalProperties.$q.config||{};if(l.ripple===!1)return;const u={cfg:l,enabled:o.value!==!1,modifiers:{},abort:[],start(s){u.enabled===!0&&s.qSkipRipple!==!0&&s.type===(u.modifiers.early===!0?"pointerdown":"click")&&$u(s,t,u,s.qKeyEvent===!0)},keystart:_h(s=>{u.enabled===!0&&s.qSkipRipple!==!0&&Ln(s,u.modifiers.keyCodes)===!0&&s.type===`key${u.modifiers.early===!0?"down":"up"}`&&$u(s,t,u,!0)},300)};Fu(u,o),t.__qripple=u,Nl(u,"main",[[t,"pointerdown","start","passive"],[t,"click","start","passive"],[t,"keydown","keystart","passive"],[t,"keyup","keystart","passive"]])},updated(t,o){if(o.oldValue!==o.value){const l=t.__qripple;l!==void 0&&(l.enabled=o.value!==!1,l.enabled===!0&&Object(o.value)===o.value&&Fu(l,o))}},beforeUnmount(t){const o=t.__qripple;o!==void 0&&(o.abort.forEach(l=>{l()}),bu(o,"main"),delete t._qripple)}}),zu={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},bh=Object.keys(zu),yh={align:{type:String,validator:t=>bh.includes(t)}};function wh(t){return i.computed(()=>{const o=t.align===void 0?t.vertical===!0?"stretch":"left":t.align;return`${t.vertical===!0?"items":"justify"}-${zu[o]}`})}function Hu(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}function Wu(t,o){return(t.aliasOf||t)===(o.aliasOf||o)}function Sh(t,o){for(const l in o){const u=o[l],s=t[l];if(typeof u=="string"){if(u!==s)return!1}else if(Array.isArray(s)===!1||s.length!==u.length||u.some((f,h)=>f!==s[h]))return!1}return!0}function Gu(t,o){return Array.isArray(o)===!0?t.length===o.length&&t.every((l,u)=>l===o[u]):t.length===1&&t[0]===o}function xh(t,o){return Array.isArray(t)===!0?Gu(t,o):Array.isArray(o)===!0?Gu(o,t):t===o}function Ch(t,o){if(Object.keys(t).length!==Object.keys(o).length)return!1;for(const l in t)if(xh(t[l],o[l])===!1)return!1;return!0}const Ku={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},Eh={...Ku,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function ju({fallbackTag:t,useDisableForRouterLinkProps:o=!0}={}){const l=i.getCurrentInstance(),{props:u,proxy:s,emit:f}=l,h=cu(l),g=i.computed(()=>u.disable!==!0&&u.href!==void 0),x=o===!0?i.computed(()=>h===!0&&u.disable!==!0&&g.value!==!0&&u.to!==void 0&&u.to!==null&&u.to!==""):i.computed(()=>h===!0&&g.value!==!0&&u.to!==void 0&&u.to!==null&&u.to!==""),O=i.computed(()=>x.value===!0?F(u.to):null),v=i.computed(()=>O.value!==null),C=i.computed(()=>g.value===!0||v.value===!0),E=i.computed(()=>u.type==="a"||C.value===!0?"a":u.tag||t||"div"),y=i.computed(()=>g.value===!0?{href:u.href,target:u.target}:v.value===!0?{href:O.value.href,target:u.target}:{}),T=i.computed(()=>{if(v.value===!1)return-1;const{matched:G}=O.value,{length:j}=G,K=G[j-1];if(K===void 0)return-1;const le=s.$route.matched;if(le.length===0)return-1;const V=le.findIndex(Wu.bind(null,K));if(V!==-1)return V;const $=Hu(G[j-2]);return j>1&&Hu(K)===$&&le[le.length-1].path!==$?le.findIndex(Wu.bind(null,G[j-2])):V}),z=i.computed(()=>v.value===!0&&T.value!==-1&&Sh(s.$route.params,O.value.params)),R=i.computed(()=>z.value===!0&&T.value===s.$route.matched.length-1&&Ch(s.$route.params,O.value.params)),H=i.computed(()=>v.value===!0?R.value===!0?` ${u.exactActiveClass} ${u.activeClass}`:u.exact===!0?"":z.value===!0?` ${u.activeClass}`:"":"");function F(G){try{return s.$router.resolve(G)}catch{}return null}function N(G,{returnRouterError:j,to:K=u.to,replace:le=u.replace}={}){if(u.disable===!0)return G.preventDefault(),Promise.resolve(!1);if(G.metaKey||G.altKey||G.ctrlKey||G.shiftKey||G.button!==void 0&&G.button!==0||u.target==="_blank")return Promise.resolve(!1);G.preventDefault();const V=s.$router[le===!0?"replace":"push"](K);return j===!0?V:V.then(()=>{}).catch(()=>{})}function Q(G){if(v.value===!0){const j=K=>N(G,K);f("click",G,j),G.defaultPrevented!==!0&&j()}else f("click",G)}return{hasRouterLink:v,hasHrefLink:g,hasLink:C,linkTag:E,resolvedLink:O,linkIsActive:z,linkIsExactActive:R,linkClass:H,linkAttrs:y,getLink:F,navigateToRouterLink:N,navigateOnClick:Q}}const Yu={none:0,xs:4,sm:8,md:16,lg:24,xl:32},kh={xs:8,sm:10,md:14,lg:20,xl:24},Ah=["button","submit","reset"],Oh=/[^\s]\/[^\s]/,Th=["flat","outline","push","unelevated"];function Bh(t,o){return t.flat===!0?"flat":t.outline===!0?"outline":t.push===!0?"push":t.unelevated===!0?"unelevated":o}const Rh={...{...pi,...Ku,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...Th.reduce((t,o)=>(t[o]=Boolean)&&t,{}),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:{...yh.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},round:Boolean};function Ih(t){const o=vi(t,kh),l=wh(t),{hasRouterLink:u,hasLink:s,linkTag:f,linkAttrs:h,navigateOnClick:g}=ju({fallbackTag:"button"}),x=i.computed(()=>{const R=t.fab===!1&&t.fabMini===!1?o.value:{};return t.padding!==void 0?Object.assign({},R,{padding:t.padding.split(/\s+/).map(H=>H in Yu?Yu[H]+"px":H).join(" "),minWidth:"0",minHeight:"0"}):R}),O=i.computed(()=>t.rounded===!0||t.fab===!0||t.fabMini===!0),v=i.computed(()=>t.disable!==!0&&t.loading!==!0),C=i.computed(()=>v.value===!0?t.tabindex||0:-1),E=i.computed(()=>Bh(t,"standard")),y=i.computed(()=>{const R={tabindex:C.value};return s.value===!0?Object.assign(R,h.value):Ah.includes(t.type)===!0&&(R.type=t.type),f.value==="a"?(t.disable===!0?R["aria-disabled"]="true":R.href===void 0&&(R.role="button"),u.value!==!0&&Oh.test(t.type)===!0&&(R.type=t.type)):t.disable===!0&&(R.disabled="",R["aria-disabled"]="true"),t.loading===!0&&t.percentage!==void 0&&Object.assign(R,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":t.percentage}),R}),T=i.computed(()=>{let R;t.color!==void 0?t.flat===!0||t.outline===!0?R=`text-${t.textColor||t.color}`:R=`bg-${t.color} text-${t.textColor||"white"}`:t.textColor&&(R=`text-${t.textColor}`);const H=t.round===!0?"round":`rectangle${O.value===!0?" q-btn--rounded":t.square===!0?" q-btn--square":""}`;return`q-btn--${E.value} q-btn--${H}`+(R!==void 0?" "+R:"")+(v.value===!0?" q-btn--actionable q-focusable q-hoverable":t.disable===!0?" disabled":"")+(t.fab===!0?" q-btn--fab":t.fabMini===!0?" q-btn--fab-mini":"")+(t.noCaps===!0?" q-btn--no-uppercase":"")+(t.dense===!0?" q-btn--dense":"")+(t.stretch===!0?" no-border-radius self-stretch":"")+(t.glossy===!0?" glossy":"")+(t.square?" q-btn--square":"")}),z=i.computed(()=>l.value+(t.stack===!0?" column":" row")+(t.noWrap===!0?" no-wrap text-no-wrap":"")+(t.loading===!0?" q-btn__content--hidden":""));return{classes:T,style:x,innerClasses:z,attributes:y,hasLink:s,linkTag:f,navigateOnClick:g,isActionable:v}}const{passiveCapture:Tt}=ct;let ar=null,ur=null,sr=null;const cr=Ze({name:"QBtn",props:{...Rh,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(t,{slots:o,emit:l}){const{proxy:u}=i.getCurrentInstance(),{classes:s,style:f,innerClasses:h,attributes:g,hasLink:x,linkTag:O,navigateOnClick:v,isActionable:C}=Ih(t),E=i.ref(null),y=i.ref(null);let T=null,z,R=null;const H=i.computed(()=>t.label!==void 0&&t.label!==null&&t.label!==""),F=i.computed(()=>t.disable===!0||t.ripple===!1?!1:{keyCodes:x.value===!0?[13,32]:[13],...t.ripple===!0?{}:t.ripple}),N=i.computed(()=>({center:t.round})),Q=i.computed(()=>{const P=Math.max(0,Math.min(100,t.percentage));return P>0?{transition:"transform 0.6s",transform:`translateX(${P-100}%)`}:{}}),G=i.computed(()=>{if(t.loading===!0)return{onMousedown:te,onTouchstart:te,onClick:te,onKeydown:te,onKeyup:te};if(C.value===!0){const P={onClick:K,onKeydown:le,onMousedown:$};if(u.$q.platform.has.touch===!0){const ae=t.onTouchstart!==void 0?"":"Passive";P[`onTouchstart${ae}`]=V}return P}return{onClick:Ke}}),j=i.computed(()=>({ref:E,class:"q-btn q-btn-item non-selectable no-outline "+s.value,style:f.value,...g.value,...G.value}));function K(P){if(E.value!==null){if(P!==void 0){if(P.defaultPrevented===!0)return;const ae=document.activeElement;if(t.type==="submit"&&ae!==document.body&&E.value.contains(ae)===!1&&ae.contains(E.value)===!1){E.value.focus();const ue=()=>{document.removeEventListener("keydown",Ke,!0),document.removeEventListener("keyup",ue,Tt),E.value!==null&&E.value.removeEventListener("blur",ue,Tt)};document.addEventListener("keydown",Ke,!0),document.addEventListener("keyup",ue,Tt),E.value.addEventListener("blur",ue,Tt)}}v(P)}}function le(P){E.value!==null&&(l("keydown",P),Ln(P,[13,32])===!0&&ur!==E.value&&(ur!==null&&k(),P.defaultPrevented!==!0&&(E.value.focus(),ur=E.value,E.value.classList.add("q-btn--active"),document.addEventListener("keyup",Z,!0),E.value.addEventListener("blur",Z,Tt)),Ke(P)))}function V(P){E.value!==null&&(l("touchstart",P),P.defaultPrevented!==!0&&(ar!==E.value&&(ar!==null&&k(),ar=E.value,T=P.target,T.addEventListener("touchcancel",Z,Tt),T.addEventListener("touchend",Z,Tt)),z=!0,R!==null&&clearTimeout(R),R=setTimeout(()=>{R=null,z=!1},200)))}function $(P){E.value!==null&&(P.qSkipRipple=z===!0,l("mousedown",P),P.defaultPrevented!==!0&&sr!==E.value&&(sr!==null&&k(),sr=E.value,E.value.classList.add("q-btn--active"),document.addEventListener("mouseup",Z,Tt)))}function Z(P){if(E.value!==null&&!(P!==void 0&&P.type==="blur"&&document.activeElement===E.value)){if(P!==void 0&&P.type==="keyup"){if(ur===E.value&&Ln(P,[13,32])===!0){const ae=new MouseEvent("click",P);ae.qKeyEvent=!0,P.defaultPrevented===!0&&Nt(ae),P.cancelBubble===!0&&Yt(ae),E.value.dispatchEvent(ae),Ke(P),P.qKeyEvent=!0}l("keyup",P)}k()}}function k(P){const ae=y.value;P!==!0&&(ar===E.value||sr===E.value)&&ae!==null&&ae!==document.activeElement&&(ae.setAttribute("tabindex",-1),ae.focus()),ar===E.value&&(T!==null&&(T.removeEventListener("touchcancel",Z,Tt),T.removeEventListener("touchend",Z,Tt)),ar=T=null),sr===E.value&&(document.removeEventListener("mouseup",Z,Tt),sr=null),ur===E.value&&(document.removeEventListener("keyup",Z,!0),E.value!==null&&E.value.removeEventListener("blur",Z,Tt),ur=null),E.value!==null&&E.value.classList.remove("q-btn--active")}function te(P){Ke(P),P.qSkipRipple=!0}return i.onBeforeUnmount(()=>{k(!0)}),Object.assign(u,{click:P=>{C.value===!0&&K(P)}}),()=>{let P=[];t.icon!==void 0&&P.push(i.h(_t,{name:t.icon,left:t.stack!==!0&&H.value===!0,role:"img"})),H.value===!0&&P.push(i.h("span",{class:"block"},[t.label])),P=In(o.default,P),t.iconRight!==void 0&&t.round===!1&&P.push(i.h(_t,{name:t.iconRight,right:t.stack!==!0&&H.value===!0,role:"img"}));const ae=[i.h("span",{class:"q-focus-helper",ref:y})];return t.loading===!0&&t.percentage!==void 0&&ae.push(i.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(t.darkPercentage===!0?" q-btn__progress--dark":"")},[i.h("span",{class:"q-btn__progress-indicator fit block",style:Q.value})])),ae.push(i.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+h.value},P)),t.loading!==null&&ae.push(i.h(i.Transition,{name:"q-transition--fade"},()=>t.loading===!0?[i.h("span",{key:"loading",class:"absolute-full flex flex-center"},o.loading!==void 0?o.loading():[i.h(Ll)])]:null)),i.withDirectives(i.h(O.value,j.value,ae),[[Uu,F.value,void 0,N.value]])}}}),Qu=t=>(i.pushScopeId("data-v-3bcb795a"),t=t(),i.popScopeId(),t),Mh={class:"buttons-container"},Lh={class:"lt-md"},qh={class:"row justify-between q-my-md q-px-md"},Vh=Qu(()=>i.createElementVNode("span",{class:"text-black"},"Atrás",-1)),Ph={key:1},Nh=Qu(()=>i.createElementVNode("span",{class:"text-black"},"Siguiente",-1)),Dh=Ot(i.defineComponent({__name:"NavigationButtons",props:{currentStep:{},stepsCount:{},nextDisabled:{type:Boolean}},emits:["prev","next"],setup(t){const o=t,l=i.computed(()=>o.currentStep+1);return(u,s)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",Mh,[l.value>1?(i.openBlock(),i.createBlock(cr,{key:0,style:{position:"absolute",left:"25px",cursor:"pointer"},size:"26px",color:"white","text-color":"white",class:"gt-sm",onClick:s[0]||(s[0]=f=>u.$emit("prev")),flat:""},{default:i.withCtx(()=>[i.createVNode(_t,{name:"arrow_back_ios",color:"info"})]),_:1})):i.createCommentVNode("",!0),l.value!==u.stepsCount?(i.openBlock(),i.createBlock(cr,{key:1,style:{position:"absolute",right:"25px",cursor:"pointer"},size:"26px",color:"white","text-color":"white",class:"gt-sm",onClick:s[1]||(s[1]=f=>u.$emit("next")),disable:u.nextDisabled,flat:""},{default:i.withCtx(()=>[i.createVNode(_t,{name:"arrow_forward_ios",color:"info"})]),_:1},8,["disable"])):i.createCommentVNode("",!0)]),i.createElementVNode("div",Lh,[i.createElementVNode("div",qh,[l.value>1&&l.value<u.stepsCount?(i.openBlock(),i.createBlock(cr,{key:0,color:"info",class:"q-px-md-xl q-py-sm q-mr-sm win-btn win-btn-primary",onClick:s[2]||(s[2]=f=>u.$emit("prev")),flat:"","no-caps":""},{default:i.withCtx(()=>[Vh]),_:1})):(i.openBlock(),i.createElementBlock("div",Ph)),l.value<u.stepsCount?(i.openBlock(),i.createBlock(cr,{key:2,color:"info",class:"q-px-xl q-py-sm q-ml-sm win-btn win-btn-primary",onClick:s[3]||(s[3]=f=>u.$emit("next")),disable:u.nextDisabled,flat:"","no-caps":""},{default:i.withCtx(()=>[Nh]),_:1},8,["disable"])):i.createCommentVNode("",!0)])])],64))}}),[["__scopeId","data-v-3bcb795a"]]),$h=Ze({name:"QField",inheritAttrs:!1,props:{...xi,tag:{type:String,default:"label"}},emits:Ul,setup(){return Hl(zl({tagProp:!0}))}}),Fh={xs:8,sm:10,md:14,lg:20,xl:24},Uh=Ze({name:"QChip",props:{...lr,...pi,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(t,{slots:o,emit:l}){const{proxy:{$q:u}}=i.getCurrentInstance(),s=or(t,u),f=vi(t,Fh),h=i.computed(()=>t.selected===!0||t.icon!==void 0),g=i.computed(()=>t.selected===!0?t.iconSelected||u.iconSet.chip.selected:t.icon),x=i.computed(()=>t.iconRemove||u.iconSet.chip.remove),O=i.computed(()=>t.disable===!1&&(t.clickable===!0||t.selected!==null)),v=i.computed(()=>{const R=t.outline===!0&&t.color||t.textColor;return"q-chip row inline no-wrap items-center"+(t.outline===!1&&t.color!==void 0?` bg-${t.color}`:"")+(R?` text-${R} q-chip--colored`:"")+(t.disable===!0?" disabled":"")+(t.dense===!0?" q-chip--dense":"")+(t.outline===!0?" q-chip--outline":"")+(t.selected===!0?" q-chip--selected":"")+(O.value===!0?" q-chip--clickable cursor-pointer non-selectable q-hoverable":"")+(t.square===!0?" q-chip--square":"")+(s.value===!0?" q-chip--dark q-dark":"")}),C=i.computed(()=>{const R=t.disable===!0?{tabindex:-1,"aria-disabled":"true"}:{tabindex:t.tabindex||0},H={...R,role:"button","aria-hidden":"false","aria-label":t.removeAriaLabel||u.lang.label.remove};return{chip:R,remove:H}});function E(R){R.keyCode===13&&y(R)}function y(R){t.disable||(l("update:selected",!t.selected),l("click",R))}function T(R){(R.keyCode===void 0||R.keyCode===13)&&(Ke(R),t.disable===!1&&(l("update:modelValue",!1),l("remove")))}function z(){const R=[];O.value===!0&&R.push(i.h("div",{class:"q-focus-helper"})),h.value===!0&&R.push(i.h(_t,{class:"q-chip__icon q-chip__icon--left",name:g.value}));const H=t.label!==void 0?[i.h("div",{class:"ellipsis"},[t.label])]:void 0;return R.push(i.h("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},pd(o.default,H))),t.iconRight&&R.push(i.h(_t,{class:"q-chip__icon q-chip__icon--right",name:t.iconRight})),t.removable===!0&&R.push(i.h(_t,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:x.value,...C.value.remove,onClick:T,onKeyup:T})),R}return()=>{if(t.modelValue===!1)return;const R={class:v.value,style:f.value};return O.value===!0&&Object.assign(R,C.value.chip,{onClick:y,onKeyup:E}),su("div",R,z(),"ripple",t.ripple!==!1&&t.disable!==!0,()=>[[Uu,t.ripple]])}}}),zh=Ze({name:"QItem",props:{...lr,...Eh,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(t,{slots:o,emit:l}){const{proxy:{$q:u}}=i.getCurrentInstance(),s=or(t,u),{hasLink:f,linkAttrs:h,linkClass:g,linkTag:x,navigateOnClick:O}=ju(),v=i.ref(null),C=i.ref(null),E=i.computed(()=>t.clickable===!0||f.value===!0||t.tag==="label"),y=i.computed(()=>t.disable!==!0&&E.value===!0),T=i.computed(()=>"q-item q-item-type row no-wrap"+(t.dense===!0?" q-item--dense":"")+(s.value===!0?" q-item--dark":"")+(f.value===!0&&t.active===null?g.value:t.active===!0?` q-item--active${t.activeClass!==void 0?` ${t.activeClass}`:""}`:"")+(t.disable===!0?" disabled":"")+(y.value===!0?" q-item--clickable q-link cursor-pointer "+(t.manualFocus===!0?"q-manual-focusable":"q-focusable q-hoverable")+(t.focused===!0?" q-manual-focusable--focused":""):"")),z=i.computed(()=>t.insetLevel===void 0?null:{["padding"+(u.lang.rtl===!0?"Right":"Left")]:16+t.insetLevel*56+"px"});function R(N){y.value===!0&&(C.value!==null&&(N.qKeyEvent!==!0&&document.activeElement===v.value?C.value.focus():document.activeElement===C.value&&v.value.focus()),O(N))}function H(N){if(y.value===!0&&Ln(N,[13,32])===!0){Ke(N),N.qKeyEvent=!0;const Q=new MouseEvent("click",N);Q.qKeyEvent=!0,v.value.dispatchEvent(Q)}l("keyup",N)}function F(){const N=gd(o.default,[]);return y.value===!0&&N.unshift(i.h("div",{class:"q-focus-helper",tabindex:-1,ref:C})),N}return()=>{const N={ref:v,class:T.value,style:z.value,role:"listitem",onClick:R,onKeyup:H};return y.value===!0?(N.tabindex=t.tabindex||"0",Object.assign(N,h.value)):E.value===!0&&(N["aria-disabled"]="true"),i.h(x.value,N,F())}}}),Hh=Ze({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(t,{slots:o}){const l=i.computed(()=>`q-item__section column q-item__section--${t.avatar===!0||t.side===!0||t.thumbnail===!0?"side":"main"}`+(t.top===!0?" q-item__section--top justify-start":" justify-center")+(t.avatar===!0?" q-item__section--avatar":"")+(t.thumbnail===!0?" q-item__section--thumbnail":"")+(t.noWrap===!0?" q-item__section--nowrap":""));return()=>i.h("div",{class:l.value},vt(o.default))}}),Wh=Ze({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(t,{slots:o}){const l=i.computed(()=>parseInt(t.lines,10)),u=i.computed(()=>"q-item__label"+(t.overline===!0?" q-item__label--overline text-overline":"")+(t.caption===!0?" q-item__label--caption text-caption":"")+(t.header===!0?" q-item__label--header":"")+(l.value===1?" ellipsis":"")),s=i.computed(()=>t.lines!==void 0&&l.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":l.value}:null);return()=>i.h("div",{style:s.value,class:u.value},vt(o.default))}});function Gh(){if(window.getSelection!==void 0){const t=window.getSelection();t.empty!==void 0?t.empty():t.removeAllRanges!==void 0&&(t.removeAllRanges(),Il.is.mobile!==!0&&t.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}const Kh={...{target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},contextMenu:Boolean};function jh({showing:t,avoidEmit:o,configureAnchorEl:l}){const{props:u,proxy:s,emit:f}=i.getCurrentInstance(),h=i.ref(null);let g=null;function x(y){return h.value===null?!1:y===void 0||y.touches===void 0||y.touches.length<=1}const O={};l===void 0&&(Object.assign(O,{hide(y){s.hide(y)},toggle(y){s.toggle(y),y.qAnchorHandled=!0},toggleKey(y){Ln(y,13)===!0&&O.toggle(y)},contextClick(y){s.hide(y),Nt(y),i.nextTick(()=>{s.show(y),y.qAnchorHandled=!0})},prevent:Nt,mobileTouch(y){if(O.mobileCleanup(y),x(y)!==!0)return;s.hide(y),h.value.classList.add("non-selectable");const T=y.target;Nl(O,"anchor",[[T,"touchmove","mobileCleanup","passive"],[T,"touchend","mobileCleanup","passive"],[T,"touchcancel","mobileCleanup","passive"],[h.value,"contextmenu","prevent","notPassive"]]),g=setTimeout(()=>{g=null,s.show(y),y.qAnchorHandled=!0},300)},mobileCleanup(y){h.value.classList.remove("non-selectable"),g!==null&&(clearTimeout(g),g=null),t.value===!0&&y!==void 0&&Gh()}}),l=function(y=u.contextMenu){if(u.noParentEvent===!0||h.value===null)return;let T;y===!0?s.$q.platform.is.mobile===!0?T=[[h.value,"touchstart","mobileTouch","passive"]]:T=[[h.value,"mousedown","hide","passive"],[h.value,"contextmenu","contextClick","notPassive"]]:T=[[h.value,"click","toggle","passive"],[h.value,"keyup","toggleKey","passive"]],Nl(O,"anchor",T)});function v(){bu(O,"anchor")}function C(y){for(h.value=y;h.value.classList.contains("q-anchor--skip");)h.value=h.value.parentNode;l()}function E(){if(u.target===!1||u.target===""||s.$el.parentNode===null)h.value=null;else if(u.target===!0)C(s.$el.parentNode);else{let y=u.target;if(typeof u.target=="string")try{y=document.querySelector(u.target)}catch{y=void 0}y!=null?(h.value=y.$el||y,l()):(h.value=null,console.error(`Anchor: target "${u.target}" not found`))}}return i.watch(()=>u.contextMenu,y=>{h.value!==null&&(v(),l(y))}),i.watch(()=>u.target,()=>{h.value!==null&&v(),E()}),i.watch(()=>u.noParentEvent,y=>{h.value!==null&&(y===!0?v():l())}),i.onMounted(()=>{E(),o!==!0&&u.modelValue===!0&&h.value===null&&f("update:modelValue",!1)}),i.onBeforeUnmount(()=>{g!==null&&clearTimeout(g),v()}),{anchorEl:h,canShow:x,anchorEvents:O}}function Yh(t,o){const l=i.ref(null);let u;function s(g,x){const O=`${x!==void 0?"add":"remove"}EventListener`,v=x!==void 0?x:u;g!==window&&g[O]("scroll",v,ct.passive),window[O]("scroll",v,ct.passive),u=x}function f(){l.value!==null&&(s(l.value),l.value=null)}const h=i.watch(()=>t.noParentEvent,()=>{l.value!==null&&(f(),o())});return i.onBeforeUnmount(h),{localScrollTarget:l,unconfigureScrollTarget:f,changeScrollEvent:s}}const Zu={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},Xu=["beforeShow","show","beforeHide","hide"];function Ju({showing:t,canShow:o,hideOnRouteChange:l,handleShow:u,handleHide:s,processOnMount:f}){const h=i.getCurrentInstance(),{props:g,emit:x,proxy:O}=h;let v;function C(F){t.value===!0?T(F):E(F)}function E(F){if(g.disable===!0||F!==void 0&&F.qAnchorHandled===!0||o!==void 0&&o(F)!==!0)return;const N=g["onUpdate:modelValue"]!==void 0;N===!0&&(x("update:modelValue",!0),v=F,i.nextTick(()=>{v===F&&(v=void 0)})),(g.modelValue===null||N===!1)&&y(F)}function y(F){t.value!==!0&&(t.value=!0,x("beforeShow",F),u!==void 0?u(F):x("show",F))}function T(F){if(g.disable===!0)return;const N=g["onUpdate:modelValue"]!==void 0;N===!0&&(x("update:modelValue",!1),v=F,i.nextTick(()=>{v===F&&(v=void 0)})),(g.modelValue===null||N===!1)&&z(F)}function z(F){t.value!==!1&&(t.value=!1,x("beforeHide",F),s!==void 0?s(F):x("hide",F))}function R(F){g.disable===!0&&F===!0?g["onUpdate:modelValue"]!==void 0&&x("update:modelValue",!1):F===!0!==t.value&&(F===!0?y:z)(v)}i.watch(()=>g.modelValue,R),l!==void 0&&cu(h)===!0&&i.watch(()=>O.$route.fullPath,()=>{l.value===!0&&t.value===!0&&T()}),f===!0&&i.onMounted(()=>{R(g.modelValue)});const H={show:E,hide:T,toggle:C};return Object.assign(O,H),H}const es={};let Qh=1,Zh=document.body;function Xh(t,o){const l=document.createElement("div");if(l.id=o!==void 0?`q-portal--${o}--${Qh++}`:t,es.globalNodes!==void 0){const u=es.globalNodes.class;u!==void 0&&(l.className=u)}return Zh.appendChild(l),l}function Jh(t){t.remove()}const qr=[];function em(t,o){do{if(t.$options.name==="QMenu"){if(t.hide(o),t.$props.separateClosePopup===!0)return ql(t)}else if(t.__qPortal===!0){const l=ql(t);return l!==void 0&&l.$options.name==="QPopupProxy"?(t.hide(o),l):t}t=ql(t)}while(t!=null)}const tm=Ze({name:"QPortal",setup(t,{slots:o}){return()=>o.default()}});function nm(t){for(t=t.parent;t!=null;){if(t.type.name==="QGlobalDialog")return!0;if(t.type.name==="QDialog"||t.type.name==="QMenu")return!1;t=t.parent}return!1}function ts(t,o,l,u){const s=i.ref(!1),f=i.ref(!1);let h=null;const g={},x=u==="dialog"&&nm(t);function O(C){if(C===!0){Mu(g),f.value=!0;return}f.value=!1,s.value===!1&&(x===!1&&h===null&&(h=Xh(!1,u)),s.value=!0,qr.push(t.proxy),th(g))}function v(C){if(f.value=!1,C!==!0)return;Mu(g),s.value=!1;const E=qr.indexOf(t.proxy);E!==-1&&qr.splice(E,1),h!==null&&(Jh(h),h=null)}return i.onUnmounted(()=>{v(!0)}),t.proxy.__qPortal=!0,gi(t.proxy,"contentEl",()=>o.value),{showPortal:O,hidePortal:v,portalIsActive:s,portalIsAccessible:f,renderPortal:()=>x===!0?l():s.value===!0?[i.h(i.Teleport,{to:h},i.h(tm,l))]:void 0}}const ns={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function rs(t,o=()=>{},l=()=>{}){return{transitionProps:i.computed(()=>{const u=`q-transition--${t.transitionShow||o()}`,s=`q-transition--${t.transitionHide||l()}`;return{appear:!0,enterFromClass:`${u}-enter-from`,enterActiveClass:`${u}-enter-active`,enterToClass:`${u}-enter-to`,leaveFromClass:`${s}-leave-from`,leaveActiveClass:`${s}-leave-active`,leaveToClass:`${s}-leave-to`}}),transitionStyle:i.computed(()=>`--q-transition-duration: ${t.transitionDuration}ms`)}}function is(){let t;const o=i.getCurrentInstance();function l(){t=void 0}return i.onDeactivated(l),i.onBeforeUnmount(l),{removeTick:l,registerTick(u){t=u,i.nextTick(()=>{t===u&&(Ir(o)===!1&&t(),t=void 0)})}}}const rm=[Element,String],im=[null,document,document.body,document.scrollingElement,document.documentElement];function lm(t,o){let l=vh(o);if(l===void 0){if(t==null)return window;l=t.closest(".scroll,.scroll-y,.overflow-auto")}return im.includes(l)?window:l}function om(t){return t===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:t.scrollTop}function am(t){return t===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:t.scrollLeft}let ki;function um(){if(ki!==void 0)return ki;const t=document.createElement("p"),o=document.createElement("div");Kl(t,{width:"100%",height:"200px"}),Kl(o,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),o.appendChild(t),document.body.appendChild(o);const l=t.offsetWidth;o.style.overflow="scroll";let u=t.offsetWidth;return l===u&&(u=o.clientWidth),o.remove(),ki=l-u,ki}function sm(t,o=!0){return!t||t.nodeType!==Node.ELEMENT_NODE?!1:o?t.scrollHeight>t.clientHeight&&(t.classList.contains("scroll")||t.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(t)["overflow-y"])):t.scrollWidth>t.clientWidth&&(t.classList.contains("scroll")||t.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(t)["overflow-x"]))}const qn=[];let fr;function cm(t){fr=t.keyCode===27}function fm(){fr===!0&&(fr=!1)}function dm(t){fr===!0&&(fr=!1,Ln(t,27)===!0&&qn[qn.length-1](t))}function ls(t){window[t]("keydown",cm),window[t]("blur",fm),window[t]("keyup",dm),fr=!1}function os(t){pt.is.desktop===!0&&(qn.push(t),qn.length===1&&ls("addEventListener"))}function Ai(t){const o=qn.indexOf(t);o!==-1&&(qn.splice(o,1),qn.length===0&&ls("removeEventListener"))}const Vn=[];function as(t){Vn[Vn.length-1](t)}function us(t){pt.is.desktop===!0&&(Vn.push(t),Vn.length===1&&document.body.addEventListener("focusin",as))}function jl(t){const o=Vn.indexOf(t);o!==-1&&(Vn.splice(o,1),Vn.length===0&&document.body.removeEventListener("focusin",as))}const{notPassiveCapture:Oi}=ct,Pn=[];function Ti(t){const o=t.target;if(o===void 0||o.nodeType===8||o.classList.contains("no-pointer-events")===!0)return;let l=qr.length-1;for(;l>=0;){const u=qr[l].$;if(u.type.name==="QTooltip"){l--;continue}if(u.type.name!=="QDialog")break;if(u.props.seamless!==!0)return;l--}for(let u=Pn.length-1;u>=0;u--){const s=Pn[u];if((s.anchorEl.value===null||s.anchorEl.value.contains(o)===!1)&&(o===document.body||s.innerRef.value!==null&&s.innerRef.value.contains(o)===!1))t.qClickOutside=!0,s.onClickOutside(t);else return}}function hm(t){Pn.push(t),Pn.length===1&&(document.addEventListener("mousedown",Ti,Oi),document.addEventListener("touchstart",Ti,Oi))}function ss(t){const o=Pn.findIndex(l=>l===t);o!==-1&&(Pn.splice(o,1),Pn.length===0&&(document.removeEventListener("mousedown",Ti,Oi),document.removeEventListener("touchstart",Ti,Oi)))}let cs,fs;function ds(t){const o=t.split(" ");return o.length!==2?!1:["top","center","bottom"].includes(o[0])!==!0?(console.error("Anchor/Self position must start with one of top/center/bottom"),!1):["left","middle","right","start","end"].includes(o[1])!==!0?(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1):!0}function mm(t){return t?!(t.length!==2||typeof t[0]!="number"||typeof t[1]!="number"):!0}const Yl={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(t=>{Yl[`${t}#ltr`]=t,Yl[`${t}#rtl`]=t});function hs(t,o){const l=t.split(" ");return{vertical:l[0],horizontal:Yl[`${l[1]}#${o===!0?"rtl":"ltr"}`]}}function gm(t,o){let{top:l,left:u,right:s,bottom:f,width:h,height:g}=t.getBoundingClientRect();return o!==void 0&&(l-=o[1],u-=o[0],f+=o[1],s+=o[0],h+=o[0],g+=o[1]),{top:l,bottom:f,height:g,left:u,right:s,width:h,middle:u+(s-u)/2,center:l+(f-l)/2}}function pm(t,o,l){let{top:u,left:s}=t.getBoundingClientRect();return u+=o.top,s+=o.left,l!==void 0&&(u+=l[1],s+=l[0]),{top:u,bottom:u+1,height:1,left:s,right:s+1,width:1,middle:s,center:u}}function vm(t,o){return{top:0,center:o/2,bottom:o,left:0,middle:t/2,right:t}}function ms(t,o,l,u){return{top:t[l.vertical]-o[u.vertical],left:t[l.horizontal]-o[u.horizontal]}}function gs(t,o=0){if(t.targetEl===null||t.anchorEl===null||o>5)return;if(t.targetEl.offsetHeight===0||t.targetEl.offsetWidth===0){setTimeout(()=>{gs(t,o+1)},10);return}const{targetEl:l,offset:u,anchorEl:s,anchorOrigin:f,selfOrigin:h,absoluteOffset:g,fit:x,cover:O,maxHeight:v,maxWidth:C}=t;if(pt.is.ios===!0&&window.visualViewport!==void 0){const j=document.body.style,{offsetLeft:K,offsetTop:le}=window.visualViewport;K!==cs&&(j.setProperty("--q-pe-left",K+"px"),cs=K),le!==fs&&(j.setProperty("--q-pe-top",le+"px"),fs=le)}const{scrollLeft:E,scrollTop:y}=l,T=g===void 0?gm(s,O===!0?[0,0]:u):pm(s,g,u);Object.assign(l.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:C||"100vw",maxHeight:v||"100vh",visibility:"visible"});const{offsetWidth:z,offsetHeight:R}=l,{elWidth:H,elHeight:F}=x===!0||O===!0?{elWidth:Math.max(T.width,z),elHeight:O===!0?Math.max(T.height,R):R}:{elWidth:z,elHeight:R};let N={maxWidth:C,maxHeight:v};(x===!0||O===!0)&&(N.minWidth=T.width+"px",O===!0&&(N.minHeight=T.height+"px")),Object.assign(l.style,N);const Q=vm(H,F);let G=ms(T,Q,f,h);if(g===void 0||u===void 0)Ql(G,T,Q,f,h);else{const{top:j,left:K}=G;Ql(G,T,Q,f,h);let le=!1;if(G.top!==j){le=!0;const V=2*u[1];T.center=T.top-=V,T.bottom-=V+2}if(G.left!==K){le=!0;const V=2*u[0];T.middle=T.left-=V,T.right-=V+2}le===!0&&(G=ms(T,Q,f,h),Ql(G,T,Q,f,h))}N={top:G.top+"px",left:G.left+"px"},G.maxHeight!==void 0&&(N.maxHeight=G.maxHeight+"px",T.height>G.maxHeight&&(N.minHeight=N.maxHeight)),G.maxWidth!==void 0&&(N.maxWidth=G.maxWidth+"px",T.width>G.maxWidth&&(N.minWidth=N.maxWidth)),Object.assign(l.style,N),l.scrollTop!==y&&(l.scrollTop=y),l.scrollLeft!==E&&(l.scrollLeft=E)}function Ql(t,o,l,u,s){const f=l.bottom,h=l.right,g=um(),x=window.innerHeight-g,O=document.body.clientWidth;if(t.top<0||t.top+f>x)if(s.vertical==="center")t.top=o[u.vertical]>x/2?Math.max(0,x-f):0,t.maxHeight=Math.min(f,x);else if(o[u.vertical]>x/2){const v=Math.min(x,u.vertical==="center"?o.center:u.vertical===s.vertical?o.bottom:o.top);t.maxHeight=Math.min(f,v),t.top=Math.max(0,v-f)}else t.top=Math.max(0,u.vertical==="center"?o.center:u.vertical===s.vertical?o.top:o.bottom),t.maxHeight=Math.min(f,x-t.top);if(t.left<0||t.left+h>O)if(t.maxWidth=Math.min(h,O),s.horizontal==="middle")t.left=o[u.horizontal]>O/2?Math.max(0,O-h):0;else if(o[u.horizontal]>O/2){const v=Math.min(O,u.horizontal==="middle"?o.middle:u.horizontal===s.horizontal?o.right:o.left);t.maxWidth=Math.min(h,v),t.left=Math.max(0,v-t.maxWidth)}else t.left=Math.max(0,u.horizontal==="middle"?o.middle:u.horizontal===s.horizontal?o.left:o.right),t.maxWidth=Math.min(h,O-t.left)}const _m=Ze({name:"QMenu",inheritAttrs:!1,props:{...Kh,...Zu,...lr,...ns,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:ds},self:{type:String,validator:ds},offset:{type:Array,validator:mm},scrollTarget:rm,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...Xu,"click","escapeKey"],setup(t,{slots:o,emit:l,attrs:u}){let s=null,f,h,g;const x=i.getCurrentInstance(),{proxy:O}=x,{$q:v}=O,C=i.ref(null),E=i.ref(!1),y=i.computed(()=>t.persistent!==!0&&t.noRouteDismiss!==!0),T=or(t,v),{registerTick:z,removeTick:R}=is(),{registerTimeout:H}=_i(),{transitionProps:F,transitionStyle:N}=rs(t),{localScrollTarget:Q,changeScrollEvent:G,unconfigureScrollTarget:j}=Yh(t,ie),{anchorEl:K,canShow:le}=jh({showing:E}),{hide:V}=Ju({showing:E,canShow:le,handleShow:ge,handleHide:B,hideOnRouteChange:y,processOnMount:!0}),{showPortal:$,hidePortal:Z,renderPortal:k}=ts(x,C,Ae,"menu"),te={anchorEl:K,innerRef:C,onClickOutside(Y){if(t.persistent!==!0&&E.value===!0)return V(Y),(Y.type==="touchstart"||Y.target.classList.contains("q-dialog__backdrop"))&&Ke(Y),!0}},P=i.computed(()=>hs(t.anchor||(t.cover===!0?"center middle":"bottom start"),v.lang.rtl)),ae=i.computed(()=>t.cover===!0?P.value:hs(t.self||"top start",v.lang.rtl)),ue=i.computed(()=>(t.square===!0?" q-menu--square":"")+(T.value===!0?" q-menu--dark q-dark":"")),fe=i.computed(()=>t.autoClose===!0?{onClick:ve}:{}),W=i.computed(()=>E.value===!0&&t.persistent!==!0);i.watch(W,Y=>{Y===!0?(os(U),hm(te)):(Ai(U),ss(te))});function se(){Si(()=>{let Y=C.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 ge(Y){if(s=t.noRefocus===!1?document.activeElement:null,us(_e),$(),ie(),f=void 0,Y!==void 0&&(t.touchPosition||t.contextMenu)){const De=_u(Y);if(De.left!==void 0){const{top:ot,left:$t}=K.value.getBoundingClientRect();f={left:De.left-$t,top:De.top-ot}}}h===void 0&&(h=i.watch(()=>v.screen.width+"|"+v.screen.height+"|"+t.self+"|"+t.anchor+"|"+v.lang.rtl,ne)),t.noFocus!==!0&&document.activeElement.blur(),z(()=>{ne(),t.noFocus!==!0&&se()}),H(()=>{v.platform.is.ios===!0&&(g=t.autoClose,C.value.click()),ne(),$(!0),l("show",Y)},t.transitionDuration)}function B(Y){R(),Z(),A(!0),s!==null&&(Y===void 0||Y.qClickOutside!==!0)&&(((Y&&Y.type.indexOf("key")===0?s.closest('[tabindex]:not([tabindex^="-"])'):void 0)||s).focus(),s=null),H(()=>{Z(!0),l("hide",Y)},t.transitionDuration)}function A(Y){f=void 0,h!==void 0&&(h(),h=void 0),(Y===!0||E.value===!0)&&(jl(_e),j(),ss(te),Ai(U)),Y!==!0&&(s=null)}function ie(){(K.value!==null||t.scrollTarget!==void 0)&&(Q.value=lm(K.value,t.scrollTarget),G(Q.value,ne))}function ve(Y){g!==!0?(em(O,Y),l("click",Y)):g=!1}function _e(Y){W.value===!0&&t.noFocus!==!0&&Du(C.value,Y.target)!==!0&&se()}function U(Y){l("escapeKey"),V(Y)}function ne(){gs({targetEl:C.value,offset:t.offset,anchorEl:K.value,anchorOrigin:P.value,selfOrigin:ae.value,absoluteOffset:f,fit:t.fit,cover:t.cover,maxHeight:t.maxHeight,maxWidth:t.maxWidth})}function Ae(){return i.h(i.Transition,F.value,()=>E.value===!0?i.h("div",{role:"menu",...u,ref:C,tabindex:-1,class:["q-menu q-position-engine scroll"+ue.value,u.class],style:[u.style,N.value],...fe.value},vt(o.default)):null)}return i.onBeforeUnmount(A),Object.assign(O,{focus:se,updatePosition:ne}),k}});function bm(t,o,l){function u(){}return i.onBeforeUnmount(()=>{t.value===!0&&void 0}),{removeFromHistory:u,addToHistory(){}}}let Vr=0,Zl,Xl,Pr,Jl=!1,ps,vs,_s,Nn=null;function ym(t){wm(t)&&Ke(t)}function wm(t){if(t.target===document.body||t.target.classList.contains("q-layout__backdrop"))return!0;const o=Fd(t),l=t.shiftKey&&!t.deltaX,u=!l&&Math.abs(t.deltaX)<=Math.abs(t.deltaY),s=l||u?t.deltaY:t.deltaX;for(let f=0;f<o.length;f++){const h=o[f];if(sm(h,u))return u?s<0&&h.scrollTop===0?!0:s>0&&h.scrollTop+h.clientHeight===h.scrollHeight:s<0&&h.scrollLeft===0?!0:s>0&&h.scrollLeft+h.clientWidth===h.scrollWidth}return!0}function bs(t){t.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function Bi(t){Jl!==!0&&(Jl=!0,requestAnimationFrame(()=>{Jl=!1;const{height:o}=t.target,{clientHeight:l,scrollTop:u}=document.scrollingElement;(Pr===void 0||o!==window.innerHeight)&&(Pr=l-o,document.scrollingElement.scrollTop=u),u>Pr&&(document.scrollingElement.scrollTop-=Math.ceil((u-Pr)/8))}))}function ys(t){const o=document.body,l=window.visualViewport!==void 0;if(t==="add"){const{overflowY:u,overflowX:s}=window.getComputedStyle(o);Zl=am(window),Xl=om(window),ps=o.style.left,vs=o.style.top,_s=window.location.href,o.style.left=`-${Zl}px`,o.style.top=`-${Xl}px`,s!=="hidden"&&(s==="scroll"||o.scrollWidth>window.innerWidth)&&o.classList.add("q-body--force-scrollbar-x"),u!=="hidden"&&(u==="scroll"||o.scrollHeight>window.innerHeight)&&o.classList.add("q-body--force-scrollbar-y"),o.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,pt.is.ios===!0&&(l===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",Bi,ct.passiveCapture),window.visualViewport.addEventListener("scroll",Bi,ct.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",bs,ct.passiveCapture))}pt.is.desktop===!0&&pt.is.mac===!0&&window[`${t}EventListener`]("wheel",ym,ct.notPassive),t==="remove"&&(pt.is.ios===!0&&(l===!0?(window.visualViewport.removeEventListener("resize",Bi,ct.passiveCapture),window.visualViewport.removeEventListener("scroll",Bi,ct.passiveCapture)):window.removeEventListener("scroll",bs,ct.passiveCapture)),o.classList.remove("q-body--prevent-scroll"),o.classList.remove("q-body--force-scrollbar-x"),o.classList.remove("q-body--force-scrollbar-y"),document.qScrollPrevented=!1,o.style.left=ps,o.style.top=vs,window.location.href===_s&&window.scrollTo(Zl,Xl),Pr=void 0)}function Sm(t){let o="add";if(t===!0){if(Vr++,Nn!==null){clearTimeout(Nn),Nn=null;return}if(Vr>1)return}else{if(Vr===0||(Vr--,Vr>0))return;if(o="remove",pt.is.ios===!0&&pt.is.nativeMobile===!0){Nn!==null&&clearTimeout(Nn),Nn=setTimeout(()=>{ys(o),Nn=null},100);return}}ys(o)}function xm(){let t;return{preventBodyScroll(o){o!==t&&(t!==void 0||o===!0)&&(t=o,Sm(o))}}}let Ri=0;const Cm={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"},ws={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},Em=Ze({name:"QDialog",inheritAttrs:!1,props:{...Zu,...ns,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:t=>["standard","top","bottom","left","right"].includes(t)}},emits:[...Xu,"shake","click","escapeKey"],setup(t,{slots:o,emit:l,attrs:u}){const s=i.getCurrentInstance(),f=i.ref(null),h=i.ref(!1),g=i.ref(!1);let x=null,O=null,v,C;const E=i.computed(()=>t.persistent!==!0&&t.noRouteDismiss!==!0&&t.seamless!==!0),{preventBodyScroll:y}=xm(),{registerTimeout:T}=_i(),{registerTick:z,removeTick:R}=is(),{transitionProps:H,transitionStyle:F}=rs(t,()=>ws[t.position][0],()=>ws[t.position][1]),N=i.computed(()=>F.value+(t.backdropFilter!==void 0?`;backdrop-filter:${t.backdropFilter};-webkit-backdrop-filter:${t.backdropFilter}`:"")),{showPortal:Q,hidePortal:G,portalIsAccessible:j,renderPortal:K}=ts(s,f,_e,"dialog"),{hide:le}=Ju({showing:h,hideOnRouteChange:E,handleShow:ae,handleHide:ue,processOnMount:!0}),{addToHistory:V,removeFromHistory:$}=bm(h),Z=i.computed(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${t.maximized===!0?"maximized":"minimized"} q-dialog__inner--${t.position} ${Cm[t.position]}`+(g.value===!0?" q-dialog__inner--animating":"")+(t.fullWidth===!0?" q-dialog__inner--fullwidth":"")+(t.fullHeight===!0?" q-dialog__inner--fullheight":"")+(t.square===!0?" q-dialog__inner--square":"")),k=i.computed(()=>h.value===!0&&t.seamless!==!0),te=i.computed(()=>t.autoClose===!0?{onClick:A}:{}),P=i.computed(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${k.value===!0?"modal":"seamless"}`,u.class]);i.watch(()=>t.maximized,U=>{h.value===!0&&B(U)}),i.watch(k,U=>{y(U),U===!0?(us(ve),os(se)):(jl(ve),Ai(se))});function ae(U){V(),O=t.noRefocus===!1&&document.activeElement!==null?document.activeElement:null,B(t.maximized),Q(),g.value=!0,t.noFocus!==!0?(document.activeElement!==null&&document.activeElement.blur(),z(fe)):R(),T(()=>{if(s.proxy.$q.platform.is.ios===!0){if(t.seamless!==!0&&document.activeElement){const{top:ne,bottom:Ae}=document.activeElement.getBoundingClientRect(),{innerHeight:Y}=window,De=window.visualViewport!==void 0?window.visualViewport.height:Y;ne>0&&Ae>De/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-De,Ae>=Y?1/0:Math.ceil(document.scrollingElement.scrollTop+Ae-De/2))),document.activeElement.scrollIntoView()}C=!0,f.value.click(),C=!1}Q(!0),g.value=!1,l("show",U)},t.transitionDuration)}function ue(U){R(),$(),ge(!0),g.value=!0,G(),O!==null&&(((U&&U.type.indexOf("key")===0?O.closest('[tabindex]:not([tabindex^="-"])'):void 0)||O).focus(),O=null),T(()=>{G(!0),g.value=!1,l("hide",U)},t.transitionDuration)}function fe(U){Si(()=>{let ne=f.value;if(ne!==null){if(U!==void 0){const Ae=ne.querySelector(U);if(Ae!==null){Ae.focus({preventScroll:!0});return}}ne.contains(document.activeElement)!==!0&&(ne=ne.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||ne.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||ne.querySelector("[autofocus], [data-autofocus]")||ne,ne.focus({preventScroll:!0}))}})}function W(U){U&&typeof U.focus=="function"?U.focus({preventScroll:!0}):fe(),l("shake");const ne=f.value;ne!==null&&(ne.classList.remove("q-animate--scale"),ne.classList.add("q-animate--scale"),x!==null&&clearTimeout(x),x=setTimeout(()=>{x=null,f.value!==null&&(ne.classList.remove("q-animate--scale"),fe())},170))}function se(){t.seamless!==!0&&(t.persistent===!0||t.noEscDismiss===!0?t.maximized!==!0&&t.noShake!==!0&&W():(l("escapeKey"),le()))}function ge(U){x!==null&&(clearTimeout(x),x=null),(U===!0||h.value===!0)&&(B(!1),t.seamless!==!0&&(y(!1),jl(ve),Ai(se))),U!==!0&&(O=null)}function B(U){U===!0?v!==!0&&(Ri<1&&document.body.classList.add("q-body--dialog"),Ri++,v=!0):v===!0&&(Ri<2&&document.body.classList.remove("q-body--dialog"),Ri--,v=!1)}function A(U){C!==!0&&(le(U),l("click",U))}function ie(U){t.persistent!==!0&&t.noBackdropDismiss!==!0?le(U):t.noShake!==!0&&W()}function ve(U){t.allowFocusOutside!==!0&&j.value===!0&&Du(f.value,U.target)!==!0&&fe('[tabindex]:not([tabindex="-1"])')}Object.assign(s.proxy,{focus:fe,shake:W,__updateRefocusTarget(U){O=U||null}}),i.onBeforeUnmount(ge);function _e(){return i.h("div",{role:"dialog","aria-modal":k.value===!0?"true":"false",...u,class:P.value},[i.h(i.Transition,{name:"q-transition--fade",appear:!0},()=>k.value===!0?i.h("div",{class:"q-dialog__backdrop fixed-full",style:N.value,"aria-hidden":"true",tabindex:-1,onClick:ie}):null),i.h(i.Transition,H.value,()=>h.value===!0?i.h("div",{ref:f,class:Z.value,style:F.value,tabindex:-1,...te.value},vt(o.default)):null)])}return K}});let Ii=!1;{const t=document.createElement("div");t.setAttribute("dir","rtl"),Object.assign(t.style,{width:"1px",height:"1px",overflow:"auto"});const o=document.createElement("div");Object.assign(o.style,{width:"1000px",height:"1px"}),document.body.appendChild(t),t.appendChild(o),t.scrollLeft=-1e3,Ii=t.scrollLeft>=0,t.remove()}const Dt=1e3,km=["start","center","end","start-force","center-force","end-force"],Ss=Array.prototype.filter,Am=window.getComputedStyle(document.body).overflowAnchor===void 0?$d:function(t,o){t!==null&&(t._qOverflowAnimationFrame!==void 0&&cancelAnimationFrame(t._qOverflowAnimationFrame),t._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(t===null)return;t._qOverflowAnimationFrame=void 0;const l=t.children||[];Ss.call(l,s=>s.dataset&&s.dataset.qVsAnchor!==void 0).forEach(s=>{delete s.dataset.qVsAnchor});const u=l[o];u&&u.dataset&&(u.dataset.qVsAnchor="")}))};function dr(t,o){return t+o}function eo(t,o,l,u,s,f,h,g){const x=t===window?document.scrollingElement||document.documentElement:t,O=s===!0?"offsetWidth":"offsetHeight",v={scrollStart:0,scrollViewSize:-h-g,scrollMaxSize:0,offsetStart:-h,offsetEnd:-g};if(s===!0?(t===window?(v.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,v.scrollViewSize+=document.documentElement.clientWidth):(v.scrollStart=x.scrollLeft,v.scrollViewSize+=x.clientWidth),v.scrollMaxSize=x.scrollWidth,f===!0&&(v.scrollStart=(Ii===!0?v.scrollMaxSize-v.scrollViewSize:0)-v.scrollStart)):(t===window?(v.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,v.scrollViewSize+=document.documentElement.clientHeight):(v.scrollStart=x.scrollTop,v.scrollViewSize+=x.clientHeight),v.scrollMaxSize=x.scrollHeight),l!==null)for(let C=l.previousElementSibling;C!==null;C=C.previousElementSibling)C.classList.contains("q-virtual-scroll--skip")===!1&&(v.offsetStart+=C[O]);if(u!==null)for(let C=u.nextElementSibling;C!==null;C=C.nextElementSibling)C.classList.contains("q-virtual-scroll--skip")===!1&&(v.offsetEnd+=C[O]);if(o!==t){const C=x.getBoundingClientRect(),E=o.getBoundingClientRect();s===!0?(v.offsetStart+=E.left-C.left,v.offsetEnd-=E.width):(v.offsetStart+=E.top-C.top,v.offsetEnd-=E.height),t!==window&&(v.offsetStart+=v.scrollStart),v.offsetEnd+=v.scrollMaxSize-v.offsetStart}return v}function xs(t,o,l,u){o==="end"&&(o=(t===window?document.body:t)[l===!0?"scrollWidth":"scrollHeight"]),t===window?l===!0?(u===!0&&(o=(Ii===!0?document.body.scrollWidth-document.documentElement.clientWidth:0)-o),window.scrollTo(o,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,o):l===!0?(u===!0&&(o=(Ii===!0?t.scrollWidth-t.offsetWidth:0)-o),t.scrollLeft=o):t.scrollTop=o}function Nr(t,o,l,u){if(l>=u)return 0;const s=o.length,f=Math.floor(l/Dt),h=Math.floor((u-1)/Dt)+1;let g=t.slice(f,h).reduce(dr,0);return l%Dt!==0&&(g-=o.slice(f*Dt,l).reduce(dr,0)),u%Dt!==0&&u!==s&&(g-=o.slice(u,h*Dt).reduce(dr,0)),g}const Cs={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,...{virtualScrollSliceSize:{type:[Number,String],default:10},virtualScrollSliceRatioBefore:{type:[Number,String],default:1},virtualScrollSliceRatioAfter:{type:[Number,String],default:1},virtualScrollItemSize:{type:[Number,String],default:24},virtualScrollStickySizeStart:{type:[Number,String],default:0},virtualScrollStickySizeEnd:{type:[Number,String],default:0},tableColspan:[Number,String]}};function Om({virtualScrollLength:t,getVirtualScrollTarget:o,getVirtualScrollEl:l,virtualScrollItemSizeComputed:u}){const s=i.getCurrentInstance(),{props:f,emit:h,proxy:g}=s,{$q:x}=g;let O,v,C,E=[],y;const T=i.ref(0),z=i.ref(0),R=i.ref({}),H=i.ref(null),F=i.ref(null),N=i.ref(null),Q=i.ref({from:0,to:0}),G=i.computed(()=>f.tableColspan!==void 0?f.tableColspan:100);u===void 0&&(u=i.computed(()=>f.virtualScrollItemSize));const j=i.computed(()=>u.value+";"+f.virtualScrollHorizontal),K=i.computed(()=>j.value+";"+f.virtualScrollSliceRatioBefore+";"+f.virtualScrollSliceRatioAfter);i.watch(K,()=>{ue()}),i.watch(j,le);function le(){ae(v,!0)}function V(B){ae(B===void 0?v:B)}function $(B,A){const ie=o();if(ie==null||ie.nodeType===8)return;const ve=eo(ie,l(),H.value,F.value,f.virtualScrollHorizontal,x.lang.rtl,f.virtualScrollStickySizeStart,f.virtualScrollStickySizeEnd);C!==ve.scrollViewSize&&ue(ve.scrollViewSize),k(ie,ve,Math.min(t.value-1,Math.max(0,parseInt(B,10)||0)),0,km.indexOf(A)!==-1?A:v!==-1&&B>v?"end":"start")}function Z(){const B=o();if(B==null||B.nodeType===8)return;const A=eo(B,l(),H.value,F.value,f.virtualScrollHorizontal,x.lang.rtl,f.virtualScrollStickySizeStart,f.virtualScrollStickySizeEnd),ie=t.value-1,ve=A.scrollMaxSize-A.offsetStart-A.offsetEnd-z.value;if(O===A.scrollStart)return;if(A.scrollMaxSize<=0){k(B,A,0,0);return}C!==A.scrollViewSize&&ue(A.scrollViewSize),te(Q.value.from);const _e=Math.floor(A.scrollMaxSize-Math.max(A.scrollViewSize,A.offsetEnd)-Math.min(y[ie],A.scrollViewSize/2));if(_e>0&&Math.ceil(A.scrollStart)>=_e){k(B,A,ie,A.scrollMaxSize-A.offsetEnd-E.reduce(dr,0));return}let U=0,ne=A.scrollStart-A.offsetStart,Ae=ne;if(ne<=ve&&ne+A.scrollViewSize>=T.value)ne-=T.value,U=Q.value.from,Ae=ne;else for(let Y=0;ne>=E[Y]&&U<ie;Y++)ne-=E[Y],U+=Dt;for(;ne>0&&U<ie;)ne-=y[U],ne>-A.scrollViewSize?(U++,Ae=ne):Ae=y[U]+ne;k(B,A,U,Ae)}function k(B,A,ie,ve,_e){const U=typeof _e=="string"&&_e.indexOf("-force")!==-1,ne=U===!0?_e.replace("-force",""):_e,Ae=ne!==void 0?ne:"start";let Y=Math.max(0,ie-R.value[Ae]),De=Y+R.value.total;De>t.value&&(De=t.value,Y=Math.max(0,De-R.value.total)),O=A.scrollStart;const ot=Y!==Q.value.from||De!==Q.value.to;if(ot===!1&&ne===void 0){W(ie);return}const{activeElement:$t}=document,bt=N.value;ot===!0&&bt!==null&&bt!==$t&&bt.contains($t)===!0&&(bt.addEventListener("focusout",P),setTimeout(()=>{bt!==null&&bt.removeEventListener("focusout",P)})),Am(bt,ie-Y);const rt=ne!==void 0?y.slice(Y,ie).reduce(dr,0):0;if(ot===!0){const yt=De>=Q.value.from&&Y<=Q.value.to?Q.value.to:De;Q.value={from:Y,to:yt},T.value=Nr(E,y,0,Y),z.value=Nr(E,y,De,t.value),requestAnimationFrame(()=>{Q.value.to!==De&&O===A.scrollStart&&(Q.value={from:Q.value.from,to:De},z.value=Nr(E,y,De,t.value))})}requestAnimationFrame(()=>{if(O!==A.scrollStart)return;ot===!0&&te(Y);const yt=y.slice(Y,ie).reduce(dr,0),tn=yt+A.offsetStart+T.value,ft=tn+y[ie];let vn=tn+ve;if(ne!==void 0){const Dr=yt-rt,Ft=A.scrollStart+Dr;vn=U!==!0&&Ft<tn&&ft<Ft+A.scrollViewSize?Ft:ne==="end"?ft-A.scrollViewSize:tn-(ne==="start"?0:Math.round((A.scrollViewSize-y[ie])/2))}O=vn,xs(B,vn,f.virtualScrollHorizontal,x.lang.rtl),W(ie)})}function te(B){const A=N.value;if(A){const ie=Ss.call(A.children,Y=>Y.classList&&Y.classList.contains("q-virtual-scroll--skip")===!1),ve=ie.length,_e=f.virtualScrollHorizontal===!0?Y=>Y.getBoundingClientRect().width:Y=>Y.offsetHeight;let U=B,ne,Ae;for(let Y=0;Y<ve;){for(ne=_e(ie[Y]),Y++;Y<ve&&ie[Y].classList.contains("q-virtual-scroll--with-prev")===!0;)ne+=_e(ie[Y]),Y++;Ae=ne-y[U],Ae!==0&&(y[U]+=Ae,E[Math.floor(U/Dt)]+=Ae),U++}}}function P(){N.value!==null&&N.value!==void 0&&N.value.focus()}function ae(B,A){const ie=1*u.value;(A===!0||Array.isArray(y)===!1)&&(y=[]);const ve=y.length;y.length=t.value;for(let U=t.value-1;U>=ve;U--)y[U]=ie;const _e=Math.floor((t.value-1)/Dt);E=[];for(let U=0;U<=_e;U++){let ne=0;const Ae=Math.min((U+1)*Dt,t.value);for(let Y=U*Dt;Y<Ae;Y++)ne+=y[Y];E.push(ne)}v=-1,O=void 0,T.value=Nr(E,y,0,Q.value.from),z.value=Nr(E,y,Q.value.to,t.value),B>=0?(te(Q.value.from),i.nextTick(()=>{$(B)})):se()}function ue(B){if(B===void 0&&typeof window<"u"){const ne=o();ne!=null&&ne.nodeType!==8&&(B=eo(ne,l(),H.value,F.value,f.virtualScrollHorizontal,x.lang.rtl,f.virtualScrollStickySizeStart,f.virtualScrollStickySizeEnd).scrollViewSize)}C=B;const A=parseFloat(f.virtualScrollSliceRatioBefore)||0,ie=parseFloat(f.virtualScrollSliceRatioAfter)||0,ve=1+A+ie,_e=B===void 0||B<=0?1:Math.ceil(B/u.value),U=Math.max(1,_e,Math.ceil((f.virtualScrollSliceSize>0?f.virtualScrollSliceSize:10)/ve));R.value={total:Math.ceil(U*ve),start:Math.ceil(U*A),center:Math.ceil(U*(.5+A)),end:Math.ceil(U*(1+A)),view:_e}}function fe(B,A){const ie=f.virtualScrollHorizontal===!0?"width":"height",ve={["--q-virtual-scroll-item-"+ie]:u.value+"px"};return[B==="tbody"?i.h(B,{class:"q-virtual-scroll__padding",key:"before",ref:H},[i.h("tr",[i.h("td",{style:{[ie]:`${T.value}px`,...ve},colspan:G.value})])]):i.h(B,{class:"q-virtual-scroll__padding",key:"before",ref:H,style:{[ie]:`${T.value}px`,...ve}}),i.h(B,{class:"q-virtual-scroll__content",key:"content",ref:N,tabindex:-1},A.flat()),B==="tbody"?i.h(B,{class:"q-virtual-scroll__padding",key:"after",ref:F},[i.h("tr",[i.h("td",{style:{[ie]:`${z.value}px`,...ve},colspan:G.value})])]):i.h(B,{class:"q-virtual-scroll__padding",key:"after",ref:F,style:{[ie]:`${z.value}px`,...ve}})]}function W(B){v!==B&&(f.onVirtualScroll!==void 0&&h("virtualScroll",{index:B,from:Q.value.from,to:Q.value.to-1,direction:B<v?"decrease":"increase",ref:g}),v=B)}ue();const se=Ru(Z,x.platform.is.ios===!0?120:35);i.onBeforeMount(()=>{ue()});let ge=!1;return i.onDeactivated(()=>{ge=!0}),i.onActivated(()=>{if(ge!==!0)return;const B=o();O!==void 0&&B!==void 0&&B!==null&&B.nodeType!==8?xs(B,O,f.virtualScrollHorizontal,x.lang.rtl):$(v)}),i.onBeforeUnmount(()=>{se.cancel()}),Object.assign(g,{scrollTo:$,reset:le,refresh:V}),{virtualScrollSliceRange:Q,virtualScrollSliceSizeComputed:R,setVirtualScrollSize:ue,onVirtualScrollEvt:se,localResetVirtualScroll:ae,padVirtualScroll:fe,scrollTo:$,reset:le,refresh:V}}function Es(t,o,l){if(l<=o)return o;const u=l-o+1;let s=o+(t-o)%u;return s<o&&(s=u+s),s===0?0:s}const ks=t=>["add","add-unique","toggle"].includes(t),Tm=".*+?^${}()|[]\\",Bm=Object.keys(xi),As=Ze({name:"QSelect",inheritAttrs:!1,props:{...Cs,...Pl,...xi,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:ks},mapOptions:Boolean,emitValue: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:t=>["default","menu","dialog"].includes(t),default:"default"},virtualScrollItemSize:Cs.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...Ul,"add","remove","inputValue","keyup","keypress","keydown","popupShow","popupHide","filterAbort"],setup(t,{slots:o,emit:l}){const{proxy:u}=i.getCurrentInstance(),{$q:s}=u,f=i.ref(!1),h=i.ref(!1),g=i.ref(-1),x=i.ref(""),O=i.ref(!1),v=i.ref(!1);let C=null,E=null,y,T,z,R=null,H,F,N,Q;const G=i.ref(null),j=i.ref(null),K=i.ref(null),le=i.ref(null),V=i.ref(null),$=vu(t),Z=Pu(Di),k=i.computed(()=>Array.isArray(t.options)?t.options.length:0),te=i.computed(()=>t.virtualScrollItemSize===void 0?t.optionsDense===!0?24:48:t.virtualScrollItemSize),{virtualScrollSliceRange:P,virtualScrollSliceSizeComputed:ae,localResetVirtualScroll:ue,padVirtualScroll:fe,onVirtualScrollEvt:W,scrollTo:se,setVirtualScrollSize:ge}=Om({virtualScrollLength:k,getVirtualScrollTarget:Pi,getVirtualScrollEl:Fr,virtualScrollItemSizeComputed:te}),B=zl(),A=i.computed(()=>{const _=t.mapOptions===!0&&t.multiple!==!0,ee=t.modelValue!==void 0&&(t.modelValue!==null||_===!0)?t.multiple===!0&&Array.isArray(t.modelValue)?t.modelValue:[t.modelValue]:[];if(t.mapOptions===!0&&Array.isArray(t.options)===!0){const X=t.mapOptions===!0&&y!==void 0?y:[],me=ee.map(Ie=>$r(Ie,X));return t.modelValue===null&&_===!0?me.filter(Ie=>Ie!==null):me}return ee}),ie=i.computed(()=>{const _={};return Bm.forEach(ee=>{const X=t[ee];X!==void 0&&(_[ee]=X)}),_}),ve=i.computed(()=>t.optionsDark===null?B.isDark.value:t.optionsDark),_e=i.computed(()=>Lr(A.value)),U=i.computed(()=>{let _="q-field__input q-placeholder col";return t.hideSelected===!0||A.value.length===0?[_,t.inputClass]:(_+=" q-field__input--padding",t.inputClass===void 0?_:[_,t.inputClass])}),ne=i.computed(()=>(t.virtualScrollHorizontal===!0?"q-virtual-scroll--horizontal":"")+(t.popupContentClass?" "+t.popupContentClass:"")),Ae=i.computed(()=>k.value===0),Y=i.computed(()=>A.value.map(_=>je.value(_)).join(", ")),De=i.computed(()=>t.displayValue!==void 0?t.displayValue:Y.value),ot=i.computed(()=>t.optionsHtml===!0?()=>!0:_=>_!=null&&_.html===!0),$t=i.computed(()=>t.displayValueHtml===!0||t.displayValue===void 0&&(t.optionsHtml===!0||A.value.some(ot.value))),bt=i.computed(()=>B.focused.value===!0?t.tabindex:-1),rt=i.computed(()=>{const _={tabindex:t.tabindex,role:"combobox","aria-label":t.label,"aria-readonly":t.readonly===!0?"true":"false","aria-autocomplete":t.useInput===!0?"list":"none","aria-expanded":f.value===!0?"true":"false","aria-controls":`${B.targetUid.value}_lb`};return g.value>=0&&(_["aria-activedescendant"]=`${B.targetUid.value}_${g.value}`),_}),yt=i.computed(()=>({id:`${B.targetUid.value}_lb`,role:"listbox","aria-multiselectable":t.multiple===!0?"true":"false"})),tn=i.computed(()=>A.value.map((_,ee)=>({index:ee,opt:_,html:ot.value(_),selected:!0,removeAtIndex:_n,toggleOption:zt,tabindex:bt.value}))),ft=i.computed(()=>{if(k.value===0)return[];const{from:_,to:ee}=P.value;return t.options.slice(_,ee).map((X,me)=>{const Ie=Ut.value(X)===!0,Be=Fn(X)===!0,Ge=_+me,Ve={clickable:!0,active:Be,activeClass:Ft.value,manualFocus:!0,focused:!1,disable:Ie,tabindex:-1,dense:t.optionsDense,dark:ve.value,role:"option","aria-selected":Be===!0?"true":"false",id:`${B.targetUid.value}_${Ge}`,onClick:()=>{zt(X)}};return Ie!==!0&&(g.value===Ge&&(Ve.focused=!0),s.platform.is.desktop===!0&&(Ve.onMousemove=()=>{f.value===!0&&Qt(Ge)})),{index:Ge,opt:X,html:ot.value(X),label:je.value(X),selected:Ve.active,focused:Ve.focused,toggleOption:zt,setOptionIndex:Qt,itemProps:Ve}})}),vn=i.computed(()=>t.dropdownIcon!==void 0?t.dropdownIcon:s.iconSet.arrow.dropdown),Dr=i.computed(()=>t.optionsCover===!1&&t.outlined!==!0&&t.standout!==!0&&t.borderless!==!0&&t.rounded!==!0),Ft=i.computed(()=>t.optionsSelectedClass!==void 0?t.optionsSelectedClass:t.color!==void 0?`text-${t.color}`:""),Fe=i.computed(()=>$n(t.optionValue,"value")),je=i.computed(()=>$n(t.optionLabel,"label")),Ut=i.computed(()=>$n(t.optionDisable,"disable")),hr=i.computed(()=>A.value.map(_=>Fe.value(_))),Dn=i.computed(()=>{const _={onInput:Di,onChange:Z,onKeydown:Vi,onKeyup:Li,onKeypress:qi,onFocus:gr,onClick(ee){T===!0&&Yt(ee)}};return _.onCompositionstart=_.onCompositionupdate=_.onCompositionend=Z,_});i.watch(A,_=>{y=_,t.useInput===!0&&t.fillInput===!0&&t.multiple!==!0&&B.innerLoading.value!==!0&&(h.value!==!0&&f.value!==!0||_e.value!==!0)&&(z!==!0&&ln(),(h.value===!0||f.value===!0)&&yn(""))},{immediate:!0}),i.watch(()=>t.fillInput,ln),i.watch(f,Hr),i.watch(k,ho);function Mi(_){return t.emitValue===!0?Fe.value(_):_}function nn(_){if(_!==-1&&_<A.value.length)if(t.multiple===!0){const ee=t.modelValue.slice();l("remove",{index:_,value:ee.splice(_,1)[0]}),l("update:modelValue",ee)}else l("update:modelValue",null)}function _n(_){nn(_),B.focus()}function mr(_,ee){const X=Mi(_);if(t.multiple!==!0){t.fillInput===!0&&zn(je.value(_),!0,!0),l("update:modelValue",X);return}if(A.value.length===0){l("add",{index:0,value:X}),l("update:modelValue",t.multiple===!0?[X]:X);return}if(ee===!0&&Fn(_)===!0||t.maxValues!==void 0&&t.modelValue.length>=t.maxValues)return;const me=t.modelValue.slice();l("add",{index:me.length,value:X}),me.push(X),l("update:modelValue",me)}function zt(_,ee){if(B.editable.value!==!0||_===void 0||Ut.value(_)===!0)return;const X=Fe.value(_);if(t.multiple!==!0){ee!==!0&&(zn(t.fillInput===!0?je.value(_):"",!0,!0),rn()),j.value!==null&&j.value.focus(),(A.value.length===0||en(Fe.value(A.value[0]),X)!==!0)&&l("update:modelValue",t.emitValue===!0?X:_);return}if((T!==!0||O.value===!0)&&B.focus(),gr(),A.value.length===0){const Be=t.emitValue===!0?X:_;l("add",{index:0,value:Be}),l("update:modelValue",t.multiple===!0?[Be]:Be);return}const me=t.modelValue.slice(),Ie=hr.value.findIndex(Be=>en(Be,X));if(Ie!==-1)l("remove",{index:Ie,value:me.splice(Ie,1)[0]});else{if(t.maxValues!==void 0&&me.length>=t.maxValues)return;const Be=t.emitValue===!0?X:_;l("add",{index:me.length,value:Be}),me.push(Be)}l("update:modelValue",me)}function Qt(_){if(s.platform.is.desktop!==!0)return;const ee=_!==-1&&_<k.value?_:-1;g.value!==ee&&(g.value=ee)}function bn(_=1,ee){if(f.value===!0){let X=g.value;do X=Es(X+_,-1,k.value-1);while(X!==-1&&X!==g.value&&Ut.value(t.options[X])===!0);g.value!==X&&(Qt(X),se(X),ee!==!0&&t.useInput===!0&&t.fillInput===!0&&Un(X>=0?je.value(t.options[X]):H,!0))}}function $r(_,ee){const X=me=>en(Fe.value(me),_);return t.options.find(X)||ee.find(X)||_}function $n(_,ee){const X=_!==void 0?_:ee;return typeof X=="function"?X:me=>me!==null&&typeof me=="object"&&X in me?me[X]:me}function Fn(_){const ee=Fe.value(_);return hr.value.find(X=>en(X,ee))!==void 0}function gr(_){t.useInput===!0&&j.value!==null&&(_===void 0||j.value===_.target&&_.target.value===Y.value)&&j.value.select()}function pr(_){Ln(_,27)===!0&&f.value===!0&&(Yt(_),rn(),ln()),l("keyup",_)}function Li(_){const{value:ee}=_.target;if(_.keyCode!==void 0){pr(_);return}if(_.target.value="",C!==null&&(clearTimeout(C),C=null),E!==null&&(clearTimeout(E),E=null),ln(),typeof ee=="string"&&ee.length!==0){const X=ee.toLocaleLowerCase(),me=Be=>{const Ge=t.options.find(Ve=>Be.value(Ve).toLocaleLowerCase()===X);return Ge===void 0?!1:(A.value.indexOf(Ge)===-1?zt(Ge):rn(),!0)},Ie=Be=>{me(Fe)!==!0&&(me(je)===!0||Be===!0||yn(ee,!0,()=>Ie(!0)))};Ie()}else B.clearValue(_)}function qi(_){l("keypress",_)}function Vi(_){if(l("keydown",_),Wl(_)===!0)return;const ee=x.value.length!==0&&(t.newValueMode!==void 0||t.onNewValue!==void 0),X=_.shiftKey!==!0&&t.multiple!==!0&&(g.value!==-1||ee===!0);if(_.keyCode===27){Nt(_);return}if(_.keyCode===9&&X===!1){wn();return}if(_.target===void 0||_.target.id!==B.targetUid.value||B.editable.value!==!0)return;if(_.keyCode===40&&B.innerLoading.value!==!0&&f.value===!1){Ke(_),Sn();return}if(_.keyCode===8&&(t.useChips===!0||t.clearable===!0)&&t.hideSelected!==!0&&x.value.length===0){t.multiple===!0&&Array.isArray(t.modelValue)===!0?nn(t.modelValue.length-1):t.multiple!==!0&&t.modelValue!==null&&l("update:modelValue",null);return}(_.keyCode===35||_.keyCode===36)&&(typeof x.value!="string"||x.value.length===0)&&(Ke(_),g.value=-1,bn(_.keyCode===36?1:-1,t.multiple)),(_.keyCode===33||_.keyCode===34)&&ae.value!==void 0&&(Ke(_),g.value=Math.max(-1,Math.min(k.value,g.value+(_.keyCode===33?-1:1)*ae.value.view)),bn(_.keyCode===33?1:-1,t.multiple)),(_.keyCode===38||_.keyCode===40)&&(Ke(_),bn(_.keyCode===38?-1:1,t.multiple));const me=k.value;if((N===void 0||Q<Date.now())&&(N=""),me>0&&t.useInput!==!0&&_.key!==void 0&&_.key.length===1&&_.altKey===!1&&_.ctrlKey===!1&&_.metaKey===!1&&(_.keyCode!==32||N.length!==0)){f.value!==!0&&Sn(_);const Ie=_.key.toLocaleLowerCase(),Be=N.length===1&&N[0]===Ie;Q=Date.now()+1500,Be===!1&&(Ke(_),N+=Ie);const Ge=new RegExp("^"+N.split("").map(vr=>Tm.indexOf(vr)!==-1?"\\"+vr:vr).join(".*"),"i");let Ve=g.value;if(Be===!0||Ve<0||Ge.test(je.value(t.options[Ve]))!==!0)do Ve=Es(Ve+1,-1,me-1);while(Ve!==g.value&&(Ut.value(t.options[Ve])===!0||Ge.test(je.value(t.options[Ve]))!==!0));g.value!==Ve&&i.nextTick(()=>{Qt(Ve),se(Ve),Ve>=0&&t.useInput===!0&&t.fillInput===!0&&Un(je.value(t.options[Ve]),!0)});return}if(!(_.keyCode!==13&&(_.keyCode!==32||t.useInput===!0||N!=="")&&(_.keyCode!==9||X===!1))){if(_.keyCode!==9&&Ke(_),g.value!==-1&&g.value<me){zt(t.options[g.value]);return}if(ee===!0){const Ie=(Be,Ge)=>{if(Ge){if(ks(Ge)!==!0)return}else Ge=t.newValueMode;if(zn("",t.multiple!==!0,!0),Be==null)return;(Ge==="toggle"?zt:mr)(Be,Ge==="add-unique"),t.multiple!==!0&&(j.value!==null&&j.value.focus(),rn())};if(t.onNewValue!==void 0?l("newValue",x.value,Ie):Ie(x.value),t.multiple!==!0)return}f.value===!0?wn():B.innerLoading.value!==!0&&Sn()}}function Fr(){return T===!0?V.value:K.value!==null&&K.value.contentEl!==null?K.value.contentEl:void 0}function Pi(){return Fr()}function ro(){return t.hideSelected===!0?[]:o["selected-item"]!==void 0?tn.value.map(_=>o["selected-item"](_)).slice():o.selected!==void 0?[].concat(o.selected()):t.useChips===!0?tn.value.map((_,ee)=>i.h(Uh,{key:"option-"+ee,removable:B.editable.value===!0&&Ut.value(_.opt)!==!0,dense:!0,textColor:t.color,tabindex:bt.value,onRemove(){_.removeAtIndex(ee)}},()=>i.h("span",{class:"ellipsis",[_.html===!0?"innerHTML":"textContent"]:je.value(_.opt)}))):[i.h("span",{[$t.value===!0?"innerHTML":"textContent"]:De.value})]}function Ni(){if(Ae.value===!0)return o["no-option"]!==void 0?o["no-option"]({inputValue:x.value}):void 0;const _=o.option!==void 0?o.option:X=>i.h(zh,{key:X.index,...X.itemProps},()=>i.h(Hh,()=>i.h(Wh,()=>i.h("span",{[X.html===!0?"innerHTML":"textContent"]:X.label}))));let ee=fe("div",ft.value.map(_));return o["before-options"]!==void 0&&(ee=o["before-options"]().concat(ee)),In(o["after-options"],ee)}function io(_,ee){const X=ee===!0?{...rt.value,...B.splitAttrs.attributes.value}:void 0,me={ref:ee===!0?j:void 0,key:"i_t",class:U.value,style:t.inputStyle,value:x.value!==void 0?x.value:"",type:"search",...X,id:ee===!0?B.targetUid.value:void 0,maxlength:t.maxlength,autocomplete:t.autocomplete,"data-autofocus":_===!0||t.autofocus===!0||void 0,disabled:t.disable===!0,readonly:t.readonly===!0,...Dn.value};return _!==!0&&T===!0&&(Array.isArray(me.class)===!0?me.class=[...me.class,"no-pointer-events"]:me.class+=" no-pointer-events"),i.h("input",me)}function Di(_){C!==null&&(clearTimeout(C),C=null),E!==null&&(clearTimeout(E),E=null),!(_&&_.target&&_.target.qComposing===!0)&&(Un(_.target.value||""),z=!0,H=x.value,B.focused.value!==!0&&(T!==!0||O.value===!0)&&B.focus(),t.onFilter!==void 0&&(C=setTimeout(()=>{C=null,yn(x.value)},t.inputDebounce)))}function Un(_,ee){x.value!==_&&(x.value=_,ee===!0||t.inputDebounce===0||t.inputDebounce==="0"?l("inputValue",_):E=setTimeout(()=>{E=null,l("inputValue",_)},t.inputDebounce))}function zn(_,ee,X){z=X!==!0,t.useInput===!0&&(Un(_,!0),(ee===!0||X!==!0)&&(H=_),ee!==!0&&yn(_))}function yn(_,ee,X){if(t.onFilter===void 0||ee!==!0&&B.focused.value!==!0)return;B.innerLoading.value===!0?l("filterAbort"):(B.innerLoading.value=!0,v.value=!0),_!==""&&t.multiple!==!0&&A.value.length!==0&&z!==!0&&_===je.value(A.value[0])&&(_="");const me=setTimeout(()=>{f.value===!0&&(f.value=!1)},10);R!==null&&clearTimeout(R),R=me,l("filter",_,(Ie,Be)=>{(ee===!0||B.focused.value===!0)&&R===me&&(clearTimeout(R),typeof Ie=="function"&&Ie(),v.value=!1,i.nextTick(()=>{B.innerLoading.value=!1,B.editable.value===!0&&(ee===!0?f.value===!0&&rn():f.value===!0?Hr(!0):f.value=!0),typeof Be=="function"&&i.nextTick(()=>{Be(u)}),typeof X=="function"&&i.nextTick(()=>{X(u)})}))},()=>{B.focused.value===!0&&R===me&&(clearTimeout(R),B.innerLoading.value=!1,v.value=!1),f.value===!0&&(f.value=!1)})}function lo(){return i.h(_m,{ref:K,class:ne.value,style:t.popupContentStyle,modelValue:f.value,fit:t.menuShrink!==!0,cover:t.optionsCover===!0&&Ae.value!==!0&&t.useInput!==!0,anchor:t.menuAnchor,self:t.menuSelf,offset:t.menuOffset,dark:ve.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,noRouteDismiss:t.popupNoRouteDismiss,square:Dr.value,transitionShow:t.transitionShow,transitionHide:t.transitionHide,transitionDuration:t.transitionDuration,separateClosePopup:!0,...yt.value,onScrollPassive:W,onBeforeShow:Fi,onBeforeHide:Ur,onShow:oo},Ni)}function Ur(_){Ui(_),wn()}function oo(){ge()}function zr(_){Yt(_),j.value!==null&&j.value.focus(),O.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function ao(_){Yt(_),i.nextTick(()=>{O.value=!1})}function uo(){const _=[i.h($h,{class:`col-auto ${B.fieldClass.value}`,...ie.value,for:B.targetUid.value,dark:ve.value,square:!0,loading:v.value,itemAligned:!1,filled:!0,stackLabel:x.value.length!==0,...B.splitAttrs.listeners.value,onFocus:zr,onBlur:ao},{...o,rawControl:()=>B.getControl(!0),before:void 0,after:void 0})];return f.value===!0&&_.push(i.h("div",{ref:V,class:ne.value+" scroll",style:t.popupContentStyle,...yt.value,onClick:Nt,onScrollPassive:W},Ni())),i.h(Em,{ref:le,modelValue:h.value,position:t.useInput===!0?"top":void 0,transitionShow:F,transitionHide:t.transitionHide,transitionDuration:t.transitionDuration,noRouteDismiss:t.popupNoRouteDismiss,onBeforeShow:Fi,onBeforeHide:so,onHide:co,onShow:fo},()=>i.h("div",{class:"q-select__dialog"+(ve.value===!0?" q-select__dialog--dark q-dark":"")+(O.value===!0?" q-select__dialog--focused":"")},_))}function so(_){Ui(_),le.value!==null&&le.value.__updateRefocusTarget(B.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),B.focused.value=!1}function co(_){rn(),B.focused.value===!1&&l("blur",_),ln()}function fo(){const _=document.activeElement;(_===null||_.id!==B.targetUid.value)&&j.value!==null&&j.value!==_&&j.value.focus(),ge()}function wn(){h.value!==!0&&(g.value=-1,f.value===!0&&(f.value=!1),B.focused.value===!1&&(R!==null&&(clearTimeout(R),R=null),B.innerLoading.value===!0&&(l("filterAbort"),B.innerLoading.value=!1,v.value=!1)))}function Sn(_){B.editable.value===!0&&(T===!0?(B.onControlFocusin(_),h.value=!0,i.nextTick(()=>{B.focus()})):B.focus(),t.onFilter!==void 0?yn(x.value):(Ae.value!==!0||o["no-option"]!==void 0)&&(f.value=!0))}function rn(){h.value=!1,wn()}function ln(){t.useInput===!0&&zn(t.multiple!==!0&&t.fillInput===!0&&A.value.length!==0&&je.value(A.value[0])||"",!0,!0)}function Hr(_){let ee=-1;if(_===!0){if(A.value.length!==0){const X=Fe.value(A.value[0]);ee=t.options.findIndex(me=>en(Fe.value(me),X))}ue(ee)}Qt(ee)}function ho(_,ee){f.value===!0&&B.innerLoading.value===!1&&(ue(-1,!0),i.nextTick(()=>{f.value===!0&&B.innerLoading.value===!1&&(_>ee?ue():Hr(!0))}))}function $i(){h.value===!1&&K.value!==null&&K.value.updatePosition()}function Fi(_){_!==void 0&&Yt(_),l("popupShow",_),B.hasPopupOpen=!0,B.onControlFocusin(_)}function Ui(_){_!==void 0&&Yt(_),l("popupHide",_),B.hasPopupOpen=!1,B.onControlFocusout(_)}function zi(){T=s.platform.is.mobile!==!0&&t.behavior!=="dialog"?!1:t.behavior!=="menu"&&(t.useInput===!0?o["no-option"]!==void 0||t.onFilter!==void 0||Ae.value===!1:!0),F=s.platform.is.ios===!0&&T===!0&&t.useInput===!0?"fade":t.transitionShow}return i.onBeforeUpdate(zi),i.onUpdated($i),zi(),i.onBeforeUnmount(()=>{C!==null&&clearTimeout(C),E!==null&&clearTimeout(E)}),Object.assign(u,{showPopup:Sn,hidePopup:rn,removeAtIndex:nn,add:mr,toggleOption:zt,getOptionIndex:()=>g.value,setOptionIndex:Qt,moveOptionSelection:bn,filter:yn,updateMenuPosition:$i,updateInputValue:zn,isOptionSelected:Fn,getEmittingOptionValue:Mi,isOptionDisabled:(..._)=>Ut.value.apply(null,_)===!0,getOptionValue:(..._)=>Fe.value.apply(null,_),getOptionLabel:(..._)=>je.value.apply(null,_)}),Object.assign(B,{innerValue:A,fieldClass:i.computed(()=>`q-select q-field--auto-height q-select--with${t.useInput!==!0?"out":""}-input q-select--with${t.useChips!==!0?"out":""}-chips q-select--${t.multiple===!0?"multiple":"single"}`),inputRef:G,targetRef:j,hasValue:_e,showPopup:Sn,floatingLabel:i.computed(()=>t.hideSelected!==!0&&_e.value===!0||typeof x.value=="number"||x.value.length!==0||Lr(t.displayValue)),getControlChild:()=>{if(B.editable.value!==!1&&(h.value===!0||Ae.value!==!0||o["no-option"]!==void 0))return T===!0?uo():lo();B.hasPopupOpen===!0&&(B.hasPopupOpen=!1)},controlEvents:{onFocusin(_){B.onControlFocusin(_)},onFocusout(_){B.onControlFocusout(_,()=>{ln(),wn()})},onClick(_){if(Nt(_),T!==!0&&f.value===!0){wn(),j.value!==null&&j.value.focus();return}Sn(_)}},getControl:_=>{const ee=ro(),X=_===!0||h.value!==!0||T!==!0;if(t.useInput===!0)ee.push(io(_,X));else if(B.editable.value===!0){const Ie=X===!0?rt.value:void 0;ee.push(i.h("input",{ref:X===!0?j:void 0,key:"d_t",class:"q-select__focus-target",id:X===!0?B.targetUid.value:void 0,value:De.value,readonly:!0,"data-autofocus":_===!0||t.autofocus===!0||void 0,...Ie,onKeydown:Vi,onKeyup:pr,onKeypress:qi})),X===!0&&typeof t.autocomplete=="string"&&t.autocomplete.length!==0&&ee.push(i.h("input",{class:"q-select__autocomplete-input",autocomplete:t.autocomplete,tabindex:-1,onKeyup:Li}))}if($.value!==void 0&&t.disable!==!0&&hr.value.length!==0){const Ie=hr.value.map(Be=>i.h("option",{value:Be,selected:!0}));ee.push(i.h("select",{class:"hidden",name:$.value,multiple:t.multiple},Ie))}const me=t.useInput===!0||X!==!0?void 0:B.splitAttrs.attributes.value;return i.h("div",{class:"q-field__native row items-center",...me,...B.splitAttrs.listeners.value},ee)},getInnerAppend:()=>t.loading!==!0&&v.value!==!0&&t.hideDropdownIcon!==!0?[i.h(_t,{class:"q-select__dropdown-icon"+(f.value===!0?" rotate-180":""),name:vn.value})]:null}),Hl(B)}}),Rm=Ot(i.defineComponent({__name:"SelectControl",props:i.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=i.ref([]),l=i.useModel(t,"modelValue"),u=t,s=i.ref(!1),f=i.computed(()=>u.control.customParams),h=i.ref([]),g=i.computed(()=>{var C;return((C=f.value)==null?void 0:C.collection)||null}),x=i.computed(()=>g.value?h.value:u.control.options),O=ir();i.watch(g,C=>{if(!C)return;const E=O.getCollection(g.value);if(E){h.value=E;return}s.value=!0},{immediate:!0});function v(C,E){if(C===""){E(()=>{o.value=Ne.cloneDeep(x.value)});return}E(()=>{const y=C.toLowerCase();o.value=(x.value||[]).filter(T=>T.toLowerCase().includes(y))})}return(C,E)=>{const y=i.resolveComponent("ControlLabel");return i.openBlock(),i.createElementBlock(i.Fragment,null,[C.control.label?(i.openBlock(),i.createBlock(y,{key:0,label:C.control.label},null,8,["label"])):i.createCommentVNode("",!0),i.createVNode(Ei,{class:"q-card win-card row items-center q-px-md"},{default:i.withCtx(()=>[i.createVNode(As,{borderless:"",label:C.control.label,modelValue:l.value,"onUpdate:modelValue":E[0]||(E[0]=T=>l.value=T),"emit-value":"","option-label":"label","map-options":"","use-input":"",clearable:"",onFilter:v,options:o.value,style:{minHeight:"70px",width:"300px",margin:"auto"}},null,8,["label","modelValue","options"])]),_:1})],64)}}}),[["__scopeId","data-v-fa1749f7"]]),Im={class:"text-center",style:{width:"100%"}},Mm={class:"text-center text-weight-medium"},Lm={class:"question-title"},qm=i.defineComponent({__name:"StepHeader",props:{formGroup:{},stepsCount:{}},setup(t){return(o,l)=>(i.openBlock(),i.createElementBlock("div",Im,[i.createElementVNode("div",Mm,i.toDisplayString(o.formGroup.order+1)+"/"+i.toDisplayString(o.stepsCount),1),i.createElementVNode("div",Lm,i.toDisplayString(o.formGroup.title||""),1)]))}});function Vm(){return i.inject(Yd)}function Os(t,o){const{maxControlsPerGroup:l,notifyValidations:u}={...td,...o||{}},s=ir(),f=i.computed(()=>s.formSteps[t]),h=i.ref([]),g=i.ref([]),x=(y,T)=>{s.setControlValue(t,y);const z=h.value.find(F=>F.id===T);z&&(g.value=rd(z));const R=v(y),H=C(y);(R||H)&&O()};function O(){const y=f.value.controls,T=[];ad(y).forEach(R=>{const H=R.controls;if(H.every(N=>!Bl.includes(N.controlType))){T.push(R);return}let F={...R,controls:[]};for(const N of H)if(Bl.includes(N.controlType)){T.push(F),F={...F,controls:[]};const Q=ld(R,N,l);T.push(...Q)}else F.controls.push(N)}),h.value=Ne.orderBy(T,"order").map(R=>({...R,id:R.controls.map(H=>H.id).join("-")})).filter(R=>R.controls.some(H=>H.visible)).map((R,H)=>({...R,order:H,controls:R.controls.filter(F=>F.visible)}))}function v({id:y,value:T}){let z=!1;const H=f.value.controls.filter(F=>{var N;return((N=F.conditions)==null?void 0:N.some(Q=>Q.id===y))||!1});if(H!=null&&H.length)return H.forEach(({id:F,conditions:N,visible:Q})=>{const G=N.every(j=>{const{value:K,operator:le}=j;return{"==":T===K,"!=":T!==K,">":T>K,"<":T<K}[le]||!1});Q!==G&&(s.setControlVisibility(t,F,G),z=!0)}),z}function C({id:y,value:T}){const z=Number(T||0);let R=!1;const F=f.value.controls.filter(N=>{var Q;return N.controlType==="dynamic_array"&&((Q=N.itemsLength)==null?void 0:Q.controlId)===y});if(F!=null&&F.length)return F.forEach(({id:N,itemsLength:Q})=>{(Q==null?void 0:Q.value)!==z&&(s.setControlItemsLength(t,N,z),R=!0)}),R}const{notify:E}=Vm();return i.watch(g,y=>{y.length&&(u&&E({message:y[0],color:"negative",position:"bottom",timeout:5e3,actions:[{label:"✕",color:"white"}]}),g.value=[])},{deep:!0}),i.watch(f,()=>{O()},{immediate:!0}),{model:h,errorMessages:g,rebuildModel:O,onControlValueUpdate:x}}const Pm={key:0,style:{height:"100%"}},Nm={class:"q-py-sm"},Dm={class:"form-steps-container"},$m={class:"row justify-center items-center",style:{height:"100%",width:"100vw"}},Fm={class:"controls-container",style:{height:"100%"}},Um={class:"form-container flex column items-center q-px-md",style:{width:"100vw"}},zm=Ot(i.defineComponent({__name:"MultipleFormGroups",props:{index:{}},setup(t){const o=t,l=ir(),{model:u,onControlValueUpdate:s}=Os(o.index),f=i.computed(()=>u.value.length),h=i.ref(0),g=i.computed(()=>u.value[h.value]),x=v=>{const C=Ne.toPairs(Ne.groupBy(v,"row"));return Ne.orderBy(C,([E,y])=>Number(E),"asc").map(([E,y])=>({controls:Ne.orderBy(y,"col","asc")}))};i.watch(h,v=>{const C=v+1===f.value;l.setOnLastSubstep(C)},{immediate:!0});function O(v){return{input_text:Gl,input_number:Gl,checkbox:Cu,switch:Hd,select:Rm,cards_select:Vd}[v]||Gl}return(v,C)=>g.value?(i.openBlock(),i.createElementBlock("div",Pm,[i.createElementVNode("div",Nm,[i.createVNode(qm,{formGroup:g.value,stepsCount:f.value},null,8,["formGroup","stepsCount"])]),i.createElementVNode("div",Dm,[i.createElementVNode("div",$m,[i.createElementVNode("div",Fm,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(u),E=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:E.id},[h.value===E.order?(i.openBlock(),i.createBlock(vd,{key:0,transition:"slide-left",style:{height:"75%",width:"100vw"},class:"row q-py-xs justify-center items-center bg-grey-1"},{default:i.withCtx(()=>[i.createElementVNode("div",Um,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(x(E.controls),(y,T)=>(i.openBlock(),i.createElementBlock("div",{class:"q-mb-xl",key:T},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(y.controls,(z,R)=>(i.openBlock(),i.createElementBlock("div",{key:R},[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(O(z.controlType)),{control:z,modelValue:y.controls[R].value,"onUpdate:modelValue":[H=>y.controls[R].value=H,H=>i.unref(s)(z,E.id)]},null,8,["control","modelValue","onUpdate:modelValue"]))]))),128))]))),128))])]),_:2},1024)):i.createCommentVNode("",!0)],64))),128)),i.createVNode(Dh,{currentStep:h.value,stepsCount:f.value,nextDisabled:!g.value.valid,onPrev:C[0]||(C[0]=E=>h.value--),onNext:C[1]||(C[1]=E=>g.value.valid&&h.value++)},null,8,["currentStep","stepsCount","nextDisabled"])])])])])):i.createCommentVNode("",!0)}}),[["__scopeId","data-v-2d9dca33"]]),Hm={style:{"font-size":"16px","padding-top":"1rem"}},Wm={style:{"font-size":"16px","padding-top":"1rem"}},to=Ot(i.defineComponent({__name:"SimpleInput",props:i.mergeModels({control:{},rules:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=i.useModel(t,"modelValue"),l=t,u=i.computed(()=>{var s;return(s=l.control.controlType)==null?void 0:s.split("_")[1]});return(s,f)=>(i.openBlock(),i.createBlock(Ei,{class:"q-px-md win-card"},{default:i.withCtx(()=>[i.createVNode(Nu,{borderless:"","reverse-fill-mask":"",modelValue:o.value,"onUpdate:modelValue":f[0]||(f[0]=h=>o.value=h),label:s.control.label,mask:u.value==="number"?"###.###.###.###.###":void 0,"input-class":{"text-right":u.value==="number"},"input-style":{fontSize:"16px"},rules:s.rules},i.createSlots({_:2},[s.control.prefix?{name:"prepend",fn:i.withCtx(()=>[i.createElementVNode("span",Hm,i.toDisplayString(s.control.prefix),1)]),key:"0"}:void 0,s.control.suffix?{name:"append",fn:i.withCtx(()=>[i.createElementVNode("span",Wm,i.toDisplayString(s.control.suffix),1)]),key:"1"}:void 0]),1032,["modelValue","label","mask","input-class","rules"])]),_:1}))}}),[["__scopeId","data-v-bd5dfdca"]]),Ts=i.defineComponent({__name:"SimpleSelect",props:i.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=i.useModel(t,"modelValue");return(l,u)=>(i.openBlock(),i.createBlock(Ei,{class:"q-px-md win-card"},{default:i.withCtx(()=>[i.createVNode(As,{borderless:"",label:l.control.label,options:l.control.options,modelValue:o.value,"onUpdate:modelValue":u[0]||(u[0]=s=>o.value=s),"emit-value":"","option-label":"label","map-options":""},null,8,["label","options","modelValue"])]),_:1}))}}),Gm={key:0,style:{height:"100%"}},Km={class:"question-title text-center q-py-sm"},jm={class:"form-steps-container bg-grey-1"},Ym={class:"form-container",style:{height:"100%"}},Qm={class:"row items-center"},Zm={class:"col-12 row"},Xm=Ot(i.defineComponent({__name:"SingleFormGroup",props:{index:{}},setup(t){const o=t,{model:l,onControlValueUpdate:u}=Os(o.index,{notifyValidations:!1});function s(x){return{input_text:to,input_number:to,select:Ts,cards_select:Ts,checkbox:Cu}[x]||to}const f=x=>Ne.orderBy(Ne.toPairs(Ne.groupBy(x,"row")),"row").map(([O,v])=>({controls:Ne.orderBy(v,"col")}));function h(x){return[O=>{var C;let v="";return(C=x.validators)==null||C.some(E=>{const{param:y,validator:T}=E,z=Xa[T];return z.fn(Number(y))({...x,value:O})?!1:(v=z.message,!0)}),!v.length||v}]}const g=ir();return i.onMounted(()=>g.setOnLastSubstep(!0)),(x,O)=>i.unref(l)?(i.openBlock(),i.createElementBlock("div",Gm,[i.createElementVNode("div",Km,i.toDisplayString(i.unref(l)[0].title),1),i.createElementVNode("div",jm,[i.createElementVNode("div",Ym,[i.createElementVNode("div",Qm,[i.createElementVNode("div",Zm,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(f(i.unref(l)[0].controls),(v,C)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(f(i.unref(l)[0].controls).length>1?"col-md-6 col-12":"col-12"),key:C},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(v.controls,(E,y)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(`col-xs-12 col-sm q-pa-xs ${f(i.unref(l)[0].controls).length>1?"col-md-6 col-12":"col-12"}`),key:y},[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(s(E.controlType)),{control:E,modelValue:E.value,"onUpdate:modelValue":[T=>E.value=T,T=>i.unref(u)(E,i.unref(l)[0].id)],rules:h(E)},null,8,["control","modelValue","onUpdate:modelValue","rules"]))],2))),128))],2))),128))])])])])])):i.createCommentVNode("",!0)}}),[["__scopeId","data-v-a8cd1002"]]),no=t=>(i.pushScopeId("data-v-ea1ef607"),t=t(),i.popScopeId(),t),Jm={class:"buttons-container"},eg={class:"max-container"},tg={key:0,class:"row checkbox justify-end q-my-sm"},ng={style:{"max-width":"650px"}},rg=no(()=>i.createElementVNode("br",{class:"gt-sm"},null,-1)),ig={class:"row justify-between q-my-md q-px-md q-pb-xl"},lg=no(()=>i.createElementVNode("span",{class:"text-black"},"Atrás",-1)),og={key:1},ag={key:0,class:"text-black"},ug=no(()=>i.createElementVNode("span",{class:"gt-sm"},"formulario",-1)),sg={key:1,class:"text-black"},cg=Ot(i.defineComponent({__name:"StepsNavigationButtons",emits:["submit"],setup(t,{emit:o}){const{nextStep:l,previousStep:u,currentStep:s,stepsCount:f,nextDisabled:h,onLastSubstep:g}=i.toRefs(ir()),x=o,O=i.ref(!1),v=E=>{},C=()=>{s.value===f.value?x("submit"):l.value()};return(E,y)=>(i.openBlock(),i.createElementBlock("div",Jm,[i.createElementVNode("div",eg,[i.unref(s)===i.unref(f)?(i.openBlock(),i.createElementBlock("div",tg,[i.createElementVNode("div",ng,[i.createVNode(xu,{color:"info",class:"checkbox",modelValue:O.value,"onUpdate:modelValue":y[1]||(y[1]=T=>O.value=T)},{default:i.withCtx(()=>[i.createElementVNode("div",null,[i.createTextVNode(" He leído, comprendo y acepto los términos de tratamiento de datos "),rg,i.createTextVNode(" personales para esta solicitud. Más info. sobre la protección de datos "),i.createElementVNode("span",{style:{"text-decoration":"underline"},onClick:y[0]||(y[0]=T=>v())},"aquí"),i.createTextVNode(". ")])]),_:1},8,["modelValue"])])])):i.createCommentVNode("",!0),i.createElementVNode("div",ig,[i.unref(s)>1?(i.openBlock(),i.createBlock(cr,{key:0,color:"info",class:"q-px-xl q-py-sm q-mr-sm win-btn win-btn-primary bg-white",onClick:i.unref(u),flat:"","no-caps":""},{default:i.withCtx(()=>[lg]),_:1},8,["onClick"])):(i.openBlock(),i.createElementBlock("div",og)),i.createElementVNode("div",null,[!i.unref(h)&&i.unref(g)?(i.openBlock(),i.createBlock(cr,{key:0,color:"green",class:"q-px-xl q-py-sm q-ml-sm win-btn win-btn-primary bg-white",onClick:C,disable:i.unref(s)===i.unref(f)&&!O.value,flat:"","no-caps":""},{default:i.withCtx(()=>[i.unref(s)===i.unref(f)?(i.openBlock(),i.createElementBlock("span",ag,[i.createTextVNode(" Enviar "),ug])):(i.openBlock(),i.createElementBlock("span",sg," Siguiente "))]),_:1},8,["disable"])):i.createCommentVNode("",!0)])])])]))}}),[["__scopeId","data-v-ea1ef607"]]),Bs=i.defineComponent({__name:"DynamicForm",props:{forms:{}},emits:["onSubmit"],setup(t,{emit:o}){const l=t,u=o,s=i.ref(!1),f=ir(),h=x=>Ne.keys(Ne.groupBy(x.controls,"group")).length===1;i.watch(()=>l.forms,x=>{const v=new nu().fromRaw(x);f.setFormSteps(v)},{immediate:!0});function g(){const x=Ne.cloneDeep(f.formSteps),v=new nu().toRaw(x);u("onSubmit",v)}return(x,O)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",null,[i.renderSlot(x.$slots,"header"),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(f).formSteps,(v,C)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:C},[h(v)?i.withDirectives((i.openBlock(),i.createBlock(Xm,{key:0,index:C},null,8,["index"])),[[i.vShow,i.unref(f).currentStep===C+1]]):i.withDirectives((i.openBlock(),i.createBlock(zm,{key:1,index:C,onOnLastStep:O[0]||(O[0]=E=>s.value=E)},null,8,["index"])),[[i.vShow,i.unref(f).currentStep===C+1]])],64))),128))]),i.createVNode(cg,{onSubmit:g})],64))}}),fg=i.createElementVNode("img",{src:"https://upload.wikimedia.org/wikipedia/commons/thumb/9/95/Vue.js_Logo_2.svg/640px-Vue.js_Logo_2.svg.png",alt:""},null,-1),Rs=i.defineComponent({__name:"TestUi",setup(t){const o=i.ref("Test W2W UI!");return(l,u)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[fg,i.createElementVNode("h1",null,i.toDisplayString(o.value),1)],64))}}),dg={class:"card"},hg={class:"card-header"},mg={key:0},gg={class:"card-content"},pg={class:"field-label"},vg={class:"field-value"},_g=Ot(i.defineComponent({__name:"Card",props:{title:{},subtitle:{},fields:{}},setup(t){function o(l){return l.format==="currency"?new Intl.NumberFormat("es-ES",{style:"currency",currency:"EUR"}).format(l.value):l.format==="percentage"?`${l.value} %`:l.value}return(l,u)=>(i.openBlock(),i.createElementBlock("div",dg,[i.createElementVNode("div",hg,[i.createElementVNode("h3",null,i.toDisplayString(l.title),1),l.subtitle?(i.openBlock(),i.createElementBlock("p",mg,i.toDisplayString(l.subtitle),1)):i.createCommentVNode("",!0)]),i.createElementVNode("div",gg,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(l.fields,(s,f)=>(i.openBlock(),i.createElementBlock("div",{key:f,class:"card-field"},[i.createElementVNode("span",pg,i.toDisplayString(s.label),1),i.createElementVNode("span",vg,i.toDisplayString(o(s)),1)]))),128))])]))}}),[["__scopeId","data-v-240458c0"]]),bg=Ot(i.defineComponent({__name:"CardGridSection",props:{styles:{},content:{},data:{}},setup(t){return(o,l)=>(i.openBlock(),i.createElementBlock("div",{class:"card-section",style:i.normalizeStyle({...o.styles||{}})},[i.createTextVNode(" > "),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.content.cards,(u,s)=>(i.openBlock(),i.createBlock(_g,{key:s,title:u.title,subtitle:u.subtitle,fields:u.fields},null,8,["title","subtitle","fields"]))),128))],4))}}),[["__scopeId","data-v-3c66abb7"]]),yg=["src"],wg=i.defineComponent({__name:"ImageSection",props:{styles:{},content:{},data:{}},setup(t){return(o,l)=>(i.openBlock(),i.createElementBlock("div",{style:i.normalizeStyle({width:"100%",height:"100%",...o.styles||{}})},[i.createElementVNode("img",{src:o.content.src,alt:"image",style:{width:"100%"}},null,8,yg)],4))}}),Sg="#f5f5f5",xg=Ot(i.defineComponent({__name:"TableSection",props:{styles:{},content:{},data:{}},setup(t){const o=t,l=i.computed(()=>o.content.columns.map(s=>({title:s.header,key:s.key,align:s.align}))),u=i.computed(()=>o.data);return(s,f)=>(i.openBlock(),i.createElementBlock("table",{style:i.normalizeStyle({width:"100%",...s.styles||{}})},[i.createElementVNode("thead",null,[i.createElementVNode("tr",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(l.value,h=>(i.openBlock(),i.createElementBlock("th",{key:h.key,style:{textAlign:"center"}},i.toDisplayString(h.title),1))),128))])]),i.createElementVNode("tbody",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(u.value,(h,g)=>(i.openBlock(),i.createElementBlock("tr",{key:h.id,style:i.normalizeStyle({backgroundColor:g%2===0?Sg:"transparent"})},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(l.value,x=>(i.openBlock(),i.createElementBlock("td",{key:x.key,style:i.normalizeStyle({textAlign:x.align||"left"})},i.toDisplayString(h[x.key]),5))),128))],4))),128))])],4))}}),[["__scopeId","data-v-3008cafa"]]),Cg=i.defineComponent({__name:"TextSection",props:{styles:{},content:{},data:{}},setup(t){const o=t,l=i.computed(()=>{var u;return((u=o.content)==null?void 0:u.text)||""});return(u,s)=>(i.openBlock(),i.createElementBlock("div",{style:i.normalizeStyle({...u.styles||{}})},[i.createElementVNode("p",null,i.toDisplayString(l.value),1)],4))}}),Eg=i.defineComponent({__name:"WrapperComponent",props:{section:{},data:{}},setup(t){const o=t,l={[Je.LayoutSectionType.TEXT]:Cg,[Je.LayoutSectionType.IMAGE]:wg,[Je.LayoutSectionType.TABLE]:xg,[Je.LayoutSectionType.CARDS_GRID]:bg},u=i.computed(()=>o.section.type),s=i.computed(()=>{const f={[Je.LayoutSectionType.TEXT]:o.section,[Je.LayoutSectionType.IMAGE]:o.section,[Je.LayoutSectionType.TABLE]:o.section,[Je.LayoutSectionType.CARDS_GRID]:o.section}[u.value];return{content:f.content,styles:f.styles,data:o.data}});return(f,h)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(l[u.value]),i.normalizeProps(i.guardReactiveProps(s.value)),null,16))}}),kg=Ot(i.defineComponent({__name:"SectionsContainer",props:{styles:{},sections:{},data:{}},setup(t){return(o,l)=>(i.openBlock(),i.createElementBlock("div",{class:"page",style:i.normalizeStyle({...o.styles||{}})},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.sections,u=>(i.openBlock(),i.createBlock(Eg,{section:u,data:o.data},null,8,["section","data"]))),256))],4))}}),[["__scopeId","data-v-3196379e"]]),Ag={install(t,o){if(o!=null&&o.pinia)t.use(o.pinia);else throw new Error("No se ha encontrado una instancia de pinia");t.component("DynamicForm",Bs),t.component("TestUi",Rs),t.component("SectionsContainer",kg)}};jt.DynamicForm=Bs,jt.TestUi=Rs,jt.default=Ag,Object.defineProperties(jt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|