@win2win/shared-ui 0.1.20 → 0.1.21

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.
@@ -5,9 +5,9 @@
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
- */oi.exports,function(t,o){(function(){var l,u="4.17.21",s=200,c="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",h="Expected a function",g="Invalid `variable` option passed into `_.template`",w="__lodash_hash_undefined__",k=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="...",A=800,te=16,P=1,ae=2,ue=3,fe=1/0,W=9007199254740991,se=17976931348623157e292,ge=NaN,B=4294967295,O=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]",lt="[object Error]",Ft="[object Function]",yt="[object GeneratorFunction]",nt="[object Map]",wt="[object Number]",tn="[object Null]",ft="[object Object]",_n="[object Promise]",Dr="[object Proxy]",Ut="[object RegExp]",Fe="[object Set]",je="[object String]",zt="[object Symbol]",hr="[object Undefined]",$n="[object WeakMap]",Li="[object WeakSet]",nn="[object ArrayBuffer]",bn="[object DataView]",mr="[object Float32Array]",Ht="[object Float64Array]",Qt="[object Int8Array]",yn="[object Int16Array]",$r="[object Int32Array]",Fn="[object Uint8Array]",Un="[object Uint8ClampedArray]",gr="[object Uint16Array]",pr="[object Uint32Array]",qi=/\b__p \+= '';/g,Vi=/\b(__p \+=) '' \+/g,Pi=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Fr=/&(?:amp|lt|gt|quot|#39);/g,Ni=/[&<>"']/g,io=RegExp(Fr.source),Di=RegExp(Ni.source),lo=/<%-([\s\S]+?)%>/g,$i=/<%([\s\S]+?)%>/g,zn=/<%=([\s\S]+?)%>/g,Hn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,wn=/^\w*$/,oo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ur=/[\\^$.*+?()[\]{}|]/g,ao=RegExp(Ur.source),zr=/^\s+/,uo=/\s/,so=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,co=/\{\n\/\* \[wrapped with (.+)\] \*/,fo=/,? & /,ho=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Sn=/[()=,{}\[\]\/\s]/,xn=/\\(\\)?/g,rn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ln=/\w*$/,Hr=/^[-+]0x[0-9a-f]+$/i,mo=/^0b[01]+$/i,Fi=/^\[object .+?Constructor\]$/,Ui=/^0o[0-7]+$/i,zi=/^(?:0|[1-9]\d*)$/,Hi=/[\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",qg="\\xac\\xb1\\xd7\\xf7",Vg="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Pg="\\u2000-\\u206f",Ng=" \\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",Vs="A-Z\\xc0-\\xd6\\xd8-\\xde",Ps="\\ufe0e\\ufe0f",Ns=qg+Vg+Pg+Ng,go="['’]",Dg="["+X+"]",Ds="["+Ns+"]",Wi="["+Ge+"]",$s="\\d+",$g="["+Ve+"]",Fs="["+vr+"]",Us="[^"+X+Ns+$s+Ve+vr+Vs+"]",po="\\ud83c[\\udffb-\\udfff]",Fg="(?:"+Wi+"|"+po+")",zs="[^"+X+"]",vo="(?:\\ud83c[\\udde6-\\uddff]){2}",_o="[\\ud800-\\udbff][\\udc00-\\udfff]",_r="["+Vs+"]",Hs="\\u200d",Ws="(?:"+Fs+"|"+Us+")",Ug="(?:"+_r+"|"+Us+")",Gs="(?:"+go+"(?:d|ll|m|re|s|t|ve))?",Ks="(?:"+go+"(?:D|LL|M|RE|S|T|VE))?",js=Fg+"?",Ys="["+Ps+"]?",zg="(?:"+Hs+"(?:"+[zs,vo,_o].join("|")+")"+Ys+js+")*",Hg="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Wg="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Qs=Ys+js+zg,Gg="(?:"+[$g,vo,_o].join("|")+")"+Qs,Kg="(?:"+[zs+Wi+"?",Wi,vo,_o,Dg].join("|")+")",jg=RegExp(go,"g"),Yg=RegExp(Wi,"g"),bo=RegExp(po+"(?="+po+")|"+Kg+Qs,"g"),Qg=RegExp([_r+"?"+Fs+"+"+Gs+"(?="+[Ds,_r,"$"].join("|")+")",Ug+"+"+Ks+"(?="+[Ds,_r+Ws,"$"].join("|")+")",_r+"?"+Ws+"+"+Gs,_r+"+"+Ks,Wg,Hg,$s,Gg].join("|"),"g"),Zg=RegExp("["+Hs+X+Ge+Ps+"]"),Xg=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Jg=["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"],ep=-1,qe={};qe[mr]=qe[Ht]=qe[Qt]=qe[yn]=qe[$r]=qe[Fn]=qe[Un]=qe[gr]=qe[pr]=!0,qe[_e]=qe[U]=qe[nn]=qe[Ae]=qe[bn]=qe[Y]=qe[lt]=qe[Ft]=qe[nt]=qe[wt]=qe[ft]=qe[Ut]=qe[Fe]=qe[je]=qe[$n]=!1;var Le={};Le[_e]=Le[U]=Le[nn]=Le[bn]=Le[Ae]=Le[Y]=Le[mr]=Le[Ht]=Le[Qt]=Le[yn]=Le[$r]=Le[nt]=Le[wt]=Le[ft]=Le[Ut]=Le[Fe]=Le[je]=Le[zt]=Le[Fn]=Le[Un]=Le[gr]=Le[pr]=!0,Le[lt]=Le[Ft]=Le[$n]=!1;var tp={À:"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"},np={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},rp={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},ip={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},lp=parseFloat,op=parseInt,Zs=typeof xe=="object"&&xe&&xe.Object===Object&&xe,ap=typeof self=="object"&&self&&self.Object===Object&&self,et=Zs||ap||Function("return this")(),yo=o&&!o.nodeType&&o,Wn=yo&&!0&&t&&!t.nodeType&&t,Xs=Wn&&Wn.exports===yo,wo=Xs&&Zs.process,Bt=function(){try{var S=Wn&&Wn.require&&Wn.require("util").types;return S||wo&&wo.binding&&wo.binding("util")}catch{}}(),Js=Bt&&Bt.isArrayBuffer,ec=Bt&&Bt.isDate,tc=Bt&&Bt.isMap,nc=Bt&&Bt.isRegExp,rc=Bt&&Bt.isSet,ic=Bt&&Bt.isTypedArray;function St(S,M,I){switch(I.length){case 0:return S.call(M);case 1:return S.call(M,I[0]);case 2:return S.call(M,I[0],I[1]);case 3:return S.call(M,I[0],I[1],I[2])}return S.apply(M,I)}function up(S,M,I,re){for(var pe=-1,Oe=S==null?0:S.length;++pe<Oe;){var Ye=S[pe];M(re,Ye,I(Ye),S)}return re}function Rt(S,M){for(var I=-1,re=S==null?0:S.length;++I<re&&M(S[I],I,S)!==!1;);return S}function sp(S,M){for(var I=S==null?0:S.length;I--&&M(S[I],I,S)!==!1;);return S}function lc(S,M){for(var I=-1,re=S==null?0:S.length;++I<re;)if(!M(S[I],I,S))return!1;return!0}function Cn(S,M){for(var I=-1,re=S==null?0:S.length,pe=0,Oe=[];++I<re;){var Ye=S[I];M(Ye,I,S)&&(Oe[pe++]=Ye)}return Oe}function Gi(S,M){var I=S==null?0:S.length;return!!I&&br(S,M,0)>-1}function So(S,M,I){for(var re=-1,pe=S==null?0:S.length;++re<pe;)if(I(M,S[re]))return!0;return!1}function Pe(S,M){for(var I=-1,re=S==null?0:S.length,pe=Array(re);++I<re;)pe[I]=M(S[I],I,S);return pe}function kn(S,M){for(var I=-1,re=M.length,pe=S.length;++I<re;)S[pe+I]=M[I];return S}function xo(S,M,I,re){var pe=-1,Oe=S==null?0:S.length;for(re&&Oe&&(I=S[++pe]);++pe<Oe;)I=M(I,S[pe],pe,S);return I}function cp(S,M,I,re){var pe=S==null?0:S.length;for(re&&pe&&(I=S[--pe]);pe--;)I=M(I,S[pe],pe,S);return I}function Co(S,M){for(var I=-1,re=S==null?0:S.length;++I<re;)if(M(S[I],I,S))return!0;return!1}var fp=ko("length");function dp(S){return S.split("")}function hp(S){return S.match(ho)||[]}function oc(S,M,I){var re;return I(S,function(pe,Oe,Ye){if(M(pe,Oe,Ye))return re=Oe,!1}),re}function Ki(S,M,I,re){for(var pe=S.length,Oe=I+(re?1:-1);re?Oe--:++Oe<pe;)if(M(S[Oe],Oe,S))return Oe;return-1}function br(S,M,I){return M===M?kp(S,M,I):Ki(S,ac,I)}function mp(S,M,I,re){for(var pe=I-1,Oe=S.length;++pe<Oe;)if(re(S[pe],M))return pe;return-1}function ac(S){return S!==S}function uc(S,M){var I=S==null?0:S.length;return I?Ao(S,M)/I:ge}function ko(S){return function(M){return M==null?l:M[S]}}function Eo(S){return function(M){return S==null?l:S[M]}}function sc(S,M,I,re,pe){return pe(S,function(Oe,Ye,Me){I=re?(re=!1,Oe):M(I,Oe,Ye,Me)}),I}function gp(S,M){var I=S.length;for(S.sort(M);I--;)S[I]=S[I].value;return S}function Ao(S,M){for(var I,re=-1,pe=S.length;++re<pe;){var Oe=M(S[re]);Oe!==l&&(I=I===l?Oe:I+Oe)}return I}function Oo(S,M){for(var I=-1,re=Array(S);++I<S;)re[I]=M(I);return re}function pp(S,M){return Pe(M,function(I){return[I,S[I]]})}function cc(S){return S&&S.slice(0,mc(S)+1).replace(zr,"")}function xt(S){return function(M){return S(M)}}function To(S,M){return Pe(M,function(I){return S[I]})}function Wr(S,M){return S.has(M)}function fc(S,M){for(var I=-1,re=S.length;++I<re&&br(M,S[I],0)>-1;);return I}function dc(S,M){for(var I=S.length;I--&&br(M,S[I],0)>-1;);return I}function vp(S,M){for(var I=S.length,re=0;I--;)S[I]===M&&++re;return re}var _p=Eo(tp),bp=Eo(np);function yp(S){return"\\"+ip[S]}function wp(S,M){return S==null?l:S[M]}function yr(S){return Zg.test(S)}function Sp(S){return Xg.test(S)}function xp(S){for(var M,I=[];!(M=S.next()).done;)I.push(M.value);return I}function Bo(S){var M=-1,I=Array(S.size);return S.forEach(function(re,pe){I[++M]=[pe,re]}),I}function hc(S,M){return function(I){return S(M(I))}}function En(S,M){for(var I=-1,re=S.length,pe=0,Oe=[];++I<re;){var Ye=S[I];(Ye===M||Ye===v)&&(S[I]=v,Oe[pe++]=I)}return Oe}function ji(S){var M=-1,I=Array(S.size);return S.forEach(function(re){I[++M]=re}),I}function Cp(S){var M=-1,I=Array(S.size);return S.forEach(function(re){I[++M]=[re,re]}),I}function kp(S,M,I){for(var re=I-1,pe=S.length;++re<pe;)if(S[re]===M)return re;return-1}function Ep(S,M,I){for(var re=I+1;re--;)if(S[re]===M)return re;return re}function wr(S){return yr(S)?Op(S):fp(S)}function Wt(S){return yr(S)?Tp(S):dp(S)}function mc(S){for(var M=S.length;M--&&uo.test(S.charAt(M)););return M}var Ap=Eo(rp);function Op(S){for(var M=bo.lastIndex=0;bo.test(S);)++M;return M}function Tp(S){return S.match(bo)||[]}function Bp(S){return S.match(Qg)||[]}var Rp=function S(M){M=M==null?et:Sr.defaults(et.Object(),M,Sr.pick(et,Jg));var I=M.Array,re=M.Date,pe=M.Error,Oe=M.Function,Ye=M.Math,Me=M.Object,Ro=M.RegExp,Ip=M.String,It=M.TypeError,Yi=I.prototype,Mp=Oe.prototype,xr=Me.prototype,Qi=M["__core-js_shared__"],Zi=Mp.toString,Re=xr.hasOwnProperty,Lp=0,gc=function(){var e=/[^.]+$/.exec(Qi&&Qi.keys&&Qi.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Xi=xr.toString,qp=Zi.call(Me),Vp=et._,Pp=Ro("^"+Zi.call(Re).replace(Ur,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ji=Xs?M.Buffer:l,An=M.Symbol,el=M.Uint8Array,pc=Ji?Ji.allocUnsafe:l,tl=hc(Me.getPrototypeOf,Me),vc=Me.create,_c=xr.propertyIsEnumerable,nl=Yi.splice,bc=An?An.isConcatSpreadable:l,Gr=An?An.iterator:l,Gn=An?An.toStringTag:l,rl=function(){try{var e=Zn(Me,"defineProperty");return e({},"",{}),e}catch{}}(),Np=M.clearTimeout!==et.clearTimeout&&M.clearTimeout,Dp=re&&re.now!==et.Date.now&&re.now,$p=M.setTimeout!==et.setTimeout&&M.setTimeout,il=Ye.ceil,ll=Ye.floor,Io=Me.getOwnPropertySymbols,Fp=Ji?Ji.isBuffer:l,yc=M.isFinite,Up=Yi.join,zp=hc(Me.keys,Me),Qe=Ye.max,rt=Ye.min,Hp=re.now,Wp=M.parseInt,wc=Ye.random,Gp=Yi.reverse,Mo=Zn(M,"DataView"),Kr=Zn(M,"Map"),Lo=Zn(M,"Promise"),Cr=Zn(M,"Set"),jr=Zn(M,"WeakMap"),Yr=Zn(Me,"create"),ol=jr&&new jr,kr={},Kp=Xn(Mo),jp=Xn(Kr),Yp=Xn(Lo),Qp=Xn(Cr),Zp=Xn(jr),al=An?An.prototype:l,Qr=al?al.valueOf:l,Sc=al?al.toString:l;function d(e){if(Ue(e)&&!be(e)&&!(e instanceof ke)){if(e instanceof Mt)return e;if(Re.call(e,"__wrapped__"))return Cf(e)}return new Mt(e)}var Er=function(){function e(){}return function(n){if(!$e(n))return{};if(vc)return vc(n);e.prototype=n;var i=new e;return e.prototype=l,i}}();function ul(){}function Mt(e,n){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=l}d.templateSettings={escape:lo,evaluate:$i,interpolate:zn,variable:"",imports:{_:d}},d.prototype=ul.prototype,d.prototype.constructor=d,Mt.prototype=Er(ul.prototype),Mt.prototype.constructor=Mt;function ke(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=B,this.__views__=[]}function Xp(){var e=new ke(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 Jp(){if(this.__filtered__){var e=new ke(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function ev(){var e=this.__wrapped__.value(),n=this.__dir__,i=be(e),a=n<0,f=i?e.length:0,m=d0(0,f,this.__views__),p=m.start,b=m.end,x=b-p,L=a?b:p-1,q=this.__iteratees__,D=q.length,J=0,oe=rt(x,this.__takeCount__);if(!i||!a&&f==x&&oe==x)return Gc(e,this.__actions__);var de=[];e:for(;x--&&J<oe;){L+=n;for(var we=-1,he=e[L];++we<D;){var Ce=q[we],Ee=Ce.iteratee,Et=Ce.type,ut=Ee(he);if(Et==ae)he=ut;else if(!ut){if(Et==P)continue e;break e}}de[J++]=he}return de}ke.prototype=Er(ul.prototype),ke.prototype.constructor=ke;function Kn(e){var n=-1,i=e==null?0:e.length;for(this.clear();++n<i;){var a=e[n];this.set(a[0],a[1])}}function tv(){this.__data__=Yr?Yr(null):{},this.size=0}function nv(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}function rv(e){var n=this.__data__;if(Yr){var i=n[e];return i===w?l:i}return Re.call(n,e)?n[e]:l}function iv(e){var n=this.__data__;return Yr?n[e]!==l:Re.call(n,e)}function lv(e,n){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=Yr&&n===l?w:n,this}Kn.prototype.clear=tv,Kn.prototype.delete=nv,Kn.prototype.get=rv,Kn.prototype.has=iv,Kn.prototype.set=lv;function on(e){var n=-1,i=e==null?0:e.length;for(this.clear();++n<i;){var a=e[n];this.set(a[0],a[1])}}function ov(){this.__data__=[],this.size=0}function av(e){var n=this.__data__,i=sl(n,e);if(i<0)return!1;var a=n.length-1;return i==a?n.pop():nl.call(n,i,1),--this.size,!0}function uv(e){var n=this.__data__,i=sl(n,e);return i<0?l:n[i][1]}function sv(e){return sl(this.__data__,e)>-1}function cv(e,n){var i=this.__data__,a=sl(i,e);return a<0?(++this.size,i.push([e,n])):i[a][1]=n,this}on.prototype.clear=ov,on.prototype.delete=av,on.prototype.get=uv,on.prototype.has=sv,on.prototype.set=cv;function an(e){var n=-1,i=e==null?0:e.length;for(this.clear();++n<i;){var a=e[n];this.set(a[0],a[1])}}function fv(){this.size=0,this.__data__={hash:new Kn,map:new(Kr||on),string:new Kn}}function dv(e){var n=wl(this,e).delete(e);return this.size-=n?1:0,n}function hv(e){return wl(this,e).get(e)}function mv(e){return wl(this,e).has(e)}function gv(e,n){var i=wl(this,e),a=i.size;return i.set(e,n),this.size+=i.size==a?0:1,this}an.prototype.clear=fv,an.prototype.delete=dv,an.prototype.get=hv,an.prototype.has=mv,an.prototype.set=gv;function jn(e){var n=-1,i=e==null?0:e.length;for(this.__data__=new an;++n<i;)this.add(e[n])}function pv(e){return this.__data__.set(e,w),this}function vv(e){return this.__data__.has(e)}jn.prototype.add=jn.prototype.push=pv,jn.prototype.has=vv;function Gt(e){var n=this.__data__=new on(e);this.size=n.size}function _v(){this.__data__=new on,this.size=0}function bv(e){var n=this.__data__,i=n.delete(e);return this.size=n.size,i}function yv(e){return this.__data__.get(e)}function wv(e){return this.__data__.has(e)}function Sv(e,n){var i=this.__data__;if(i instanceof on){var a=i.__data__;if(!Kr||a.length<s-1)return a.push([e,n]),this.size=++i.size,this;i=this.__data__=new an(a)}return i.set(e,n),this.size=i.size,this}Gt.prototype.clear=_v,Gt.prototype.delete=bv,Gt.prototype.get=yv,Gt.prototype.has=wv,Gt.prototype.set=Sv;function xc(e,n){var i=be(e),a=!i&&Jn(e),f=!i&&!a&&In(e),m=!i&&!a&&!f&&Br(e),p=i||a||f||m,b=p?Oo(e.length,Ip):[],x=b.length;for(var L in e)(n||Re.call(e,L))&&!(p&&(L=="length"||f&&(L=="offset"||L=="parent")||m&&(L=="buffer"||L=="byteLength"||L=="byteOffset")||fn(L,x)))&&b.push(L);return b}function Cc(e){var n=e.length;return n?e[Wo(0,n-1)]:l}function xv(e,n){return Sl(dt(e),Yn(n,0,e.length))}function Cv(e){return Sl(dt(e))}function qo(e,n,i){(i!==l&&!Kt(e[n],i)||i===l&&!(n in e))&&un(e,n,i)}function Zr(e,n,i){var a=e[n];(!(Re.call(e,n)&&Kt(a,i))||i===l&&!(n in e))&&un(e,n,i)}function sl(e,n){for(var i=e.length;i--;)if(Kt(e[i][0],n))return i;return-1}function kv(e,n,i,a){return On(e,function(f,m,p){n(a,f,i(f),p)}),a}function kc(e,n){return e&&Xt(n,Xe(n),e)}function Ev(e,n){return e&&Xt(n,mt(n),e)}function un(e,n,i){n=="__proto__"&&rl?rl(e,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[n]=i}function Vo(e,n){for(var i=-1,a=n.length,f=I(a),m=e==null;++i<a;)f[i]=m?l:pa(e,n[i]);return f}function Yn(e,n,i){return e===e&&(i!==l&&(e=e<=i?e:i),n!==l&&(e=e>=n?e:n)),e}function Lt(e,n,i,a,f,m){var p,b=n&C,x=n&E,L=n&y;if(i&&(p=f?i(e,a,f,m):i(e)),p!==l)return p;if(!$e(e))return e;var q=be(e);if(q){if(p=m0(e),!b)return dt(e,p)}else{var D=it(e),J=D==Ft||D==yt;if(In(e))return Yc(e,b);if(D==ft||D==_e||J&&!f){if(p=x||J?{}:gf(e),!b)return x?r0(e,Ev(p,e)):n0(e,kc(p,e))}else{if(!Le[D])return f?e:{};p=g0(e,D,b)}}m||(m=new Gt);var oe=m.get(e);if(oe)return oe;m.set(e,p),Hf(e)?e.forEach(function(he){p.add(Lt(he,n,i,he,e,m))}):Uf(e)&&e.forEach(function(he,Ce){p.set(Ce,Lt(he,n,i,Ce,e,m))});var de=L?x?na:ta:x?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,i,Ce,e,m))}),p}function Av(e){var n=Xe(e);return function(i){return Ec(i,e,n)}}function Ec(e,n,i){var a=i.length;if(e==null)return!a;for(e=Me(e);a--;){var f=i[a],m=n[f],p=e[f];if(p===l&&!(f in e)||!m(p))return!1}return!0}function Ac(e,n,i){if(typeof e!="function")throw new It(h);return ii(function(){e.apply(l,i)},n)}function Xr(e,n,i,a){var f=-1,m=Gi,p=!0,b=e.length,x=[],L=n.length;if(!b)return x;i&&(n=Pe(n,xt(i))),a?(m=So,p=!1):n.length>=s&&(m=Wr,p=!1,n=new jn(n));e:for(;++f<b;){var q=e[f],D=i==null?q:i(q);if(q=a||q!==0?q:0,p&&D===D){for(var J=L;J--;)if(n[J]===D)continue e;x.push(q)}else m(n,D,a)||x.push(q)}return x}var On=ef(Zt),Oc=ef(No,!0);function Ov(e,n){var i=!0;return On(e,function(a,f,m){return i=!!n(a,f,m),i}),i}function cl(e,n,i){for(var a=-1,f=e.length;++a<f;){var m=e[a],p=n(m);if(p!=null&&(b===l?p===p&&!kt(p):i(p,b)))var b=p,x=m}return x}function Tv(e,n,i,a){var f=e.length;for(i=ye(i),i<0&&(i=-i>f?0:f+i),a=a===l||a>f?f:ye(a),a<0&&(a+=f),a=i>a?0:Gf(a);i<a;)e[i++]=n;return e}function Tc(e,n){var i=[];return On(e,function(a,f,m){n(a,f,m)&&i.push(a)}),i}function tt(e,n,i,a,f){var m=-1,p=e.length;for(i||(i=v0),f||(f=[]);++m<p;){var b=e[m];n>0&&i(b)?n>1?tt(b,n-1,i,a,f):kn(f,b):a||(f[f.length]=b)}return f}var Po=tf(),Bc=tf(!0);function Zt(e,n){return e&&Po(e,n,Xe)}function No(e,n){return e&&Bc(e,n,Xe)}function fl(e,n){return Cn(n,function(i){return dn(e[i])})}function Qn(e,n){n=Bn(n,e);for(var i=0,a=n.length;e!=null&&i<a;)e=e[Jt(n[i++])];return i&&i==a?e:l}function Rc(e,n,i){var a=n(e);return be(e)?a:kn(a,i(e))}function ot(e){return e==null?e===l?hr:tn:Gn&&Gn in Me(e)?f0(e):C0(e)}function Do(e,n){return e>n}function Bv(e,n){return e!=null&&Re.call(e,n)}function Rv(e,n){return e!=null&&n in Me(e)}function Iv(e,n,i){return e>=rt(n,i)&&e<Qe(n,i)}function $o(e,n,i){for(var a=i?So:Gi,f=e[0].length,m=e.length,p=m,b=I(m),x=1/0,L=[];p--;){var q=e[p];p&&n&&(q=Pe(q,xt(n))),x=rt(q.length,x),b[p]=!i&&(n||f>=120&&q.length>=120)?new jn(p&&q):l}q=e[0];var D=-1,J=b[0];e:for(;++D<f&&L.length<x;){var oe=q[D],de=n?n(oe):oe;if(oe=i||oe!==0?oe:0,!(J?Wr(J,de):a(L,de,i))){for(p=m;--p;){var we=b[p];if(!(we?Wr(we,de):a(e[p],de,i)))continue e}J&&J.push(de),L.push(oe)}}return L}function Mv(e,n,i,a){return Zt(e,function(f,m,p){n(a,i(f),m,p)}),a}function Jr(e,n,i){n=Bn(n,e),e=bf(e,n);var a=e==null?e:e[Jt(Vt(n))];return a==null?l:St(a,e,i)}function Ic(e){return Ue(e)&&ot(e)==_e}function Lv(e){return Ue(e)&&ot(e)==nn}function qv(e){return Ue(e)&&ot(e)==Y}function ei(e,n,i,a,f){return e===n?!0:e==null||n==null||!Ue(e)&&!Ue(n)?e!==e&&n!==n:Vv(e,n,i,a,ei,f)}function Vv(e,n,i,a,f,m){var p=be(e),b=be(n),x=p?U:it(e),L=b?U:it(n);x=x==_e?ft:x,L=L==_e?ft:L;var q=x==ft,D=L==ft,J=x==L;if(J&&In(e)){if(!In(n))return!1;p=!0,q=!1}if(J&&!q)return m||(m=new Gt),p||Br(e)?df(e,n,i,a,f,m):s0(e,n,x,i,a,f,m);if(!(i&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 Gt),f(we,he,i,a,m)}}return J?(m||(m=new Gt),c0(e,n,i,a,f,m)):!1}function Pv(e){return Ue(e)&&it(e)==nt}function Fo(e,n,i,a){var f=i.length,m=f,p=!a;if(e==null)return!m;for(e=Me(e);f--;){var b=i[f];if(p&&b[2]?b[1]!==e[b[0]]:!(b[0]in e))return!1}for(;++f<m;){b=i[f];var x=b[0],L=e[x],q=b[1];if(p&&b[2]){if(L===l&&!(x in e))return!1}else{var D=new Gt;if(a)var J=a(L,q,x,e,n,D);if(!(J===l?ei(q,L,T|z,a,D):J))return!1}}return!0}function Mc(e){if(!$e(e)||b0(e))return!1;var n=dn(e)?Pp:Fi;return n.test(Xn(e))}function Nv(e){return Ue(e)&&ot(e)==Ut}function Dv(e){return Ue(e)&&it(e)==Fe}function $v(e){return Ue(e)&&Ol(e.length)&&!!qe[ot(e)]}function Lc(e){return typeof e=="function"?e:e==null?gt:typeof e=="object"?be(e)?Pc(e[0],e[1]):Vc(e):rd(e)}function Uo(e){if(!ri(e))return zp(e);var n=[];for(var i in Me(e))Re.call(e,i)&&i!="constructor"&&n.push(i);return n}function Fv(e){if(!$e(e))return x0(e);var n=ri(e),i=[];for(var a in e)a=="constructor"&&(n||!Re.call(e,a))||i.push(a);return i}function zo(e,n){return e<n}function qc(e,n){var i=-1,a=ht(e)?I(e.length):[];return On(e,function(f,m,p){a[++i]=n(f,m,p)}),a}function Vc(e){var n=ia(e);return n.length==1&&n[0][2]?vf(n[0][0],n[0][1]):function(i){return i===e||Fo(i,e,n)}}function Pc(e,n){return oa(e)&&pf(n)?vf(Jt(e),n):function(i){var a=pa(i,e);return a===l&&a===n?va(i,e):ei(n,a,T|z)}}function dl(e,n,i,a,f){e!==n&&Po(n,function(m,p){if(f||(f=new Gt),$e(m))Uv(e,n,p,i,dl,a,f);else{var b=a?a(ua(e,p),m,p+"",e,n,f):l;b===l&&(b=m),qo(e,p,b)}},mt)}function Uv(e,n,i,a,f,m,p){var b=ua(e,i),x=ua(n,i),L=p.get(x);if(L){qo(e,i,L);return}var q=m?m(b,x,i+"",e,n,p):l,D=q===l;if(D){var J=be(x),oe=!J&&In(x),de=!J&&!oe&&Br(x);q=x,J||oe||de?be(b)?q=b:ze(b)?q=dt(b):oe?(D=!1,q=Yc(x,!0)):de?(D=!1,q=Qc(x,!0)):q=[]:li(x)||Jn(x)?(q=b,Jn(b)?q=Kf(b):(!$e(b)||dn(b))&&(q=gf(x))):D=!1}D&&(p.set(x,q),f(q,x,a,m,p),p.delete(x)),qo(e,i,q)}function Nc(e,n){var i=e.length;if(i)return n+=n<0?i:0,fn(n,i)?e[n]:l}function Dc(e,n,i){n.length?n=Pe(n,function(m){return be(m)?function(p){return Qn(p,m.length===1?m[0]:m)}:m}):n=[gt];var a=-1;n=Pe(n,xt(ce()));var f=qc(e,function(m,p,b){var x=Pe(n,function(L){return L(m)});return{criteria:x,index:++a,value:m}});return gp(f,function(m,p){return t0(m,p,i)})}function zv(e,n){return $c(e,n,function(i,a){return va(e,a)})}function $c(e,n,i){for(var a=-1,f=n.length,m={};++a<f;){var p=n[a],b=Qn(e,p);i(b,p)&&ti(m,Bn(p,e),b)}return m}function Hv(e){return function(n){return Qn(n,e)}}function Ho(e,n,i,a){var f=a?mp:br,m=-1,p=n.length,b=e;for(e===n&&(n=dt(n)),i&&(b=Pe(e,xt(i)));++m<p;)for(var x=0,L=n[m],q=i?i(L):L;(x=f(b,q,x,a))>-1;)b!==e&&nl.call(b,x,1),nl.call(e,x,1);return e}function Fc(e,n){for(var i=e?n.length:0,a=i-1;i--;){var f=n[i];if(i==a||f!==m){var m=f;fn(f)?nl.call(e,f,1):jo(e,f)}}return e}function Wo(e,n){return e+ll(wc()*(n-e+1))}function Wv(e,n,i,a){for(var f=-1,m=Qe(il((n-e)/(i||1)),0),p=I(m);m--;)p[a?m:++f]=e,e+=i;return p}function Go(e,n){var i="";if(!e||n<1||n>W)return i;do n%2&&(i+=e),n=ll(n/2),n&&(e+=e);while(n);return i}function Se(e,n){return sa(_f(e,n,gt),e+"")}function Gv(e){return Cc(Rr(e))}function Kv(e,n){var i=Rr(e);return Sl(i,Yn(n,0,i.length))}function ti(e,n,i,a){if(!$e(e))return e;n=Bn(n,e);for(var f=-1,m=n.length,p=m-1,b=e;b!=null&&++f<m;){var x=Jt(n[f]),L=i;if(x==="__proto__"||x==="constructor"||x==="prototype")return e;if(f!=p){var q=b[x];L=a?a(q,x,b):l,L===l&&(L=$e(q)?q:fn(n[f+1])?[]:{})}Zr(b,x,L),b=b[x]}return e}var Uc=ol?function(e,n){return ol.set(e,n),e}:gt,jv=rl?function(e,n){return rl(e,"toString",{configurable:!0,enumerable:!1,value:ba(n),writable:!0})}:gt;function Yv(e){return Sl(Rr(e))}function qt(e,n,i){var a=-1,f=e.length;n<0&&(n=-n>f?0:f+n),i=i>f?f:i,i<0&&(i+=f),f=n>i?0:i-n>>>0,n>>>=0;for(var m=I(f);++a<f;)m[a]=e[a+n];return m}function Qv(e,n){var i;return On(e,function(a,f,m){return i=n(a,f,m),!i}),!!i}function hl(e,n,i){var a=0,f=e==null?a:e.length;if(typeof n=="number"&&n===n&&f<=ie){for(;a<f;){var m=a+f>>>1,p=e[m];p!==null&&!kt(p)&&(i?p<=n:p<n)?a=m+1:f=m}return f}return Ko(e,n,gt,i)}function Ko(e,n,i,a){var f=0,m=e==null?0:e.length;if(m===0)return 0;n=i(n);for(var p=n!==n,b=n===null,x=kt(n),L=n===l;f<m;){var q=ll((f+m)/2),D=i(e[q]),J=D!==l,oe=D===null,de=D===D,we=kt(D);if(p)var he=a||de;else L?he=de&&(a||J):b?he=de&&J&&(a||!oe):x?he=de&&J&&!oe&&(a||!we):oe||we?he=!1:he=a?D<=n:D<n;he?f=q+1:m=q}return rt(m,O)}function zc(e,n){for(var i=-1,a=e.length,f=0,m=[];++i<a;){var p=e[i],b=n?n(p):p;if(!i||!Kt(b,x)){var x=b;m[f++]=p===0?0:p}}return m}function Hc(e){return typeof e=="number"?e:kt(e)?ge:+e}function Ct(e){if(typeof e=="string")return e;if(be(e))return Pe(e,Ct)+"";if(kt(e))return Sc?Sc.call(e):"";var n=e+"";return n=="0"&&1/e==-fe?"-0":n}function Tn(e,n,i){var a=-1,f=Gi,m=e.length,p=!0,b=[],x=b;if(i)p=!1,f=So;else if(m>=s){var L=n?null:a0(e);if(L)return ji(L);p=!1,f=Wr,x=new jn}else x=n?[]:b;e:for(;++a<m;){var q=e[a],D=n?n(q):q;if(q=i||q!==0?q:0,p&&D===D){for(var J=x.length;J--;)if(x[J]===D)continue e;n&&x.push(D),b.push(q)}else f(x,D,i)||(x!==b&&x.push(D),b.push(q))}return b}function jo(e,n){return n=Bn(n,e),e=bf(e,n),e==null||delete e[Jt(Vt(n))]}function Wc(e,n,i,a){return ti(e,n,i(Qn(e,n)),a)}function ml(e,n,i,a){for(var f=e.length,m=a?f:-1;(a?m--:++m<f)&&n(e[m],m,e););return i?qt(e,a?0:m,a?m+1:f):qt(e,a?m+1:0,a?f:m)}function Gc(e,n){var i=e;return i instanceof ke&&(i=i.value()),xo(n,function(a,f){return f.func.apply(f.thisArg,kn([a],f.args))},i)}function Yo(e,n,i){var a=e.length;if(a<2)return a?Tn(e[0]):[];for(var f=-1,m=I(a);++f<a;)for(var p=e[f],b=-1;++b<a;)b!=f&&(m[f]=Xr(m[f]||p,e[b],n,i));return Tn(tt(m,1),n,i)}function Kc(e,n,i){for(var a=-1,f=e.length,m=n.length,p={};++a<f;){var b=a<m?n[a]:l;i(p,e[a],b)}return p}function Qo(e){return ze(e)?e:[]}function Zo(e){return typeof e=="function"?e:gt}function Bn(e,n){return be(e)?e:oa(e,n)?[e]:xf(Te(e))}var Zv=Se;function Rn(e,n,i){var a=e.length;return i=i===l?a:i,!n&&i>=a?e:qt(e,n,i)}var jc=Np||function(e){return et.clearTimeout(e)};function Yc(e,n){if(n)return e.slice();var i=e.length,a=pc?pc(i):new e.constructor(i);return e.copy(a),a}function Xo(e){var n=new e.constructor(e.byteLength);return new el(n).set(new el(e)),n}function Xv(e,n){var i=n?Xo(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)}function Jv(e){var n=new e.constructor(e.source,ln.exec(e));return n.lastIndex=e.lastIndex,n}function e0(e){return Qr?Me(Qr.call(e)):{}}function Qc(e,n){var i=n?Xo(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}function Zc(e,n){if(e!==n){var i=e!==l,a=e===null,f=e===e,m=kt(e),p=n!==l,b=n===null,x=n===n,L=kt(n);if(!b&&!L&&!m&&e>n||m&&p&&x&&!b&&!L||a&&p&&x||!i&&x||!f)return 1;if(!a&&!m&&!L&&e<n||L&&i&&f&&!a&&!m||b&&i&&f||!p&&f||!x)return-1}return 0}function t0(e,n,i){for(var a=-1,f=e.criteria,m=n.criteria,p=f.length,b=i.length;++a<p;){var x=Zc(f[a],m[a]);if(x){if(a>=b)return x;var L=i[a];return x*(L=="desc"?-1:1)}}return e.index-n.index}function Xc(e,n,i,a){for(var f=-1,m=e.length,p=i.length,b=-1,x=n.length,L=Qe(m-p,0),q=I(x+L),D=!a;++b<x;)q[b]=n[b];for(;++f<p;)(D||f<m)&&(q[i[f]]=e[f]);for(;L--;)q[b++]=e[f++];return q}function Jc(e,n,i,a){for(var f=-1,m=e.length,p=-1,b=i.length,x=-1,L=n.length,q=Qe(m-b,0),D=I(q+L),J=!a;++f<q;)D[f]=e[f];for(var oe=f;++x<L;)D[oe+x]=n[x];for(;++p<b;)(J||f<m)&&(D[oe+i[p]]=e[f++]);return D}function dt(e,n){var i=-1,a=e.length;for(n||(n=I(a));++i<a;)n[i]=e[i];return n}function Xt(e,n,i,a){var f=!i;i||(i={});for(var m=-1,p=n.length;++m<p;){var b=n[m],x=a?a(i[b],e[b],b,i,e):l;x===l&&(x=e[b]),f?un(i,b,x):Zr(i,b,x)}return i}function n0(e,n){return Xt(e,la(e),n)}function r0(e,n){return Xt(e,hf(e),n)}function gl(e,n){return function(i,a){var f=be(i)?up:kv,m=n?n():{};return f(i,e,ce(a,2),m)}}function Ar(e){return Se(function(n,i){var a=-1,f=i.length,m=f>1?i[f-1]:l,p=f>2?i[2]:l;for(m=e.length>3&&typeof m=="function"?(f--,m):l,p&&at(i[0],i[1],p)&&(m=f<3?l:m,f=1),n=Me(n);++a<f;){var b=i[a];b&&e(n,b,a,m)}return n})}function ef(e,n){return function(i,a){if(i==null)return i;if(!ht(i))return e(i,a);for(var f=i.length,m=n?f:-1,p=Me(i);(n?m--:++m<f)&&a(p[m],m,p)!==!1;);return i}}function tf(e){return function(n,i,a){for(var f=-1,m=Me(n),p=a(n),b=p.length;b--;){var x=p[e?b:++f];if(i(m[x],x,m)===!1)break}return n}}function i0(e,n,i){var a=n&R,f=ni(e);function m(){var p=this&&this!==et&&this instanceof m?f:e;return p.apply(a?i:this,arguments)}return m}function nf(e){return function(n){n=Te(n);var i=yr(n)?Wt(n):l,a=i?i[0]:n.charAt(0),f=i?Rn(i,1).join(""):n.slice(1);return a[e]()+f}}function Or(e){return function(n){return xo(td(ed(n).replace(jg,"")),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 i=Er(e.prototype),a=e.apply(i,n);return $e(a)?a:i}}function l0(e,n,i){var a=ni(e);function f(){for(var m=arguments.length,p=I(m),b=m,x=Tr(f);b--;)p[b]=arguments[b];var L=m<3&&p[0]!==x&&p[m-1]!==x?[]:En(p,x);if(m-=L.length,m<i)return uf(e,n,pl,f.placeholder,l,p,L,l,l,i-m);var q=this&&this!==et&&this instanceof f?a:e;return St(q,this,p)}return f}function rf(e){return function(n,i,a){var f=Me(n);if(!ht(n)){var m=ce(i,3);n=Xe(n),i=function(b){return m(f[b],b,f)}}var p=e(n,i,a);return p>-1?f[m?n[p]:p]:l}}function lf(e){return cn(function(n){var i=n.length,a=i,f=Mt.prototype.thru;for(e&&n.reverse();a--;){var m=n[a];if(typeof m!="function")throw new It(h);if(f&&!p&&yl(m)=="wrapper")var p=new Mt([],!0)}for(a=p?a:i;++a<i;){m=n[a];var b=yl(m),x=b=="wrapper"?ra(m):l;x&&aa(x[0])&&x[1]==(K|N|G|le)&&!x[4].length&&x[9]==1?p=p[yl(x[0])].apply(p,x[3]):p=m.length==1&&aa(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=i?n[D].apply(this,L):q;++D<i;)J=n[D].call(this,J);return J}})}function pl(e,n,i,a,f,m,p,b,x,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,Ee=I(Ce),Et=Ce;Et--;)Ee[Et]=arguments[Et];if(oe)var ut=Tr(he),At=vp(Ee,ut);if(a&&(Ee=Xc(Ee,a,f,oe)),m&&(Ee=Jc(Ee,m,p,oe)),Ce-=At,oe&&Ce<L){var He=En(Ee,ut);return uf(e,n,pl,he.placeholder,i,Ee,He,b,x,L-Ce)}var jt=D?i:this,mn=J?jt[e]:e;return Ce=Ee.length,b?Ee=k0(Ee,b):de&&Ce>1&&Ee.reverse(),q&&x<Ce&&(Ee.length=x),this&&this!==et&&this instanceof he&&(mn=we||ni(mn)),mn.apply(jt,Ee)}return he}function of(e,n){return function(i,a){return Mv(i,e,n(a),{})}}function vl(e,n){return function(i,a){var f;if(i===l&&a===l)return n;if(i!==l&&(f=i),a!==l){if(f===l)return a;typeof i=="string"||typeof a=="string"?(i=Ct(i),a=Ct(a)):(i=Hc(i),a=Hc(a)),f=e(i,a)}return f}}function Jo(e){return cn(function(n){return n=Pe(n,xt(ce())),Se(function(i){var a=this;return e(n,function(f){return St(f,a,i)})})})}function _l(e,n){n=n===l?" ":Ct(n);var i=n.length;if(i<2)return i?Go(n,e):n;var a=Go(n,il(e/wr(n)));return yr(n)?Rn(Wt(a),0,e).join(""):a.slice(0,e)}function o0(e,n,i,a){var f=n&R,m=ni(e);function p(){for(var b=-1,x=arguments.length,L=-1,q=a.length,D=I(q+x),J=this&&this!==et&&this instanceof p?m:e;++L<q;)D[L]=a[L];for(;x--;)D[L++]=arguments[++b];return St(J,f?i:this,D)}return p}function af(e){return function(n,i,a){return a&&typeof a!="number"&&at(n,i,a)&&(i=a=l),n=hn(n),i===l?(i=n,n=0):i=hn(i),a=a===l?n<i?1:-1:hn(a),Wv(n,i,a,e)}}function bl(e){return function(n,i){return typeof n=="string"&&typeof i=="string"||(n=Pt(n),i=Pt(i)),e(n,i)}}function uf(e,n,i,a,f,m,p,b,x,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,f,oe,D,de,J,b,x,L],he=i.apply(l,we);return aa(e)&&yf(he,we),he.placeholder=a,wf(he,e,n)}function ea(e){var n=Ye[e];return function(i,a){if(i=Pt(i),a=a==null?0:rt(ye(a),292),a&&yc(i)){var f=(Te(i)+"e").split("e"),m=n(f[0]+"e"+(+f[1]+a));return f=(Te(m)+"e").split("e"),+(f[0]+"e"+(+f[1]-a))}return n(i)}}var a0=Cr&&1/ji(new Cr([,-0]))[1]==fe?function(e){return new Cr(e)}:Sa;function sf(e){return function(n){var i=it(n);return i==nt?Bo(n):i==Fe?Cp(n):pp(n,e(n))}}function sn(e,n,i,a,f,m,p,b){var x=n&H;if(!x&&typeof e!="function")throw new It(h);var L=a?a.length:0;if(L||(n&=~(G|j),a=f=l),p=p===l?p:Qe(ye(p),0),b=b===l?b:ye(b),L-=f?f.length:0,n&j){var q=a,D=f;a=f=l}var J=x?l:ra(e),oe=[e,n,i,a,f,q,D,m,p,b];if(J&&S0(oe,J),e=oe[0],n=oe[1],i=oe[2],a=oe[3],f=oe[4],b=oe[9]=oe[9]===l?x?0:e.length:Qe(oe[9]-L,0),!b&&n&(N|Q)&&(n&=~(N|Q)),!n||n==R)var de=i0(e,n,i);else n==N||n==Q?de=l0(e,n,b):(n==G||n==(R|G))&&!f.length?de=o0(e,n,i,a):de=pl.apply(l,oe);var we=J?Uc:yf;return wf(we(de,oe),e,n)}function cf(e,n,i,a){return e===l||Kt(e,xr[i])&&!Re.call(a,i)?n:e}function ff(e,n,i,a,f,m){return $e(e)&&$e(n)&&(m.set(n,e),dl(e,n,l,ff,m),m.delete(n)),e}function u0(e){return li(e)?l:e}function df(e,n,i,a,f,m){var p=i&T,b=e.length,x=n.length;if(b!=x&&!(p&&x>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=i&z?new jn: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(!Co(n,function(Ce,Ee){if(!Wr(oe,Ee)&&(de===Ce||f(de,Ce,i,a,m)))return oe.push(Ee)})){J=!1;break}}else if(!(de===we||f(de,we,i,a,m))){J=!1;break}}return m.delete(e),m.delete(n),J}function s0(e,n,i,a,f,m,p){switch(i){case bn: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 el(e),new el(n)));case Ae:case Y:case wt:return Kt(+e,+n);case lt:return e.name==n.name&&e.message==n.message;case Ut:case je:return e==n+"";case nt:var b=Bo;case Fe:var x=a&T;if(b||(b=ji),e.size!=n.size&&!x)return!1;var L=p.get(e);if(L)return L==n;a|=z,p.set(e,n);var q=df(b(e),b(n),a,f,m,p);return p.delete(e),q;case zt:if(Qr)return Qr.call(e)==Qr.call(n)}return!1}function c0(e,n,i,a,f,m){var p=i&T,b=ta(e),x=b.length,L=ta(n),q=L.length;if(x!=q&&!p)return!1;for(var D=x;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<x;){J=b[D];var Ce=e[J],Ee=n[J];if(a)var Et=p?a(Ee,Ce,J,n,e,m):a(Ce,Ee,J,e,n,m);if(!(Et===l?Ce===Ee||f(Ce,Ee,i,a,m):Et)){we=!1;break}he||(he=J=="constructor")}if(we&&!he){var ut=e.constructor,At=n.constructor;ut!=At&&"constructor"in e&&"constructor"in n&&!(typeof ut=="function"&&ut instanceof ut&&typeof At=="function"&&At instanceof At)&&(we=!1)}return m.delete(e),m.delete(n),we}function cn(e){return sa(_f(e,l,Af),e+"")}function ta(e){return Rc(e,Xe,la)}function na(e){return Rc(e,mt,hf)}var ra=ol?function(e){return ol.get(e)}:Sa;function yl(e){for(var n=e.name+"",i=kr[n],a=Re.call(kr,n)?i.length:0;a--;){var f=i[a],m=f.func;if(m==null||m==e)return f.name}return n}function Tr(e){var n=Re.call(d,"placeholder")?d:e;return n.placeholder}function ce(){var e=d.iteratee||ya;return e=e===ya?Lc:e,arguments.length?e(arguments[0],arguments[1]):e}function wl(e,n){var i=e.__data__;return _0(n)?i[typeof n=="string"?"string":"hash"]:i.map}function ia(e){for(var n=Xe(e),i=n.length;i--;){var a=n[i],f=e[a];n[i]=[a,f,pf(f)]}return n}function Zn(e,n){var i=wp(e,n);return Mc(i)?i:l}function f0(e){var n=Re.call(e,Gn),i=e[Gn];try{e[Gn]=l;var a=!0}catch{}var f=Xi.call(e);return a&&(n?e[Gn]=i:delete e[Gn]),f}var la=Io?function(e){return e==null?[]:(e=Me(e),Cn(Io(e),function(n){return _c.call(e,n)}))}:xa,hf=Io?function(e){for(var n=[];e;)kn(n,la(e)),e=tl(e);return n}:xa,it=ot;(Mo&&it(new Mo(new ArrayBuffer(1)))!=bn||Kr&&it(new Kr)!=nt||Lo&&it(Lo.resolve())!=_n||Cr&&it(new Cr)!=Fe||jr&&it(new jr)!=$n)&&(it=function(e){var n=ot(e),i=n==ft?e.constructor:l,a=i?Xn(i):"";if(a)switch(a){case Kp:return bn;case jp:return nt;case Yp:return _n;case Qp:return Fe;case Zp:return $n}return n});function d0(e,n,i){for(var a=-1,f=i.length;++a<f;){var m=i[a],p=m.size;switch(m.type){case"drop":e+=p;break;case"dropRight":n-=p;break;case"take":n=rt(n,e+p);break;case"takeRight":e=Qe(e,n-p);break}}return{start:e,end:n}}function h0(e){var n=e.match(co);return n?n[1].split(fo):[]}function mf(e,n,i){n=Bn(n,e);for(var a=-1,f=n.length,m=!1;++a<f;){var p=Jt(n[a]);if(!(m=e!=null&&i(e,p)))break;e=e[p]}return m||++a!=f?m:(f=e==null?0:e.length,!!f&&Ol(f)&&fn(p,f)&&(be(e)||Jn(e)))}function m0(e){var n=e.length,i=new e.constructor(n);return n&&typeof e[0]=="string"&&Re.call(e,"index")&&(i.index=e.index,i.input=e.input),i}function gf(e){return typeof e.constructor=="function"&&!ri(e)?Er(tl(e)):{}}function g0(e,n,i){var a=e.constructor;switch(n){case nn:return Xo(e);case Ae:case Y:return new a(+e);case bn:return Xv(e,i);case mr:case Ht:case Qt:case yn:case $r:case Fn:case Un:case gr:case pr:return Qc(e,i);case nt:return new a;case wt:case je:return new a(e);case Ut:return Jv(e);case Fe:return new a;case zt:return e0(e)}}function p0(e,n){var i=n.length;if(!i)return e;var a=i-1;return n[a]=(i>1?"& ":"")+n[a],n=n.join(i>2?", ":" "),e.replace(so,`{
8
+ */oi.exports,function(t,o){(function(){var l,u="4.17.21",s=200,c="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",h="Expected a function",g="Invalid `variable` option passed into `_.template`",w="__lodash_hash_undefined__",C=500,v="__lodash_placeholder__",k=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="...",A=800,te=16,P=1,ae=2,ue=3,fe=1/0,W=9007199254740991,se=17976931348623157e292,ge=NaN,B=4294967295,O=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]",lt="[object Error]",Ft="[object Function]",yt="[object GeneratorFunction]",nt="[object Map]",wt="[object Number]",tn="[object Null]",ft="[object Object]",_n="[object Promise]",Dr="[object Proxy]",Ut="[object RegExp]",Fe="[object Set]",je="[object String]",zt="[object Symbol]",hr="[object Undefined]",$n="[object WeakMap]",Li="[object WeakSet]",nn="[object ArrayBuffer]",bn="[object DataView]",mr="[object Float32Array]",Ht="[object Float64Array]",Qt="[object Int8Array]",yn="[object Int16Array]",$r="[object Int32Array]",Fn="[object Uint8Array]",Un="[object Uint8ClampedArray]",gr="[object Uint16Array]",pr="[object Uint32Array]",qi=/\b__p \+= '';/g,Vi=/\b(__p \+=) '' \+/g,Pi=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Fr=/&(?:amp|lt|gt|quot|#39);/g,Ni=/[&<>"']/g,io=RegExp(Fr.source),Di=RegExp(Ni.source),lo=/<%-([\s\S]+?)%>/g,$i=/<%([\s\S]+?)%>/g,zn=/<%=([\s\S]+?)%>/g,Hn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,wn=/^\w*$/,oo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ur=/[\\^$.*+?()[\]{}|]/g,ao=RegExp(Ur.source),zr=/^\s+/,uo=/\s/,so=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,co=/\{\n\/\* \[wrapped with (.+)\] \*/,fo=/,? & /,ho=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Sn=/[()=,{}\[\]\/\s]/,xn=/\\(\\)?/g,rn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ln=/\w*$/,Hr=/^[-+]0x[0-9a-f]+$/i,mo=/^0b[01]+$/i,Fi=/^\[object .+?Constructor\]$/,Ui=/^0o[0-7]+$/i,zi=/^(?:0|[1-9]\d*)$/,Hi=/[\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",qg="\\xac\\xb1\\xd7\\xf7",Vg="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Pg="\\u2000-\\u206f",Ng=" \\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",Vs="A-Z\\xc0-\\xd6\\xd8-\\xde",Ps="\\ufe0e\\ufe0f",Ns=qg+Vg+Pg+Ng,go="['’]",Dg="["+X+"]",Ds="["+Ns+"]",Wi="["+Ge+"]",$s="\\d+",$g="["+Ve+"]",Fs="["+vr+"]",Us="[^"+X+Ns+$s+Ve+vr+Vs+"]",po="\\ud83c[\\udffb-\\udfff]",Fg="(?:"+Wi+"|"+po+")",zs="[^"+X+"]",vo="(?:\\ud83c[\\udde6-\\uddff]){2}",_o="[\\ud800-\\udbff][\\udc00-\\udfff]",_r="["+Vs+"]",Hs="\\u200d",Ws="(?:"+Fs+"|"+Us+")",Ug="(?:"+_r+"|"+Us+")",Gs="(?:"+go+"(?:d|ll|m|re|s|t|ve))?",Ks="(?:"+go+"(?:D|LL|M|RE|S|T|VE))?",js=Fg+"?",Ys="["+Ps+"]?",zg="(?:"+Hs+"(?:"+[zs,vo,_o].join("|")+")"+Ys+js+")*",Hg="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Wg="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Qs=Ys+js+zg,Gg="(?:"+[$g,vo,_o].join("|")+")"+Qs,Kg="(?:"+[zs+Wi+"?",Wi,vo,_o,Dg].join("|")+")",jg=RegExp(go,"g"),Yg=RegExp(Wi,"g"),bo=RegExp(po+"(?="+po+")|"+Kg+Qs,"g"),Qg=RegExp([_r+"?"+Fs+"+"+Gs+"(?="+[Ds,_r,"$"].join("|")+")",Ug+"+"+Ks+"(?="+[Ds,_r+Ws,"$"].join("|")+")",_r+"?"+Ws+"+"+Gs,_r+"+"+Ks,Wg,Hg,$s,Gg].join("|"),"g"),Zg=RegExp("["+Hs+X+Ge+Ps+"]"),Xg=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Jg=["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"],ep=-1,qe={};qe[mr]=qe[Ht]=qe[Qt]=qe[yn]=qe[$r]=qe[Fn]=qe[Un]=qe[gr]=qe[pr]=!0,qe[_e]=qe[U]=qe[nn]=qe[Ae]=qe[bn]=qe[Y]=qe[lt]=qe[Ft]=qe[nt]=qe[wt]=qe[ft]=qe[Ut]=qe[Fe]=qe[je]=qe[$n]=!1;var Le={};Le[_e]=Le[U]=Le[nn]=Le[bn]=Le[Ae]=Le[Y]=Le[mr]=Le[Ht]=Le[Qt]=Le[yn]=Le[$r]=Le[nt]=Le[wt]=Le[ft]=Le[Ut]=Le[Fe]=Le[je]=Le[zt]=Le[Fn]=Le[Un]=Le[gr]=Le[pr]=!0,Le[lt]=Le[Ft]=Le[$n]=!1;var tp={À:"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"},np={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},rp={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},ip={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},lp=parseFloat,op=parseInt,Zs=typeof xe=="object"&&xe&&xe.Object===Object&&xe,ap=typeof self=="object"&&self&&self.Object===Object&&self,et=Zs||ap||Function("return this")(),yo=o&&!o.nodeType&&o,Wn=yo&&!0&&t&&!t.nodeType&&t,Xs=Wn&&Wn.exports===yo,wo=Xs&&Zs.process,Bt=function(){try{var S=Wn&&Wn.require&&Wn.require("util").types;return S||wo&&wo.binding&&wo.binding("util")}catch{}}(),Js=Bt&&Bt.isArrayBuffer,ec=Bt&&Bt.isDate,tc=Bt&&Bt.isMap,nc=Bt&&Bt.isRegExp,rc=Bt&&Bt.isSet,ic=Bt&&Bt.isTypedArray;function St(S,M,I){switch(I.length){case 0:return S.call(M);case 1:return S.call(M,I[0]);case 2:return S.call(M,I[0],I[1]);case 3:return S.call(M,I[0],I[1],I[2])}return S.apply(M,I)}function up(S,M,I,re){for(var pe=-1,Oe=S==null?0:S.length;++pe<Oe;){var Ye=S[pe];M(re,Ye,I(Ye),S)}return re}function Rt(S,M){for(var I=-1,re=S==null?0:S.length;++I<re&&M(S[I],I,S)!==!1;);return S}function sp(S,M){for(var I=S==null?0:S.length;I--&&M(S[I],I,S)!==!1;);return S}function lc(S,M){for(var I=-1,re=S==null?0:S.length;++I<re;)if(!M(S[I],I,S))return!1;return!0}function Cn(S,M){for(var I=-1,re=S==null?0:S.length,pe=0,Oe=[];++I<re;){var Ye=S[I];M(Ye,I,S)&&(Oe[pe++]=Ye)}return Oe}function Gi(S,M){var I=S==null?0:S.length;return!!I&&br(S,M,0)>-1}function So(S,M,I){for(var re=-1,pe=S==null?0:S.length;++re<pe;)if(I(M,S[re]))return!0;return!1}function Pe(S,M){for(var I=-1,re=S==null?0:S.length,pe=Array(re);++I<re;)pe[I]=M(S[I],I,S);return pe}function kn(S,M){for(var I=-1,re=M.length,pe=S.length;++I<re;)S[pe+I]=M[I];return S}function xo(S,M,I,re){var pe=-1,Oe=S==null?0:S.length;for(re&&Oe&&(I=S[++pe]);++pe<Oe;)I=M(I,S[pe],pe,S);return I}function cp(S,M,I,re){var pe=S==null?0:S.length;for(re&&pe&&(I=S[--pe]);pe--;)I=M(I,S[pe],pe,S);return I}function Co(S,M){for(var I=-1,re=S==null?0:S.length;++I<re;)if(M(S[I],I,S))return!0;return!1}var fp=ko("length");function dp(S){return S.split("")}function hp(S){return S.match(ho)||[]}function oc(S,M,I){var re;return I(S,function(pe,Oe,Ye){if(M(pe,Oe,Ye))return re=Oe,!1}),re}function Ki(S,M,I,re){for(var pe=S.length,Oe=I+(re?1:-1);re?Oe--:++Oe<pe;)if(M(S[Oe],Oe,S))return Oe;return-1}function br(S,M,I){return M===M?kp(S,M,I):Ki(S,ac,I)}function mp(S,M,I,re){for(var pe=I-1,Oe=S.length;++pe<Oe;)if(re(S[pe],M))return pe;return-1}function ac(S){return S!==S}function uc(S,M){var I=S==null?0:S.length;return I?Ao(S,M)/I:ge}function ko(S){return function(M){return M==null?l:M[S]}}function Eo(S){return function(M){return S==null?l:S[M]}}function sc(S,M,I,re,pe){return pe(S,function(Oe,Ye,Me){I=re?(re=!1,Oe):M(I,Oe,Ye,Me)}),I}function gp(S,M){var I=S.length;for(S.sort(M);I--;)S[I]=S[I].value;return S}function Ao(S,M){for(var I,re=-1,pe=S.length;++re<pe;){var Oe=M(S[re]);Oe!==l&&(I=I===l?Oe:I+Oe)}return I}function Oo(S,M){for(var I=-1,re=Array(S);++I<S;)re[I]=M(I);return re}function pp(S,M){return Pe(M,function(I){return[I,S[I]]})}function cc(S){return S&&S.slice(0,mc(S)+1).replace(zr,"")}function xt(S){return function(M){return S(M)}}function To(S,M){return Pe(M,function(I){return S[I]})}function Wr(S,M){return S.has(M)}function fc(S,M){for(var I=-1,re=S.length;++I<re&&br(M,S[I],0)>-1;);return I}function dc(S,M){for(var I=S.length;I--&&br(M,S[I],0)>-1;);return I}function vp(S,M){for(var I=S.length,re=0;I--;)S[I]===M&&++re;return re}var _p=Eo(tp),bp=Eo(np);function yp(S){return"\\"+ip[S]}function wp(S,M){return S==null?l:S[M]}function yr(S){return Zg.test(S)}function Sp(S){return Xg.test(S)}function xp(S){for(var M,I=[];!(M=S.next()).done;)I.push(M.value);return I}function Bo(S){var M=-1,I=Array(S.size);return S.forEach(function(re,pe){I[++M]=[pe,re]}),I}function hc(S,M){return function(I){return S(M(I))}}function En(S,M){for(var I=-1,re=S.length,pe=0,Oe=[];++I<re;){var Ye=S[I];(Ye===M||Ye===v)&&(S[I]=v,Oe[pe++]=I)}return Oe}function ji(S){var M=-1,I=Array(S.size);return S.forEach(function(re){I[++M]=re}),I}function Cp(S){var M=-1,I=Array(S.size);return S.forEach(function(re){I[++M]=[re,re]}),I}function kp(S,M,I){for(var re=I-1,pe=S.length;++re<pe;)if(S[re]===M)return re;return-1}function Ep(S,M,I){for(var re=I+1;re--;)if(S[re]===M)return re;return re}function wr(S){return yr(S)?Op(S):fp(S)}function Wt(S){return yr(S)?Tp(S):dp(S)}function mc(S){for(var M=S.length;M--&&uo.test(S.charAt(M)););return M}var Ap=Eo(rp);function Op(S){for(var M=bo.lastIndex=0;bo.test(S);)++M;return M}function Tp(S){return S.match(bo)||[]}function Bp(S){return S.match(Qg)||[]}var Rp=function S(M){M=M==null?et:Sr.defaults(et.Object(),M,Sr.pick(et,Jg));var I=M.Array,re=M.Date,pe=M.Error,Oe=M.Function,Ye=M.Math,Me=M.Object,Ro=M.RegExp,Ip=M.String,It=M.TypeError,Yi=I.prototype,Mp=Oe.prototype,xr=Me.prototype,Qi=M["__core-js_shared__"],Zi=Mp.toString,Re=xr.hasOwnProperty,Lp=0,gc=function(){var e=/[^.]+$/.exec(Qi&&Qi.keys&&Qi.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Xi=xr.toString,qp=Zi.call(Me),Vp=et._,Pp=Ro("^"+Zi.call(Re).replace(Ur,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ji=Xs?M.Buffer:l,An=M.Symbol,el=M.Uint8Array,pc=Ji?Ji.allocUnsafe:l,tl=hc(Me.getPrototypeOf,Me),vc=Me.create,_c=xr.propertyIsEnumerable,nl=Yi.splice,bc=An?An.isConcatSpreadable:l,Gr=An?An.iterator:l,Gn=An?An.toStringTag:l,rl=function(){try{var e=Zn(Me,"defineProperty");return e({},"",{}),e}catch{}}(),Np=M.clearTimeout!==et.clearTimeout&&M.clearTimeout,Dp=re&&re.now!==et.Date.now&&re.now,$p=M.setTimeout!==et.setTimeout&&M.setTimeout,il=Ye.ceil,ll=Ye.floor,Io=Me.getOwnPropertySymbols,Fp=Ji?Ji.isBuffer:l,yc=M.isFinite,Up=Yi.join,zp=hc(Me.keys,Me),Qe=Ye.max,rt=Ye.min,Hp=re.now,Wp=M.parseInt,wc=Ye.random,Gp=Yi.reverse,Mo=Zn(M,"DataView"),Kr=Zn(M,"Map"),Lo=Zn(M,"Promise"),Cr=Zn(M,"Set"),jr=Zn(M,"WeakMap"),Yr=Zn(Me,"create"),ol=jr&&new jr,kr={},Kp=Xn(Mo),jp=Xn(Kr),Yp=Xn(Lo),Qp=Xn(Cr),Zp=Xn(jr),al=An?An.prototype:l,Qr=al?al.valueOf:l,Sc=al?al.toString:l;function d(e){if(Ue(e)&&!be(e)&&!(e instanceof ke)){if(e instanceof Mt)return e;if(Re.call(e,"__wrapped__"))return Cf(e)}return new Mt(e)}var Er=function(){function e(){}return function(n){if(!$e(n))return{};if(vc)return vc(n);e.prototype=n;var i=new e;return e.prototype=l,i}}();function ul(){}function Mt(e,n){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=l}d.templateSettings={escape:lo,evaluate:$i,interpolate:zn,variable:"",imports:{_:d}},d.prototype=ul.prototype,d.prototype.constructor=d,Mt.prototype=Er(ul.prototype),Mt.prototype.constructor=Mt;function ke(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=B,this.__views__=[]}function Xp(){var e=new ke(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 Jp(){if(this.__filtered__){var e=new ke(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function ev(){var e=this.__wrapped__.value(),n=this.__dir__,i=be(e),a=n<0,f=i?e.length:0,m=d0(0,f,this.__views__),p=m.start,b=m.end,x=b-p,L=a?b:p-1,q=this.__iteratees__,D=q.length,J=0,oe=rt(x,this.__takeCount__);if(!i||!a&&f==x&&oe==x)return Gc(e,this.__actions__);var de=[];e:for(;x--&&J<oe;){L+=n;for(var we=-1,he=e[L];++we<D;){var Ce=q[we],Ee=Ce.iteratee,Et=Ce.type,ut=Ee(he);if(Et==ae)he=ut;else if(!ut){if(Et==P)continue e;break e}}de[J++]=he}return de}ke.prototype=Er(ul.prototype),ke.prototype.constructor=ke;function Kn(e){var n=-1,i=e==null?0:e.length;for(this.clear();++n<i;){var a=e[n];this.set(a[0],a[1])}}function tv(){this.__data__=Yr?Yr(null):{},this.size=0}function nv(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}function rv(e){var n=this.__data__;if(Yr){var i=n[e];return i===w?l:i}return Re.call(n,e)?n[e]:l}function iv(e){var n=this.__data__;return Yr?n[e]!==l:Re.call(n,e)}function lv(e,n){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=Yr&&n===l?w:n,this}Kn.prototype.clear=tv,Kn.prototype.delete=nv,Kn.prototype.get=rv,Kn.prototype.has=iv,Kn.prototype.set=lv;function on(e){var n=-1,i=e==null?0:e.length;for(this.clear();++n<i;){var a=e[n];this.set(a[0],a[1])}}function ov(){this.__data__=[],this.size=0}function av(e){var n=this.__data__,i=sl(n,e);if(i<0)return!1;var a=n.length-1;return i==a?n.pop():nl.call(n,i,1),--this.size,!0}function uv(e){var n=this.__data__,i=sl(n,e);return i<0?l:n[i][1]}function sv(e){return sl(this.__data__,e)>-1}function cv(e,n){var i=this.__data__,a=sl(i,e);return a<0?(++this.size,i.push([e,n])):i[a][1]=n,this}on.prototype.clear=ov,on.prototype.delete=av,on.prototype.get=uv,on.prototype.has=sv,on.prototype.set=cv;function an(e){var n=-1,i=e==null?0:e.length;for(this.clear();++n<i;){var a=e[n];this.set(a[0],a[1])}}function fv(){this.size=0,this.__data__={hash:new Kn,map:new(Kr||on),string:new Kn}}function dv(e){var n=wl(this,e).delete(e);return this.size-=n?1:0,n}function hv(e){return wl(this,e).get(e)}function mv(e){return wl(this,e).has(e)}function gv(e,n){var i=wl(this,e),a=i.size;return i.set(e,n),this.size+=i.size==a?0:1,this}an.prototype.clear=fv,an.prototype.delete=dv,an.prototype.get=hv,an.prototype.has=mv,an.prototype.set=gv;function jn(e){var n=-1,i=e==null?0:e.length;for(this.__data__=new an;++n<i;)this.add(e[n])}function pv(e){return this.__data__.set(e,w),this}function vv(e){return this.__data__.has(e)}jn.prototype.add=jn.prototype.push=pv,jn.prototype.has=vv;function Gt(e){var n=this.__data__=new on(e);this.size=n.size}function _v(){this.__data__=new on,this.size=0}function bv(e){var n=this.__data__,i=n.delete(e);return this.size=n.size,i}function yv(e){return this.__data__.get(e)}function wv(e){return this.__data__.has(e)}function Sv(e,n){var i=this.__data__;if(i instanceof on){var a=i.__data__;if(!Kr||a.length<s-1)return a.push([e,n]),this.size=++i.size,this;i=this.__data__=new an(a)}return i.set(e,n),this.size=i.size,this}Gt.prototype.clear=_v,Gt.prototype.delete=bv,Gt.prototype.get=yv,Gt.prototype.has=wv,Gt.prototype.set=Sv;function xc(e,n){var i=be(e),a=!i&&Jn(e),f=!i&&!a&&In(e),m=!i&&!a&&!f&&Br(e),p=i||a||f||m,b=p?Oo(e.length,Ip):[],x=b.length;for(var L in e)(n||Re.call(e,L))&&!(p&&(L=="length"||f&&(L=="offset"||L=="parent")||m&&(L=="buffer"||L=="byteLength"||L=="byteOffset")||fn(L,x)))&&b.push(L);return b}function Cc(e){var n=e.length;return n?e[Wo(0,n-1)]:l}function xv(e,n){return Sl(dt(e),Yn(n,0,e.length))}function Cv(e){return Sl(dt(e))}function qo(e,n,i){(i!==l&&!Kt(e[n],i)||i===l&&!(n in e))&&un(e,n,i)}function Zr(e,n,i){var a=e[n];(!(Re.call(e,n)&&Kt(a,i))||i===l&&!(n in e))&&un(e,n,i)}function sl(e,n){for(var i=e.length;i--;)if(Kt(e[i][0],n))return i;return-1}function kv(e,n,i,a){return On(e,function(f,m,p){n(a,f,i(f),p)}),a}function kc(e,n){return e&&Xt(n,Xe(n),e)}function Ev(e,n){return e&&Xt(n,mt(n),e)}function un(e,n,i){n=="__proto__"&&rl?rl(e,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[n]=i}function Vo(e,n){for(var i=-1,a=n.length,f=I(a),m=e==null;++i<a;)f[i]=m?l:pa(e,n[i]);return f}function Yn(e,n,i){return e===e&&(i!==l&&(e=e<=i?e:i),n!==l&&(e=e>=n?e:n)),e}function Lt(e,n,i,a,f,m){var p,b=n&k,x=n&E,L=n&y;if(i&&(p=f?i(e,a,f,m):i(e)),p!==l)return p;if(!$e(e))return e;var q=be(e);if(q){if(p=m0(e),!b)return dt(e,p)}else{var D=it(e),J=D==Ft||D==yt;if(In(e))return Yc(e,b);if(D==ft||D==_e||J&&!f){if(p=x||J?{}:gf(e),!b)return x?r0(e,Ev(p,e)):n0(e,kc(p,e))}else{if(!Le[D])return f?e:{};p=g0(e,D,b)}}m||(m=new Gt);var oe=m.get(e);if(oe)return oe;m.set(e,p),Hf(e)?e.forEach(function(he){p.add(Lt(he,n,i,he,e,m))}):Uf(e)&&e.forEach(function(he,Ce){p.set(Ce,Lt(he,n,i,Ce,e,m))});var de=L?x?na:ta:x?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,i,Ce,e,m))}),p}function Av(e){var n=Xe(e);return function(i){return Ec(i,e,n)}}function Ec(e,n,i){var a=i.length;if(e==null)return!a;for(e=Me(e);a--;){var f=i[a],m=n[f],p=e[f];if(p===l&&!(f in e)||!m(p))return!1}return!0}function Ac(e,n,i){if(typeof e!="function")throw new It(h);return ii(function(){e.apply(l,i)},n)}function Xr(e,n,i,a){var f=-1,m=Gi,p=!0,b=e.length,x=[],L=n.length;if(!b)return x;i&&(n=Pe(n,xt(i))),a?(m=So,p=!1):n.length>=s&&(m=Wr,p=!1,n=new jn(n));e:for(;++f<b;){var q=e[f],D=i==null?q:i(q);if(q=a||q!==0?q:0,p&&D===D){for(var J=L;J--;)if(n[J]===D)continue e;x.push(q)}else m(n,D,a)||x.push(q)}return x}var On=ef(Zt),Oc=ef(No,!0);function Ov(e,n){var i=!0;return On(e,function(a,f,m){return i=!!n(a,f,m),i}),i}function cl(e,n,i){for(var a=-1,f=e.length;++a<f;){var m=e[a],p=n(m);if(p!=null&&(b===l?p===p&&!kt(p):i(p,b)))var b=p,x=m}return x}function Tv(e,n,i,a){var f=e.length;for(i=ye(i),i<0&&(i=-i>f?0:f+i),a=a===l||a>f?f:ye(a),a<0&&(a+=f),a=i>a?0:Gf(a);i<a;)e[i++]=n;return e}function Tc(e,n){var i=[];return On(e,function(a,f,m){n(a,f,m)&&i.push(a)}),i}function tt(e,n,i,a,f){var m=-1,p=e.length;for(i||(i=v0),f||(f=[]);++m<p;){var b=e[m];n>0&&i(b)?n>1?tt(b,n-1,i,a,f):kn(f,b):a||(f[f.length]=b)}return f}var Po=tf(),Bc=tf(!0);function Zt(e,n){return e&&Po(e,n,Xe)}function No(e,n){return e&&Bc(e,n,Xe)}function fl(e,n){return Cn(n,function(i){return dn(e[i])})}function Qn(e,n){n=Bn(n,e);for(var i=0,a=n.length;e!=null&&i<a;)e=e[Jt(n[i++])];return i&&i==a?e:l}function Rc(e,n,i){var a=n(e);return be(e)?a:kn(a,i(e))}function ot(e){return e==null?e===l?hr:tn:Gn&&Gn in Me(e)?f0(e):C0(e)}function Do(e,n){return e>n}function Bv(e,n){return e!=null&&Re.call(e,n)}function Rv(e,n){return e!=null&&n in Me(e)}function Iv(e,n,i){return e>=rt(n,i)&&e<Qe(n,i)}function $o(e,n,i){for(var a=i?So:Gi,f=e[0].length,m=e.length,p=m,b=I(m),x=1/0,L=[];p--;){var q=e[p];p&&n&&(q=Pe(q,xt(n))),x=rt(q.length,x),b[p]=!i&&(n||f>=120&&q.length>=120)?new jn(p&&q):l}q=e[0];var D=-1,J=b[0];e:for(;++D<f&&L.length<x;){var oe=q[D],de=n?n(oe):oe;if(oe=i||oe!==0?oe:0,!(J?Wr(J,de):a(L,de,i))){for(p=m;--p;){var we=b[p];if(!(we?Wr(we,de):a(e[p],de,i)))continue e}J&&J.push(de),L.push(oe)}}return L}function Mv(e,n,i,a){return Zt(e,function(f,m,p){n(a,i(f),m,p)}),a}function Jr(e,n,i){n=Bn(n,e),e=bf(e,n);var a=e==null?e:e[Jt(Vt(n))];return a==null?l:St(a,e,i)}function Ic(e){return Ue(e)&&ot(e)==_e}function Lv(e){return Ue(e)&&ot(e)==nn}function qv(e){return Ue(e)&&ot(e)==Y}function ei(e,n,i,a,f){return e===n?!0:e==null||n==null||!Ue(e)&&!Ue(n)?e!==e&&n!==n:Vv(e,n,i,a,ei,f)}function Vv(e,n,i,a,f,m){var p=be(e),b=be(n),x=p?U:it(e),L=b?U:it(n);x=x==_e?ft:x,L=L==_e?ft:L;var q=x==ft,D=L==ft,J=x==L;if(J&&In(e)){if(!In(n))return!1;p=!0,q=!1}if(J&&!q)return m||(m=new Gt),p||Br(e)?df(e,n,i,a,f,m):s0(e,n,x,i,a,f,m);if(!(i&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 Gt),f(we,he,i,a,m)}}return J?(m||(m=new Gt),c0(e,n,i,a,f,m)):!1}function Pv(e){return Ue(e)&&it(e)==nt}function Fo(e,n,i,a){var f=i.length,m=f,p=!a;if(e==null)return!m;for(e=Me(e);f--;){var b=i[f];if(p&&b[2]?b[1]!==e[b[0]]:!(b[0]in e))return!1}for(;++f<m;){b=i[f];var x=b[0],L=e[x],q=b[1];if(p&&b[2]){if(L===l&&!(x in e))return!1}else{var D=new Gt;if(a)var J=a(L,q,x,e,n,D);if(!(J===l?ei(q,L,T|z,a,D):J))return!1}}return!0}function Mc(e){if(!$e(e)||b0(e))return!1;var n=dn(e)?Pp:Fi;return n.test(Xn(e))}function Nv(e){return Ue(e)&&ot(e)==Ut}function Dv(e){return Ue(e)&&it(e)==Fe}function $v(e){return Ue(e)&&Ol(e.length)&&!!qe[ot(e)]}function Lc(e){return typeof e=="function"?e:e==null?gt:typeof e=="object"?be(e)?Pc(e[0],e[1]):Vc(e):rd(e)}function Uo(e){if(!ri(e))return zp(e);var n=[];for(var i in Me(e))Re.call(e,i)&&i!="constructor"&&n.push(i);return n}function Fv(e){if(!$e(e))return x0(e);var n=ri(e),i=[];for(var a in e)a=="constructor"&&(n||!Re.call(e,a))||i.push(a);return i}function zo(e,n){return e<n}function qc(e,n){var i=-1,a=ht(e)?I(e.length):[];return On(e,function(f,m,p){a[++i]=n(f,m,p)}),a}function Vc(e){var n=ia(e);return n.length==1&&n[0][2]?vf(n[0][0],n[0][1]):function(i){return i===e||Fo(i,e,n)}}function Pc(e,n){return oa(e)&&pf(n)?vf(Jt(e),n):function(i){var a=pa(i,e);return a===l&&a===n?va(i,e):ei(n,a,T|z)}}function dl(e,n,i,a,f){e!==n&&Po(n,function(m,p){if(f||(f=new Gt),$e(m))Uv(e,n,p,i,dl,a,f);else{var b=a?a(ua(e,p),m,p+"",e,n,f):l;b===l&&(b=m),qo(e,p,b)}},mt)}function Uv(e,n,i,a,f,m,p){var b=ua(e,i),x=ua(n,i),L=p.get(x);if(L){qo(e,i,L);return}var q=m?m(b,x,i+"",e,n,p):l,D=q===l;if(D){var J=be(x),oe=!J&&In(x),de=!J&&!oe&&Br(x);q=x,J||oe||de?be(b)?q=b:ze(b)?q=dt(b):oe?(D=!1,q=Yc(x,!0)):de?(D=!1,q=Qc(x,!0)):q=[]:li(x)||Jn(x)?(q=b,Jn(b)?q=Kf(b):(!$e(b)||dn(b))&&(q=gf(x))):D=!1}D&&(p.set(x,q),f(q,x,a,m,p),p.delete(x)),qo(e,i,q)}function Nc(e,n){var i=e.length;if(i)return n+=n<0?i:0,fn(n,i)?e[n]:l}function Dc(e,n,i){n.length?n=Pe(n,function(m){return be(m)?function(p){return Qn(p,m.length===1?m[0]:m)}:m}):n=[gt];var a=-1;n=Pe(n,xt(ce()));var f=qc(e,function(m,p,b){var x=Pe(n,function(L){return L(m)});return{criteria:x,index:++a,value:m}});return gp(f,function(m,p){return t0(m,p,i)})}function zv(e,n){return $c(e,n,function(i,a){return va(e,a)})}function $c(e,n,i){for(var a=-1,f=n.length,m={};++a<f;){var p=n[a],b=Qn(e,p);i(b,p)&&ti(m,Bn(p,e),b)}return m}function Hv(e){return function(n){return Qn(n,e)}}function Ho(e,n,i,a){var f=a?mp:br,m=-1,p=n.length,b=e;for(e===n&&(n=dt(n)),i&&(b=Pe(e,xt(i)));++m<p;)for(var x=0,L=n[m],q=i?i(L):L;(x=f(b,q,x,a))>-1;)b!==e&&nl.call(b,x,1),nl.call(e,x,1);return e}function Fc(e,n){for(var i=e?n.length:0,a=i-1;i--;){var f=n[i];if(i==a||f!==m){var m=f;fn(f)?nl.call(e,f,1):jo(e,f)}}return e}function Wo(e,n){return e+ll(wc()*(n-e+1))}function Wv(e,n,i,a){for(var f=-1,m=Qe(il((n-e)/(i||1)),0),p=I(m);m--;)p[a?m:++f]=e,e+=i;return p}function Go(e,n){var i="";if(!e||n<1||n>W)return i;do n%2&&(i+=e),n=ll(n/2),n&&(e+=e);while(n);return i}function Se(e,n){return sa(_f(e,n,gt),e+"")}function Gv(e){return Cc(Rr(e))}function Kv(e,n){var i=Rr(e);return Sl(i,Yn(n,0,i.length))}function ti(e,n,i,a){if(!$e(e))return e;n=Bn(n,e);for(var f=-1,m=n.length,p=m-1,b=e;b!=null&&++f<m;){var x=Jt(n[f]),L=i;if(x==="__proto__"||x==="constructor"||x==="prototype")return e;if(f!=p){var q=b[x];L=a?a(q,x,b):l,L===l&&(L=$e(q)?q:fn(n[f+1])?[]:{})}Zr(b,x,L),b=b[x]}return e}var Uc=ol?function(e,n){return ol.set(e,n),e}:gt,jv=rl?function(e,n){return rl(e,"toString",{configurable:!0,enumerable:!1,value:ba(n),writable:!0})}:gt;function Yv(e){return Sl(Rr(e))}function qt(e,n,i){var a=-1,f=e.length;n<0&&(n=-n>f?0:f+n),i=i>f?f:i,i<0&&(i+=f),f=n>i?0:i-n>>>0,n>>>=0;for(var m=I(f);++a<f;)m[a]=e[a+n];return m}function Qv(e,n){var i;return On(e,function(a,f,m){return i=n(a,f,m),!i}),!!i}function hl(e,n,i){var a=0,f=e==null?a:e.length;if(typeof n=="number"&&n===n&&f<=ie){for(;a<f;){var m=a+f>>>1,p=e[m];p!==null&&!kt(p)&&(i?p<=n:p<n)?a=m+1:f=m}return f}return Ko(e,n,gt,i)}function Ko(e,n,i,a){var f=0,m=e==null?0:e.length;if(m===0)return 0;n=i(n);for(var p=n!==n,b=n===null,x=kt(n),L=n===l;f<m;){var q=ll((f+m)/2),D=i(e[q]),J=D!==l,oe=D===null,de=D===D,we=kt(D);if(p)var he=a||de;else L?he=de&&(a||J):b?he=de&&J&&(a||!oe):x?he=de&&J&&!oe&&(a||!we):oe||we?he=!1:he=a?D<=n:D<n;he?f=q+1:m=q}return rt(m,O)}function zc(e,n){for(var i=-1,a=e.length,f=0,m=[];++i<a;){var p=e[i],b=n?n(p):p;if(!i||!Kt(b,x)){var x=b;m[f++]=p===0?0:p}}return m}function Hc(e){return typeof e=="number"?e:kt(e)?ge:+e}function Ct(e){if(typeof e=="string")return e;if(be(e))return Pe(e,Ct)+"";if(kt(e))return Sc?Sc.call(e):"";var n=e+"";return n=="0"&&1/e==-fe?"-0":n}function Tn(e,n,i){var a=-1,f=Gi,m=e.length,p=!0,b=[],x=b;if(i)p=!1,f=So;else if(m>=s){var L=n?null:a0(e);if(L)return ji(L);p=!1,f=Wr,x=new jn}else x=n?[]:b;e:for(;++a<m;){var q=e[a],D=n?n(q):q;if(q=i||q!==0?q:0,p&&D===D){for(var J=x.length;J--;)if(x[J]===D)continue e;n&&x.push(D),b.push(q)}else f(x,D,i)||(x!==b&&x.push(D),b.push(q))}return b}function jo(e,n){return n=Bn(n,e),e=bf(e,n),e==null||delete e[Jt(Vt(n))]}function Wc(e,n,i,a){return ti(e,n,i(Qn(e,n)),a)}function ml(e,n,i,a){for(var f=e.length,m=a?f:-1;(a?m--:++m<f)&&n(e[m],m,e););return i?qt(e,a?0:m,a?m+1:f):qt(e,a?m+1:0,a?f:m)}function Gc(e,n){var i=e;return i instanceof ke&&(i=i.value()),xo(n,function(a,f){return f.func.apply(f.thisArg,kn([a],f.args))},i)}function Yo(e,n,i){var a=e.length;if(a<2)return a?Tn(e[0]):[];for(var f=-1,m=I(a);++f<a;)for(var p=e[f],b=-1;++b<a;)b!=f&&(m[f]=Xr(m[f]||p,e[b],n,i));return Tn(tt(m,1),n,i)}function Kc(e,n,i){for(var a=-1,f=e.length,m=n.length,p={};++a<f;){var b=a<m?n[a]:l;i(p,e[a],b)}return p}function Qo(e){return ze(e)?e:[]}function Zo(e){return typeof e=="function"?e:gt}function Bn(e,n){return be(e)?e:oa(e,n)?[e]:xf(Te(e))}var Zv=Se;function Rn(e,n,i){var a=e.length;return i=i===l?a:i,!n&&i>=a?e:qt(e,n,i)}var jc=Np||function(e){return et.clearTimeout(e)};function Yc(e,n){if(n)return e.slice();var i=e.length,a=pc?pc(i):new e.constructor(i);return e.copy(a),a}function Xo(e){var n=new e.constructor(e.byteLength);return new el(n).set(new el(e)),n}function Xv(e,n){var i=n?Xo(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)}function Jv(e){var n=new e.constructor(e.source,ln.exec(e));return n.lastIndex=e.lastIndex,n}function e0(e){return Qr?Me(Qr.call(e)):{}}function Qc(e,n){var i=n?Xo(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}function Zc(e,n){if(e!==n){var i=e!==l,a=e===null,f=e===e,m=kt(e),p=n!==l,b=n===null,x=n===n,L=kt(n);if(!b&&!L&&!m&&e>n||m&&p&&x&&!b&&!L||a&&p&&x||!i&&x||!f)return 1;if(!a&&!m&&!L&&e<n||L&&i&&f&&!a&&!m||b&&i&&f||!p&&f||!x)return-1}return 0}function t0(e,n,i){for(var a=-1,f=e.criteria,m=n.criteria,p=f.length,b=i.length;++a<p;){var x=Zc(f[a],m[a]);if(x){if(a>=b)return x;var L=i[a];return x*(L=="desc"?-1:1)}}return e.index-n.index}function Xc(e,n,i,a){for(var f=-1,m=e.length,p=i.length,b=-1,x=n.length,L=Qe(m-p,0),q=I(x+L),D=!a;++b<x;)q[b]=n[b];for(;++f<p;)(D||f<m)&&(q[i[f]]=e[f]);for(;L--;)q[b++]=e[f++];return q}function Jc(e,n,i,a){for(var f=-1,m=e.length,p=-1,b=i.length,x=-1,L=n.length,q=Qe(m-b,0),D=I(q+L),J=!a;++f<q;)D[f]=e[f];for(var oe=f;++x<L;)D[oe+x]=n[x];for(;++p<b;)(J||f<m)&&(D[oe+i[p]]=e[f++]);return D}function dt(e,n){var i=-1,a=e.length;for(n||(n=I(a));++i<a;)n[i]=e[i];return n}function Xt(e,n,i,a){var f=!i;i||(i={});for(var m=-1,p=n.length;++m<p;){var b=n[m],x=a?a(i[b],e[b],b,i,e):l;x===l&&(x=e[b]),f?un(i,b,x):Zr(i,b,x)}return i}function n0(e,n){return Xt(e,la(e),n)}function r0(e,n){return Xt(e,hf(e),n)}function gl(e,n){return function(i,a){var f=be(i)?up:kv,m=n?n():{};return f(i,e,ce(a,2),m)}}function Ar(e){return Se(function(n,i){var a=-1,f=i.length,m=f>1?i[f-1]:l,p=f>2?i[2]:l;for(m=e.length>3&&typeof m=="function"?(f--,m):l,p&&at(i[0],i[1],p)&&(m=f<3?l:m,f=1),n=Me(n);++a<f;){var b=i[a];b&&e(n,b,a,m)}return n})}function ef(e,n){return function(i,a){if(i==null)return i;if(!ht(i))return e(i,a);for(var f=i.length,m=n?f:-1,p=Me(i);(n?m--:++m<f)&&a(p[m],m,p)!==!1;);return i}}function tf(e){return function(n,i,a){for(var f=-1,m=Me(n),p=a(n),b=p.length;b--;){var x=p[e?b:++f];if(i(m[x],x,m)===!1)break}return n}}function i0(e,n,i){var a=n&R,f=ni(e);function m(){var p=this&&this!==et&&this instanceof m?f:e;return p.apply(a?i:this,arguments)}return m}function nf(e){return function(n){n=Te(n);var i=yr(n)?Wt(n):l,a=i?i[0]:n.charAt(0),f=i?Rn(i,1).join(""):n.slice(1);return a[e]()+f}}function Or(e){return function(n){return xo(td(ed(n).replace(jg,"")),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 i=Er(e.prototype),a=e.apply(i,n);return $e(a)?a:i}}function l0(e,n,i){var a=ni(e);function f(){for(var m=arguments.length,p=I(m),b=m,x=Tr(f);b--;)p[b]=arguments[b];var L=m<3&&p[0]!==x&&p[m-1]!==x?[]:En(p,x);if(m-=L.length,m<i)return uf(e,n,pl,f.placeholder,l,p,L,l,l,i-m);var q=this&&this!==et&&this instanceof f?a:e;return St(q,this,p)}return f}function rf(e){return function(n,i,a){var f=Me(n);if(!ht(n)){var m=ce(i,3);n=Xe(n),i=function(b){return m(f[b],b,f)}}var p=e(n,i,a);return p>-1?f[m?n[p]:p]:l}}function lf(e){return cn(function(n){var i=n.length,a=i,f=Mt.prototype.thru;for(e&&n.reverse();a--;){var m=n[a];if(typeof m!="function")throw new It(h);if(f&&!p&&yl(m)=="wrapper")var p=new Mt([],!0)}for(a=p?a:i;++a<i;){m=n[a];var b=yl(m),x=b=="wrapper"?ra(m):l;x&&aa(x[0])&&x[1]==(K|N|G|le)&&!x[4].length&&x[9]==1?p=p[yl(x[0])].apply(p,x[3]):p=m.length==1&&aa(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=i?n[D].apply(this,L):q;++D<i;)J=n[D].call(this,J);return J}})}function pl(e,n,i,a,f,m,p,b,x,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,Ee=I(Ce),Et=Ce;Et--;)Ee[Et]=arguments[Et];if(oe)var ut=Tr(he),At=vp(Ee,ut);if(a&&(Ee=Xc(Ee,a,f,oe)),m&&(Ee=Jc(Ee,m,p,oe)),Ce-=At,oe&&Ce<L){var He=En(Ee,ut);return uf(e,n,pl,he.placeholder,i,Ee,He,b,x,L-Ce)}var jt=D?i:this,mn=J?jt[e]:e;return Ce=Ee.length,b?Ee=k0(Ee,b):de&&Ce>1&&Ee.reverse(),q&&x<Ce&&(Ee.length=x),this&&this!==et&&this instanceof he&&(mn=we||ni(mn)),mn.apply(jt,Ee)}return he}function of(e,n){return function(i,a){return Mv(i,e,n(a),{})}}function vl(e,n){return function(i,a){var f;if(i===l&&a===l)return n;if(i!==l&&(f=i),a!==l){if(f===l)return a;typeof i=="string"||typeof a=="string"?(i=Ct(i),a=Ct(a)):(i=Hc(i),a=Hc(a)),f=e(i,a)}return f}}function Jo(e){return cn(function(n){return n=Pe(n,xt(ce())),Se(function(i){var a=this;return e(n,function(f){return St(f,a,i)})})})}function _l(e,n){n=n===l?" ":Ct(n);var i=n.length;if(i<2)return i?Go(n,e):n;var a=Go(n,il(e/wr(n)));return yr(n)?Rn(Wt(a),0,e).join(""):a.slice(0,e)}function o0(e,n,i,a){var f=n&R,m=ni(e);function p(){for(var b=-1,x=arguments.length,L=-1,q=a.length,D=I(q+x),J=this&&this!==et&&this instanceof p?m:e;++L<q;)D[L]=a[L];for(;x--;)D[L++]=arguments[++b];return St(J,f?i:this,D)}return p}function af(e){return function(n,i,a){return a&&typeof a!="number"&&at(n,i,a)&&(i=a=l),n=hn(n),i===l?(i=n,n=0):i=hn(i),a=a===l?n<i?1:-1:hn(a),Wv(n,i,a,e)}}function bl(e){return function(n,i){return typeof n=="string"&&typeof i=="string"||(n=Pt(n),i=Pt(i)),e(n,i)}}function uf(e,n,i,a,f,m,p,b,x,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,f,oe,D,de,J,b,x,L],he=i.apply(l,we);return aa(e)&&yf(he,we),he.placeholder=a,wf(he,e,n)}function ea(e){var n=Ye[e];return function(i,a){if(i=Pt(i),a=a==null?0:rt(ye(a),292),a&&yc(i)){var f=(Te(i)+"e").split("e"),m=n(f[0]+"e"+(+f[1]+a));return f=(Te(m)+"e").split("e"),+(f[0]+"e"+(+f[1]-a))}return n(i)}}var a0=Cr&&1/ji(new Cr([,-0]))[1]==fe?function(e){return new Cr(e)}:Sa;function sf(e){return function(n){var i=it(n);return i==nt?Bo(n):i==Fe?Cp(n):pp(n,e(n))}}function sn(e,n,i,a,f,m,p,b){var x=n&H;if(!x&&typeof e!="function")throw new It(h);var L=a?a.length:0;if(L||(n&=~(G|j),a=f=l),p=p===l?p:Qe(ye(p),0),b=b===l?b:ye(b),L-=f?f.length:0,n&j){var q=a,D=f;a=f=l}var J=x?l:ra(e),oe=[e,n,i,a,f,q,D,m,p,b];if(J&&S0(oe,J),e=oe[0],n=oe[1],i=oe[2],a=oe[3],f=oe[4],b=oe[9]=oe[9]===l?x?0:e.length:Qe(oe[9]-L,0),!b&&n&(N|Q)&&(n&=~(N|Q)),!n||n==R)var de=i0(e,n,i);else n==N||n==Q?de=l0(e,n,b):(n==G||n==(R|G))&&!f.length?de=o0(e,n,i,a):de=pl.apply(l,oe);var we=J?Uc:yf;return wf(we(de,oe),e,n)}function cf(e,n,i,a){return e===l||Kt(e,xr[i])&&!Re.call(a,i)?n:e}function ff(e,n,i,a,f,m){return $e(e)&&$e(n)&&(m.set(n,e),dl(e,n,l,ff,m),m.delete(n)),e}function u0(e){return li(e)?l:e}function df(e,n,i,a,f,m){var p=i&T,b=e.length,x=n.length;if(b!=x&&!(p&&x>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=i&z?new jn: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(!Co(n,function(Ce,Ee){if(!Wr(oe,Ee)&&(de===Ce||f(de,Ce,i,a,m)))return oe.push(Ee)})){J=!1;break}}else if(!(de===we||f(de,we,i,a,m))){J=!1;break}}return m.delete(e),m.delete(n),J}function s0(e,n,i,a,f,m,p){switch(i){case bn: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 el(e),new el(n)));case Ae:case Y:case wt:return Kt(+e,+n);case lt:return e.name==n.name&&e.message==n.message;case Ut:case je:return e==n+"";case nt:var b=Bo;case Fe:var x=a&T;if(b||(b=ji),e.size!=n.size&&!x)return!1;var L=p.get(e);if(L)return L==n;a|=z,p.set(e,n);var q=df(b(e),b(n),a,f,m,p);return p.delete(e),q;case zt:if(Qr)return Qr.call(e)==Qr.call(n)}return!1}function c0(e,n,i,a,f,m){var p=i&T,b=ta(e),x=b.length,L=ta(n),q=L.length;if(x!=q&&!p)return!1;for(var D=x;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<x;){J=b[D];var Ce=e[J],Ee=n[J];if(a)var Et=p?a(Ee,Ce,J,n,e,m):a(Ce,Ee,J,e,n,m);if(!(Et===l?Ce===Ee||f(Ce,Ee,i,a,m):Et)){we=!1;break}he||(he=J=="constructor")}if(we&&!he){var ut=e.constructor,At=n.constructor;ut!=At&&"constructor"in e&&"constructor"in n&&!(typeof ut=="function"&&ut instanceof ut&&typeof At=="function"&&At instanceof At)&&(we=!1)}return m.delete(e),m.delete(n),we}function cn(e){return sa(_f(e,l,Af),e+"")}function ta(e){return Rc(e,Xe,la)}function na(e){return Rc(e,mt,hf)}var ra=ol?function(e){return ol.get(e)}:Sa;function yl(e){for(var n=e.name+"",i=kr[n],a=Re.call(kr,n)?i.length:0;a--;){var f=i[a],m=f.func;if(m==null||m==e)return f.name}return n}function Tr(e){var n=Re.call(d,"placeholder")?d:e;return n.placeholder}function ce(){var e=d.iteratee||ya;return e=e===ya?Lc:e,arguments.length?e(arguments[0],arguments[1]):e}function wl(e,n){var i=e.__data__;return _0(n)?i[typeof n=="string"?"string":"hash"]:i.map}function ia(e){for(var n=Xe(e),i=n.length;i--;){var a=n[i],f=e[a];n[i]=[a,f,pf(f)]}return n}function Zn(e,n){var i=wp(e,n);return Mc(i)?i:l}function f0(e){var n=Re.call(e,Gn),i=e[Gn];try{e[Gn]=l;var a=!0}catch{}var f=Xi.call(e);return a&&(n?e[Gn]=i:delete e[Gn]),f}var la=Io?function(e){return e==null?[]:(e=Me(e),Cn(Io(e),function(n){return _c.call(e,n)}))}:xa,hf=Io?function(e){for(var n=[];e;)kn(n,la(e)),e=tl(e);return n}:xa,it=ot;(Mo&&it(new Mo(new ArrayBuffer(1)))!=bn||Kr&&it(new Kr)!=nt||Lo&&it(Lo.resolve())!=_n||Cr&&it(new Cr)!=Fe||jr&&it(new jr)!=$n)&&(it=function(e){var n=ot(e),i=n==ft?e.constructor:l,a=i?Xn(i):"";if(a)switch(a){case Kp:return bn;case jp:return nt;case Yp:return _n;case Qp:return Fe;case Zp:return $n}return n});function d0(e,n,i){for(var a=-1,f=i.length;++a<f;){var m=i[a],p=m.size;switch(m.type){case"drop":e+=p;break;case"dropRight":n-=p;break;case"take":n=rt(n,e+p);break;case"takeRight":e=Qe(e,n-p);break}}return{start:e,end:n}}function h0(e){var n=e.match(co);return n?n[1].split(fo):[]}function mf(e,n,i){n=Bn(n,e);for(var a=-1,f=n.length,m=!1;++a<f;){var p=Jt(n[a]);if(!(m=e!=null&&i(e,p)))break;e=e[p]}return m||++a!=f?m:(f=e==null?0:e.length,!!f&&Ol(f)&&fn(p,f)&&(be(e)||Jn(e)))}function m0(e){var n=e.length,i=new e.constructor(n);return n&&typeof e[0]=="string"&&Re.call(e,"index")&&(i.index=e.index,i.input=e.input),i}function gf(e){return typeof e.constructor=="function"&&!ri(e)?Er(tl(e)):{}}function g0(e,n,i){var a=e.constructor;switch(n){case nn:return Xo(e);case Ae:case Y:return new a(+e);case bn:return Xv(e,i);case mr:case Ht:case Qt:case yn:case $r:case Fn:case Un:case gr:case pr:return Qc(e,i);case nt:return new a;case wt:case je:return new a(e);case Ut:return Jv(e);case Fe:return new a;case zt:return e0(e)}}function p0(e,n){var i=n.length;if(!i)return e;var a=i-1;return n[a]=(i>1?"& ":"")+n[a],n=n.join(i>2?", ":" "),e.replace(so,`{
9
9
  /* [wrapped with `+n+`] */
10
- `)}function v0(e){return be(e)||Jn(e)||!!(bc&&e&&e[bc])}function fn(e,n){var i=typeof e;return n=n??W,!!n&&(i=="number"||i!="symbol"&&zi.test(e))&&e>-1&&e%1==0&&e<n}function at(e,n,i){if(!$e(i))return!1;var a=typeof n;return(a=="number"?ht(i)&&fn(n,i.length):a=="string"&&n in i)?Kt(i[n],e):!1}function oa(e,n){if(be(e))return!1;var i=typeof e;return i=="number"||i=="symbol"||i=="boolean"||e==null||kt(e)?!0:wn.test(e)||!Hn.test(e)||n!=null&&e in Me(n)}function _0(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}function aa(e){var n=yl(e),i=d[n];if(typeof i!="function"||!(n in ke.prototype))return!1;if(e===i)return!0;var a=ra(i);return!!a&&e===a[0]}function b0(e){return!!gc&&gc in e}var y0=Qi?dn:Ca;function ri(e){var n=e&&e.constructor,i=typeof n=="function"&&n.prototype||xr;return e===i}function pf(e){return e===e&&!$e(e)}function vf(e,n){return function(i){return i==null?!1:i[e]===n&&(n!==l||e in Me(i))}}function w0(e){var n=El(e,function(a){return i.size===k&&i.clear(),a}),i=n.cache;return n}function S0(e,n){var i=e[1],a=n[1],f=i|a,m=f<(R|H|K),p=a==K&&i==N||a==K&&i==le&&e[7].length<=n[8]||a==(K|le)&&n[7].length<=n[8]&&i==N;if(!(m||p))return e;a&R&&(e[2]=n[2],f|=i&R?0:F);var b=n[3];if(b){var x=e[3];e[3]=x?Xc(x,b,n[4]):b,e[4]=x?En(e[3],v):n[4]}return b=n[5],b&&(x=e[5],e[5]=x?Jc(x,b,n[6]):b,e[6]=x?En(e[5],v):n[6]),b=n[7],b&&(e[7]=b),a&K&&(e[8]=e[8]==null?n[8]:rt(e[8],n[8])),e[9]==null&&(e[9]=n[9]),e[0]=n[0],e[1]=f,e}function x0(e){var n=[];if(e!=null)for(var i in Me(e))n.push(i);return n}function C0(e){return Xi.call(e)}function _f(e,n,i){return n=Qe(n===l?e.length-1:n,0),function(){for(var a=arguments,f=-1,m=Qe(a.length-n,0),p=I(m);++f<m;)p[f]=a[n+f];f=-1;for(var b=I(n+1);++f<n;)b[f]=a[f];return b[n]=i(p),St(e,this,b)}}function bf(e,n){return n.length<2?e:Qn(e,qt(n,0,-1))}function k0(e,n){for(var i=e.length,a=rt(n.length,i),f=dt(e);a--;){var m=n[a];e[a]=fn(m,i)?f[m]:l}return e}function ua(e,n){if(!(n==="constructor"&&typeof e[n]=="function")&&n!="__proto__")return e[n]}var yf=Sf(Uc),ii=$p||function(e,n){return et.setTimeout(e,n)},sa=Sf(jv);function wf(e,n,i){var a=n+"";return sa(e,p0(a,E0(h0(a),i)))}function Sf(e){var n=0,i=0;return function(){var a=Hp(),f=te-(a-i);if(i=a,f>0){if(++n>=A)return arguments[0]}else n=0;return e.apply(l,arguments)}}function Sl(e,n){var i=-1,a=e.length,f=a-1;for(n=n===l?a:n;++i<n;){var m=Wo(i,f),p=e[m];e[m]=e[i],e[i]=p}return e.length=n,e}var xf=w0(function(e){var n=[];return e.charCodeAt(0)===46&&n.push(""),e.replace(oo,function(i,a,f,m){n.push(f?m.replace(xn,"$1"):a||i)}),n});function Jt(e){if(typeof e=="string"||kt(e))return e;var n=e+"";return n=="0"&&1/e==-fe?"-0":n}function Xn(e){if(e!=null){try{return Zi.call(e)}catch{}try{return e+""}catch{}}return""}function E0(e,n){return Rt(ve,function(i){var a="_."+i[0];n&i[1]&&!Gi(e,a)&&e.push(a)}),e.sort()}function Cf(e){if(e instanceof ke)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 A0(e,n,i){(i?at(e,n,i):n===l)?n=1:n=Qe(ye(n),0);var a=e==null?0:e.length;if(!a||n<1)return[];for(var f=0,m=0,p=I(il(a/n));f<a;)p[m++]=qt(e,f,f+=n);return p}function O0(e){for(var n=-1,i=e==null?0:e.length,a=0,f=[];++n<i;){var m=e[n];m&&(f[a++]=m)}return f}function T0(){var e=arguments.length;if(!e)return[];for(var n=I(e-1),i=arguments[0],a=e;a--;)n[a-1]=arguments[a];return kn(be(i)?dt(i):[i],tt(n,1))}var B0=Se(function(e,n){return ze(e)?Xr(e,tt(n,1,ze,!0)):[]}),R0=Se(function(e,n){var i=Vt(n);return ze(i)&&(i=l),ze(e)?Xr(e,tt(n,1,ze,!0),ce(i,2)):[]}),I0=Se(function(e,n){var i=Vt(n);return ze(i)&&(i=l),ze(e)?Xr(e,tt(n,1,ze,!0),l,i):[]});function M0(e,n,i){var a=e==null?0:e.length;return a?(n=i||n===l?1:ye(n),qt(e,n<0?0:n,a)):[]}function L0(e,n,i){var a=e==null?0:e.length;return a?(n=i||n===l?1:ye(n),n=a-n,qt(e,0,n<0?0:n)):[]}function q0(e,n){return e&&e.length?ml(e,ce(n,3),!0,!0):[]}function V0(e,n){return e&&e.length?ml(e,ce(n,3),!0):[]}function P0(e,n,i,a){var f=e==null?0:e.length;return f?(i&&typeof i!="number"&&at(e,n,i)&&(i=0,a=f),Tv(e,n,i,a)):[]}function kf(e,n,i){var a=e==null?0:e.length;if(!a)return-1;var f=i==null?0:ye(i);return f<0&&(f=Qe(a+f,0)),Ki(e,ce(n,3),f)}function Ef(e,n,i){var a=e==null?0:e.length;if(!a)return-1;var f=a-1;return i!==l&&(f=ye(i),f=i<0?Qe(a+f,0):rt(f,a-1)),Ki(e,ce(n,3),f,!0)}function Af(e){var n=e==null?0:e.length;return n?tt(e,1):[]}function N0(e){var n=e==null?0:e.length;return n?tt(e,fe):[]}function D0(e,n){var i=e==null?0:e.length;return i?(n=n===l?1:ye(n),tt(e,n)):[]}function $0(e){for(var n=-1,i=e==null?0:e.length,a={};++n<i;){var f=e[n];a[f[0]]=f[1]}return a}function Of(e){return e&&e.length?e[0]:l}function F0(e,n,i){var a=e==null?0:e.length;if(!a)return-1;var f=i==null?0:ye(i);return f<0&&(f=Qe(a+f,0)),br(e,n,f)}function U0(e){var n=e==null?0:e.length;return n?qt(e,0,-1):[]}var z0=Se(function(e){var n=Pe(e,Qo);return n.length&&n[0]===e[0]?$o(n):[]}),H0=Se(function(e){var n=Vt(e),i=Pe(e,Qo);return n===Vt(i)?n=l:i.pop(),i.length&&i[0]===e[0]?$o(i,ce(n,2)):[]}),W0=Se(function(e){var n=Vt(e),i=Pe(e,Qo);return n=typeof n=="function"?n:l,n&&i.pop(),i.length&&i[0]===e[0]?$o(i,l,n):[]});function G0(e,n){return e==null?"":Up.call(e,n)}function Vt(e){var n=e==null?0:e.length;return n?e[n-1]:l}function K0(e,n,i){var a=e==null?0:e.length;if(!a)return-1;var f=a;return i!==l&&(f=ye(i),f=f<0?Qe(a+f,0):rt(f,a-1)),n===n?Ep(e,n,f):Ki(e,ac,f,!0)}function j0(e,n){return e&&e.length?Nc(e,ye(n)):l}var Y0=Se(Tf);function Tf(e,n){return e&&e.length&&n&&n.length?Ho(e,n):e}function Q0(e,n,i){return e&&e.length&&n&&n.length?Ho(e,n,ce(i,2)):e}function Z0(e,n,i){return e&&e.length&&n&&n.length?Ho(e,n,l,i):e}var X0=cn(function(e,n){var i=e==null?0:e.length,a=Vo(e,n);return Fc(e,Pe(n,function(f){return fn(f,i)?+f:f}).sort(Zc)),a});function J0(e,n){var i=[];if(!(e&&e.length))return i;var a=-1,f=[],m=e.length;for(n=ce(n,3);++a<m;){var p=e[a];n(p,a,e)&&(i.push(p),f.push(a))}return Fc(e,f),i}function ca(e){return e==null?e:Gp.call(e)}function e_(e,n,i){var a=e==null?0:e.length;return a?(i&&typeof i!="number"&&at(e,n,i)?(n=0,i=a):(n=n==null?0:ye(n),i=i===l?a:ye(i)),qt(e,n,i)):[]}function t_(e,n){return hl(e,n)}function n_(e,n,i){return Ko(e,n,ce(i,2))}function r_(e,n){var i=e==null?0:e.length;if(i){var a=hl(e,n);if(a<i&&Kt(e[a],n))return a}return-1}function i_(e,n){return hl(e,n,!0)}function l_(e,n,i){return Ko(e,n,ce(i,2),!0)}function o_(e,n){var i=e==null?0:e.length;if(i){var a=hl(e,n,!0)-1;if(Kt(e[a],n))return a}return-1}function a_(e){return e&&e.length?zc(e):[]}function u_(e,n){return e&&e.length?zc(e,ce(n,2)):[]}function s_(e){var n=e==null?0:e.length;return n?qt(e,1,n):[]}function c_(e,n,i){return e&&e.length?(n=i||n===l?1:ye(n),qt(e,0,n<0?0:n)):[]}function f_(e,n,i){var a=e==null?0:e.length;return a?(n=i||n===l?1:ye(n),n=a-n,qt(e,n<0?0:n,a)):[]}function d_(e,n){return e&&e.length?ml(e,ce(n,3),!1,!0):[]}function h_(e,n){return e&&e.length?ml(e,ce(n,3)):[]}var m_=Se(function(e){return Tn(tt(e,1,ze,!0))}),g_=Se(function(e){var n=Vt(e);return ze(n)&&(n=l),Tn(tt(e,1,ze,!0),ce(n,2))}),p_=Se(function(e){var n=Vt(e);return n=typeof n=="function"?n:l,Tn(tt(e,1,ze,!0),l,n)});function v_(e){return e&&e.length?Tn(e):[]}function __(e,n){return e&&e.length?Tn(e,ce(n,2)):[]}function b_(e,n){return n=typeof n=="function"?n:l,e&&e.length?Tn(e,l,n):[]}function fa(e){if(!(e&&e.length))return[];var n=0;return e=Cn(e,function(i){if(ze(i))return n=Qe(i.length,n),!0}),Oo(n,function(i){return Pe(e,ko(i))})}function Bf(e,n){if(!(e&&e.length))return[];var i=fa(e);return n==null?i:Pe(i,function(a){return St(n,l,a)})}var y_=Se(function(e,n){return ze(e)?Xr(e,n):[]}),w_=Se(function(e){return Yo(Cn(e,ze))}),S_=Se(function(e){var n=Vt(e);return ze(n)&&(n=l),Yo(Cn(e,ze),ce(n,2))}),x_=Se(function(e){var n=Vt(e);return n=typeof n=="function"?n:l,Yo(Cn(e,ze),l,n)}),C_=Se(fa);function k_(e,n){return Kc(e||[],n||[],Zr)}function E_(e,n){return Kc(e||[],n||[],ti)}var A_=Se(function(e){var n=e.length,i=n>1?e[n-1]:l;return i=typeof i=="function"?(e.pop(),i):l,Bf(e,i)});function Rf(e){var n=d(e);return n.__chain__=!0,n}function O_(e,n){return n(e),e}function xl(e,n){return n(e)}var T_=cn(function(e){var n=e.length,i=n?e[0]:0,a=this.__wrapped__,f=function(m){return Vo(m,e)};return n>1||this.__actions__.length||!(a instanceof ke)||!fn(i)?this.thru(f):(a=a.slice(i,+i+(n?1:0)),a.__actions__.push({func:xl,args:[f],thisArg:l}),new Mt(a,this.__chain__).thru(function(m){return n&&!m.length&&m.push(l),m}))});function B_(){return Rf(this)}function R_(){return new Mt(this.value(),this.__chain__)}function I_(){this.__values__===l&&(this.__values__=Wf(this.value()));var e=this.__index__>=this.__values__.length,n=e?l:this.__values__[this.__index__++];return{done:e,value:n}}function M_(){return this}function L_(e){for(var n,i=this;i instanceof ul;){var a=Cf(i);a.__index__=0,a.__values__=l,n?f.__wrapped__=a:n=a;var f=a;i=i.__wrapped__}return f.__wrapped__=e,n}function q_(){var e=this.__wrapped__;if(e instanceof ke){var n=e;return this.__actions__.length&&(n=new ke(this)),n=n.reverse(),n.__actions__.push({func:xl,args:[ca],thisArg:l}),new Mt(n,this.__chain__)}return this.thru(ca)}function V_(){return Gc(this.__wrapped__,this.__actions__)}var P_=gl(function(e,n,i){Re.call(e,i)?++e[i]:un(e,i,1)});function N_(e,n,i){var a=be(e)?lc:Ov;return i&&at(e,n,i)&&(n=l),a(e,ce(n,3))}function D_(e,n){var i=be(e)?Cn:Tc;return i(e,ce(n,3))}var $_=rf(kf),F_=rf(Ef);function U_(e,n){return tt(Cl(e,n),1)}function z_(e,n){return tt(Cl(e,n),fe)}function H_(e,n,i){return i=i===l?1:ye(i),tt(Cl(e,n),i)}function If(e,n){var i=be(e)?Rt:On;return i(e,ce(n,3))}function Mf(e,n){var i=be(e)?sp:Oc;return i(e,ce(n,3))}var W_=gl(function(e,n,i){Re.call(e,i)?e[i].push(n):un(e,i,[n])});function G_(e,n,i,a){e=ht(e)?e:Rr(e),i=i&&!a?ye(i):0;var f=e.length;return i<0&&(i=Qe(f+i,0)),Tl(e)?i<=f&&e.indexOf(n,i)>-1:!!f&&br(e,n,i)>-1}var K_=Se(function(e,n,i){var a=-1,f=typeof n=="function",m=ht(e)?I(e.length):[];return On(e,function(p){m[++a]=f?St(n,p,i):Jr(p,n,i)}),m}),j_=gl(function(e,n,i){un(e,i,n)});function Cl(e,n){var i=be(e)?Pe:qc;return i(e,ce(n,3))}function Y_(e,n,i,a){return e==null?[]:(be(n)||(n=n==null?[]:[n]),i=a?l:i,be(i)||(i=i==null?[]:[i]),Dc(e,n,i))}var Q_=gl(function(e,n,i){e[i?0:1].push(n)},function(){return[[],[]]});function Z_(e,n,i){var a=be(e)?xo:sc,f=arguments.length<3;return a(e,ce(n,4),i,f,On)}function X_(e,n,i){var a=be(e)?cp:sc,f=arguments.length<3;return a(e,ce(n,4),i,f,Oc)}function J_(e,n){var i=be(e)?Cn:Tc;return i(e,Al(ce(n,3)))}function eb(e){var n=be(e)?Cc:Gv;return n(e)}function tb(e,n,i){(i?at(e,n,i):n===l)?n=1:n=ye(n);var a=be(e)?xv:Kv;return a(e,n)}function nb(e){var n=be(e)?Cv:Yv;return n(e)}function rb(e){if(e==null)return 0;if(ht(e))return Tl(e)?wr(e):e.length;var n=it(e);return n==nt||n==Fe?e.size:Uo(e).length}function ib(e,n,i){var a=be(e)?Co:Qv;return i&&at(e,n,i)&&(n=l),a(e,ce(n,3))}var lb=Se(function(e,n){if(e==null)return[];var i=n.length;return i>1&&at(e,n[0],n[1])?n=[]:i>2&&at(n[0],n[1],n[2])&&(n=[n[0]]),Dc(e,tt(n,1),[])}),kl=Dp||function(){return et.Date.now()};function ob(e,n){if(typeof n!="function")throw new It(h);return e=ye(e),function(){if(--e<1)return n.apply(this,arguments)}}function Lf(e,n,i){return n=i?l:n,n=e&&n==null?e.length:n,sn(e,K,l,l,l,l,n)}function qf(e,n){var i;if(typeof n!="function")throw new It(h);return e=ye(e),function(){return--e>0&&(i=n.apply(this,arguments)),e<=1&&(n=l),i}}var da=Se(function(e,n,i){var a=R;if(i.length){var f=En(i,Tr(da));a|=G}return sn(e,a,n,i,f)}),Vf=Se(function(e,n,i){var a=R|H;if(i.length){var f=En(i,Tr(Vf));a|=G}return sn(n,a,e,i,f)});function Pf(e,n,i){n=i?l:n;var a=sn(e,N,l,l,l,l,l,n);return a.placeholder=Pf.placeholder,a}function Nf(e,n,i){n=i?l:n;var a=sn(e,Q,l,l,l,l,l,n);return a.placeholder=Nf.placeholder,a}function Df(e,n,i){var a,f,m,p,b,x,L=0,q=!1,D=!1,J=!0;if(typeof e!="function")throw new It(h);n=Pt(n)||0,$e(i)&&(q=!!i.leading,D="maxWait"in i,m=D?Qe(Pt(i.maxWait)||0,n):m,J="trailing"in i?!!i.trailing:J);function oe(He){var jt=a,mn=f;return a=f=l,L=He,p=e.apply(mn,jt),p}function de(He){return L=He,b=ii(Ce,n),q?oe(He):p}function we(He){var jt=He-x,mn=He-L,id=n-jt;return D?rt(id,m-mn):id}function he(He){var jt=He-x,mn=He-L;return x===l||jt>=n||jt<0||D&&mn>=m}function Ce(){var He=kl();if(he(He))return Ee(He);b=ii(Ce,we(He))}function Ee(He){return b=l,J&&a?oe(He):(a=f=l,p)}function Et(){b!==l&&jc(b),L=0,a=x=f=b=l}function ut(){return b===l?p:Ee(kl())}function At(){var He=kl(),jt=he(He);if(a=arguments,f=this,x=He,jt){if(b===l)return de(x);if(D)return jc(b),b=ii(Ce,n),oe(x)}return b===l&&(b=ii(Ce,n)),p}return At.cancel=Et,At.flush=ut,At}var ab=Se(function(e,n){return Ac(e,1,n)}),ub=Se(function(e,n,i){return Ac(e,Pt(n)||0,i)});function sb(e){return sn(e,V)}function El(e,n){if(typeof e!="function"||n!=null&&typeof n!="function")throw new It(h);var i=function(){var a=arguments,f=n?n.apply(this,a):a[0],m=i.cache;if(m.has(f))return m.get(f);var p=e.apply(this,a);return i.cache=m.set(f,p)||m,p};return i.cache=new(El.Cache||an),i}El.Cache=an;function Al(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 cb(e){return qf(2,e)}var fb=Zv(function(e,n){n=n.length==1&&be(n[0])?Pe(n[0],xt(ce())):Pe(tt(n,1),xt(ce()));var i=n.length;return Se(function(a){for(var f=-1,m=rt(a.length,i);++f<m;)a[f]=n[f].call(this,a[f]);return St(e,this,a)})}),ha=Se(function(e,n){var i=En(n,Tr(ha));return sn(e,G,l,n,i)}),$f=Se(function(e,n){var i=En(n,Tr($f));return sn(e,j,l,n,i)}),db=cn(function(e,n){return sn(e,le,l,l,l,n)});function hb(e,n){if(typeof e!="function")throw new It(h);return n=n===l?n:ye(n),Se(e,n)}function mb(e,n){if(typeof e!="function")throw new It(h);return n=n==null?0:Qe(ye(n),0),Se(function(i){var a=i[n],f=Rn(i,0,n);return a&&kn(f,a),St(e,this,f)})}function gb(e,n,i){var a=!0,f=!0;if(typeof e!="function")throw new It(h);return $e(i)&&(a="leading"in i?!!i.leading:a,f="trailing"in i?!!i.trailing:f),Df(e,n,{leading:a,maxWait:n,trailing:f})}function pb(e){return Lf(e,1)}function vb(e,n){return ha(Zo(n),e)}function _b(){if(!arguments.length)return[];var e=arguments[0];return be(e)?e:[e]}function bb(e){return Lt(e,y)}function yb(e,n){return n=typeof n=="function"?n:l,Lt(e,y,n)}function wb(e){return Lt(e,C|y)}function Sb(e,n){return n=typeof n=="function"?n:l,Lt(e,C|y,n)}function xb(e,n){return n==null||Ec(e,n,Xe(n))}function Kt(e,n){return e===n||e!==e&&n!==n}var Cb=bl(Do),kb=bl(function(e,n){return e>=n}),Jn=Ic(function(){return arguments}())?Ic:function(e){return Ue(e)&&Re.call(e,"callee")&&!_c.call(e,"callee")},be=I.isArray,Eb=Js?xt(Js):Lv;function ht(e){return e!=null&&Ol(e.length)&&!dn(e)}function ze(e){return Ue(e)&&ht(e)}function Ab(e){return e===!0||e===!1||Ue(e)&&ot(e)==Ae}var In=Fp||Ca,Ob=ec?xt(ec):qv;function Tb(e){return Ue(e)&&e.nodeType===1&&!li(e)}function Bb(e){if(e==null)return!0;if(ht(e)&&(be(e)||typeof e=="string"||typeof e.splice=="function"||In(e)||Br(e)||Jn(e)))return!e.length;var n=it(e);if(n==nt||n==Fe)return!e.size;if(ri(e))return!Uo(e).length;for(var i in e)if(Re.call(e,i))return!1;return!0}function Rb(e,n){return ei(e,n)}function Ib(e,n,i){i=typeof i=="function"?i:l;var a=i?i(e,n):l;return a===l?ei(e,n,l,i):!!a}function ma(e){if(!Ue(e))return!1;var n=ot(e);return n==lt||n==De||typeof e.message=="string"&&typeof e.name=="string"&&!li(e)}function Mb(e){return typeof e=="number"&&yc(e)}function dn(e){if(!$e(e))return!1;var n=ot(e);return n==Ft||n==yt||n==ne||n==Dr}function Ff(e){return typeof e=="number"&&e==ye(e)}function Ol(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 Uf=tc?xt(tc):Pv;function Lb(e,n){return e===n||Fo(e,n,ia(n))}function qb(e,n,i){return i=typeof i=="function"?i:l,Fo(e,n,ia(n),i)}function Vb(e){return zf(e)&&e!=+e}function Pb(e){if(y0(e))throw new pe(c);return Mc(e)}function Nb(e){return e===null}function Db(e){return e==null}function zf(e){return typeof e=="number"||Ue(e)&&ot(e)==wt}function li(e){if(!Ue(e)||ot(e)!=ft)return!1;var n=tl(e);if(n===null)return!0;var i=Re.call(n,"constructor")&&n.constructor;return typeof i=="function"&&i instanceof i&&Zi.call(i)==qp}var ga=nc?xt(nc):Nv;function $b(e){return Ff(e)&&e>=-W&&e<=W}var Hf=rc?xt(rc):Dv;function Tl(e){return typeof e=="string"||!be(e)&&Ue(e)&&ot(e)==je}function kt(e){return typeof e=="symbol"||Ue(e)&&ot(e)==zt}var Br=ic?xt(ic):$v;function Fb(e){return e===l}function Ub(e){return Ue(e)&&it(e)==$n}function zb(e){return Ue(e)&&ot(e)==Li}var Hb=bl(zo),Wb=bl(function(e,n){return e<=n});function Wf(e){if(!e)return[];if(ht(e))return Tl(e)?Wt(e):dt(e);if(Gr&&e[Gr])return xp(e[Gr]());var n=it(e),i=n==nt?Bo:n==Fe?ji:Rr;return i(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),i=n%1;return n===n?i?n-i:n:0}function Gf(e){return e?Yn(ye(e),0,B):0}function Pt(e){if(typeof e=="number")return e;if(kt(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=cc(e);var i=mo.test(e);return i||Ui.test(e)?op(e.slice(2),i?2:8):Hr.test(e)?ge:+e}function Kf(e){return Xt(e,mt(e))}function Gb(e){return e?Yn(ye(e),-W,W):e===0?e:0}function Te(e){return e==null?"":Ct(e)}var Kb=Ar(function(e,n){if(ri(n)||ht(n)){Xt(n,Xe(n),e);return}for(var i in n)Re.call(n,i)&&Zr(e,i,n[i])}),jf=Ar(function(e,n){Xt(n,mt(n),e)}),Bl=Ar(function(e,n,i,a){Xt(n,mt(n),e,a)}),jb=Ar(function(e,n,i,a){Xt(n,Xe(n),e,a)}),Yb=cn(Vo);function Qb(e,n){var i=Er(e);return n==null?i:kc(i,n)}var Zb=Se(function(e,n){e=Me(e);var i=-1,a=n.length,f=a>2?n[2]:l;for(f&&at(n[0],n[1],f)&&(a=1);++i<a;)for(var m=n[i],p=mt(m),b=-1,x=p.length;++b<x;){var L=p[b],q=e[L];(q===l||Kt(q,xr[L])&&!Re.call(e,L))&&(e[L]=m[L])}return e}),Xb=Se(function(e){return e.push(l,ff),St(Yf,l,e)});function Jb(e,n){return oc(e,ce(n,3),Zt)}function ey(e,n){return oc(e,ce(n,3),No)}function ty(e,n){return e==null?e:Po(e,ce(n,3),mt)}function ny(e,n){return e==null?e:Bc(e,ce(n,3),mt)}function ry(e,n){return e&&Zt(e,ce(n,3))}function iy(e,n){return e&&No(e,ce(n,3))}function ly(e){return e==null?[]:fl(e,Xe(e))}function oy(e){return e==null?[]:fl(e,mt(e))}function pa(e,n,i){var a=e==null?l:Qn(e,n);return a===l?i:a}function ay(e,n){return e!=null&&mf(e,n,Bv)}function va(e,n){return e!=null&&mf(e,n,Rv)}var uy=of(function(e,n,i){n!=null&&typeof n.toString!="function"&&(n=Xi.call(n)),e[n]=i},ba(gt)),sy=of(function(e,n,i){n!=null&&typeof n.toString!="function"&&(n=Xi.call(n)),Re.call(e,n)?e[n].push(i):e[n]=[i]},ce),cy=Se(Jr);function Xe(e){return ht(e)?xc(e):Uo(e)}function mt(e){return ht(e)?xc(e,!0):Fv(e)}function fy(e,n){var i={};return n=ce(n,3),Zt(e,function(a,f,m){un(i,n(a,f,m),a)}),i}function dy(e,n){var i={};return n=ce(n,3),Zt(e,function(a,f,m){un(i,f,n(a,f,m))}),i}var hy=Ar(function(e,n,i){dl(e,n,i)}),Yf=Ar(function(e,n,i,a){dl(e,n,i,a)}),my=cn(function(e,n){var i={};if(e==null)return i;var a=!1;n=Pe(n,function(m){return m=Bn(m,e),a||(a=m.length>1),m}),Xt(e,na(e),i),a&&(i=Lt(i,C|E|y,u0));for(var f=n.length;f--;)jo(i,n[f]);return i});function gy(e,n){return Qf(e,Al(ce(n)))}var py=cn(function(e,n){return e==null?{}:zv(e,n)});function Qf(e,n){if(e==null)return{};var i=Pe(na(e),function(a){return[a]});return n=ce(n),$c(e,i,function(a,f){return n(a,f[0])})}function vy(e,n,i){n=Bn(n,e);var a=-1,f=n.length;for(f||(f=1,e=l);++a<f;){var m=e==null?l:e[Jt(n[a])];m===l&&(a=f,m=i),e=dn(m)?m.call(e):m}return e}function _y(e,n,i){return e==null?e:ti(e,n,i)}function by(e,n,i,a){return a=typeof a=="function"?a:l,e==null?e:ti(e,n,i,a)}var Zf=sf(Xe),Xf=sf(mt);function yy(e,n,i){var a=be(e),f=a||In(e)||Br(e);if(n=ce(n,4),i==null){var m=e&&e.constructor;f?i=a?new m:[]:$e(e)?i=dn(m)?Er(tl(e)):{}:i={}}return(f?Rt:Zt)(e,function(p,b,x){return n(i,p,b,x)}),i}function wy(e,n){return e==null?!0:jo(e,n)}function Sy(e,n,i){return e==null?e:Wc(e,n,Zo(i))}function xy(e,n,i,a){return a=typeof a=="function"?a:l,e==null?e:Wc(e,n,Zo(i),a)}function Rr(e){return e==null?[]:To(e,Xe(e))}function Cy(e){return e==null?[]:To(e,mt(e))}function ky(e,n,i){return i===l&&(i=n,n=l),i!==l&&(i=Pt(i),i=i===i?i:0),n!==l&&(n=Pt(n),n=n===n?n:0),Yn(Pt(e),n,i)}function Ey(e,n,i){return n=hn(n),i===l?(i=n,n=0):i=hn(i),e=Pt(e),Iv(e,n,i)}function Ay(e,n,i){if(i&&typeof i!="boolean"&&at(e,n,i)&&(n=i=l),i===l&&(typeof n=="boolean"?(i=n,n=l):typeof e=="boolean"&&(i=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(i||e%1||n%1){var f=wc();return rt(e+f*(n-e+lp("1e-"+((f+"").length-1))),n)}return Wo(e,n)}var Oy=Or(function(e,n,i){return n=n.toLowerCase(),e+(i?Jf(n):n)});function Jf(e){return _a(Te(e).toLowerCase())}function ed(e){return e=Te(e),e&&e.replace(Hi,_p).replace(Yg,"")}function Ty(e,n,i){e=Te(e),n=Ct(n);var a=e.length;i=i===l?a:Yn(ye(i),0,a);var f=i;return i-=n.length,i>=0&&e.slice(i,f)==n}function By(e){return e=Te(e),e&&Di.test(e)?e.replace(Ni,bp):e}function Ry(e){return e=Te(e),e&&ao.test(e)?e.replace(Ur,"\\$&"):e}var Iy=Or(function(e,n,i){return e+(i?"-":"")+n.toLowerCase()}),My=Or(function(e,n,i){return e+(i?" ":"")+n.toLowerCase()}),Ly=nf("toLowerCase");function qy(e,n,i){e=Te(e),n=ye(n);var a=n?wr(e):0;if(!n||a>=n)return e;var f=(n-a)/2;return _l(ll(f),i)+e+_l(il(f),i)}function Vy(e,n,i){e=Te(e),n=ye(n);var a=n?wr(e):0;return n&&a<n?e+_l(n-a,i):e}function Py(e,n,i){e=Te(e),n=ye(n);var a=n?wr(e):0;return n&&a<n?_l(n-a,i)+e:e}function Ny(e,n,i){return i||n==null?n=0:n&&(n=+n),Wp(Te(e).replace(zr,""),n||0)}function Dy(e,n,i){return(i?at(e,n,i):n===l)?n=1:n=ye(n),Go(Te(e),n)}function $y(){var e=arguments,n=Te(e[0]);return e.length<3?n:n.replace(e[1],e[2])}var Fy=Or(function(e,n,i){return e+(i?"_":"")+n.toLowerCase()});function Uy(e,n,i){return i&&typeof i!="number"&&at(e,n,i)&&(n=i=l),i=i===l?B:i>>>0,i?(e=Te(e),e&&(typeof n=="string"||n!=null&&!ga(n))&&(n=Ct(n),!n&&yr(e))?Rn(Wt(e),0,i):e.split(n,i)):[]}var zy=Or(function(e,n,i){return e+(i?" ":"")+_a(n)});function Hy(e,n,i){return e=Te(e),i=i==null?0:Yn(ye(i),0,e.length),n=Ct(n),e.slice(i,i+n.length)==n}function Wy(e,n,i){var a=d.templateSettings;i&&at(e,n,i)&&(n=l),e=Te(e),n=Bl({},n,a,cf);var f=Bl({},n.imports,a.imports,cf),m=Xe(f),p=To(f,m),b,x,L=0,q=n.interpolate||_,D="__p += '",J=Ro((n.escape||_).source+"|"+q.source+"|"+(q===zn?rn:_).source+"|"+(n.evaluate||_).source+"|$","g"),oe="//# sourceURL="+(Re.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ep+"]")+`
10
+ `)}function v0(e){return be(e)||Jn(e)||!!(bc&&e&&e[bc])}function fn(e,n){var i=typeof e;return n=n??W,!!n&&(i=="number"||i!="symbol"&&zi.test(e))&&e>-1&&e%1==0&&e<n}function at(e,n,i){if(!$e(i))return!1;var a=typeof n;return(a=="number"?ht(i)&&fn(n,i.length):a=="string"&&n in i)?Kt(i[n],e):!1}function oa(e,n){if(be(e))return!1;var i=typeof e;return i=="number"||i=="symbol"||i=="boolean"||e==null||kt(e)?!0:wn.test(e)||!Hn.test(e)||n!=null&&e in Me(n)}function _0(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}function aa(e){var n=yl(e),i=d[n];if(typeof i!="function"||!(n in ke.prototype))return!1;if(e===i)return!0;var a=ra(i);return!!a&&e===a[0]}function b0(e){return!!gc&&gc in e}var y0=Qi?dn:Ca;function ri(e){var n=e&&e.constructor,i=typeof n=="function"&&n.prototype||xr;return e===i}function pf(e){return e===e&&!$e(e)}function vf(e,n){return function(i){return i==null?!1:i[e]===n&&(n!==l||e in Me(i))}}function w0(e){var n=El(e,function(a){return i.size===C&&i.clear(),a}),i=n.cache;return n}function S0(e,n){var i=e[1],a=n[1],f=i|a,m=f<(R|H|K),p=a==K&&i==N||a==K&&i==le&&e[7].length<=n[8]||a==(K|le)&&n[7].length<=n[8]&&i==N;if(!(m||p))return e;a&R&&(e[2]=n[2],f|=i&R?0:F);var b=n[3];if(b){var x=e[3];e[3]=x?Xc(x,b,n[4]):b,e[4]=x?En(e[3],v):n[4]}return b=n[5],b&&(x=e[5],e[5]=x?Jc(x,b,n[6]):b,e[6]=x?En(e[5],v):n[6]),b=n[7],b&&(e[7]=b),a&K&&(e[8]=e[8]==null?n[8]:rt(e[8],n[8])),e[9]==null&&(e[9]=n[9]),e[0]=n[0],e[1]=f,e}function x0(e){var n=[];if(e!=null)for(var i in Me(e))n.push(i);return n}function C0(e){return Xi.call(e)}function _f(e,n,i){return n=Qe(n===l?e.length-1:n,0),function(){for(var a=arguments,f=-1,m=Qe(a.length-n,0),p=I(m);++f<m;)p[f]=a[n+f];f=-1;for(var b=I(n+1);++f<n;)b[f]=a[f];return b[n]=i(p),St(e,this,b)}}function bf(e,n){return n.length<2?e:Qn(e,qt(n,0,-1))}function k0(e,n){for(var i=e.length,a=rt(n.length,i),f=dt(e);a--;){var m=n[a];e[a]=fn(m,i)?f[m]:l}return e}function ua(e,n){if(!(n==="constructor"&&typeof e[n]=="function")&&n!="__proto__")return e[n]}var yf=Sf(Uc),ii=$p||function(e,n){return et.setTimeout(e,n)},sa=Sf(jv);function wf(e,n,i){var a=n+"";return sa(e,p0(a,E0(h0(a),i)))}function Sf(e){var n=0,i=0;return function(){var a=Hp(),f=te-(a-i);if(i=a,f>0){if(++n>=A)return arguments[0]}else n=0;return e.apply(l,arguments)}}function Sl(e,n){var i=-1,a=e.length,f=a-1;for(n=n===l?a:n;++i<n;){var m=Wo(i,f),p=e[m];e[m]=e[i],e[i]=p}return e.length=n,e}var xf=w0(function(e){var n=[];return e.charCodeAt(0)===46&&n.push(""),e.replace(oo,function(i,a,f,m){n.push(f?m.replace(xn,"$1"):a||i)}),n});function Jt(e){if(typeof e=="string"||kt(e))return e;var n=e+"";return n=="0"&&1/e==-fe?"-0":n}function Xn(e){if(e!=null){try{return Zi.call(e)}catch{}try{return e+""}catch{}}return""}function E0(e,n){return Rt(ve,function(i){var a="_."+i[0];n&i[1]&&!Gi(e,a)&&e.push(a)}),e.sort()}function Cf(e){if(e instanceof ke)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 A0(e,n,i){(i?at(e,n,i):n===l)?n=1:n=Qe(ye(n),0);var a=e==null?0:e.length;if(!a||n<1)return[];for(var f=0,m=0,p=I(il(a/n));f<a;)p[m++]=qt(e,f,f+=n);return p}function O0(e){for(var n=-1,i=e==null?0:e.length,a=0,f=[];++n<i;){var m=e[n];m&&(f[a++]=m)}return f}function T0(){var e=arguments.length;if(!e)return[];for(var n=I(e-1),i=arguments[0],a=e;a--;)n[a-1]=arguments[a];return kn(be(i)?dt(i):[i],tt(n,1))}var B0=Se(function(e,n){return ze(e)?Xr(e,tt(n,1,ze,!0)):[]}),R0=Se(function(e,n){var i=Vt(n);return ze(i)&&(i=l),ze(e)?Xr(e,tt(n,1,ze,!0),ce(i,2)):[]}),I0=Se(function(e,n){var i=Vt(n);return ze(i)&&(i=l),ze(e)?Xr(e,tt(n,1,ze,!0),l,i):[]});function M0(e,n,i){var a=e==null?0:e.length;return a?(n=i||n===l?1:ye(n),qt(e,n<0?0:n,a)):[]}function L0(e,n,i){var a=e==null?0:e.length;return a?(n=i||n===l?1:ye(n),n=a-n,qt(e,0,n<0?0:n)):[]}function q0(e,n){return e&&e.length?ml(e,ce(n,3),!0,!0):[]}function V0(e,n){return e&&e.length?ml(e,ce(n,3),!0):[]}function P0(e,n,i,a){var f=e==null?0:e.length;return f?(i&&typeof i!="number"&&at(e,n,i)&&(i=0,a=f),Tv(e,n,i,a)):[]}function kf(e,n,i){var a=e==null?0:e.length;if(!a)return-1;var f=i==null?0:ye(i);return f<0&&(f=Qe(a+f,0)),Ki(e,ce(n,3),f)}function Ef(e,n,i){var a=e==null?0:e.length;if(!a)return-1;var f=a-1;return i!==l&&(f=ye(i),f=i<0?Qe(a+f,0):rt(f,a-1)),Ki(e,ce(n,3),f,!0)}function Af(e){var n=e==null?0:e.length;return n?tt(e,1):[]}function N0(e){var n=e==null?0:e.length;return n?tt(e,fe):[]}function D0(e,n){var i=e==null?0:e.length;return i?(n=n===l?1:ye(n),tt(e,n)):[]}function $0(e){for(var n=-1,i=e==null?0:e.length,a={};++n<i;){var f=e[n];a[f[0]]=f[1]}return a}function Of(e){return e&&e.length?e[0]:l}function F0(e,n,i){var a=e==null?0:e.length;if(!a)return-1;var f=i==null?0:ye(i);return f<0&&(f=Qe(a+f,0)),br(e,n,f)}function U0(e){var n=e==null?0:e.length;return n?qt(e,0,-1):[]}var z0=Se(function(e){var n=Pe(e,Qo);return n.length&&n[0]===e[0]?$o(n):[]}),H0=Se(function(e){var n=Vt(e),i=Pe(e,Qo);return n===Vt(i)?n=l:i.pop(),i.length&&i[0]===e[0]?$o(i,ce(n,2)):[]}),W0=Se(function(e){var n=Vt(e),i=Pe(e,Qo);return n=typeof n=="function"?n:l,n&&i.pop(),i.length&&i[0]===e[0]?$o(i,l,n):[]});function G0(e,n){return e==null?"":Up.call(e,n)}function Vt(e){var n=e==null?0:e.length;return n?e[n-1]:l}function K0(e,n,i){var a=e==null?0:e.length;if(!a)return-1;var f=a;return i!==l&&(f=ye(i),f=f<0?Qe(a+f,0):rt(f,a-1)),n===n?Ep(e,n,f):Ki(e,ac,f,!0)}function j0(e,n){return e&&e.length?Nc(e,ye(n)):l}var Y0=Se(Tf);function Tf(e,n){return e&&e.length&&n&&n.length?Ho(e,n):e}function Q0(e,n,i){return e&&e.length&&n&&n.length?Ho(e,n,ce(i,2)):e}function Z0(e,n,i){return e&&e.length&&n&&n.length?Ho(e,n,l,i):e}var X0=cn(function(e,n){var i=e==null?0:e.length,a=Vo(e,n);return Fc(e,Pe(n,function(f){return fn(f,i)?+f:f}).sort(Zc)),a});function J0(e,n){var i=[];if(!(e&&e.length))return i;var a=-1,f=[],m=e.length;for(n=ce(n,3);++a<m;){var p=e[a];n(p,a,e)&&(i.push(p),f.push(a))}return Fc(e,f),i}function ca(e){return e==null?e:Gp.call(e)}function e_(e,n,i){var a=e==null?0:e.length;return a?(i&&typeof i!="number"&&at(e,n,i)?(n=0,i=a):(n=n==null?0:ye(n),i=i===l?a:ye(i)),qt(e,n,i)):[]}function t_(e,n){return hl(e,n)}function n_(e,n,i){return Ko(e,n,ce(i,2))}function r_(e,n){var i=e==null?0:e.length;if(i){var a=hl(e,n);if(a<i&&Kt(e[a],n))return a}return-1}function i_(e,n){return hl(e,n,!0)}function l_(e,n,i){return Ko(e,n,ce(i,2),!0)}function o_(e,n){var i=e==null?0:e.length;if(i){var a=hl(e,n,!0)-1;if(Kt(e[a],n))return a}return-1}function a_(e){return e&&e.length?zc(e):[]}function u_(e,n){return e&&e.length?zc(e,ce(n,2)):[]}function s_(e){var n=e==null?0:e.length;return n?qt(e,1,n):[]}function c_(e,n,i){return e&&e.length?(n=i||n===l?1:ye(n),qt(e,0,n<0?0:n)):[]}function f_(e,n,i){var a=e==null?0:e.length;return a?(n=i||n===l?1:ye(n),n=a-n,qt(e,n<0?0:n,a)):[]}function d_(e,n){return e&&e.length?ml(e,ce(n,3),!1,!0):[]}function h_(e,n){return e&&e.length?ml(e,ce(n,3)):[]}var m_=Se(function(e){return Tn(tt(e,1,ze,!0))}),g_=Se(function(e){var n=Vt(e);return ze(n)&&(n=l),Tn(tt(e,1,ze,!0),ce(n,2))}),p_=Se(function(e){var n=Vt(e);return n=typeof n=="function"?n:l,Tn(tt(e,1,ze,!0),l,n)});function v_(e){return e&&e.length?Tn(e):[]}function __(e,n){return e&&e.length?Tn(e,ce(n,2)):[]}function b_(e,n){return n=typeof n=="function"?n:l,e&&e.length?Tn(e,l,n):[]}function fa(e){if(!(e&&e.length))return[];var n=0;return e=Cn(e,function(i){if(ze(i))return n=Qe(i.length,n),!0}),Oo(n,function(i){return Pe(e,ko(i))})}function Bf(e,n){if(!(e&&e.length))return[];var i=fa(e);return n==null?i:Pe(i,function(a){return St(n,l,a)})}var y_=Se(function(e,n){return ze(e)?Xr(e,n):[]}),w_=Se(function(e){return Yo(Cn(e,ze))}),S_=Se(function(e){var n=Vt(e);return ze(n)&&(n=l),Yo(Cn(e,ze),ce(n,2))}),x_=Se(function(e){var n=Vt(e);return n=typeof n=="function"?n:l,Yo(Cn(e,ze),l,n)}),C_=Se(fa);function k_(e,n){return Kc(e||[],n||[],Zr)}function E_(e,n){return Kc(e||[],n||[],ti)}var A_=Se(function(e){var n=e.length,i=n>1?e[n-1]:l;return i=typeof i=="function"?(e.pop(),i):l,Bf(e,i)});function Rf(e){var n=d(e);return n.__chain__=!0,n}function O_(e,n){return n(e),e}function xl(e,n){return n(e)}var T_=cn(function(e){var n=e.length,i=n?e[0]:0,a=this.__wrapped__,f=function(m){return Vo(m,e)};return n>1||this.__actions__.length||!(a instanceof ke)||!fn(i)?this.thru(f):(a=a.slice(i,+i+(n?1:0)),a.__actions__.push({func:xl,args:[f],thisArg:l}),new Mt(a,this.__chain__).thru(function(m){return n&&!m.length&&m.push(l),m}))});function B_(){return Rf(this)}function R_(){return new Mt(this.value(),this.__chain__)}function I_(){this.__values__===l&&(this.__values__=Wf(this.value()));var e=this.__index__>=this.__values__.length,n=e?l:this.__values__[this.__index__++];return{done:e,value:n}}function M_(){return this}function L_(e){for(var n,i=this;i instanceof ul;){var a=Cf(i);a.__index__=0,a.__values__=l,n?f.__wrapped__=a:n=a;var f=a;i=i.__wrapped__}return f.__wrapped__=e,n}function q_(){var e=this.__wrapped__;if(e instanceof ke){var n=e;return this.__actions__.length&&(n=new ke(this)),n=n.reverse(),n.__actions__.push({func:xl,args:[ca],thisArg:l}),new Mt(n,this.__chain__)}return this.thru(ca)}function V_(){return Gc(this.__wrapped__,this.__actions__)}var P_=gl(function(e,n,i){Re.call(e,i)?++e[i]:un(e,i,1)});function N_(e,n,i){var a=be(e)?lc:Ov;return i&&at(e,n,i)&&(n=l),a(e,ce(n,3))}function D_(e,n){var i=be(e)?Cn:Tc;return i(e,ce(n,3))}var $_=rf(kf),F_=rf(Ef);function U_(e,n){return tt(Cl(e,n),1)}function z_(e,n){return tt(Cl(e,n),fe)}function H_(e,n,i){return i=i===l?1:ye(i),tt(Cl(e,n),i)}function If(e,n){var i=be(e)?Rt:On;return i(e,ce(n,3))}function Mf(e,n){var i=be(e)?sp:Oc;return i(e,ce(n,3))}var W_=gl(function(e,n,i){Re.call(e,i)?e[i].push(n):un(e,i,[n])});function G_(e,n,i,a){e=ht(e)?e:Rr(e),i=i&&!a?ye(i):0;var f=e.length;return i<0&&(i=Qe(f+i,0)),Tl(e)?i<=f&&e.indexOf(n,i)>-1:!!f&&br(e,n,i)>-1}var K_=Se(function(e,n,i){var a=-1,f=typeof n=="function",m=ht(e)?I(e.length):[];return On(e,function(p){m[++a]=f?St(n,p,i):Jr(p,n,i)}),m}),j_=gl(function(e,n,i){un(e,i,n)});function Cl(e,n){var i=be(e)?Pe:qc;return i(e,ce(n,3))}function Y_(e,n,i,a){return e==null?[]:(be(n)||(n=n==null?[]:[n]),i=a?l:i,be(i)||(i=i==null?[]:[i]),Dc(e,n,i))}var Q_=gl(function(e,n,i){e[i?0:1].push(n)},function(){return[[],[]]});function Z_(e,n,i){var a=be(e)?xo:sc,f=arguments.length<3;return a(e,ce(n,4),i,f,On)}function X_(e,n,i){var a=be(e)?cp:sc,f=arguments.length<3;return a(e,ce(n,4),i,f,Oc)}function J_(e,n){var i=be(e)?Cn:Tc;return i(e,Al(ce(n,3)))}function eb(e){var n=be(e)?Cc:Gv;return n(e)}function tb(e,n,i){(i?at(e,n,i):n===l)?n=1:n=ye(n);var a=be(e)?xv:Kv;return a(e,n)}function nb(e){var n=be(e)?Cv:Yv;return n(e)}function rb(e){if(e==null)return 0;if(ht(e))return Tl(e)?wr(e):e.length;var n=it(e);return n==nt||n==Fe?e.size:Uo(e).length}function ib(e,n,i){var a=be(e)?Co:Qv;return i&&at(e,n,i)&&(n=l),a(e,ce(n,3))}var lb=Se(function(e,n){if(e==null)return[];var i=n.length;return i>1&&at(e,n[0],n[1])?n=[]:i>2&&at(n[0],n[1],n[2])&&(n=[n[0]]),Dc(e,tt(n,1),[])}),kl=Dp||function(){return et.Date.now()};function ob(e,n){if(typeof n!="function")throw new It(h);return e=ye(e),function(){if(--e<1)return n.apply(this,arguments)}}function Lf(e,n,i){return n=i?l:n,n=e&&n==null?e.length:n,sn(e,K,l,l,l,l,n)}function qf(e,n){var i;if(typeof n!="function")throw new It(h);return e=ye(e),function(){return--e>0&&(i=n.apply(this,arguments)),e<=1&&(n=l),i}}var da=Se(function(e,n,i){var a=R;if(i.length){var f=En(i,Tr(da));a|=G}return sn(e,a,n,i,f)}),Vf=Se(function(e,n,i){var a=R|H;if(i.length){var f=En(i,Tr(Vf));a|=G}return sn(n,a,e,i,f)});function Pf(e,n,i){n=i?l:n;var a=sn(e,N,l,l,l,l,l,n);return a.placeholder=Pf.placeholder,a}function Nf(e,n,i){n=i?l:n;var a=sn(e,Q,l,l,l,l,l,n);return a.placeholder=Nf.placeholder,a}function Df(e,n,i){var a,f,m,p,b,x,L=0,q=!1,D=!1,J=!0;if(typeof e!="function")throw new It(h);n=Pt(n)||0,$e(i)&&(q=!!i.leading,D="maxWait"in i,m=D?Qe(Pt(i.maxWait)||0,n):m,J="trailing"in i?!!i.trailing:J);function oe(He){var jt=a,mn=f;return a=f=l,L=He,p=e.apply(mn,jt),p}function de(He){return L=He,b=ii(Ce,n),q?oe(He):p}function we(He){var jt=He-x,mn=He-L,id=n-jt;return D?rt(id,m-mn):id}function he(He){var jt=He-x,mn=He-L;return x===l||jt>=n||jt<0||D&&mn>=m}function Ce(){var He=kl();if(he(He))return Ee(He);b=ii(Ce,we(He))}function Ee(He){return b=l,J&&a?oe(He):(a=f=l,p)}function Et(){b!==l&&jc(b),L=0,a=x=f=b=l}function ut(){return b===l?p:Ee(kl())}function At(){var He=kl(),jt=he(He);if(a=arguments,f=this,x=He,jt){if(b===l)return de(x);if(D)return jc(b),b=ii(Ce,n),oe(x)}return b===l&&(b=ii(Ce,n)),p}return At.cancel=Et,At.flush=ut,At}var ab=Se(function(e,n){return Ac(e,1,n)}),ub=Se(function(e,n,i){return Ac(e,Pt(n)||0,i)});function sb(e){return sn(e,V)}function El(e,n){if(typeof e!="function"||n!=null&&typeof n!="function")throw new It(h);var i=function(){var a=arguments,f=n?n.apply(this,a):a[0],m=i.cache;if(m.has(f))return m.get(f);var p=e.apply(this,a);return i.cache=m.set(f,p)||m,p};return i.cache=new(El.Cache||an),i}El.Cache=an;function Al(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 cb(e){return qf(2,e)}var fb=Zv(function(e,n){n=n.length==1&&be(n[0])?Pe(n[0],xt(ce())):Pe(tt(n,1),xt(ce()));var i=n.length;return Se(function(a){for(var f=-1,m=rt(a.length,i);++f<m;)a[f]=n[f].call(this,a[f]);return St(e,this,a)})}),ha=Se(function(e,n){var i=En(n,Tr(ha));return sn(e,G,l,n,i)}),$f=Se(function(e,n){var i=En(n,Tr($f));return sn(e,j,l,n,i)}),db=cn(function(e,n){return sn(e,le,l,l,l,n)});function hb(e,n){if(typeof e!="function")throw new It(h);return n=n===l?n:ye(n),Se(e,n)}function mb(e,n){if(typeof e!="function")throw new It(h);return n=n==null?0:Qe(ye(n),0),Se(function(i){var a=i[n],f=Rn(i,0,n);return a&&kn(f,a),St(e,this,f)})}function gb(e,n,i){var a=!0,f=!0;if(typeof e!="function")throw new It(h);return $e(i)&&(a="leading"in i?!!i.leading:a,f="trailing"in i?!!i.trailing:f),Df(e,n,{leading:a,maxWait:n,trailing:f})}function pb(e){return Lf(e,1)}function vb(e,n){return ha(Zo(n),e)}function _b(){if(!arguments.length)return[];var e=arguments[0];return be(e)?e:[e]}function bb(e){return Lt(e,y)}function yb(e,n){return n=typeof n=="function"?n:l,Lt(e,y,n)}function wb(e){return Lt(e,k|y)}function Sb(e,n){return n=typeof n=="function"?n:l,Lt(e,k|y,n)}function xb(e,n){return n==null||Ec(e,n,Xe(n))}function Kt(e,n){return e===n||e!==e&&n!==n}var Cb=bl(Do),kb=bl(function(e,n){return e>=n}),Jn=Ic(function(){return arguments}())?Ic:function(e){return Ue(e)&&Re.call(e,"callee")&&!_c.call(e,"callee")},be=I.isArray,Eb=Js?xt(Js):Lv;function ht(e){return e!=null&&Ol(e.length)&&!dn(e)}function ze(e){return Ue(e)&&ht(e)}function Ab(e){return e===!0||e===!1||Ue(e)&&ot(e)==Ae}var In=Fp||Ca,Ob=ec?xt(ec):qv;function Tb(e){return Ue(e)&&e.nodeType===1&&!li(e)}function Bb(e){if(e==null)return!0;if(ht(e)&&(be(e)||typeof e=="string"||typeof e.splice=="function"||In(e)||Br(e)||Jn(e)))return!e.length;var n=it(e);if(n==nt||n==Fe)return!e.size;if(ri(e))return!Uo(e).length;for(var i in e)if(Re.call(e,i))return!1;return!0}function Rb(e,n){return ei(e,n)}function Ib(e,n,i){i=typeof i=="function"?i:l;var a=i?i(e,n):l;return a===l?ei(e,n,l,i):!!a}function ma(e){if(!Ue(e))return!1;var n=ot(e);return n==lt||n==De||typeof e.message=="string"&&typeof e.name=="string"&&!li(e)}function Mb(e){return typeof e=="number"&&yc(e)}function dn(e){if(!$e(e))return!1;var n=ot(e);return n==Ft||n==yt||n==ne||n==Dr}function Ff(e){return typeof e=="number"&&e==ye(e)}function Ol(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 Uf=tc?xt(tc):Pv;function Lb(e,n){return e===n||Fo(e,n,ia(n))}function qb(e,n,i){return i=typeof i=="function"?i:l,Fo(e,n,ia(n),i)}function Vb(e){return zf(e)&&e!=+e}function Pb(e){if(y0(e))throw new pe(c);return Mc(e)}function Nb(e){return e===null}function Db(e){return e==null}function zf(e){return typeof e=="number"||Ue(e)&&ot(e)==wt}function li(e){if(!Ue(e)||ot(e)!=ft)return!1;var n=tl(e);if(n===null)return!0;var i=Re.call(n,"constructor")&&n.constructor;return typeof i=="function"&&i instanceof i&&Zi.call(i)==qp}var ga=nc?xt(nc):Nv;function $b(e){return Ff(e)&&e>=-W&&e<=W}var Hf=rc?xt(rc):Dv;function Tl(e){return typeof e=="string"||!be(e)&&Ue(e)&&ot(e)==je}function kt(e){return typeof e=="symbol"||Ue(e)&&ot(e)==zt}var Br=ic?xt(ic):$v;function Fb(e){return e===l}function Ub(e){return Ue(e)&&it(e)==$n}function zb(e){return Ue(e)&&ot(e)==Li}var Hb=bl(zo),Wb=bl(function(e,n){return e<=n});function Wf(e){if(!e)return[];if(ht(e))return Tl(e)?Wt(e):dt(e);if(Gr&&e[Gr])return xp(e[Gr]());var n=it(e),i=n==nt?Bo:n==Fe?ji:Rr;return i(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),i=n%1;return n===n?i?n-i:n:0}function Gf(e){return e?Yn(ye(e),0,B):0}function Pt(e){if(typeof e=="number")return e;if(kt(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=cc(e);var i=mo.test(e);return i||Ui.test(e)?op(e.slice(2),i?2:8):Hr.test(e)?ge:+e}function Kf(e){return Xt(e,mt(e))}function Gb(e){return e?Yn(ye(e),-W,W):e===0?e:0}function Te(e){return e==null?"":Ct(e)}var Kb=Ar(function(e,n){if(ri(n)||ht(n)){Xt(n,Xe(n),e);return}for(var i in n)Re.call(n,i)&&Zr(e,i,n[i])}),jf=Ar(function(e,n){Xt(n,mt(n),e)}),Bl=Ar(function(e,n,i,a){Xt(n,mt(n),e,a)}),jb=Ar(function(e,n,i,a){Xt(n,Xe(n),e,a)}),Yb=cn(Vo);function Qb(e,n){var i=Er(e);return n==null?i:kc(i,n)}var Zb=Se(function(e,n){e=Me(e);var i=-1,a=n.length,f=a>2?n[2]:l;for(f&&at(n[0],n[1],f)&&(a=1);++i<a;)for(var m=n[i],p=mt(m),b=-1,x=p.length;++b<x;){var L=p[b],q=e[L];(q===l||Kt(q,xr[L])&&!Re.call(e,L))&&(e[L]=m[L])}return e}),Xb=Se(function(e){return e.push(l,ff),St(Yf,l,e)});function Jb(e,n){return oc(e,ce(n,3),Zt)}function ey(e,n){return oc(e,ce(n,3),No)}function ty(e,n){return e==null?e:Po(e,ce(n,3),mt)}function ny(e,n){return e==null?e:Bc(e,ce(n,3),mt)}function ry(e,n){return e&&Zt(e,ce(n,3))}function iy(e,n){return e&&No(e,ce(n,3))}function ly(e){return e==null?[]:fl(e,Xe(e))}function oy(e){return e==null?[]:fl(e,mt(e))}function pa(e,n,i){var a=e==null?l:Qn(e,n);return a===l?i:a}function ay(e,n){return e!=null&&mf(e,n,Bv)}function va(e,n){return e!=null&&mf(e,n,Rv)}var uy=of(function(e,n,i){n!=null&&typeof n.toString!="function"&&(n=Xi.call(n)),e[n]=i},ba(gt)),sy=of(function(e,n,i){n!=null&&typeof n.toString!="function"&&(n=Xi.call(n)),Re.call(e,n)?e[n].push(i):e[n]=[i]},ce),cy=Se(Jr);function Xe(e){return ht(e)?xc(e):Uo(e)}function mt(e){return ht(e)?xc(e,!0):Fv(e)}function fy(e,n){var i={};return n=ce(n,3),Zt(e,function(a,f,m){un(i,n(a,f,m),a)}),i}function dy(e,n){var i={};return n=ce(n,3),Zt(e,function(a,f,m){un(i,f,n(a,f,m))}),i}var hy=Ar(function(e,n,i){dl(e,n,i)}),Yf=Ar(function(e,n,i,a){dl(e,n,i,a)}),my=cn(function(e,n){var i={};if(e==null)return i;var a=!1;n=Pe(n,function(m){return m=Bn(m,e),a||(a=m.length>1),m}),Xt(e,na(e),i),a&&(i=Lt(i,k|E|y,u0));for(var f=n.length;f--;)jo(i,n[f]);return i});function gy(e,n){return Qf(e,Al(ce(n)))}var py=cn(function(e,n){return e==null?{}:zv(e,n)});function Qf(e,n){if(e==null)return{};var i=Pe(na(e),function(a){return[a]});return n=ce(n),$c(e,i,function(a,f){return n(a,f[0])})}function vy(e,n,i){n=Bn(n,e);var a=-1,f=n.length;for(f||(f=1,e=l);++a<f;){var m=e==null?l:e[Jt(n[a])];m===l&&(a=f,m=i),e=dn(m)?m.call(e):m}return e}function _y(e,n,i){return e==null?e:ti(e,n,i)}function by(e,n,i,a){return a=typeof a=="function"?a:l,e==null?e:ti(e,n,i,a)}var Zf=sf(Xe),Xf=sf(mt);function yy(e,n,i){var a=be(e),f=a||In(e)||Br(e);if(n=ce(n,4),i==null){var m=e&&e.constructor;f?i=a?new m:[]:$e(e)?i=dn(m)?Er(tl(e)):{}:i={}}return(f?Rt:Zt)(e,function(p,b,x){return n(i,p,b,x)}),i}function wy(e,n){return e==null?!0:jo(e,n)}function Sy(e,n,i){return e==null?e:Wc(e,n,Zo(i))}function xy(e,n,i,a){return a=typeof a=="function"?a:l,e==null?e:Wc(e,n,Zo(i),a)}function Rr(e){return e==null?[]:To(e,Xe(e))}function Cy(e){return e==null?[]:To(e,mt(e))}function ky(e,n,i){return i===l&&(i=n,n=l),i!==l&&(i=Pt(i),i=i===i?i:0),n!==l&&(n=Pt(n),n=n===n?n:0),Yn(Pt(e),n,i)}function Ey(e,n,i){return n=hn(n),i===l?(i=n,n=0):i=hn(i),e=Pt(e),Iv(e,n,i)}function Ay(e,n,i){if(i&&typeof i!="boolean"&&at(e,n,i)&&(n=i=l),i===l&&(typeof n=="boolean"?(i=n,n=l):typeof e=="boolean"&&(i=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(i||e%1||n%1){var f=wc();return rt(e+f*(n-e+lp("1e-"+((f+"").length-1))),n)}return Wo(e,n)}var Oy=Or(function(e,n,i){return n=n.toLowerCase(),e+(i?Jf(n):n)});function Jf(e){return _a(Te(e).toLowerCase())}function ed(e){return e=Te(e),e&&e.replace(Hi,_p).replace(Yg,"")}function Ty(e,n,i){e=Te(e),n=Ct(n);var a=e.length;i=i===l?a:Yn(ye(i),0,a);var f=i;return i-=n.length,i>=0&&e.slice(i,f)==n}function By(e){return e=Te(e),e&&Di.test(e)?e.replace(Ni,bp):e}function Ry(e){return e=Te(e),e&&ao.test(e)?e.replace(Ur,"\\$&"):e}var Iy=Or(function(e,n,i){return e+(i?"-":"")+n.toLowerCase()}),My=Or(function(e,n,i){return e+(i?" ":"")+n.toLowerCase()}),Ly=nf("toLowerCase");function qy(e,n,i){e=Te(e),n=ye(n);var a=n?wr(e):0;if(!n||a>=n)return e;var f=(n-a)/2;return _l(ll(f),i)+e+_l(il(f),i)}function Vy(e,n,i){e=Te(e),n=ye(n);var a=n?wr(e):0;return n&&a<n?e+_l(n-a,i):e}function Py(e,n,i){e=Te(e),n=ye(n);var a=n?wr(e):0;return n&&a<n?_l(n-a,i)+e:e}function Ny(e,n,i){return i||n==null?n=0:n&&(n=+n),Wp(Te(e).replace(zr,""),n||0)}function Dy(e,n,i){return(i?at(e,n,i):n===l)?n=1:n=ye(n),Go(Te(e),n)}function $y(){var e=arguments,n=Te(e[0]);return e.length<3?n:n.replace(e[1],e[2])}var Fy=Or(function(e,n,i){return e+(i?"_":"")+n.toLowerCase()});function Uy(e,n,i){return i&&typeof i!="number"&&at(e,n,i)&&(n=i=l),i=i===l?B:i>>>0,i?(e=Te(e),e&&(typeof n=="string"||n!=null&&!ga(n))&&(n=Ct(n),!n&&yr(e))?Rn(Wt(e),0,i):e.split(n,i)):[]}var zy=Or(function(e,n,i){return e+(i?" ":"")+_a(n)});function Hy(e,n,i){return e=Te(e),i=i==null?0:Yn(ye(i),0,e.length),n=Ct(n),e.slice(i,i+n.length)==n}function Wy(e,n,i){var a=d.templateSettings;i&&at(e,n,i)&&(n=l),e=Te(e),n=Bl({},n,a,cf);var f=Bl({},n.imports,a.imports,cf),m=Xe(f),p=To(f,m),b,x,L=0,q=n.interpolate||_,D="__p += '",J=Ro((n.escape||_).source+"|"+q.source+"|"+(q===zn?rn:_).source+"|"+(n.evaluate||_).source+"|$","g"),oe="//# sourceURL="+(Re.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ep+"]")+`
11
11
  `;e.replace(J,function(he,Ce,Ee,Et,ut,At){return Ee||(Ee=Et),D+=e.slice(L,At).replace(ee,yp),Ce&&(b=!0,D+=`' +
12
12
  __e(`+Ce+`) +
13
13
  '`),ut&&(x=!0,D+=`';
@@ -24,4 +24,4 @@ __p += '`),Ee&&(D+=`' +
24
24
  function print() { __p += __j.call(arguments, '') }
25
25
  `:`;
26
26
  `)+D+`return __p
27
- }`;var we=nd(function(){return Oe(m,oe+"return "+D).apply(l,p)});if(we.source=D,ma(we))throw we;return we}function Gy(e){return Te(e).toLowerCase()}function Ky(e){return Te(e).toUpperCase()}function jy(e,n,i){if(e=Te(e),e&&(i||n===l))return cc(e);if(!e||!(n=Ct(n)))return e;var a=Wt(e),f=Wt(n),m=fc(a,f),p=dc(a,f)+1;return Rn(a,m,p).join("")}function Yy(e,n,i){if(e=Te(e),e&&(i||n===l))return e.slice(0,mc(e)+1);if(!e||!(n=Ct(n)))return e;var a=Wt(e),f=dc(a,Wt(n))+1;return Rn(a,0,f).join("")}function Qy(e,n,i){if(e=Te(e),e&&(i||n===l))return e.replace(zr,"");if(!e||!(n=Ct(n)))return e;var a=Wt(e),f=fc(a,Wt(n));return Rn(a,f).join("")}function Zy(e,n){var i=$,a=Z;if($e(n)){var f="separator"in n?n.separator:f;i="length"in n?ye(n.length):i,a="omission"in n?Ct(n.omission):a}e=Te(e);var m=e.length;if(yr(e)){var p=Wt(e);m=p.length}if(i>=m)return e;var b=i-wr(a);if(b<1)return a;var x=p?Rn(p,0,b).join(""):e.slice(0,b);if(f===l)return x+a;if(p&&(b+=x.length-b),ga(f)){if(e.slice(b).search(f)){var L,q=x;for(f.global||(f=Ro(f.source,Te(ln.exec(f))+"g")),f.lastIndex=0;L=f.exec(q);)var D=L.index;x=x.slice(0,D===l?b:D)}}else if(e.indexOf(Ct(f),b)!=b){var J=x.lastIndexOf(f);J>-1&&(x=x.slice(0,J))}return x+a}function Xy(e){return e=Te(e),e&&io.test(e)?e.replace(Fr,Ap):e}var Jy=Or(function(e,n,i){return e+(i?" ":"")+n.toUpperCase()}),_a=nf("toUpperCase");function td(e,n,i){return e=Te(e),n=i?l:n,n===l?Sp(e)?Bp(e):hp(e):e.match(n)||[]}var nd=Se(function(e,n){try{return St(e,l,n)}catch(i){return ma(i)?i:new pe(i)}}),ew=cn(function(e,n){return Rt(n,function(i){i=Jt(i),un(e,i,da(e[i],e))}),e});function tw(e){var n=e==null?0:e.length,i=ce();return e=n?Pe(e,function(a){if(typeof a[1]!="function")throw new It(h);return[i(a[0]),a[1]]}):[],Se(function(a){for(var f=-1;++f<n;){var m=e[f];if(St(m[0],this,a))return St(m[1],this,a)}})}function nw(e){return Av(Lt(e,C))}function ba(e){return function(){return e}}function rw(e,n){return e==null||e!==e?n:e}var iw=lf(),lw=lf(!0);function gt(e){return e}function ya(e){return Lc(typeof e=="function"?e:Lt(e,C))}function ow(e){return Vc(Lt(e,C))}function aw(e,n){return Pc(e,Lt(n,C))}var uw=Se(function(e,n){return function(i){return Jr(i,e,n)}}),sw=Se(function(e,n){return function(i){return Jr(e,i,n)}});function wa(e,n,i){var a=Xe(n),f=fl(n,a);i==null&&!($e(n)&&(f.length||!a.length))&&(i=n,n=e,e=this,f=fl(n,Xe(n)));var m=!($e(i)&&"chain"in i)||!!i.chain,p=dn(e);return Rt(f,function(b){var x=n[b];e[b]=x,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:x,args:arguments,thisArg:e}),q.__chain__=L,q}return x.apply(e,kn([this.value()],arguments))})}),e}function cw(){return et._===this&&(et._=Vp),this}function Sa(){}function fw(e){return e=ye(e),Se(function(n){return Nc(n,e)})}var dw=Jo(Pe),hw=Jo(lc),mw=Jo(Co);function rd(e){return oa(e)?ko(Jt(e)):Hv(e)}function gw(e){return function(n){return e==null?l:Qn(e,n)}}var pw=af(),vw=af(!0);function xa(){return[]}function Ca(){return!1}function _w(){return{}}function bw(){return""}function yw(){return!0}function ww(e,n){if(e=ye(e),e<1||e>W)return[];var i=B,a=rt(e,B);n=ce(n),e-=B;for(var f=Oo(a,n);++i<e;)n(i);return f}function Sw(e){return be(e)?Pe(e,Jt):kt(e)?[e]:dt(xf(Te(e)))}function xw(e){var n=++Lp;return Te(e)+n}var Cw=vl(function(e,n){return e+n},0),kw=ea("ceil"),Ew=vl(function(e,n){return e/n},1),Aw=ea("floor");function Ow(e){return e&&e.length?cl(e,gt,Do):l}function Tw(e,n){return e&&e.length?cl(e,ce(n,2),Do):l}function Bw(e){return uc(e,gt)}function Rw(e,n){return uc(e,ce(n,2))}function Iw(e){return e&&e.length?cl(e,gt,zo):l}function Mw(e,n){return e&&e.length?cl(e,ce(n,2),zo):l}var Lw=vl(function(e,n){return e*n},1),qw=ea("round"),Vw=vl(function(e,n){return e-n},0);function Pw(e){return e&&e.length?Ao(e,gt):0}function Nw(e,n){return e&&e.length?Ao(e,ce(n,2)):0}return d.after=ob,d.ary=Lf,d.assign=Kb,d.assignIn=jf,d.assignInWith=Bl,d.assignWith=jb,d.at=Yb,d.before=qf,d.bind=da,d.bindAll=ew,d.bindKey=Vf,d.castArray=_b,d.chain=Rf,d.chunk=A0,d.compact=O0,d.concat=T0,d.cond=tw,d.conforms=nw,d.constant=ba,d.countBy=P_,d.create=Qb,d.curry=Pf,d.curryRight=Nf,d.debounce=Df,d.defaults=Zb,d.defaultsDeep=Xb,d.defer=ab,d.delay=ub,d.difference=B0,d.differenceBy=R0,d.differenceWith=I0,d.drop=M0,d.dropRight=L0,d.dropRightWhile=q0,d.dropWhile=V0,d.fill=P0,d.filter=D_,d.flatMap=U_,d.flatMapDeep=z_,d.flatMapDepth=H_,d.flatten=Af,d.flattenDeep=N0,d.flattenDepth=D0,d.flip=sb,d.flow=iw,d.flowRight=lw,d.fromPairs=$0,d.functions=ly,d.functionsIn=oy,d.groupBy=W_,d.initial=U0,d.intersection=z0,d.intersectionBy=H0,d.intersectionWith=W0,d.invert=uy,d.invertBy=sy,d.invokeMap=K_,d.iteratee=ya,d.keyBy=j_,d.keys=Xe,d.keysIn=mt,d.map=Cl,d.mapKeys=fy,d.mapValues=dy,d.matches=ow,d.matchesProperty=aw,d.memoize=El,d.merge=hy,d.mergeWith=Yf,d.method=uw,d.methodOf=sw,d.mixin=wa,d.negate=Al,d.nthArg=fw,d.omit=my,d.omitBy=gy,d.once=cb,d.orderBy=Y_,d.over=dw,d.overArgs=fb,d.overEvery=hw,d.overSome=mw,d.partial=ha,d.partialRight=$f,d.partition=Q_,d.pick=py,d.pickBy=Qf,d.property=rd,d.propertyOf=gw,d.pull=Y0,d.pullAll=Tf,d.pullAllBy=Q0,d.pullAllWith=Z0,d.pullAt=X0,d.range=pw,d.rangeRight=vw,d.rearg=db,d.reject=J_,d.remove=J0,d.rest=hb,d.reverse=ca,d.sampleSize=tb,d.set=_y,d.setWith=by,d.shuffle=nb,d.slice=e_,d.sortBy=lb,d.sortedUniq=a_,d.sortedUniqBy=u_,d.split=Uy,d.spread=mb,d.tail=s_,d.take=c_,d.takeRight=f_,d.takeRightWhile=d_,d.takeWhile=h_,d.tap=O_,d.throttle=gb,d.thru=xl,d.toArray=Wf,d.toPairs=Zf,d.toPairsIn=Xf,d.toPath=Sw,d.toPlainObject=Kf,d.transform=yy,d.unary=pb,d.union=m_,d.unionBy=g_,d.unionWith=p_,d.uniq=v_,d.uniqBy=__,d.uniqWith=b_,d.unset=wy,d.unzip=fa,d.unzipWith=Bf,d.update=Sy,d.updateWith=xy,d.values=Rr,d.valuesIn=Cy,d.without=y_,d.words=td,d.wrap=vb,d.xor=w_,d.xorBy=S_,d.xorWith=x_,d.zip=C_,d.zipObject=k_,d.zipObjectDeep=E_,d.zipWith=A_,d.entries=Zf,d.entriesIn=Xf,d.extend=jf,d.extendWith=Bl,wa(d,d),d.add=Cw,d.attempt=nd,d.camelCase=Oy,d.capitalize=Jf,d.ceil=kw,d.clamp=ky,d.clone=bb,d.cloneDeep=wb,d.cloneDeepWith=Sb,d.cloneWith=yb,d.conformsTo=xb,d.deburr=ed,d.defaultTo=rw,d.divide=Ew,d.endsWith=Ty,d.eq=Kt,d.escape=By,d.escapeRegExp=Ry,d.every=N_,d.find=$_,d.findIndex=kf,d.findKey=Jb,d.findLast=F_,d.findLastIndex=Ef,d.findLastKey=ey,d.floor=Aw,d.forEach=If,d.forEachRight=Mf,d.forIn=ty,d.forInRight=ny,d.forOwn=ry,d.forOwnRight=iy,d.get=pa,d.gt=Cb,d.gte=kb,d.has=ay,d.hasIn=va,d.head=Of,d.identity=gt,d.includes=G_,d.indexOf=F0,d.inRange=Ey,d.invoke=cy,d.isArguments=Jn,d.isArray=be,d.isArrayBuffer=Eb,d.isArrayLike=ht,d.isArrayLikeObject=ze,d.isBoolean=Ab,d.isBuffer=In,d.isDate=Ob,d.isElement=Tb,d.isEmpty=Bb,d.isEqual=Rb,d.isEqualWith=Ib,d.isError=ma,d.isFinite=Mb,d.isFunction=dn,d.isInteger=Ff,d.isLength=Ol,d.isMap=Uf,d.isMatch=Lb,d.isMatchWith=qb,d.isNaN=Vb,d.isNative=Pb,d.isNil=Db,d.isNull=Nb,d.isNumber=zf,d.isObject=$e,d.isObjectLike=Ue,d.isPlainObject=li,d.isRegExp=ga,d.isSafeInteger=$b,d.isSet=Hf,d.isString=Tl,d.isSymbol=kt,d.isTypedArray=Br,d.isUndefined=Fb,d.isWeakMap=Ub,d.isWeakSet=zb,d.join=G0,d.kebabCase=Iy,d.last=Vt,d.lastIndexOf=K0,d.lowerCase=My,d.lowerFirst=Ly,d.lt=Hb,d.lte=Wb,d.max=Ow,d.maxBy=Tw,d.mean=Bw,d.meanBy=Rw,d.min=Iw,d.minBy=Mw,d.stubArray=xa,d.stubFalse=Ca,d.stubObject=_w,d.stubString=bw,d.stubTrue=yw,d.multiply=Lw,d.nth=j0,d.noConflict=cw,d.noop=Sa,d.now=kl,d.pad=qy,d.padEnd=Vy,d.padStart=Py,d.parseInt=Ny,d.random=Ay,d.reduce=Z_,d.reduceRight=X_,d.repeat=Dy,d.replace=$y,d.result=vy,d.round=qw,d.runInContext=S,d.sample=eb,d.size=rb,d.snakeCase=Fy,d.some=ib,d.sortedIndex=t_,d.sortedIndexBy=n_,d.sortedIndexOf=r_,d.sortedLastIndex=i_,d.sortedLastIndexBy=l_,d.sortedLastIndexOf=o_,d.startCase=zy,d.startsWith=Hy,d.subtract=Vw,d.sum=Pw,d.sumBy=Nw,d.template=Wy,d.times=ww,d.toFinite=hn,d.toInteger=ye,d.toLength=Gf,d.toLower=Gy,d.toNumber=Pt,d.toSafeInteger=Gb,d.toString=Te,d.toUpper=Ky,d.trim=jy,d.trimEnd=Yy,d.trimStart=Qy,d.truncate=Zy,d.unescape=Xy,d.uniqueId=xw,d.upperCase=Jy,d.upperFirst=_a,d.each=If,d.eachRight=Mf,d.first=Of,wa(d,function(){var e={};return Zt(d,function(n,i){Re.call(d.prototype,i)||(e[i]=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){ke.prototype[e]=function(i){i=i===l?1:Qe(ye(i),0);var a=this.__filtered__&&!n?new ke(this):this.clone();return a.__filtered__?a.__takeCount__=rt(i,a.__takeCount__):a.__views__.push({size:rt(i,B),type:e+(a.__dir__<0?"Right":"")}),a},ke.prototype[e+"Right"]=function(i){return this.reverse()[e](i).reverse()}}),Rt(["filter","map","takeWhile"],function(e,n){var i=n+1,a=i==P||i==ue;ke.prototype[e]=function(f){var m=this.clone();return m.__iteratees__.push({iteratee:ce(f,3),type:i}),m.__filtered__=m.__filtered__||a,m}}),Rt(["head","last"],function(e,n){var i="take"+(n?"Right":"");ke.prototype[e]=function(){return this[i](1).value()[0]}}),Rt(["initial","tail"],function(e,n){var i="drop"+(n?"":"Right");ke.prototype[e]=function(){return this.__filtered__?new ke(this):this[i](1)}}),ke.prototype.compact=function(){return this.filter(gt)},ke.prototype.find=function(e){return this.filter(e).head()},ke.prototype.findLast=function(e){return this.reverse().find(e)},ke.prototype.invokeMap=Se(function(e,n){return typeof e=="function"?new ke(this):this.map(function(i){return Jr(i,e,n)})}),ke.prototype.reject=function(e){return this.filter(Al(ce(e)))},ke.prototype.slice=function(e,n){e=ye(e);var i=this;return i.__filtered__&&(e>0||n<0)?new ke(i):(e<0?i=i.takeRight(-e):e&&(i=i.drop(e)),n!==l&&(n=ye(n),i=n<0?i.dropRight(-n):i.take(n-e)),i)},ke.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},ke.prototype.toArray=function(){return this.take(B)},Zt(ke.prototype,function(e,n){var i=/^(?:filter|find|map|reject)|While$/.test(n),a=/^(?:head|last)$/.test(n),f=d[a?"take"+(n=="last"?"Right":""):n],m=a||/^find/.test(n);f&&(d.prototype[n]=function(){var p=this.__wrapped__,b=a?[1]:arguments,x=p instanceof ke,L=b[0],q=x||be(p),D=function(Ce){var Ee=f.apply(d,kn([Ce],b));return a&&J?Ee[0]:Ee};q&&i&&typeof L=="function"&&L.length!=1&&(x=q=!1);var J=this.__chain__,oe=!!this.__actions__.length,de=m&&!J,we=x&&!oe;if(!m&&q){p=we?p:new ke(this);var he=e.apply(p,b);return he.__actions__.push({func:xl,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=Yi[e],i=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",a=/^(?:pop|shift)$/.test(e);d.prototype[e]=function(){var f=arguments;if(a&&!this.__chain__){var m=this.value();return n.apply(be(m)?m:[],f)}return this[i](function(p){return n.apply(be(p)?p:[],f)})}}),Zt(ke.prototype,function(e,n){var i=d[n];if(i){var a=i.name+"";Re.call(kr,a)||(kr[a]=[]),kr[a].push({name:n,func:i})}}),kr[pl(l,H).name]=[{name:"wrapper",func:l}],ke.prototype.clone=Xp,ke.prototype.reverse=Jp,ke.prototype.value=ev,d.prototype.at=T_,d.prototype.chain=B_,d.prototype.commit=R_,d.prototype.next=I_,d.prototype.plant=L_,d.prototype.reverse=q_,d.prototype.toJSON=d.prototype.valueOf=d.prototype.value=V_,d.prototype.first=d.prototype.head,Gr&&(d.prototype[Gr]=M_),d},Sr=Rp();Wn?((Wn.exports=Sr)._=Sr,yo._=Sr):et._=Sr}).call(xe)}(oi,oi.exports);var Ne=oi.exports,pt={},Ea={},er={};Object.defineProperty(er,"__esModule",{value:!0}),er.EstadoCaptacion=er.TipoCaptacion=void 0;var Aa;(function(t){t.CLIENTES="1",t.PROVEEDORES="2",t.USUARIOS="3",t.PRODUCTOS="4",t.PEDIDOS="5"})(Aa||(er.TipoCaptacion=Aa={}));var Oa;(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"})(Oa||(er.EstadoCaptacion=Oa={}));var ai={};Object.defineProperty(ai,"__esModule",{value:!0}),ai.TipoGarantia=void 0;var Ta;(function(t){t.INMUEBLE="Propiedad inmobiliaria",t.VEHICULO="Vehículo",t.AVAL_PERSONAL="Aval personal",t.OTROS="Otros"})(Ta||(ai.TipoGarantia=Ta={}));var ui={};Object.defineProperty(ui,"__esModule",{value:!0}),ui.TipoImportacion=void 0;var Ba;(function(t){t.CAPTACION="captacion",t.PEDIDO="pedido",t.PRODUCTO="producto",t.CLIENTE="cliente"})(Ba||(ui.TipoImportacion=Ba={}));var gn={};Object.defineProperty(gn,"__esModule",{value:!0}),gn.TipoLiquidacionReclamo=gn.EstadoLiquidacionReclamo=gn.EstadoLiquidacion=void 0;var Ra;(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"})(Ra||(gn.EstadoLiquidacion=Ra={}));var Ia;(function(t){t[t.ACTIVO=1]="ACTIVO",t[t.APROBADO=2]="APROBADO",t[t.NEGADO=3]="NEGADO"})(Ia||(gn.EstadoLiquidacionReclamo=Ia={}));var Ma;(function(t){t[t.ITEM=1]="ITEM",t[t.COBRO=2]="COBRO"})(Ma||(gn.TipoLiquidacionReclamo=Ma={}));var si={};Object.defineProperty(si,"__esModule",{value:!0}),si.TipoNotificacion=void 0;var La;(function(t){t.NUEVO="1",t.DOCUMENTOS="2",t.REALIZADO="3",t.INCIDENTES="4",t.CANCELACION="5"})(La||(si.TipoNotificacion=La={}));var ci={};Object.defineProperty(ci,"__esModule",{value:!0}),ci.EstadoPedido=void 0;var qa;(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"})(qa||(ci.EstadoPedido=qa={}));var tr={};Object.defineProperty(tr,"__esModule",{value:!0}),tr.TipoProducto=tr.EstadoProducto=void 0;var Va;(function(t){t.DESHABILITADO="0",t.INACTIVO="1",t.ACTIVADO="2",t.PUBLICO="3"})(Va||(tr.EstadoProducto=Va={}));var Pa;(function(t){t.ARTICULO="1",t.SERVICIO_CONTRATO="2",t.MEMBRESIA="3",t.OFERTA_EMPLEO="4"})(Pa||(tr.TipoProducto=Pa={}));var fi={};Object.defineProperty(fi,"__esModule",{value:!0}),fi.EstadoBase=void 0;var Na;(function(t){t[t.INACTIVO=0]="INACTIVO",t[t.ACTIVO=1]="ACTIVO"})(Na||(fi.EstadoBase=Na={})),function(t){var o=xe&&xe.__createBinding||(Object.create?function(u,s,c,h){h===void 0&&(h=c);var g=Object.getOwnPropertyDescriptor(s,c);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,h,g)}:function(u,s,c,h){h===void 0&&(h=c),u[h]=s[c]}),l=xe&&xe.__exportStar||function(u,s){for(var c in u)c!=="default"&&!Object.prototype.hasOwnProperty.call(s,c)&&o(s,u,c)};Object.defineProperty(t,"__esModule",{value:!0}),l(er,t),l(ai,t),l(ui,t),l(gn,t),l(si,t),l(ci,t),l(tr,t),l(fi,t)}(Ea);var Da={},$a={},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,c,h){h===void 0&&(h=c);var g=Object.getOwnPropertyDescriptor(s,c);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,h,g)}:function(u,s,c,h){h===void 0&&(h=c),u[h]=s[c]}),l=xe&&xe.__exportStar||function(u,s){for(var c in u)c!=="default"&&!Object.prototype.hasOwnProperty.call(s,c)&&o(s,u,c)};Object.defineProperty(t,"__esModule",{value:!0}),l(di,t)}($a);var Fa={},pn={};Object.defineProperty(pn,"__esModule",{value:!0}),pn.LAYOUT_SECTION_TYPES=pn.LayoutSectionType=pn.TextLineType=void 0;var Ua;(function(t){t.TITLE="title",t.SUBTITLE="subtitle",t.PARAGRAPH="paragraph"})(Ua||(pn.TextLineType=Ua={}));var nr;(function(t){t.TEXT="text",t.TABLE="table",t.CARDS_GRID="cards-grid",t.IMAGE="image"})(nr||(pn.LayoutSectionType=nr={})),pn.LAYOUT_SECTION_TYPES=[nr.TEXT,nr.CARDS_GRID,nr.TABLE,nr.IMAGE],function(t){var o=xe&&xe.__createBinding||(Object.create?function(u,s,c,h){h===void 0&&(h=c);var g=Object.getOwnPropertyDescriptor(s,c);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,h,g)}:function(u,s,c,h){h===void 0&&(h=c),u[h]=s[c]}),l=xe&&xe.__exportStar||function(u,s){for(var c in u)c!=="default"&&!Object.prototype.hasOwnProperty.call(s,c)&&o(s,u,c)};Object.defineProperty(t,"__esModule",{value:!0}),l(pn,t)}(Fa);var za={},hi={};Object.defineProperty(hi,"__esModule",{value:!0}),hi.TipoComision=void 0;var Ha;(function(t){t.PORCENTAJE="porcentaje",t.MONTO_FIJO="monto_fijo"})(Ha||(hi.TipoComision=Ha={}));var Wa={};Object.defineProperty(Wa,"__esModule",{value:!0});var Ot={};Object.defineProperty(Ot,"__esModule",{value:!0}),Ot.TABLES=Ot.TABLES_FIELDS=Ot.SOURCES=Ot.LOGIC_OPERATORS=Ot.RULE_OPERATORS=void 0,Ot.RULE_OPERATORS=["==","!=","<",">","IN"],Ot.LOGIC_OPERATORS=["AND","OR"],Ot.SOURCES=["IMPORTACION","TABLA","CONTENEDOR"],Ot.TABLES_FIELDS={PRODUCTOS:["TIPO","NOMBRE","DESCRIPCION","ID_GAMA","ESTADO","TAGS","ID_PRODUCTO","PROPS","COD_ART_MVX"],CAPTACION:["ESTADO","TIPO","CAPTADO","ID_CAPTACION","FECHA_CAPTADO"]},Ot.TABLES=[{label:"PRODUCTOS",value:"PRODUCTOS"},{label:"CAPTACIONES",value:"CAPTACION"}],function(t){var o=xe&&xe.__createBinding||(Object.create?function(u,s,c,h){h===void 0&&(h=c);var g=Object.getOwnPropertyDescriptor(s,c);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,h,g)}:function(u,s,c,h){h===void 0&&(h=c),u[h]=s[c]}),l=xe&&xe.__exportStar||function(u,s){for(var c in u)c!=="default"&&!Object.prototype.hasOwnProperty.call(s,c)&&o(s,u,c)};Object.defineProperty(t,"__esModule",{value:!0}),l(hi,t),l(Wa,t),l(Ot,t)}(za);var Ga={},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 Ka;(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"})(Ka||(rr.ControlType=Ka={}));var ja={};Object.defineProperty(ja,"__esModule",{value:!0});var Ya={};Object.defineProperty(Ya,"__esModule",{value:!0});var Qa={};(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}))})(Qa);var Za={};Object.defineProperty(Za,"__esModule",{value:!0}),function(t){var o=xe&&xe.__createBinding||(Object.create?function(u,s,c,h){h===void 0&&(h=c);var g=Object.getOwnPropertyDescriptor(s,c);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,h,g)}:function(u,s,c,h){h===void 0&&(h=c),u[h]=s[c]}),l=xe&&xe.__exportStar||function(u,s){for(var c in u)c!=="default"&&!Object.prototype.hasOwnProperty.call(s,c)&&o(s,u,c)};Object.defineProperty(t,"__esModule",{value:!0}),l(mi,t),l(rr,t),l(ja,t),l(Ya,t),l(Qa,t),l(Za,t)}(Ga);var Xa={},Ja={};Object.defineProperty(Ja,"__esModule",{value:!0}),function(t){var o=xe&&xe.__createBinding||(Object.create?function(u,s,c,h){h===void 0&&(h=c);var g=Object.getOwnPropertyDescriptor(s,c);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,h,g)}:function(u,s,c,h){h===void 0&&(h=c),u[h]=s[c]}),l=xe&&xe.__exportStar||function(u,s){for(var c in u)c!=="default"&&!Object.prototype.hasOwnProperty.call(s,c)&&o(s,u,c)};Object.defineProperty(t,"__esModule",{value:!0}),l(Ja,t)}(Xa),function(t){var o=xe&&xe.__createBinding||(Object.create?function(u,s,c,h){h===void 0&&(h=c);var g=Object.getOwnPropertyDescriptor(s,c);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,h,g)}:function(u,s,c,h){h===void 0&&(h=c),u[h]=s[c]}),l=xe&&xe.__exportStar||function(u,s){for(var c in u)c!=="default"&&!Object.prototype.hasOwnProperty.call(s,c)&&o(s,u,c)};Object.defineProperty(t,"__esModule",{value:!0}),l($a,t),l(Fa,t),l(za,t),l(Ga,t),l(Xa,t)}(Da),function(t){var o=xe&&xe.__createBinding||(Object.create?function(u,s,c,h){h===void 0&&(h=c);var g=Object.getOwnPropertyDescriptor(s,c);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,h,g)}:function(u,s,c,h){h===void 0&&(h=c),u[h]=s[c]}),l=xe&&xe.__exportStar||function(u,s){for(var c in u)c!=="default"&&!Object.prototype.hasOwnProperty.call(s,c)&&o(s,u,c)};Object.defineProperty(t,"__esModule",{value:!0}),l(Ea,t),l(Da,t)}(pt);const Rl=[pt.ControlType.DYNAMIC_ARRAY,pt.ControlType.OBJECT],ld={maxControlsPerGroup:1,notifyValidations:!0},eu={required:{fn:()=>t=>{var o;if(t.controlType===pt.ControlType.LOCATION){const{value:l}=t.value;return Ne.values(Ne.omit(l,"catastro")).every(u=>!Ne.isNil(u)&&u!=="")&&(l!=null&&l.catastro?od(l==null?void 0:l.catastro):!0)}return t.controlType===pt.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=>tu(o,">=",t),message:"El valor es menor al mínimo permitido"},max:{fn:t=>o=>tu(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 tu(t,o,l){const u={">":(s,c)=>s>c,"<":(s,c)=>s<c,">=":(s,c)=>s>=c,"<=":(s,c)=>s<=c}[o];if(t.controlType===pt.ControlType.NUMBER){const s=Number(t.value);return u(s,l)}if(t.controlType===pt.ControlType.TEXT){const s=(t.value||"").length;return u(s,l)}if([pt.ControlType.CARDS_SELECT,pt.ControlType.SELECT].includes(t.controlType)&&t.multiple){const s=(t.value||[]).length;return u(s,l)}return!1}function od(t){return/^[A-Za-z0-9]{20}$/.test(t)}function ad(t){const o=[];t.controls.forEach((u,s)=>{const c=ud(u);o.push(...c);const h=!c.length;t.controls[s].valid=h});const l=!o.length;return t.valid=l,o}function ud(t){const o=[];return t.validators&&t.validators.forEach(l=>{const{validator:u,param:s}=l,c=eu[u]||null;c&&(c.fn(Number(s))(t)||o.push(c.message))}),o}function sd(t,o,l){return o.controlType==="dynamic_array"?cd(t,o,l):o.controlType==="object"?nu(t,o,l):[]}function cd(t,o,l){var c,h;const u=[],s=((c=o.itemsLength)==null?void 0:c.value)||0;for(let g=0;g<s;g++){const w=nu({...t,title:`${t.title} ${g+1}`},{...o,value:(h=o.value)==null?void 0:h[g]},l);w.forEach(k=>{k.controls.forEach(v=>{v.code=`${g}.${v.code}`})}),u.push(...w)}return u}function nu(t,o,l){const u=o.structure;return Ne.chunk(u,l).map(c=>({...t,controls:ru(c).map(h=>{var g;return{...h,id:o.id,value:((g=o.value)==null?void 0:g[h.code])||h.value}})}))}function fd(t){return Ne.chain(t).groupBy("group").toPairs().orderBy(([l,u])=>l).map(([l,u])=>{var h;const s=((h=u.find(g=>{var w;return!!((w=g.title)!=null&&w.trim())}))==null?void 0:h.title)||"",c=u[0].group;return{title:s,controls:u,order:c,visible:!0,valid:u.every(g=>g.valid),id:""}}).value()}function dd(t){return t.map(o=>({...o,valid:!1,controls:ru(o.controls)}))}function ru(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:hd(o),itemsLength:o.controlType==="dynamic_array"?{...o.itemsLength,value:((s=o.itemsLength)==null?void 0:s.default)||1}:null}})}function hd(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:",ka.getActivePinia());const ir=ka.defineStore("form",{state:()=>({formSteps:[],currentStep:1,onLastSubstep:!1,collections:{}}),actions:{setFormSteps(t){this.formSteps=dd(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,c=this.formSteps[t].controls.find(h=>h.id===l);c&&(Rl.includes(c.controlType)?Ne.set(c.value,s,u):c.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 iu{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,c=u.ORDEN,h=u.DESCRIPCION,g=u.CLAVE,w=u.ID_CUESTIONARIO,k=u.PREGUNTAS.filter(v=>v.ESTADO===1).map(v=>this.parseControl(v));return{title:s,order:c,text:h,controls:k,name:g,id:w}})}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,c=(h,g)=>g.controlType==="input_number"&&h!==null&&h!==void 0&&h!==""&&typeof h=="string";return c(u,o)?parseFloat(u.replaceAll(".","")):(l==="object"&&s.forEach(h=>{const g=u[h.code];c(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 vn=r.ref(!1);let Il;function md(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 gd(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 lu="ontouchstart"in window||window.navigator.maxTouchPoints>0;function pd(t){const o=t.toLowerCase(),l=gd(o),u=md(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 c=s.android||s.ios||s.bb||s.blackberry||s.ipad||s.iphone||s.ipod||s.kindle||s.playbook||s.silk||s["windows phone"];if(c===!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&&c!==!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"),vn.value===!0&&(Il={is:{...s}}),lu===!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 ou=navigator.userAgent||navigator.vendor||window.opera,vd={has:{touch:!1,webStorage:!1},within:{iframe:!1}},vt={userAgent:ou,is:pd(ou),has:{touch:lu},within:{iframe:window.self!==window.top}},Ml={install(t){const{$q:o}=t;vn.value===!0?(t.onSSRHydrated.push(()=>{Object.assign(o.platform,vt),vn.value=!1}),o.platform=r.reactive(this)):o.platform=this}};{let t;gi(vt.has,"webStorage",()=>{if(t!==void 0)return t;try{if(window.localStorage)return t=!0,!0}catch{}return t=!1,!1}),Object.assign(Ml,vt),vn.value===!0&&(Object.assign(Ml,Il,vd),Il=null)}function Ze(t){return r.markRaw(r.defineComponent(t))}function au(t){return r.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 c=t.entries();for(u=c.next();u.done!==!0;){if(o.has(u.value[0])!==!0)return!1;u=c.next()}for(c=t.entries(),u=c.next();u.done!==!0;){if(en(u.value[1],o.get(u.value[0]))!==!0)return!1;u=c.next()}return!0}if(t.constructor===Set){if(t.size!==o.size)return!1;const c=t.entries();for(u=c.next();u.done!==!0;){if(o.has(u.value[0])!==!0)return!1;u=c.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(c=>t[c]!==void 0);if(l=s.length,l!==Object.keys(o).filter(c=>o[c]!==void 0).length)return!1;for(u=l;u--!==0;){const c=s[u];if(en(t[c],o[c])!==!0)return!1}return!0}return t!==t&&o!==o}const uu={threshold:0,root:null,rootMargin:"0px"};function su(t,o,l){let u,s,c;typeof l=="function"?(u=l,s=uu,c=o.cfg===void 0):(u=l.handler,s=Object.assign({},uu,l.cfg),c=o.cfg===void 0||en(o.cfg,s)===!1),o.handler!==u&&(o.handler=u),c===!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)&&cu(t)}},s),o.observer.observe(t))}function cu(t){const o=t.__qvisible;o!==void 0&&(o.observer!==void 0&&o.observer.unobserve(t),delete t.__qvisible)}const _d=au({name:"intersection",mounted(t,{modifiers:o,value:l}){const u={once:o.once===!0};su(t,u,l),t.__qvisible=u},updated(t,o){const l=t.__qvisible;l!==void 0&&su(t,l,o.value)},beforeUnmount:cu});function _t(t,o){return t!==void 0&&t()||o}function bd(t,o){if(t!==void 0){const l=t();if(l!=null)return l.slice()}return o}function Mn(t,o){return t!==void 0?o.concat(t()):o}function yd(t,o){return t===void 0?o:o!==void 0?o.concat(t()):t()}function fu(t,o,l,u,s,c){o.key=u+s;const h=r.h(t,o,l);return s===!0?r.withDirectives(h,c()):h}const wd=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=r.ref(vn.value===!0?t.ssrPrerender:!1),s=r.computed(()=>t.root!==void 0||t.margin!==void 0||t.threshold!==void 0?{handler:w,cfg:{root:t.root,rootMargin:t.margin,threshold:t.threshold}}:w),c=r.computed(()=>t.disable!==!0&&(vn.value!==!0||t.once!==!0||t.ssrPrerender!==!0)),h=r.computed(()=>[[_d,s.value,void 0,{once:t.once}]]),g=r.computed(()=>`--q-transition-duration: ${t.transitionDuration}ms`);function w(v){u.value!==v.isIntersecting&&(u.value=v.isIntersecting,t.onVisibility!==void 0&&l("visibility",u.value))}function k(){if(u.value===!0)return[r.h("div",{key:"content",style:g.value},_t(o.default))];if(o.hidden!==void 0)return[r.h("div",{key:"hidden",style:g.value},o.hidden())]}return()=>{const v=t.transition?[r.h(r.Transition,{name:"q-transition--"+t.transition},k)]:k();return fu(t.tag,{class:"q-intersection"},v,"main",c.value,()=>h.value)}}}),Ll={xs:18,sm:24,md:32,lg:38,xl:46},pi={size:String};function vi(t,o=Ll){return r.computed(()=>t.size!==void 0?{fontSize:t.size in o?`${o[t.size]}px`:t.size}:null)}const Sd={size:{type:[String,Number],default:"1em"},color:String};function xd(t){return{cSize:r.computed(()=>t.size in Ll?`${Ll[t.size]}px`:t.size),classes:r.computed(()=>"q-spinner"+(t.color?` text-${t.color}`:""))}}const ql=Ze({name:"QSpinner",props:{...Sd,thickness:{type:Number,default:5}},setup(t){const{cSize:o,classes:l}=xd(t);return()=>r.h("svg",{class:l.value+" q-spinner-mat",width:o.value,height:o.value,viewBox:"25 25 50 50"},[r.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":t.thickness,"stroke-miterlimit":"10"})])}}),Cd={ratio:[String,Number]};function kd(t,o){return r.computed(()=>{const l=Number(t.ratio||(o!==void 0?o.value:void 0));return isNaN(l)!==!0&&l>0?{paddingBottom:`${100/l}%`}:null})}function Vl(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 du(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=r.getCurrentInstance();function l(){t!==null&&(clearTimeout(t),t=null)}return r.onDeactivated(l),r.onBeforeUnmount(l),{removeTimeout:l,registerTimeout(u,s){l(),Ir(o)===!1&&(t=setTimeout(()=>{t=null,u()},s))}}}const Ed=Ze({name:"QImg",props:{...Cd,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=r.ref(t.initialRatio),s=kd(t,u),c=r.getCurrentInstance(),{registerTimeout:h,removeTimeout:g}=_i(),{registerTimeout:w,removeTimeout:k}=_i(),v=r.computed(()=>t.placeholderSrc!==void 0?{src:t.placeholderSrc}:null),C=r.computed(()=>t.errorSrc!==void 0?{src:t.errorSrc,__qerror:!0}:null),E=[r.ref(null),r.ref(v.value)],y=r.ref(0),T=r.ref(!1),z=r.ref(!1),R=r.computed(()=>`q-img q-img--${t.noNativeMenu===!0?"no-":""}menu`),H=r.computed(()=>({width:t.width,height:t.height})),F=r.computed(()=>`q-img__image ${t.imgClass!==void 0?t.imgClass+" ":""}q-img__image--with${t.noTransition===!0?"out":""}-transition q-img__image--`),N=r.computed(()=>({...t.imgStyle,objectFit:t.fit,objectPosition:t.position}));function Q(){if(k(),t.loadingShowDelay===0){T.value=!0;return}w(()=>{T.value=!0},t.loadingShowDelay)}function G(){k(),T.value=!1}function j({target:A}){Ir(c)===!1&&(g(),u.value=A.naturalHeight===0?.5:A.naturalWidth/A.naturalHeight,K(A,1))}function K(A,te){te===1e3||Ir(c)===!0||(A.complete===!0?le(A):h(()=>{K(A,te+1)},50))}function le(A){Ir(c)!==!0&&(y.value=y.value^1,E[y.value].value=null,G(),A.getAttribute("__qerror")!=="true"&&(z.value=!1),l("load",A.currentSrc||A.src))}function V(A){g(),G(),z.value=!0,E[y.value].value=C.value,E[y.value^1].value=v.value,l("error",A)}function $(A){const te=E[A].value,P={key:"img_"+A,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===A?Object.assign(P,{class:P.class+"current",onLoad:j,onError:V}):P.class+="loaded",r.h("div",{class:"q-img__container absolute-full",key:"img"+A},r.h("img",P))}function Z(){return T.value===!1?r.h("div",{key:"content",class:"q-img__content absolute-full q-anchor--skip"},_t(o[z.value===!0?"error":"default"])):r.h("div",{key:"loading",class:"q-img__loading absolute-full flex flex-center"},o.loading!==void 0?o.loading():t.noSpinner===!0?void 0:[r.h(ql,{color:t.spinnerColor,size:t.spinnerSize})])}{let A=function(){r.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})};vn.value===!0?r.onMounted(A):A()}return()=>{const A=[];return s.value!==null&&A.push(r.h("div",{key:"filler",style:s.value})),E[0].value!==null&&A.push($(0)),E[1].value!==null&&A.push($(1)),A.push(r.h(r.Transition,{name:"q-transition--fade"},Z)),r.h("div",{key:"main",class:R.value,style:H.value,role:"img","aria-label":t.alt},A)}}}),hu="0 0 24 24",mu=t=>t,Pl=t=>`ionicons ${t}`,gu={"mdi-":t=>`mdi ${t}`,"icon-":mu,"bt-":t=>`bt ${t}`,"eva-":t=>`eva ${t}`,"ion-md":Pl,"ion-ios":Pl,"ion-logo":Pl,"iconfont ":mu,"ti-":t=>`themify-icon ${t}`,"bi-":t=>`bootstrap-icons ${t}`},pu={o_:"-outlined",r_:"-round",s_:"-sharp"},vu={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},Ad=new RegExp("^("+Object.keys(gu).join("|")+")"),Od=new RegExp("^("+Object.keys(pu).join("|")+")"),_u=new RegExp("^("+Object.keys(vu).join("|")+")"),Td=/^[Mm]\s?[-+]?\.?\d/,Bd=/^img:/,Rd=/^svguse:/,Id=/^ion-/,Md=/^(fa-(sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,bt=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}}=r.getCurrentInstance(),u=vi(t),s=r.computed(()=>"q-icon"+(t.left===!0?" on-left":"")+(t.right===!0?" on-right":"")+(t.color!==void 0?` text-${t.color}`:"")),c=r.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(Td.test(g)===!0){const[v,C=hu]=g.split("|");return{svg:!0,viewBox:C,nodes:v.split("&&").map(E=>{const[y,T,z]=E.split("@@");return r.h("path",{style:T,d:y,transform:z})})}}if(Bd.test(g)===!0)return{img:!0,src:g.substring(4)};if(Rd.test(g)===!0){const[v,C=hu]=g.split("|");return{svguse:!0,src:v.substring(7),viewBox:C}}let w=" ";const k=g.match(Ad);if(k!==null)h=gu[k[1]](g);else if(Md.test(g)===!0)h=g;else if(Id.test(g)===!0)h=`ionicons ion-${l.platform.is.ios===!0?"ios":"md"}${g.substring(3)}`;else if(_u.test(g)===!0){h="notranslate material-symbols";const v=g.match(_u);v!==null&&(g=g.substring(6),h+=vu[v[1]]),w=g}else{h="notranslate material-icons";const v=g.match(Od);v!==null&&(g=g.substring(2),h+=pu[v[1]]),w=g}return{cls:h,content:w}});return()=>{const h={class:s.value,style:u.value,"aria-hidden":"true",role:"presentation"};return c.value.none===!0?r.h(t.tag,h,_t(o.default)):c.value.img===!0?r.h(t.tag,h,Mn(o.default,[r.h("img",{src:c.value.src})])):c.value.svg===!0?r.h(t.tag,h,Mn(o.default,[r.h("svg",{viewBox:c.value.viewBox||"0 0 24 24"},c.value.nodes)])):c.value.svguse===!0?r.h(t.tag,h,Mn(o.default,[r.h("svg",{viewBox:c.value.viewBox},[r.h("use",{"xlink:href":c.value.src})])])):(c.value.cls!==void 0&&(h.class+=" "+c.value.cls),r.h(t.tag,h,Mn(o.default,[c.value.content])))}}}),Ld={class:"card-select-container"},qd=["onClick"],Vd={class:"check"},Pd={class:"row justify-center items-center",style:{height:"100%"}},Nd=["onClick"],Dd=r.defineComponent({__name:"CardsSelectControl",props:r.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=r.useModel(t,"modelValue"),l=t,{control:u}=r.toRefs(l);function s(g){if(u.value.multiple){let w=Ne.cloneDeep(o.value);g.exclusive?w=[g.value]:(w=w.filter(k=>{var v,C;return!((C=(v=u.value.options)==null?void 0:v.find(E=>E.value===k))!=null&&C.exclusive)}),w.includes(g.value)?w=w.filter(k=>k!==g.value):w.push(g.value)),o.value=w}else o.value=g.value}function c(g){return h(g)?"active":""}function h(g){let w;return u.value.multiple?w=(o.value||[]).includes(String(g.value)):w=o.value===g.value,w}return(g,w)=>{const k=r.resolveComponent("ControlLabel");return r.openBlock(),r.createElementBlock(r.Fragment,null,[r.unref(u).label?(r.openBlock(),r.createBlock(k,{key:0,label:r.unref(u).label},null,8,["label"])):r.createCommentVNode("",!0),r.createElementVNode("div",Ld,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(u).options,(v,C)=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:C},[v.image?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(`image-card ${c(v)}`),onClick:()=>s(v)},[r.createVNode(Ed,{src:v.image,height:"200px",width:"200px",fit:"fill",class:"image"},null,8,["src"]),r.createElementVNode("div",Vd,[r.createElementVNode("div",Pd,[h(v)?(r.openBlock(),r.createBlock(bt,{key:0,name:"check",size:"25px"})):r.createCommentVNode("",!0)])])],10,qd)):(r.openBlock(),r.createElementBlock("div",{key:1,class:r.normalizeClass(`card-option ${c(v)}`),onClick:()=>s(v)},[r.createElementVNode("span",null,r.toDisplayString(v.label),1)],10,Nd))],64))),128))])],64)}}}),st=(t,o)=>{const l=t.__vccOpts||t;for(const[u,s]of o)l[u]=s;return l},$d=st(Dd,[["__scopeId","data-v-148468d6"]]),lr={dark:{type:Boolean,default:null}};function or(t,o){return r.computed(()=>t.dark===null?o.dark.isActive:t.dark)}function Fd(t,o){const l=r.ref(null),u=r.computed(()=>t.disable===!0?null:r.h("span",{ref:l,class:"no-outline",tabindex:-1}));function s(c){const h=o.value;c!==void 0&&c.type.indexOf("key")===0?h!==null&&document.activeElement!==h&&h.contains(document.activeElement)===!0&&h.focus():l.value!==null&&(c===void 0||h!==null&&h.contains(c.target)===!0)&&l.value.focus()}return{refocusTargetEl:u,refocusTarget:s}}const Nl={name:String};function Ud(t={}){return(o,l,u)=>{o[l](r.h("input",{class:"hidden"+(u||""),...t.value}))}}function bu(t){return r.computed(()=>t.name||t.for)}const zd={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 Hd(){}function yu(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 Wd(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 Dt(t){t.cancelable!==!1&&t.preventDefault()}function Ke(t){t.cancelable!==!1&&t.preventDefault(),t.stopPropagation()}function Dl(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 wu(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 Su={...lr,...pi,...Nl,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]},xu=["update:modelValue"];function Cu(t,o){const{props:l,slots:u,emit:s,proxy:c}=r.getCurrentInstance(),{$q:h}=c,g=or(l,h),w=r.ref(null),{refocusTargetEl:k,refocusTarget:v}=Fd(l,w),C=vi(l,zd),E=r.computed(()=>l.val!==void 0&&Array.isArray(l.modelValue)),y=r.computed(()=>{const A=r.toRaw(l.val);return E.value===!0?l.modelValue.findIndex(te=>r.toRaw(te)===A):-1}),T=r.computed(()=>E.value===!0?y.value!==-1:r.toRaw(l.modelValue)===r.toRaw(l.trueValue)),z=r.computed(()=>E.value===!0?y.value===-1:r.toRaw(l.modelValue)===r.toRaw(l.falseValue)),R=r.computed(()=>T.value===!1&&z.value===!1),H=r.computed(()=>l.disable===!0?-1:l.tabindex||0),F=r.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=r.computed(()=>{const A=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--${A}${te}`}),Q=r.computed(()=>{const A={type:"checkbox"};return l.name!==void 0&&Object.assign(A,{".checked":T.value,"^checked":T.value===!0?"checked":void 0,name:l.name,value:E.value===!0?l.val:l.trueValue}),A}),G=Ud(Q),j=r.computed(()=>{const A={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&&(A["aria-disabled"]="true"),A});function K(A){A!==void 0&&(Ke(A),v(A)),l.disable!==!0&&s("update:modelValue",le(),A)}function le(){if(E.value===!0){if(T.value===!0){const A=l.modelValue.slice();return A.splice(y.value,1),A}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(A){(A.keyCode===13||A.keyCode===32)&&Ke(A)}function $(A){(A.keyCode===13||A.keyCode===32)&&K(A)}const Z=o(T,R);return Object.assign(c,{toggle:K}),()=>{const A=Z();l.disable!==!0&&G(A,"unshift",` q-${t}__native absolute q-ma-none q-pa-none`);const te=[r.h("div",{class:N.value,style:C.value,"aria-hidden":"true"},A)];k.value!==null&&te.push(k.value);const P=l.label!==void 0?Mn(u.default,[l.label]):_t(u.default);return P!==void 0&&te.push(r.h("div",{class:`q-${t}__label q-anchor--skip`},P)),r.h("div",{ref:w,class:F.value,...j.value,onClick:K,onKeydown:V,onKeyup:$},te)}}const Gd=r.h("div",{key:"svg",class:"q-checkbox__bg absolute"},[r.h("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24"},[r.h("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),r.h("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]),ku=Ze({name:"QCheckbox",props:Su,emits:xu,setup(t){function o(l,u){const s=r.computed(()=>(l.value===!0?t.checkedIcon:u.value===!0?t.indeterminateIcon:t.uncheckedIcon)||null);return()=>s.value!==null?[r.h("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[r.h(bt,{class:"q-checkbox__icon",name:s.value})])]:[Gd]}return Cu("checkbox",o)}}),Eu=r.defineComponent({__name:"SimpleCheckbox",props:r.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=r.useModel(t,"modelValue");return(l,u)=>(r.openBlock(),r.createBlock(ku,{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"]))}}),Kd=Ze({name:"QToggle",props:{...Su,icon:String,iconColor:String},emits:xu,setup(t){function o(l,u){const s=r.computed(()=>(l.value===!0?t.checkedIcon:u.value===!0?t.indeterminateIcon:t.uncheckedIcon)||t.icon),c=r.computed(()=>l.value===!0?t.iconColor:null);return()=>[r.h("div",{class:"q-toggle__track"}),r.h("div",{class:"q-toggle__thumb absolute flex flex-center no-wrap"},s.value!==void 0?[r.h(bt,{name:s.value,color:c.value})]:void 0)]}return Cu("toggle",o)}}),jd=r.defineComponent({__name:"SimpleSwitch",props:r.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=r.useModel(t,"modelValue");return(l,u)=>(r.openBlock(),r.createBlock(Kd,{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 $l,bi=0;const Je=new Array(256);for(let t=0;t<256;t++)Je[t]=(t+256).toString(16).substring(1);const Yd=(()=>{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}})(),Au=4096;function Fl(){($l===void 0||bi+16>Au)&&(bi=0,$l=Yd(Au));const t=Array.prototype.slice.call($l,bi,bi+=16);return t[6]=t[6]&15|64,t[8]=t[8]&63|128,Je[t[0]]+Je[t[1]]+Je[t[2]]+Je[t[3]]+"-"+Je[t[4]]+Je[t[5]]+"-"+Je[t[6]]+Je[t[7]]+"-"+Je[t[8]]+Je[t[9]]+"-"+Je[t[10]]+Je[t[11]]+Je[t[12]]+Je[t[13]]+Je[t[14]]+Je[t[15]]}function Qd(t){return t??null}function Ou(t,o){return t??(o===!0?`f_${Fl()}`:null)}function Zd({getValue:t,required:o=!0}={}){if(vn.value===!0){const l=t!==void 0?r.ref(Qd(t())):r.ref(null);return o===!0&&l.value===null&&r.onMounted(()=>{l.value=`f_${Fl()}`}),t!==void 0&&r.watch(t,u=>{l.value=Ou(u,o)}),l}return t!==void 0?r.computed(()=>Ou(t(),o)):r.ref(`f_${Fl()}`)}const Tu=/^on[A-Z]/;function Xd(){const{attrs:t,vnode:o}=r.getCurrentInstance(),l={listeners:r.ref({}),attributes:r.ref({})};function u(){const s={},c={};for(const h in t)h!=="class"&&h!=="style"&&Tu.test(h)===!1&&(s[h]=t[h]);for(const h in o.props)Tu.test(h)===!0&&(c[h]=o.props[h]);l.attributes.value=s,l.listeners.value=c}return r.onBeforeUpdate(u),u(),l}const Jd="_q_",eh="_q_fo_";function th({validate:t,resetValidation:o,requiresQForm:l}){const u=r.inject(eh,!1);if(u!==!1){const{props:s,proxy:c}=r.getCurrentInstance();Object.assign(c,{validate:t,resetValidation:o}),r.watch(()=>s.disable,h=>{h===!0?(typeof o=="function"&&o(),u.unbindComponent(c)):u.bindComponent(c)}),r.onMounted(()=>{s.disable!==!0&&u.bindComponent(c)}),r.onBeforeUnmount(()=>{s.disable!==!0&&u.unbindComponent(c)})}else l===!0&&console.error("Parent QForm not found on useFormChild()!")}const Bu=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,Ru=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,Iu=/^#([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)\)$/,Ul={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=>Bu.test(t),hexaColor:t=>Ru.test(t),hexOrHexaColor:t=>Iu.test(t),rgbColor:t=>yi.test(t),rgbaColor:t=>wi.test(t),rgbOrRgbaColor:t=>yi.test(t)||wi.test(t),hexOrRgbColor:t=>Bu.test(t)||yi.test(t),hexaOrRgbaColor:t=>Ru.test(t)||wi.test(t),anyColor:t=>Iu.test(t)||yi.test(t)||wi.test(t)};function Mu(t,o=250,l){let u=null;function s(){const c=arguments,h=()=>{u=null,t.apply(this,c)};u!==null&&clearTimeout(u),u=setTimeout(h,o)}return s.cancel=()=>{u!==null&&clearTimeout(u)},s}const nh=[!0,!1,"ondemand"],rh={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:t=>nh.includes(t)}};function ih(t,o){const{props:l,proxy:u}=r.getCurrentInstance(),s=r.ref(!1),c=r.ref(null),h=r.ref(!1);th({validate:z,resetValidation:T});let g=0,w;const k=r.computed(()=>l.rules!==void 0&&l.rules!==null&&l.rules.length!==0),v=r.computed(()=>l.disable!==!0&&k.value===!0&&o.value===!1),C=r.computed(()=>l.error===!0||s.value===!0),E=r.computed(()=>typeof l.errorMessage=="string"&&l.errorMessage.length!==0?l.errorMessage:c.value);r.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()}r.watch(()=>l.reactiveRules,H=>{H===!0?w===void 0&&(w=r.watch(()=>l.rules,y,{immediate:!0,deep:!0})):w!==void 0&&(w(),w=void 0)},{immediate:!0}),r.watch(()=>l.lazyRules,y),r.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,c.value=null,R.cancel()}function z(H=l.modelValue){if(l.disable===!0||k.value===!1)return!0;const F=++g,N=o.value!==!0?()=>{h.value=!0}:()=>{},Q=(j,K)=>{j===!0&&N(),s.value=j,c.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,Ul):typeof K=="string"&&Ul[K]!==void 0&&(le=Ul[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=Mu(z,0);return r.onBeforeUnmount(()=>{w!==void 0&&w(),R.cancel()}),Object.assign(u,{resetValidation:T,validate:z}),gi(u,"hasError",()=>C.value),{isDirtyModel:h,hasRules:k,hasError:C,errorMessage:E,validate:z,resetValidation:T}}let Ln=[],Mr=[];function Lu(t){Mr=Mr.filter(o=>o!==t)}function lh(t){Lu(t),Mr.push(t)}function qu(t){Lu(t),Mr.length===0&&Ln.length!==0&&(Ln[Ln.length-1](),Ln=[])}function Si(t){Mr.length===0?t():Ln.push(t)}function oh(t){Ln=Ln.filter(o=>o!==t)}function Lr(t){return t!=null&&(""+t).length!==0}const xi={...{...lr,...rh,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]},zl=["update:modelValue","clear","focus","blur"];function Hl({requiredForAttr:t=!0,tagProp:o,changeEvent:l=!1}={}){const{props:u,proxy:s}=r.getCurrentInstance(),c=or(u,s.$q),h=Zd({required:t,getValue:()=>u.for});return{requiredForAttr:t,changeEvent:l,tag:o===!0?r.computed(()=>u.tag):{value:"label"},isDark:c,editable:r.computed(()=>u.disable!==!0&&u.readonly!==!0),innerLoading:r.ref(!1),focused:r.ref(!1),hasPopupOpen:!1,splitAttrs:Xd(),targetUid:h,rootRef:r.ref(null),targetRef:r.ref(null),controlRef:r.ref(null)}}function Wl(t){const{props:o,emit:l,slots:u,attrs:s,proxy:c}=r.getCurrentInstance(),{$q:h}=c;let g=null;t.hasValue===void 0&&(t.hasValue=r.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=r.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:w,hasRules:k,hasError:v,errorMessage:C,resetValidation:E}=ih(t.focused,t.innerLoading),y=t.floatingLabel!==void 0?r.computed(()=>o.stackLabel===!0||t.focused.value===!0||t.floatingLabel.value===!0):r.computed(()=>o.stackLabel===!0||t.focused.value===!0||t.hasValue.value===!0),T=r.computed(()=>o.bottomSlots===!0||o.hint!==void 0||k.value===!0||o.counter===!0||o.error!==null),z=r.computed(()=>o.filled===!0?"filled":o.outlined===!0?"outlined":o.borderless===!0?"borderless":o.standout?"standout":"standard"),R=r.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=r.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=r.computed(()=>o.labelSlot===!0||o.label!==void 0),N=r.computed(()=>"q-field__label no-pointer-events absolute ellipsis"+(o.labelColor!==void 0&&v.value!==!0?` text-${o.labelColor}`:"")),Q=r.computed(()=>({id:t.targetUid.value,editable:t.editable.value,focused:t.focused.value,floatingLabel:y.value,modelValue:o.modelValue,emitValue:t.emitValue})),G=r.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(){oh(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),r.nextTick(()=>{const se=w.value;E(),w.value=se})}function A(W){[13,32].includes(W.keyCode)&&Z(W)}function te(){const W=[];return u.prepend!==void 0&&W.push(r.h("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:Dt},u.prepend())),W.push(r.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",[r.h(bt,{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():[r.h(ql,{color:o.color})])):o.clearable===!0&&t.hasValue.value===!0&&t.editable.value===!0&&W.push(ue("inner-clearable-append",[r.h(bt,{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:A,onClick:Z})])),u.append!==void 0&&W.push(r.h("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:Dt},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(r.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(r.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(r.h("div",{class:N.value},_t(u.label,o.label))),o.suffix!==void 0&&o.suffix!==null&&W.push(r.h("div",{class:"q-field__suffix no-pointer-events row items-center"},o.suffix)),W.concat(_t(u.default))}function ae(){let W,se;v.value===!0?C.value!==null?(W=[r.h("div",{role:"alert"},C.value)],se=`q--slot-error-${C.value}`):(W=_t(u.error),se="q--slot-error"):(o.hideHint!==!0||t.focused.value===!0)&&(o.hint!==void 0?(W=[r.h("div",o.hint)],se=`q--slot-hint-${o.hint}`):(W=_t(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=r.h("div",{key:se,class:"q-field__messages col"},W);return r.h("div",{class:"q-field__bottom row items-start q-field__bottom--"+(o.hideBottomSpace!==!0?"animated":"stale"),onClick:Dt},[o.hideBottomSpace===!0?B:r.h(r.Transition,{name:"q-transition--field-message"},()=>B),ge===!0?r.h("div",{class:"q-field__counter"},u.counter!==void 0?u.counter():t.computedCounter.value):null])}function ue(W,se){return se===null?null:r.h("div",{key:W,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},se)}let fe=!1;return r.onDeactivated(()=>{fe=!0}),r.onActivated(()=>{fe===!0&&o.autofocus===!0&&c.focus()}),o.autofocus===!0&&r.onMounted(()=>{c.focus()}),r.onBeforeUnmount(()=>{g!==null&&clearTimeout(g)}),Object.assign(c,{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 r.h(t.tag.value,{ref:t.rootRef,class:[R.value,s.class],style:s.style,...se},[u.before!==void 0?r.h("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:Dt},u.before()):null,r.h("div",{class:"q-field__inner relative-position col self-stretch"},[r.h("div",{ref:t.controlRef,class:H.value,tabindex:-1,...t.controlEvents},te()),T.value===!0?ae():null]),u.after!==void 0?r.h("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:Dt},u.after()):null])}}function Gl(t){return t!==Object(t)||t.isComposing===!0||t.qKeyEvent===!0}function qn(t,o){return Gl(t)===!0?!1:[].concat(o).includes(t.keyCode)}const Vu={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()}},Pu=Object.keys(Ci);Pu.forEach(t=>{Ci[t].regex=new RegExp(Ci[t].pattern)});const ah=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+Pu.join("")+"])|(.)","g"),Nu=/[.*+?^${}()|[\]\\]/g,We="",uh={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean};function sh(t,o,l,u){let s,c,h,g,w,k;const v=r.ref(null),C=r.ref(y());function E(){return t.autogrow===!0||["textarea","text","search","url","tel","password"].includes(t.type)}r.watch(()=>t.type+t.autogrow,z),r.watch(()=>t.mask,V=>{if(V!==void 0)R(C.value,!0);else{const $=K(C.value);z(),t.modelValue!==$&&o("update:modelValue",$)}}),r.watch(()=>t.fillMask+t.reverseFillMask,()=>{v.value===!0&&R(C.value,!0)}),r.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 A=Z.indexOf(We);if(A!==-1){for(let te=V-Z.length;te>0;te--)$+=We;Z=Z.slice(0,A)+$+Z.slice(A)}return Z}function z(){if(v.value=t.mask!==void 0&&t.mask.length!==0&&E(),v.value===!1){g=void 0,s="",c="";return}const V=Vu[t.mask]===void 0?t.mask:Vu[t.mask],$=typeof t.fillMask=="string"&&t.fillMask.length!==0?t.fillMask.slice(0,1):"_",Z=$.replace(Nu,"\\$&"),A=[],te=[],P=[];let ae=t.reverseFillMask===!0,ue="",fe="";V.replace(ah,(B,O,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),A.push("([^"+ue+"]+)?"+ue+"?");else{const U=O!==void 0?O:_e;ue=U==="\\"?"\\\\\\\\":U.replace(Nu,"\\\\$&"),P.push(U),A.push("([^"+ue+"]+)?"+ue+"?")}});const W=new RegExp("^"+A.join("")+"("+(ue===""?".":"[^"+ue+"]")+"+)?"+(ue===""?"":"["+ue+"]*")+"$"),se=te.length-1,ge=te.map((B,O)=>O===0&&t.reverseFillMask===!0?new RegExp("^"+Z+"*"+B):O===se?new RegExp("^"+B+"("+(fe===""?".":fe)+"+)?"+(t.reverseFillMask===!0?"$":Z+"*")):new RegExp("^"+B));h=P,g=B=>{const O=W.exec(t.reverseFillMask===!0?B:B.slice(0,P.length+1));O!==null&&(B=O.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(""),c=s.split(We).join($)}function R(V,$,Z){const A=u.value,te=A.selectionEnd,P=A.value.length-te,ae=K(V);$===!0&&z();const ue=G(ae),fe=t.fillMask!==!1?le(ue):ue,W=C.value!==fe;A.value!==fe&&(A.value=fe),W===!0&&(C.value=fe),document.activeElement===A&&r.nextTick(()=>{if(fe===c){const ge=t.reverseFillMask===!0?c.length:0;A.setSelectionRange(ge,ge,"forward");return}if(Z==="insertFromPaste"&&t.reverseFillMask!==!0){const ge=A.selectionEnd;let B=te-1;for(let O=w;O<=B&&O<ge;O++)s[O]!==We&&B++;F.right(A,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===c?0:Math.min(ue.length,P)+1))+1:te;A.setSelectionRange(ge,ge,"forward");return}if(t.reverseFillMask===!0)if(W===!0){const ge=Math.max(0,fe.length-(fe===c?0:Math.min(ue.length,P+1)));ge===1&&te===1?A.setSelectionRange(ge,ge,"forward"):F.rightReverse(A,ge)}else{const ge=fe.length-P;A.setSelectionRange(ge,ge,"backward")}else if(W===!0){const ge=Math.max(0,s.indexOf(We),Math.min(ue.length,te)-1);F.right(A,ge)}else{const ge=te-1;F.right(A,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 A=G(K(V.value));$=Math.max(0,s.indexOf(We),Math.min(A.length,$)),w=$,V.setSelectionRange($,Z,"forward")}const F={left(V,$){const Z=s.slice($-1).indexOf(We)===-1;let A=Math.max(0,$-1);for(;A>=0;A--)if(s[A]===We){$=A,Z===!0&&$++;break}if(A<0&&s[$]!==void 0&&s[$]!==We)return F.right(V,0);$>=0&&V.setSelectionRange($,$,"backward")},right(V,$){const Z=V.value.length;let A=Math.min(Z,$+1);for(;A<=Z;A++)if(s[A]===We){$=A;break}else s[A-1]===We&&($=A);if(A>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 A=Math.max(0,$-1);for(;A>=0;A--)if(Z[A-1]===We){$=A;break}else if(Z[A]===We&&($=A,A===0))break;if(A<0&&Z[$]!==void 0&&Z[$]!==We)return F.rightReverse(V,0);$>=0&&V.setSelectionRange($,$,"backward")},rightReverse(V,$){const Z=V.value.length,A=T(Z),te=A.slice(0,$+1).indexOf(We)===-1;let P=Math.min(Z,$+1);for(;P<=Z;P++)if(A[P-1]===We){$=P,$>0&&te===!0&&$--;break}if(P>Z&&A[$-1]!==void 0&&A[$-1]!==We)return F.leftReverse(V,Z);V.setSelectionRange($,$,"forward")}};function N(V){o("click",V),k=void 0}function Q(V){if(o("keydown",V),Gl(V)===!0||V.altKey===!0)return;const $=u.value,Z=$.selectionStart,A=$.selectionEnd;if(V.shiftKey||(k=void 0),V.keyCode===37||V.keyCode===39){V.shiftKey&&k===void 0&&(k=$.selectionDirection==="forward"?Z:A);const te=F[(V.keyCode===39?"right":"left")+(t.reverseFillMask===!0?"Reverse":"")];if(V.preventDefault(),te($,k===Z?A:Z),V.shiftKey){const P=$.selectionStart;$.setSelectionRange(Math.min(k,P),Math.max(k,P),"forward")}}else V.keyCode===8&&t.reverseFillMask!==!0&&Z===A?(F.left($,Z),$.setSelectionRange($.selectionStart,A,"backward")):V.keyCode===46&&t.reverseFillMask===!0&&Z===A&&(F.rightReverse($,A),$.setSelectionRange(Z,$.selectionEnd,"forward"))}function G(V){if(V==null||V==="")return"";if(t.reverseFillMask===!0)return j(V);const $=h;let Z=0,A="";for(let te=0;te<$.length;te++){const P=V[Z],ae=$[te];if(typeof ae=="string")A+=ae,P===ae&&Z++;else if(P!==void 0&&ae.regex.test(P))A+=ae.transform!==void 0?ae.transform(P):P,Z++;else return A}return A}function j(V){const $=h,Z=s.indexOf(We);let A=V.length-1,te="";for(let P=$.length-1;P>=0&&A!==-1;P--){const ae=$[P];let ue=V[A];if(typeof ae=="string")te=ae+te,ue===ae&&A--;else if(ue!==void 0&&ae.regex.test(ue))do te=(ae.transform!==void 0?ae.transform(ue):ue)+te,A--,ue=V[A];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 c.length-V.length<=0?V:t.reverseFillMask===!0&&V.length!==0?c.slice(0,-V.length)+V:V+c.slice(V.length)}return{innerValue:C,hasMask:v,moveCursorForPaste:H,updateMaskValue:R,onMaskedKeydown:Q,onMaskedClick:N}}function ch(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(c=>{s.items.add(c)}),{files:s.files}}catch{return{files:void 0}}}return r.computed(()=>{if(t.type==="file")return l()})}const fh=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,dh=/[\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,hh=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,mh=/[a-z0-9_ -]$/i;function Du(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"&&(vt.is.firefox===!0?mh.test(l.data)===!1:fh.test(l.data)===!0||dh.test(l.data)===!0||hh.test(l.data)===!0)===!0&&(l.target.qComposing=!0)}}const $u=Ze({name:"QInput",inheritAttrs:!1,props:{...xi,...uh,...Nl,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:[...zl,"paste","change","keydown","click","animationend"],setup(t,{emit:o,attrs:l}){const{proxy:u}=r.getCurrentInstance(),{$q:s}=u,c={};let h=NaN,g,w,k=null,v;const C=r.ref(null),E=bu(t),{innerValue:y,hasMask:T,moveCursorForPaste:z,updateMaskValue:R,onMaskedKeydown:H,onMaskedClick:F}=sh(t,o,ue,C),N=ch(t),Q=r.computed(()=>Lr(y.value)),G=Du(P),j=Hl({changeEvent:!0}),K=r.computed(()=>t.type==="textarea"||t.autogrow===!0),le=r.computed(()=>K.value===!0||["text","search","url","tel","password"].includes(t.type)),V=r.computed(()=>{const O={...j.splitAttrs.listeners.value,onInput:P,onPaste:te,onChange:W,onBlur:se,onFocus:Yt};return O.onCompositionstart=O.onCompositionupdate=O.onCompositionend=G,T.value===!0&&(O.onKeydown=H,O.onClick=F),t.autogrow===!0&&(O.onAnimationend=ae),O}),$=r.computed(()=>{const O={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&&(O.type=t.type),t.autogrow===!0&&(O.rows=1),O});r.watch(()=>t.type,()=>{C.value&&(C.value.value=t.modelValue)}),r.watch(()=>t.modelValue,O=>{if(T.value===!0){if(w===!0&&(w=!1,String(O)===h))return;R(O)}else y.value!==O&&(y.value=O,t.type==="number"&&c.hasOwnProperty("value")===!0&&(g===!0?g=!1:delete c.value));t.autogrow===!0&&r.nextTick(fe)}),r.watch(()=>t.autogrow,O=>{O===!0?r.nextTick(fe):C.value!==null&&l.rows>0&&(C.value.style.height="auto")}),r.watch(()=>t.dense,()=>{t.autogrow===!0&&r.nextTick(fe)});function Z(){Si(()=>{const O=document.activeElement;C.value!==null&&C.value!==O&&(O===null||O.id!==j.targetUid.value)&&C.value.focus({preventScroll:!0})})}function A(){C.value!==null&&C.value.select()}function te(O){if(T.value===!0&&t.reverseFillMask!==!0){const ie=O.target;z(ie,ie.selectionStart,ie.selectionEnd)}o("paste",O)}function P(O){if(!O||!O.target)return;if(t.type==="file"){o("update:modelValue",O.target.files);return}const ie=O.target.value;if(O.target.qComposing===!0){c.value=ie;return}if(T.value===!0)R(ie,!1,O.inputType);else if(ue(ie),le.value===!0&&O.target===document.activeElement){const{selectionStart:ve,selectionEnd:_e}=O.target;ve!==void 0&&_e!==void 0&&r.nextTick(()=>{O.target===document.activeElement&&ie.indexOf(O.target.value)===0&&O.target.setSelectionRange(ve,_e)})}t.autogrow===!0&&fe()}function ae(O){o("animationend",O),fe()}function ue(O,ie){v=()=>{k=null,t.type!=="number"&&c.hasOwnProperty("value")===!0&&delete c.value,t.modelValue!==O&&h!==O&&(h=O,ie===!0&&(w=!0),o("update:modelValue",O),r.nextTick(()=>{h===O&&(h=NaN)})),v=void 0},t.type==="number"&&(g=!0,c.value=O),t.debounce!==void 0?(k!==null&&clearTimeout(k),c.value=O,k=setTimeout(v,t.debounce)):v()}function fe(){requestAnimationFrame(()=>{const O=C.value;if(O!==null){const ie=O.parentNode.style,{scrollTop:ve}=O,{overflowY:_e,maxHeight:U}=s.platform.is.firefox===!0?{}:window.getComputedStyle(O),ne=_e!==void 0&&_e!=="scroll";ne===!0&&(O.style.overflowY="hidden"),ie.marginBottom=O.scrollHeight-1+"px",O.style.height="1px",O.style.height=O.scrollHeight+"px",ne===!0&&(O.style.overflowY=parseInt(U,10)<O.scrollHeight?"auto":"hidden"),ie.marginBottom="",O.scrollTop=ve}})}function W(O){G(O),k!==null&&(clearTimeout(k),k=null),v!==void 0&&v(),o("change",O.target.value)}function se(O){O!==void 0&&Yt(O),k!==null&&(clearTimeout(k),k=null),v!==void 0&&v(),g=!1,w=!1,delete c.value,t.type!=="file"&&setTimeout(()=>{C.value!==null&&(C.value.value=y.value!==void 0?y.value:"")})}function ge(){return c.hasOwnProperty("value")===!0?c.value:y.value!==void 0?y.value:""}r.onBeforeUnmount(()=>{se()}),r.onMounted(()=>{t.autogrow===!0&&fe()}),Object.assign(j,{innerValue:y,fieldClass:r.computed(()=>`q-${K.value===!0?"textarea":"input"}`+(t.autogrow===!0?" q-textarea--autogrow":"")),hasShadow:r.computed(()=>t.type!=="file"&&typeof t.shadowText=="string"&&t.shadowText.length!==0),inputRef:C,emitValue:ue,hasValue:Q,floatingLabel:r.computed(()=>Q.value===!0&&(t.type!=="number"||isNaN(y.value)===!1)||Lr(t.displayValue)),getControl:()=>r.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:()=>r.h("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(K.value===!0?"":" text-no-wrap")},[r.h("span",{class:"invisible"},ge()),r.h("span",t.shadowText)])});const B=Wl(j);return Object.assign(u,{focus:Z,select:A,getNativeElement:()=>C.value}),gi(u,"nativeEl",()=>C.value),B}}),ki=Ze({name:"QCard",props:{...lr,tag:{type:String,default:"div"},square:Boolean,flat:Boolean,bordered:Boolean},setup(t,{slots:o}){const{proxy:{$q:l}}=r.getCurrentInstance(),u=or(t,l),s=r.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()=>r.h(t.tag,{class:s.value},_t(o.default))}}),gh=r.defineComponent({__name:"WinInput",props:r.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=r.useModel(t,"modelValue"),u=t,s=r.ref(!1),c=r.computed(()=>u.transparent?"glass-card":"win-card"),h=r.computed(()=>u.label===""?void 0:u.label),g=r.computed(()=>{let y="width: 100%; padding-left: 10px; padding-right: 10px;";return u.inputHeight&&(y+="height: "+u.inputHeight),y}),w=r.computed(()=>l.value||s.value?"17.5px":"15px"),k=r.ref(null);function v(){k.value.focus()}function C(){s.value=!0}function E(){s.value=!1}return o({focus:v}),(y,T)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createVNode(ki,{onClick:v,class:r.normalizeClass(`${c.value} row items-center ${l.value&&y.label||s.value&&y.label?"q-pt-md":""} `),style:r.normalizeStyle({minHeight:y.height,width:y.width,maxWidth:"calc(100vw - 32px)",minWidth:y.minWidth,margin:"auto"})},{default:r.withCtx(()=>[r.renderSlot(y.$slots,"fixed-label",{class:"self-start"}),r.createVNode($u,{modelValue:l.value,"onUpdate:modelValue":T[0]||(T[0]=z=>l.value=z),ref_key:"inputRef",ref:k,"label-color":"black","input-class":`text-black ${h.value?"":"text-center ww-title"}`,"input-style":y.inputStyle,style:r.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:r.withCtx(()=>[!y.label||y.label!=""?(r.openBlock(),r.createElementBlock("div",{key:0,style:r.normalizeStyle(`padding-bottom: 30px; transition: 0.5s ease; font-size: ${w.value};`+y.labelStyle)},r.toDisplayString(y.label)+" "+r.toDisplayString(y.required&&!y.readonly?"*":""),5)):r.createCommentVNode("",!0)]),append:r.withCtx(()=>[r.renderSlot(y.$slots,"append")]),_:3},8,["modelValue","input-class","input-style","style","readonly","mask","prefix","label","type","suffix","counter","maxlength","rules","placeholder"]),r.renderSlot(y.$slots,"bottom")]),_:3},8,["class","style"]),y.hint?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(`text-${y.hintOptions.position} text-${y.hintOptions.color} text-caption q-mt-xl q-pt-xl q-pl-sm`)},r.toDisplayString(y.hint),3)):r.createCommentVNode("",!0)],64))}}),ph={class:"ww-subtitle text-center q-mb-md text-grey-9",style:{"font-weight":"600"}},vh=r.defineComponent({__name:"ControlLabel",props:{label:{}},setup(t){return(o,l)=>(r.openBlock(),r.createElementBlock("div",ph,r.toDisplayString(o.label),1))}}),_h={style:{"max-width":"400px"},class:"text-center"},bh={style:{"font-size":"16px"}},yh={style:{"font-size":"16px"}},Kl=st(r.defineComponent({__name:"InputControl",props:r.mergeModels({control:{},innerLabel:{type:Boolean,default:!1}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=t,l=r.ref(null),u=r.computed(()=>{var c;return(c=o.control.controlType)==null?void 0:c.split("_")[1]}),s=r.useModel(t,"modelValue");return r.onMounted(()=>{var c;(c=l.value)==null||c.focus()}),(c,h)=>(r.openBlock(),r.createElementBlock("div",_h,[!c.innerLabel&&c.control.label?(r.openBlock(),r.createBlock(vh,{key:0,label:c.control.label},null,8,["label"])):r.createCommentVNode("",!0),r.createVNode(gh,{modelValue:s.value,"onUpdate:modelValue":h[0]||(h[0]=g=>s.value=g),width:"250px",mask:u.value==="number"?"###.###.###.###.###":void 0,label:c.innerLabel?c.control.label:void 0,inputStyle:{textAlign:(u.value==="number","center")},ref_key:"inputRef",ref:l},r.createSlots({_:2},[c.control.prefix?{name:"prepend",fn:r.withCtx(()=>[r.createElementVNode("span",bh,r.toDisplayString(c.control.prefix),1)]),key:"0"}:void 0,c.control.suffix?{name:"append",fn:r.withCtx(()=>[r.createElementVNode("span",yh,r.toDisplayString(c.control.suffix),1)]),key:"1"}:void 0]),1032,["modelValue","mask","label","inputStyle"])]))}}),[["__scopeId","data-v-8f5284d3"]]);function jl(t,o){const l=t.style;for(const u in o)l[u]=o[u]}function wh(t){if(t==null)return;if(typeof t=="string")try{return document.querySelector(t)||void 0}catch{return}const o=r.unref(t);if(o)return o.$el||o}function Fu(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 Sh(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 Uu(t,o,l,u){l.modifiers.stop===!0&&Yt(t);const s=l.modifiers.color;let c=l.modifiers.center;c=c===!0||u===!0;const h=document.createElement("span"),g=document.createElement("span"),w=yu(t),{left:k,top:v,width:C,height:E}=o.getBoundingClientRect(),y=Math.sqrt(C*C+E*E),T=y/2,z=`${(C-y)/2}px`,R=c?z:`${w.left-k-T}px`,H=`${(E-y)/2}px`,F=c?H:`${w.top-v-T}px`;g.className="q-ripple__inner",jl(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 zu(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 Hu=au({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")&&Uu(s,t,u,s.qKeyEvent===!0)},keystart:Sh(s=>{u.enabled===!0&&s.qSkipRipple!==!0&&qn(s,u.modifiers.keyCodes)===!0&&s.type===`key${u.modifiers.early===!0?"down":"up"}`&&Uu(s,t,u,!0)},300)};zu(u,o),t.__qripple=u,Dl(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&&zu(l,o))}},beforeUnmount(t){const o=t.__qripple;o!==void 0&&(o.abort.forEach(l=>{l()}),wu(o,"main"),delete t._qripple)}}),Wu={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},xh=Object.keys(Wu),Ch={align:{type:String,validator:t=>xh.includes(t)}};function kh(t){return r.computed(()=>{const o=t.align===void 0?t.vertical===!0?"stretch":"left":t.align;return`${t.vertical===!0?"items":"justify"}-${Wu[o]}`})}function Gu(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}function Ku(t,o){return(t.aliasOf||t)===(o.aliasOf||o)}function Eh(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((c,h)=>c!==s[h]))return!1}return!0}function ju(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 Ah(t,o){return Array.isArray(t)===!0?ju(t,o):Array.isArray(o)===!0?ju(o,t):t===o}function Oh(t,o){if(Object.keys(t).length!==Object.keys(o).length)return!1;for(const l in t)if(Ah(t[l],o[l])===!1)return!1;return!0}const Yu={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},Th={...Yu,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function Qu({fallbackTag:t,useDisableForRouterLinkProps:o=!0}={}){const l=r.getCurrentInstance(),{props:u,proxy:s,emit:c}=l,h=du(l),g=r.computed(()=>u.disable!==!0&&u.href!==void 0),w=o===!0?r.computed(()=>h===!0&&u.disable!==!0&&g.value!==!0&&u.to!==void 0&&u.to!==null&&u.to!==""):r.computed(()=>h===!0&&g.value!==!0&&u.to!==void 0&&u.to!==null&&u.to!==""),k=r.computed(()=>w.value===!0?F(u.to):null),v=r.computed(()=>k.value!==null),C=r.computed(()=>g.value===!0||v.value===!0),E=r.computed(()=>u.type==="a"||C.value===!0?"a":u.tag||t||"div"),y=r.computed(()=>g.value===!0?{href:u.href,target:u.target}:v.value===!0?{href:k.value.href,target:u.target}:{}),T=r.computed(()=>{if(v.value===!1)return-1;const{matched:G}=k.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(Ku.bind(null,K));if(V!==-1)return V;const $=Gu(G[j-2]);return j>1&&Gu(K)===$&&le[le.length-1].path!==$?le.findIndex(Ku.bind(null,G[j-2])):V}),z=r.computed(()=>v.value===!0&&T.value!==-1&&Eh(s.$route.params,k.value.params)),R=r.computed(()=>z.value===!0&&T.value===s.$route.matched.length-1&&Oh(s.$route.params,k.value.params)),H=r.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);c("click",G,j),G.defaultPrevented!==!0&&j()}else c("click",G)}return{hasRouterLink:v,hasHrefLink:g,hasLink:C,linkTag:E,resolvedLink:k,linkIsActive:z,linkIsExactActive:R,linkClass:H,linkAttrs:y,getLink:F,navigateToRouterLink:N,navigateOnClick:Q}}const Zu={none:0,xs:4,sm:8,md:16,lg:24,xl:32},Bh={xs:8,sm:10,md:14,lg:20,xl:24},Rh=["button","submit","reset"],Ih=/[^\s]\/[^\s]/,Mh=["flat","outline","push","unelevated"];function Lh(t,o){return t.flat===!0?"flat":t.outline===!0?"outline":t.push===!0?"push":t.unelevated===!0?"unelevated":o}const qh={...{...pi,...Yu,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...Mh.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:{...Ch.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},round:Boolean};function Vh(t){const o=vi(t,Bh),l=kh(t),{hasRouterLink:u,hasLink:s,linkTag:c,linkAttrs:h,navigateOnClick:g}=Qu({fallbackTag:"button"}),w=r.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 Zu?Zu[H]+"px":H).join(" "),minWidth:"0",minHeight:"0"}):R}),k=r.computed(()=>t.rounded===!0||t.fab===!0||t.fabMini===!0),v=r.computed(()=>t.disable!==!0&&t.loading!==!0),C=r.computed(()=>v.value===!0?t.tabindex||0:-1),E=r.computed(()=>Lh(t,"standard")),y=r.computed(()=>{const R={tabindex:C.value};return s.value===!0?Object.assign(R,h.value):Rh.includes(t.type)===!0&&(R.type=t.type),c.value==="a"?(t.disable===!0?R["aria-disabled"]="true":R.href===void 0&&(R.role="button"),u.value!==!0&&Ih.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=r.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${k.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=r.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:w,innerClasses:z,attributes:y,hasLink:s,linkTag:c,navigateOnClick:g,isActionable:v}}const{passiveCapture:Tt}=ct;let ar=null,ur=null,sr=null;const cr=Ze({name:"QBtn",props:{...qh,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(t,{slots:o,emit:l}){const{proxy:u}=r.getCurrentInstance(),{classes:s,style:c,innerClasses:h,attributes:g,hasLink:w,linkTag:k,navigateOnClick:v,isActionable:C}=Vh(t),E=r.ref(null),y=r.ref(null);let T=null,z,R=null;const H=r.computed(()=>t.label!==void 0&&t.label!==null&&t.label!==""),F=r.computed(()=>t.disable===!0||t.ripple===!1?!1:{keyCodes:w.value===!0?[13,32]:[13],...t.ripple===!0?{}:t.ripple}),N=r.computed(()=>({center:t.round})),Q=r.computed(()=>{const P=Math.max(0,Math.min(100,t.percentage));return P>0?{transition:"transform 0.6s",transform:`translateX(${P-100}%)`}:{}}),G=r.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=r.computed(()=>({ref:E,class:"q-btn q-btn-item non-selectable no-outline "+s.value,style:c.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),qn(P,[13,32])===!0&&ur!==E.value&&(ur!==null&&A(),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&&A(),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&&A(),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&&qn(P,[13,32])===!0){const ae=new MouseEvent("click",P);ae.qKeyEvent=!0,P.defaultPrevented===!0&&Dt(ae),P.cancelBubble===!0&&Yt(ae),E.value.dispatchEvent(ae),Ke(P),P.qKeyEvent=!0}l("keyup",P)}A()}}function A(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 r.onBeforeUnmount(()=>{A(!0)}),Object.assign(u,{click:P=>{C.value===!0&&K(P)}}),()=>{let P=[];t.icon!==void 0&&P.push(r.h(bt,{name:t.icon,left:t.stack!==!0&&H.value===!0,role:"img"})),H.value===!0&&P.push(r.h("span",{class:"block"},[t.label])),P=Mn(o.default,P),t.iconRight!==void 0&&t.round===!1&&P.push(r.h(bt,{name:t.iconRight,right:t.stack!==!0&&H.value===!0,role:"img"}));const ae=[r.h("span",{class:"q-focus-helper",ref:y})];return t.loading===!0&&t.percentage!==void 0&&ae.push(r.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(t.darkPercentage===!0?" q-btn__progress--dark":"")},[r.h("span",{class:"q-btn__progress-indicator fit block",style:Q.value})])),ae.push(r.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+h.value},P)),t.loading!==null&&ae.push(r.h(r.Transition,{name:"q-transition--fade"},()=>t.loading===!0?[r.h("span",{key:"loading",class:"absolute-full flex flex-center"},o.loading!==void 0?o.loading():[r.h(ql)])]:null)),r.withDirectives(r.h(k.value,j.value,ae),[[Hu,F.value,void 0,N.value]])}}}),Xu=t=>(r.pushScopeId("data-v-3bcb795a"),t=t(),r.popScopeId(),t),Ph={class:"buttons-container"},Nh={class:"lt-md"},Dh={class:"row justify-between q-my-md q-px-md"},$h=Xu(()=>r.createElementVNode("span",{class:"text-black"},"Atrás",-1)),Fh={key:1},Uh=Xu(()=>r.createElementVNode("span",{class:"text-black"},"Siguiente",-1)),zh=st(r.defineComponent({__name:"NavigationButtons",props:{currentStep:{},stepsCount:{},nextDisabled:{type:Boolean}},emits:["prev","next"],setup(t){const o=t,l=r.computed(()=>o.currentStep+1);return(u,s)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("div",Ph,[l.value>1?(r.openBlock(),r.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]=c=>u.$emit("prev")),flat:""},{default:r.withCtx(()=>[r.createVNode(bt,{name:"arrow_back_ios",color:"info"})]),_:1})):r.createCommentVNode("",!0),l.value!==u.stepsCount?(r.openBlock(),r.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]=c=>u.$emit("next")),disable:u.nextDisabled,flat:""},{default:r.withCtx(()=>[r.createVNode(bt,{name:"arrow_forward_ios",color:"info"})]),_:1},8,["disable"])):r.createCommentVNode("",!0)]),r.createElementVNode("div",Nh,[r.createElementVNode("div",Dh,[l.value>1&&l.value<u.stepsCount?(r.openBlock(),r.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]=c=>u.$emit("prev")),flat:"","no-caps":""},{default:r.withCtx(()=>[$h]),_:1})):(r.openBlock(),r.createElementBlock("div",Fh)),l.value<u.stepsCount?(r.openBlock(),r.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]=c=>u.$emit("next")),disable:u.nextDisabled,flat:"","no-caps":""},{default:r.withCtx(()=>[Uh]),_:1},8,["disable"])):r.createCommentVNode("",!0)])])],64))}}),[["__scopeId","data-v-3bcb795a"]]),Hh=Ze({name:"QField",inheritAttrs:!1,props:{...xi,tag:{type:String,default:"label"}},emits:zl,setup(){return Wl(Hl({tagProp:!0}))}}),Wh={xs:8,sm:10,md:14,lg:20,xl:24},Gh=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}}=r.getCurrentInstance(),s=or(t,u),c=vi(t,Wh),h=r.computed(()=>t.selected===!0||t.icon!==void 0),g=r.computed(()=>t.selected===!0?t.iconSelected||u.iconSet.chip.selected:t.icon),w=r.computed(()=>t.iconRemove||u.iconSet.chip.remove),k=r.computed(()=>t.disable===!1&&(t.clickable===!0||t.selected!==null)),v=r.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":"")+(k.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=r.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=[];k.value===!0&&R.push(r.h("div",{class:"q-focus-helper"})),h.value===!0&&R.push(r.h(bt,{class:"q-chip__icon q-chip__icon--left",name:g.value}));const H=t.label!==void 0?[r.h("div",{class:"ellipsis"},[t.label])]:void 0;return R.push(r.h("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},yd(o.default,H))),t.iconRight&&R.push(r.h(bt,{class:"q-chip__icon q-chip__icon--right",name:t.iconRight})),t.removable===!0&&R.push(r.h(bt,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:w.value,...C.value.remove,onClick:T,onKeyup:T})),R}return()=>{if(t.modelValue===!1)return;const R={class:v.value,style:c.value};return k.value===!0&&Object.assign(R,C.value.chip,{onClick:y,onKeyup:E}),fu("div",R,z(),"ripple",t.ripple!==!1&&t.disable!==!0,()=>[[Hu,t.ripple]])}}}),Kh=Ze({name:"QItem",props:{...lr,...Th,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}}=r.getCurrentInstance(),s=or(t,u),{hasLink:c,linkAttrs:h,linkClass:g,linkTag:w,navigateOnClick:k}=Qu(),v=r.ref(null),C=r.ref(null),E=r.computed(()=>t.clickable===!0||c.value===!0||t.tag==="label"),y=r.computed(()=>t.disable!==!0&&E.value===!0),T=r.computed(()=>"q-item q-item-type row no-wrap"+(t.dense===!0?" q-item--dense":"")+(s.value===!0?" q-item--dark":"")+(c.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=r.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()),k(N))}function H(N){if(y.value===!0&&qn(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=bd(o.default,[]);return y.value===!0&&N.unshift(r.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"),r.h(w.value,N,F())}}}),jh=Ze({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(t,{slots:o}){const l=r.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()=>r.h("div",{class:l.value},_t(o.default))}}),Yh=Ze({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(t,{slots:o}){const l=r.computed(()=>parseInt(t.lines,10)),u=r.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=r.computed(()=>t.lines!==void 0&&l.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":l.value}:null);return()=>r.h("div",{style:s.value,class:u.value},_t(o.default))}});function Qh(){if(window.getSelection!==void 0){const t=window.getSelection();t.empty!==void 0?t.empty():t.removeAllRanges!==void 0&&(t.removeAllRanges(),Ml.is.mobile!==!0&&t.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}const Zh={...{target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},contextMenu:Boolean};function Xh({showing:t,avoidEmit:o,configureAnchorEl:l}){const{props:u,proxy:s,emit:c}=r.getCurrentInstance(),h=r.ref(null);let g=null;function w(y){return h.value===null?!1:y===void 0||y.touches===void 0||y.touches.length<=1}const k={};l===void 0&&(Object.assign(k,{hide(y){s.hide(y)},toggle(y){s.toggle(y),y.qAnchorHandled=!0},toggleKey(y){qn(y,13)===!0&&k.toggle(y)},contextClick(y){s.hide(y),Dt(y),r.nextTick(()=>{s.show(y),y.qAnchorHandled=!0})},prevent:Dt,mobileTouch(y){if(k.mobileCleanup(y),w(y)!==!0)return;s.hide(y),h.value.classList.add("non-selectable");const T=y.target;Dl(k,"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&&Qh()}}),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"]],Dl(k,"anchor",T)});function v(){wu(k,"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 r.watch(()=>u.contextMenu,y=>{h.value!==null&&(v(),l(y))}),r.watch(()=>u.target,()=>{h.value!==null&&v(),E()}),r.watch(()=>u.noParentEvent,y=>{h.value!==null&&(y===!0?v():l())}),r.onMounted(()=>{E(),o!==!0&&u.modelValue===!0&&h.value===null&&c("update:modelValue",!1)}),r.onBeforeUnmount(()=>{g!==null&&clearTimeout(g),v()}),{anchorEl:h,canShow:w,anchorEvents:k}}function Jh(t,o){const l=r.ref(null);let u;function s(g,w){const k=`${w!==void 0?"add":"remove"}EventListener`,v=w!==void 0?w:u;g!==window&&g[k]("scroll",v,ct.passive),window[k]("scroll",v,ct.passive),u=w}function c(){l.value!==null&&(s(l.value),l.value=null)}const h=r.watch(()=>t.noParentEvent,()=>{l.value!==null&&(c(),o())});return r.onBeforeUnmount(h),{localScrollTarget:l,unconfigureScrollTarget:c,changeScrollEvent:s}}const Ju={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},es=["beforeShow","show","beforeHide","hide"];function ts({showing:t,canShow:o,hideOnRouteChange:l,handleShow:u,handleHide:s,processOnMount:c}){const h=r.getCurrentInstance(),{props:g,emit:w,proxy:k}=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&&(w("update:modelValue",!0),v=F,r.nextTick(()=>{v===F&&(v=void 0)})),(g.modelValue===null||N===!1)&&y(F)}function y(F){t.value!==!0&&(t.value=!0,w("beforeShow",F),u!==void 0?u(F):w("show",F))}function T(F){if(g.disable===!0)return;const N=g["onUpdate:modelValue"]!==void 0;N===!0&&(w("update:modelValue",!1),v=F,r.nextTick(()=>{v===F&&(v=void 0)})),(g.modelValue===null||N===!1)&&z(F)}function z(F){t.value!==!1&&(t.value=!1,w("beforeHide",F),s!==void 0?s(F):w("hide",F))}function R(F){g.disable===!0&&F===!0?g["onUpdate:modelValue"]!==void 0&&w("update:modelValue",!1):F===!0!==t.value&&(F===!0?y:z)(v)}r.watch(()=>g.modelValue,R),l!==void 0&&du(h)===!0&&r.watch(()=>k.$route.fullPath,()=>{l.value===!0&&t.value===!0&&T()}),c===!0&&r.onMounted(()=>{R(g.modelValue)});const H={show:E,hide:T,toggle:C};return Object.assign(k,H),H}const ns={};let em=1,tm=document.body;function nm(t,o){const l=document.createElement("div");if(l.id=o!==void 0?`q-portal--${o}--${em++}`:t,ns.globalNodes!==void 0){const u=ns.globalNodes.class;u!==void 0&&(l.className=u)}return tm.appendChild(l),l}function rm(t){t.remove()}const qr=[];function im(t,o){do{if(t.$options.name==="QMenu"){if(t.hide(o),t.$props.separateClosePopup===!0)return Vl(t)}else if(t.__qPortal===!0){const l=Vl(t);return l!==void 0&&l.$options.name==="QPopupProxy"?(t.hide(o),l):t}t=Vl(t)}while(t!=null)}const lm=Ze({name:"QPortal",setup(t,{slots:o}){return()=>o.default()}});function om(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 rs(t,o,l,u){const s=r.ref(!1),c=r.ref(!1);let h=null;const g={},w=u==="dialog"&&om(t);function k(C){if(C===!0){qu(g),c.value=!0;return}c.value=!1,s.value===!1&&(w===!1&&h===null&&(h=nm(!1,u)),s.value=!0,qr.push(t.proxy),lh(g))}function v(C){if(c.value=!1,C!==!0)return;qu(g),s.value=!1;const E=qr.indexOf(t.proxy);E!==-1&&qr.splice(E,1),h!==null&&(rm(h),h=null)}return r.onUnmounted(()=>{v(!0)}),t.proxy.__qPortal=!0,gi(t.proxy,"contentEl",()=>o.value),{showPortal:k,hidePortal:v,portalIsActive:s,portalIsAccessible:c,renderPortal:()=>w===!0?l():s.value===!0?[r.h(r.Teleport,{to:h},r.h(lm,l))]:void 0}}const is={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function ls(t,o=()=>{},l=()=>{}){return{transitionProps:r.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:r.computed(()=>`--q-transition-duration: ${t.transitionDuration}ms`)}}function os(){let t;const o=r.getCurrentInstance();function l(){t=void 0}return r.onDeactivated(l),r.onBeforeUnmount(l),{removeTick:l,registerTick(u){t=u,r.nextTick(()=>{t===u&&(Ir(o)===!1&&t(),t=void 0)})}}}const am=[Element,String],um=[null,document,document.body,document.scrollingElement,document.documentElement];function sm(t,o){let l=wh(o);if(l===void 0){if(t==null)return window;l=t.closest(".scroll,.scroll-y,.overflow-auto")}return um.includes(l)?window:l}function cm(t){return t===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:t.scrollTop}function fm(t){return t===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:t.scrollLeft}let Ei;function dm(){if(Ei!==void 0)return Ei;const t=document.createElement("p"),o=document.createElement("div");jl(t,{width:"100%",height:"200px"}),jl(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(),Ei=l-u,Ei}function hm(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 Vn=[];let fr;function mm(t){fr=t.keyCode===27}function gm(){fr===!0&&(fr=!1)}function pm(t){fr===!0&&(fr=!1,qn(t,27)===!0&&Vn[Vn.length-1](t))}function as(t){window[t]("keydown",mm),window[t]("blur",gm),window[t]("keyup",pm),fr=!1}function us(t){vt.is.desktop===!0&&(Vn.push(t),Vn.length===1&&as("addEventListener"))}function Ai(t){const o=Vn.indexOf(t);o!==-1&&(Vn.splice(o,1),Vn.length===0&&as("removeEventListener"))}const Pn=[];function ss(t){Pn[Pn.length-1](t)}function cs(t){vt.is.desktop===!0&&(Pn.push(t),Pn.length===1&&document.body.addEventListener("focusin",ss))}function Yl(t){const o=Pn.indexOf(t);o!==-1&&(Pn.splice(o,1),Pn.length===0&&document.body.removeEventListener("focusin",ss))}const{notPassiveCapture:Oi}=ct,Nn=[];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=Nn.length-1;u>=0;u--){const s=Nn[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 vm(t){Nn.push(t),Nn.length===1&&(document.addEventListener("mousedown",Ti,Oi),document.addEventListener("touchstart",Ti,Oi))}function fs(t){const o=Nn.findIndex(l=>l===t);o!==-1&&(Nn.splice(o,1),Nn.length===0&&(document.removeEventListener("mousedown",Ti,Oi),document.removeEventListener("touchstart",Ti,Oi)))}let ds,hs;function ms(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 _m(t){return t?!(t.length!==2||typeof t[0]!="number"||typeof t[1]!="number"):!0}const Ql={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(t=>{Ql[`${t}#ltr`]=t,Ql[`${t}#rtl`]=t});function gs(t,o){const l=t.split(" ");return{vertical:l[0],horizontal:Ql[`${l[1]}#${o===!0?"rtl":"ltr"}`]}}function bm(t,o){let{top:l,left:u,right:s,bottom:c,width:h,height:g}=t.getBoundingClientRect();return o!==void 0&&(l-=o[1],u-=o[0],c+=o[1],s+=o[0],h+=o[0],g+=o[1]),{top:l,bottom:c,height:g,left:u,right:s,width:h,middle:u+(s-u)/2,center:l+(c-l)/2}}function ym(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 wm(t,o){return{top:0,center:o/2,bottom:o,left:0,middle:t/2,right:t}}function ps(t,o,l,u){return{top:t[l.vertical]-o[u.vertical],left:t[l.horizontal]-o[u.horizontal]}}function vs(t,o=0){if(t.targetEl===null||t.anchorEl===null||o>5)return;if(t.targetEl.offsetHeight===0||t.targetEl.offsetWidth===0){setTimeout(()=>{vs(t,o+1)},10);return}const{targetEl:l,offset:u,anchorEl:s,anchorOrigin:c,selfOrigin:h,absoluteOffset:g,fit:w,cover:k,maxHeight:v,maxWidth:C}=t;if(vt.is.ios===!0&&window.visualViewport!==void 0){const j=document.body.style,{offsetLeft:K,offsetTop:le}=window.visualViewport;K!==ds&&(j.setProperty("--q-pe-left",K+"px"),ds=K),le!==hs&&(j.setProperty("--q-pe-top",le+"px"),hs=le)}const{scrollLeft:E,scrollTop:y}=l,T=g===void 0?bm(s,k===!0?[0,0]:u):ym(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}=w===!0||k===!0?{elWidth:Math.max(T.width,z),elHeight:k===!0?Math.max(T.height,R):R}:{elWidth:z,elHeight:R};let N={maxWidth:C,maxHeight:v};(w===!0||k===!0)&&(N.minWidth=T.width+"px",k===!0&&(N.minHeight=T.height+"px")),Object.assign(l.style,N);const Q=wm(H,F);let G=ps(T,Q,c,h);if(g===void 0||u===void 0)Zl(G,T,Q,c,h);else{const{top:j,left:K}=G;Zl(G,T,Q,c,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=ps(T,Q,c,h),Zl(G,T,Q,c,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 Zl(t,o,l,u,s){const c=l.bottom,h=l.right,g=dm(),w=window.innerHeight-g,k=document.body.clientWidth;if(t.top<0||t.top+c>w)if(s.vertical==="center")t.top=o[u.vertical]>w/2?Math.max(0,w-c):0,t.maxHeight=Math.min(c,w);else if(o[u.vertical]>w/2){const v=Math.min(w,u.vertical==="center"?o.center:u.vertical===s.vertical?o.bottom:o.top);t.maxHeight=Math.min(c,v),t.top=Math.max(0,v-c)}else t.top=Math.max(0,u.vertical==="center"?o.center:u.vertical===s.vertical?o.top:o.bottom),t.maxHeight=Math.min(c,w-t.top);if(t.left<0||t.left+h>k)if(t.maxWidth=Math.min(h,k),s.horizontal==="middle")t.left=o[u.horizontal]>k/2?Math.max(0,k-h):0;else if(o[u.horizontal]>k/2){const v=Math.min(k,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,k-t.left)}const Sm=Ze({name:"QMenu",inheritAttrs:!1,props:{...Zh,...Ju,...lr,...is,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:ms},self:{type:String,validator:ms},offset:{type:Array,validator:_m},scrollTarget:am,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...es,"click","escapeKey"],setup(t,{slots:o,emit:l,attrs:u}){let s=null,c,h,g;const w=r.getCurrentInstance(),{proxy:k}=w,{$q:v}=k,C=r.ref(null),E=r.ref(!1),y=r.computed(()=>t.persistent!==!0&&t.noRouteDismiss!==!0),T=or(t,v),{registerTick:z,removeTick:R}=os(),{registerTimeout:H}=_i(),{transitionProps:F,transitionStyle:N}=ls(t),{localScrollTarget:Q,changeScrollEvent:G,unconfigureScrollTarget:j}=Jh(t,ie),{anchorEl:K,canShow:le}=Xh({showing:E}),{hide:V}=ts({showing:E,canShow:le,handleShow:ge,handleHide:B,hideOnRouteChange:y,processOnMount:!0}),{showPortal:$,hidePortal:Z,renderPortal:A}=rs(w,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=r.computed(()=>gs(t.anchor||(t.cover===!0?"center middle":"bottom start"),v.lang.rtl)),ae=r.computed(()=>t.cover===!0?P.value:gs(t.self||"top start",v.lang.rtl)),ue=r.computed(()=>(t.square===!0?" q-menu--square":"")+(T.value===!0?" q-menu--dark q-dark":"")),fe=r.computed(()=>t.autoClose===!0?{onClick:ve}:{}),W=r.computed(()=>E.value===!0&&t.persistent!==!0);r.watch(W,Y=>{Y===!0?(us(U),vm(te)):(Ai(U),fs(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,cs(_e),$(),ie(),c=void 0,Y!==void 0&&(t.touchPosition||t.contextMenu)){const De=yu(Y);if(De.left!==void 0){const{top:lt,left:Ft}=K.value.getBoundingClientRect();c={left:De.left-Ft,top:De.top-lt}}}h===void 0&&(h=r.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(),O(!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 O(Y){c=void 0,h!==void 0&&(h(),h=void 0),(Y===!0||E.value===!0)&&(Yl(_e),j(),fs(te),Ai(U)),Y!==!0&&(s=null)}function ie(){(K.value!==null||t.scrollTarget!==void 0)&&(Q.value=sm(K.value,t.scrollTarget),G(Q.value,ne))}function ve(Y){g!==!0?(im(k,Y),l("click",Y)):g=!1}function _e(Y){W.value===!0&&t.noFocus!==!0&&Fu(C.value,Y.target)!==!0&&se()}function U(Y){l("escapeKey"),V(Y)}function ne(){vs({targetEl:C.value,offset:t.offset,anchorEl:K.value,anchorOrigin:P.value,selfOrigin:ae.value,absoluteOffset:c,fit:t.fit,cover:t.cover,maxHeight:t.maxHeight,maxWidth:t.maxWidth})}function Ae(){return r.h(r.Transition,F.value,()=>E.value===!0?r.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},_t(o.default)):null)}return r.onBeforeUnmount(O),Object.assign(k,{focus:se,updatePosition:ne}),A}});function xm(t,o,l){function u(){}return r.onBeforeUnmount(()=>{t.value===!0&&void 0}),{removeFromHistory:u,addToHistory(){}}}let Vr=0,Xl,Jl,Pr,eo=!1,_s,bs,ys,Dn=null;function Cm(t){km(t)&&Ke(t)}function km(t){if(t.target===document.body||t.target.classList.contains("q-layout__backdrop"))return!0;const o=Wd(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 c=0;c<o.length;c++){const h=o[c];if(hm(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 ws(t){t.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function Bi(t){eo!==!0&&(eo=!0,requestAnimationFrame(()=>{eo=!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 Ss(t){const o=document.body,l=window.visualViewport!==void 0;if(t==="add"){const{overflowY:u,overflowX:s}=window.getComputedStyle(o);Xl=fm(window),Jl=cm(window),_s=o.style.left,bs=o.style.top,ys=window.location.href,o.style.left=`-${Xl}px`,o.style.top=`-${Jl}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,vt.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",ws,ct.passiveCapture))}vt.is.desktop===!0&&vt.is.mac===!0&&window[`${t}EventListener`]("wheel",Cm,ct.notPassive),t==="remove"&&(vt.is.ios===!0&&(l===!0?(window.visualViewport.removeEventListener("resize",Bi,ct.passiveCapture),window.visualViewport.removeEventListener("scroll",Bi,ct.passiveCapture)):window.removeEventListener("scroll",ws,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=_s,o.style.top=bs,window.location.href===ys&&window.scrollTo(Xl,Jl),Pr=void 0)}function Em(t){let o="add";if(t===!0){if(Vr++,Dn!==null){clearTimeout(Dn),Dn=null;return}if(Vr>1)return}else{if(Vr===0||(Vr--,Vr>0))return;if(o="remove",vt.is.ios===!0&&vt.is.nativeMobile===!0){Dn!==null&&clearTimeout(Dn),Dn=setTimeout(()=>{Ss(o),Dn=null},100);return}}Ss(o)}function Am(){let t;return{preventBodyScroll(o){o!==t&&(t!==void 0||o===!0)&&(t=o,Em(o))}}}let Ri=0;const Om={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"},xs={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},Tm=Ze({name:"QDialog",inheritAttrs:!1,props:{...Ju,...is,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:[...es,"shake","click","escapeKey"],setup(t,{slots:o,emit:l,attrs:u}){const s=r.getCurrentInstance(),c=r.ref(null),h=r.ref(!1),g=r.ref(!1);let w=null,k=null,v,C;const E=r.computed(()=>t.persistent!==!0&&t.noRouteDismiss!==!0&&t.seamless!==!0),{preventBodyScroll:y}=Am(),{registerTimeout:T}=_i(),{registerTick:z,removeTick:R}=os(),{transitionProps:H,transitionStyle:F}=ls(t,()=>xs[t.position][0],()=>xs[t.position][1]),N=r.computed(()=>F.value+(t.backdropFilter!==void 0?`;backdrop-filter:${t.backdropFilter};-webkit-backdrop-filter:${t.backdropFilter}`:"")),{showPortal:Q,hidePortal:G,portalIsAccessible:j,renderPortal:K}=rs(s,c,_e,"dialog"),{hide:le}=ts({showing:h,hideOnRouteChange:E,handleShow:ae,handleHide:ue,processOnMount:!0}),{addToHistory:V,removeFromHistory:$}=xm(h),Z=r.computed(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${t.maximized===!0?"maximized":"minimized"} q-dialog__inner--${t.position} ${Om[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":"")),A=r.computed(()=>h.value===!0&&t.seamless!==!0),te=r.computed(()=>t.autoClose===!0?{onClick:O}:{}),P=r.computed(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${A.value===!0?"modal":"seamless"}`,u.class]);r.watch(()=>t.maximized,U=>{h.value===!0&&B(U)}),r.watch(A,U=>{y(U),U===!0?(cs(ve),us(se)):(Yl(ve),Ai(se))});function ae(U){V(),k=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,c.value.click(),C=!1}Q(!0),g.value=!1,l("show",U)},t.transitionDuration)}function ue(U){R(),$(),ge(!0),g.value=!0,G(),k!==null&&(((U&&U.type.indexOf("key")===0?k.closest('[tabindex]:not([tabindex^="-"])'):void 0)||k).focus(),k=null),T(()=>{G(!0),g.value=!1,l("hide",U)},t.transitionDuration)}function fe(U){Si(()=>{let ne=c.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=c.value;ne!==null&&(ne.classList.remove("q-animate--scale"),ne.classList.add("q-animate--scale"),w!==null&&clearTimeout(w),w=setTimeout(()=>{w=null,c.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){w!==null&&(clearTimeout(w),w=null),(U===!0||h.value===!0)&&(B(!1),t.seamless!==!0&&(y(!1),Yl(ve),Ai(se))),U!==!0&&(k=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 O(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&&Fu(c.value,U.target)!==!0&&fe('[tabindex]:not([tabindex="-1"])')}Object.assign(s.proxy,{focus:fe,shake:W,__updateRefocusTarget(U){k=U||null}}),r.onBeforeUnmount(ge);function _e(){return r.h("div",{role:"dialog","aria-modal":A.value===!0?"true":"false",...u,class:P.value},[r.h(r.Transition,{name:"q-transition--fade",appear:!0},()=>A.value===!0?r.h("div",{class:"q-dialog__backdrop fixed-full",style:N.value,"aria-hidden":"true",tabindex:-1,onClick:ie}):null),r.h(r.Transition,H.value,()=>h.value===!0?r.h("div",{ref:c,class:Z.value,style:F.value,tabindex:-1,...te.value},_t(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 $t=1e3,Bm=["start","center","end","start-force","center-force","end-force"],Cs=Array.prototype.filter,Rm=window.getComputedStyle(document.body).overflowAnchor===void 0?Hd: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||[];Cs.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 to(t,o,l,u,s,c,h,g){const w=t===window?document.scrollingElement||document.documentElement:t,k=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=w.scrollLeft,v.scrollViewSize+=w.clientWidth),v.scrollMaxSize=w.scrollWidth,c===!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=w.scrollTop,v.scrollViewSize+=w.clientHeight),v.scrollMaxSize=w.scrollHeight),l!==null)for(let C=l.previousElementSibling;C!==null;C=C.previousElementSibling)C.classList.contains("q-virtual-scroll--skip")===!1&&(v.offsetStart+=C[k]);if(u!==null)for(let C=u.nextElementSibling;C!==null;C=C.nextElementSibling)C.classList.contains("q-virtual-scroll--skip")===!1&&(v.offsetEnd+=C[k]);if(o!==t){const C=w.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 ks(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,c=Math.floor(l/$t),h=Math.floor((u-1)/$t)+1;let g=t.slice(c,h).reduce(dr,0);return l%$t!==0&&(g-=o.slice(c*$t,l).reduce(dr,0)),u%$t!==0&&u!==s&&(g-=o.slice(u,h*$t).reduce(dr,0)),g}const Es={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 Im({virtualScrollLength:t,getVirtualScrollTarget:o,getVirtualScrollEl:l,virtualScrollItemSizeComputed:u}){const s=r.getCurrentInstance(),{props:c,emit:h,proxy:g}=s,{$q:w}=g;let k,v,C,E=[],y;const T=r.ref(0),z=r.ref(0),R=r.ref({}),H=r.ref(null),F=r.ref(null),N=r.ref(null),Q=r.ref({from:0,to:0}),G=r.computed(()=>c.tableColspan!==void 0?c.tableColspan:100);u===void 0&&(u=r.computed(()=>c.virtualScrollItemSize));const j=r.computed(()=>u.value+";"+c.virtualScrollHorizontal),K=r.computed(()=>j.value+";"+c.virtualScrollSliceRatioBefore+";"+c.virtualScrollSliceRatioAfter);r.watch(K,()=>{ue()}),r.watch(j,le);function le(){ae(v,!0)}function V(B){ae(B===void 0?v:B)}function $(B,O){const ie=o();if(ie==null||ie.nodeType===8)return;const ve=to(ie,l(),H.value,F.value,c.virtualScrollHorizontal,w.lang.rtl,c.virtualScrollStickySizeStart,c.virtualScrollStickySizeEnd);C!==ve.scrollViewSize&&ue(ve.scrollViewSize),A(ie,ve,Math.min(t.value-1,Math.max(0,parseInt(B,10)||0)),0,Bm.indexOf(O)!==-1?O:v!==-1&&B>v?"end":"start")}function Z(){const B=o();if(B==null||B.nodeType===8)return;const O=to(B,l(),H.value,F.value,c.virtualScrollHorizontal,w.lang.rtl,c.virtualScrollStickySizeStart,c.virtualScrollStickySizeEnd),ie=t.value-1,ve=O.scrollMaxSize-O.offsetStart-O.offsetEnd-z.value;if(k===O.scrollStart)return;if(O.scrollMaxSize<=0){A(B,O,0,0);return}C!==O.scrollViewSize&&ue(O.scrollViewSize),te(Q.value.from);const _e=Math.floor(O.scrollMaxSize-Math.max(O.scrollViewSize,O.offsetEnd)-Math.min(y[ie],O.scrollViewSize/2));if(_e>0&&Math.ceil(O.scrollStart)>=_e){A(B,O,ie,O.scrollMaxSize-O.offsetEnd-E.reduce(dr,0));return}let U=0,ne=O.scrollStart-O.offsetStart,Ae=ne;if(ne<=ve&&ne+O.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+=$t;for(;ne>0&&U<ie;)ne-=y[U],ne>-O.scrollViewSize?(U++,Ae=ne):Ae=y[U]+ne;A(B,O,U,Ae)}function A(B,O,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)),k=O.scrollStart;const lt=Y!==Q.value.from||De!==Q.value.to;if(lt===!1&&ne===void 0){W(ie);return}const{activeElement:Ft}=document,yt=N.value;lt===!0&&yt!==null&&yt!==Ft&&yt.contains(Ft)===!0&&(yt.addEventListener("focusout",P),setTimeout(()=>{yt!==null&&yt.removeEventListener("focusout",P)})),Rm(yt,ie-Y);const nt=ne!==void 0?y.slice(Y,ie).reduce(dr,0):0;if(lt===!0){const wt=De>=Q.value.from&&Y<=Q.value.to?Q.value.to:De;Q.value={from:Y,to:wt},T.value=Nr(E,y,0,Y),z.value=Nr(E,y,De,t.value),requestAnimationFrame(()=>{Q.value.to!==De&&k===O.scrollStart&&(Q.value={from:Q.value.from,to:De},z.value=Nr(E,y,De,t.value))})}requestAnimationFrame(()=>{if(k!==O.scrollStart)return;lt===!0&&te(Y);const wt=y.slice(Y,ie).reduce(dr,0),tn=wt+O.offsetStart+T.value,ft=tn+y[ie];let _n=tn+ve;if(ne!==void 0){const Dr=wt-nt,Ut=O.scrollStart+Dr;_n=U!==!0&&Ut<tn&&ft<Ut+O.scrollViewSize?Ut:ne==="end"?ft-O.scrollViewSize:tn-(ne==="start"?0:Math.round((O.scrollViewSize-y[ie])/2))}k=_n,ks(B,_n,c.virtualScrollHorizontal,w.lang.rtl),W(ie)})}function te(B){const O=N.value;if(O){const ie=Cs.call(O.children,Y=>Y.classList&&Y.classList.contains("q-virtual-scroll--skip")===!1),ve=ie.length,_e=c.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/$t)]+=Ae),U++}}}function P(){N.value!==null&&N.value!==void 0&&N.value.focus()}function ae(B,O){const ie=1*u.value;(O===!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)/$t);E=[];for(let U=0;U<=_e;U++){let ne=0;const Ae=Math.min((U+1)*$t,t.value);for(let Y=U*$t;Y<Ae;Y++)ne+=y[Y];E.push(ne)}v=-1,k=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),r.nextTick(()=>{$(B)})):se()}function ue(B){if(B===void 0&&typeof window<"u"){const ne=o();ne!=null&&ne.nodeType!==8&&(B=to(ne,l(),H.value,F.value,c.virtualScrollHorizontal,w.lang.rtl,c.virtualScrollStickySizeStart,c.virtualScrollStickySizeEnd).scrollViewSize)}C=B;const O=parseFloat(c.virtualScrollSliceRatioBefore)||0,ie=parseFloat(c.virtualScrollSliceRatioAfter)||0,ve=1+O+ie,_e=B===void 0||B<=0?1:Math.ceil(B/u.value),U=Math.max(1,_e,Math.ceil((c.virtualScrollSliceSize>0?c.virtualScrollSliceSize:10)/ve));R.value={total:Math.ceil(U*ve),start:Math.ceil(U*O),center:Math.ceil(U*(.5+O)),end:Math.ceil(U*(1+O)),view:_e}}function fe(B,O){const ie=c.virtualScrollHorizontal===!0?"width":"height",ve={["--q-virtual-scroll-item-"+ie]:u.value+"px"};return[B==="tbody"?r.h(B,{class:"q-virtual-scroll__padding",key:"before",ref:H},[r.h("tr",[r.h("td",{style:{[ie]:`${T.value}px`,...ve},colspan:G.value})])]):r.h(B,{class:"q-virtual-scroll__padding",key:"before",ref:H,style:{[ie]:`${T.value}px`,...ve}}),r.h(B,{class:"q-virtual-scroll__content",key:"content",ref:N,tabindex:-1},O.flat()),B==="tbody"?r.h(B,{class:"q-virtual-scroll__padding",key:"after",ref:F},[r.h("tr",[r.h("td",{style:{[ie]:`${z.value}px`,...ve},colspan:G.value})])]):r.h(B,{class:"q-virtual-scroll__padding",key:"after",ref:F,style:{[ie]:`${z.value}px`,...ve}})]}function W(B){v!==B&&(c.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=Mu(Z,w.platform.is.ios===!0?120:35);r.onBeforeMount(()=>{ue()});let ge=!1;return r.onDeactivated(()=>{ge=!0}),r.onActivated(()=>{if(ge!==!0)return;const B=o();k!==void 0&&B!==void 0&&B!==null&&B.nodeType!==8?ks(B,k,c.virtualScrollHorizontal,w.lang.rtl):$(v)}),r.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 As(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 Os=t=>["add","add-unique","toggle"].includes(t),Mm=".*+?^${}()|[]\\",Lm=Object.keys(xi),Ts=Ze({name:"QSelect",inheritAttrs:!1,props:{...Es,...Nl,...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:Os},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:Es.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...zl,"add","remove","inputValue","keyup","keypress","keydown","popupShow","popupHide","filterAbort"],setup(t,{slots:o,emit:l}){const{proxy:u}=r.getCurrentInstance(),{$q:s}=u,c=r.ref(!1),h=r.ref(!1),g=r.ref(-1),w=r.ref(""),k=r.ref(!1),v=r.ref(!1);let C=null,E=null,y,T,z,R=null,H,F,N,Q;const G=r.ref(null),j=r.ref(null),K=r.ref(null),le=r.ref(null),V=r.ref(null),$=bu(t),Z=Du($i),A=r.computed(()=>Array.isArray(t.options)?t.options.length:0),te=r.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}=Im({virtualScrollLength:A,getVirtualScrollTarget:Ni,getVirtualScrollEl:Fr,virtualScrollItemSizeComputed:te}),B=Hl(),O=r.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=r.computed(()=>{const _={};return Lm.forEach(ee=>{const X=t[ee];X!==void 0&&(_[ee]=X)}),_}),ve=r.computed(()=>t.optionsDark===null?B.isDark.value:t.optionsDark),_e=r.computed(()=>Lr(O.value)),U=r.computed(()=>{let _="q-field__input q-placeholder col";return t.hideSelected===!0||O.value.length===0?[_,t.inputClass]:(_+=" q-field__input--padding",t.inputClass===void 0?_:[_,t.inputClass])}),ne=r.computed(()=>(t.virtualScrollHorizontal===!0?"q-virtual-scroll--horizontal":"")+(t.popupContentClass?" "+t.popupContentClass:"")),Ae=r.computed(()=>A.value===0),Y=r.computed(()=>O.value.map(_=>je.value(_)).join(", ")),De=r.computed(()=>t.displayValue!==void 0?t.displayValue:Y.value),lt=r.computed(()=>t.optionsHtml===!0?()=>!0:_=>_!=null&&_.html===!0),Ft=r.computed(()=>t.displayValueHtml===!0||t.displayValue===void 0&&(t.optionsHtml===!0||O.value.some(lt.value))),yt=r.computed(()=>B.focused.value===!0?t.tabindex:-1),nt=r.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":c.value===!0?"true":"false","aria-controls":`${B.targetUid.value}_lb`};return g.value>=0&&(_["aria-activedescendant"]=`${B.targetUid.value}_${g.value}`),_}),wt=r.computed(()=>({id:`${B.targetUid.value}_lb`,role:"listbox","aria-multiselectable":t.multiple===!0?"true":"false"})),tn=r.computed(()=>O.value.map((_,ee)=>({index:ee,opt:_,html:lt.value(_),selected:!0,removeAtIndex:bn,toggleOption:Ht,tabindex:yt.value}))),ft=r.computed(()=>{if(A.value===0)return[];const{from:_,to:ee}=P.value;return t.options.slice(_,ee).map((X,me)=>{const Ie=zt.value(X)===!0,Be=Un(X)===!0,Ge=_+me,Ve={clickable:!0,active:Be,activeClass:Ut.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:()=>{Ht(X)}};return Ie!==!0&&(g.value===Ge&&(Ve.focused=!0),s.platform.is.desktop===!0&&(Ve.onMousemove=()=>{c.value===!0&&Qt(Ge)})),{index:Ge,opt:X,html:lt.value(X),label:je.value(X),selected:Ve.active,focused:Ve.focused,toggleOption:Ht,setOptionIndex:Qt,itemProps:Ve}})}),_n=r.computed(()=>t.dropdownIcon!==void 0?t.dropdownIcon:s.iconSet.arrow.dropdown),Dr=r.computed(()=>t.optionsCover===!1&&t.outlined!==!0&&t.standout!==!0&&t.borderless!==!0&&t.rounded!==!0),Ut=r.computed(()=>t.optionsSelectedClass!==void 0?t.optionsSelectedClass:t.color!==void 0?`text-${t.color}`:""),Fe=r.computed(()=>Fn(t.optionValue,"value")),je=r.computed(()=>Fn(t.optionLabel,"label")),zt=r.computed(()=>Fn(t.optionDisable,"disable")),hr=r.computed(()=>O.value.map(_=>Fe.value(_))),$n=r.computed(()=>{const _={onInput:$i,onChange:Z,onKeydown:Pi,onKeyup:qi,onKeypress:Vi,onFocus:gr,onClick(ee){T===!0&&Yt(ee)}};return _.onCompositionstart=_.onCompositionupdate=_.onCompositionend=Z,_});r.watch(O,_=>{y=_,t.useInput===!0&&t.fillInput===!0&&t.multiple!==!0&&B.innerLoading.value!==!0&&(h.value!==!0&&c.value!==!0||_e.value!==!0)&&(z!==!0&&ln(),(h.value===!0||c.value===!0)&&wn(""))},{immediate:!0}),r.watch(()=>t.fillInput,ln),r.watch(c,Hr),r.watch(A,mo);function Li(_){return t.emitValue===!0?Fe.value(_):_}function nn(_){if(_!==-1&&_<O.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 bn(_){nn(_),B.focus()}function mr(_,ee){const X=Li(_);if(t.multiple!==!0){t.fillInput===!0&&Hn(je.value(_),!0,!0),l("update:modelValue",X);return}if(O.value.length===0){l("add",{index:0,value:X}),l("update:modelValue",t.multiple===!0?[X]:X);return}if(ee===!0&&Un(_)===!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 Ht(_,ee){if(B.editable.value!==!0||_===void 0||zt.value(_)===!0)return;const X=Fe.value(_);if(t.multiple!==!0){ee!==!0&&(Hn(t.fillInput===!0?je.value(_):"",!0,!0),rn()),j.value!==null&&j.value.focus(),(O.value.length===0||en(Fe.value(O.value[0]),X)!==!0)&&l("update:modelValue",t.emitValue===!0?X:_);return}if((T!==!0||k.value===!0)&&B.focus(),gr(),O.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&&_<A.value?_:-1;g.value!==ee&&(g.value=ee)}function yn(_=1,ee){if(c.value===!0){let X=g.value;do X=As(X+_,-1,A.value-1);while(X!==-1&&X!==g.value&&zt.value(t.options[X])===!0);g.value!==X&&(Qt(X),se(X),ee!==!0&&t.useInput===!0&&t.fillInput===!0&&zn(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 Fn(_,ee){const X=_!==void 0?_:ee;return typeof X=="function"?X:me=>me!==null&&typeof me=="object"&&X in me?me[X]:me}function Un(_){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(_){qn(_,27)===!0&&c.value===!0&&(Yt(_),rn(),ln()),l("keyup",_)}function qi(_){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:(O.value.indexOf(Ge)===-1?Ht(Ge):rn(),!0)},Ie=Be=>{me(Fe)!==!0&&(me(je)===!0||Be===!0||wn(ee,!0,()=>Ie(!0)))};Ie()}else B.clearValue(_)}function Vi(_){l("keypress",_)}function Pi(_){if(l("keydown",_),Gl(_)===!0)return;const ee=w.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){Dt(_);return}if(_.keyCode===9&&X===!1){Sn();return}if(_.target===void 0||_.target.id!==B.targetUid.value||B.editable.value!==!0)return;if(_.keyCode===40&&B.innerLoading.value!==!0&&c.value===!1){Ke(_),xn();return}if(_.keyCode===8&&(t.useChips===!0||t.clearable===!0)&&t.hideSelected!==!0&&w.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 w.value!="string"||w.value.length===0)&&(Ke(_),g.value=-1,yn(_.keyCode===36?1:-1,t.multiple)),(_.keyCode===33||_.keyCode===34)&&ae.value!==void 0&&(Ke(_),g.value=Math.max(-1,Math.min(A.value,g.value+(_.keyCode===33?-1:1)*ae.value.view)),yn(_.keyCode===33?1:-1,t.multiple)),(_.keyCode===38||_.keyCode===40)&&(Ke(_),yn(_.keyCode===38?-1:1,t.multiple));const me=A.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)){c.value!==!0&&xn(_);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=>Mm.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=As(Ve+1,-1,me-1);while(Ve!==g.value&&(zt.value(t.options[Ve])===!0||Ge.test(je.value(t.options[Ve]))!==!0));g.value!==Ve&&r.nextTick(()=>{Qt(Ve),se(Ve),Ve>=0&&t.useInput===!0&&t.fillInput===!0&&zn(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){Ht(t.options[g.value]);return}if(ee===!0){const Ie=(Be,Ge)=>{if(Ge){if(Os(Ge)!==!0)return}else Ge=t.newValueMode;if(Hn("",t.multiple!==!0,!0),Be==null)return;(Ge==="toggle"?Ht:mr)(Be,Ge==="add-unique"),t.multiple!==!0&&(j.value!==null&&j.value.focus(),rn())};if(t.onNewValue!==void 0?l("newValue",w.value,Ie):Ie(w.value),t.multiple!==!0)return}c.value===!0?Sn():B.innerLoading.value!==!0&&xn()}}function Fr(){return T===!0?V.value:K.value!==null&&K.value.contentEl!==null?K.value.contentEl:void 0}function Ni(){return Fr()}function io(){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)=>r.h(Gh,{key:"option-"+ee,removable:B.editable.value===!0&&zt.value(_.opt)!==!0,dense:!0,textColor:t.color,tabindex:yt.value,onRemove(){_.removeAtIndex(ee)}},()=>r.h("span",{class:"ellipsis",[_.html===!0?"innerHTML":"textContent"]:je.value(_.opt)}))):[r.h("span",{[Ft.value===!0?"innerHTML":"textContent"]:De.value})]}function Di(){if(Ae.value===!0)return o["no-option"]!==void 0?o["no-option"]({inputValue:w.value}):void 0;const _=o.option!==void 0?o.option:X=>r.h(Kh,{key:X.index,...X.itemProps},()=>r.h(jh,()=>r.h(Yh,()=>r.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)),Mn(o["after-options"],ee)}function lo(_,ee){const X=ee===!0?{...nt.value,...B.splitAttrs.attributes.value}:void 0,me={ref:ee===!0?j:void 0,key:"i_t",class:U.value,style:t.inputStyle,value:w.value!==void 0?w.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,...$n.value};return _!==!0&&T===!0&&(Array.isArray(me.class)===!0?me.class=[...me.class,"no-pointer-events"]:me.class+=" no-pointer-events"),r.h("input",me)}function $i(_){C!==null&&(clearTimeout(C),C=null),E!==null&&(clearTimeout(E),E=null),!(_&&_.target&&_.target.qComposing===!0)&&(zn(_.target.value||""),z=!0,H=w.value,B.focused.value!==!0&&(T!==!0||k.value===!0)&&B.focus(),t.onFilter!==void 0&&(C=setTimeout(()=>{C=null,wn(w.value)},t.inputDebounce)))}function zn(_,ee){w.value!==_&&(w.value=_,ee===!0||t.inputDebounce===0||t.inputDebounce==="0"?l("inputValue",_):E=setTimeout(()=>{E=null,l("inputValue",_)},t.inputDebounce))}function Hn(_,ee,X){z=X!==!0,t.useInput===!0&&(zn(_,!0),(ee===!0||X!==!0)&&(H=_),ee!==!0&&wn(_))}function wn(_,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&&O.value.length!==0&&z!==!0&&_===je.value(O.value[0])&&(_="");const me=setTimeout(()=>{c.value===!0&&(c.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,r.nextTick(()=>{B.innerLoading.value=!1,B.editable.value===!0&&(ee===!0?c.value===!0&&rn():c.value===!0?Hr(!0):c.value=!0),typeof Be=="function"&&r.nextTick(()=>{Be(u)}),typeof X=="function"&&r.nextTick(()=>{X(u)})}))},()=>{B.focused.value===!0&&R===me&&(clearTimeout(R),B.innerLoading.value=!1,v.value=!1),c.value===!0&&(c.value=!1)})}function oo(){return r.h(Sm,{ref:K,class:ne.value,style:t.popupContentStyle,modelValue:c.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,...wt.value,onScrollPassive:W,onBeforeShow:Ui,onBeforeHide:Ur,onShow:ao},Di)}function Ur(_){zi(_),Sn()}function ao(){ge()}function zr(_){Yt(_),j.value!==null&&j.value.focus(),k.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function uo(_){Yt(_),r.nextTick(()=>{k.value=!1})}function so(){const _=[r.h(Hh,{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:w.value.length!==0,...B.splitAttrs.listeners.value,onFocus:zr,onBlur:uo},{...o,rawControl:()=>B.getControl(!0),before:void 0,after:void 0})];return c.value===!0&&_.push(r.h("div",{ref:V,class:ne.value+" scroll",style:t.popupContentStyle,...wt.value,onClick:Dt,onScrollPassive:W},Di())),r.h(Tm,{ref:le,modelValue:h.value,position:t.useInput===!0?"top":void 0,transitionShow:F,transitionHide:t.transitionHide,transitionDuration:t.transitionDuration,noRouteDismiss:t.popupNoRouteDismiss,onBeforeShow:Ui,onBeforeHide:co,onHide:fo,onShow:ho},()=>r.h("div",{class:"q-select__dialog"+(ve.value===!0?" q-select__dialog--dark q-dark":"")+(k.value===!0?" q-select__dialog--focused":"")},_))}function co(_){zi(_),le.value!==null&&le.value.__updateRefocusTarget(B.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),B.focused.value=!1}function fo(_){rn(),B.focused.value===!1&&l("blur",_),ln()}function ho(){const _=document.activeElement;(_===null||_.id!==B.targetUid.value)&&j.value!==null&&j.value!==_&&j.value.focus(),ge()}function Sn(){h.value!==!0&&(g.value=-1,c.value===!0&&(c.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 xn(_){B.editable.value===!0&&(T===!0?(B.onControlFocusin(_),h.value=!0,r.nextTick(()=>{B.focus()})):B.focus(),t.onFilter!==void 0?wn(w.value):(Ae.value!==!0||o["no-option"]!==void 0)&&(c.value=!0))}function rn(){h.value=!1,Sn()}function ln(){t.useInput===!0&&Hn(t.multiple!==!0&&t.fillInput===!0&&O.value.length!==0&&je.value(O.value[0])||"",!0,!0)}function Hr(_){let ee=-1;if(_===!0){if(O.value.length!==0){const X=Fe.value(O.value[0]);ee=t.options.findIndex(me=>en(Fe.value(me),X))}ue(ee)}Qt(ee)}function mo(_,ee){c.value===!0&&B.innerLoading.value===!1&&(ue(-1,!0),r.nextTick(()=>{c.value===!0&&B.innerLoading.value===!1&&(_>ee?ue():Hr(!0))}))}function Fi(){h.value===!1&&K.value!==null&&K.value.updatePosition()}function Ui(_){_!==void 0&&Yt(_),l("popupShow",_),B.hasPopupOpen=!0,B.onControlFocusin(_)}function zi(_){_!==void 0&&Yt(_),l("popupHide",_),B.hasPopupOpen=!1,B.onControlFocusout(_)}function Hi(){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 r.onBeforeUpdate(Hi),r.onUpdated(Fi),Hi(),r.onBeforeUnmount(()=>{C!==null&&clearTimeout(C),E!==null&&clearTimeout(E)}),Object.assign(u,{showPopup:xn,hidePopup:rn,removeAtIndex:nn,add:mr,toggleOption:Ht,getOptionIndex:()=>g.value,setOptionIndex:Qt,moveOptionSelection:yn,filter:wn,updateMenuPosition:Fi,updateInputValue:Hn,isOptionSelected:Un,getEmittingOptionValue:Li,isOptionDisabled:(..._)=>zt.value.apply(null,_)===!0,getOptionValue:(..._)=>Fe.value.apply(null,_),getOptionLabel:(..._)=>je.value.apply(null,_)}),Object.assign(B,{innerValue:O,fieldClass:r.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:xn,floatingLabel:r.computed(()=>t.hideSelected!==!0&&_e.value===!0||typeof w.value=="number"||w.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?so():oo();B.hasPopupOpen===!0&&(B.hasPopupOpen=!1)},controlEvents:{onFocusin(_){B.onControlFocusin(_)},onFocusout(_){B.onControlFocusout(_,()=>{ln(),Sn()})},onClick(_){if(Dt(_),T!==!0&&c.value===!0){Sn(),j.value!==null&&j.value.focus();return}xn(_)}},getControl:_=>{const ee=io(),X=_===!0||h.value!==!0||T!==!0;if(t.useInput===!0)ee.push(lo(_,X));else if(B.editable.value===!0){const Ie=X===!0?nt.value:void 0;ee.push(r.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:Pi,onKeyup:pr,onKeypress:Vi})),X===!0&&typeof t.autocomplete=="string"&&t.autocomplete.length!==0&&ee.push(r.h("input",{class:"q-select__autocomplete-input",autocomplete:t.autocomplete,tabindex:-1,onKeyup:qi}))}if($.value!==void 0&&t.disable!==!0&&hr.value.length!==0){const Ie=hr.value.map(Be=>r.h("option",{value:Be,selected:!0}));ee.push(r.h("select",{class:"hidden",name:$.value,multiple:t.multiple},Ie))}const me=t.useInput===!0||X!==!0?void 0:B.splitAttrs.attributes.value;return r.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?[r.h(bt,{class:"q-select__dropdown-icon"+(c.value===!0?" rotate-180":""),name:_n.value})]:null}),Wl(B)}}),qm=st(r.defineComponent({__name:"SelectControl",props:r.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=r.ref([]),l=r.useModel(t,"modelValue"),u=t,s=r.ref(!1),c=r.computed(()=>u.control.customParams),h=r.ref([]),g=r.computed(()=>{var C;return((C=c.value)==null?void 0:C.collection)||null}),w=r.computed(()=>g.value?h.value:u.control.options),k=ir();r.watch(g,C=>{if(!C)return;const E=k.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(w.value)});return}E(()=>{const y=C.toLowerCase();o.value=(w.value||[]).filter(T=>T.toLowerCase().includes(y))})}return(C,E)=>{const y=r.resolveComponent("ControlLabel");return r.openBlock(),r.createElementBlock(r.Fragment,null,[C.control.label?(r.openBlock(),r.createBlock(y,{key:0,label:C.control.label},null,8,["label"])):r.createCommentVNode("",!0),r.createVNode(ki,{class:"q-card win-card row items-center q-px-md"},{default:r.withCtx(()=>[r.createVNode(Ts,{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"]]),Vm={class:"text-center",style:{width:"100%"}},Pm={class:"text-center text-weight-medium"},Nm={class:"question-title"},Dm=r.defineComponent({__name:"StepHeader",props:{formGroup:{},stepsCount:{}},setup(t){return(o,l)=>(r.openBlock(),r.createElementBlock("div",Vm,[r.createElementVNode("div",Pm,r.toDisplayString(o.formGroup.order+1)+"/"+r.toDisplayString(o.stepsCount),1),r.createElementVNode("div",Nm,r.toDisplayString(o.formGroup.title||""),1)]))}});function $m(){return r.inject(Jd)}function Bs(t,o){const{maxControlsPerGroup:l,notifyValidations:u}={...ld,...o||{}},s=ir(),c=r.computed(()=>s.formSteps[t]),h=r.ref([]),g=r.ref([]),w=(y,T)=>{s.setControlValue(t,y);const z=h.value.find(F=>F.id===T);z&&(g.value=ad(z));const R=v(y),H=C(y);(R||H)&&k()};function k(){const y=c.value.controls,T=[];fd(y).forEach(R=>{const H=R.controls;if(H.every(N=>!Rl.includes(N.controlType))){T.push(R);return}let F={...R,controls:[]};for(const N of H)if(Rl.includes(N.controlType)){T.push(F),F={...F,controls:[]};const Q=sd(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=c.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=c.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}=$m();return r.watch(g,y=>{y.length&&(u&&E({message:y[0],color:"negative",position:"bottom",timeout:5e3,actions:[{label:"✕",color:"white"}]}),g.value=[])},{deep:!0}),r.watch(c,()=>{k()},{immediate:!0}),{model:h,errorMessages:g,rebuildModel:k,onControlValueUpdate:w}}const Fm={key:0,style:{height:"100%"}},Um={class:"q-py-sm"},zm={class:"form-steps-container"},Hm={class:"row justify-center items-center",style:{height:"100%",width:"100vw"}},Wm={class:"controls-container",style:{height:"100%"}},Gm={class:"form-container flex column items-center q-px-md",style:{width:"100vw"}},Km=st(r.defineComponent({__name:"MultipleFormGroups",props:{index:{}},setup(t){const o=t,l=ir(),{model:u,onControlValueUpdate:s}=Bs(o.index),c=r.computed(()=>u.value.length),h=r.ref(0),g=r.computed(()=>u.value[h.value]),w=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")}))};r.watch(h,v=>{const C=v+1===c.value;l.setOnLastSubstep(C)},{immediate:!0});function k(v){return{input_text:Kl,input_number:Kl,checkbox:Eu,switch:jd,select:qm,cards_select:$d}[v]||Kl}return(v,C)=>g.value?(r.openBlock(),r.createElementBlock("div",Fm,[r.createElementVNode("div",Um,[r.createVNode(Dm,{formGroup:g.value,stepsCount:c.value},null,8,["formGroup","stepsCount"])]),r.createElementVNode("div",zm,[r.createElementVNode("div",Hm,[r.createElementVNode("div",Wm,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(u),E=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:E.id},[h.value===E.order?(r.openBlock(),r.createBlock(wd,{key:0,transition:"slide-left",style:{height:"75%",width:"100vw"},class:"row q-py-xs justify-center items-center bg-grey-1"},{default:r.withCtx(()=>[r.createElementVNode("div",Gm,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(w(E.controls),(y,T)=>(r.openBlock(),r.createElementBlock("div",{class:"q-mb-xl",key:T},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(y.controls,(z,R)=>(r.openBlock(),r.createElementBlock("div",{key:R},[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(k(z.controlType)),{control:z,modelValue:y.controls[R].value,"onUpdate:modelValue":[H=>y.controls[R].value=H,H=>r.unref(s)(z,E.id)]},null,8,["control","modelValue","onUpdate:modelValue"]))]))),128))]))),128))])]),_:2},1024)):r.createCommentVNode("",!0)],64))),128)),r.createVNode(zh,{currentStep:h.value,stepsCount:c.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"])])])])])):r.createCommentVNode("",!0)}}),[["__scopeId","data-v-2d9dca33"]]),jm={style:{"font-size":"16px","padding-top":"1rem"}},Ym={style:{"font-size":"16px","padding-top":"1rem"}},no=st(r.defineComponent({__name:"SimpleInput",props:r.mergeModels({control:{},rules:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=r.useModel(t,"modelValue"),l=t,u=r.computed(()=>{var s;return(s=l.control.controlType)==null?void 0:s.split("_")[1]});return(s,c)=>(r.openBlock(),r.createBlock(ki,{class:"q-px-md win-card"},{default:r.withCtx(()=>[r.createVNode($u,{borderless:"","reverse-fill-mask":"",modelValue:o.value,"onUpdate:modelValue":c[0]||(c[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},r.createSlots({_:2},[s.control.prefix?{name:"prepend",fn:r.withCtx(()=>[r.createElementVNode("span",jm,r.toDisplayString(s.control.prefix),1)]),key:"0"}:void 0,s.control.suffix?{name:"append",fn:r.withCtx(()=>[r.createElementVNode("span",Ym,r.toDisplayString(s.control.suffix),1)]),key:"1"}:void 0]),1032,["modelValue","label","mask","input-class","rules"])]),_:1}))}}),[["__scopeId","data-v-bd5dfdca"]]),Rs=r.defineComponent({__name:"SimpleSelect",props:r.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=r.useModel(t,"modelValue");return(l,u)=>(r.openBlock(),r.createBlock(ki,{class:"q-px-md win-card"},{default:r.withCtx(()=>[r.createVNode(Ts,{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}))}}),Qm={key:0,style:{height:"100%"}},Zm={class:"question-title text-center q-py-sm"},Xm={class:"form-steps-container bg-grey-1"},Jm={class:"form-container",style:{height:"100%"}},eg={class:"row items-center"},tg={class:"col-12 row"},ng=st(r.defineComponent({__name:"SingleFormGroup",props:{index:{}},setup(t){const o=t,{model:l,onControlValueUpdate:u}=Bs(o.index,{notifyValidations:!1});function s(w){return{input_text:no,input_number:no,select:Rs,cards_select:Rs,checkbox:Eu}[w]||no}const c=w=>Ne.orderBy(Ne.toPairs(Ne.groupBy(w,"row")),"row").map(([k,v])=>({controls:Ne.orderBy(v,"col")}));function h(w){return[k=>{var C;let v="";return(C=w.validators)==null||C.some(E=>{const{param:y,validator:T}=E,z=eu[T];return z.fn(Number(y))({...w,value:k})?!1:(v=z.message,!0)}),!v.length||v}]}const g=ir();return r.onMounted(()=>g.setOnLastSubstep(!0)),(w,k)=>r.unref(l)?(r.openBlock(),r.createElementBlock("div",Qm,[r.createElementVNode("div",Zm,r.toDisplayString(r.unref(l)[0].title),1),r.createElementVNode("div",Xm,[r.createElementVNode("div",Jm,[r.createElementVNode("div",eg,[r.createElementVNode("div",tg,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(c(r.unref(l)[0].controls),(v,C)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(c(r.unref(l)[0].controls).length>1?"col-md-6 col-12":"col-12"),key:C},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(v.controls,(E,y)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(`col-xs-12 col-sm q-pa-xs ${c(r.unref(l)[0].controls).length>1?"col-md-6 col-12":"col-12"}`),key:y},[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(s(E.controlType)),{control:E,modelValue:E.value,"onUpdate:modelValue":[T=>E.value=T,T=>r.unref(u)(E,r.unref(l)[0].id)],rules:h(E)},null,8,["control","modelValue","onUpdate:modelValue","rules"]))],2))),128))],2))),128))])])])])])):r.createCommentVNode("",!0)}}),[["__scopeId","data-v-a8cd1002"]]),ro=t=>(r.pushScopeId("data-v-ea1ef607"),t=t(),r.popScopeId(),t),rg={class:"buttons-container"},ig={class:"max-container"},lg={key:0,class:"row checkbox justify-end q-my-sm"},og={style:{"max-width":"650px"}},ag=ro(()=>r.createElementVNode("br",{class:"gt-sm"},null,-1)),ug={class:"row justify-between q-my-md q-px-md q-pb-xl"},sg=ro(()=>r.createElementVNode("span",{class:"text-black"},"Atrás",-1)),cg={key:1},fg={key:0,class:"text-black"},dg=ro(()=>r.createElementVNode("span",{class:"gt-sm"},"formulario",-1)),hg={key:1,class:"text-black"},mg=st(r.defineComponent({__name:"StepsNavigationButtons",emits:["submit"],setup(t,{emit:o}){const{nextStep:l,previousStep:u,currentStep:s,stepsCount:c,nextDisabled:h,onLastSubstep:g}=r.toRefs(ir()),w=o,k=r.ref(!1),v=E=>{},C=()=>{s.value===c.value?w("submit"):l.value()};return(E,y)=>(r.openBlock(),r.createElementBlock("div",rg,[r.createElementVNode("div",ig,[r.unref(s)===r.unref(c)?(r.openBlock(),r.createElementBlock("div",lg,[r.createElementVNode("div",og,[r.createVNode(ku,{color:"info",class:"checkbox",modelValue:k.value,"onUpdate:modelValue":y[1]||(y[1]=T=>k.value=T)},{default:r.withCtx(()=>[r.createElementVNode("div",null,[r.createTextVNode(" He leído, comprendo y acepto los términos de tratamiento de datos "),ag,r.createTextVNode(" personales para esta solicitud. Más info. sobre la protección de datos "),r.createElementVNode("span",{style:{"text-decoration":"underline"},onClick:y[0]||(y[0]=T=>v())},"aquí"),r.createTextVNode(". ")])]),_:1},8,["modelValue"])])])):r.createCommentVNode("",!0),r.createElementVNode("div",ug,[r.unref(s)>1?(r.openBlock(),r.createBlock(cr,{key:0,color:"info",class:"q-px-xl q-py-sm q-mr-sm win-btn win-btn-primary bg-white",onClick:r.unref(u),flat:"","no-caps":""},{default:r.withCtx(()=>[sg]),_:1},8,["onClick"])):(r.openBlock(),r.createElementBlock("div",cg)),r.createElementVNode("div",null,[!r.unref(h)&&r.unref(g)?(r.openBlock(),r.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:r.unref(s)===r.unref(c)&&!k.value,flat:"","no-caps":""},{default:r.withCtx(()=>[r.unref(s)===r.unref(c)?(r.openBlock(),r.createElementBlock("span",fg,[r.createTextVNode(" Enviar "),dg])):(r.openBlock(),r.createElementBlock("span",hg," Siguiente "))]),_:1},8,["disable"])):r.createCommentVNode("",!0)])])])]))}}),[["__scopeId","data-v-ea1ef607"]]),Is=r.defineComponent({__name:"DynamicForm",props:{forms:{}},emits:["onSubmit"],setup(t,{emit:o}){const l=t,u=o,s=r.ref(!1),c=ir(),h=w=>Ne.keys(Ne.groupBy(w.controls,"group")).length===1;r.watch(()=>l.forms,w=>{const v=new iu().fromRaw(w);c.setFormSteps(v)},{immediate:!0});function g(){const w=Ne.cloneDeep(c.formSteps),v=new iu().toRaw(w);u("onSubmit",v)}return(w,k)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("div",null,[r.renderSlot(w.$slots,"header"),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(c).formSteps,(v,C)=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:C},[h(v)?r.withDirectives((r.openBlock(),r.createBlock(ng,{key:0,index:C},null,8,["index"])),[[r.vShow,r.unref(c).currentStep===C+1]]):r.withDirectives((r.openBlock(),r.createBlock(Km,{key:1,index:C,onOnLastStep:k[0]||(k[0]=E=>s.value=E)},null,8,["index"])),[[r.vShow,r.unref(c).currentStep===C+1]])],64))),128))]),r.createVNode(mg,{onSubmit:g})],64))}}),gg=r.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),Ms=r.defineComponent({__name:"TestUi",setup(t){const o=r.ref("Test W2W UI!");return(l,u)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[gg,r.createElementVNode("h1",null,r.toDisplayString(o.value),1)],64))}}),pg=r.defineComponent({__name:"DomSection",props:{section:{}},setup(t){const o=r.ref(null),l=t;return r.watch([()=>l.section,o],([u,s])=>{u&&s&&s.appendChild(u)}),(u,s)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"container",ref:o},null,512))}});function Ls(t,o){try{return o.split(".").reduce((u,s)=>u[s],t)}catch(l){return console.error(l),`{{${o}}}`}}const vg={class:"card"},_g={key:0,class:"card-header"},bg={key:0,contenteditable:""},yg={class:"card-content"},wg={contenteditable:"",class:"field-label"},Sg={contenteditable:"",class:"field-value"},xg=st(r.defineComponent({__name:"Card",props:{card:{},data:{}},setup(t){const o=t;function l(s){const c=s.value||Ls(o.data,s.key||"");return u(c,s.format)}function u(s,c){return c?c==="currency"?new Intl.NumberFormat("es-ES",{style:"currency",currency:"EUR"}).format(s):c==="percentage"?`${s} %`:s:s}return(s,c)=>(r.openBlock(),r.createElementBlock("div",vg,[s.card.title||s.card.subtitle?(r.openBlock(),r.createElementBlock("div",_g,[s.card.title?(r.openBlock(),r.createElementBlock("h3",bg,r.toDisplayString(s.card.title),1)):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0),r.createElementVNode("div",yg,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.card.fields,(h,g)=>(r.openBlock(),r.createElementBlock("div",{key:g,class:"card-field"},[r.createElementVNode("span",wg,r.toDisplayString(h.label),1),r.createElementVNode("span",Sg,r.toDisplayString(l(h)),1)]))),128))])]))}}),[["__scopeId","data-v-758b9217"]]);function Mi(t,o={}){const l=r.inject("data"),u=r.computed(()=>l.value[t]||o),s=r.computed(()=>l.value.global||{}),c=r.computed(()=>({...s.value,...u.value}));return{sectionData:u,globalData:s,data:c}}const Cg=st(r.defineComponent({__name:"CardGridSection",props:{styles:{},id:{},content:{}},setup(t){const o=t,{data:l}=Mi(o.id,{});return(u,s)=>(r.openBlock(),r.createElementBlock("div",{class:"card-section",style:r.normalizeStyle({...u.styles||{}})},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(u.content.cards,(c,h)=>(r.openBlock(),r.createBlock(xg,{key:h,card:c,data:r.unref(l)},null,8,["card","data"]))),128))],4))}}),[["__scopeId","data-v-91deb527"]]),kg=["src","alt"],Eg=st(r.defineComponent({__name:"ImageSection",props:{styles:{},id:{},content:{}},setup(t){const o=t,{content:l,styles:u}=r.toRefs(o);return Mi(o.id,{}),(s,c)=>(r.openBlock(),r.createElementBlock("div",{style:r.normalizeStyle({...r.unref(u)||{},justifyContent:r.unref(l).align}),class:"img-container"},[r.createElementVNode("img",{src:r.unref(l).src,alt:r.unref(l).alt,style:r.normalizeStyle({width:r.unref(l).width,height:r.unref(l).height})},null,12,kg)],4))}}),[["__scopeId","data-v-aa2f79c1"]]),Ag="#f5f5f5",Og=st(r.defineComponent({__name:"TableSection",props:{styles:{},id:{},content:{}},setup(t){const o=t,{columns:l}=r.toRefs(o.content),{data:u}=Mi(o.id,[]),s=r.computed(()=>[...u.value[o.content.rowsKey]||[]]);return(c,h)=>(r.openBlock(),r.createElementBlock("table",{style:r.normalizeStyle({width:"100%",...c.styles||{}}),class:"table-section"},[r.createElementVNode("thead",null,[r.createElementVNode("tr",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(l),g=>(r.openBlock(),r.createElementBlock("th",{key:g.key,style:r.normalizeStyle({textAlign:g.align||"left"}),contenteditable:""},r.toDisplayString(g.header),5))),128))])]),r.createElementVNode("tbody",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.value,(g,w)=>(r.openBlock(),r.createElementBlock("tr",{key:w,style:r.normalizeStyle({backgroundColor:w%2===0?Ag:"transparent"})},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(l),k=>(r.openBlock(),r.createElementBlock("td",{key:k.key,style:r.normalizeStyle({textAlign:k.align||"left"}),contenteditable:""},r.toDisplayString(g[k.key]),5))),128))],4))),128))])],4))}}),[["__scopeId","data-v-e0c84f86"]]),Tg={key:0,contenteditable:""},Bg={key:1,contenteditable:""},Rg={key:2,contenteditable:""},Ig=st(r.defineComponent({__name:"TextSection",props:{styles:{},id:{},content:{}},setup(t){const o=t,{data:l}=Mi(o.id,{}),u=r.computed(()=>{var c,h;return((h=(c=o.content)==null?void 0:c.lines)==null?void 0:h.map(({type:g,text:w})=>({type:g,text:s(l.value,w)})))||[]});function s(c,h){const g=h.match(/{{(.*?)}}/g);return g?g.reduce((w,k)=>{const v=k.replace(/{{|}}/g,""),C=Ls(c,v);return w.replace(k,C??v)},h):h}return(c,h)=>(r.openBlock(),r.createElementBlock("div",{style:r.normalizeStyle({...c.styles||{}})},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(u.value,({type:g,text:w})=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[g==="title"?(r.openBlock(),r.createElementBlock("h1",Tg,r.toDisplayString(w),1)):r.createCommentVNode("",!0),g==="subtitle"?(r.openBlock(),r.createElementBlock("h2",Bg,r.toDisplayString(w),1)):r.createCommentVNode("",!0),g==="paragraph"?(r.openBlock(),r.createElementBlock("p",Rg,r.toDisplayString(w),1)):r.createCommentVNode("",!0)],64))),256))],4))}}),[["__scopeId","data-v-477d92e8"]]),Mg=r.defineComponent({__name:"SectionWrapper",props:{section:{}},setup(t){const o=t,l={[pt.LayoutSectionType.TEXT]:Ig,[pt.LayoutSectionType.IMAGE]:Eg,[pt.LayoutSectionType.TABLE]:Og,[pt.LayoutSectionType.CARDS_GRID]:Cg},u=r.computed(()=>o.section.type),s=r.computed(()=>({content:o.section.content,styles:o.section.styles,id:o.section.idDocLaySection}));return(c,h)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(l[u.value]),r.normalizeProps(r.guardReactiveProps(s.value)),null,16))}}),qs=st(r.defineComponent({__name:"SectionsContainer",props:{layout:{},data:{},htmlNodes:{}},setup(t){var h;const o=t,{layout:l,data:u}=r.toRefs(o);r.provide("data",u);const s=r.computed(()=>{var w;const g=l.value.sections.map(k=>({type:"default",section:k}));return(w=o.htmlNodes)==null||w.forEach(({index:k,element:v})=>{const C=k>g.length?g.length:k;g.splice(C,0,{type:"html",section:v})}),g}),c=((h=l.value.styles)==null?void 0:h.cssRaw)||"";return(g,w)=>(r.openBlock(),r.createElementBlock("div",{class:"sections-container",style:r.normalizeStyle(r.unref(c))},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.value,({type:k,section:v})=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[k==="default"?(r.openBlock(),r.createBlock(Mg,{key:0,section:v},null,8,["section"])):(r.openBlock(),r.createBlock(pg,{key:1,section:v},null,8,["section"]))],64))),256))],4))}}),[["__scopeId","data-v-94fca854"]]),Lg={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",Is),t.component("TestUi",Ms),t.component("SectionsContainer",qs)}};Nt.DynamicForm=Is,Nt.SectionsContainer=qs,Nt.TestUi=Ms,Nt.default=Lg,Object.defineProperties(Nt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
27
+ }`;var we=nd(function(){return Oe(m,oe+"return "+D).apply(l,p)});if(we.source=D,ma(we))throw we;return we}function Gy(e){return Te(e).toLowerCase()}function Ky(e){return Te(e).toUpperCase()}function jy(e,n,i){if(e=Te(e),e&&(i||n===l))return cc(e);if(!e||!(n=Ct(n)))return e;var a=Wt(e),f=Wt(n),m=fc(a,f),p=dc(a,f)+1;return Rn(a,m,p).join("")}function Yy(e,n,i){if(e=Te(e),e&&(i||n===l))return e.slice(0,mc(e)+1);if(!e||!(n=Ct(n)))return e;var a=Wt(e),f=dc(a,Wt(n))+1;return Rn(a,0,f).join("")}function Qy(e,n,i){if(e=Te(e),e&&(i||n===l))return e.replace(zr,"");if(!e||!(n=Ct(n)))return e;var a=Wt(e),f=fc(a,Wt(n));return Rn(a,f).join("")}function Zy(e,n){var i=$,a=Z;if($e(n)){var f="separator"in n?n.separator:f;i="length"in n?ye(n.length):i,a="omission"in n?Ct(n.omission):a}e=Te(e);var m=e.length;if(yr(e)){var p=Wt(e);m=p.length}if(i>=m)return e;var b=i-wr(a);if(b<1)return a;var x=p?Rn(p,0,b).join(""):e.slice(0,b);if(f===l)return x+a;if(p&&(b+=x.length-b),ga(f)){if(e.slice(b).search(f)){var L,q=x;for(f.global||(f=Ro(f.source,Te(ln.exec(f))+"g")),f.lastIndex=0;L=f.exec(q);)var D=L.index;x=x.slice(0,D===l?b:D)}}else if(e.indexOf(Ct(f),b)!=b){var J=x.lastIndexOf(f);J>-1&&(x=x.slice(0,J))}return x+a}function Xy(e){return e=Te(e),e&&io.test(e)?e.replace(Fr,Ap):e}var Jy=Or(function(e,n,i){return e+(i?" ":"")+n.toUpperCase()}),_a=nf("toUpperCase");function td(e,n,i){return e=Te(e),n=i?l:n,n===l?Sp(e)?Bp(e):hp(e):e.match(n)||[]}var nd=Se(function(e,n){try{return St(e,l,n)}catch(i){return ma(i)?i:new pe(i)}}),ew=cn(function(e,n){return Rt(n,function(i){i=Jt(i),un(e,i,da(e[i],e))}),e});function tw(e){var n=e==null?0:e.length,i=ce();return e=n?Pe(e,function(a){if(typeof a[1]!="function")throw new It(h);return[i(a[0]),a[1]]}):[],Se(function(a){for(var f=-1;++f<n;){var m=e[f];if(St(m[0],this,a))return St(m[1],this,a)}})}function nw(e){return Av(Lt(e,k))}function ba(e){return function(){return e}}function rw(e,n){return e==null||e!==e?n:e}var iw=lf(),lw=lf(!0);function gt(e){return e}function ya(e){return Lc(typeof e=="function"?e:Lt(e,k))}function ow(e){return Vc(Lt(e,k))}function aw(e,n){return Pc(e,Lt(n,k))}var uw=Se(function(e,n){return function(i){return Jr(i,e,n)}}),sw=Se(function(e,n){return function(i){return Jr(e,i,n)}});function wa(e,n,i){var a=Xe(n),f=fl(n,a);i==null&&!($e(n)&&(f.length||!a.length))&&(i=n,n=e,e=this,f=fl(n,Xe(n)));var m=!($e(i)&&"chain"in i)||!!i.chain,p=dn(e);return Rt(f,function(b){var x=n[b];e[b]=x,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:x,args:arguments,thisArg:e}),q.__chain__=L,q}return x.apply(e,kn([this.value()],arguments))})}),e}function cw(){return et._===this&&(et._=Vp),this}function Sa(){}function fw(e){return e=ye(e),Se(function(n){return Nc(n,e)})}var dw=Jo(Pe),hw=Jo(lc),mw=Jo(Co);function rd(e){return oa(e)?ko(Jt(e)):Hv(e)}function gw(e){return function(n){return e==null?l:Qn(e,n)}}var pw=af(),vw=af(!0);function xa(){return[]}function Ca(){return!1}function _w(){return{}}function bw(){return""}function yw(){return!0}function ww(e,n){if(e=ye(e),e<1||e>W)return[];var i=B,a=rt(e,B);n=ce(n),e-=B;for(var f=Oo(a,n);++i<e;)n(i);return f}function Sw(e){return be(e)?Pe(e,Jt):kt(e)?[e]:dt(xf(Te(e)))}function xw(e){var n=++Lp;return Te(e)+n}var Cw=vl(function(e,n){return e+n},0),kw=ea("ceil"),Ew=vl(function(e,n){return e/n},1),Aw=ea("floor");function Ow(e){return e&&e.length?cl(e,gt,Do):l}function Tw(e,n){return e&&e.length?cl(e,ce(n,2),Do):l}function Bw(e){return uc(e,gt)}function Rw(e,n){return uc(e,ce(n,2))}function Iw(e){return e&&e.length?cl(e,gt,zo):l}function Mw(e,n){return e&&e.length?cl(e,ce(n,2),zo):l}var Lw=vl(function(e,n){return e*n},1),qw=ea("round"),Vw=vl(function(e,n){return e-n},0);function Pw(e){return e&&e.length?Ao(e,gt):0}function Nw(e,n){return e&&e.length?Ao(e,ce(n,2)):0}return d.after=ob,d.ary=Lf,d.assign=Kb,d.assignIn=jf,d.assignInWith=Bl,d.assignWith=jb,d.at=Yb,d.before=qf,d.bind=da,d.bindAll=ew,d.bindKey=Vf,d.castArray=_b,d.chain=Rf,d.chunk=A0,d.compact=O0,d.concat=T0,d.cond=tw,d.conforms=nw,d.constant=ba,d.countBy=P_,d.create=Qb,d.curry=Pf,d.curryRight=Nf,d.debounce=Df,d.defaults=Zb,d.defaultsDeep=Xb,d.defer=ab,d.delay=ub,d.difference=B0,d.differenceBy=R0,d.differenceWith=I0,d.drop=M0,d.dropRight=L0,d.dropRightWhile=q0,d.dropWhile=V0,d.fill=P0,d.filter=D_,d.flatMap=U_,d.flatMapDeep=z_,d.flatMapDepth=H_,d.flatten=Af,d.flattenDeep=N0,d.flattenDepth=D0,d.flip=sb,d.flow=iw,d.flowRight=lw,d.fromPairs=$0,d.functions=ly,d.functionsIn=oy,d.groupBy=W_,d.initial=U0,d.intersection=z0,d.intersectionBy=H0,d.intersectionWith=W0,d.invert=uy,d.invertBy=sy,d.invokeMap=K_,d.iteratee=ya,d.keyBy=j_,d.keys=Xe,d.keysIn=mt,d.map=Cl,d.mapKeys=fy,d.mapValues=dy,d.matches=ow,d.matchesProperty=aw,d.memoize=El,d.merge=hy,d.mergeWith=Yf,d.method=uw,d.methodOf=sw,d.mixin=wa,d.negate=Al,d.nthArg=fw,d.omit=my,d.omitBy=gy,d.once=cb,d.orderBy=Y_,d.over=dw,d.overArgs=fb,d.overEvery=hw,d.overSome=mw,d.partial=ha,d.partialRight=$f,d.partition=Q_,d.pick=py,d.pickBy=Qf,d.property=rd,d.propertyOf=gw,d.pull=Y0,d.pullAll=Tf,d.pullAllBy=Q0,d.pullAllWith=Z0,d.pullAt=X0,d.range=pw,d.rangeRight=vw,d.rearg=db,d.reject=J_,d.remove=J0,d.rest=hb,d.reverse=ca,d.sampleSize=tb,d.set=_y,d.setWith=by,d.shuffle=nb,d.slice=e_,d.sortBy=lb,d.sortedUniq=a_,d.sortedUniqBy=u_,d.split=Uy,d.spread=mb,d.tail=s_,d.take=c_,d.takeRight=f_,d.takeRightWhile=d_,d.takeWhile=h_,d.tap=O_,d.throttle=gb,d.thru=xl,d.toArray=Wf,d.toPairs=Zf,d.toPairsIn=Xf,d.toPath=Sw,d.toPlainObject=Kf,d.transform=yy,d.unary=pb,d.union=m_,d.unionBy=g_,d.unionWith=p_,d.uniq=v_,d.uniqBy=__,d.uniqWith=b_,d.unset=wy,d.unzip=fa,d.unzipWith=Bf,d.update=Sy,d.updateWith=xy,d.values=Rr,d.valuesIn=Cy,d.without=y_,d.words=td,d.wrap=vb,d.xor=w_,d.xorBy=S_,d.xorWith=x_,d.zip=C_,d.zipObject=k_,d.zipObjectDeep=E_,d.zipWith=A_,d.entries=Zf,d.entriesIn=Xf,d.extend=jf,d.extendWith=Bl,wa(d,d),d.add=Cw,d.attempt=nd,d.camelCase=Oy,d.capitalize=Jf,d.ceil=kw,d.clamp=ky,d.clone=bb,d.cloneDeep=wb,d.cloneDeepWith=Sb,d.cloneWith=yb,d.conformsTo=xb,d.deburr=ed,d.defaultTo=rw,d.divide=Ew,d.endsWith=Ty,d.eq=Kt,d.escape=By,d.escapeRegExp=Ry,d.every=N_,d.find=$_,d.findIndex=kf,d.findKey=Jb,d.findLast=F_,d.findLastIndex=Ef,d.findLastKey=ey,d.floor=Aw,d.forEach=If,d.forEachRight=Mf,d.forIn=ty,d.forInRight=ny,d.forOwn=ry,d.forOwnRight=iy,d.get=pa,d.gt=Cb,d.gte=kb,d.has=ay,d.hasIn=va,d.head=Of,d.identity=gt,d.includes=G_,d.indexOf=F0,d.inRange=Ey,d.invoke=cy,d.isArguments=Jn,d.isArray=be,d.isArrayBuffer=Eb,d.isArrayLike=ht,d.isArrayLikeObject=ze,d.isBoolean=Ab,d.isBuffer=In,d.isDate=Ob,d.isElement=Tb,d.isEmpty=Bb,d.isEqual=Rb,d.isEqualWith=Ib,d.isError=ma,d.isFinite=Mb,d.isFunction=dn,d.isInteger=Ff,d.isLength=Ol,d.isMap=Uf,d.isMatch=Lb,d.isMatchWith=qb,d.isNaN=Vb,d.isNative=Pb,d.isNil=Db,d.isNull=Nb,d.isNumber=zf,d.isObject=$e,d.isObjectLike=Ue,d.isPlainObject=li,d.isRegExp=ga,d.isSafeInteger=$b,d.isSet=Hf,d.isString=Tl,d.isSymbol=kt,d.isTypedArray=Br,d.isUndefined=Fb,d.isWeakMap=Ub,d.isWeakSet=zb,d.join=G0,d.kebabCase=Iy,d.last=Vt,d.lastIndexOf=K0,d.lowerCase=My,d.lowerFirst=Ly,d.lt=Hb,d.lte=Wb,d.max=Ow,d.maxBy=Tw,d.mean=Bw,d.meanBy=Rw,d.min=Iw,d.minBy=Mw,d.stubArray=xa,d.stubFalse=Ca,d.stubObject=_w,d.stubString=bw,d.stubTrue=yw,d.multiply=Lw,d.nth=j0,d.noConflict=cw,d.noop=Sa,d.now=kl,d.pad=qy,d.padEnd=Vy,d.padStart=Py,d.parseInt=Ny,d.random=Ay,d.reduce=Z_,d.reduceRight=X_,d.repeat=Dy,d.replace=$y,d.result=vy,d.round=qw,d.runInContext=S,d.sample=eb,d.size=rb,d.snakeCase=Fy,d.some=ib,d.sortedIndex=t_,d.sortedIndexBy=n_,d.sortedIndexOf=r_,d.sortedLastIndex=i_,d.sortedLastIndexBy=l_,d.sortedLastIndexOf=o_,d.startCase=zy,d.startsWith=Hy,d.subtract=Vw,d.sum=Pw,d.sumBy=Nw,d.template=Wy,d.times=ww,d.toFinite=hn,d.toInteger=ye,d.toLength=Gf,d.toLower=Gy,d.toNumber=Pt,d.toSafeInteger=Gb,d.toString=Te,d.toUpper=Ky,d.trim=jy,d.trimEnd=Yy,d.trimStart=Qy,d.truncate=Zy,d.unescape=Xy,d.uniqueId=xw,d.upperCase=Jy,d.upperFirst=_a,d.each=If,d.eachRight=Mf,d.first=Of,wa(d,function(){var e={};return Zt(d,function(n,i){Re.call(d.prototype,i)||(e[i]=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){ke.prototype[e]=function(i){i=i===l?1:Qe(ye(i),0);var a=this.__filtered__&&!n?new ke(this):this.clone();return a.__filtered__?a.__takeCount__=rt(i,a.__takeCount__):a.__views__.push({size:rt(i,B),type:e+(a.__dir__<0?"Right":"")}),a},ke.prototype[e+"Right"]=function(i){return this.reverse()[e](i).reverse()}}),Rt(["filter","map","takeWhile"],function(e,n){var i=n+1,a=i==P||i==ue;ke.prototype[e]=function(f){var m=this.clone();return m.__iteratees__.push({iteratee:ce(f,3),type:i}),m.__filtered__=m.__filtered__||a,m}}),Rt(["head","last"],function(e,n){var i="take"+(n?"Right":"");ke.prototype[e]=function(){return this[i](1).value()[0]}}),Rt(["initial","tail"],function(e,n){var i="drop"+(n?"":"Right");ke.prototype[e]=function(){return this.__filtered__?new ke(this):this[i](1)}}),ke.prototype.compact=function(){return this.filter(gt)},ke.prototype.find=function(e){return this.filter(e).head()},ke.prototype.findLast=function(e){return this.reverse().find(e)},ke.prototype.invokeMap=Se(function(e,n){return typeof e=="function"?new ke(this):this.map(function(i){return Jr(i,e,n)})}),ke.prototype.reject=function(e){return this.filter(Al(ce(e)))},ke.prototype.slice=function(e,n){e=ye(e);var i=this;return i.__filtered__&&(e>0||n<0)?new ke(i):(e<0?i=i.takeRight(-e):e&&(i=i.drop(e)),n!==l&&(n=ye(n),i=n<0?i.dropRight(-n):i.take(n-e)),i)},ke.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},ke.prototype.toArray=function(){return this.take(B)},Zt(ke.prototype,function(e,n){var i=/^(?:filter|find|map|reject)|While$/.test(n),a=/^(?:head|last)$/.test(n),f=d[a?"take"+(n=="last"?"Right":""):n],m=a||/^find/.test(n);f&&(d.prototype[n]=function(){var p=this.__wrapped__,b=a?[1]:arguments,x=p instanceof ke,L=b[0],q=x||be(p),D=function(Ce){var Ee=f.apply(d,kn([Ce],b));return a&&J?Ee[0]:Ee};q&&i&&typeof L=="function"&&L.length!=1&&(x=q=!1);var J=this.__chain__,oe=!!this.__actions__.length,de=m&&!J,we=x&&!oe;if(!m&&q){p=we?p:new ke(this);var he=e.apply(p,b);return he.__actions__.push({func:xl,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=Yi[e],i=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",a=/^(?:pop|shift)$/.test(e);d.prototype[e]=function(){var f=arguments;if(a&&!this.__chain__){var m=this.value();return n.apply(be(m)?m:[],f)}return this[i](function(p){return n.apply(be(p)?p:[],f)})}}),Zt(ke.prototype,function(e,n){var i=d[n];if(i){var a=i.name+"";Re.call(kr,a)||(kr[a]=[]),kr[a].push({name:n,func:i})}}),kr[pl(l,H).name]=[{name:"wrapper",func:l}],ke.prototype.clone=Xp,ke.prototype.reverse=Jp,ke.prototype.value=ev,d.prototype.at=T_,d.prototype.chain=B_,d.prototype.commit=R_,d.prototype.next=I_,d.prototype.plant=L_,d.prototype.reverse=q_,d.prototype.toJSON=d.prototype.valueOf=d.prototype.value=V_,d.prototype.first=d.prototype.head,Gr&&(d.prototype[Gr]=M_),d},Sr=Rp();Wn?((Wn.exports=Sr)._=Sr,yo._=Sr):et._=Sr}).call(xe)}(oi,oi.exports);var Ne=oi.exports,pt={},Ea={},er={};Object.defineProperty(er,"__esModule",{value:!0}),er.EstadoCaptacion=er.TipoCaptacion=void 0;var Aa;(function(t){t.CLIENTES="1",t.PROVEEDORES="2",t.USUARIOS="3",t.PRODUCTOS="4",t.PEDIDOS="5"})(Aa||(er.TipoCaptacion=Aa={}));var Oa;(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"})(Oa||(er.EstadoCaptacion=Oa={}));var ai={};Object.defineProperty(ai,"__esModule",{value:!0}),ai.TipoGarantia=void 0;var Ta;(function(t){t.INMUEBLE="Propiedad inmobiliaria",t.VEHICULO="Vehículo",t.AVAL_PERSONAL="Aval personal",t.OTROS="Otros"})(Ta||(ai.TipoGarantia=Ta={}));var ui={};Object.defineProperty(ui,"__esModule",{value:!0}),ui.TipoImportacion=void 0;var Ba;(function(t){t.CAPTACION="captacion",t.PEDIDO="pedido",t.PRODUCTO="producto",t.CLIENTE="cliente"})(Ba||(ui.TipoImportacion=Ba={}));var gn={};Object.defineProperty(gn,"__esModule",{value:!0}),gn.TipoLiquidacionReclamo=gn.EstadoLiquidacionReclamo=gn.EstadoLiquidacion=void 0;var Ra;(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"})(Ra||(gn.EstadoLiquidacion=Ra={}));var Ia;(function(t){t[t.ACTIVO=1]="ACTIVO",t[t.APROBADO=2]="APROBADO",t[t.NEGADO=3]="NEGADO"})(Ia||(gn.EstadoLiquidacionReclamo=Ia={}));var Ma;(function(t){t[t.ITEM=1]="ITEM",t[t.COBRO=2]="COBRO"})(Ma||(gn.TipoLiquidacionReclamo=Ma={}));var si={};Object.defineProperty(si,"__esModule",{value:!0}),si.TipoNotificacion=void 0;var La;(function(t){t.NUEVO="1",t.DOCUMENTOS="2",t.REALIZADO="3",t.INCIDENTES="4",t.CANCELACION="5"})(La||(si.TipoNotificacion=La={}));var ci={};Object.defineProperty(ci,"__esModule",{value:!0}),ci.EstadoPedido=void 0;var qa;(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"})(qa||(ci.EstadoPedido=qa={}));var tr={};Object.defineProperty(tr,"__esModule",{value:!0}),tr.TipoProducto=tr.EstadoProducto=void 0;var Va;(function(t){t.DESHABILITADO="0",t.INACTIVO="1",t.ACTIVADO="2",t.PUBLICO="3"})(Va||(tr.EstadoProducto=Va={}));var Pa;(function(t){t.ARTICULO="1",t.SERVICIO_CONTRATO="2",t.MEMBRESIA="3",t.OFERTA_EMPLEO="4"})(Pa||(tr.TipoProducto=Pa={}));var fi={};Object.defineProperty(fi,"__esModule",{value:!0}),fi.EstadoBase=void 0;var Na;(function(t){t[t.INACTIVO=0]="INACTIVO",t[t.ACTIVO=1]="ACTIVO"})(Na||(fi.EstadoBase=Na={})),function(t){var o=xe&&xe.__createBinding||(Object.create?function(u,s,c,h){h===void 0&&(h=c);var g=Object.getOwnPropertyDescriptor(s,c);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,h,g)}:function(u,s,c,h){h===void 0&&(h=c),u[h]=s[c]}),l=xe&&xe.__exportStar||function(u,s){for(var c in u)c!=="default"&&!Object.prototype.hasOwnProperty.call(s,c)&&o(s,u,c)};Object.defineProperty(t,"__esModule",{value:!0}),l(er,t),l(ai,t),l(ui,t),l(gn,t),l(si,t),l(ci,t),l(tr,t),l(fi,t)}(Ea);var Da={},$a={},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,c,h){h===void 0&&(h=c);var g=Object.getOwnPropertyDescriptor(s,c);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,h,g)}:function(u,s,c,h){h===void 0&&(h=c),u[h]=s[c]}),l=xe&&xe.__exportStar||function(u,s){for(var c in u)c!=="default"&&!Object.prototype.hasOwnProperty.call(s,c)&&o(s,u,c)};Object.defineProperty(t,"__esModule",{value:!0}),l(di,t)}($a);var Fa={},pn={};Object.defineProperty(pn,"__esModule",{value:!0}),pn.LAYOUT_SECTION_TYPES=pn.LayoutSectionType=pn.TextLineType=void 0;var Ua;(function(t){t.TITLE="title",t.SUBTITLE="subtitle",t.PARAGRAPH="paragraph"})(Ua||(pn.TextLineType=Ua={}));var nr;(function(t){t.TEXT="text",t.TABLE="table",t.CARDS_GRID="cards-grid",t.IMAGE="image"})(nr||(pn.LayoutSectionType=nr={})),pn.LAYOUT_SECTION_TYPES=[nr.TEXT,nr.CARDS_GRID,nr.TABLE,nr.IMAGE],function(t){var o=xe&&xe.__createBinding||(Object.create?function(u,s,c,h){h===void 0&&(h=c);var g=Object.getOwnPropertyDescriptor(s,c);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,h,g)}:function(u,s,c,h){h===void 0&&(h=c),u[h]=s[c]}),l=xe&&xe.__exportStar||function(u,s){for(var c in u)c!=="default"&&!Object.prototype.hasOwnProperty.call(s,c)&&o(s,u,c)};Object.defineProperty(t,"__esModule",{value:!0}),l(pn,t)}(Fa);var za={},hi={};Object.defineProperty(hi,"__esModule",{value:!0}),hi.TipoComision=void 0;var Ha;(function(t){t.PORCENTAJE="porcentaje",t.MONTO_FIJO="monto_fijo"})(Ha||(hi.TipoComision=Ha={}));var Wa={};Object.defineProperty(Wa,"__esModule",{value:!0});var Ot={};Object.defineProperty(Ot,"__esModule",{value:!0}),Ot.TABLES=Ot.TABLES_FIELDS=Ot.SOURCES=Ot.LOGIC_OPERATORS=Ot.RULE_OPERATORS=void 0,Ot.RULE_OPERATORS=["==","!=","<",">","IN"],Ot.LOGIC_OPERATORS=["AND","OR"],Ot.SOURCES=["IMPORTACION","TABLA","CONTENEDOR"],Ot.TABLES_FIELDS={PRODUCTOS:["TIPO","NOMBRE","DESCRIPCION","ID_GAMA","ESTADO","TAGS","ID_PRODUCTO","PROPS","COD_ART_MVX"],CAPTACION:["ESTADO","TIPO","CAPTADO","ID_CAPTACION","FECHA_CAPTADO"]},Ot.TABLES=[{label:"PRODUCTOS",value:"PRODUCTOS"},{label:"CAPTACIONES",value:"CAPTACION"}],function(t){var o=xe&&xe.__createBinding||(Object.create?function(u,s,c,h){h===void 0&&(h=c);var g=Object.getOwnPropertyDescriptor(s,c);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,h,g)}:function(u,s,c,h){h===void 0&&(h=c),u[h]=s[c]}),l=xe&&xe.__exportStar||function(u,s){for(var c in u)c!=="default"&&!Object.prototype.hasOwnProperty.call(s,c)&&o(s,u,c)};Object.defineProperty(t,"__esModule",{value:!0}),l(hi,t),l(Wa,t),l(Ot,t)}(za);var Ga={},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 Ka;(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"})(Ka||(rr.ControlType=Ka={}));var ja={};Object.defineProperty(ja,"__esModule",{value:!0});var Ya={};Object.defineProperty(Ya,"__esModule",{value:!0});var Qa={};(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}))})(Qa);var Za={};Object.defineProperty(Za,"__esModule",{value:!0}),function(t){var o=xe&&xe.__createBinding||(Object.create?function(u,s,c,h){h===void 0&&(h=c);var g=Object.getOwnPropertyDescriptor(s,c);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,h,g)}:function(u,s,c,h){h===void 0&&(h=c),u[h]=s[c]}),l=xe&&xe.__exportStar||function(u,s){for(var c in u)c!=="default"&&!Object.prototype.hasOwnProperty.call(s,c)&&o(s,u,c)};Object.defineProperty(t,"__esModule",{value:!0}),l(mi,t),l(rr,t),l(ja,t),l(Ya,t),l(Qa,t),l(Za,t)}(Ga);var Xa={},Ja={};Object.defineProperty(Ja,"__esModule",{value:!0}),function(t){var o=xe&&xe.__createBinding||(Object.create?function(u,s,c,h){h===void 0&&(h=c);var g=Object.getOwnPropertyDescriptor(s,c);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,h,g)}:function(u,s,c,h){h===void 0&&(h=c),u[h]=s[c]}),l=xe&&xe.__exportStar||function(u,s){for(var c in u)c!=="default"&&!Object.prototype.hasOwnProperty.call(s,c)&&o(s,u,c)};Object.defineProperty(t,"__esModule",{value:!0}),l(Ja,t)}(Xa),function(t){var o=xe&&xe.__createBinding||(Object.create?function(u,s,c,h){h===void 0&&(h=c);var g=Object.getOwnPropertyDescriptor(s,c);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,h,g)}:function(u,s,c,h){h===void 0&&(h=c),u[h]=s[c]}),l=xe&&xe.__exportStar||function(u,s){for(var c in u)c!=="default"&&!Object.prototype.hasOwnProperty.call(s,c)&&o(s,u,c)};Object.defineProperty(t,"__esModule",{value:!0}),l($a,t),l(Fa,t),l(za,t),l(Ga,t),l(Xa,t)}(Da),function(t){var o=xe&&xe.__createBinding||(Object.create?function(u,s,c,h){h===void 0&&(h=c);var g=Object.getOwnPropertyDescriptor(s,c);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(u,h,g)}:function(u,s,c,h){h===void 0&&(h=c),u[h]=s[c]}),l=xe&&xe.__exportStar||function(u,s){for(var c in u)c!=="default"&&!Object.prototype.hasOwnProperty.call(s,c)&&o(s,u,c)};Object.defineProperty(t,"__esModule",{value:!0}),l(Ea,t),l(Da,t)}(pt);const Rl=[pt.ControlType.DYNAMIC_ARRAY,pt.ControlType.OBJECT],ld={maxControlsPerGroup:1,notifyValidations:!0},eu={required:{fn:()=>t=>{var o;if(t.controlType===pt.ControlType.LOCATION){const{value:l}=t.value;return Ne.values(Ne.omit(l,"catastro")).every(u=>!Ne.isNil(u)&&u!=="")&&(l!=null&&l.catastro?od(l==null?void 0:l.catastro):!0)}return t.controlType===pt.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=>tu(o,">=",t),message:"El valor es menor al mínimo permitido"},max:{fn:t=>o=>tu(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 tu(t,o,l){const u={">":(s,c)=>s>c,"<":(s,c)=>s<c,">=":(s,c)=>s>=c,"<=":(s,c)=>s<=c}[o];if(t.controlType===pt.ControlType.NUMBER){const s=Number(t.value);return u(s,l)}if(t.controlType===pt.ControlType.TEXT){const s=(t.value||"").length;return u(s,l)}if([pt.ControlType.CARDS_SELECT,pt.ControlType.SELECT].includes(t.controlType)&&t.multiple){const s=(t.value||[]).length;return u(s,l)}return!1}function od(t){return/^[A-Za-z0-9]{20}$/.test(t)}function ad(t){const o=[];t.controls.forEach((u,s)=>{const c=ud(u);o.push(...c);const h=!c.length;t.controls[s].valid=h});const l=!o.length;return t.valid=l,o}function ud(t){const o=[];return t.validators&&t.validators.forEach(l=>{const{validator:u,param:s}=l,c=eu[u]||null;c&&(c.fn(Number(s))(t)||o.push(c.message))}),o}function sd(t,o,l){return o.controlType==="dynamic_array"?cd(t,o,l):o.controlType==="object"?nu(t,o,l):[]}function cd(t,o,l){var c,h;const u=[],s=((c=o.itemsLength)==null?void 0:c.value)||0;for(let g=0;g<s;g++){const w=nu({...t,title:`${t.title} ${g+1}`},{...o,value:(h=o.value)==null?void 0:h[g]},l);w.forEach(C=>{C.controls.forEach(v=>{v.code=`${g}.${v.code}`})}),u.push(...w)}return u}function nu(t,o,l){const u=o.structure;return Ne.chunk(u,l).map(c=>({...t,controls:ru(c).map(h=>{var g;return{...h,id:o.id,value:((g=o.value)==null?void 0:g[h.code])||h.value}})}))}function fd(t){return Ne.chain(t).groupBy("group").toPairs().orderBy(([l,u])=>l).map(([l,u])=>{var h;const s=((h=u.find(g=>{var w;return!!((w=g.title)!=null&&w.trim())}))==null?void 0:h.title)||"",c=u[0].group;return{title:s,controls:u,order:c,visible:!0,valid:u.every(g=>g.valid),id:""}}).value()}function dd(t){return t.map(o=>({...o,valid:!1,controls:ru(o.controls)}))}function ru(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:hd(o),itemsLength:o.controlType==="dynamic_array"?{...o.itemsLength,value:((s=o.itemsLength)==null?void 0:s.default)||1}:null}})}function hd(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:",ka.getActivePinia());const ir=ka.defineStore("form",{state:()=>({formSteps:[],currentStep:1,onLastSubstep:!1,collections:{}}),actions:{setFormSteps(t){this.formSteps=dd(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,c=this.formSteps[t].controls.find(h=>h.id===l);c&&(Rl.includes(c.controlType)?Ne.set(c.value,s,u):c.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 iu{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,c=u.ORDEN,h=u.DESCRIPCION,g=u.CLAVE,w=u.ID_CUESTIONARIO,C=u.PREGUNTAS.filter(v=>v.ESTADO===1).map(v=>this.parseControl(v));return{title:s,order:c,text:h,controls:C,name:g,id:w}})}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,c=(h,g)=>g.controlType==="input_number"&&h!==null&&h!==void 0&&h!==""&&typeof h=="string";return c(u,o)?parseFloat(u.replaceAll(".","")):(l==="object"&&s.forEach(h=>{const g=u[h.code];c(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 vn=r.ref(!1);let Il;function md(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 gd(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 lu="ontouchstart"in window||window.navigator.maxTouchPoints>0;function pd(t){const o=t.toLowerCase(),l=gd(o),u=md(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 c=s.android||s.ios||s.bb||s.blackberry||s.ipad||s.iphone||s.ipod||s.kindle||s.playbook||s.silk||s["windows phone"];if(c===!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&&c!==!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"),vn.value===!0&&(Il={is:{...s}}),lu===!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 ou=navigator.userAgent||navigator.vendor||window.opera,vd={has:{touch:!1,webStorage:!1},within:{iframe:!1}},vt={userAgent:ou,is:pd(ou),has:{touch:lu},within:{iframe:window.self!==window.top}},Ml={install(t){const{$q:o}=t;vn.value===!0?(t.onSSRHydrated.push(()=>{Object.assign(o.platform,vt),vn.value=!1}),o.platform=r.reactive(this)):o.platform=this}};{let t;gi(vt.has,"webStorage",()=>{if(t!==void 0)return t;try{if(window.localStorage)return t=!0,!0}catch{}return t=!1,!1}),Object.assign(Ml,vt),vn.value===!0&&(Object.assign(Ml,Il,vd),Il=null)}function Ze(t){return r.markRaw(r.defineComponent(t))}function au(t){return r.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 c=t.entries();for(u=c.next();u.done!==!0;){if(o.has(u.value[0])!==!0)return!1;u=c.next()}for(c=t.entries(),u=c.next();u.done!==!0;){if(en(u.value[1],o.get(u.value[0]))!==!0)return!1;u=c.next()}return!0}if(t.constructor===Set){if(t.size!==o.size)return!1;const c=t.entries();for(u=c.next();u.done!==!0;){if(o.has(u.value[0])!==!0)return!1;u=c.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(c=>t[c]!==void 0);if(l=s.length,l!==Object.keys(o).filter(c=>o[c]!==void 0).length)return!1;for(u=l;u--!==0;){const c=s[u];if(en(t[c],o[c])!==!0)return!1}return!0}return t!==t&&o!==o}const uu={threshold:0,root:null,rootMargin:"0px"};function su(t,o,l){let u,s,c;typeof l=="function"?(u=l,s=uu,c=o.cfg===void 0):(u=l.handler,s=Object.assign({},uu,l.cfg),c=o.cfg===void 0||en(o.cfg,s)===!1),o.handler!==u&&(o.handler=u),c===!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)&&cu(t)}},s),o.observer.observe(t))}function cu(t){const o=t.__qvisible;o!==void 0&&(o.observer!==void 0&&o.observer.unobserve(t),delete t.__qvisible)}const _d=au({name:"intersection",mounted(t,{modifiers:o,value:l}){const u={once:o.once===!0};su(t,u,l),t.__qvisible=u},updated(t,o){const l=t.__qvisible;l!==void 0&&su(t,l,o.value)},beforeUnmount:cu});function _t(t,o){return t!==void 0&&t()||o}function bd(t,o){if(t!==void 0){const l=t();if(l!=null)return l.slice()}return o}function Mn(t,o){return t!==void 0?o.concat(t()):o}function yd(t,o){return t===void 0?o:o!==void 0?o.concat(t()):t()}function fu(t,o,l,u,s,c){o.key=u+s;const h=r.h(t,o,l);return s===!0?r.withDirectives(h,c()):h}const wd=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=r.ref(vn.value===!0?t.ssrPrerender:!1),s=r.computed(()=>t.root!==void 0||t.margin!==void 0||t.threshold!==void 0?{handler:w,cfg:{root:t.root,rootMargin:t.margin,threshold:t.threshold}}:w),c=r.computed(()=>t.disable!==!0&&(vn.value!==!0||t.once!==!0||t.ssrPrerender!==!0)),h=r.computed(()=>[[_d,s.value,void 0,{once:t.once}]]),g=r.computed(()=>`--q-transition-duration: ${t.transitionDuration}ms`);function w(v){u.value!==v.isIntersecting&&(u.value=v.isIntersecting,t.onVisibility!==void 0&&l("visibility",u.value))}function C(){if(u.value===!0)return[r.h("div",{key:"content",style:g.value},_t(o.default))];if(o.hidden!==void 0)return[r.h("div",{key:"hidden",style:g.value},o.hidden())]}return()=>{const v=t.transition?[r.h(r.Transition,{name:"q-transition--"+t.transition},C)]:C();return fu(t.tag,{class:"q-intersection"},v,"main",c.value,()=>h.value)}}}),Ll={xs:18,sm:24,md:32,lg:38,xl:46},pi={size:String};function vi(t,o=Ll){return r.computed(()=>t.size!==void 0?{fontSize:t.size in o?`${o[t.size]}px`:t.size}:null)}const Sd={size:{type:[String,Number],default:"1em"},color:String};function xd(t){return{cSize:r.computed(()=>t.size in Ll?`${Ll[t.size]}px`:t.size),classes:r.computed(()=>"q-spinner"+(t.color?` text-${t.color}`:""))}}const ql=Ze({name:"QSpinner",props:{...Sd,thickness:{type:Number,default:5}},setup(t){const{cSize:o,classes:l}=xd(t);return()=>r.h("svg",{class:l.value+" q-spinner-mat",width:o.value,height:o.value,viewBox:"25 25 50 50"},[r.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":t.thickness,"stroke-miterlimit":"10"})])}}),Cd={ratio:[String,Number]};function kd(t,o){return r.computed(()=>{const l=Number(t.ratio||(o!==void 0?o.value:void 0));return isNaN(l)!==!0&&l>0?{paddingBottom:`${100/l}%`}:null})}function Vl(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 du(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=r.getCurrentInstance();function l(){t!==null&&(clearTimeout(t),t=null)}return r.onDeactivated(l),r.onBeforeUnmount(l),{removeTimeout:l,registerTimeout(u,s){l(),Ir(o)===!1&&(t=setTimeout(()=>{t=null,u()},s))}}}const Ed=Ze({name:"QImg",props:{...Cd,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=r.ref(t.initialRatio),s=kd(t,u),c=r.getCurrentInstance(),{registerTimeout:h,removeTimeout:g}=_i(),{registerTimeout:w,removeTimeout:C}=_i(),v=r.computed(()=>t.placeholderSrc!==void 0?{src:t.placeholderSrc}:null),k=r.computed(()=>t.errorSrc!==void 0?{src:t.errorSrc,__qerror:!0}:null),E=[r.ref(null),r.ref(v.value)],y=r.ref(0),T=r.ref(!1),z=r.ref(!1),R=r.computed(()=>`q-img q-img--${t.noNativeMenu===!0?"no-":""}menu`),H=r.computed(()=>({width:t.width,height:t.height})),F=r.computed(()=>`q-img__image ${t.imgClass!==void 0?t.imgClass+" ":""}q-img__image--with${t.noTransition===!0?"out":""}-transition q-img__image--`),N=r.computed(()=>({...t.imgStyle,objectFit:t.fit,objectPosition:t.position}));function Q(){if(C(),t.loadingShowDelay===0){T.value=!0;return}w(()=>{T.value=!0},t.loadingShowDelay)}function G(){C(),T.value=!1}function j({target:A}){Ir(c)===!1&&(g(),u.value=A.naturalHeight===0?.5:A.naturalWidth/A.naturalHeight,K(A,1))}function K(A,te){te===1e3||Ir(c)===!0||(A.complete===!0?le(A):h(()=>{K(A,te+1)},50))}function le(A){Ir(c)!==!0&&(y.value=y.value^1,E[y.value].value=null,G(),A.getAttribute("__qerror")!=="true"&&(z.value=!1),l("load",A.currentSrc||A.src))}function V(A){g(),G(),z.value=!0,E[y.value].value=k.value,E[y.value^1].value=v.value,l("error",A)}function $(A){const te=E[A].value,P={key:"img_"+A,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===A?Object.assign(P,{class:P.class+"current",onLoad:j,onError:V}):P.class+="loaded",r.h("div",{class:"q-img__container absolute-full",key:"img"+A},r.h("img",P))}function Z(){return T.value===!1?r.h("div",{key:"content",class:"q-img__content absolute-full q-anchor--skip"},_t(o[z.value===!0?"error":"default"])):r.h("div",{key:"loading",class:"q-img__loading absolute-full flex flex-center"},o.loading!==void 0?o.loading():t.noSpinner===!0?void 0:[r.h(ql,{color:t.spinnerColor,size:t.spinnerSize})])}{let A=function(){r.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})};vn.value===!0?r.onMounted(A):A()}return()=>{const A=[];return s.value!==null&&A.push(r.h("div",{key:"filler",style:s.value})),E[0].value!==null&&A.push($(0)),E[1].value!==null&&A.push($(1)),A.push(r.h(r.Transition,{name:"q-transition--fade"},Z)),r.h("div",{key:"main",class:R.value,style:H.value,role:"img","aria-label":t.alt},A)}}}),hu="0 0 24 24",mu=t=>t,Pl=t=>`ionicons ${t}`,gu={"mdi-":t=>`mdi ${t}`,"icon-":mu,"bt-":t=>`bt ${t}`,"eva-":t=>`eva ${t}`,"ion-md":Pl,"ion-ios":Pl,"ion-logo":Pl,"iconfont ":mu,"ti-":t=>`themify-icon ${t}`,"bi-":t=>`bootstrap-icons ${t}`},pu={o_:"-outlined",r_:"-round",s_:"-sharp"},vu={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},Ad=new RegExp("^("+Object.keys(gu).join("|")+")"),Od=new RegExp("^("+Object.keys(pu).join("|")+")"),_u=new RegExp("^("+Object.keys(vu).join("|")+")"),Td=/^[Mm]\s?[-+]?\.?\d/,Bd=/^img:/,Rd=/^svguse:/,Id=/^ion-/,Md=/^(fa-(sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,bt=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}}=r.getCurrentInstance(),u=vi(t),s=r.computed(()=>"q-icon"+(t.left===!0?" on-left":"")+(t.right===!0?" on-right":"")+(t.color!==void 0?` text-${t.color}`:"")),c=r.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(Td.test(g)===!0){const[v,k=hu]=g.split("|");return{svg:!0,viewBox:k,nodes:v.split("&&").map(E=>{const[y,T,z]=E.split("@@");return r.h("path",{style:T,d:y,transform:z})})}}if(Bd.test(g)===!0)return{img:!0,src:g.substring(4)};if(Rd.test(g)===!0){const[v,k=hu]=g.split("|");return{svguse:!0,src:v.substring(7),viewBox:k}}let w=" ";const C=g.match(Ad);if(C!==null)h=gu[C[1]](g);else if(Md.test(g)===!0)h=g;else if(Id.test(g)===!0)h=`ionicons ion-${l.platform.is.ios===!0?"ios":"md"}${g.substring(3)}`;else if(_u.test(g)===!0){h="notranslate material-symbols";const v=g.match(_u);v!==null&&(g=g.substring(6),h+=vu[v[1]]),w=g}else{h="notranslate material-icons";const v=g.match(Od);v!==null&&(g=g.substring(2),h+=pu[v[1]]),w=g}return{cls:h,content:w}});return()=>{const h={class:s.value,style:u.value,"aria-hidden":"true",role:"presentation"};return c.value.none===!0?r.h(t.tag,h,_t(o.default)):c.value.img===!0?r.h(t.tag,h,Mn(o.default,[r.h("img",{src:c.value.src})])):c.value.svg===!0?r.h(t.tag,h,Mn(o.default,[r.h("svg",{viewBox:c.value.viewBox||"0 0 24 24"},c.value.nodes)])):c.value.svguse===!0?r.h(t.tag,h,Mn(o.default,[r.h("svg",{viewBox:c.value.viewBox},[r.h("use",{"xlink:href":c.value.src})])])):(c.value.cls!==void 0&&(h.class+=" "+c.value.cls),r.h(t.tag,h,Mn(o.default,[c.value.content])))}}}),Ld={class:"card-select-container"},qd=["onClick"],Vd={class:"check"},Pd={class:"row justify-center items-center",style:{height:"100%"}},Nd=["onClick"],Dd=r.defineComponent({__name:"CardsSelectControl",props:r.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=r.useModel(t,"modelValue"),l=t,{control:u}=r.toRefs(l);function s(g){if(u.value.multiple){let w=Ne.cloneDeep(o.value);g.exclusive?w=[g.value]:(w=w.filter(C=>{var v,k;return!((k=(v=u.value.options)==null?void 0:v.find(E=>E.value===C))!=null&&k.exclusive)}),w.includes(g.value)?w=w.filter(C=>C!==g.value):w.push(g.value)),o.value=w}else o.value=g.value}function c(g){return h(g)?"active":""}function h(g){let w;return u.value.multiple?w=(o.value||[]).includes(String(g.value)):w=o.value===g.value,w}return(g,w)=>{const C=r.resolveComponent("ControlLabel");return r.openBlock(),r.createElementBlock(r.Fragment,null,[r.unref(u).label?(r.openBlock(),r.createBlock(C,{key:0,label:r.unref(u).label},null,8,["label"])):r.createCommentVNode("",!0),r.createElementVNode("div",Ld,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(u).options,(v,k)=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:k},[v.image?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(`image-card ${c(v)}`),onClick:()=>s(v)},[r.createVNode(Ed,{src:v.image,height:"200px",width:"200px",fit:"fill",class:"image"},null,8,["src"]),r.createElementVNode("div",Vd,[r.createElementVNode("div",Pd,[h(v)?(r.openBlock(),r.createBlock(bt,{key:0,name:"check",size:"25px"})):r.createCommentVNode("",!0)])])],10,qd)):(r.openBlock(),r.createElementBlock("div",{key:1,class:r.normalizeClass(`card-option ${c(v)}`),onClick:()=>s(v)},[r.createElementVNode("span",null,r.toDisplayString(v.label),1)],10,Nd))],64))),128))])],64)}}}),st=(t,o)=>{const l=t.__vccOpts||t;for(const[u,s]of o)l[u]=s;return l},$d=st(Dd,[["__scopeId","data-v-148468d6"]]),lr={dark:{type:Boolean,default:null}};function or(t,o){return r.computed(()=>t.dark===null?o.dark.isActive:t.dark)}function Fd(t,o){const l=r.ref(null),u=r.computed(()=>t.disable===!0?null:r.h("span",{ref:l,class:"no-outline",tabindex:-1}));function s(c){const h=o.value;c!==void 0&&c.type.indexOf("key")===0?h!==null&&document.activeElement!==h&&h.contains(document.activeElement)===!0&&h.focus():l.value!==null&&(c===void 0||h!==null&&h.contains(c.target)===!0)&&l.value.focus()}return{refocusTargetEl:u,refocusTarget:s}}const Nl={name:String};function Ud(t={}){return(o,l,u)=>{o[l](r.h("input",{class:"hidden"+(u||""),...t.value}))}}function bu(t){return r.computed(()=>t.name||t.for)}const zd={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 Hd(){}function yu(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 Wd(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 Dt(t){t.cancelable!==!1&&t.preventDefault()}function Ke(t){t.cancelable!==!1&&t.preventDefault(),t.stopPropagation()}function Dl(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 wu(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 Su={...lr,...pi,...Nl,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]},xu=["update:modelValue"];function Cu(t,o){const{props:l,slots:u,emit:s,proxy:c}=r.getCurrentInstance(),{$q:h}=c,g=or(l,h),w=r.ref(null),{refocusTargetEl:C,refocusTarget:v}=Fd(l,w),k=vi(l,zd),E=r.computed(()=>l.val!==void 0&&Array.isArray(l.modelValue)),y=r.computed(()=>{const A=r.toRaw(l.val);return E.value===!0?l.modelValue.findIndex(te=>r.toRaw(te)===A):-1}),T=r.computed(()=>E.value===!0?y.value!==-1:r.toRaw(l.modelValue)===r.toRaw(l.trueValue)),z=r.computed(()=>E.value===!0?y.value===-1:r.toRaw(l.modelValue)===r.toRaw(l.falseValue)),R=r.computed(()=>T.value===!1&&z.value===!1),H=r.computed(()=>l.disable===!0?-1:l.tabindex||0),F=r.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=r.computed(()=>{const A=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--${A}${te}`}),Q=r.computed(()=>{const A={type:"checkbox"};return l.name!==void 0&&Object.assign(A,{".checked":T.value,"^checked":T.value===!0?"checked":void 0,name:l.name,value:E.value===!0?l.val:l.trueValue}),A}),G=Ud(Q),j=r.computed(()=>{const A={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&&(A["aria-disabled"]="true"),A});function K(A){A!==void 0&&(Ke(A),v(A)),l.disable!==!0&&s("update:modelValue",le(),A)}function le(){if(E.value===!0){if(T.value===!0){const A=l.modelValue.slice();return A.splice(y.value,1),A}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(A){(A.keyCode===13||A.keyCode===32)&&Ke(A)}function $(A){(A.keyCode===13||A.keyCode===32)&&K(A)}const Z=o(T,R);return Object.assign(c,{toggle:K}),()=>{const A=Z();l.disable!==!0&&G(A,"unshift",` q-${t}__native absolute q-ma-none q-pa-none`);const te=[r.h("div",{class:N.value,style:k.value,"aria-hidden":"true"},A)];C.value!==null&&te.push(C.value);const P=l.label!==void 0?Mn(u.default,[l.label]):_t(u.default);return P!==void 0&&te.push(r.h("div",{class:`q-${t}__label q-anchor--skip`},P)),r.h("div",{ref:w,class:F.value,...j.value,onClick:K,onKeydown:V,onKeyup:$},te)}}const Gd=r.h("div",{key:"svg",class:"q-checkbox__bg absolute"},[r.h("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24"},[r.h("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),r.h("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]),ku=Ze({name:"QCheckbox",props:Su,emits:xu,setup(t){function o(l,u){const s=r.computed(()=>(l.value===!0?t.checkedIcon:u.value===!0?t.indeterminateIcon:t.uncheckedIcon)||null);return()=>s.value!==null?[r.h("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[r.h(bt,{class:"q-checkbox__icon",name:s.value})])]:[Gd]}return Cu("checkbox",o)}}),Eu=r.defineComponent({__name:"SimpleCheckbox",props:r.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=r.useModel(t,"modelValue");return(l,u)=>(r.openBlock(),r.createBlock(ku,{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"]))}}),Kd=Ze({name:"QToggle",props:{...Su,icon:String,iconColor:String},emits:xu,setup(t){function o(l,u){const s=r.computed(()=>(l.value===!0?t.checkedIcon:u.value===!0?t.indeterminateIcon:t.uncheckedIcon)||t.icon),c=r.computed(()=>l.value===!0?t.iconColor:null);return()=>[r.h("div",{class:"q-toggle__track"}),r.h("div",{class:"q-toggle__thumb absolute flex flex-center no-wrap"},s.value!==void 0?[r.h(bt,{name:s.value,color:c.value})]:void 0)]}return Cu("toggle",o)}}),jd=r.defineComponent({__name:"SimpleSwitch",props:r.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=r.useModel(t,"modelValue");return(l,u)=>(r.openBlock(),r.createBlock(Kd,{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 $l,bi=0;const Je=new Array(256);for(let t=0;t<256;t++)Je[t]=(t+256).toString(16).substring(1);const Yd=(()=>{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}})(),Au=4096;function Fl(){($l===void 0||bi+16>Au)&&(bi=0,$l=Yd(Au));const t=Array.prototype.slice.call($l,bi,bi+=16);return t[6]=t[6]&15|64,t[8]=t[8]&63|128,Je[t[0]]+Je[t[1]]+Je[t[2]]+Je[t[3]]+"-"+Je[t[4]]+Je[t[5]]+"-"+Je[t[6]]+Je[t[7]]+"-"+Je[t[8]]+Je[t[9]]+"-"+Je[t[10]]+Je[t[11]]+Je[t[12]]+Je[t[13]]+Je[t[14]]+Je[t[15]]}function Qd(t){return t??null}function Ou(t,o){return t??(o===!0?`f_${Fl()}`:null)}function Zd({getValue:t,required:o=!0}={}){if(vn.value===!0){const l=t!==void 0?r.ref(Qd(t())):r.ref(null);return o===!0&&l.value===null&&r.onMounted(()=>{l.value=`f_${Fl()}`}),t!==void 0&&r.watch(t,u=>{l.value=Ou(u,o)}),l}return t!==void 0?r.computed(()=>Ou(t(),o)):r.ref(`f_${Fl()}`)}const Tu=/^on[A-Z]/;function Xd(){const{attrs:t,vnode:o}=r.getCurrentInstance(),l={listeners:r.ref({}),attributes:r.ref({})};function u(){const s={},c={};for(const h in t)h!=="class"&&h!=="style"&&Tu.test(h)===!1&&(s[h]=t[h]);for(const h in o.props)Tu.test(h)===!0&&(c[h]=o.props[h]);l.attributes.value=s,l.listeners.value=c}return r.onBeforeUpdate(u),u(),l}const Jd="_q_",eh="_q_fo_";function th({validate:t,resetValidation:o,requiresQForm:l}){const u=r.inject(eh,!1);if(u!==!1){const{props:s,proxy:c}=r.getCurrentInstance();Object.assign(c,{validate:t,resetValidation:o}),r.watch(()=>s.disable,h=>{h===!0?(typeof o=="function"&&o(),u.unbindComponent(c)):u.bindComponent(c)}),r.onMounted(()=>{s.disable!==!0&&u.bindComponent(c)}),r.onBeforeUnmount(()=>{s.disable!==!0&&u.unbindComponent(c)})}else l===!0&&console.error("Parent QForm not found on useFormChild()!")}const Bu=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,Ru=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,Iu=/^#([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)\)$/,Ul={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=>Bu.test(t),hexaColor:t=>Ru.test(t),hexOrHexaColor:t=>Iu.test(t),rgbColor:t=>yi.test(t),rgbaColor:t=>wi.test(t),rgbOrRgbaColor:t=>yi.test(t)||wi.test(t),hexOrRgbColor:t=>Bu.test(t)||yi.test(t),hexaOrRgbaColor:t=>Ru.test(t)||wi.test(t),anyColor:t=>Iu.test(t)||yi.test(t)||wi.test(t)};function Mu(t,o=250,l){let u=null;function s(){const c=arguments,h=()=>{u=null,t.apply(this,c)};u!==null&&clearTimeout(u),u=setTimeout(h,o)}return s.cancel=()=>{u!==null&&clearTimeout(u)},s}const nh=[!0,!1,"ondemand"],rh={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:t=>nh.includes(t)}};function ih(t,o){const{props:l,proxy:u}=r.getCurrentInstance(),s=r.ref(!1),c=r.ref(null),h=r.ref(!1);th({validate:z,resetValidation:T});let g=0,w;const C=r.computed(()=>l.rules!==void 0&&l.rules!==null&&l.rules.length!==0),v=r.computed(()=>l.disable!==!0&&C.value===!0&&o.value===!1),k=r.computed(()=>l.error===!0||s.value===!0),E=r.computed(()=>typeof l.errorMessage=="string"&&l.errorMessage.length!==0?l.errorMessage:c.value);r.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()}r.watch(()=>l.reactiveRules,H=>{H===!0?w===void 0&&(w=r.watch(()=>l.rules,y,{immediate:!0,deep:!0})):w!==void 0&&(w(),w=void 0)},{immediate:!0}),r.watch(()=>l.lazyRules,y),r.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,c.value=null,R.cancel()}function z(H=l.modelValue){if(l.disable===!0||C.value===!1)return!0;const F=++g,N=o.value!==!0?()=>{h.value=!0}:()=>{},Q=(j,K)=>{j===!0&&N(),s.value=j,c.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,Ul):typeof K=="string"&&Ul[K]!==void 0&&(le=Ul[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=Mu(z,0);return r.onBeforeUnmount(()=>{w!==void 0&&w(),R.cancel()}),Object.assign(u,{resetValidation:T,validate:z}),gi(u,"hasError",()=>k.value),{isDirtyModel:h,hasRules:C,hasError:k,errorMessage:E,validate:z,resetValidation:T}}let Ln=[],Mr=[];function Lu(t){Mr=Mr.filter(o=>o!==t)}function lh(t){Lu(t),Mr.push(t)}function qu(t){Lu(t),Mr.length===0&&Ln.length!==0&&(Ln[Ln.length-1](),Ln=[])}function Si(t){Mr.length===0?t():Ln.push(t)}function oh(t){Ln=Ln.filter(o=>o!==t)}function Lr(t){return t!=null&&(""+t).length!==0}const xi={...{...lr,...rh,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]},zl=["update:modelValue","clear","focus","blur"];function Hl({requiredForAttr:t=!0,tagProp:o,changeEvent:l=!1}={}){const{props:u,proxy:s}=r.getCurrentInstance(),c=or(u,s.$q),h=Zd({required:t,getValue:()=>u.for});return{requiredForAttr:t,changeEvent:l,tag:o===!0?r.computed(()=>u.tag):{value:"label"},isDark:c,editable:r.computed(()=>u.disable!==!0&&u.readonly!==!0),innerLoading:r.ref(!1),focused:r.ref(!1),hasPopupOpen:!1,splitAttrs:Xd(),targetUid:h,rootRef:r.ref(null),targetRef:r.ref(null),controlRef:r.ref(null)}}function Wl(t){const{props:o,emit:l,slots:u,attrs:s,proxy:c}=r.getCurrentInstance(),{$q:h}=c;let g=null;t.hasValue===void 0&&(t.hasValue=r.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=r.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:w,hasRules:C,hasError:v,errorMessage:k,resetValidation:E}=ih(t.focused,t.innerLoading),y=t.floatingLabel!==void 0?r.computed(()=>o.stackLabel===!0||t.focused.value===!0||t.floatingLabel.value===!0):r.computed(()=>o.stackLabel===!0||t.focused.value===!0||t.hasValue.value===!0),T=r.computed(()=>o.bottomSlots===!0||o.hint!==void 0||C.value===!0||o.counter===!0||o.error!==null),z=r.computed(()=>o.filled===!0?"filled":o.outlined===!0?"outlined":o.borderless===!0?"borderless":o.standout?"standout":"standard"),R=r.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=r.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=r.computed(()=>o.labelSlot===!0||o.label!==void 0),N=r.computed(()=>"q-field__label no-pointer-events absolute ellipsis"+(o.labelColor!==void 0&&v.value!==!0?` text-${o.labelColor}`:"")),Q=r.computed(()=>({id:t.targetUid.value,editable:t.editable.value,focused:t.focused.value,floatingLabel:y.value,modelValue:o.modelValue,emitValue:t.emitValue})),G=r.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(){oh(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),r.nextTick(()=>{const se=w.value;E(),w.value=se})}function A(W){[13,32].includes(W.keyCode)&&Z(W)}function te(){const W=[];return u.prepend!==void 0&&W.push(r.h("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:Dt},u.prepend())),W.push(r.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",[r.h(bt,{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():[r.h(ql,{color:o.color})])):o.clearable===!0&&t.hasValue.value===!0&&t.editable.value===!0&&W.push(ue("inner-clearable-append",[r.h(bt,{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:A,onClick:Z})])),u.append!==void 0&&W.push(r.h("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:Dt},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(r.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(r.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(r.h("div",{class:N.value},_t(u.label,o.label))),o.suffix!==void 0&&o.suffix!==null&&W.push(r.h("div",{class:"q-field__suffix no-pointer-events row items-center"},o.suffix)),W.concat(_t(u.default))}function ae(){let W,se;v.value===!0?k.value!==null?(W=[r.h("div",{role:"alert"},k.value)],se=`q--slot-error-${k.value}`):(W=_t(u.error),se="q--slot-error"):(o.hideHint!==!0||t.focused.value===!0)&&(o.hint!==void 0?(W=[r.h("div",o.hint)],se=`q--slot-hint-${o.hint}`):(W=_t(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=r.h("div",{key:se,class:"q-field__messages col"},W);return r.h("div",{class:"q-field__bottom row items-start q-field__bottom--"+(o.hideBottomSpace!==!0?"animated":"stale"),onClick:Dt},[o.hideBottomSpace===!0?B:r.h(r.Transition,{name:"q-transition--field-message"},()=>B),ge===!0?r.h("div",{class:"q-field__counter"},u.counter!==void 0?u.counter():t.computedCounter.value):null])}function ue(W,se){return se===null?null:r.h("div",{key:W,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},se)}let fe=!1;return r.onDeactivated(()=>{fe=!0}),r.onActivated(()=>{fe===!0&&o.autofocus===!0&&c.focus()}),o.autofocus===!0&&r.onMounted(()=>{c.focus()}),r.onBeforeUnmount(()=>{g!==null&&clearTimeout(g)}),Object.assign(c,{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 r.h(t.tag.value,{ref:t.rootRef,class:[R.value,s.class],style:s.style,...se},[u.before!==void 0?r.h("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:Dt},u.before()):null,r.h("div",{class:"q-field__inner relative-position col self-stretch"},[r.h("div",{ref:t.controlRef,class:H.value,tabindex:-1,...t.controlEvents},te()),T.value===!0?ae():null]),u.after!==void 0?r.h("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:Dt},u.after()):null])}}function Gl(t){return t!==Object(t)||t.isComposing===!0||t.qKeyEvent===!0}function qn(t,o){return Gl(t)===!0?!1:[].concat(o).includes(t.keyCode)}const Vu={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()}},Pu=Object.keys(Ci);Pu.forEach(t=>{Ci[t].regex=new RegExp(Ci[t].pattern)});const ah=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+Pu.join("")+"])|(.)","g"),Nu=/[.*+?^${}()|[\]\\]/g,We="",uh={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean};function sh(t,o,l,u){let s,c,h,g,w,C;const v=r.ref(null),k=r.ref(y());function E(){return t.autogrow===!0||["textarea","text","search","url","tel","password"].includes(t.type)}r.watch(()=>t.type+t.autogrow,z),r.watch(()=>t.mask,V=>{if(V!==void 0)R(k.value,!0);else{const $=K(k.value);z(),t.modelValue!==$&&o("update:modelValue",$)}}),r.watch(()=>t.fillMask+t.reverseFillMask,()=>{v.value===!0&&R(k.value,!0)}),r.watch(()=>t.unmaskedValue,()=>{v.value===!0&&R(k.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 A=Z.indexOf(We);if(A!==-1){for(let te=V-Z.length;te>0;te--)$+=We;Z=Z.slice(0,A)+$+Z.slice(A)}return Z}function z(){if(v.value=t.mask!==void 0&&t.mask.length!==0&&E(),v.value===!1){g=void 0,s="",c="";return}const V=Vu[t.mask]===void 0?t.mask:Vu[t.mask],$=typeof t.fillMask=="string"&&t.fillMask.length!==0?t.fillMask.slice(0,1):"_",Z=$.replace(Nu,"\\$&"),A=[],te=[],P=[];let ae=t.reverseFillMask===!0,ue="",fe="";V.replace(ah,(B,O,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),A.push("([^"+ue+"]+)?"+ue+"?");else{const U=O!==void 0?O:_e;ue=U==="\\"?"\\\\\\\\":U.replace(Nu,"\\\\$&"),P.push(U),A.push("([^"+ue+"]+)?"+ue+"?")}});const W=new RegExp("^"+A.join("")+"("+(ue===""?".":"[^"+ue+"]")+"+)?"+(ue===""?"":"["+ue+"]*")+"$"),se=te.length-1,ge=te.map((B,O)=>O===0&&t.reverseFillMask===!0?new RegExp("^"+Z+"*"+B):O===se?new RegExp("^"+B+"("+(fe===""?".":fe)+"+)?"+(t.reverseFillMask===!0?"$":Z+"*")):new RegExp("^"+B));h=P,g=B=>{const O=W.exec(t.reverseFillMask===!0?B:B.slice(0,P.length+1));O!==null&&(B=O.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(""),c=s.split(We).join($)}function R(V,$,Z){const A=u.value,te=A.selectionEnd,P=A.value.length-te,ae=K(V);$===!0&&z();const ue=G(ae),fe=t.fillMask!==!1?le(ue):ue,W=k.value!==fe;A.value!==fe&&(A.value=fe),W===!0&&(k.value=fe),document.activeElement===A&&r.nextTick(()=>{if(fe===c){const ge=t.reverseFillMask===!0?c.length:0;A.setSelectionRange(ge,ge,"forward");return}if(Z==="insertFromPaste"&&t.reverseFillMask!==!0){const ge=A.selectionEnd;let B=te-1;for(let O=w;O<=B&&O<ge;O++)s[O]!==We&&B++;F.right(A,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===c?0:Math.min(ue.length,P)+1))+1:te;A.setSelectionRange(ge,ge,"forward");return}if(t.reverseFillMask===!0)if(W===!0){const ge=Math.max(0,fe.length-(fe===c?0:Math.min(ue.length,P+1)));ge===1&&te===1?A.setSelectionRange(ge,ge,"forward"):F.rightReverse(A,ge)}else{const ge=fe.length-P;A.setSelectionRange(ge,ge,"backward")}else if(W===!0){const ge=Math.max(0,s.indexOf(We),Math.min(ue.length,te)-1);F.right(A,ge)}else{const ge=te-1;F.right(A,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 A=G(K(V.value));$=Math.max(0,s.indexOf(We),Math.min(A.length,$)),w=$,V.setSelectionRange($,Z,"forward")}const F={left(V,$){const Z=s.slice($-1).indexOf(We)===-1;let A=Math.max(0,$-1);for(;A>=0;A--)if(s[A]===We){$=A,Z===!0&&$++;break}if(A<0&&s[$]!==void 0&&s[$]!==We)return F.right(V,0);$>=0&&V.setSelectionRange($,$,"backward")},right(V,$){const Z=V.value.length;let A=Math.min(Z,$+1);for(;A<=Z;A++)if(s[A]===We){$=A;break}else s[A-1]===We&&($=A);if(A>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 A=Math.max(0,$-1);for(;A>=0;A--)if(Z[A-1]===We){$=A;break}else if(Z[A]===We&&($=A,A===0))break;if(A<0&&Z[$]!==void 0&&Z[$]!==We)return F.rightReverse(V,0);$>=0&&V.setSelectionRange($,$,"backward")},rightReverse(V,$){const Z=V.value.length,A=T(Z),te=A.slice(0,$+1).indexOf(We)===-1;let P=Math.min(Z,$+1);for(;P<=Z;P++)if(A[P-1]===We){$=P,$>0&&te===!0&&$--;break}if(P>Z&&A[$-1]!==void 0&&A[$-1]!==We)return F.leftReverse(V,Z);V.setSelectionRange($,$,"forward")}};function N(V){o("click",V),C=void 0}function Q(V){if(o("keydown",V),Gl(V)===!0||V.altKey===!0)return;const $=u.value,Z=$.selectionStart,A=$.selectionEnd;if(V.shiftKey||(C=void 0),V.keyCode===37||V.keyCode===39){V.shiftKey&&C===void 0&&(C=$.selectionDirection==="forward"?Z:A);const te=F[(V.keyCode===39?"right":"left")+(t.reverseFillMask===!0?"Reverse":"")];if(V.preventDefault(),te($,C===Z?A:Z),V.shiftKey){const P=$.selectionStart;$.setSelectionRange(Math.min(C,P),Math.max(C,P),"forward")}}else V.keyCode===8&&t.reverseFillMask!==!0&&Z===A?(F.left($,Z),$.setSelectionRange($.selectionStart,A,"backward")):V.keyCode===46&&t.reverseFillMask===!0&&Z===A&&(F.rightReverse($,A),$.setSelectionRange(Z,$.selectionEnd,"forward"))}function G(V){if(V==null||V==="")return"";if(t.reverseFillMask===!0)return j(V);const $=h;let Z=0,A="";for(let te=0;te<$.length;te++){const P=V[Z],ae=$[te];if(typeof ae=="string")A+=ae,P===ae&&Z++;else if(P!==void 0&&ae.regex.test(P))A+=ae.transform!==void 0?ae.transform(P):P,Z++;else return A}return A}function j(V){const $=h,Z=s.indexOf(We);let A=V.length-1,te="";for(let P=$.length-1;P>=0&&A!==-1;P--){const ae=$[P];let ue=V[A];if(typeof ae=="string")te=ae+te,ue===ae&&A--;else if(ue!==void 0&&ae.regex.test(ue))do te=(ae.transform!==void 0?ae.transform(ue):ue)+te,A--,ue=V[A];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 c.length-V.length<=0?V:t.reverseFillMask===!0&&V.length!==0?c.slice(0,-V.length)+V:V+c.slice(V.length)}return{innerValue:k,hasMask:v,moveCursorForPaste:H,updateMaskValue:R,onMaskedKeydown:Q,onMaskedClick:N}}function ch(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(c=>{s.items.add(c)}),{files:s.files}}catch{return{files:void 0}}}return r.computed(()=>{if(t.type==="file")return l()})}const fh=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,dh=/[\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,hh=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,mh=/[a-z0-9_ -]$/i;function Du(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"&&(vt.is.firefox===!0?mh.test(l.data)===!1:fh.test(l.data)===!0||dh.test(l.data)===!0||hh.test(l.data)===!0)===!0&&(l.target.qComposing=!0)}}const $u=Ze({name:"QInput",inheritAttrs:!1,props:{...xi,...uh,...Nl,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:[...zl,"paste","change","keydown","click","animationend"],setup(t,{emit:o,attrs:l}){const{proxy:u}=r.getCurrentInstance(),{$q:s}=u,c={};let h=NaN,g,w,C=null,v;const k=r.ref(null),E=bu(t),{innerValue:y,hasMask:T,moveCursorForPaste:z,updateMaskValue:R,onMaskedKeydown:H,onMaskedClick:F}=sh(t,o,ue,k),N=ch(t),Q=r.computed(()=>Lr(y.value)),G=Du(P),j=Hl({changeEvent:!0}),K=r.computed(()=>t.type==="textarea"||t.autogrow===!0),le=r.computed(()=>K.value===!0||["text","search","url","tel","password"].includes(t.type)),V=r.computed(()=>{const O={...j.splitAttrs.listeners.value,onInput:P,onPaste:te,onChange:W,onBlur:se,onFocus:Yt};return O.onCompositionstart=O.onCompositionupdate=O.onCompositionend=G,T.value===!0&&(O.onKeydown=H,O.onClick=F),t.autogrow===!0&&(O.onAnimationend=ae),O}),$=r.computed(()=>{const O={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&&(O.type=t.type),t.autogrow===!0&&(O.rows=1),O});r.watch(()=>t.type,()=>{k.value&&(k.value.value=t.modelValue)}),r.watch(()=>t.modelValue,O=>{if(T.value===!0){if(w===!0&&(w=!1,String(O)===h))return;R(O)}else y.value!==O&&(y.value=O,t.type==="number"&&c.hasOwnProperty("value")===!0&&(g===!0?g=!1:delete c.value));t.autogrow===!0&&r.nextTick(fe)}),r.watch(()=>t.autogrow,O=>{O===!0?r.nextTick(fe):k.value!==null&&l.rows>0&&(k.value.style.height="auto")}),r.watch(()=>t.dense,()=>{t.autogrow===!0&&r.nextTick(fe)});function Z(){Si(()=>{const O=document.activeElement;k.value!==null&&k.value!==O&&(O===null||O.id!==j.targetUid.value)&&k.value.focus({preventScroll:!0})})}function A(){k.value!==null&&k.value.select()}function te(O){if(T.value===!0&&t.reverseFillMask!==!0){const ie=O.target;z(ie,ie.selectionStart,ie.selectionEnd)}o("paste",O)}function P(O){if(!O||!O.target)return;if(t.type==="file"){o("update:modelValue",O.target.files);return}const ie=O.target.value;if(O.target.qComposing===!0){c.value=ie;return}if(T.value===!0)R(ie,!1,O.inputType);else if(ue(ie),le.value===!0&&O.target===document.activeElement){const{selectionStart:ve,selectionEnd:_e}=O.target;ve!==void 0&&_e!==void 0&&r.nextTick(()=>{O.target===document.activeElement&&ie.indexOf(O.target.value)===0&&O.target.setSelectionRange(ve,_e)})}t.autogrow===!0&&fe()}function ae(O){o("animationend",O),fe()}function ue(O,ie){v=()=>{C=null,t.type!=="number"&&c.hasOwnProperty("value")===!0&&delete c.value,t.modelValue!==O&&h!==O&&(h=O,ie===!0&&(w=!0),o("update:modelValue",O),r.nextTick(()=>{h===O&&(h=NaN)})),v=void 0},t.type==="number"&&(g=!0,c.value=O),t.debounce!==void 0?(C!==null&&clearTimeout(C),c.value=O,C=setTimeout(v,t.debounce)):v()}function fe(){requestAnimationFrame(()=>{const O=k.value;if(O!==null){const ie=O.parentNode.style,{scrollTop:ve}=O,{overflowY:_e,maxHeight:U}=s.platform.is.firefox===!0?{}:window.getComputedStyle(O),ne=_e!==void 0&&_e!=="scroll";ne===!0&&(O.style.overflowY="hidden"),ie.marginBottom=O.scrollHeight-1+"px",O.style.height="1px",O.style.height=O.scrollHeight+"px",ne===!0&&(O.style.overflowY=parseInt(U,10)<O.scrollHeight?"auto":"hidden"),ie.marginBottom="",O.scrollTop=ve}})}function W(O){G(O),C!==null&&(clearTimeout(C),C=null),v!==void 0&&v(),o("change",O.target.value)}function se(O){O!==void 0&&Yt(O),C!==null&&(clearTimeout(C),C=null),v!==void 0&&v(),g=!1,w=!1,delete c.value,t.type!=="file"&&setTimeout(()=>{k.value!==null&&(k.value.value=y.value!==void 0?y.value:"")})}function ge(){return c.hasOwnProperty("value")===!0?c.value:y.value!==void 0?y.value:""}r.onBeforeUnmount(()=>{se()}),r.onMounted(()=>{t.autogrow===!0&&fe()}),Object.assign(j,{innerValue:y,fieldClass:r.computed(()=>`q-${K.value===!0?"textarea":"input"}`+(t.autogrow===!0?" q-textarea--autogrow":"")),hasShadow:r.computed(()=>t.type!=="file"&&typeof t.shadowText=="string"&&t.shadowText.length!==0),inputRef:k,emitValue:ue,hasValue:Q,floatingLabel:r.computed(()=>Q.value===!0&&(t.type!=="number"||isNaN(y.value)===!1)||Lr(t.displayValue)),getControl:()=>r.h(K.value===!0?"textarea":"input",{ref:k,class:["q-field__native q-placeholder",t.inputClass],style:t.inputStyle,...$.value,...V.value,...t.type!=="file"?{value:ge()}:N.value}),getShadowControl:()=>r.h("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(K.value===!0?"":" text-no-wrap")},[r.h("span",{class:"invisible"},ge()),r.h("span",t.shadowText)])});const B=Wl(j);return Object.assign(u,{focus:Z,select:A,getNativeElement:()=>k.value}),gi(u,"nativeEl",()=>k.value),B}}),ki=Ze({name:"QCard",props:{...lr,tag:{type:String,default:"div"},square:Boolean,flat:Boolean,bordered:Boolean},setup(t,{slots:o}){const{proxy:{$q:l}}=r.getCurrentInstance(),u=or(t,l),s=r.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()=>r.h(t.tag,{class:s.value},_t(o.default))}}),gh=r.defineComponent({__name:"WinInput",props:r.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=r.useModel(t,"modelValue"),u=t,s=r.ref(!1),c=r.computed(()=>u.transparent?"glass-card":"win-card"),h=r.computed(()=>u.label===""?void 0:u.label),g=r.computed(()=>{let y="width: 100%; padding-left: 10px; padding-right: 10px;";return u.inputHeight&&(y+="height: "+u.inputHeight),y}),w=r.computed(()=>l.value||s.value?"17.5px":"15px"),C=r.ref(null);function v(){C.value.focus()}function k(){s.value=!0}function E(){s.value=!1}return o({focus:v}),(y,T)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createVNode(ki,{onClick:v,class:r.normalizeClass(`${c.value} row items-center ${l.value&&y.label||s.value&&y.label?"q-pt-md":""} `),style:r.normalizeStyle({minHeight:y.height,width:y.width,maxWidth:"calc(100vw - 32px)",minWidth:y.minWidth,margin:"auto"})},{default:r.withCtx(()=>[r.renderSlot(y.$slots,"fixed-label",{class:"self-start"}),r.createVNode($u,{modelValue:l.value,"onUpdate:modelValue":T[0]||(T[0]=z=>l.value=z),ref_key:"inputRef",ref:C,"label-color":"black","input-class":`text-black ${h.value?"":"text-center ww-title"}`,"input-style":y.inputStyle,style:r.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:k,onBlur:E},{label:r.withCtx(()=>[!y.label||y.label!=""?(r.openBlock(),r.createElementBlock("div",{key:0,style:r.normalizeStyle(`padding-bottom: 30px; transition: 0.5s ease; font-size: ${w.value};`+y.labelStyle)},r.toDisplayString(y.label)+" "+r.toDisplayString(y.required&&!y.readonly?"*":""),5)):r.createCommentVNode("",!0)]),append:r.withCtx(()=>[r.renderSlot(y.$slots,"append")]),_:3},8,["modelValue","input-class","input-style","style","readonly","mask","prefix","label","type","suffix","counter","maxlength","rules","placeholder"]),r.renderSlot(y.$slots,"bottom")]),_:3},8,["class","style"]),y.hint?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(`text-${y.hintOptions.position} text-${y.hintOptions.color} text-caption q-mt-xl q-pt-xl q-pl-sm`)},r.toDisplayString(y.hint),3)):r.createCommentVNode("",!0)],64))}}),ph={class:"ww-subtitle text-center q-mb-md text-grey-9",style:{"font-weight":"600"}},vh=r.defineComponent({__name:"ControlLabel",props:{label:{}},setup(t){return(o,l)=>(r.openBlock(),r.createElementBlock("div",ph,r.toDisplayString(o.label),1))}}),_h={style:{"max-width":"400px"},class:"text-center"},bh={style:{"font-size":"16px"}},yh={style:{"font-size":"16px"}},Kl=st(r.defineComponent({__name:"InputControl",props:r.mergeModels({control:{},innerLabel:{type:Boolean,default:!1}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=t,l=r.ref(null),u=r.computed(()=>{var c;return(c=o.control.controlType)==null?void 0:c.split("_")[1]}),s=r.useModel(t,"modelValue");return r.onMounted(()=>{var c;(c=l.value)==null||c.focus()}),(c,h)=>(r.openBlock(),r.createElementBlock("div",_h,[!c.innerLabel&&c.control.label?(r.openBlock(),r.createBlock(vh,{key:0,label:c.control.label},null,8,["label"])):r.createCommentVNode("",!0),r.createVNode(gh,{modelValue:s.value,"onUpdate:modelValue":h[0]||(h[0]=g=>s.value=g),width:"250px",mask:u.value==="number"?"###.###.###.###.###":void 0,label:c.innerLabel?c.control.label:void 0,inputStyle:{textAlign:(u.value==="number","center")},ref_key:"inputRef",ref:l},r.createSlots({_:2},[c.control.prefix?{name:"prepend",fn:r.withCtx(()=>[r.createElementVNode("span",bh,r.toDisplayString(c.control.prefix),1)]),key:"0"}:void 0,c.control.suffix?{name:"append",fn:r.withCtx(()=>[r.createElementVNode("span",yh,r.toDisplayString(c.control.suffix),1)]),key:"1"}:void 0]),1032,["modelValue","mask","label","inputStyle"])]))}}),[["__scopeId","data-v-8f5284d3"]]);function jl(t,o){const l=t.style;for(const u in o)l[u]=o[u]}function wh(t){if(t==null)return;if(typeof t=="string")try{return document.querySelector(t)||void 0}catch{return}const o=r.unref(t);if(o)return o.$el||o}function Fu(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 Sh(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 Uu(t,o,l,u){l.modifiers.stop===!0&&Yt(t);const s=l.modifiers.color;let c=l.modifiers.center;c=c===!0||u===!0;const h=document.createElement("span"),g=document.createElement("span"),w=yu(t),{left:C,top:v,width:k,height:E}=o.getBoundingClientRect(),y=Math.sqrt(k*k+E*E),T=y/2,z=`${(k-y)/2}px`,R=c?z:`${w.left-C-T}px`,H=`${(E-y)/2}px`,F=c?H:`${w.top-v-T}px`;g.className="q-ripple__inner",jl(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 zu(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 Hu=au({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")&&Uu(s,t,u,s.qKeyEvent===!0)},keystart:Sh(s=>{u.enabled===!0&&s.qSkipRipple!==!0&&qn(s,u.modifiers.keyCodes)===!0&&s.type===`key${u.modifiers.early===!0?"down":"up"}`&&Uu(s,t,u,!0)},300)};zu(u,o),t.__qripple=u,Dl(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&&zu(l,o))}},beforeUnmount(t){const o=t.__qripple;o!==void 0&&(o.abort.forEach(l=>{l()}),wu(o,"main"),delete t._qripple)}}),Wu={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},xh=Object.keys(Wu),Ch={align:{type:String,validator:t=>xh.includes(t)}};function kh(t){return r.computed(()=>{const o=t.align===void 0?t.vertical===!0?"stretch":"left":t.align;return`${t.vertical===!0?"items":"justify"}-${Wu[o]}`})}function Gu(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}function Ku(t,o){return(t.aliasOf||t)===(o.aliasOf||o)}function Eh(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((c,h)=>c!==s[h]))return!1}return!0}function ju(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 Ah(t,o){return Array.isArray(t)===!0?ju(t,o):Array.isArray(o)===!0?ju(o,t):t===o}function Oh(t,o){if(Object.keys(t).length!==Object.keys(o).length)return!1;for(const l in t)if(Ah(t[l],o[l])===!1)return!1;return!0}const Yu={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},Th={...Yu,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function Qu({fallbackTag:t,useDisableForRouterLinkProps:o=!0}={}){const l=r.getCurrentInstance(),{props:u,proxy:s,emit:c}=l,h=du(l),g=r.computed(()=>u.disable!==!0&&u.href!==void 0),w=o===!0?r.computed(()=>h===!0&&u.disable!==!0&&g.value!==!0&&u.to!==void 0&&u.to!==null&&u.to!==""):r.computed(()=>h===!0&&g.value!==!0&&u.to!==void 0&&u.to!==null&&u.to!==""),C=r.computed(()=>w.value===!0?F(u.to):null),v=r.computed(()=>C.value!==null),k=r.computed(()=>g.value===!0||v.value===!0),E=r.computed(()=>u.type==="a"||k.value===!0?"a":u.tag||t||"div"),y=r.computed(()=>g.value===!0?{href:u.href,target:u.target}:v.value===!0?{href:C.value.href,target:u.target}:{}),T=r.computed(()=>{if(v.value===!1)return-1;const{matched:G}=C.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(Ku.bind(null,K));if(V!==-1)return V;const $=Gu(G[j-2]);return j>1&&Gu(K)===$&&le[le.length-1].path!==$?le.findIndex(Ku.bind(null,G[j-2])):V}),z=r.computed(()=>v.value===!0&&T.value!==-1&&Eh(s.$route.params,C.value.params)),R=r.computed(()=>z.value===!0&&T.value===s.$route.matched.length-1&&Oh(s.$route.params,C.value.params)),H=r.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);c("click",G,j),G.defaultPrevented!==!0&&j()}else c("click",G)}return{hasRouterLink:v,hasHrefLink:g,hasLink:k,linkTag:E,resolvedLink:C,linkIsActive:z,linkIsExactActive:R,linkClass:H,linkAttrs:y,getLink:F,navigateToRouterLink:N,navigateOnClick:Q}}const Zu={none:0,xs:4,sm:8,md:16,lg:24,xl:32},Bh={xs:8,sm:10,md:14,lg:20,xl:24},Rh=["button","submit","reset"],Ih=/[^\s]\/[^\s]/,Mh=["flat","outline","push","unelevated"];function Lh(t,o){return t.flat===!0?"flat":t.outline===!0?"outline":t.push===!0?"push":t.unelevated===!0?"unelevated":o}const qh={...{...pi,...Yu,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...Mh.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:{...Ch.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},round:Boolean};function Vh(t){const o=vi(t,Bh),l=kh(t),{hasRouterLink:u,hasLink:s,linkTag:c,linkAttrs:h,navigateOnClick:g}=Qu({fallbackTag:"button"}),w=r.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 Zu?Zu[H]+"px":H).join(" "),minWidth:"0",minHeight:"0"}):R}),C=r.computed(()=>t.rounded===!0||t.fab===!0||t.fabMini===!0),v=r.computed(()=>t.disable!==!0&&t.loading!==!0),k=r.computed(()=>v.value===!0?t.tabindex||0:-1),E=r.computed(()=>Lh(t,"standard")),y=r.computed(()=>{const R={tabindex:k.value};return s.value===!0?Object.assign(R,h.value):Rh.includes(t.type)===!0&&(R.type=t.type),c.value==="a"?(t.disable===!0?R["aria-disabled"]="true":R.href===void 0&&(R.role="button"),u.value!==!0&&Ih.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=r.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${C.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=r.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:w,innerClasses:z,attributes:y,hasLink:s,linkTag:c,navigateOnClick:g,isActionable:v}}const{passiveCapture:Tt}=ct;let ar=null,ur=null,sr=null;const cr=Ze({name:"QBtn",props:{...qh,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(t,{slots:o,emit:l}){const{proxy:u}=r.getCurrentInstance(),{classes:s,style:c,innerClasses:h,attributes:g,hasLink:w,linkTag:C,navigateOnClick:v,isActionable:k}=Vh(t),E=r.ref(null),y=r.ref(null);let T=null,z,R=null;const H=r.computed(()=>t.label!==void 0&&t.label!==null&&t.label!==""),F=r.computed(()=>t.disable===!0||t.ripple===!1?!1:{keyCodes:w.value===!0?[13,32]:[13],...t.ripple===!0?{}:t.ripple}),N=r.computed(()=>({center:t.round})),Q=r.computed(()=>{const P=Math.max(0,Math.min(100,t.percentage));return P>0?{transition:"transform 0.6s",transform:`translateX(${P-100}%)`}:{}}),G=r.computed(()=>{if(t.loading===!0)return{onMousedown:te,onTouchstart:te,onClick:te,onKeydown:te,onKeyup:te};if(k.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=r.computed(()=>({ref:E,class:"q-btn q-btn-item non-selectable no-outline "+s.value,style:c.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),qn(P,[13,32])===!0&&ur!==E.value&&(ur!==null&&A(),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&&A(),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&&A(),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&&qn(P,[13,32])===!0){const ae=new MouseEvent("click",P);ae.qKeyEvent=!0,P.defaultPrevented===!0&&Dt(ae),P.cancelBubble===!0&&Yt(ae),E.value.dispatchEvent(ae),Ke(P),P.qKeyEvent=!0}l("keyup",P)}A()}}function A(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 r.onBeforeUnmount(()=>{A(!0)}),Object.assign(u,{click:P=>{k.value===!0&&K(P)}}),()=>{let P=[];t.icon!==void 0&&P.push(r.h(bt,{name:t.icon,left:t.stack!==!0&&H.value===!0,role:"img"})),H.value===!0&&P.push(r.h("span",{class:"block"},[t.label])),P=Mn(o.default,P),t.iconRight!==void 0&&t.round===!1&&P.push(r.h(bt,{name:t.iconRight,right:t.stack!==!0&&H.value===!0,role:"img"}));const ae=[r.h("span",{class:"q-focus-helper",ref:y})];return t.loading===!0&&t.percentage!==void 0&&ae.push(r.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(t.darkPercentage===!0?" q-btn__progress--dark":"")},[r.h("span",{class:"q-btn__progress-indicator fit block",style:Q.value})])),ae.push(r.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+h.value},P)),t.loading!==null&&ae.push(r.h(r.Transition,{name:"q-transition--fade"},()=>t.loading===!0?[r.h("span",{key:"loading",class:"absolute-full flex flex-center"},o.loading!==void 0?o.loading():[r.h(ql)])]:null)),r.withDirectives(r.h(C.value,j.value,ae),[[Hu,F.value,void 0,N.value]])}}}),Xu=t=>(r.pushScopeId("data-v-3bcb795a"),t=t(),r.popScopeId(),t),Ph={class:"buttons-container"},Nh={class:"lt-md"},Dh={class:"row justify-between q-my-md q-px-md"},$h=Xu(()=>r.createElementVNode("span",{class:"text-black"},"Atrás",-1)),Fh={key:1},Uh=Xu(()=>r.createElementVNode("span",{class:"text-black"},"Siguiente",-1)),zh=st(r.defineComponent({__name:"NavigationButtons",props:{currentStep:{},stepsCount:{},nextDisabled:{type:Boolean}},emits:["prev","next"],setup(t){const o=t,l=r.computed(()=>o.currentStep+1);return(u,s)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("div",Ph,[l.value>1?(r.openBlock(),r.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]=c=>u.$emit("prev")),flat:""},{default:r.withCtx(()=>[r.createVNode(bt,{name:"arrow_back_ios",color:"info"})]),_:1})):r.createCommentVNode("",!0),l.value!==u.stepsCount?(r.openBlock(),r.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]=c=>u.$emit("next")),disable:u.nextDisabled,flat:""},{default:r.withCtx(()=>[r.createVNode(bt,{name:"arrow_forward_ios",color:"info"})]),_:1},8,["disable"])):r.createCommentVNode("",!0)]),r.createElementVNode("div",Nh,[r.createElementVNode("div",Dh,[l.value>1&&l.value<u.stepsCount?(r.openBlock(),r.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]=c=>u.$emit("prev")),flat:"","no-caps":""},{default:r.withCtx(()=>[$h]),_:1})):(r.openBlock(),r.createElementBlock("div",Fh)),l.value<u.stepsCount?(r.openBlock(),r.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]=c=>u.$emit("next")),disable:u.nextDisabled,flat:"","no-caps":""},{default:r.withCtx(()=>[Uh]),_:1},8,["disable"])):r.createCommentVNode("",!0)])])],64))}}),[["__scopeId","data-v-3bcb795a"]]),Hh=Ze({name:"QField",inheritAttrs:!1,props:{...xi,tag:{type:String,default:"label"}},emits:zl,setup(){return Wl(Hl({tagProp:!0}))}}),Wh={xs:8,sm:10,md:14,lg:20,xl:24},Gh=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}}=r.getCurrentInstance(),s=or(t,u),c=vi(t,Wh),h=r.computed(()=>t.selected===!0||t.icon!==void 0),g=r.computed(()=>t.selected===!0?t.iconSelected||u.iconSet.chip.selected:t.icon),w=r.computed(()=>t.iconRemove||u.iconSet.chip.remove),C=r.computed(()=>t.disable===!1&&(t.clickable===!0||t.selected!==null)),v=r.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":"")+(C.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":"")}),k=r.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=[];C.value===!0&&R.push(r.h("div",{class:"q-focus-helper"})),h.value===!0&&R.push(r.h(bt,{class:"q-chip__icon q-chip__icon--left",name:g.value}));const H=t.label!==void 0?[r.h("div",{class:"ellipsis"},[t.label])]:void 0;return R.push(r.h("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},yd(o.default,H))),t.iconRight&&R.push(r.h(bt,{class:"q-chip__icon q-chip__icon--right",name:t.iconRight})),t.removable===!0&&R.push(r.h(bt,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:w.value,...k.value.remove,onClick:T,onKeyup:T})),R}return()=>{if(t.modelValue===!1)return;const R={class:v.value,style:c.value};return C.value===!0&&Object.assign(R,k.value.chip,{onClick:y,onKeyup:E}),fu("div",R,z(),"ripple",t.ripple!==!1&&t.disable!==!0,()=>[[Hu,t.ripple]])}}}),Kh=Ze({name:"QItem",props:{...lr,...Th,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}}=r.getCurrentInstance(),s=or(t,u),{hasLink:c,linkAttrs:h,linkClass:g,linkTag:w,navigateOnClick:C}=Qu(),v=r.ref(null),k=r.ref(null),E=r.computed(()=>t.clickable===!0||c.value===!0||t.tag==="label"),y=r.computed(()=>t.disable!==!0&&E.value===!0),T=r.computed(()=>"q-item q-item-type row no-wrap"+(t.dense===!0?" q-item--dense":"")+(s.value===!0?" q-item--dark":"")+(c.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=r.computed(()=>t.insetLevel===void 0?null:{["padding"+(u.lang.rtl===!0?"Right":"Left")]:16+t.insetLevel*56+"px"});function R(N){y.value===!0&&(k.value!==null&&(N.qKeyEvent!==!0&&document.activeElement===v.value?k.value.focus():document.activeElement===k.value&&v.value.focus()),C(N))}function H(N){if(y.value===!0&&qn(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=bd(o.default,[]);return y.value===!0&&N.unshift(r.h("div",{class:"q-focus-helper",tabindex:-1,ref:k})),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"),r.h(w.value,N,F())}}}),jh=Ze({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(t,{slots:o}){const l=r.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()=>r.h("div",{class:l.value},_t(o.default))}}),Yh=Ze({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(t,{slots:o}){const l=r.computed(()=>parseInt(t.lines,10)),u=r.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=r.computed(()=>t.lines!==void 0&&l.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":l.value}:null);return()=>r.h("div",{style:s.value,class:u.value},_t(o.default))}});function Qh(){if(window.getSelection!==void 0){const t=window.getSelection();t.empty!==void 0?t.empty():t.removeAllRanges!==void 0&&(t.removeAllRanges(),Ml.is.mobile!==!0&&t.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}const Zh={...{target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},contextMenu:Boolean};function Xh({showing:t,avoidEmit:o,configureAnchorEl:l}){const{props:u,proxy:s,emit:c}=r.getCurrentInstance(),h=r.ref(null);let g=null;function w(y){return h.value===null?!1:y===void 0||y.touches===void 0||y.touches.length<=1}const C={};l===void 0&&(Object.assign(C,{hide(y){s.hide(y)},toggle(y){s.toggle(y),y.qAnchorHandled=!0},toggleKey(y){qn(y,13)===!0&&C.toggle(y)},contextClick(y){s.hide(y),Dt(y),r.nextTick(()=>{s.show(y),y.qAnchorHandled=!0})},prevent:Dt,mobileTouch(y){if(C.mobileCleanup(y),w(y)!==!0)return;s.hide(y),h.value.classList.add("non-selectable");const T=y.target;Dl(C,"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&&Qh()}}),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"]],Dl(C,"anchor",T)});function v(){wu(C,"anchor")}function k(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)k(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 r.watch(()=>u.contextMenu,y=>{h.value!==null&&(v(),l(y))}),r.watch(()=>u.target,()=>{h.value!==null&&v(),E()}),r.watch(()=>u.noParentEvent,y=>{h.value!==null&&(y===!0?v():l())}),r.onMounted(()=>{E(),o!==!0&&u.modelValue===!0&&h.value===null&&c("update:modelValue",!1)}),r.onBeforeUnmount(()=>{g!==null&&clearTimeout(g),v()}),{anchorEl:h,canShow:w,anchorEvents:C}}function Jh(t,o){const l=r.ref(null);let u;function s(g,w){const C=`${w!==void 0?"add":"remove"}EventListener`,v=w!==void 0?w:u;g!==window&&g[C]("scroll",v,ct.passive),window[C]("scroll",v,ct.passive),u=w}function c(){l.value!==null&&(s(l.value),l.value=null)}const h=r.watch(()=>t.noParentEvent,()=>{l.value!==null&&(c(),o())});return r.onBeforeUnmount(h),{localScrollTarget:l,unconfigureScrollTarget:c,changeScrollEvent:s}}const Ju={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},es=["beforeShow","show","beforeHide","hide"];function ts({showing:t,canShow:o,hideOnRouteChange:l,handleShow:u,handleHide:s,processOnMount:c}){const h=r.getCurrentInstance(),{props:g,emit:w,proxy:C}=h;let v;function k(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&&(w("update:modelValue",!0),v=F,r.nextTick(()=>{v===F&&(v=void 0)})),(g.modelValue===null||N===!1)&&y(F)}function y(F){t.value!==!0&&(t.value=!0,w("beforeShow",F),u!==void 0?u(F):w("show",F))}function T(F){if(g.disable===!0)return;const N=g["onUpdate:modelValue"]!==void 0;N===!0&&(w("update:modelValue",!1),v=F,r.nextTick(()=>{v===F&&(v=void 0)})),(g.modelValue===null||N===!1)&&z(F)}function z(F){t.value!==!1&&(t.value=!1,w("beforeHide",F),s!==void 0?s(F):w("hide",F))}function R(F){g.disable===!0&&F===!0?g["onUpdate:modelValue"]!==void 0&&w("update:modelValue",!1):F===!0!==t.value&&(F===!0?y:z)(v)}r.watch(()=>g.modelValue,R),l!==void 0&&du(h)===!0&&r.watch(()=>C.$route.fullPath,()=>{l.value===!0&&t.value===!0&&T()}),c===!0&&r.onMounted(()=>{R(g.modelValue)});const H={show:E,hide:T,toggle:k};return Object.assign(C,H),H}const ns={};let em=1,tm=document.body;function nm(t,o){const l=document.createElement("div");if(l.id=o!==void 0?`q-portal--${o}--${em++}`:t,ns.globalNodes!==void 0){const u=ns.globalNodes.class;u!==void 0&&(l.className=u)}return tm.appendChild(l),l}function rm(t){t.remove()}const qr=[];function im(t,o){do{if(t.$options.name==="QMenu"){if(t.hide(o),t.$props.separateClosePopup===!0)return Vl(t)}else if(t.__qPortal===!0){const l=Vl(t);return l!==void 0&&l.$options.name==="QPopupProxy"?(t.hide(o),l):t}t=Vl(t)}while(t!=null)}const lm=Ze({name:"QPortal",setup(t,{slots:o}){return()=>o.default()}});function om(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 rs(t,o,l,u){const s=r.ref(!1),c=r.ref(!1);let h=null;const g={},w=u==="dialog"&&om(t);function C(k){if(k===!0){qu(g),c.value=!0;return}c.value=!1,s.value===!1&&(w===!1&&h===null&&(h=nm(!1,u)),s.value=!0,qr.push(t.proxy),lh(g))}function v(k){if(c.value=!1,k!==!0)return;qu(g),s.value=!1;const E=qr.indexOf(t.proxy);E!==-1&&qr.splice(E,1),h!==null&&(rm(h),h=null)}return r.onUnmounted(()=>{v(!0)}),t.proxy.__qPortal=!0,gi(t.proxy,"contentEl",()=>o.value),{showPortal:C,hidePortal:v,portalIsActive:s,portalIsAccessible:c,renderPortal:()=>w===!0?l():s.value===!0?[r.h(r.Teleport,{to:h},r.h(lm,l))]:void 0}}const is={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function ls(t,o=()=>{},l=()=>{}){return{transitionProps:r.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:r.computed(()=>`--q-transition-duration: ${t.transitionDuration}ms`)}}function os(){let t;const o=r.getCurrentInstance();function l(){t=void 0}return r.onDeactivated(l),r.onBeforeUnmount(l),{removeTick:l,registerTick(u){t=u,r.nextTick(()=>{t===u&&(Ir(o)===!1&&t(),t=void 0)})}}}const am=[Element,String],um=[null,document,document.body,document.scrollingElement,document.documentElement];function sm(t,o){let l=wh(o);if(l===void 0){if(t==null)return window;l=t.closest(".scroll,.scroll-y,.overflow-auto")}return um.includes(l)?window:l}function cm(t){return t===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:t.scrollTop}function fm(t){return t===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:t.scrollLeft}let Ei;function dm(){if(Ei!==void 0)return Ei;const t=document.createElement("p"),o=document.createElement("div");jl(t,{width:"100%",height:"200px"}),jl(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(),Ei=l-u,Ei}function hm(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 Vn=[];let fr;function mm(t){fr=t.keyCode===27}function gm(){fr===!0&&(fr=!1)}function pm(t){fr===!0&&(fr=!1,qn(t,27)===!0&&Vn[Vn.length-1](t))}function as(t){window[t]("keydown",mm),window[t]("blur",gm),window[t]("keyup",pm),fr=!1}function us(t){vt.is.desktop===!0&&(Vn.push(t),Vn.length===1&&as("addEventListener"))}function Ai(t){const o=Vn.indexOf(t);o!==-1&&(Vn.splice(o,1),Vn.length===0&&as("removeEventListener"))}const Pn=[];function ss(t){Pn[Pn.length-1](t)}function cs(t){vt.is.desktop===!0&&(Pn.push(t),Pn.length===1&&document.body.addEventListener("focusin",ss))}function Yl(t){const o=Pn.indexOf(t);o!==-1&&(Pn.splice(o,1),Pn.length===0&&document.body.removeEventListener("focusin",ss))}const{notPassiveCapture:Oi}=ct,Nn=[];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=Nn.length-1;u>=0;u--){const s=Nn[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 vm(t){Nn.push(t),Nn.length===1&&(document.addEventListener("mousedown",Ti,Oi),document.addEventListener("touchstart",Ti,Oi))}function fs(t){const o=Nn.findIndex(l=>l===t);o!==-1&&(Nn.splice(o,1),Nn.length===0&&(document.removeEventListener("mousedown",Ti,Oi),document.removeEventListener("touchstart",Ti,Oi)))}let ds,hs;function ms(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 _m(t){return t?!(t.length!==2||typeof t[0]!="number"||typeof t[1]!="number"):!0}const Ql={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(t=>{Ql[`${t}#ltr`]=t,Ql[`${t}#rtl`]=t});function gs(t,o){const l=t.split(" ");return{vertical:l[0],horizontal:Ql[`${l[1]}#${o===!0?"rtl":"ltr"}`]}}function bm(t,o){let{top:l,left:u,right:s,bottom:c,width:h,height:g}=t.getBoundingClientRect();return o!==void 0&&(l-=o[1],u-=o[0],c+=o[1],s+=o[0],h+=o[0],g+=o[1]),{top:l,bottom:c,height:g,left:u,right:s,width:h,middle:u+(s-u)/2,center:l+(c-l)/2}}function ym(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 wm(t,o){return{top:0,center:o/2,bottom:o,left:0,middle:t/2,right:t}}function ps(t,o,l,u){return{top:t[l.vertical]-o[u.vertical],left:t[l.horizontal]-o[u.horizontal]}}function vs(t,o=0){if(t.targetEl===null||t.anchorEl===null||o>5)return;if(t.targetEl.offsetHeight===0||t.targetEl.offsetWidth===0){setTimeout(()=>{vs(t,o+1)},10);return}const{targetEl:l,offset:u,anchorEl:s,anchorOrigin:c,selfOrigin:h,absoluteOffset:g,fit:w,cover:C,maxHeight:v,maxWidth:k}=t;if(vt.is.ios===!0&&window.visualViewport!==void 0){const j=document.body.style,{offsetLeft:K,offsetTop:le}=window.visualViewport;K!==ds&&(j.setProperty("--q-pe-left",K+"px"),ds=K),le!==hs&&(j.setProperty("--q-pe-top",le+"px"),hs=le)}const{scrollLeft:E,scrollTop:y}=l,T=g===void 0?bm(s,C===!0?[0,0]:u):ym(s,g,u);Object.assign(l.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:k||"100vw",maxHeight:v||"100vh",visibility:"visible"});const{offsetWidth:z,offsetHeight:R}=l,{elWidth:H,elHeight:F}=w===!0||C===!0?{elWidth:Math.max(T.width,z),elHeight:C===!0?Math.max(T.height,R):R}:{elWidth:z,elHeight:R};let N={maxWidth:k,maxHeight:v};(w===!0||C===!0)&&(N.minWidth=T.width+"px",C===!0&&(N.minHeight=T.height+"px")),Object.assign(l.style,N);const Q=wm(H,F);let G=ps(T,Q,c,h);if(g===void 0||u===void 0)Zl(G,T,Q,c,h);else{const{top:j,left:K}=G;Zl(G,T,Q,c,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=ps(T,Q,c,h),Zl(G,T,Q,c,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 Zl(t,o,l,u,s){const c=l.bottom,h=l.right,g=dm(),w=window.innerHeight-g,C=document.body.clientWidth;if(t.top<0||t.top+c>w)if(s.vertical==="center")t.top=o[u.vertical]>w/2?Math.max(0,w-c):0,t.maxHeight=Math.min(c,w);else if(o[u.vertical]>w/2){const v=Math.min(w,u.vertical==="center"?o.center:u.vertical===s.vertical?o.bottom:o.top);t.maxHeight=Math.min(c,v),t.top=Math.max(0,v-c)}else t.top=Math.max(0,u.vertical==="center"?o.center:u.vertical===s.vertical?o.top:o.bottom),t.maxHeight=Math.min(c,w-t.top);if(t.left<0||t.left+h>C)if(t.maxWidth=Math.min(h,C),s.horizontal==="middle")t.left=o[u.horizontal]>C/2?Math.max(0,C-h):0;else if(o[u.horizontal]>C/2){const v=Math.min(C,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,C-t.left)}const Sm=Ze({name:"QMenu",inheritAttrs:!1,props:{...Zh,...Ju,...lr,...is,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:ms},self:{type:String,validator:ms},offset:{type:Array,validator:_m},scrollTarget:am,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...es,"click","escapeKey"],setup(t,{slots:o,emit:l,attrs:u}){let s=null,c,h,g;const w=r.getCurrentInstance(),{proxy:C}=w,{$q:v}=C,k=r.ref(null),E=r.ref(!1),y=r.computed(()=>t.persistent!==!0&&t.noRouteDismiss!==!0),T=or(t,v),{registerTick:z,removeTick:R}=os(),{registerTimeout:H}=_i(),{transitionProps:F,transitionStyle:N}=ls(t),{localScrollTarget:Q,changeScrollEvent:G,unconfigureScrollTarget:j}=Jh(t,ie),{anchorEl:K,canShow:le}=Xh({showing:E}),{hide:V}=ts({showing:E,canShow:le,handleShow:ge,handleHide:B,hideOnRouteChange:y,processOnMount:!0}),{showPortal:$,hidePortal:Z,renderPortal:A}=rs(w,k,Ae,"menu"),te={anchorEl:K,innerRef:k,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=r.computed(()=>gs(t.anchor||(t.cover===!0?"center middle":"bottom start"),v.lang.rtl)),ae=r.computed(()=>t.cover===!0?P.value:gs(t.self||"top start",v.lang.rtl)),ue=r.computed(()=>(t.square===!0?" q-menu--square":"")+(T.value===!0?" q-menu--dark q-dark":"")),fe=r.computed(()=>t.autoClose===!0?{onClick:ve}:{}),W=r.computed(()=>E.value===!0&&t.persistent!==!0);r.watch(W,Y=>{Y===!0?(us(U),vm(te)):(Ai(U),fs(te))});function se(){Si(()=>{let Y=k.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,cs(_e),$(),ie(),c=void 0,Y!==void 0&&(t.touchPosition||t.contextMenu)){const De=yu(Y);if(De.left!==void 0){const{top:lt,left:Ft}=K.value.getBoundingClientRect();c={left:De.left-Ft,top:De.top-lt}}}h===void 0&&(h=r.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,k.value.click()),ne(),$(!0),l("show",Y)},t.transitionDuration)}function B(Y){R(),Z(),O(!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 O(Y){c=void 0,h!==void 0&&(h(),h=void 0),(Y===!0||E.value===!0)&&(Yl(_e),j(),fs(te),Ai(U)),Y!==!0&&(s=null)}function ie(){(K.value!==null||t.scrollTarget!==void 0)&&(Q.value=sm(K.value,t.scrollTarget),G(Q.value,ne))}function ve(Y){g!==!0?(im(C,Y),l("click",Y)):g=!1}function _e(Y){W.value===!0&&t.noFocus!==!0&&Fu(k.value,Y.target)!==!0&&se()}function U(Y){l("escapeKey"),V(Y)}function ne(){vs({targetEl:k.value,offset:t.offset,anchorEl:K.value,anchorOrigin:P.value,selfOrigin:ae.value,absoluteOffset:c,fit:t.fit,cover:t.cover,maxHeight:t.maxHeight,maxWidth:t.maxWidth})}function Ae(){return r.h(r.Transition,F.value,()=>E.value===!0?r.h("div",{role:"menu",...u,ref:k,tabindex:-1,class:["q-menu q-position-engine scroll"+ue.value,u.class],style:[u.style,N.value],...fe.value},_t(o.default)):null)}return r.onBeforeUnmount(O),Object.assign(C,{focus:se,updatePosition:ne}),A}});function xm(t,o,l){function u(){}return r.onBeforeUnmount(()=>{t.value===!0&&void 0}),{removeFromHistory:u,addToHistory(){}}}let Vr=0,Xl,Jl,Pr,eo=!1,_s,bs,ys,Dn=null;function Cm(t){km(t)&&Ke(t)}function km(t){if(t.target===document.body||t.target.classList.contains("q-layout__backdrop"))return!0;const o=Wd(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 c=0;c<o.length;c++){const h=o[c];if(hm(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 ws(t){t.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function Bi(t){eo!==!0&&(eo=!0,requestAnimationFrame(()=>{eo=!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 Ss(t){const o=document.body,l=window.visualViewport!==void 0;if(t==="add"){const{overflowY:u,overflowX:s}=window.getComputedStyle(o);Xl=fm(window),Jl=cm(window),_s=o.style.left,bs=o.style.top,ys=window.location.href,o.style.left=`-${Xl}px`,o.style.top=`-${Jl}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,vt.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",ws,ct.passiveCapture))}vt.is.desktop===!0&&vt.is.mac===!0&&window[`${t}EventListener`]("wheel",Cm,ct.notPassive),t==="remove"&&(vt.is.ios===!0&&(l===!0?(window.visualViewport.removeEventListener("resize",Bi,ct.passiveCapture),window.visualViewport.removeEventListener("scroll",Bi,ct.passiveCapture)):window.removeEventListener("scroll",ws,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=_s,o.style.top=bs,window.location.href===ys&&window.scrollTo(Xl,Jl),Pr=void 0)}function Em(t){let o="add";if(t===!0){if(Vr++,Dn!==null){clearTimeout(Dn),Dn=null;return}if(Vr>1)return}else{if(Vr===0||(Vr--,Vr>0))return;if(o="remove",vt.is.ios===!0&&vt.is.nativeMobile===!0){Dn!==null&&clearTimeout(Dn),Dn=setTimeout(()=>{Ss(o),Dn=null},100);return}}Ss(o)}function Am(){let t;return{preventBodyScroll(o){o!==t&&(t!==void 0||o===!0)&&(t=o,Em(o))}}}let Ri=0;const Om={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"},xs={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},Tm=Ze({name:"QDialog",inheritAttrs:!1,props:{...Ju,...is,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:[...es,"shake","click","escapeKey"],setup(t,{slots:o,emit:l,attrs:u}){const s=r.getCurrentInstance(),c=r.ref(null),h=r.ref(!1),g=r.ref(!1);let w=null,C=null,v,k;const E=r.computed(()=>t.persistent!==!0&&t.noRouteDismiss!==!0&&t.seamless!==!0),{preventBodyScroll:y}=Am(),{registerTimeout:T}=_i(),{registerTick:z,removeTick:R}=os(),{transitionProps:H,transitionStyle:F}=ls(t,()=>xs[t.position][0],()=>xs[t.position][1]),N=r.computed(()=>F.value+(t.backdropFilter!==void 0?`;backdrop-filter:${t.backdropFilter};-webkit-backdrop-filter:${t.backdropFilter}`:"")),{showPortal:Q,hidePortal:G,portalIsAccessible:j,renderPortal:K}=rs(s,c,_e,"dialog"),{hide:le}=ts({showing:h,hideOnRouteChange:E,handleShow:ae,handleHide:ue,processOnMount:!0}),{addToHistory:V,removeFromHistory:$}=xm(h),Z=r.computed(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${t.maximized===!0?"maximized":"minimized"} q-dialog__inner--${t.position} ${Om[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":"")),A=r.computed(()=>h.value===!0&&t.seamless!==!0),te=r.computed(()=>t.autoClose===!0?{onClick:O}:{}),P=r.computed(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${A.value===!0?"modal":"seamless"}`,u.class]);r.watch(()=>t.maximized,U=>{h.value===!0&&B(U)}),r.watch(A,U=>{y(U),U===!0?(cs(ve),us(se)):(Yl(ve),Ai(se))});function ae(U){V(),C=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()}k=!0,c.value.click(),k=!1}Q(!0),g.value=!1,l("show",U)},t.transitionDuration)}function ue(U){R(),$(),ge(!0),g.value=!0,G(),C!==null&&(((U&&U.type.indexOf("key")===0?C.closest('[tabindex]:not([tabindex^="-"])'):void 0)||C).focus(),C=null),T(()=>{G(!0),g.value=!1,l("hide",U)},t.transitionDuration)}function fe(U){Si(()=>{let ne=c.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=c.value;ne!==null&&(ne.classList.remove("q-animate--scale"),ne.classList.add("q-animate--scale"),w!==null&&clearTimeout(w),w=setTimeout(()=>{w=null,c.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){w!==null&&(clearTimeout(w),w=null),(U===!0||h.value===!0)&&(B(!1),t.seamless!==!0&&(y(!1),Yl(ve),Ai(se))),U!==!0&&(C=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 O(U){k!==!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&&Fu(c.value,U.target)!==!0&&fe('[tabindex]:not([tabindex="-1"])')}Object.assign(s.proxy,{focus:fe,shake:W,__updateRefocusTarget(U){C=U||null}}),r.onBeforeUnmount(ge);function _e(){return r.h("div",{role:"dialog","aria-modal":A.value===!0?"true":"false",...u,class:P.value},[r.h(r.Transition,{name:"q-transition--fade",appear:!0},()=>A.value===!0?r.h("div",{class:"q-dialog__backdrop fixed-full",style:N.value,"aria-hidden":"true",tabindex:-1,onClick:ie}):null),r.h(r.Transition,H.value,()=>h.value===!0?r.h("div",{ref:c,class:Z.value,style:F.value,tabindex:-1,...te.value},_t(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 $t=1e3,Bm=["start","center","end","start-force","center-force","end-force"],Cs=Array.prototype.filter,Rm=window.getComputedStyle(document.body).overflowAnchor===void 0?Hd: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||[];Cs.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 to(t,o,l,u,s,c,h,g){const w=t===window?document.scrollingElement||document.documentElement:t,C=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=w.scrollLeft,v.scrollViewSize+=w.clientWidth),v.scrollMaxSize=w.scrollWidth,c===!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=w.scrollTop,v.scrollViewSize+=w.clientHeight),v.scrollMaxSize=w.scrollHeight),l!==null)for(let k=l.previousElementSibling;k!==null;k=k.previousElementSibling)k.classList.contains("q-virtual-scroll--skip")===!1&&(v.offsetStart+=k[C]);if(u!==null)for(let k=u.nextElementSibling;k!==null;k=k.nextElementSibling)k.classList.contains("q-virtual-scroll--skip")===!1&&(v.offsetEnd+=k[C]);if(o!==t){const k=w.getBoundingClientRect(),E=o.getBoundingClientRect();s===!0?(v.offsetStart+=E.left-k.left,v.offsetEnd-=E.width):(v.offsetStart+=E.top-k.top,v.offsetEnd-=E.height),t!==window&&(v.offsetStart+=v.scrollStart),v.offsetEnd+=v.scrollMaxSize-v.offsetStart}return v}function ks(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,c=Math.floor(l/$t),h=Math.floor((u-1)/$t)+1;let g=t.slice(c,h).reduce(dr,0);return l%$t!==0&&(g-=o.slice(c*$t,l).reduce(dr,0)),u%$t!==0&&u!==s&&(g-=o.slice(u,h*$t).reduce(dr,0)),g}const Es={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 Im({virtualScrollLength:t,getVirtualScrollTarget:o,getVirtualScrollEl:l,virtualScrollItemSizeComputed:u}){const s=r.getCurrentInstance(),{props:c,emit:h,proxy:g}=s,{$q:w}=g;let C,v,k,E=[],y;const T=r.ref(0),z=r.ref(0),R=r.ref({}),H=r.ref(null),F=r.ref(null),N=r.ref(null),Q=r.ref({from:0,to:0}),G=r.computed(()=>c.tableColspan!==void 0?c.tableColspan:100);u===void 0&&(u=r.computed(()=>c.virtualScrollItemSize));const j=r.computed(()=>u.value+";"+c.virtualScrollHorizontal),K=r.computed(()=>j.value+";"+c.virtualScrollSliceRatioBefore+";"+c.virtualScrollSliceRatioAfter);r.watch(K,()=>{ue()}),r.watch(j,le);function le(){ae(v,!0)}function V(B){ae(B===void 0?v:B)}function $(B,O){const ie=o();if(ie==null||ie.nodeType===8)return;const ve=to(ie,l(),H.value,F.value,c.virtualScrollHorizontal,w.lang.rtl,c.virtualScrollStickySizeStart,c.virtualScrollStickySizeEnd);k!==ve.scrollViewSize&&ue(ve.scrollViewSize),A(ie,ve,Math.min(t.value-1,Math.max(0,parseInt(B,10)||0)),0,Bm.indexOf(O)!==-1?O:v!==-1&&B>v?"end":"start")}function Z(){const B=o();if(B==null||B.nodeType===8)return;const O=to(B,l(),H.value,F.value,c.virtualScrollHorizontal,w.lang.rtl,c.virtualScrollStickySizeStart,c.virtualScrollStickySizeEnd),ie=t.value-1,ve=O.scrollMaxSize-O.offsetStart-O.offsetEnd-z.value;if(C===O.scrollStart)return;if(O.scrollMaxSize<=0){A(B,O,0,0);return}k!==O.scrollViewSize&&ue(O.scrollViewSize),te(Q.value.from);const _e=Math.floor(O.scrollMaxSize-Math.max(O.scrollViewSize,O.offsetEnd)-Math.min(y[ie],O.scrollViewSize/2));if(_e>0&&Math.ceil(O.scrollStart)>=_e){A(B,O,ie,O.scrollMaxSize-O.offsetEnd-E.reduce(dr,0));return}let U=0,ne=O.scrollStart-O.offsetStart,Ae=ne;if(ne<=ve&&ne+O.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+=$t;for(;ne>0&&U<ie;)ne-=y[U],ne>-O.scrollViewSize?(U++,Ae=ne):Ae=y[U]+ne;A(B,O,U,Ae)}function A(B,O,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)),C=O.scrollStart;const lt=Y!==Q.value.from||De!==Q.value.to;if(lt===!1&&ne===void 0){W(ie);return}const{activeElement:Ft}=document,yt=N.value;lt===!0&&yt!==null&&yt!==Ft&&yt.contains(Ft)===!0&&(yt.addEventListener("focusout",P),setTimeout(()=>{yt!==null&&yt.removeEventListener("focusout",P)})),Rm(yt,ie-Y);const nt=ne!==void 0?y.slice(Y,ie).reduce(dr,0):0;if(lt===!0){const wt=De>=Q.value.from&&Y<=Q.value.to?Q.value.to:De;Q.value={from:Y,to:wt},T.value=Nr(E,y,0,Y),z.value=Nr(E,y,De,t.value),requestAnimationFrame(()=>{Q.value.to!==De&&C===O.scrollStart&&(Q.value={from:Q.value.from,to:De},z.value=Nr(E,y,De,t.value))})}requestAnimationFrame(()=>{if(C!==O.scrollStart)return;lt===!0&&te(Y);const wt=y.slice(Y,ie).reduce(dr,0),tn=wt+O.offsetStart+T.value,ft=tn+y[ie];let _n=tn+ve;if(ne!==void 0){const Dr=wt-nt,Ut=O.scrollStart+Dr;_n=U!==!0&&Ut<tn&&ft<Ut+O.scrollViewSize?Ut:ne==="end"?ft-O.scrollViewSize:tn-(ne==="start"?0:Math.round((O.scrollViewSize-y[ie])/2))}C=_n,ks(B,_n,c.virtualScrollHorizontal,w.lang.rtl),W(ie)})}function te(B){const O=N.value;if(O){const ie=Cs.call(O.children,Y=>Y.classList&&Y.classList.contains("q-virtual-scroll--skip")===!1),ve=ie.length,_e=c.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/$t)]+=Ae),U++}}}function P(){N.value!==null&&N.value!==void 0&&N.value.focus()}function ae(B,O){const ie=1*u.value;(O===!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)/$t);E=[];for(let U=0;U<=_e;U++){let ne=0;const Ae=Math.min((U+1)*$t,t.value);for(let Y=U*$t;Y<Ae;Y++)ne+=y[Y];E.push(ne)}v=-1,C=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),r.nextTick(()=>{$(B)})):se()}function ue(B){if(B===void 0&&typeof window<"u"){const ne=o();ne!=null&&ne.nodeType!==8&&(B=to(ne,l(),H.value,F.value,c.virtualScrollHorizontal,w.lang.rtl,c.virtualScrollStickySizeStart,c.virtualScrollStickySizeEnd).scrollViewSize)}k=B;const O=parseFloat(c.virtualScrollSliceRatioBefore)||0,ie=parseFloat(c.virtualScrollSliceRatioAfter)||0,ve=1+O+ie,_e=B===void 0||B<=0?1:Math.ceil(B/u.value),U=Math.max(1,_e,Math.ceil((c.virtualScrollSliceSize>0?c.virtualScrollSliceSize:10)/ve));R.value={total:Math.ceil(U*ve),start:Math.ceil(U*O),center:Math.ceil(U*(.5+O)),end:Math.ceil(U*(1+O)),view:_e}}function fe(B,O){const ie=c.virtualScrollHorizontal===!0?"width":"height",ve={["--q-virtual-scroll-item-"+ie]:u.value+"px"};return[B==="tbody"?r.h(B,{class:"q-virtual-scroll__padding",key:"before",ref:H},[r.h("tr",[r.h("td",{style:{[ie]:`${T.value}px`,...ve},colspan:G.value})])]):r.h(B,{class:"q-virtual-scroll__padding",key:"before",ref:H,style:{[ie]:`${T.value}px`,...ve}}),r.h(B,{class:"q-virtual-scroll__content",key:"content",ref:N,tabindex:-1},O.flat()),B==="tbody"?r.h(B,{class:"q-virtual-scroll__padding",key:"after",ref:F},[r.h("tr",[r.h("td",{style:{[ie]:`${z.value}px`,...ve},colspan:G.value})])]):r.h(B,{class:"q-virtual-scroll__padding",key:"after",ref:F,style:{[ie]:`${z.value}px`,...ve}})]}function W(B){v!==B&&(c.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=Mu(Z,w.platform.is.ios===!0?120:35);r.onBeforeMount(()=>{ue()});let ge=!1;return r.onDeactivated(()=>{ge=!0}),r.onActivated(()=>{if(ge!==!0)return;const B=o();C!==void 0&&B!==void 0&&B!==null&&B.nodeType!==8?ks(B,C,c.virtualScrollHorizontal,w.lang.rtl):$(v)}),r.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 As(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 Os=t=>["add","add-unique","toggle"].includes(t),Mm=".*+?^${}()|[]\\",Lm=Object.keys(xi),Ts=Ze({name:"QSelect",inheritAttrs:!1,props:{...Es,...Nl,...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:Os},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:Es.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...zl,"add","remove","inputValue","keyup","keypress","keydown","popupShow","popupHide","filterAbort"],setup(t,{slots:o,emit:l}){const{proxy:u}=r.getCurrentInstance(),{$q:s}=u,c=r.ref(!1),h=r.ref(!1),g=r.ref(-1),w=r.ref(""),C=r.ref(!1),v=r.ref(!1);let k=null,E=null,y,T,z,R=null,H,F,N,Q;const G=r.ref(null),j=r.ref(null),K=r.ref(null),le=r.ref(null),V=r.ref(null),$=bu(t),Z=Du($i),A=r.computed(()=>Array.isArray(t.options)?t.options.length:0),te=r.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}=Im({virtualScrollLength:A,getVirtualScrollTarget:Ni,getVirtualScrollEl:Fr,virtualScrollItemSizeComputed:te}),B=Hl(),O=r.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=r.computed(()=>{const _={};return Lm.forEach(ee=>{const X=t[ee];X!==void 0&&(_[ee]=X)}),_}),ve=r.computed(()=>t.optionsDark===null?B.isDark.value:t.optionsDark),_e=r.computed(()=>Lr(O.value)),U=r.computed(()=>{let _="q-field__input q-placeholder col";return t.hideSelected===!0||O.value.length===0?[_,t.inputClass]:(_+=" q-field__input--padding",t.inputClass===void 0?_:[_,t.inputClass])}),ne=r.computed(()=>(t.virtualScrollHorizontal===!0?"q-virtual-scroll--horizontal":"")+(t.popupContentClass?" "+t.popupContentClass:"")),Ae=r.computed(()=>A.value===0),Y=r.computed(()=>O.value.map(_=>je.value(_)).join(", ")),De=r.computed(()=>t.displayValue!==void 0?t.displayValue:Y.value),lt=r.computed(()=>t.optionsHtml===!0?()=>!0:_=>_!=null&&_.html===!0),Ft=r.computed(()=>t.displayValueHtml===!0||t.displayValue===void 0&&(t.optionsHtml===!0||O.value.some(lt.value))),yt=r.computed(()=>B.focused.value===!0?t.tabindex:-1),nt=r.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":c.value===!0?"true":"false","aria-controls":`${B.targetUid.value}_lb`};return g.value>=0&&(_["aria-activedescendant"]=`${B.targetUid.value}_${g.value}`),_}),wt=r.computed(()=>({id:`${B.targetUid.value}_lb`,role:"listbox","aria-multiselectable":t.multiple===!0?"true":"false"})),tn=r.computed(()=>O.value.map((_,ee)=>({index:ee,opt:_,html:lt.value(_),selected:!0,removeAtIndex:bn,toggleOption:Ht,tabindex:yt.value}))),ft=r.computed(()=>{if(A.value===0)return[];const{from:_,to:ee}=P.value;return t.options.slice(_,ee).map((X,me)=>{const Ie=zt.value(X)===!0,Be=Un(X)===!0,Ge=_+me,Ve={clickable:!0,active:Be,activeClass:Ut.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:()=>{Ht(X)}};return Ie!==!0&&(g.value===Ge&&(Ve.focused=!0),s.platform.is.desktop===!0&&(Ve.onMousemove=()=>{c.value===!0&&Qt(Ge)})),{index:Ge,opt:X,html:lt.value(X),label:je.value(X),selected:Ve.active,focused:Ve.focused,toggleOption:Ht,setOptionIndex:Qt,itemProps:Ve}})}),_n=r.computed(()=>t.dropdownIcon!==void 0?t.dropdownIcon:s.iconSet.arrow.dropdown),Dr=r.computed(()=>t.optionsCover===!1&&t.outlined!==!0&&t.standout!==!0&&t.borderless!==!0&&t.rounded!==!0),Ut=r.computed(()=>t.optionsSelectedClass!==void 0?t.optionsSelectedClass:t.color!==void 0?`text-${t.color}`:""),Fe=r.computed(()=>Fn(t.optionValue,"value")),je=r.computed(()=>Fn(t.optionLabel,"label")),zt=r.computed(()=>Fn(t.optionDisable,"disable")),hr=r.computed(()=>O.value.map(_=>Fe.value(_))),$n=r.computed(()=>{const _={onInput:$i,onChange:Z,onKeydown:Pi,onKeyup:qi,onKeypress:Vi,onFocus:gr,onClick(ee){T===!0&&Yt(ee)}};return _.onCompositionstart=_.onCompositionupdate=_.onCompositionend=Z,_});r.watch(O,_=>{y=_,t.useInput===!0&&t.fillInput===!0&&t.multiple!==!0&&B.innerLoading.value!==!0&&(h.value!==!0&&c.value!==!0||_e.value!==!0)&&(z!==!0&&ln(),(h.value===!0||c.value===!0)&&wn(""))},{immediate:!0}),r.watch(()=>t.fillInput,ln),r.watch(c,Hr),r.watch(A,mo);function Li(_){return t.emitValue===!0?Fe.value(_):_}function nn(_){if(_!==-1&&_<O.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 bn(_){nn(_),B.focus()}function mr(_,ee){const X=Li(_);if(t.multiple!==!0){t.fillInput===!0&&Hn(je.value(_),!0,!0),l("update:modelValue",X);return}if(O.value.length===0){l("add",{index:0,value:X}),l("update:modelValue",t.multiple===!0?[X]:X);return}if(ee===!0&&Un(_)===!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 Ht(_,ee){if(B.editable.value!==!0||_===void 0||zt.value(_)===!0)return;const X=Fe.value(_);if(t.multiple!==!0){ee!==!0&&(Hn(t.fillInput===!0?je.value(_):"",!0,!0),rn()),j.value!==null&&j.value.focus(),(O.value.length===0||en(Fe.value(O.value[0]),X)!==!0)&&l("update:modelValue",t.emitValue===!0?X:_);return}if((T!==!0||C.value===!0)&&B.focus(),gr(),O.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&&_<A.value?_:-1;g.value!==ee&&(g.value=ee)}function yn(_=1,ee){if(c.value===!0){let X=g.value;do X=As(X+_,-1,A.value-1);while(X!==-1&&X!==g.value&&zt.value(t.options[X])===!0);g.value!==X&&(Qt(X),se(X),ee!==!0&&t.useInput===!0&&t.fillInput===!0&&zn(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 Fn(_,ee){const X=_!==void 0?_:ee;return typeof X=="function"?X:me=>me!==null&&typeof me=="object"&&X in me?me[X]:me}function Un(_){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(_){qn(_,27)===!0&&c.value===!0&&(Yt(_),rn(),ln()),l("keyup",_)}function qi(_){const{value:ee}=_.target;if(_.keyCode!==void 0){pr(_);return}if(_.target.value="",k!==null&&(clearTimeout(k),k=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:(O.value.indexOf(Ge)===-1?Ht(Ge):rn(),!0)},Ie=Be=>{me(Fe)!==!0&&(me(je)===!0||Be===!0||wn(ee,!0,()=>Ie(!0)))};Ie()}else B.clearValue(_)}function Vi(_){l("keypress",_)}function Pi(_){if(l("keydown",_),Gl(_)===!0)return;const ee=w.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){Dt(_);return}if(_.keyCode===9&&X===!1){Sn();return}if(_.target===void 0||_.target.id!==B.targetUid.value||B.editable.value!==!0)return;if(_.keyCode===40&&B.innerLoading.value!==!0&&c.value===!1){Ke(_),xn();return}if(_.keyCode===8&&(t.useChips===!0||t.clearable===!0)&&t.hideSelected!==!0&&w.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 w.value!="string"||w.value.length===0)&&(Ke(_),g.value=-1,yn(_.keyCode===36?1:-1,t.multiple)),(_.keyCode===33||_.keyCode===34)&&ae.value!==void 0&&(Ke(_),g.value=Math.max(-1,Math.min(A.value,g.value+(_.keyCode===33?-1:1)*ae.value.view)),yn(_.keyCode===33?1:-1,t.multiple)),(_.keyCode===38||_.keyCode===40)&&(Ke(_),yn(_.keyCode===38?-1:1,t.multiple));const me=A.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)){c.value!==!0&&xn(_);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=>Mm.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=As(Ve+1,-1,me-1);while(Ve!==g.value&&(zt.value(t.options[Ve])===!0||Ge.test(je.value(t.options[Ve]))!==!0));g.value!==Ve&&r.nextTick(()=>{Qt(Ve),se(Ve),Ve>=0&&t.useInput===!0&&t.fillInput===!0&&zn(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){Ht(t.options[g.value]);return}if(ee===!0){const Ie=(Be,Ge)=>{if(Ge){if(Os(Ge)!==!0)return}else Ge=t.newValueMode;if(Hn("",t.multiple!==!0,!0),Be==null)return;(Ge==="toggle"?Ht:mr)(Be,Ge==="add-unique"),t.multiple!==!0&&(j.value!==null&&j.value.focus(),rn())};if(t.onNewValue!==void 0?l("newValue",w.value,Ie):Ie(w.value),t.multiple!==!0)return}c.value===!0?Sn():B.innerLoading.value!==!0&&xn()}}function Fr(){return T===!0?V.value:K.value!==null&&K.value.contentEl!==null?K.value.contentEl:void 0}function Ni(){return Fr()}function io(){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)=>r.h(Gh,{key:"option-"+ee,removable:B.editable.value===!0&&zt.value(_.opt)!==!0,dense:!0,textColor:t.color,tabindex:yt.value,onRemove(){_.removeAtIndex(ee)}},()=>r.h("span",{class:"ellipsis",[_.html===!0?"innerHTML":"textContent"]:je.value(_.opt)}))):[r.h("span",{[Ft.value===!0?"innerHTML":"textContent"]:De.value})]}function Di(){if(Ae.value===!0)return o["no-option"]!==void 0?o["no-option"]({inputValue:w.value}):void 0;const _=o.option!==void 0?o.option:X=>r.h(Kh,{key:X.index,...X.itemProps},()=>r.h(jh,()=>r.h(Yh,()=>r.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)),Mn(o["after-options"],ee)}function lo(_,ee){const X=ee===!0?{...nt.value,...B.splitAttrs.attributes.value}:void 0,me={ref:ee===!0?j:void 0,key:"i_t",class:U.value,style:t.inputStyle,value:w.value!==void 0?w.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,...$n.value};return _!==!0&&T===!0&&(Array.isArray(me.class)===!0?me.class=[...me.class,"no-pointer-events"]:me.class+=" no-pointer-events"),r.h("input",me)}function $i(_){k!==null&&(clearTimeout(k),k=null),E!==null&&(clearTimeout(E),E=null),!(_&&_.target&&_.target.qComposing===!0)&&(zn(_.target.value||""),z=!0,H=w.value,B.focused.value!==!0&&(T!==!0||C.value===!0)&&B.focus(),t.onFilter!==void 0&&(k=setTimeout(()=>{k=null,wn(w.value)},t.inputDebounce)))}function zn(_,ee){w.value!==_&&(w.value=_,ee===!0||t.inputDebounce===0||t.inputDebounce==="0"?l("inputValue",_):E=setTimeout(()=>{E=null,l("inputValue",_)},t.inputDebounce))}function Hn(_,ee,X){z=X!==!0,t.useInput===!0&&(zn(_,!0),(ee===!0||X!==!0)&&(H=_),ee!==!0&&wn(_))}function wn(_,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&&O.value.length!==0&&z!==!0&&_===je.value(O.value[0])&&(_="");const me=setTimeout(()=>{c.value===!0&&(c.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,r.nextTick(()=>{B.innerLoading.value=!1,B.editable.value===!0&&(ee===!0?c.value===!0&&rn():c.value===!0?Hr(!0):c.value=!0),typeof Be=="function"&&r.nextTick(()=>{Be(u)}),typeof X=="function"&&r.nextTick(()=>{X(u)})}))},()=>{B.focused.value===!0&&R===me&&(clearTimeout(R),B.innerLoading.value=!1,v.value=!1),c.value===!0&&(c.value=!1)})}function oo(){return r.h(Sm,{ref:K,class:ne.value,style:t.popupContentStyle,modelValue:c.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,...wt.value,onScrollPassive:W,onBeforeShow:Ui,onBeforeHide:Ur,onShow:ao},Di)}function Ur(_){zi(_),Sn()}function ao(){ge()}function zr(_){Yt(_),j.value!==null&&j.value.focus(),C.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function uo(_){Yt(_),r.nextTick(()=>{C.value=!1})}function so(){const _=[r.h(Hh,{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:w.value.length!==0,...B.splitAttrs.listeners.value,onFocus:zr,onBlur:uo},{...o,rawControl:()=>B.getControl(!0),before:void 0,after:void 0})];return c.value===!0&&_.push(r.h("div",{ref:V,class:ne.value+" scroll",style:t.popupContentStyle,...wt.value,onClick:Dt,onScrollPassive:W},Di())),r.h(Tm,{ref:le,modelValue:h.value,position:t.useInput===!0?"top":void 0,transitionShow:F,transitionHide:t.transitionHide,transitionDuration:t.transitionDuration,noRouteDismiss:t.popupNoRouteDismiss,onBeforeShow:Ui,onBeforeHide:co,onHide:fo,onShow:ho},()=>r.h("div",{class:"q-select__dialog"+(ve.value===!0?" q-select__dialog--dark q-dark":"")+(C.value===!0?" q-select__dialog--focused":"")},_))}function co(_){zi(_),le.value!==null&&le.value.__updateRefocusTarget(B.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),B.focused.value=!1}function fo(_){rn(),B.focused.value===!1&&l("blur",_),ln()}function ho(){const _=document.activeElement;(_===null||_.id!==B.targetUid.value)&&j.value!==null&&j.value!==_&&j.value.focus(),ge()}function Sn(){h.value!==!0&&(g.value=-1,c.value===!0&&(c.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 xn(_){B.editable.value===!0&&(T===!0?(B.onControlFocusin(_),h.value=!0,r.nextTick(()=>{B.focus()})):B.focus(),t.onFilter!==void 0?wn(w.value):(Ae.value!==!0||o["no-option"]!==void 0)&&(c.value=!0))}function rn(){h.value=!1,Sn()}function ln(){t.useInput===!0&&Hn(t.multiple!==!0&&t.fillInput===!0&&O.value.length!==0&&je.value(O.value[0])||"",!0,!0)}function Hr(_){let ee=-1;if(_===!0){if(O.value.length!==0){const X=Fe.value(O.value[0]);ee=t.options.findIndex(me=>en(Fe.value(me),X))}ue(ee)}Qt(ee)}function mo(_,ee){c.value===!0&&B.innerLoading.value===!1&&(ue(-1,!0),r.nextTick(()=>{c.value===!0&&B.innerLoading.value===!1&&(_>ee?ue():Hr(!0))}))}function Fi(){h.value===!1&&K.value!==null&&K.value.updatePosition()}function Ui(_){_!==void 0&&Yt(_),l("popupShow",_),B.hasPopupOpen=!0,B.onControlFocusin(_)}function zi(_){_!==void 0&&Yt(_),l("popupHide",_),B.hasPopupOpen=!1,B.onControlFocusout(_)}function Hi(){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 r.onBeforeUpdate(Hi),r.onUpdated(Fi),Hi(),r.onBeforeUnmount(()=>{k!==null&&clearTimeout(k),E!==null&&clearTimeout(E)}),Object.assign(u,{showPopup:xn,hidePopup:rn,removeAtIndex:nn,add:mr,toggleOption:Ht,getOptionIndex:()=>g.value,setOptionIndex:Qt,moveOptionSelection:yn,filter:wn,updateMenuPosition:Fi,updateInputValue:Hn,isOptionSelected:Un,getEmittingOptionValue:Li,isOptionDisabled:(..._)=>zt.value.apply(null,_)===!0,getOptionValue:(..._)=>Fe.value.apply(null,_),getOptionLabel:(..._)=>je.value.apply(null,_)}),Object.assign(B,{innerValue:O,fieldClass:r.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:xn,floatingLabel:r.computed(()=>t.hideSelected!==!0&&_e.value===!0||typeof w.value=="number"||w.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?so():oo();B.hasPopupOpen===!0&&(B.hasPopupOpen=!1)},controlEvents:{onFocusin(_){B.onControlFocusin(_)},onFocusout(_){B.onControlFocusout(_,()=>{ln(),Sn()})},onClick(_){if(Dt(_),T!==!0&&c.value===!0){Sn(),j.value!==null&&j.value.focus();return}xn(_)}},getControl:_=>{const ee=io(),X=_===!0||h.value!==!0||T!==!0;if(t.useInput===!0)ee.push(lo(_,X));else if(B.editable.value===!0){const Ie=X===!0?nt.value:void 0;ee.push(r.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:Pi,onKeyup:pr,onKeypress:Vi})),X===!0&&typeof t.autocomplete=="string"&&t.autocomplete.length!==0&&ee.push(r.h("input",{class:"q-select__autocomplete-input",autocomplete:t.autocomplete,tabindex:-1,onKeyup:qi}))}if($.value!==void 0&&t.disable!==!0&&hr.value.length!==0){const Ie=hr.value.map(Be=>r.h("option",{value:Be,selected:!0}));ee.push(r.h("select",{class:"hidden",name:$.value,multiple:t.multiple},Ie))}const me=t.useInput===!0||X!==!0?void 0:B.splitAttrs.attributes.value;return r.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?[r.h(bt,{class:"q-select__dropdown-icon"+(c.value===!0?" rotate-180":""),name:_n.value})]:null}),Wl(B)}}),qm=st(r.defineComponent({__name:"SelectControl",props:r.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=r.ref([]),l=r.useModel(t,"modelValue"),u=t,s=r.ref(!1),c=r.computed(()=>u.control.customParams),h=r.ref([]),g=r.computed(()=>{var k;return((k=c.value)==null?void 0:k.collection)||null}),w=r.computed(()=>g.value?h.value:u.control.options),C=ir();r.watch(g,k=>{if(!k)return;const E=C.getCollection(g.value);if(E){h.value=E;return}s.value=!0},{immediate:!0});function v(k,E){if(k===""){E(()=>{o.value=Ne.cloneDeep(w.value)});return}E(()=>{const y=k.toLowerCase();o.value=(w.value||[]).filter(T=>T.toLowerCase().includes(y))})}return(k,E)=>{const y=r.resolveComponent("ControlLabel");return r.openBlock(),r.createElementBlock(r.Fragment,null,[k.control.label?(r.openBlock(),r.createBlock(y,{key:0,label:k.control.label},null,8,["label"])):r.createCommentVNode("",!0),r.createVNode(ki,{class:"q-card win-card row items-center q-px-md"},{default:r.withCtx(()=>[r.createVNode(Ts,{borderless:"",label:k.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"]]),Vm={class:"text-center",style:{width:"100%"}},Pm={class:"text-center text-weight-medium"},Nm={class:"question-title"},Dm=r.defineComponent({__name:"StepHeader",props:{formGroup:{},stepsCount:{}},setup(t){return(o,l)=>(r.openBlock(),r.createElementBlock("div",Vm,[r.createElementVNode("div",Pm,r.toDisplayString(o.formGroup.order+1)+"/"+r.toDisplayString(o.stepsCount),1),r.createElementVNode("div",Nm,r.toDisplayString(o.formGroup.title||""),1)]))}});function $m(){return r.inject(Jd)}function Bs(t,o){const{maxControlsPerGroup:l,notifyValidations:u}={...ld,...o||{}},s=ir(),c=r.computed(()=>s.formSteps[t]),h=r.ref([]),g=r.ref([]),w=(y,T)=>{s.setControlValue(t,y);const z=h.value.find(F=>F.id===T);z&&(g.value=ad(z));const R=v(y),H=k(y);(R||H)&&C()};function C(){const y=c.value.controls,T=[];fd(y).forEach(R=>{const H=R.controls;if(H.every(N=>!Rl.includes(N.controlType))){T.push(R);return}let F={...R,controls:[]};for(const N of H)if(Rl.includes(N.controlType)){T.push(F),F={...F,controls:[]};const Q=sd(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=c.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 k({id:y,value:T}){const z=Number(T||0);let R=!1;const F=c.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}=$m();return r.watch(g,y=>{y.length&&(u&&E({message:y[0],color:"negative",position:"bottom",timeout:5e3,actions:[{label:"✕",color:"white"}]}),g.value=[])},{deep:!0}),r.watch(c,()=>{C()},{immediate:!0}),{model:h,errorMessages:g,rebuildModel:C,onControlValueUpdate:w}}const Fm={key:0,style:{height:"100%"}},Um={class:"q-py-sm"},zm={class:"form-steps-container"},Hm={class:"row justify-center items-center",style:{height:"100%",width:"100vw"}},Wm={class:"controls-container",style:{height:"100%"}},Gm={class:"form-container flex column items-center q-px-md",style:{width:"100vw"}},Km=st(r.defineComponent({__name:"MultipleFormGroups",props:{index:{}},setup(t){const o=t,l=ir(),{model:u,onControlValueUpdate:s}=Bs(o.index),c=r.computed(()=>u.value.length),h=r.ref(0),g=r.computed(()=>u.value[h.value]),w=v=>{const k=Ne.toPairs(Ne.groupBy(v,"row"));return Ne.orderBy(k,([E,y])=>Number(E),"asc").map(([E,y])=>({controls:Ne.orderBy(y,"col","asc")}))};r.watch(h,v=>{const k=v+1===c.value;l.setOnLastSubstep(k)},{immediate:!0});function C(v){return{input_text:Kl,input_number:Kl,checkbox:Eu,switch:jd,select:qm,cards_select:$d}[v]||Kl}return(v,k)=>g.value?(r.openBlock(),r.createElementBlock("div",Fm,[r.createElementVNode("div",Um,[r.createVNode(Dm,{formGroup:g.value,stepsCount:c.value},null,8,["formGroup","stepsCount"])]),r.createElementVNode("div",zm,[r.createElementVNode("div",Hm,[r.createElementVNode("div",Wm,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(u),E=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:E.id},[h.value===E.order?(r.openBlock(),r.createBlock(wd,{key:0,transition:"slide-left",style:{height:"75%",width:"100vw"},class:"row q-py-xs justify-center items-center bg-grey-1"},{default:r.withCtx(()=>[r.createElementVNode("div",Gm,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(w(E.controls),(y,T)=>(r.openBlock(),r.createElementBlock("div",{class:"q-mb-xl",key:T},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(y.controls,(z,R)=>(r.openBlock(),r.createElementBlock("div",{key:R},[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(C(z.controlType)),{control:z,modelValue:y.controls[R].value,"onUpdate:modelValue":[H=>y.controls[R].value=H,H=>r.unref(s)(z,E.id)]},null,8,["control","modelValue","onUpdate:modelValue"]))]))),128))]))),128))])]),_:2},1024)):r.createCommentVNode("",!0)],64))),128)),r.createVNode(zh,{currentStep:h.value,stepsCount:c.value,nextDisabled:!g.value.valid,onPrev:k[0]||(k[0]=E=>h.value--),onNext:k[1]||(k[1]=E=>g.value.valid&&h.value++)},null,8,["currentStep","stepsCount","nextDisabled"])])])])])):r.createCommentVNode("",!0)}}),[["__scopeId","data-v-2d9dca33"]]),jm={style:{"font-size":"16px","padding-top":"1rem"}},Ym={style:{"font-size":"16px","padding-top":"1rem"}},no=st(r.defineComponent({__name:"SimpleInput",props:r.mergeModels({control:{},rules:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=r.useModel(t,"modelValue"),l=t,u=r.computed(()=>{var s;return(s=l.control.controlType)==null?void 0:s.split("_")[1]});return(s,c)=>(r.openBlock(),r.createBlock(ki,{class:"q-px-md win-card"},{default:r.withCtx(()=>[r.createVNode($u,{borderless:"","reverse-fill-mask":"",modelValue:o.value,"onUpdate:modelValue":c[0]||(c[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},r.createSlots({_:2},[s.control.prefix?{name:"prepend",fn:r.withCtx(()=>[r.createElementVNode("span",jm,r.toDisplayString(s.control.prefix),1)]),key:"0"}:void 0,s.control.suffix?{name:"append",fn:r.withCtx(()=>[r.createElementVNode("span",Ym,r.toDisplayString(s.control.suffix),1)]),key:"1"}:void 0]),1032,["modelValue","label","mask","input-class","rules"])]),_:1}))}}),[["__scopeId","data-v-bd5dfdca"]]),Rs=r.defineComponent({__name:"SimpleSelect",props:r.mergeModels({control:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=r.useModel(t,"modelValue");return(l,u)=>(r.openBlock(),r.createBlock(ki,{class:"q-px-md win-card"},{default:r.withCtx(()=>[r.createVNode(Ts,{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}))}}),Qm={key:0,style:{height:"100%"}},Zm={class:"question-title text-center q-py-sm"},Xm={class:"form-steps-container bg-grey-1"},Jm={class:"form-container",style:{height:"100%"}},eg={class:"row items-center"},tg={class:"col-12 row"},ng=st(r.defineComponent({__name:"SingleFormGroup",props:{index:{}},setup(t){const o=t,{model:l,onControlValueUpdate:u}=Bs(o.index,{notifyValidations:!1});function s(w){return{input_text:no,input_number:no,select:Rs,cards_select:Rs,checkbox:Eu}[w]||no}const c=w=>Ne.orderBy(Ne.toPairs(Ne.groupBy(w,"row")),"row").map(([C,v])=>({controls:Ne.orderBy(v,"col")}));function h(w){return[C=>{var k;let v="";return(k=w.validators)==null||k.some(E=>{const{param:y,validator:T}=E,z=eu[T];return z.fn(Number(y))({...w,value:C})?!1:(v=z.message,!0)}),!v.length||v}]}const g=ir();return r.onMounted(()=>g.setOnLastSubstep(!0)),(w,C)=>r.unref(l)?(r.openBlock(),r.createElementBlock("div",Qm,[r.createElementVNode("div",Zm,r.toDisplayString(r.unref(l)[0].title),1),r.createElementVNode("div",Xm,[r.createElementVNode("div",Jm,[r.createElementVNode("div",eg,[r.createElementVNode("div",tg,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(c(r.unref(l)[0].controls),(v,k)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(c(r.unref(l)[0].controls).length>1?"col-md-6 col-12":"col-12"),key:k},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(v.controls,(E,y)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(`col-xs-12 col-sm q-pa-xs ${c(r.unref(l)[0].controls).length>1?"col-md-6 col-12":"col-12"}`),key:y},[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(s(E.controlType)),{control:E,modelValue:E.value,"onUpdate:modelValue":[T=>E.value=T,T=>r.unref(u)(E,r.unref(l)[0].id)],rules:h(E)},null,8,["control","modelValue","onUpdate:modelValue","rules"]))],2))),128))],2))),128))])])])])])):r.createCommentVNode("",!0)}}),[["__scopeId","data-v-a8cd1002"]]),ro=t=>(r.pushScopeId("data-v-ea1ef607"),t=t(),r.popScopeId(),t),rg={class:"buttons-container"},ig={class:"max-container"},lg={key:0,class:"row checkbox justify-end q-my-sm"},og={style:{"max-width":"650px"}},ag=ro(()=>r.createElementVNode("br",{class:"gt-sm"},null,-1)),ug={class:"row justify-between q-my-md q-px-md q-pb-xl"},sg=ro(()=>r.createElementVNode("span",{class:"text-black"},"Atrás",-1)),cg={key:1},fg={key:0,class:"text-black"},dg=ro(()=>r.createElementVNode("span",{class:"gt-sm"},"formulario",-1)),hg={key:1,class:"text-black"},mg=st(r.defineComponent({__name:"StepsNavigationButtons",emits:["submit"],setup(t,{emit:o}){const{nextStep:l,previousStep:u,currentStep:s,stepsCount:c,nextDisabled:h,onLastSubstep:g}=r.toRefs(ir()),w=o,C=r.ref(!1),v=E=>{},k=()=>{s.value===c.value?w("submit"):l.value()};return(E,y)=>(r.openBlock(),r.createElementBlock("div",rg,[r.createElementVNode("div",ig,[r.unref(s)===r.unref(c)?(r.openBlock(),r.createElementBlock("div",lg,[r.createElementVNode("div",og,[r.createVNode(ku,{color:"info",class:"checkbox",modelValue:C.value,"onUpdate:modelValue":y[1]||(y[1]=T=>C.value=T)},{default:r.withCtx(()=>[r.createElementVNode("div",null,[r.createTextVNode(" He leído, comprendo y acepto los términos de tratamiento de datos "),ag,r.createTextVNode(" personales para esta solicitud. Más info. sobre la protección de datos "),r.createElementVNode("span",{style:{"text-decoration":"underline"},onClick:y[0]||(y[0]=T=>v())},"aquí"),r.createTextVNode(". ")])]),_:1},8,["modelValue"])])])):r.createCommentVNode("",!0),r.createElementVNode("div",ug,[r.unref(s)>1?(r.openBlock(),r.createBlock(cr,{key:0,color:"info",class:"q-px-xl q-py-sm q-mr-sm win-btn win-btn-primary bg-white",onClick:r.unref(u),flat:"","no-caps":""},{default:r.withCtx(()=>[sg]),_:1},8,["onClick"])):(r.openBlock(),r.createElementBlock("div",cg)),r.createElementVNode("div",null,[!r.unref(h)&&r.unref(g)?(r.openBlock(),r.createBlock(cr,{key:0,color:"green",class:"q-px-xl q-py-sm q-ml-sm win-btn win-btn-primary bg-white",onClick:k,disable:r.unref(s)===r.unref(c)&&!C.value,flat:"","no-caps":""},{default:r.withCtx(()=>[r.unref(s)===r.unref(c)?(r.openBlock(),r.createElementBlock("span",fg,[r.createTextVNode(" Enviar "),dg])):(r.openBlock(),r.createElementBlock("span",hg," Siguiente "))]),_:1},8,["disable"])):r.createCommentVNode("",!0)])])])]))}}),[["__scopeId","data-v-ea1ef607"]]),Is=r.defineComponent({__name:"DynamicForm",props:{forms:{}},emits:["onSubmit"],setup(t,{emit:o}){const l=t,u=o,s=r.ref(!1),c=ir(),h=w=>Ne.keys(Ne.groupBy(w.controls,"group")).length===1;r.watch(()=>l.forms,w=>{const v=new iu().fromRaw(w);c.setFormSteps(v)},{immediate:!0});function g(){const w=Ne.cloneDeep(c.formSteps),v=new iu().toRaw(w);u("onSubmit",v)}return(w,C)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("div",null,[r.renderSlot(w.$slots,"header"),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(c).formSteps,(v,k)=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:k},[h(v)?r.withDirectives((r.openBlock(),r.createBlock(ng,{key:0,index:k},null,8,["index"])),[[r.vShow,r.unref(c).currentStep===k+1]]):r.withDirectives((r.openBlock(),r.createBlock(Km,{key:1,index:k,onOnLastStep:C[0]||(C[0]=E=>s.value=E)},null,8,["index"])),[[r.vShow,r.unref(c).currentStep===k+1]])],64))),128))]),r.createVNode(mg,{onSubmit:g})],64))}}),gg=r.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),Ms=r.defineComponent({__name:"TestUi",setup(t){const o=r.ref("Test W2W UI!");return(l,u)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[gg,r.createElementVNode("h1",null,r.toDisplayString(o.value),1)],64))}}),pg=r.defineComponent({__name:"DomSection",props:{section:{}},setup(t){const o=r.ref(null),l=t;return r.watch([()=>l.section,o],([u,s])=>{u&&s&&s.appendChild(u)}),(u,s)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"container",ref:o},null,512))}});function Ls(t,o){try{return o.split(".").reduce((u,s)=>u[s],t)}catch(l){return console.error(l),`{{${o}}}`}}const vg={class:"card"},_g={key:0,class:"card-header"},bg={key:0,contenteditable:""},yg={class:"card-content"},wg={contenteditable:"",class:"field-label"},Sg={contenteditable:"",class:"field-value"},xg=st(r.defineComponent({__name:"Card",props:{card:{},data:{}},setup(t){const o=t;function l(s){const c=s.value||Ls(o.data,s.key||"");return u(c,s.format)}function u(s,c){return c?c==="currency"?new Intl.NumberFormat("es-ES",{style:"currency",currency:"EUR"}).format(s):c==="percentage"?`${s} %`:s:s}return(s,c)=>(r.openBlock(),r.createElementBlock("div",vg,[s.card.title||s.card.subtitle?(r.openBlock(),r.createElementBlock("div",_g,[s.card.title?(r.openBlock(),r.createElementBlock("h3",bg,r.toDisplayString(s.card.title),1)):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0),r.createElementVNode("div",yg,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.card.fields,(h,g)=>(r.openBlock(),r.createElementBlock("div",{key:g,class:"card-field"},[r.createElementVNode("span",wg,r.toDisplayString(h.label),1),r.createElementVNode("span",Sg,r.toDisplayString(l(h)),1)]))),128))])]))}}),[["__scopeId","data-v-758b9217"]]);function Mi(t,o={}){const l=r.inject("data"),u=r.computed(()=>l.value[t]||o),s=r.computed(()=>l.value.global||{}),c=r.computed(()=>({...s.value,...u.value}));return{sectionData:u,globalData:s,data:c}}const Cg=st(r.defineComponent({__name:"CardGridSection",props:{styles:{},id:{},content:{}},setup(t){const o=t,{data:l}=Mi(o.id,{});return(u,s)=>{var c;return r.openBlock(),r.createElementBlock("div",{class:"card-section",style:r.normalizeStyle(((c=u.styles)==null?void 0:c.cssRaw)||"")},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(u.content.cards,(h,g)=>(r.openBlock(),r.createBlock(xg,{key:g,card:h,data:r.unref(l)},null,8,["card","data"]))),128))],4)}}}),[["__scopeId","data-v-1ef55d4c"]]),kg=["src","alt"],Eg=st(r.defineComponent({__name:"ImageSection",props:{styles:{},id:{},content:{}},setup(t){const o=t,{content:l,styles:u}=r.toRefs(o);return Mi(o.id,{}),(s,c)=>(r.openBlock(),r.createElementBlock("div",{style:r.normalizeStyle({justifyContent:r.unref(l).align}),class:"img-container"},[r.createElementVNode("img",{src:r.unref(l).src,alt:r.unref(l).alt,style:r.normalizeStyle({width:r.unref(l).width,height:r.unref(l).height})},null,12,kg)],4))}}),[["__scopeId","data-v-16a52375"]]),Ag="#f5f5f5",Og=st(r.defineComponent({__name:"TableSection",props:{styles:{},id:{},content:{}},setup(t){const o=t,{columns:l}=r.toRefs(o.content),{data:u}=Mi(o.id,[]),s=r.computed(()=>[...u.value[o.content.rowsKey]||[]]);return(c,h)=>{var g;return r.openBlock(),r.createElementBlock("table",{style:r.normalizeStyle("width: 100%;"+((g=c.styles)==null?void 0:g.cssRaw)||""),class:"table-section"},[r.createElementVNode("thead",null,[r.createElementVNode("tr",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(l),w=>(r.openBlock(),r.createElementBlock("th",{key:w.key,style:r.normalizeStyle({textAlign:w.align||"left"}),contenteditable:""},r.toDisplayString(w.header),5))),128))])]),r.createElementVNode("tbody",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.value,(w,C)=>(r.openBlock(),r.createElementBlock("tr",{key:C,style:r.normalizeStyle({backgroundColor:C%2===0?Ag:"transparent"})},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(l),v=>(r.openBlock(),r.createElementBlock("td",{key:v.key,style:r.normalizeStyle({textAlign:v.align||"left"}),contenteditable:""},r.toDisplayString(w[v.key]),5))),128))],4))),128))])],4)}}}),[["__scopeId","data-v-cb58770d"]]),Tg={key:0,contenteditable:""},Bg={key:1,contenteditable:""},Rg={key:2,contenteditable:""},Ig=st(r.defineComponent({__name:"TextSection",props:{styles:{},id:{},content:{}},setup(t){const o=t,{data:l}=Mi(o.id,{}),u=r.computed(()=>{var c,h;return((h=(c=o.content)==null?void 0:c.lines)==null?void 0:h.map(({type:g,text:w})=>({type:g,text:s(l.value,w)})))||[]});function s(c,h){const g=h.match(/{{(.*?)}}/g);return g?g.reduce((w,C)=>{const v=C.replace(/{{|}}/g,""),k=Ls(c,v);return w.replace(C,k??v)},h):h}return(c,h)=>{var g;return r.openBlock(),r.createElementBlock("div",{style:r.normalizeStyle(((g=c.styles)==null?void 0:g.cssRaw)||"")},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(u.value,({type:w,text:C})=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[w==="title"?(r.openBlock(),r.createElementBlock("h1",Tg,r.toDisplayString(C),1)):r.createCommentVNode("",!0),w==="subtitle"?(r.openBlock(),r.createElementBlock("h2",Bg,r.toDisplayString(C),1)):r.createCommentVNode("",!0),w==="paragraph"?(r.openBlock(),r.createElementBlock("p",Rg,r.toDisplayString(C),1)):r.createCommentVNode("",!0)],64))),256))],4)}}}),[["__scopeId","data-v-7163c4d0"]]),Mg=r.defineComponent({__name:"SectionWrapper",props:{section:{}},setup(t){const o=t,l={[pt.LayoutSectionType.TEXT]:Ig,[pt.LayoutSectionType.IMAGE]:Eg,[pt.LayoutSectionType.TABLE]:Og,[pt.LayoutSectionType.CARDS_GRID]:Cg},u=r.computed(()=>o.section.type),s=r.computed(()=>({content:o.section.content,styles:o.section.styles,id:o.section.idDocLaySection}));return(c,h)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(l[u.value]),r.normalizeProps(r.guardReactiveProps(s.value)),null,16))}}),qs=st(r.defineComponent({__name:"SectionsContainer",props:{layout:{},data:{},htmlNodes:{}},setup(t){var h;const o=t,{layout:l,data:u}=r.toRefs(o);r.provide("data",u);const s=r.computed(()=>{var w;const g=l.value.sections.map(C=>({type:"default",section:C}));return(w=o.htmlNodes)==null||w.forEach(({index:C,element:v})=>{const k=C>g.length?g.length:C;g.splice(k,0,{type:"html",section:v})}),g}),c=((h=l.value.styles)==null?void 0:h.cssRaw)||"";return(g,w)=>(r.openBlock(),r.createElementBlock("div",{class:"sections-container",style:r.normalizeStyle(r.unref(c))},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.value,({type:C,section:v})=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[C==="default"?(r.openBlock(),r.createBlock(Mg,{key:0,section:v},null,8,["section"])):(r.openBlock(),r.createBlock(pg,{key:1,section:v},null,8,["section"]))],64))),256))],4))}}),[["__scopeId","data-v-94fca854"]]),Lg={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",Is),t.component("TestUi",Ms),t.component("SectionsContainer",qs)}};Nt.DynamicForm=Is,Nt.SectionsContainer=qs,Nt.TestUi=Ms,Nt.default=Lg,Object.defineProperties(Nt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});