impaktapps-ui-builder 0.0.409-l → 0.0.409-m

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,24 +5,24 @@
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
- */(function(r,s){(function(){var i,m="4.17.21",g=200,v="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",y="Expected a function",C="Invalid `variable` option passed into `_.template`",F="__lodash_hash_undefined__",z=500,W="__lodash_placeholder__",Q=1,he=2,$=4,Ke=1,gt=2,se=1,We=2,$t=4,ye=8,Ve=16,ve=32,Ye=64,Ie=128,it=256,Ft=512,ht=30,ll="...",sl=800,ul=16,Ai=1,pl=2,cl=3,yt=1/0,ot=9007199254740991,dl=17976931348623157e292,mn=0/0,ze=4294967295,fl=ze-1,ml=ze>>>1,gl=[["ary",Ie],["bind",se],["bindKey",We],["curry",ye],["curryRight",Ve],["flip",Ft],["partial",ve],["partialRight",Ye],["rearg",it]],At="[object Arguments]",gn="[object Array]",hl="[object AsyncFunction]",Kt="[object Boolean]",Vt="[object Date]",yl="[object DOMException]",hn="[object Error]",yn="[object Function]",Ti="[object GeneratorFunction]",Pe="[object Map]",Yt="[object Number]",vl="[object Null]",qe="[object Object]",Ei="[object Promise]",bl="[object Proxy]",qt="[object RegExp]",ke="[object Set]",Jt="[object String]",vn="[object Symbol]",xl="[object Undefined]",Xt="[object WeakMap]",_l="[object WeakSet]",Zt="[object ArrayBuffer]",Tt="[object DataView]",lr="[object Float32Array]",sr="[object Float64Array]",ur="[object Int8Array]",pr="[object Int16Array]",cr="[object Int32Array]",dr="[object Uint8Array]",fr="[object Uint8ClampedArray]",mr="[object Uint16Array]",gr="[object Uint32Array]",Sl=/\b__p \+= '';/g,Cl=/\b(__p \+=) '' \+/g,wl=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Bi=/&(?:amp|lt|gt|quot|#39);/g,Ri=/[&<>"']/g,Il=RegExp(Bi.source),Ll=RegExp(Ri.source),Fl=/<%-([\s\S]+?)%>/g,Al=/<%([\s\S]+?)%>/g,Di=/<%=([\s\S]+?)%>/g,Tl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,El=/^\w*$/,Bl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,hr=/[\\^$.*+?()[\]{}|]/g,Rl=RegExp(hr.source),yr=/^\s+/,Dl=/\s/,Pl=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,kl=/\{\n\/\* \[wrapped with (.+)\] \*/,Hl=/,? & /,Ml=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ol=/[()=,{}\[\]\/\s]/,Nl=/\\(\\)?/g,Wl=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Pi=/\w*$/,zl=/^[-+]0x[0-9a-f]+$/i,Ul=/^0b[01]+$/i,Gl=/^\[object .+?Constructor\]$/,$l=/^0o[0-7]+$/i,Kl=/^(?:0|[1-9]\d*)$/,Vl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,bn=/($^)/,Yl=/['\n\r\u2028\u2029\\]/g,xn="\\ud800-\\udfff",ql="\\u0300-\\u036f",Jl="\\ufe20-\\ufe2f",Xl="\\u20d0-\\u20ff",ki=ql+Jl+Xl,Hi="\\u2700-\\u27bf",Mi="a-z\\xdf-\\xf6\\xf8-\\xff",Zl="\\xac\\xb1\\xd7\\xf7",Ql="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",jl="\\u2000-\\u206f",es=" \\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",Oi="A-Z\\xc0-\\xd6\\xd8-\\xde",Ni="\\ufe0e\\ufe0f",Wi=Zl+Ql+jl+es,vr="['\u2019]",ts="["+xn+"]",zi="["+Wi+"]",_n="["+ki+"]",Ui="\\d+",ns="["+Hi+"]",Gi="["+Mi+"]",$i="[^"+xn+Wi+Ui+Hi+Mi+Oi+"]",br="\\ud83c[\\udffb-\\udfff]",rs="(?:"+_n+"|"+br+")",Ki="[^"+xn+"]",xr="(?:\\ud83c[\\udde6-\\uddff]){2}",_r="[\\ud800-\\udbff][\\udc00-\\udfff]",Et="["+Oi+"]",Vi="\\u200d",Yi="(?:"+Gi+"|"+$i+")",is="(?:"+Et+"|"+$i+")",qi="(?:"+vr+"(?:d|ll|m|re|s|t|ve))?",Ji="(?:"+vr+"(?:D|LL|M|RE|S|T|VE))?",Xi=rs+"?",Zi="["+Ni+"]?",os="(?:"+Vi+"(?:"+[Ki,xr,_r].join("|")+")"+Zi+Xi+")*",as="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ls="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Qi=Zi+Xi+os,ss="(?:"+[ns,xr,_r].join("|")+")"+Qi,us="(?:"+[Ki+_n+"?",_n,xr,_r,ts].join("|")+")",ps=RegExp(vr,"g"),cs=RegExp(_n,"g"),Sr=RegExp(br+"(?="+br+")|"+us+Qi,"g"),ds=RegExp([Et+"?"+Gi+"+"+qi+"(?="+[zi,Et,"$"].join("|")+")",is+"+"+Ji+"(?="+[zi,Et+Yi,"$"].join("|")+")",Et+"?"+Yi+"+"+qi,Et+"+"+Ji,ls,as,Ui,ss].join("|"),"g"),fs=RegExp("["+Vi+xn+ki+Ni+"]"),ms=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,gs=["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"],hs=-1,q={};q[lr]=q[sr]=q[ur]=q[pr]=q[cr]=q[dr]=q[fr]=q[mr]=q[gr]=!0,q[At]=q[gn]=q[Zt]=q[Kt]=q[Tt]=q[Vt]=q[hn]=q[yn]=q[Pe]=q[Yt]=q[qe]=q[qt]=q[ke]=q[Jt]=q[Xt]=!1;var Y={};Y[At]=Y[gn]=Y[Zt]=Y[Tt]=Y[Kt]=Y[Vt]=Y[lr]=Y[sr]=Y[ur]=Y[pr]=Y[cr]=Y[Pe]=Y[Yt]=Y[qe]=Y[qt]=Y[ke]=Y[Jt]=Y[vn]=Y[dr]=Y[fr]=Y[mr]=Y[gr]=!0,Y[hn]=Y[yn]=Y[Xt]=!1;var ys={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},vs={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},bs={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},xs={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},_s=parseFloat,Ss=parseInt,ji=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,Cs=typeof self=="object"&&self&&self.Object===Object&&self,ie=ji||Cs||Function("return this")(),Cr=s&&!s.nodeType&&s,vt=Cr&&!0&&r&&!r.nodeType&&r,eo=vt&&vt.exports===Cr,wr=eo&&ji.process,Le=function(){try{var d=vt&&vt.require&&vt.require("util").types;return d||wr&&wr.binding&&wr.binding("util")}catch{}}(),to=Le&&Le.isArrayBuffer,no=Le&&Le.isDate,ro=Le&&Le.isMap,io=Le&&Le.isRegExp,oo=Le&&Le.isSet,ao=Le&&Le.isTypedArray;function be(d,b,h){switch(h.length){case 0:return d.call(b);case 1:return d.call(b,h[0]);case 2:return d.call(b,h[0],h[1]);case 3:return d.call(b,h[0],h[1],h[2])}return d.apply(b,h)}function ws(d,b,h,L){for(var R=-1,U=d==null?0:d.length;++R<U;){var te=d[R];b(L,te,h(te),d)}return L}function Fe(d,b){for(var h=-1,L=d==null?0:d.length;++h<L&&b(d[h],h,d)!==!1;);return d}function Is(d,b){for(var h=d==null?0:d.length;h--&&b(d[h],h,d)!==!1;);return d}function lo(d,b){for(var h=-1,L=d==null?0:d.length;++h<L;)if(!b(d[h],h,d))return!1;return!0}function at(d,b){for(var h=-1,L=d==null?0:d.length,R=0,U=[];++h<L;){var te=d[h];b(te,h,d)&&(U[R++]=te)}return U}function Sn(d,b){var h=d==null?0:d.length;return!!h&&Bt(d,b,0)>-1}function Ir(d,b,h){for(var L=-1,R=d==null?0:d.length;++L<R;)if(h(b,d[L]))return!0;return!1}function J(d,b){for(var h=-1,L=d==null?0:d.length,R=Array(L);++h<L;)R[h]=b(d[h],h,d);return R}function lt(d,b){for(var h=-1,L=b.length,R=d.length;++h<L;)d[R+h]=b[h];return d}function Lr(d,b,h,L){var R=-1,U=d==null?0:d.length;for(L&&U&&(h=d[++R]);++R<U;)h=b(h,d[R],R,d);return h}function Ls(d,b,h,L){var R=d==null?0:d.length;for(L&&R&&(h=d[--R]);R--;)h=b(h,d[R],R,d);return h}function Fr(d,b){for(var h=-1,L=d==null?0:d.length;++h<L;)if(b(d[h],h,d))return!0;return!1}var Fs=Ar("length");function As(d){return d.split("")}function Ts(d){return d.match(Ml)||[]}function so(d,b,h){var L;return h(d,function(R,U,te){if(b(R,U,te))return L=U,!1}),L}function Cn(d,b,h,L){for(var R=d.length,U=h+(L?1:-1);L?U--:++U<R;)if(b(d[U],U,d))return U;return-1}function Bt(d,b,h){return b===b?zs(d,b,h):Cn(d,uo,h)}function Es(d,b,h,L){for(var R=h-1,U=d.length;++R<U;)if(L(d[R],b))return R;return-1}function uo(d){return d!==d}function po(d,b){var h=d==null?0:d.length;return h?Er(d,b)/h:mn}function Ar(d){return function(b){return b==null?i:b[d]}}function Tr(d){return function(b){return d==null?i:d[b]}}function co(d,b,h,L,R){return R(d,function(U,te,V){h=L?(L=!1,U):b(h,U,te,V)}),h}function Bs(d,b){var h=d.length;for(d.sort(b);h--;)d[h]=d[h].value;return d}function Er(d,b){for(var h,L=-1,R=d.length;++L<R;){var U=b(d[L]);U!==i&&(h=h===i?U:h+U)}return h}function Br(d,b){for(var h=-1,L=Array(d);++h<d;)L[h]=b(h);return L}function Rs(d,b){return J(b,function(h){return[h,d[h]]})}function fo(d){return d&&d.slice(0,yo(d)+1).replace(yr,"")}function xe(d){return function(b){return d(b)}}function Rr(d,b){return J(b,function(h){return d[h]})}function Qt(d,b){return d.has(b)}function mo(d,b){for(var h=-1,L=d.length;++h<L&&Bt(b,d[h],0)>-1;);return h}function go(d,b){for(var h=d.length;h--&&Bt(b,d[h],0)>-1;);return h}function Ds(d,b){for(var h=d.length,L=0;h--;)d[h]===b&&++L;return L}var Ps=Tr(ys),ks=Tr(vs);function Hs(d){return"\\"+xs[d]}function Ms(d,b){return d==null?i:d[b]}function Rt(d){return fs.test(d)}function Os(d){return ms.test(d)}function Ns(d){for(var b,h=[];!(b=d.next()).done;)h.push(b.value);return h}function Dr(d){var b=-1,h=Array(d.size);return d.forEach(function(L,R){h[++b]=[R,L]}),h}function ho(d,b){return function(h){return d(b(h))}}function st(d,b){for(var h=-1,L=d.length,R=0,U=[];++h<L;){var te=d[h];(te===b||te===W)&&(d[h]=W,U[R++]=h)}return U}function wn(d){var b=-1,h=Array(d.size);return d.forEach(function(L){h[++b]=L}),h}function Ws(d){var b=-1,h=Array(d.size);return d.forEach(function(L){h[++b]=[L,L]}),h}function zs(d,b,h){for(var L=h-1,R=d.length;++L<R;)if(d[L]===b)return L;return-1}function Us(d,b,h){for(var L=h+1;L--;)if(d[L]===b)return L;return L}function Dt(d){return Rt(d)?$s(d):Fs(d)}function He(d){return Rt(d)?Ks(d):As(d)}function yo(d){for(var b=d.length;b--&&Dl.test(d.charAt(b)););return b}var Gs=Tr(bs);function $s(d){for(var b=Sr.lastIndex=0;Sr.test(d);)++b;return b}function Ks(d){return d.match(Sr)||[]}function Vs(d){return d.match(ds)||[]}var Ys=function d(b){b=b==null?ie:Pt.defaults(ie.Object(),b,Pt.pick(ie,gs));var h=b.Array,L=b.Date,R=b.Error,U=b.Function,te=b.Math,V=b.Object,Pr=b.RegExp,qs=b.String,Ae=b.TypeError,In=h.prototype,Js=U.prototype,kt=V.prototype,Ln=b["__core-js_shared__"],Fn=Js.toString,K=kt.hasOwnProperty,Xs=0,vo=function(){var e=/[^.]+$/.exec(Ln&&Ln.keys&&Ln.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),An=kt.toString,Zs=Fn.call(V),Qs=ie._,js=Pr("^"+Fn.call(K).replace(hr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Tn=eo?b.Buffer:i,ut=b.Symbol,En=b.Uint8Array,bo=Tn?Tn.allocUnsafe:i,Bn=ho(V.getPrototypeOf,V),xo=V.create,_o=kt.propertyIsEnumerable,Rn=In.splice,So=ut?ut.isConcatSpreadable:i,jt=ut?ut.iterator:i,bt=ut?ut.toStringTag:i,Dn=function(){try{var e=wt(V,"defineProperty");return e({},"",{}),e}catch{}}(),eu=b.clearTimeout!==ie.clearTimeout&&b.clearTimeout,tu=L&&L.now!==ie.Date.now&&L.now,nu=b.setTimeout!==ie.setTimeout&&b.setTimeout,Pn=te.ceil,kn=te.floor,kr=V.getOwnPropertySymbols,ru=Tn?Tn.isBuffer:i,Co=b.isFinite,iu=In.join,ou=ho(V.keys,V),ne=te.max,ae=te.min,au=L.now,lu=b.parseInt,wo=te.random,su=In.reverse,Hr=wt(b,"DataView"),en=wt(b,"Map"),Mr=wt(b,"Promise"),Ht=wt(b,"Set"),tn=wt(b,"WeakMap"),nn=wt(V,"create"),Hn=tn&&new tn,Mt={},uu=It(Hr),pu=It(en),cu=It(Mr),du=It(Ht),fu=It(tn),Mn=ut?ut.prototype:i,rn=Mn?Mn.valueOf:i,Io=Mn?Mn.toString:i;function l(e){if(Z(e)&&!D(e)&&!(e instanceof O)){if(e instanceof Te)return e;if(K.call(e,"__wrapped__"))return La(e)}return new Te(e)}var Ot=function(){function e(){}return function(t){if(!X(t))return{};if(xo)return xo(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function On(){}function Te(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}l.templateSettings={escape:Fl,evaluate:Al,interpolate:Di,variable:"",imports:{_:l}},l.prototype=On.prototype,l.prototype.constructor=l,Te.prototype=Ot(On.prototype),Te.prototype.constructor=Te;function O(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ze,this.__views__=[]}function mu(){var e=new O(this.__wrapped__);return e.__actions__=de(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=de(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=de(this.__views__),e}function gu(){if(this.__filtered__){var e=new O(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function hu(){var e=this.__wrapped__.value(),t=this.__dir__,n=D(e),o=t<0,a=n?e.length:0,u=Ap(0,a,this.__views__),p=u.start,c=u.end,f=c-p,x=o?c:p-1,S=this.__iteratees__,w=S.length,I=0,A=ae(f,this.__takeCount__);if(!n||!o&&a==f&&A==f)return Jo(e,this.__actions__);var E=[];e:for(;f--&&I<A;){x+=t;for(var k=-1,B=e[x];++k<w;){var M=S[k],N=M.iteratee,Ce=M.type,ce=N(B);if(Ce==pl)B=ce;else if(!ce){if(Ce==Ai)continue e;break e}}E[I++]=B}return E}O.prototype=Ot(On.prototype),O.prototype.constructor=O;function xt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function yu(){this.__data__=nn?nn(null):{},this.size=0}function vu(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function bu(e){var t=this.__data__;if(nn){var n=t[e];return n===F?i:n}return K.call(t,e)?t[e]:i}function xu(e){var t=this.__data__;return nn?t[e]!==i:K.call(t,e)}function _u(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=nn&&t===i?F:t,this}xt.prototype.clear=yu,xt.prototype.delete=vu,xt.prototype.get=bu,xt.prototype.has=xu,xt.prototype.set=_u;function Je(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function Su(){this.__data__=[],this.size=0}function Cu(e){var t=this.__data__,n=Nn(t,e);if(n<0)return!1;var o=t.length-1;return n==o?t.pop():Rn.call(t,n,1),--this.size,!0}function wu(e){var t=this.__data__,n=Nn(t,e);return n<0?i:t[n][1]}function Iu(e){return Nn(this.__data__,e)>-1}function Lu(e,t){var n=this.__data__,o=Nn(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}Je.prototype.clear=Su,Je.prototype.delete=Cu,Je.prototype.get=wu,Je.prototype.has=Iu,Je.prototype.set=Lu;function Xe(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function Fu(){this.size=0,this.__data__={hash:new xt,map:new(en||Je),string:new xt}}function Au(e){var t=Zn(this,e).delete(e);return this.size-=t?1:0,t}function Tu(e){return Zn(this,e).get(e)}function Eu(e){return Zn(this,e).has(e)}function Bu(e,t){var n=Zn(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}Xe.prototype.clear=Fu,Xe.prototype.delete=Au,Xe.prototype.get=Tu,Xe.prototype.has=Eu,Xe.prototype.set=Bu;function _t(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Xe;++t<n;)this.add(e[t])}function Ru(e){return this.__data__.set(e,F),this}function Du(e){return this.__data__.has(e)}_t.prototype.add=_t.prototype.push=Ru,_t.prototype.has=Du;function Me(e){var t=this.__data__=new Je(e);this.size=t.size}function Pu(){this.__data__=new Je,this.size=0}function ku(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Hu(e){return this.__data__.get(e)}function Mu(e){return this.__data__.has(e)}function Ou(e,t){var n=this.__data__;if(n instanceof Je){var o=n.__data__;if(!en||o.length<g-1)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new Xe(o)}return n.set(e,t),this.size=n.size,this}Me.prototype.clear=Pu,Me.prototype.delete=ku,Me.prototype.get=Hu,Me.prototype.has=Mu,Me.prototype.set=Ou;function Lo(e,t){var n=D(e),o=!n&&Lt(e),a=!n&&!o&&mt(e),u=!n&&!o&&!a&&Ut(e),p=n||o||a||u,c=p?Br(e.length,qs):[],f=c.length;for(var x in e)(t||K.call(e,x))&&!(p&&(x=="length"||a&&(x=="offset"||x=="parent")||u&&(x=="buffer"||x=="byteLength"||x=="byteOffset")||et(x,f)))&&c.push(x);return c}function Fo(e){var t=e.length;return t?e[qr(0,t-1)]:i}function Nu(e,t){return Qn(de(e),St(t,0,e.length))}function Wu(e){return Qn(de(e))}function Or(e,t,n){(n!==i&&!Oe(e[t],n)||n===i&&!(t in e))&&Ze(e,t,n)}function on(e,t,n){var o=e[t];(!(K.call(e,t)&&Oe(o,n))||n===i&&!(t in e))&&Ze(e,t,n)}function Nn(e,t){for(var n=e.length;n--;)if(Oe(e[n][0],t))return n;return-1}function zu(e,t,n,o){return pt(e,function(a,u,p){t(o,a,n(a),p)}),o}function Ao(e,t){return e&&Ge(t,re(t),e)}function Uu(e,t){return e&&Ge(t,me(t),e)}function Ze(e,t,n){t=="__proto__"&&Dn?Dn(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Nr(e,t){for(var n=-1,o=t.length,a=h(o),u=e==null;++n<o;)a[n]=u?i:bi(e,t[n]);return a}function St(e,t,n){return e===e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function Ee(e,t,n,o,a,u){var p,c=t&Q,f=t&he,x=t&$;if(n&&(p=a?n(e,o,a,u):n(e)),p!==i)return p;if(!X(e))return e;var S=D(e);if(S){if(p=Ep(e),!c)return de(e,p)}else{var w=le(e),I=w==yn||w==Ti;if(mt(e))return Qo(e,c);if(w==qe||w==At||I&&!a){if(p=f||I?{}:ya(e),!c)return f?bp(e,Uu(p,e)):vp(e,Ao(p,e))}else{if(!Y[w])return a?e:{};p=Bp(e,w,c)}}u||(u=new Me);var A=u.get(e);if(A)return A;u.set(e,p),Va(e)?e.forEach(function(B){p.add(Ee(B,t,n,B,e,u))}):$a(e)&&e.forEach(function(B,M){p.set(M,Ee(B,t,n,M,e,u))});var E=x?f?oi:ii:f?me:re,k=S?i:E(e);return Fe(k||e,function(B,M){k&&(M=B,B=e[M]),on(p,M,Ee(B,t,n,M,e,u))}),p}function Gu(e){var t=re(e);return function(n){return To(n,e,t)}}function To(e,t,n){var o=n.length;if(e==null)return!o;for(e=V(e);o--;){var a=n[o],u=t[a],p=e[a];if(p===i&&!(a in e)||!u(p))return!1}return!0}function Eo(e,t,n){if(typeof e!="function")throw new Ae(y);return dn(function(){e.apply(i,n)},t)}function an(e,t,n,o){var a=-1,u=Sn,p=!0,c=e.length,f=[],x=t.length;if(!c)return f;n&&(t=J(t,xe(n))),o?(u=Ir,p=!1):t.length>=g&&(u=Qt,p=!1,t=new _t(t));e:for(;++a<c;){var S=e[a],w=n==null?S:n(S);if(S=o||S!==0?S:0,p&&w===w){for(var I=x;I--;)if(t[I]===w)continue e;f.push(S)}else u(t,w,o)||f.push(S)}return f}var pt=ra(Ue),Bo=ra(zr,!0);function $u(e,t){var n=!0;return pt(e,function(o,a,u){return n=!!t(o,a,u),n}),n}function Wn(e,t,n){for(var o=-1,a=e.length;++o<a;){var u=e[o],p=t(u);if(p!=null&&(c===i?p===p&&!Se(p):n(p,c)))var c=p,f=u}return f}function Ku(e,t,n,o){var a=e.length;for(n=P(n),n<0&&(n=-n>a?0:a+n),o=o===i||o>a?a:P(o),o<0&&(o+=a),o=n>o?0:qa(o);n<o;)e[n++]=t;return e}function Ro(e,t){var n=[];return pt(e,function(o,a,u){t(o,a,u)&&n.push(o)}),n}function oe(e,t,n,o,a){var u=-1,p=e.length;for(n||(n=Dp),a||(a=[]);++u<p;){var c=e[u];t>0&&n(c)?t>1?oe(c,t-1,n,o,a):lt(a,c):o||(a[a.length]=c)}return a}var Wr=ia(),Do=ia(!0);function Ue(e,t){return e&&Wr(e,t,re)}function zr(e,t){return e&&Do(e,t,re)}function zn(e,t){return at(t,function(n){return tt(e[n])})}function Ct(e,t){t=dt(t,e);for(var n=0,o=t.length;e!=null&&n<o;)e=e[$e(t[n++])];return n&&n==o?e:i}function Po(e,t,n){var o=t(e);return D(e)?o:lt(o,n(e))}function ue(e){return e==null?e===i?xl:vl:bt&&bt in V(e)?Fp(e):Wp(e)}function Ur(e,t){return e>t}function Vu(e,t){return e!=null&&K.call(e,t)}function Yu(e,t){return e!=null&&t in V(e)}function qu(e,t,n){return e>=ae(t,n)&&e<ne(t,n)}function Gr(e,t,n){for(var o=n?Ir:Sn,a=e[0].length,u=e.length,p=u,c=h(u),f=1/0,x=[];p--;){var S=e[p];p&&t&&(S=J(S,xe(t))),f=ae(S.length,f),c[p]=!n&&(t||a>=120&&S.length>=120)?new _t(p&&S):i}S=e[0];var w=-1,I=c[0];e:for(;++w<a&&x.length<f;){var A=S[w],E=t?t(A):A;if(A=n||A!==0?A:0,!(I?Qt(I,E):o(x,E,n))){for(p=u;--p;){var k=c[p];if(!(k?Qt(k,E):o(e[p],E,n)))continue e}I&&I.push(E),x.push(A)}}return x}function Ju(e,t,n,o){return Ue(e,function(a,u,p){t(o,n(a),u,p)}),o}function ln(e,t,n){t=dt(t,e),e=_a(e,t);var o=e==null?e:e[$e(Re(t))];return o==null?i:be(o,e,n)}function ko(e){return Z(e)&&ue(e)==At}function Xu(e){return Z(e)&&ue(e)==Zt}function Zu(e){return Z(e)&&ue(e)==Vt}function sn(e,t,n,o,a){return e===t?!0:e==null||t==null||!Z(e)&&!Z(t)?e!==e&&t!==t:Qu(e,t,n,o,sn,a)}function Qu(e,t,n,o,a,u){var p=D(e),c=D(t),f=p?gn:le(e),x=c?gn:le(t);f=f==At?qe:f,x=x==At?qe:x;var S=f==qe,w=x==qe,I=f==x;if(I&&mt(e)){if(!mt(t))return!1;p=!0,S=!1}if(I&&!S)return u||(u=new Me),p||Ut(e)?ma(e,t,n,o,a,u):Ip(e,t,f,n,o,a,u);if(!(n&Ke)){var A=S&&K.call(e,"__wrapped__"),E=w&&K.call(t,"__wrapped__");if(A||E){var k=A?e.value():e,B=E?t.value():t;return u||(u=new Me),a(k,B,n,o,u)}}return I?(u||(u=new Me),Lp(e,t,n,o,a,u)):!1}function ju(e){return Z(e)&&le(e)==Pe}function $r(e,t,n,o){var a=n.length,u=a,p=!o;if(e==null)return!u;for(e=V(e);a--;){var c=n[a];if(p&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<u;){c=n[a];var f=c[0],x=e[f],S=c[1];if(p&&c[2]){if(x===i&&!(f in e))return!1}else{var w=new Me;if(o)var I=o(x,S,f,e,t,w);if(!(I===i?sn(S,x,Ke|gt,o,w):I))return!1}}return!0}function Ho(e){if(!X(e)||kp(e))return!1;var t=tt(e)?js:Gl;return t.test(It(e))}function ep(e){return Z(e)&&ue(e)==qt}function tp(e){return Z(e)&&le(e)==ke}function np(e){return Z(e)&&ir(e.length)&&!!q[ue(e)]}function Mo(e){return typeof e=="function"?e:e==null?ge:typeof e=="object"?D(e)?Wo(e[0],e[1]):No(e):ol(e)}function Kr(e){if(!cn(e))return ou(e);var t=[];for(var n in V(e))K.call(e,n)&&n!="constructor"&&t.push(n);return t}function rp(e){if(!X(e))return Np(e);var t=cn(e),n=[];for(var o in e)o=="constructor"&&(t||!K.call(e,o))||n.push(o);return n}function Vr(e,t){return e<t}function Oo(e,t){var n=-1,o=fe(e)?h(e.length):[];return pt(e,function(a,u,p){o[++n]=t(a,u,p)}),o}function No(e){var t=li(e);return t.length==1&&t[0][2]?ba(t[0][0],t[0][1]):function(n){return n===e||$r(n,e,t)}}function Wo(e,t){return ui(e)&&va(t)?ba($e(e),t):function(n){var o=bi(n,e);return o===i&&o===t?xi(n,e):sn(t,o,Ke|gt)}}function Un(e,t,n,o,a){e!==t&&Wr(t,function(u,p){if(a||(a=new Me),X(u))ip(e,t,p,n,Un,o,a);else{var c=o?o(ci(e,p),u,p+"",e,t,a):i;c===i&&(c=u),Or(e,p,c)}},me)}function ip(e,t,n,o,a,u,p){var c=ci(e,n),f=ci(t,n),x=p.get(f);if(x){Or(e,n,x);return}var S=u?u(c,f,n+"",e,t,p):i,w=S===i;if(w){var I=D(f),A=!I&&mt(f),E=!I&&!A&&Ut(f);S=f,I||A||E?D(c)?S=c:j(c)?S=de(c):A?(w=!1,S=Qo(f,!0)):E?(w=!1,S=jo(f,!0)):S=[]:fn(f)||Lt(f)?(S=c,Lt(c)?S=Ja(c):(!X(c)||tt(c))&&(S=ya(f))):w=!1}w&&(p.set(f,S),a(S,f,o,u,p),p.delete(f)),Or(e,n,S)}function zo(e,t){var n=e.length;if(!!n)return t+=t<0?n:0,et(t,n)?e[t]:i}function Uo(e,t,n){t.length?t=J(t,function(u){return D(u)?function(p){return Ct(p,u.length===1?u[0]:u)}:u}):t=[ge];var o=-1;t=J(t,xe(T()));var a=Oo(e,function(u,p,c){var f=J(t,function(x){return x(u)});return{criteria:f,index:++o,value:u}});return Bs(a,function(u,p){return yp(u,p,n)})}function op(e,t){return Go(e,t,function(n,o){return xi(e,o)})}function Go(e,t,n){for(var o=-1,a=t.length,u={};++o<a;){var p=t[o],c=Ct(e,p);n(c,p)&&un(u,dt(p,e),c)}return u}function ap(e){return function(t){return Ct(t,e)}}function Yr(e,t,n,o){var a=o?Es:Bt,u=-1,p=t.length,c=e;for(e===t&&(t=de(t)),n&&(c=J(e,xe(n)));++u<p;)for(var f=0,x=t[u],S=n?n(x):x;(f=a(c,S,f,o))>-1;)c!==e&&Rn.call(c,f,1),Rn.call(e,f,1);return e}function $o(e,t){for(var n=e?t.length:0,o=n-1;n--;){var a=t[n];if(n==o||a!==u){var u=a;et(a)?Rn.call(e,a,1):Zr(e,a)}}return e}function qr(e,t){return e+kn(wo()*(t-e+1))}function lp(e,t,n,o){for(var a=-1,u=ne(Pn((t-e)/(n||1)),0),p=h(u);u--;)p[o?u:++a]=e,e+=n;return p}function Jr(e,t){var n="";if(!e||t<1||t>ot)return n;do t%2&&(n+=e),t=kn(t/2),t&&(e+=e);while(t);return n}function H(e,t){return di(xa(e,t,ge),e+"")}function sp(e){return Fo(Gt(e))}function up(e,t){var n=Gt(e);return Qn(n,St(t,0,n.length))}function un(e,t,n,o){if(!X(e))return e;t=dt(t,e);for(var a=-1,u=t.length,p=u-1,c=e;c!=null&&++a<u;){var f=$e(t[a]),x=n;if(f==="__proto__"||f==="constructor"||f==="prototype")return e;if(a!=p){var S=c[f];x=o?o(S,f,c):i,x===i&&(x=X(S)?S:et(t[a+1])?[]:{})}on(c,f,x),c=c[f]}return e}var Ko=Hn?function(e,t){return Hn.set(e,t),e}:ge,pp=Dn?function(e,t){return Dn(e,"toString",{configurable:!0,enumerable:!1,value:Si(t),writable:!0})}:ge;function cp(e){return Qn(Gt(e))}function Be(e,t,n){var o=-1,a=e.length;t<0&&(t=-t>a?0:a+t),n=n>a?a:n,n<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var u=h(a);++o<a;)u[o]=e[o+t];return u}function dp(e,t){var n;return pt(e,function(o,a,u){return n=t(o,a,u),!n}),!!n}function Gn(e,t,n){var o=0,a=e==null?o:e.length;if(typeof t=="number"&&t===t&&a<=ml){for(;o<a;){var u=o+a>>>1,p=e[u];p!==null&&!Se(p)&&(n?p<=t:p<t)?o=u+1:a=u}return a}return Xr(e,t,ge,n)}function Xr(e,t,n,o){var a=0,u=e==null?0:e.length;if(u===0)return 0;t=n(t);for(var p=t!==t,c=t===null,f=Se(t),x=t===i;a<u;){var S=kn((a+u)/2),w=n(e[S]),I=w!==i,A=w===null,E=w===w,k=Se(w);if(p)var B=o||E;else x?B=E&&(o||I):c?B=E&&I&&(o||!A):f?B=E&&I&&!A&&(o||!k):A||k?B=!1:B=o?w<=t:w<t;B?a=S+1:u=S}return ae(u,fl)}function Vo(e,t){for(var n=-1,o=e.length,a=0,u=[];++n<o;){var p=e[n],c=t?t(p):p;if(!n||!Oe(c,f)){var f=c;u[a++]=p===0?0:p}}return u}function Yo(e){return typeof e=="number"?e:Se(e)?mn:+e}function _e(e){if(typeof e=="string")return e;if(D(e))return J(e,_e)+"";if(Se(e))return Io?Io.call(e):"";var t=e+"";return t=="0"&&1/e==-yt?"-0":t}function ct(e,t,n){var o=-1,a=Sn,u=e.length,p=!0,c=[],f=c;if(n)p=!1,a=Ir;else if(u>=g){var x=t?null:Cp(e);if(x)return wn(x);p=!1,a=Qt,f=new _t}else f=t?[]:c;e:for(;++o<u;){var S=e[o],w=t?t(S):S;if(S=n||S!==0?S:0,p&&w===w){for(var I=f.length;I--;)if(f[I]===w)continue e;t&&f.push(w),c.push(S)}else a(f,w,n)||(f!==c&&f.push(w),c.push(S))}return c}function Zr(e,t){return t=dt(t,e),e=_a(e,t),e==null||delete e[$e(Re(t))]}function qo(e,t,n,o){return un(e,t,n(Ct(e,t)),o)}function $n(e,t,n,o){for(var a=e.length,u=o?a:-1;(o?u--:++u<a)&&t(e[u],u,e););return n?Be(e,o?0:u,o?u+1:a):Be(e,o?u+1:0,o?a:u)}function Jo(e,t){var n=e;return n instanceof O&&(n=n.value()),Lr(t,function(o,a){return a.func.apply(a.thisArg,lt([o],a.args))},n)}function Qr(e,t,n){var o=e.length;if(o<2)return o?ct(e[0]):[];for(var a=-1,u=h(o);++a<o;)for(var p=e[a],c=-1;++c<o;)c!=a&&(u[a]=an(u[a]||p,e[c],t,n));return ct(oe(u,1),t,n)}function Xo(e,t,n){for(var o=-1,a=e.length,u=t.length,p={};++o<a;){var c=o<u?t[o]:i;n(p,e[o],c)}return p}function jr(e){return j(e)?e:[]}function ei(e){return typeof e=="function"?e:ge}function dt(e,t){return D(e)?e:ui(e,t)?[e]:Ia(G(e))}var fp=H;function ft(e,t,n){var o=e.length;return n=n===i?o:n,!t&&n>=o?e:Be(e,t,n)}var Zo=eu||function(e){return ie.clearTimeout(e)};function Qo(e,t){if(t)return e.slice();var n=e.length,o=bo?bo(n):new e.constructor(n);return e.copy(o),o}function ti(e){var t=new e.constructor(e.byteLength);return new En(t).set(new En(e)),t}function mp(e,t){var n=t?ti(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function gp(e){var t=new e.constructor(e.source,Pi.exec(e));return t.lastIndex=e.lastIndex,t}function hp(e){return rn?V(rn.call(e)):{}}function jo(e,t){var n=t?ti(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ea(e,t){if(e!==t){var n=e!==i,o=e===null,a=e===e,u=Se(e),p=t!==i,c=t===null,f=t===t,x=Se(t);if(!c&&!x&&!u&&e>t||u&&p&&f&&!c&&!x||o&&p&&f||!n&&f||!a)return 1;if(!o&&!u&&!x&&e<t||x&&n&&a&&!o&&!u||c&&n&&a||!p&&a||!f)return-1}return 0}function yp(e,t,n){for(var o=-1,a=e.criteria,u=t.criteria,p=a.length,c=n.length;++o<p;){var f=ea(a[o],u[o]);if(f){if(o>=c)return f;var x=n[o];return f*(x=="desc"?-1:1)}}return e.index-t.index}function ta(e,t,n,o){for(var a=-1,u=e.length,p=n.length,c=-1,f=t.length,x=ne(u-p,0),S=h(f+x),w=!o;++c<f;)S[c]=t[c];for(;++a<p;)(w||a<u)&&(S[n[a]]=e[a]);for(;x--;)S[c++]=e[a++];return S}function na(e,t,n,o){for(var a=-1,u=e.length,p=-1,c=n.length,f=-1,x=t.length,S=ne(u-c,0),w=h(S+x),I=!o;++a<S;)w[a]=e[a];for(var A=a;++f<x;)w[A+f]=t[f];for(;++p<c;)(I||a<u)&&(w[A+n[p]]=e[a++]);return w}function de(e,t){var n=-1,o=e.length;for(t||(t=h(o));++n<o;)t[n]=e[n];return t}function Ge(e,t,n,o){var a=!n;n||(n={});for(var u=-1,p=t.length;++u<p;){var c=t[u],f=o?o(n[c],e[c],c,n,e):i;f===i&&(f=e[c]),a?Ze(n,c,f):on(n,c,f)}return n}function vp(e,t){return Ge(e,si(e),t)}function bp(e,t){return Ge(e,ga(e),t)}function Kn(e,t){return function(n,o){var a=D(n)?ws:zu,u=t?t():{};return a(n,e,T(o,2),u)}}function Nt(e){return H(function(t,n){var o=-1,a=n.length,u=a>1?n[a-1]:i,p=a>2?n[2]:i;for(u=e.length>3&&typeof u=="function"?(a--,u):i,p&&pe(n[0],n[1],p)&&(u=a<3?i:u,a=1),t=V(t);++o<a;){var c=n[o];c&&e(t,c,o,u)}return t})}function ra(e,t){return function(n,o){if(n==null)return n;if(!fe(n))return e(n,o);for(var a=n.length,u=t?a:-1,p=V(n);(t?u--:++u<a)&&o(p[u],u,p)!==!1;);return n}}function ia(e){return function(t,n,o){for(var a=-1,u=V(t),p=o(t),c=p.length;c--;){var f=p[e?c:++a];if(n(u[f],f,u)===!1)break}return t}}function xp(e,t,n){var o=t&se,a=pn(e);function u(){var p=this&&this!==ie&&this instanceof u?a:e;return p.apply(o?n:this,arguments)}return u}function oa(e){return function(t){t=G(t);var n=Rt(t)?He(t):i,o=n?n[0]:t.charAt(0),a=n?ft(n,1).join(""):t.slice(1);return o[e]()+a}}function Wt(e){return function(t){return Lr(rl(nl(t).replace(ps,"")),e,"")}}function pn(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Ot(e.prototype),o=e.apply(n,t);return X(o)?o:n}}function _p(e,t,n){var o=pn(e);function a(){for(var u=arguments.length,p=h(u),c=u,f=zt(a);c--;)p[c]=arguments[c];var x=u<3&&p[0]!==f&&p[u-1]!==f?[]:st(p,f);if(u-=x.length,u<n)return pa(e,t,Vn,a.placeholder,i,p,x,i,i,n-u);var S=this&&this!==ie&&this instanceof a?o:e;return be(S,this,p)}return a}function aa(e){return function(t,n,o){var a=V(t);if(!fe(t)){var u=T(n,3);t=re(t),n=function(c){return u(a[c],c,a)}}var p=e(t,n,o);return p>-1?a[u?t[p]:p]:i}}function la(e){return je(function(t){var n=t.length,o=n,a=Te.prototype.thru;for(e&&t.reverse();o--;){var u=t[o];if(typeof u!="function")throw new Ae(y);if(a&&!p&&Xn(u)=="wrapper")var p=new Te([],!0)}for(o=p?o:n;++o<n;){u=t[o];var c=Xn(u),f=c=="wrapper"?ai(u):i;f&&pi(f[0])&&f[1]==(Ie|ye|ve|it)&&!f[4].length&&f[9]==1?p=p[Xn(f[0])].apply(p,f[3]):p=u.length==1&&pi(u)?p[c]():p.thru(u)}return function(){var x=arguments,S=x[0];if(p&&x.length==1&&D(S))return p.plant(S).value();for(var w=0,I=n?t[w].apply(this,x):S;++w<n;)I=t[w].call(this,I);return I}})}function Vn(e,t,n,o,a,u,p,c,f,x){var S=t&Ie,w=t&se,I=t&We,A=t&(ye|Ve),E=t&Ft,k=I?i:pn(e);function B(){for(var M=arguments.length,N=h(M),Ce=M;Ce--;)N[Ce]=arguments[Ce];if(A)var ce=zt(B),we=Ds(N,ce);if(o&&(N=ta(N,o,a,A)),u&&(N=na(N,u,p,A)),M-=we,A&&M<x){var ee=st(N,ce);return pa(e,t,Vn,B.placeholder,n,N,ee,c,f,x-M)}var Ne=w?n:this,rt=I?Ne[e]:e;return M=N.length,c?N=zp(N,c):E&&M>1&&N.reverse(),S&&f<M&&(N.length=f),this&&this!==ie&&this instanceof B&&(rt=k||pn(rt)),rt.apply(Ne,N)}return B}function sa(e,t){return function(n,o){return Ju(n,e,t(o),{})}}function Yn(e,t){return function(n,o){var a;if(n===i&&o===i)return t;if(n!==i&&(a=n),o!==i){if(a===i)return o;typeof n=="string"||typeof o=="string"?(n=_e(n),o=_e(o)):(n=Yo(n),o=Yo(o)),a=e(n,o)}return a}}function ni(e){return je(function(t){return t=J(t,xe(T())),H(function(n){var o=this;return e(t,function(a){return be(a,o,n)})})})}function qn(e,t){t=t===i?" ":_e(t);var n=t.length;if(n<2)return n?Jr(t,e):t;var o=Jr(t,Pn(e/Dt(t)));return Rt(t)?ft(He(o),0,e).join(""):o.slice(0,e)}function Sp(e,t,n,o){var a=t&se,u=pn(e);function p(){for(var c=-1,f=arguments.length,x=-1,S=o.length,w=h(S+f),I=this&&this!==ie&&this instanceof p?u:e;++x<S;)w[x]=o[x];for(;f--;)w[x++]=arguments[++c];return be(I,a?n:this,w)}return p}function ua(e){return function(t,n,o){return o&&typeof o!="number"&&pe(t,n,o)&&(n=o=i),t=nt(t),n===i?(n=t,t=0):n=nt(n),o=o===i?t<n?1:-1:nt(o),lp(t,n,o,e)}}function Jn(e){return function(t,n){return typeof t=="string"&&typeof n=="string"||(t=De(t),n=De(n)),e(t,n)}}function pa(e,t,n,o,a,u,p,c,f,x){var S=t&ye,w=S?p:i,I=S?i:p,A=S?u:i,E=S?i:u;t|=S?ve:Ye,t&=~(S?Ye:ve),t&$t||(t&=~(se|We));var k=[e,t,a,A,w,E,I,c,f,x],B=n.apply(i,k);return pi(e)&&Sa(B,k),B.placeholder=o,Ca(B,e,t)}function ri(e){var t=te[e];return function(n,o){if(n=De(n),o=o==null?0:ae(P(o),292),o&&Co(n)){var a=(G(n)+"e").split("e"),u=t(a[0]+"e"+(+a[1]+o));return a=(G(u)+"e").split("e"),+(a[0]+"e"+(+a[1]-o))}return t(n)}}var Cp=Ht&&1/wn(new Ht([,-0]))[1]==yt?function(e){return new Ht(e)}:Ii;function ca(e){return function(t){var n=le(t);return n==Pe?Dr(t):n==ke?Ws(t):Rs(t,e(t))}}function Qe(e,t,n,o,a,u,p,c){var f=t&We;if(!f&&typeof e!="function")throw new Ae(y);var x=o?o.length:0;if(x||(t&=~(ve|Ye),o=a=i),p=p===i?p:ne(P(p),0),c=c===i?c:P(c),x-=a?a.length:0,t&Ye){var S=o,w=a;o=a=i}var I=f?i:ai(e),A=[e,t,n,o,a,S,w,u,p,c];if(I&&Op(A,I),e=A[0],t=A[1],n=A[2],o=A[3],a=A[4],c=A[9]=A[9]===i?f?0:e.length:ne(A[9]-x,0),!c&&t&(ye|Ve)&&(t&=~(ye|Ve)),!t||t==se)var E=xp(e,t,n);else t==ye||t==Ve?E=_p(e,t,c):(t==ve||t==(se|ve))&&!a.length?E=Sp(e,t,n,o):E=Vn.apply(i,A);var k=I?Ko:Sa;return Ca(k(E,A),e,t)}function da(e,t,n,o){return e===i||Oe(e,kt[n])&&!K.call(o,n)?t:e}function fa(e,t,n,o,a,u){return X(e)&&X(t)&&(u.set(t,e),Un(e,t,i,fa,u),u.delete(t)),e}function wp(e){return fn(e)?i:e}function ma(e,t,n,o,a,u){var p=n&Ke,c=e.length,f=t.length;if(c!=f&&!(p&&f>c))return!1;var x=u.get(e),S=u.get(t);if(x&&S)return x==t&&S==e;var w=-1,I=!0,A=n&gt?new _t:i;for(u.set(e,t),u.set(t,e);++w<c;){var E=e[w],k=t[w];if(o)var B=p?o(k,E,w,t,e,u):o(E,k,w,e,t,u);if(B!==i){if(B)continue;I=!1;break}if(A){if(!Fr(t,function(M,N){if(!Qt(A,N)&&(E===M||a(E,M,n,o,u)))return A.push(N)})){I=!1;break}}else if(!(E===k||a(E,k,n,o,u))){I=!1;break}}return u.delete(e),u.delete(t),I}function Ip(e,t,n,o,a,u,p){switch(n){case Tt:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Zt:return!(e.byteLength!=t.byteLength||!u(new En(e),new En(t)));case Kt:case Vt:case Yt:return Oe(+e,+t);case hn:return e.name==t.name&&e.message==t.message;case qt:case Jt:return e==t+"";case Pe:var c=Dr;case ke:var f=o&Ke;if(c||(c=wn),e.size!=t.size&&!f)return!1;var x=p.get(e);if(x)return x==t;o|=gt,p.set(e,t);var S=ma(c(e),c(t),o,a,u,p);return p.delete(e),S;case vn:if(rn)return rn.call(e)==rn.call(t)}return!1}function Lp(e,t,n,o,a,u){var p=n&Ke,c=ii(e),f=c.length,x=ii(t),S=x.length;if(f!=S&&!p)return!1;for(var w=f;w--;){var I=c[w];if(!(p?I in t:K.call(t,I)))return!1}var A=u.get(e),E=u.get(t);if(A&&E)return A==t&&E==e;var k=!0;u.set(e,t),u.set(t,e);for(var B=p;++w<f;){I=c[w];var M=e[I],N=t[I];if(o)var Ce=p?o(N,M,I,t,e,u):o(M,N,I,e,t,u);if(!(Ce===i?M===N||a(M,N,n,o,u):Ce)){k=!1;break}B||(B=I=="constructor")}if(k&&!B){var ce=e.constructor,we=t.constructor;ce!=we&&"constructor"in e&&"constructor"in t&&!(typeof ce=="function"&&ce instanceof ce&&typeof we=="function"&&we instanceof we)&&(k=!1)}return u.delete(e),u.delete(t),k}function je(e){return di(xa(e,i,Ta),e+"")}function ii(e){return Po(e,re,si)}function oi(e){return Po(e,me,ga)}var ai=Hn?function(e){return Hn.get(e)}:Ii;function Xn(e){for(var t=e.name+"",n=Mt[t],o=K.call(Mt,t)?n.length:0;o--;){var a=n[o],u=a.func;if(u==null||u==e)return a.name}return t}function zt(e){var t=K.call(l,"placeholder")?l:e;return t.placeholder}function T(){var e=l.iteratee||Ci;return e=e===Ci?Mo:e,arguments.length?e(arguments[0],arguments[1]):e}function Zn(e,t){var n=e.__data__;return Pp(t)?n[typeof t=="string"?"string":"hash"]:n.map}function li(e){for(var t=re(e),n=t.length;n--;){var o=t[n],a=e[o];t[n]=[o,a,va(a)]}return t}function wt(e,t){var n=Ms(e,t);return Ho(n)?n:i}function Fp(e){var t=K.call(e,bt),n=e[bt];try{e[bt]=i;var o=!0}catch{}var a=An.call(e);return o&&(t?e[bt]=n:delete e[bt]),a}var si=kr?function(e){return e==null?[]:(e=V(e),at(kr(e),function(t){return _o.call(e,t)}))}:Li,ga=kr?function(e){for(var t=[];e;)lt(t,si(e)),e=Bn(e);return t}:Li,le=ue;(Hr&&le(new Hr(new ArrayBuffer(1)))!=Tt||en&&le(new en)!=Pe||Mr&&le(Mr.resolve())!=Ei||Ht&&le(new Ht)!=ke||tn&&le(new tn)!=Xt)&&(le=function(e){var t=ue(e),n=t==qe?e.constructor:i,o=n?It(n):"";if(o)switch(o){case uu:return Tt;case pu:return Pe;case cu:return Ei;case du:return ke;case fu:return Xt}return t});function Ap(e,t,n){for(var o=-1,a=n.length;++o<a;){var u=n[o],p=u.size;switch(u.type){case"drop":e+=p;break;case"dropRight":t-=p;break;case"take":t=ae(t,e+p);break;case"takeRight":e=ne(e,t-p);break}}return{start:e,end:t}}function Tp(e){var t=e.match(kl);return t?t[1].split(Hl):[]}function ha(e,t,n){t=dt(t,e);for(var o=-1,a=t.length,u=!1;++o<a;){var p=$e(t[o]);if(!(u=e!=null&&n(e,p)))break;e=e[p]}return u||++o!=a?u:(a=e==null?0:e.length,!!a&&ir(a)&&et(p,a)&&(D(e)||Lt(e)))}function Ep(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&K.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function ya(e){return typeof e.constructor=="function"&&!cn(e)?Ot(Bn(e)):{}}function Bp(e,t,n){var o=e.constructor;switch(t){case Zt:return ti(e);case Kt:case Vt:return new o(+e);case Tt:return mp(e,n);case lr:case sr:case ur:case pr:case cr:case dr:case fr:case mr:case gr:return jo(e,n);case Pe:return new o;case Yt:case Jt:return new o(e);case qt:return gp(e);case ke:return new o;case vn:return hp(e)}}function Rp(e,t){var n=t.length;if(!n)return e;var o=n-1;return t[o]=(n>1?"& ":"")+t[o],t=t.join(n>2?", ":" "),e.replace(Pl,`{
8
+ */(function(r,s){(function(){var i,m="4.17.21",h=200,b="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",y="Expected a function",w="Invalid `variable` option passed into `_.template`",F="__lodash_hash_undefined__",$=500,V="__lodash_placeholder__",ee=1,he=2,U=4,Ke=1,gt=2,se=1,We=2,$t=4,ye=8,Ve=16,ve=32,Ye=64,Ie=128,it=256,Ft=512,ht=30,ll="...",sl=800,ul=16,Ai=1,pl=2,cl=3,yt=1/0,ot=9007199254740991,dl=17976931348623157e292,mn=0/0,ze=4294967295,fl=ze-1,ml=ze>>>1,gl=[["ary",Ie],["bind",se],["bindKey",We],["curry",ye],["curryRight",Ve],["flip",Ft],["partial",ve],["partialRight",Ye],["rearg",it]],At="[object Arguments]",gn="[object Array]",hl="[object AsyncFunction]",Kt="[object Boolean]",Vt="[object Date]",yl="[object DOMException]",hn="[object Error]",yn="[object Function]",Ti="[object GeneratorFunction]",Pe="[object Map]",Yt="[object Number]",vl="[object Null]",qe="[object Object]",Ei="[object Promise]",bl="[object Proxy]",qt="[object RegExp]",ke="[object Set]",Xt="[object String]",vn="[object Symbol]",xl="[object Undefined]",Jt="[object WeakMap]",_l="[object WeakSet]",Zt="[object ArrayBuffer]",Tt="[object DataView]",lr="[object Float32Array]",sr="[object Float64Array]",ur="[object Int8Array]",pr="[object Int16Array]",cr="[object Int32Array]",dr="[object Uint8Array]",fr="[object Uint8ClampedArray]",mr="[object Uint16Array]",gr="[object Uint32Array]",Sl=/\b__p \+= '';/g,wl=/\b(__p \+=) '' \+/g,Cl=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Bi=/&(?:amp|lt|gt|quot|#39);/g,Ri=/[&<>"']/g,Il=RegExp(Bi.source),Ll=RegExp(Ri.source),Fl=/<%-([\s\S]+?)%>/g,Al=/<%([\s\S]+?)%>/g,Di=/<%=([\s\S]+?)%>/g,Tl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,El=/^\w*$/,Bl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,hr=/[\\^$.*+?()[\]{}|]/g,Rl=RegExp(hr.source),yr=/^\s+/,Dl=/\s/,Pl=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,kl=/\{\n\/\* \[wrapped with (.+)\] \*/,Hl=/,? & /,Ml=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ol=/[()=,{}\[\]\/\s]/,Nl=/\\(\\)?/g,Wl=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Pi=/\w*$/,zl=/^[-+]0x[0-9a-f]+$/i,Ul=/^0b[01]+$/i,Gl=/^\[object .+?Constructor\]$/,$l=/^0o[0-7]+$/i,Kl=/^(?:0|[1-9]\d*)$/,Vl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,bn=/($^)/,Yl=/['\n\r\u2028\u2029\\]/g,xn="\\ud800-\\udfff",ql="\\u0300-\\u036f",Xl="\\ufe20-\\ufe2f",Jl="\\u20d0-\\u20ff",ki=ql+Xl+Jl,Hi="\\u2700-\\u27bf",Mi="a-z\\xdf-\\xf6\\xf8-\\xff",Zl="\\xac\\xb1\\xd7\\xf7",Ql="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",jl="\\u2000-\\u206f",es=" \\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",Oi="A-Z\\xc0-\\xd6\\xd8-\\xde",Ni="\\ufe0e\\ufe0f",Wi=Zl+Ql+jl+es,vr="['\u2019]",ts="["+xn+"]",zi="["+Wi+"]",_n="["+ki+"]",Ui="\\d+",ns="["+Hi+"]",Gi="["+Mi+"]",$i="[^"+xn+Wi+Ui+Hi+Mi+Oi+"]",br="\\ud83c[\\udffb-\\udfff]",rs="(?:"+_n+"|"+br+")",Ki="[^"+xn+"]",xr="(?:\\ud83c[\\udde6-\\uddff]){2}",_r="[\\ud800-\\udbff][\\udc00-\\udfff]",Et="["+Oi+"]",Vi="\\u200d",Yi="(?:"+Gi+"|"+$i+")",is="(?:"+Et+"|"+$i+")",qi="(?:"+vr+"(?:d|ll|m|re|s|t|ve))?",Xi="(?:"+vr+"(?:D|LL|M|RE|S|T|VE))?",Ji=rs+"?",Zi="["+Ni+"]?",os="(?:"+Vi+"(?:"+[Ki,xr,_r].join("|")+")"+Zi+Ji+")*",as="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ls="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Qi=Zi+Ji+os,ss="(?:"+[ns,xr,_r].join("|")+")"+Qi,us="(?:"+[Ki+_n+"?",_n,xr,_r,ts].join("|")+")",ps=RegExp(vr,"g"),cs=RegExp(_n,"g"),Sr=RegExp(br+"(?="+br+")|"+us+Qi,"g"),ds=RegExp([Et+"?"+Gi+"+"+qi+"(?="+[zi,Et,"$"].join("|")+")",is+"+"+Xi+"(?="+[zi,Et+Yi,"$"].join("|")+")",Et+"?"+Yi+"+"+qi,Et+"+"+Xi,ls,as,Ui,ss].join("|"),"g"),fs=RegExp("["+Vi+xn+ki+Ni+"]"),ms=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,gs=["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"],hs=-1,q={};q[lr]=q[sr]=q[ur]=q[pr]=q[cr]=q[dr]=q[fr]=q[mr]=q[gr]=!0,q[At]=q[gn]=q[Zt]=q[Kt]=q[Tt]=q[Vt]=q[hn]=q[yn]=q[Pe]=q[Yt]=q[qe]=q[qt]=q[ke]=q[Xt]=q[Jt]=!1;var Y={};Y[At]=Y[gn]=Y[Zt]=Y[Tt]=Y[Kt]=Y[Vt]=Y[lr]=Y[sr]=Y[ur]=Y[pr]=Y[cr]=Y[Pe]=Y[Yt]=Y[qe]=Y[qt]=Y[ke]=Y[Xt]=Y[vn]=Y[dr]=Y[fr]=Y[mr]=Y[gr]=!0,Y[hn]=Y[yn]=Y[Jt]=!1;var ys={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},vs={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},bs={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},xs={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},_s=parseFloat,Ss=parseInt,ji=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,ws=typeof self=="object"&&self&&self.Object===Object&&self,ie=ji||ws||Function("return this")(),wr=s&&!s.nodeType&&s,vt=wr&&!0&&r&&!r.nodeType&&r,eo=vt&&vt.exports===wr,Cr=eo&&ji.process,Le=function(){try{var d=vt&&vt.require&&vt.require("util").types;return d||Cr&&Cr.binding&&Cr.binding("util")}catch{}}(),to=Le&&Le.isArrayBuffer,no=Le&&Le.isDate,ro=Le&&Le.isMap,io=Le&&Le.isRegExp,oo=Le&&Le.isSet,ao=Le&&Le.isTypedArray;function be(d,v,g){switch(g.length){case 0:return d.call(v);case 1:return d.call(v,g[0]);case 2:return d.call(v,g[0],g[1]);case 3:return d.call(v,g[0],g[1],g[2])}return d.apply(v,g)}function Cs(d,v,g,L){for(var R=-1,W=d==null?0:d.length;++R<W;){var te=d[R];v(L,te,g(te),d)}return L}function Fe(d,v){for(var g=-1,L=d==null?0:d.length;++g<L&&v(d[g],g,d)!==!1;);return d}function Is(d,v){for(var g=d==null?0:d.length;g--&&v(d[g],g,d)!==!1;);return d}function lo(d,v){for(var g=-1,L=d==null?0:d.length;++g<L;)if(!v(d[g],g,d))return!1;return!0}function at(d,v){for(var g=-1,L=d==null?0:d.length,R=0,W=[];++g<L;){var te=d[g];v(te,g,d)&&(W[R++]=te)}return W}function Sn(d,v){var g=d==null?0:d.length;return!!g&&Bt(d,v,0)>-1}function Ir(d,v,g){for(var L=-1,R=d==null?0:d.length;++L<R;)if(g(v,d[L]))return!0;return!1}function X(d,v){for(var g=-1,L=d==null?0:d.length,R=Array(L);++g<L;)R[g]=v(d[g],g,d);return R}function lt(d,v){for(var g=-1,L=v.length,R=d.length;++g<L;)d[R+g]=v[g];return d}function Lr(d,v,g,L){var R=-1,W=d==null?0:d.length;for(L&&W&&(g=d[++R]);++R<W;)g=v(g,d[R],R,d);return g}function Ls(d,v,g,L){var R=d==null?0:d.length;for(L&&R&&(g=d[--R]);R--;)g=v(g,d[R],R,d);return g}function Fr(d,v){for(var g=-1,L=d==null?0:d.length;++g<L;)if(v(d[g],g,d))return!0;return!1}var Fs=Ar("length");function As(d){return d.split("")}function Ts(d){return d.match(Ml)||[]}function so(d,v,g){var L;return g(d,function(R,W,te){if(v(R,W,te))return L=W,!1}),L}function wn(d,v,g,L){for(var R=d.length,W=g+(L?1:-1);L?W--:++W<R;)if(v(d[W],W,d))return W;return-1}function Bt(d,v,g){return v===v?zs(d,v,g):wn(d,uo,g)}function Es(d,v,g,L){for(var R=g-1,W=d.length;++R<W;)if(L(d[R],v))return R;return-1}function uo(d){return d!==d}function po(d,v){var g=d==null?0:d.length;return g?Er(d,v)/g:mn}function Ar(d){return function(v){return v==null?i:v[d]}}function Tr(d){return function(v){return d==null?i:d[v]}}function co(d,v,g,L,R){return R(d,function(W,te,K){g=L?(L=!1,W):v(g,W,te,K)}),g}function Bs(d,v){var g=d.length;for(d.sort(v);g--;)d[g]=d[g].value;return d}function Er(d,v){for(var g,L=-1,R=d.length;++L<R;){var W=v(d[L]);W!==i&&(g=g===i?W:g+W)}return g}function Br(d,v){for(var g=-1,L=Array(d);++g<d;)L[g]=v(g);return L}function Rs(d,v){return X(v,function(g){return[g,d[g]]})}function fo(d){return d&&d.slice(0,yo(d)+1).replace(yr,"")}function xe(d){return function(v){return d(v)}}function Rr(d,v){return X(v,function(g){return d[g]})}function Qt(d,v){return d.has(v)}function mo(d,v){for(var g=-1,L=d.length;++g<L&&Bt(v,d[g],0)>-1;);return g}function go(d,v){for(var g=d.length;g--&&Bt(v,d[g],0)>-1;);return g}function Ds(d,v){for(var g=d.length,L=0;g--;)d[g]===v&&++L;return L}var Ps=Tr(ys),ks=Tr(vs);function Hs(d){return"\\"+xs[d]}function Ms(d,v){return d==null?i:d[v]}function Rt(d){return fs.test(d)}function Os(d){return ms.test(d)}function Ns(d){for(var v,g=[];!(v=d.next()).done;)g.push(v.value);return g}function Dr(d){var v=-1,g=Array(d.size);return d.forEach(function(L,R){g[++v]=[R,L]}),g}function ho(d,v){return function(g){return d(v(g))}}function st(d,v){for(var g=-1,L=d.length,R=0,W=[];++g<L;){var te=d[g];(te===v||te===V)&&(d[g]=V,W[R++]=g)}return W}function Cn(d){var v=-1,g=Array(d.size);return d.forEach(function(L){g[++v]=L}),g}function Ws(d){var v=-1,g=Array(d.size);return d.forEach(function(L){g[++v]=[L,L]}),g}function zs(d,v,g){for(var L=g-1,R=d.length;++L<R;)if(d[L]===v)return L;return-1}function Us(d,v,g){for(var L=g+1;L--;)if(d[L]===v)return L;return L}function Dt(d){return Rt(d)?$s(d):Fs(d)}function He(d){return Rt(d)?Ks(d):As(d)}function yo(d){for(var v=d.length;v--&&Dl.test(d.charAt(v)););return v}var Gs=Tr(bs);function $s(d){for(var v=Sr.lastIndex=0;Sr.test(d);)++v;return v}function Ks(d){return d.match(Sr)||[]}function Vs(d){return d.match(ds)||[]}var Ys=function d(v){v=v==null?ie:Pt.defaults(ie.Object(),v,Pt.pick(ie,gs));var g=v.Array,L=v.Date,R=v.Error,W=v.Function,te=v.Math,K=v.Object,Pr=v.RegExp,qs=v.String,Ae=v.TypeError,In=g.prototype,Xs=W.prototype,kt=K.prototype,Ln=v["__core-js_shared__"],Fn=Xs.toString,G=kt.hasOwnProperty,Js=0,vo=function(){var e=/[^.]+$/.exec(Ln&&Ln.keys&&Ln.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),An=kt.toString,Zs=Fn.call(K),Qs=ie._,js=Pr("^"+Fn.call(G).replace(hr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Tn=eo?v.Buffer:i,ut=v.Symbol,En=v.Uint8Array,bo=Tn?Tn.allocUnsafe:i,Bn=ho(K.getPrototypeOf,K),xo=K.create,_o=kt.propertyIsEnumerable,Rn=In.splice,So=ut?ut.isConcatSpreadable:i,jt=ut?ut.iterator:i,bt=ut?ut.toStringTag:i,Dn=function(){try{var e=Ct(K,"defineProperty");return e({},"",{}),e}catch{}}(),eu=v.clearTimeout!==ie.clearTimeout&&v.clearTimeout,tu=L&&L.now!==ie.Date.now&&L.now,nu=v.setTimeout!==ie.setTimeout&&v.setTimeout,Pn=te.ceil,kn=te.floor,kr=K.getOwnPropertySymbols,ru=Tn?Tn.isBuffer:i,wo=v.isFinite,iu=In.join,ou=ho(K.keys,K),ne=te.max,ae=te.min,au=L.now,lu=v.parseInt,Co=te.random,su=In.reverse,Hr=Ct(v,"DataView"),en=Ct(v,"Map"),Mr=Ct(v,"Promise"),Ht=Ct(v,"Set"),tn=Ct(v,"WeakMap"),nn=Ct(K,"create"),Hn=tn&&new tn,Mt={},uu=It(Hr),pu=It(en),cu=It(Mr),du=It(Ht),fu=It(tn),Mn=ut?ut.prototype:i,rn=Mn?Mn.valueOf:i,Io=Mn?Mn.toString:i;function l(e){if(Z(e)&&!D(e)&&!(e instanceof O)){if(e instanceof Te)return e;if(G.call(e,"__wrapped__"))return La(e)}return new Te(e)}var Ot=function(){function e(){}return function(t){if(!J(t))return{};if(xo)return xo(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function On(){}function Te(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}l.templateSettings={escape:Fl,evaluate:Al,interpolate:Di,variable:"",imports:{_:l}},l.prototype=On.prototype,l.prototype.constructor=l,Te.prototype=Ot(On.prototype),Te.prototype.constructor=Te;function O(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ze,this.__views__=[]}function mu(){var e=new O(this.__wrapped__);return e.__actions__=de(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=de(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=de(this.__views__),e}function gu(){if(this.__filtered__){var e=new O(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function hu(){var e=this.__wrapped__.value(),t=this.__dir__,n=D(e),o=t<0,a=n?e.length:0,u=Ap(0,a,this.__views__),p=u.start,c=u.end,f=c-p,x=o?c:p-1,S=this.__iteratees__,C=S.length,I=0,A=ae(f,this.__takeCount__);if(!n||!o&&a==f&&A==f)return Xo(e,this.__actions__);var E=[];e:for(;f--&&I<A;){x+=t;for(var k=-1,B=e[x];++k<C;){var M=S[k],N=M.iteratee,we=M.type,ce=N(B);if(we==pl)B=ce;else if(!ce){if(we==Ai)continue e;break e}}E[I++]=B}return E}O.prototype=Ot(On.prototype),O.prototype.constructor=O;function xt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function yu(){this.__data__=nn?nn(null):{},this.size=0}function vu(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function bu(e){var t=this.__data__;if(nn){var n=t[e];return n===F?i:n}return G.call(t,e)?t[e]:i}function xu(e){var t=this.__data__;return nn?t[e]!==i:G.call(t,e)}function _u(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=nn&&t===i?F:t,this}xt.prototype.clear=yu,xt.prototype.delete=vu,xt.prototype.get=bu,xt.prototype.has=xu,xt.prototype.set=_u;function Xe(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function Su(){this.__data__=[],this.size=0}function wu(e){var t=this.__data__,n=Nn(t,e);if(n<0)return!1;var o=t.length-1;return n==o?t.pop():Rn.call(t,n,1),--this.size,!0}function Cu(e){var t=this.__data__,n=Nn(t,e);return n<0?i:t[n][1]}function Iu(e){return Nn(this.__data__,e)>-1}function Lu(e,t){var n=this.__data__,o=Nn(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}Xe.prototype.clear=Su,Xe.prototype.delete=wu,Xe.prototype.get=Cu,Xe.prototype.has=Iu,Xe.prototype.set=Lu;function Je(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function Fu(){this.size=0,this.__data__={hash:new xt,map:new(en||Xe),string:new xt}}function Au(e){var t=Zn(this,e).delete(e);return this.size-=t?1:0,t}function Tu(e){return Zn(this,e).get(e)}function Eu(e){return Zn(this,e).has(e)}function Bu(e,t){var n=Zn(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}Je.prototype.clear=Fu,Je.prototype.delete=Au,Je.prototype.get=Tu,Je.prototype.has=Eu,Je.prototype.set=Bu;function _t(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Je;++t<n;)this.add(e[t])}function Ru(e){return this.__data__.set(e,F),this}function Du(e){return this.__data__.has(e)}_t.prototype.add=_t.prototype.push=Ru,_t.prototype.has=Du;function Me(e){var t=this.__data__=new Xe(e);this.size=t.size}function Pu(){this.__data__=new Xe,this.size=0}function ku(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Hu(e){return this.__data__.get(e)}function Mu(e){return this.__data__.has(e)}function Ou(e,t){var n=this.__data__;if(n instanceof Xe){var o=n.__data__;if(!en||o.length<h-1)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new Je(o)}return n.set(e,t),this.size=n.size,this}Me.prototype.clear=Pu,Me.prototype.delete=ku,Me.prototype.get=Hu,Me.prototype.has=Mu,Me.prototype.set=Ou;function Lo(e,t){var n=D(e),o=!n&&Lt(e),a=!n&&!o&&mt(e),u=!n&&!o&&!a&&Ut(e),p=n||o||a||u,c=p?Br(e.length,qs):[],f=c.length;for(var x in e)(t||G.call(e,x))&&!(p&&(x=="length"||a&&(x=="offset"||x=="parent")||u&&(x=="buffer"||x=="byteLength"||x=="byteOffset")||et(x,f)))&&c.push(x);return c}function Fo(e){var t=e.length;return t?e[qr(0,t-1)]:i}function Nu(e,t){return Qn(de(e),St(t,0,e.length))}function Wu(e){return Qn(de(e))}function Or(e,t,n){(n!==i&&!Oe(e[t],n)||n===i&&!(t in e))&&Ze(e,t,n)}function on(e,t,n){var o=e[t];(!(G.call(e,t)&&Oe(o,n))||n===i&&!(t in e))&&Ze(e,t,n)}function Nn(e,t){for(var n=e.length;n--;)if(Oe(e[n][0],t))return n;return-1}function zu(e,t,n,o){return pt(e,function(a,u,p){t(o,a,n(a),p)}),o}function Ao(e,t){return e&&Ge(t,re(t),e)}function Uu(e,t){return e&&Ge(t,me(t),e)}function Ze(e,t,n){t=="__proto__"&&Dn?Dn(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Nr(e,t){for(var n=-1,o=t.length,a=g(o),u=e==null;++n<o;)a[n]=u?i:bi(e,t[n]);return a}function St(e,t,n){return e===e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function Ee(e,t,n,o,a,u){var p,c=t&ee,f=t&he,x=t&U;if(n&&(p=a?n(e,o,a,u):n(e)),p!==i)return p;if(!J(e))return e;var S=D(e);if(S){if(p=Ep(e),!c)return de(e,p)}else{var C=le(e),I=C==yn||C==Ti;if(mt(e))return Qo(e,c);if(C==qe||C==At||I&&!a){if(p=f||I?{}:ya(e),!c)return f?bp(e,Uu(p,e)):vp(e,Ao(p,e))}else{if(!Y[C])return a?e:{};p=Bp(e,C,c)}}u||(u=new Me);var A=u.get(e);if(A)return A;u.set(e,p),Va(e)?e.forEach(function(B){p.add(Ee(B,t,n,B,e,u))}):$a(e)&&e.forEach(function(B,M){p.set(M,Ee(B,t,n,M,e,u))});var E=x?f?oi:ii:f?me:re,k=S?i:E(e);return Fe(k||e,function(B,M){k&&(M=B,B=e[M]),on(p,M,Ee(B,t,n,M,e,u))}),p}function Gu(e){var t=re(e);return function(n){return To(n,e,t)}}function To(e,t,n){var o=n.length;if(e==null)return!o;for(e=K(e);o--;){var a=n[o],u=t[a],p=e[a];if(p===i&&!(a in e)||!u(p))return!1}return!0}function Eo(e,t,n){if(typeof e!="function")throw new Ae(y);return dn(function(){e.apply(i,n)},t)}function an(e,t,n,o){var a=-1,u=Sn,p=!0,c=e.length,f=[],x=t.length;if(!c)return f;n&&(t=X(t,xe(n))),o?(u=Ir,p=!1):t.length>=h&&(u=Qt,p=!1,t=new _t(t));e:for(;++a<c;){var S=e[a],C=n==null?S:n(S);if(S=o||S!==0?S:0,p&&C===C){for(var I=x;I--;)if(t[I]===C)continue e;f.push(S)}else u(t,C,o)||f.push(S)}return f}var pt=ra(Ue),Bo=ra(zr,!0);function $u(e,t){var n=!0;return pt(e,function(o,a,u){return n=!!t(o,a,u),n}),n}function Wn(e,t,n){for(var o=-1,a=e.length;++o<a;){var u=e[o],p=t(u);if(p!=null&&(c===i?p===p&&!Se(p):n(p,c)))var c=p,f=u}return f}function Ku(e,t,n,o){var a=e.length;for(n=P(n),n<0&&(n=-n>a?0:a+n),o=o===i||o>a?a:P(o),o<0&&(o+=a),o=n>o?0:qa(o);n<o;)e[n++]=t;return e}function Ro(e,t){var n=[];return pt(e,function(o,a,u){t(o,a,u)&&n.push(o)}),n}function oe(e,t,n,o,a){var u=-1,p=e.length;for(n||(n=Dp),a||(a=[]);++u<p;){var c=e[u];t>0&&n(c)?t>1?oe(c,t-1,n,o,a):lt(a,c):o||(a[a.length]=c)}return a}var Wr=ia(),Do=ia(!0);function Ue(e,t){return e&&Wr(e,t,re)}function zr(e,t){return e&&Do(e,t,re)}function zn(e,t){return at(t,function(n){return tt(e[n])})}function wt(e,t){t=dt(t,e);for(var n=0,o=t.length;e!=null&&n<o;)e=e[$e(t[n++])];return n&&n==o?e:i}function Po(e,t,n){var o=t(e);return D(e)?o:lt(o,n(e))}function ue(e){return e==null?e===i?xl:vl:bt&&bt in K(e)?Fp(e):Wp(e)}function Ur(e,t){return e>t}function Vu(e,t){return e!=null&&G.call(e,t)}function Yu(e,t){return e!=null&&t in K(e)}function qu(e,t,n){return e>=ae(t,n)&&e<ne(t,n)}function Gr(e,t,n){for(var o=n?Ir:Sn,a=e[0].length,u=e.length,p=u,c=g(u),f=1/0,x=[];p--;){var S=e[p];p&&t&&(S=X(S,xe(t))),f=ae(S.length,f),c[p]=!n&&(t||a>=120&&S.length>=120)?new _t(p&&S):i}S=e[0];var C=-1,I=c[0];e:for(;++C<a&&x.length<f;){var A=S[C],E=t?t(A):A;if(A=n||A!==0?A:0,!(I?Qt(I,E):o(x,E,n))){for(p=u;--p;){var k=c[p];if(!(k?Qt(k,E):o(e[p],E,n)))continue e}I&&I.push(E),x.push(A)}}return x}function Xu(e,t,n,o){return Ue(e,function(a,u,p){t(o,n(a),u,p)}),o}function ln(e,t,n){t=dt(t,e),e=_a(e,t);var o=e==null?e:e[$e(Re(t))];return o==null?i:be(o,e,n)}function ko(e){return Z(e)&&ue(e)==At}function Ju(e){return Z(e)&&ue(e)==Zt}function Zu(e){return Z(e)&&ue(e)==Vt}function sn(e,t,n,o,a){return e===t?!0:e==null||t==null||!Z(e)&&!Z(t)?e!==e&&t!==t:Qu(e,t,n,o,sn,a)}function Qu(e,t,n,o,a,u){var p=D(e),c=D(t),f=p?gn:le(e),x=c?gn:le(t);f=f==At?qe:f,x=x==At?qe:x;var S=f==qe,C=x==qe,I=f==x;if(I&&mt(e)){if(!mt(t))return!1;p=!0,S=!1}if(I&&!S)return u||(u=new Me),p||Ut(e)?ma(e,t,n,o,a,u):Ip(e,t,f,n,o,a,u);if(!(n&Ke)){var A=S&&G.call(e,"__wrapped__"),E=C&&G.call(t,"__wrapped__");if(A||E){var k=A?e.value():e,B=E?t.value():t;return u||(u=new Me),a(k,B,n,o,u)}}return I?(u||(u=new Me),Lp(e,t,n,o,a,u)):!1}function ju(e){return Z(e)&&le(e)==Pe}function $r(e,t,n,o){var a=n.length,u=a,p=!o;if(e==null)return!u;for(e=K(e);a--;){var c=n[a];if(p&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<u;){c=n[a];var f=c[0],x=e[f],S=c[1];if(p&&c[2]){if(x===i&&!(f in e))return!1}else{var C=new Me;if(o)var I=o(x,S,f,e,t,C);if(!(I===i?sn(S,x,Ke|gt,o,C):I))return!1}}return!0}function Ho(e){if(!J(e)||kp(e))return!1;var t=tt(e)?js:Gl;return t.test(It(e))}function ep(e){return Z(e)&&ue(e)==qt}function tp(e){return Z(e)&&le(e)==ke}function np(e){return Z(e)&&ir(e.length)&&!!q[ue(e)]}function Mo(e){return typeof e=="function"?e:e==null?ge:typeof e=="object"?D(e)?Wo(e[0],e[1]):No(e):ol(e)}function Kr(e){if(!cn(e))return ou(e);var t=[];for(var n in K(e))G.call(e,n)&&n!="constructor"&&t.push(n);return t}function rp(e){if(!J(e))return Np(e);var t=cn(e),n=[];for(var o in e)o=="constructor"&&(t||!G.call(e,o))||n.push(o);return n}function Vr(e,t){return e<t}function Oo(e,t){var n=-1,o=fe(e)?g(e.length):[];return pt(e,function(a,u,p){o[++n]=t(a,u,p)}),o}function No(e){var t=li(e);return t.length==1&&t[0][2]?ba(t[0][0],t[0][1]):function(n){return n===e||$r(n,e,t)}}function Wo(e,t){return ui(e)&&va(t)?ba($e(e),t):function(n){var o=bi(n,e);return o===i&&o===t?xi(n,e):sn(t,o,Ke|gt)}}function Un(e,t,n,o,a){e!==t&&Wr(t,function(u,p){if(a||(a=new Me),J(u))ip(e,t,p,n,Un,o,a);else{var c=o?o(ci(e,p),u,p+"",e,t,a):i;c===i&&(c=u),Or(e,p,c)}},me)}function ip(e,t,n,o,a,u,p){var c=ci(e,n),f=ci(t,n),x=p.get(f);if(x){Or(e,n,x);return}var S=u?u(c,f,n+"",e,t,p):i,C=S===i;if(C){var I=D(f),A=!I&&mt(f),E=!I&&!A&&Ut(f);S=f,I||A||E?D(c)?S=c:Q(c)?S=de(c):A?(C=!1,S=Qo(f,!0)):E?(C=!1,S=jo(f,!0)):S=[]:fn(f)||Lt(f)?(S=c,Lt(c)?S=Xa(c):(!J(c)||tt(c))&&(S=ya(f))):C=!1}C&&(p.set(f,S),a(S,f,o,u,p),p.delete(f)),Or(e,n,S)}function zo(e,t){var n=e.length;if(!!n)return t+=t<0?n:0,et(t,n)?e[t]:i}function Uo(e,t,n){t.length?t=X(t,function(u){return D(u)?function(p){return wt(p,u.length===1?u[0]:u)}:u}):t=[ge];var o=-1;t=X(t,xe(T()));var a=Oo(e,function(u,p,c){var f=X(t,function(x){return x(u)});return{criteria:f,index:++o,value:u}});return Bs(a,function(u,p){return yp(u,p,n)})}function op(e,t){return Go(e,t,function(n,o){return xi(e,o)})}function Go(e,t,n){for(var o=-1,a=t.length,u={};++o<a;){var p=t[o],c=wt(e,p);n(c,p)&&un(u,dt(p,e),c)}return u}function ap(e){return function(t){return wt(t,e)}}function Yr(e,t,n,o){var a=o?Es:Bt,u=-1,p=t.length,c=e;for(e===t&&(t=de(t)),n&&(c=X(e,xe(n)));++u<p;)for(var f=0,x=t[u],S=n?n(x):x;(f=a(c,S,f,o))>-1;)c!==e&&Rn.call(c,f,1),Rn.call(e,f,1);return e}function $o(e,t){for(var n=e?t.length:0,o=n-1;n--;){var a=t[n];if(n==o||a!==u){var u=a;et(a)?Rn.call(e,a,1):Zr(e,a)}}return e}function qr(e,t){return e+kn(Co()*(t-e+1))}function lp(e,t,n,o){for(var a=-1,u=ne(Pn((t-e)/(n||1)),0),p=g(u);u--;)p[o?u:++a]=e,e+=n;return p}function Xr(e,t){var n="";if(!e||t<1||t>ot)return n;do t%2&&(n+=e),t=kn(t/2),t&&(e+=e);while(t);return n}function H(e,t){return di(xa(e,t,ge),e+"")}function sp(e){return Fo(Gt(e))}function up(e,t){var n=Gt(e);return Qn(n,St(t,0,n.length))}function un(e,t,n,o){if(!J(e))return e;t=dt(t,e);for(var a=-1,u=t.length,p=u-1,c=e;c!=null&&++a<u;){var f=$e(t[a]),x=n;if(f==="__proto__"||f==="constructor"||f==="prototype")return e;if(a!=p){var S=c[f];x=o?o(S,f,c):i,x===i&&(x=J(S)?S:et(t[a+1])?[]:{})}on(c,f,x),c=c[f]}return e}var Ko=Hn?function(e,t){return Hn.set(e,t),e}:ge,pp=Dn?function(e,t){return Dn(e,"toString",{configurable:!0,enumerable:!1,value:Si(t),writable:!0})}:ge;function cp(e){return Qn(Gt(e))}function Be(e,t,n){var o=-1,a=e.length;t<0&&(t=-t>a?0:a+t),n=n>a?a:n,n<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var u=g(a);++o<a;)u[o]=e[o+t];return u}function dp(e,t){var n;return pt(e,function(o,a,u){return n=t(o,a,u),!n}),!!n}function Gn(e,t,n){var o=0,a=e==null?o:e.length;if(typeof t=="number"&&t===t&&a<=ml){for(;o<a;){var u=o+a>>>1,p=e[u];p!==null&&!Se(p)&&(n?p<=t:p<t)?o=u+1:a=u}return a}return Jr(e,t,ge,n)}function Jr(e,t,n,o){var a=0,u=e==null?0:e.length;if(u===0)return 0;t=n(t);for(var p=t!==t,c=t===null,f=Se(t),x=t===i;a<u;){var S=kn((a+u)/2),C=n(e[S]),I=C!==i,A=C===null,E=C===C,k=Se(C);if(p)var B=o||E;else x?B=E&&(o||I):c?B=E&&I&&(o||!A):f?B=E&&I&&!A&&(o||!k):A||k?B=!1:B=o?C<=t:C<t;B?a=S+1:u=S}return ae(u,fl)}function Vo(e,t){for(var n=-1,o=e.length,a=0,u=[];++n<o;){var p=e[n],c=t?t(p):p;if(!n||!Oe(c,f)){var f=c;u[a++]=p===0?0:p}}return u}function Yo(e){return typeof e=="number"?e:Se(e)?mn:+e}function _e(e){if(typeof e=="string")return e;if(D(e))return X(e,_e)+"";if(Se(e))return Io?Io.call(e):"";var t=e+"";return t=="0"&&1/e==-yt?"-0":t}function ct(e,t,n){var o=-1,a=Sn,u=e.length,p=!0,c=[],f=c;if(n)p=!1,a=Ir;else if(u>=h){var x=t?null:wp(e);if(x)return Cn(x);p=!1,a=Qt,f=new _t}else f=t?[]:c;e:for(;++o<u;){var S=e[o],C=t?t(S):S;if(S=n||S!==0?S:0,p&&C===C){for(var I=f.length;I--;)if(f[I]===C)continue e;t&&f.push(C),c.push(S)}else a(f,C,n)||(f!==c&&f.push(C),c.push(S))}return c}function Zr(e,t){return t=dt(t,e),e=_a(e,t),e==null||delete e[$e(Re(t))]}function qo(e,t,n,o){return un(e,t,n(wt(e,t)),o)}function $n(e,t,n,o){for(var a=e.length,u=o?a:-1;(o?u--:++u<a)&&t(e[u],u,e););return n?Be(e,o?0:u,o?u+1:a):Be(e,o?u+1:0,o?a:u)}function Xo(e,t){var n=e;return n instanceof O&&(n=n.value()),Lr(t,function(o,a){return a.func.apply(a.thisArg,lt([o],a.args))},n)}function Qr(e,t,n){var o=e.length;if(o<2)return o?ct(e[0]):[];for(var a=-1,u=g(o);++a<o;)for(var p=e[a],c=-1;++c<o;)c!=a&&(u[a]=an(u[a]||p,e[c],t,n));return ct(oe(u,1),t,n)}function Jo(e,t,n){for(var o=-1,a=e.length,u=t.length,p={};++o<a;){var c=o<u?t[o]:i;n(p,e[o],c)}return p}function jr(e){return Q(e)?e:[]}function ei(e){return typeof e=="function"?e:ge}function dt(e,t){return D(e)?e:ui(e,t)?[e]:Ia(z(e))}var fp=H;function ft(e,t,n){var o=e.length;return n=n===i?o:n,!t&&n>=o?e:Be(e,t,n)}var Zo=eu||function(e){return ie.clearTimeout(e)};function Qo(e,t){if(t)return e.slice();var n=e.length,o=bo?bo(n):new e.constructor(n);return e.copy(o),o}function ti(e){var t=new e.constructor(e.byteLength);return new En(t).set(new En(e)),t}function mp(e,t){var n=t?ti(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function gp(e){var t=new e.constructor(e.source,Pi.exec(e));return t.lastIndex=e.lastIndex,t}function hp(e){return rn?K(rn.call(e)):{}}function jo(e,t){var n=t?ti(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ea(e,t){if(e!==t){var n=e!==i,o=e===null,a=e===e,u=Se(e),p=t!==i,c=t===null,f=t===t,x=Se(t);if(!c&&!x&&!u&&e>t||u&&p&&f&&!c&&!x||o&&p&&f||!n&&f||!a)return 1;if(!o&&!u&&!x&&e<t||x&&n&&a&&!o&&!u||c&&n&&a||!p&&a||!f)return-1}return 0}function yp(e,t,n){for(var o=-1,a=e.criteria,u=t.criteria,p=a.length,c=n.length;++o<p;){var f=ea(a[o],u[o]);if(f){if(o>=c)return f;var x=n[o];return f*(x=="desc"?-1:1)}}return e.index-t.index}function ta(e,t,n,o){for(var a=-1,u=e.length,p=n.length,c=-1,f=t.length,x=ne(u-p,0),S=g(f+x),C=!o;++c<f;)S[c]=t[c];for(;++a<p;)(C||a<u)&&(S[n[a]]=e[a]);for(;x--;)S[c++]=e[a++];return S}function na(e,t,n,o){for(var a=-1,u=e.length,p=-1,c=n.length,f=-1,x=t.length,S=ne(u-c,0),C=g(S+x),I=!o;++a<S;)C[a]=e[a];for(var A=a;++f<x;)C[A+f]=t[f];for(;++p<c;)(I||a<u)&&(C[A+n[p]]=e[a++]);return C}function de(e,t){var n=-1,o=e.length;for(t||(t=g(o));++n<o;)t[n]=e[n];return t}function Ge(e,t,n,o){var a=!n;n||(n={});for(var u=-1,p=t.length;++u<p;){var c=t[u],f=o?o(n[c],e[c],c,n,e):i;f===i&&(f=e[c]),a?Ze(n,c,f):on(n,c,f)}return n}function vp(e,t){return Ge(e,si(e),t)}function bp(e,t){return Ge(e,ga(e),t)}function Kn(e,t){return function(n,o){var a=D(n)?Cs:zu,u=t?t():{};return a(n,e,T(o,2),u)}}function Nt(e){return H(function(t,n){var o=-1,a=n.length,u=a>1?n[a-1]:i,p=a>2?n[2]:i;for(u=e.length>3&&typeof u=="function"?(a--,u):i,p&&pe(n[0],n[1],p)&&(u=a<3?i:u,a=1),t=K(t);++o<a;){var c=n[o];c&&e(t,c,o,u)}return t})}function ra(e,t){return function(n,o){if(n==null)return n;if(!fe(n))return e(n,o);for(var a=n.length,u=t?a:-1,p=K(n);(t?u--:++u<a)&&o(p[u],u,p)!==!1;);return n}}function ia(e){return function(t,n,o){for(var a=-1,u=K(t),p=o(t),c=p.length;c--;){var f=p[e?c:++a];if(n(u[f],f,u)===!1)break}return t}}function xp(e,t,n){var o=t&se,a=pn(e);function u(){var p=this&&this!==ie&&this instanceof u?a:e;return p.apply(o?n:this,arguments)}return u}function oa(e){return function(t){t=z(t);var n=Rt(t)?He(t):i,o=n?n[0]:t.charAt(0),a=n?ft(n,1).join(""):t.slice(1);return o[e]()+a}}function Wt(e){return function(t){return Lr(rl(nl(t).replace(ps,"")),e,"")}}function pn(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Ot(e.prototype),o=e.apply(n,t);return J(o)?o:n}}function _p(e,t,n){var o=pn(e);function a(){for(var u=arguments.length,p=g(u),c=u,f=zt(a);c--;)p[c]=arguments[c];var x=u<3&&p[0]!==f&&p[u-1]!==f?[]:st(p,f);if(u-=x.length,u<n)return pa(e,t,Vn,a.placeholder,i,p,x,i,i,n-u);var S=this&&this!==ie&&this instanceof a?o:e;return be(S,this,p)}return a}function aa(e){return function(t,n,o){var a=K(t);if(!fe(t)){var u=T(n,3);t=re(t),n=function(c){return u(a[c],c,a)}}var p=e(t,n,o);return p>-1?a[u?t[p]:p]:i}}function la(e){return je(function(t){var n=t.length,o=n,a=Te.prototype.thru;for(e&&t.reverse();o--;){var u=t[o];if(typeof u!="function")throw new Ae(y);if(a&&!p&&Jn(u)=="wrapper")var p=new Te([],!0)}for(o=p?o:n;++o<n;){u=t[o];var c=Jn(u),f=c=="wrapper"?ai(u):i;f&&pi(f[0])&&f[1]==(Ie|ye|ve|it)&&!f[4].length&&f[9]==1?p=p[Jn(f[0])].apply(p,f[3]):p=u.length==1&&pi(u)?p[c]():p.thru(u)}return function(){var x=arguments,S=x[0];if(p&&x.length==1&&D(S))return p.plant(S).value();for(var C=0,I=n?t[C].apply(this,x):S;++C<n;)I=t[C].call(this,I);return I}})}function Vn(e,t,n,o,a,u,p,c,f,x){var S=t&Ie,C=t&se,I=t&We,A=t&(ye|Ve),E=t&Ft,k=I?i:pn(e);function B(){for(var M=arguments.length,N=g(M),we=M;we--;)N[we]=arguments[we];if(A)var ce=zt(B),Ce=Ds(N,ce);if(o&&(N=ta(N,o,a,A)),u&&(N=na(N,u,p,A)),M-=Ce,A&&M<x){var j=st(N,ce);return pa(e,t,Vn,B.placeholder,n,N,j,c,f,x-M)}var Ne=C?n:this,rt=I?Ne[e]:e;return M=N.length,c?N=zp(N,c):E&&M>1&&N.reverse(),S&&f<M&&(N.length=f),this&&this!==ie&&this instanceof B&&(rt=k||pn(rt)),rt.apply(Ne,N)}return B}function sa(e,t){return function(n,o){return Xu(n,e,t(o),{})}}function Yn(e,t){return function(n,o){var a;if(n===i&&o===i)return t;if(n!==i&&(a=n),o!==i){if(a===i)return o;typeof n=="string"||typeof o=="string"?(n=_e(n),o=_e(o)):(n=Yo(n),o=Yo(o)),a=e(n,o)}return a}}function ni(e){return je(function(t){return t=X(t,xe(T())),H(function(n){var o=this;return e(t,function(a){return be(a,o,n)})})})}function qn(e,t){t=t===i?" ":_e(t);var n=t.length;if(n<2)return n?Xr(t,e):t;var o=Xr(t,Pn(e/Dt(t)));return Rt(t)?ft(He(o),0,e).join(""):o.slice(0,e)}function Sp(e,t,n,o){var a=t&se,u=pn(e);function p(){for(var c=-1,f=arguments.length,x=-1,S=o.length,C=g(S+f),I=this&&this!==ie&&this instanceof p?u:e;++x<S;)C[x]=o[x];for(;f--;)C[x++]=arguments[++c];return be(I,a?n:this,C)}return p}function ua(e){return function(t,n,o){return o&&typeof o!="number"&&pe(t,n,o)&&(n=o=i),t=nt(t),n===i?(n=t,t=0):n=nt(n),o=o===i?t<n?1:-1:nt(o),lp(t,n,o,e)}}function Xn(e){return function(t,n){return typeof t=="string"&&typeof n=="string"||(t=De(t),n=De(n)),e(t,n)}}function pa(e,t,n,o,a,u,p,c,f,x){var S=t&ye,C=S?p:i,I=S?i:p,A=S?u:i,E=S?i:u;t|=S?ve:Ye,t&=~(S?Ye:ve),t&$t||(t&=~(se|We));var k=[e,t,a,A,C,E,I,c,f,x],B=n.apply(i,k);return pi(e)&&Sa(B,k),B.placeholder=o,wa(B,e,t)}function ri(e){var t=te[e];return function(n,o){if(n=De(n),o=o==null?0:ae(P(o),292),o&&wo(n)){var a=(z(n)+"e").split("e"),u=t(a[0]+"e"+(+a[1]+o));return a=(z(u)+"e").split("e"),+(a[0]+"e"+(+a[1]-o))}return t(n)}}var wp=Ht&&1/Cn(new Ht([,-0]))[1]==yt?function(e){return new Ht(e)}:Ii;function ca(e){return function(t){var n=le(t);return n==Pe?Dr(t):n==ke?Ws(t):Rs(t,e(t))}}function Qe(e,t,n,o,a,u,p,c){var f=t&We;if(!f&&typeof e!="function")throw new Ae(y);var x=o?o.length:0;if(x||(t&=~(ve|Ye),o=a=i),p=p===i?p:ne(P(p),0),c=c===i?c:P(c),x-=a?a.length:0,t&Ye){var S=o,C=a;o=a=i}var I=f?i:ai(e),A=[e,t,n,o,a,S,C,u,p,c];if(I&&Op(A,I),e=A[0],t=A[1],n=A[2],o=A[3],a=A[4],c=A[9]=A[9]===i?f?0:e.length:ne(A[9]-x,0),!c&&t&(ye|Ve)&&(t&=~(ye|Ve)),!t||t==se)var E=xp(e,t,n);else t==ye||t==Ve?E=_p(e,t,c):(t==ve||t==(se|ve))&&!a.length?E=Sp(e,t,n,o):E=Vn.apply(i,A);var k=I?Ko:Sa;return wa(k(E,A),e,t)}function da(e,t,n,o){return e===i||Oe(e,kt[n])&&!G.call(o,n)?t:e}function fa(e,t,n,o,a,u){return J(e)&&J(t)&&(u.set(t,e),Un(e,t,i,fa,u),u.delete(t)),e}function Cp(e){return fn(e)?i:e}function ma(e,t,n,o,a,u){var p=n&Ke,c=e.length,f=t.length;if(c!=f&&!(p&&f>c))return!1;var x=u.get(e),S=u.get(t);if(x&&S)return x==t&&S==e;var C=-1,I=!0,A=n&gt?new _t:i;for(u.set(e,t),u.set(t,e);++C<c;){var E=e[C],k=t[C];if(o)var B=p?o(k,E,C,t,e,u):o(E,k,C,e,t,u);if(B!==i){if(B)continue;I=!1;break}if(A){if(!Fr(t,function(M,N){if(!Qt(A,N)&&(E===M||a(E,M,n,o,u)))return A.push(N)})){I=!1;break}}else if(!(E===k||a(E,k,n,o,u))){I=!1;break}}return u.delete(e),u.delete(t),I}function Ip(e,t,n,o,a,u,p){switch(n){case Tt:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Zt:return!(e.byteLength!=t.byteLength||!u(new En(e),new En(t)));case Kt:case Vt:case Yt:return Oe(+e,+t);case hn:return e.name==t.name&&e.message==t.message;case qt:case Xt:return e==t+"";case Pe:var c=Dr;case ke:var f=o&Ke;if(c||(c=Cn),e.size!=t.size&&!f)return!1;var x=p.get(e);if(x)return x==t;o|=gt,p.set(e,t);var S=ma(c(e),c(t),o,a,u,p);return p.delete(e),S;case vn:if(rn)return rn.call(e)==rn.call(t)}return!1}function Lp(e,t,n,o,a,u){var p=n&Ke,c=ii(e),f=c.length,x=ii(t),S=x.length;if(f!=S&&!p)return!1;for(var C=f;C--;){var I=c[C];if(!(p?I in t:G.call(t,I)))return!1}var A=u.get(e),E=u.get(t);if(A&&E)return A==t&&E==e;var k=!0;u.set(e,t),u.set(t,e);for(var B=p;++C<f;){I=c[C];var M=e[I],N=t[I];if(o)var we=p?o(N,M,I,t,e,u):o(M,N,I,e,t,u);if(!(we===i?M===N||a(M,N,n,o,u):we)){k=!1;break}B||(B=I=="constructor")}if(k&&!B){var ce=e.constructor,Ce=t.constructor;ce!=Ce&&"constructor"in e&&"constructor"in t&&!(typeof ce=="function"&&ce instanceof ce&&typeof Ce=="function"&&Ce instanceof Ce)&&(k=!1)}return u.delete(e),u.delete(t),k}function je(e){return di(xa(e,i,Ta),e+"")}function ii(e){return Po(e,re,si)}function oi(e){return Po(e,me,ga)}var ai=Hn?function(e){return Hn.get(e)}:Ii;function Jn(e){for(var t=e.name+"",n=Mt[t],o=G.call(Mt,t)?n.length:0;o--;){var a=n[o],u=a.func;if(u==null||u==e)return a.name}return t}function zt(e){var t=G.call(l,"placeholder")?l:e;return t.placeholder}function T(){var e=l.iteratee||wi;return e=e===wi?Mo:e,arguments.length?e(arguments[0],arguments[1]):e}function Zn(e,t){var n=e.__data__;return Pp(t)?n[typeof t=="string"?"string":"hash"]:n.map}function li(e){for(var t=re(e),n=t.length;n--;){var o=t[n],a=e[o];t[n]=[o,a,va(a)]}return t}function Ct(e,t){var n=Ms(e,t);return Ho(n)?n:i}function Fp(e){var t=G.call(e,bt),n=e[bt];try{e[bt]=i;var o=!0}catch{}var a=An.call(e);return o&&(t?e[bt]=n:delete e[bt]),a}var si=kr?function(e){return e==null?[]:(e=K(e),at(kr(e),function(t){return _o.call(e,t)}))}:Li,ga=kr?function(e){for(var t=[];e;)lt(t,si(e)),e=Bn(e);return t}:Li,le=ue;(Hr&&le(new Hr(new ArrayBuffer(1)))!=Tt||en&&le(new en)!=Pe||Mr&&le(Mr.resolve())!=Ei||Ht&&le(new Ht)!=ke||tn&&le(new tn)!=Jt)&&(le=function(e){var t=ue(e),n=t==qe?e.constructor:i,o=n?It(n):"";if(o)switch(o){case uu:return Tt;case pu:return Pe;case cu:return Ei;case du:return ke;case fu:return Jt}return t});function Ap(e,t,n){for(var o=-1,a=n.length;++o<a;){var u=n[o],p=u.size;switch(u.type){case"drop":e+=p;break;case"dropRight":t-=p;break;case"take":t=ae(t,e+p);break;case"takeRight":e=ne(e,t-p);break}}return{start:e,end:t}}function Tp(e){var t=e.match(kl);return t?t[1].split(Hl):[]}function ha(e,t,n){t=dt(t,e);for(var o=-1,a=t.length,u=!1;++o<a;){var p=$e(t[o]);if(!(u=e!=null&&n(e,p)))break;e=e[p]}return u||++o!=a?u:(a=e==null?0:e.length,!!a&&ir(a)&&et(p,a)&&(D(e)||Lt(e)))}function Ep(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&G.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function ya(e){return typeof e.constructor=="function"&&!cn(e)?Ot(Bn(e)):{}}function Bp(e,t,n){var o=e.constructor;switch(t){case Zt:return ti(e);case Kt:case Vt:return new o(+e);case Tt:return mp(e,n);case lr:case sr:case ur:case pr:case cr:case dr:case fr:case mr:case gr:return jo(e,n);case Pe:return new o;case Yt:case Xt:return new o(e);case qt:return gp(e);case ke:return new o;case vn:return hp(e)}}function Rp(e,t){var n=t.length;if(!n)return e;var o=n-1;return t[o]=(n>1?"& ":"")+t[o],t=t.join(n>2?", ":" "),e.replace(Pl,`{
9
9
  /* [wrapped with `+t+`] */
10
- `)}function Dp(e){return D(e)||Lt(e)||!!(So&&e&&e[So])}function et(e,t){var n=typeof e;return t=t==null?ot:t,!!t&&(n=="number"||n!="symbol"&&Kl.test(e))&&e>-1&&e%1==0&&e<t}function pe(e,t,n){if(!X(n))return!1;var o=typeof t;return(o=="number"?fe(n)&&et(t,n.length):o=="string"&&t in n)?Oe(n[t],e):!1}function ui(e,t){if(D(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Se(e)?!0:El.test(e)||!Tl.test(e)||t!=null&&e in V(t)}function Pp(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function pi(e){var t=Xn(e),n=l[t];if(typeof n!="function"||!(t in O.prototype))return!1;if(e===n)return!0;var o=ai(n);return!!o&&e===o[0]}function kp(e){return!!vo&&vo in e}var Hp=Ln?tt:Fi;function cn(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||kt;return e===n}function va(e){return e===e&&!X(e)}function ba(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==i||e in V(n))}}function Mp(e){var t=nr(e,function(o){return n.size===z&&n.clear(),o}),n=t.cache;return t}function Op(e,t){var n=e[1],o=t[1],a=n|o,u=a<(se|We|Ie),p=o==Ie&&n==ye||o==Ie&&n==it&&e[7].length<=t[8]||o==(Ie|it)&&t[7].length<=t[8]&&n==ye;if(!(u||p))return e;o&se&&(e[2]=t[2],a|=n&se?0:$t);var c=t[3];if(c){var f=e[3];e[3]=f?ta(f,c,t[4]):c,e[4]=f?st(e[3],W):t[4]}return c=t[5],c&&(f=e[5],e[5]=f?na(f,c,t[6]):c,e[6]=f?st(e[5],W):t[6]),c=t[7],c&&(e[7]=c),o&Ie&&(e[8]=e[8]==null?t[8]:ae(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=a,e}function Np(e){var t=[];if(e!=null)for(var n in V(e))t.push(n);return t}function Wp(e){return An.call(e)}function xa(e,t,n){return t=ne(t===i?e.length-1:t,0),function(){for(var o=arguments,a=-1,u=ne(o.length-t,0),p=h(u);++a<u;)p[a]=o[t+a];a=-1;for(var c=h(t+1);++a<t;)c[a]=o[a];return c[t]=n(p),be(e,this,c)}}function _a(e,t){return t.length<2?e:Ct(e,Be(t,0,-1))}function zp(e,t){for(var n=e.length,o=ae(t.length,n),a=de(e);o--;){var u=t[o];e[o]=et(u,n)?a[u]:i}return e}function ci(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Sa=wa(Ko),dn=nu||function(e,t){return ie.setTimeout(e,t)},di=wa(pp);function Ca(e,t,n){var o=t+"";return di(e,Rp(o,Up(Tp(o),n)))}function wa(e){var t=0,n=0;return function(){var o=au(),a=ul-(o-n);if(n=o,a>0){if(++t>=sl)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Qn(e,t){var n=-1,o=e.length,a=o-1;for(t=t===i?o:t;++n<t;){var u=qr(n,a),p=e[u];e[u]=e[n],e[n]=p}return e.length=t,e}var Ia=Mp(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Bl,function(n,o,a,u){t.push(a?u.replace(Nl,"$1"):o||n)}),t});function $e(e){if(typeof e=="string"||Se(e))return e;var t=e+"";return t=="0"&&1/e==-yt?"-0":t}function It(e){if(e!=null){try{return Fn.call(e)}catch{}try{return e+""}catch{}}return""}function Up(e,t){return Fe(gl,function(n){var o="_."+n[0];t&n[1]&&!Sn(e,o)&&e.push(o)}),e.sort()}function La(e){if(e instanceof O)return e.clone();var t=new Te(e.__wrapped__,e.__chain__);return t.__actions__=de(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Gp(e,t,n){(n?pe(e,t,n):t===i)?t=1:t=ne(P(t),0);var o=e==null?0:e.length;if(!o||t<1)return[];for(var a=0,u=0,p=h(Pn(o/t));a<o;)p[u++]=Be(e,a,a+=t);return p}function $p(e){for(var t=-1,n=e==null?0:e.length,o=0,a=[];++t<n;){var u=e[t];u&&(a[o++]=u)}return a}function Kp(){var e=arguments.length;if(!e)return[];for(var t=h(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];return lt(D(n)?de(n):[n],oe(t,1))}var Vp=H(function(e,t){return j(e)?an(e,oe(t,1,j,!0)):[]}),Yp=H(function(e,t){var n=Re(t);return j(n)&&(n=i),j(e)?an(e,oe(t,1,j,!0),T(n,2)):[]}),qp=H(function(e,t){var n=Re(t);return j(n)&&(n=i),j(e)?an(e,oe(t,1,j,!0),i,n):[]});function Jp(e,t,n){var o=e==null?0:e.length;return o?(t=n||t===i?1:P(t),Be(e,t<0?0:t,o)):[]}function Xp(e,t,n){var o=e==null?0:e.length;return o?(t=n||t===i?1:P(t),t=o-t,Be(e,0,t<0?0:t)):[]}function Zp(e,t){return e&&e.length?$n(e,T(t,3),!0,!0):[]}function Qp(e,t){return e&&e.length?$n(e,T(t,3),!0):[]}function jp(e,t,n,o){var a=e==null?0:e.length;return a?(n&&typeof n!="number"&&pe(e,t,n)&&(n=0,o=a),Ku(e,t,n,o)):[]}function Fa(e,t,n){var o=e==null?0:e.length;if(!o)return-1;var a=n==null?0:P(n);return a<0&&(a=ne(o+a,0)),Cn(e,T(t,3),a)}function Aa(e,t,n){var o=e==null?0:e.length;if(!o)return-1;var a=o-1;return n!==i&&(a=P(n),a=n<0?ne(o+a,0):ae(a,o-1)),Cn(e,T(t,3),a,!0)}function Ta(e){var t=e==null?0:e.length;return t?oe(e,1):[]}function ec(e){var t=e==null?0:e.length;return t?oe(e,yt):[]}function tc(e,t){var n=e==null?0:e.length;return n?(t=t===i?1:P(t),oe(e,t)):[]}function nc(e){for(var t=-1,n=e==null?0:e.length,o={};++t<n;){var a=e[t];o[a[0]]=a[1]}return o}function Ea(e){return e&&e.length?e[0]:i}function rc(e,t,n){var o=e==null?0:e.length;if(!o)return-1;var a=n==null?0:P(n);return a<0&&(a=ne(o+a,0)),Bt(e,t,a)}function ic(e){var t=e==null?0:e.length;return t?Be(e,0,-1):[]}var oc=H(function(e){var t=J(e,jr);return t.length&&t[0]===e[0]?Gr(t):[]}),ac=H(function(e){var t=Re(e),n=J(e,jr);return t===Re(n)?t=i:n.pop(),n.length&&n[0]===e[0]?Gr(n,T(t,2)):[]}),lc=H(function(e){var t=Re(e),n=J(e,jr);return t=typeof t=="function"?t:i,t&&n.pop(),n.length&&n[0]===e[0]?Gr(n,i,t):[]});function sc(e,t){return e==null?"":iu.call(e,t)}function Re(e){var t=e==null?0:e.length;return t?e[t-1]:i}function uc(e,t,n){var o=e==null?0:e.length;if(!o)return-1;var a=o;return n!==i&&(a=P(n),a=a<0?ne(o+a,0):ae(a,o-1)),t===t?Us(e,t,a):Cn(e,uo,a,!0)}function pc(e,t){return e&&e.length?zo(e,P(t)):i}var cc=H(Ba);function Ba(e,t){return e&&e.length&&t&&t.length?Yr(e,t):e}function dc(e,t,n){return e&&e.length&&t&&t.length?Yr(e,t,T(n,2)):e}function fc(e,t,n){return e&&e.length&&t&&t.length?Yr(e,t,i,n):e}var mc=je(function(e,t){var n=e==null?0:e.length,o=Nr(e,t);return $o(e,J(t,function(a){return et(a,n)?+a:a}).sort(ea)),o});function gc(e,t){var n=[];if(!(e&&e.length))return n;var o=-1,a=[],u=e.length;for(t=T(t,3);++o<u;){var p=e[o];t(p,o,e)&&(n.push(p),a.push(o))}return $o(e,a),n}function fi(e){return e==null?e:su.call(e)}function hc(e,t,n){var o=e==null?0:e.length;return o?(n&&typeof n!="number"&&pe(e,t,n)?(t=0,n=o):(t=t==null?0:P(t),n=n===i?o:P(n)),Be(e,t,n)):[]}function yc(e,t){return Gn(e,t)}function vc(e,t,n){return Xr(e,t,T(n,2))}function bc(e,t){var n=e==null?0:e.length;if(n){var o=Gn(e,t);if(o<n&&Oe(e[o],t))return o}return-1}function xc(e,t){return Gn(e,t,!0)}function _c(e,t,n){return Xr(e,t,T(n,2),!0)}function Sc(e,t){var n=e==null?0:e.length;if(n){var o=Gn(e,t,!0)-1;if(Oe(e[o],t))return o}return-1}function Cc(e){return e&&e.length?Vo(e):[]}function wc(e,t){return e&&e.length?Vo(e,T(t,2)):[]}function Ic(e){var t=e==null?0:e.length;return t?Be(e,1,t):[]}function Lc(e,t,n){return e&&e.length?(t=n||t===i?1:P(t),Be(e,0,t<0?0:t)):[]}function Fc(e,t,n){var o=e==null?0:e.length;return o?(t=n||t===i?1:P(t),t=o-t,Be(e,t<0?0:t,o)):[]}function Ac(e,t){return e&&e.length?$n(e,T(t,3),!1,!0):[]}function Tc(e,t){return e&&e.length?$n(e,T(t,3)):[]}var Ec=H(function(e){return ct(oe(e,1,j,!0))}),Bc=H(function(e){var t=Re(e);return j(t)&&(t=i),ct(oe(e,1,j,!0),T(t,2))}),Rc=H(function(e){var t=Re(e);return t=typeof t=="function"?t:i,ct(oe(e,1,j,!0),i,t)});function Dc(e){return e&&e.length?ct(e):[]}function Pc(e,t){return e&&e.length?ct(e,T(t,2)):[]}function kc(e,t){return t=typeof t=="function"?t:i,e&&e.length?ct(e,i,t):[]}function mi(e){if(!(e&&e.length))return[];var t=0;return e=at(e,function(n){if(j(n))return t=ne(n.length,t),!0}),Br(t,function(n){return J(e,Ar(n))})}function Ra(e,t){if(!(e&&e.length))return[];var n=mi(e);return t==null?n:J(n,function(o){return be(t,i,o)})}var Hc=H(function(e,t){return j(e)?an(e,t):[]}),Mc=H(function(e){return Qr(at(e,j))}),Oc=H(function(e){var t=Re(e);return j(t)&&(t=i),Qr(at(e,j),T(t,2))}),Nc=H(function(e){var t=Re(e);return t=typeof t=="function"?t:i,Qr(at(e,j),i,t)}),Wc=H(mi);function zc(e,t){return Xo(e||[],t||[],on)}function Uc(e,t){return Xo(e||[],t||[],un)}var Gc=H(function(e){var t=e.length,n=t>1?e[t-1]:i;return n=typeof n=="function"?(e.pop(),n):i,Ra(e,n)});function Da(e){var t=l(e);return t.__chain__=!0,t}function $c(e,t){return t(e),e}function jn(e,t){return t(e)}var Kc=je(function(e){var t=e.length,n=t?e[0]:0,o=this.__wrapped__,a=function(u){return Nr(u,e)};return t>1||this.__actions__.length||!(o instanceof O)||!et(n)?this.thru(a):(o=o.slice(n,+n+(t?1:0)),o.__actions__.push({func:jn,args:[a],thisArg:i}),new Te(o,this.__chain__).thru(function(u){return t&&!u.length&&u.push(i),u}))});function Vc(){return Da(this)}function Yc(){return new Te(this.value(),this.__chain__)}function qc(){this.__values__===i&&(this.__values__=Ya(this.value()));var e=this.__index__>=this.__values__.length,t=e?i:this.__values__[this.__index__++];return{done:e,value:t}}function Jc(){return this}function Xc(e){for(var t,n=this;n instanceof On;){var o=La(n);o.__index__=0,o.__values__=i,t?a.__wrapped__=o:t=o;var a=o;n=n.__wrapped__}return a.__wrapped__=e,t}function Zc(){var e=this.__wrapped__;if(e instanceof O){var t=e;return this.__actions__.length&&(t=new O(this)),t=t.reverse(),t.__actions__.push({func:jn,args:[fi],thisArg:i}),new Te(t,this.__chain__)}return this.thru(fi)}function Qc(){return Jo(this.__wrapped__,this.__actions__)}var jc=Kn(function(e,t,n){K.call(e,n)?++e[n]:Ze(e,n,1)});function ed(e,t,n){var o=D(e)?lo:$u;return n&&pe(e,t,n)&&(t=i),o(e,T(t,3))}function td(e,t){var n=D(e)?at:Ro;return n(e,T(t,3))}var nd=aa(Fa),rd=aa(Aa);function id(e,t){return oe(er(e,t),1)}function od(e,t){return oe(er(e,t),yt)}function ad(e,t,n){return n=n===i?1:P(n),oe(er(e,t),n)}function Pa(e,t){var n=D(e)?Fe:pt;return n(e,T(t,3))}function ka(e,t){var n=D(e)?Is:Bo;return n(e,T(t,3))}var ld=Kn(function(e,t,n){K.call(e,n)?e[n].push(t):Ze(e,n,[t])});function sd(e,t,n,o){e=fe(e)?e:Gt(e),n=n&&!o?P(n):0;var a=e.length;return n<0&&(n=ne(a+n,0)),or(e)?n<=a&&e.indexOf(t,n)>-1:!!a&&Bt(e,t,n)>-1}var ud=H(function(e,t,n){var o=-1,a=typeof t=="function",u=fe(e)?h(e.length):[];return pt(e,function(p){u[++o]=a?be(t,p,n):ln(p,t,n)}),u}),pd=Kn(function(e,t,n){Ze(e,n,t)});function er(e,t){var n=D(e)?J:Oo;return n(e,T(t,3))}function cd(e,t,n,o){return e==null?[]:(D(t)||(t=t==null?[]:[t]),n=o?i:n,D(n)||(n=n==null?[]:[n]),Uo(e,t,n))}var dd=Kn(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});function fd(e,t,n){var o=D(e)?Lr:co,a=arguments.length<3;return o(e,T(t,4),n,a,pt)}function md(e,t,n){var o=D(e)?Ls:co,a=arguments.length<3;return o(e,T(t,4),n,a,Bo)}function gd(e,t){var n=D(e)?at:Ro;return n(e,rr(T(t,3)))}function hd(e){var t=D(e)?Fo:sp;return t(e)}function yd(e,t,n){(n?pe(e,t,n):t===i)?t=1:t=P(t);var o=D(e)?Nu:up;return o(e,t)}function vd(e){var t=D(e)?Wu:cp;return t(e)}function bd(e){if(e==null)return 0;if(fe(e))return or(e)?Dt(e):e.length;var t=le(e);return t==Pe||t==ke?e.size:Kr(e).length}function xd(e,t,n){var o=D(e)?Fr:dp;return n&&pe(e,t,n)&&(t=i),o(e,T(t,3))}var _d=H(function(e,t){if(e==null)return[];var n=t.length;return n>1&&pe(e,t[0],t[1])?t=[]:n>2&&pe(t[0],t[1],t[2])&&(t=[t[0]]),Uo(e,oe(t,1),[])}),tr=tu||function(){return ie.Date.now()};function Sd(e,t){if(typeof t!="function")throw new Ae(y);return e=P(e),function(){if(--e<1)return t.apply(this,arguments)}}function Ha(e,t,n){return t=n?i:t,t=e&&t==null?e.length:t,Qe(e,Ie,i,i,i,i,t)}function Ma(e,t){var n;if(typeof t!="function")throw new Ae(y);return e=P(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var gi=H(function(e,t,n){var o=se;if(n.length){var a=st(n,zt(gi));o|=ve}return Qe(e,o,t,n,a)}),Oa=H(function(e,t,n){var o=se|We;if(n.length){var a=st(n,zt(Oa));o|=ve}return Qe(t,o,e,n,a)});function Na(e,t,n){t=n?i:t;var o=Qe(e,ye,i,i,i,i,i,t);return o.placeholder=Na.placeholder,o}function Wa(e,t,n){t=n?i:t;var o=Qe(e,Ve,i,i,i,i,i,t);return o.placeholder=Wa.placeholder,o}function za(e,t,n){var o,a,u,p,c,f,x=0,S=!1,w=!1,I=!0;if(typeof e!="function")throw new Ae(y);t=De(t)||0,X(n)&&(S=!!n.leading,w="maxWait"in n,u=w?ne(De(n.maxWait)||0,t):u,I="trailing"in n?!!n.trailing:I);function A(ee){var Ne=o,rt=a;return o=a=i,x=ee,p=e.apply(rt,Ne),p}function E(ee){return x=ee,c=dn(M,t),S?A(ee):p}function k(ee){var Ne=ee-f,rt=ee-x,al=t-Ne;return w?ae(al,u-rt):al}function B(ee){var Ne=ee-f,rt=ee-x;return f===i||Ne>=t||Ne<0||w&&rt>=u}function M(){var ee=tr();if(B(ee))return N(ee);c=dn(M,k(ee))}function N(ee){return c=i,I&&o?A(ee):(o=a=i,p)}function Ce(){c!==i&&Zo(c),x=0,o=f=a=c=i}function ce(){return c===i?p:N(tr())}function we(){var ee=tr(),Ne=B(ee);if(o=arguments,a=this,f=ee,Ne){if(c===i)return E(f);if(w)return Zo(c),c=dn(M,t),A(f)}return c===i&&(c=dn(M,t)),p}return we.cancel=Ce,we.flush=ce,we}var Cd=H(function(e,t){return Eo(e,1,t)}),wd=H(function(e,t,n){return Eo(e,De(t)||0,n)});function Id(e){return Qe(e,Ft)}function nr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Ae(y);var n=function(){var o=arguments,a=t?t.apply(this,o):o[0],u=n.cache;if(u.has(a))return u.get(a);var p=e.apply(this,o);return n.cache=u.set(a,p)||u,p};return n.cache=new(nr.Cache||Xe),n}nr.Cache=Xe;function rr(e){if(typeof e!="function")throw new Ae(y);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Ld(e){return Ma(2,e)}var Fd=fp(function(e,t){t=t.length==1&&D(t[0])?J(t[0],xe(T())):J(oe(t,1),xe(T()));var n=t.length;return H(function(o){for(var a=-1,u=ae(o.length,n);++a<u;)o[a]=t[a].call(this,o[a]);return be(e,this,o)})}),hi=H(function(e,t){var n=st(t,zt(hi));return Qe(e,ve,i,t,n)}),Ua=H(function(e,t){var n=st(t,zt(Ua));return Qe(e,Ye,i,t,n)}),Ad=je(function(e,t){return Qe(e,it,i,i,i,t)});function Td(e,t){if(typeof e!="function")throw new Ae(y);return t=t===i?t:P(t),H(e,t)}function Ed(e,t){if(typeof e!="function")throw new Ae(y);return t=t==null?0:ne(P(t),0),H(function(n){var o=n[t],a=ft(n,0,t);return o&&lt(a,o),be(e,this,a)})}function Bd(e,t,n){var o=!0,a=!0;if(typeof e!="function")throw new Ae(y);return X(n)&&(o="leading"in n?!!n.leading:o,a="trailing"in n?!!n.trailing:a),za(e,t,{leading:o,maxWait:t,trailing:a})}function Rd(e){return Ha(e,1)}function Dd(e,t){return hi(ei(t),e)}function Pd(){if(!arguments.length)return[];var e=arguments[0];return D(e)?e:[e]}function kd(e){return Ee(e,$)}function Hd(e,t){return t=typeof t=="function"?t:i,Ee(e,$,t)}function Md(e){return Ee(e,Q|$)}function Od(e,t){return t=typeof t=="function"?t:i,Ee(e,Q|$,t)}function Nd(e,t){return t==null||To(e,t,re(t))}function Oe(e,t){return e===t||e!==e&&t!==t}var Wd=Jn(Ur),zd=Jn(function(e,t){return e>=t}),Lt=ko(function(){return arguments}())?ko:function(e){return Z(e)&&K.call(e,"callee")&&!_o.call(e,"callee")},D=h.isArray,Ud=to?xe(to):Xu;function fe(e){return e!=null&&ir(e.length)&&!tt(e)}function j(e){return Z(e)&&fe(e)}function Gd(e){return e===!0||e===!1||Z(e)&&ue(e)==Kt}var mt=ru||Fi,$d=no?xe(no):Zu;function Kd(e){return Z(e)&&e.nodeType===1&&!fn(e)}function Vd(e){if(e==null)return!0;if(fe(e)&&(D(e)||typeof e=="string"||typeof e.splice=="function"||mt(e)||Ut(e)||Lt(e)))return!e.length;var t=le(e);if(t==Pe||t==ke)return!e.size;if(cn(e))return!Kr(e).length;for(var n in e)if(K.call(e,n))return!1;return!0}function Yd(e,t){return sn(e,t)}function qd(e,t,n){n=typeof n=="function"?n:i;var o=n?n(e,t):i;return o===i?sn(e,t,i,n):!!o}function yi(e){if(!Z(e))return!1;var t=ue(e);return t==hn||t==yl||typeof e.message=="string"&&typeof e.name=="string"&&!fn(e)}function Jd(e){return typeof e=="number"&&Co(e)}function tt(e){if(!X(e))return!1;var t=ue(e);return t==yn||t==Ti||t==hl||t==bl}function Ga(e){return typeof e=="number"&&e==P(e)}function ir(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ot}function X(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Z(e){return e!=null&&typeof e=="object"}var $a=ro?xe(ro):ju;function Xd(e,t){return e===t||$r(e,t,li(t))}function Zd(e,t,n){return n=typeof n=="function"?n:i,$r(e,t,li(t),n)}function Qd(e){return Ka(e)&&e!=+e}function jd(e){if(Hp(e))throw new R(v);return Ho(e)}function ef(e){return e===null}function tf(e){return e==null}function Ka(e){return typeof e=="number"||Z(e)&&ue(e)==Yt}function fn(e){if(!Z(e)||ue(e)!=qe)return!1;var t=Bn(e);if(t===null)return!0;var n=K.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Fn.call(n)==Zs}var vi=io?xe(io):ep;function nf(e){return Ga(e)&&e>=-ot&&e<=ot}var Va=oo?xe(oo):tp;function or(e){return typeof e=="string"||!D(e)&&Z(e)&&ue(e)==Jt}function Se(e){return typeof e=="symbol"||Z(e)&&ue(e)==vn}var Ut=ao?xe(ao):np;function rf(e){return e===i}function of(e){return Z(e)&&le(e)==Xt}function af(e){return Z(e)&&ue(e)==_l}var lf=Jn(Vr),sf=Jn(function(e,t){return e<=t});function Ya(e){if(!e)return[];if(fe(e))return or(e)?He(e):de(e);if(jt&&e[jt])return Ns(e[jt]());var t=le(e),n=t==Pe?Dr:t==ke?wn:Gt;return n(e)}function nt(e){if(!e)return e===0?e:0;if(e=De(e),e===yt||e===-yt){var t=e<0?-1:1;return t*dl}return e===e?e:0}function P(e){var t=nt(e),n=t%1;return t===t?n?t-n:t:0}function qa(e){return e?St(P(e),0,ze):0}function De(e){if(typeof e=="number")return e;if(Se(e))return mn;if(X(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=X(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=fo(e);var n=Ul.test(e);return n||$l.test(e)?Ss(e.slice(2),n?2:8):zl.test(e)?mn:+e}function Ja(e){return Ge(e,me(e))}function uf(e){return e?St(P(e),-ot,ot):e===0?e:0}function G(e){return e==null?"":_e(e)}var pf=Nt(function(e,t){if(cn(t)||fe(t)){Ge(t,re(t),e);return}for(var n in t)K.call(t,n)&&on(e,n,t[n])}),Xa=Nt(function(e,t){Ge(t,me(t),e)}),ar=Nt(function(e,t,n,o){Ge(t,me(t),e,o)}),cf=Nt(function(e,t,n,o){Ge(t,re(t),e,o)}),df=je(Nr);function ff(e,t){var n=Ot(e);return t==null?n:Ao(n,t)}var mf=H(function(e,t){e=V(e);var n=-1,o=t.length,a=o>2?t[2]:i;for(a&&pe(t[0],t[1],a)&&(o=1);++n<o;)for(var u=t[n],p=me(u),c=-1,f=p.length;++c<f;){var x=p[c],S=e[x];(S===i||Oe(S,kt[x])&&!K.call(e,x))&&(e[x]=u[x])}return e}),gf=H(function(e){return e.push(i,fa),be(Za,i,e)});function hf(e,t){return so(e,T(t,3),Ue)}function yf(e,t){return so(e,T(t,3),zr)}function vf(e,t){return e==null?e:Wr(e,T(t,3),me)}function bf(e,t){return e==null?e:Do(e,T(t,3),me)}function xf(e,t){return e&&Ue(e,T(t,3))}function _f(e,t){return e&&zr(e,T(t,3))}function Sf(e){return e==null?[]:zn(e,re(e))}function Cf(e){return e==null?[]:zn(e,me(e))}function bi(e,t,n){var o=e==null?i:Ct(e,t);return o===i?n:o}function wf(e,t){return e!=null&&ha(e,t,Vu)}function xi(e,t){return e!=null&&ha(e,t,Yu)}var If=sa(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=An.call(t)),e[t]=n},Si(ge)),Lf=sa(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=An.call(t)),K.call(e,t)?e[t].push(n):e[t]=[n]},T),Ff=H(ln);function re(e){return fe(e)?Lo(e):Kr(e)}function me(e){return fe(e)?Lo(e,!0):rp(e)}function Af(e,t){var n={};return t=T(t,3),Ue(e,function(o,a,u){Ze(n,t(o,a,u),o)}),n}function Tf(e,t){var n={};return t=T(t,3),Ue(e,function(o,a,u){Ze(n,a,t(o,a,u))}),n}var Ef=Nt(function(e,t,n){Un(e,t,n)}),Za=Nt(function(e,t,n,o){Un(e,t,n,o)}),Bf=je(function(e,t){var n={};if(e==null)return n;var o=!1;t=J(t,function(u){return u=dt(u,e),o||(o=u.length>1),u}),Ge(e,oi(e),n),o&&(n=Ee(n,Q|he|$,wp));for(var a=t.length;a--;)Zr(n,t[a]);return n});function Rf(e,t){return Qa(e,rr(T(t)))}var Df=je(function(e,t){return e==null?{}:op(e,t)});function Qa(e,t){if(e==null)return{};var n=J(oi(e),function(o){return[o]});return t=T(t),Go(e,n,function(o,a){return t(o,a[0])})}function Pf(e,t,n){t=dt(t,e);var o=-1,a=t.length;for(a||(a=1,e=i);++o<a;){var u=e==null?i:e[$e(t[o])];u===i&&(o=a,u=n),e=tt(u)?u.call(e):u}return e}function kf(e,t,n){return e==null?e:un(e,t,n)}function Hf(e,t,n,o){return o=typeof o=="function"?o:i,e==null?e:un(e,t,n,o)}var ja=ca(re),el=ca(me);function Mf(e,t,n){var o=D(e),a=o||mt(e)||Ut(e);if(t=T(t,4),n==null){var u=e&&e.constructor;a?n=o?new u:[]:X(e)?n=tt(u)?Ot(Bn(e)):{}:n={}}return(a?Fe:Ue)(e,function(p,c,f){return t(n,p,c,f)}),n}function Of(e,t){return e==null?!0:Zr(e,t)}function Nf(e,t,n){return e==null?e:qo(e,t,ei(n))}function Wf(e,t,n,o){return o=typeof o=="function"?o:i,e==null?e:qo(e,t,ei(n),o)}function Gt(e){return e==null?[]:Rr(e,re(e))}function zf(e){return e==null?[]:Rr(e,me(e))}function Uf(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=De(n),n=n===n?n:0),t!==i&&(t=De(t),t=t===t?t:0),St(De(e),t,n)}function Gf(e,t,n){return t=nt(t),n===i?(n=t,t=0):n=nt(n),e=De(e),qu(e,t,n)}function $f(e,t,n){if(n&&typeof n!="boolean"&&pe(e,t,n)&&(t=n=i),n===i&&(typeof t=="boolean"?(n=t,t=i):typeof e=="boolean"&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=nt(e),t===i?(t=e,e=0):t=nt(t)),e>t){var o=e;e=t,t=o}if(n||e%1||t%1){var a=wo();return ae(e+a*(t-e+_s("1e-"+((a+"").length-1))),t)}return qr(e,t)}var Kf=Wt(function(e,t,n){return t=t.toLowerCase(),e+(n?tl(t):t)});function tl(e){return _i(G(e).toLowerCase())}function nl(e){return e=G(e),e&&e.replace(Vl,Ps).replace(cs,"")}function Vf(e,t,n){e=G(e),t=_e(t);var o=e.length;n=n===i?o:St(P(n),0,o);var a=n;return n-=t.length,n>=0&&e.slice(n,a)==t}function Yf(e){return e=G(e),e&&Ll.test(e)?e.replace(Ri,ks):e}function qf(e){return e=G(e),e&&Rl.test(e)?e.replace(hr,"\\$&"):e}var Jf=Wt(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Xf=Wt(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),Zf=oa("toLowerCase");function Qf(e,t,n){e=G(e),t=P(t);var o=t?Dt(e):0;if(!t||o>=t)return e;var a=(t-o)/2;return qn(kn(a),n)+e+qn(Pn(a),n)}function jf(e,t,n){e=G(e),t=P(t);var o=t?Dt(e):0;return t&&o<t?e+qn(t-o,n):e}function em(e,t,n){e=G(e),t=P(t);var o=t?Dt(e):0;return t&&o<t?qn(t-o,n)+e:e}function tm(e,t,n){return n||t==null?t=0:t&&(t=+t),lu(G(e).replace(yr,""),t||0)}function nm(e,t,n){return(n?pe(e,t,n):t===i)?t=1:t=P(t),Jr(G(e),t)}function rm(){var e=arguments,t=G(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var im=Wt(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});function om(e,t,n){return n&&typeof n!="number"&&pe(e,t,n)&&(t=n=i),n=n===i?ze:n>>>0,n?(e=G(e),e&&(typeof t=="string"||t!=null&&!vi(t))&&(t=_e(t),!t&&Rt(e))?ft(He(e),0,n):e.split(t,n)):[]}var am=Wt(function(e,t,n){return e+(n?" ":"")+_i(t)});function lm(e,t,n){return e=G(e),n=n==null?0:St(P(n),0,e.length),t=_e(t),e.slice(n,n+t.length)==t}function sm(e,t,n){var o=l.templateSettings;n&&pe(e,t,n)&&(t=i),e=G(e),t=ar({},t,o,da);var a=ar({},t.imports,o.imports,da),u=re(a),p=Rr(a,u),c,f,x=0,S=t.interpolate||bn,w="__p += '",I=Pr((t.escape||bn).source+"|"+S.source+"|"+(S===Di?Wl:bn).source+"|"+(t.evaluate||bn).source+"|$","g"),A="//# sourceURL="+(K.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++hs+"]")+`
11
- `;e.replace(I,function(B,M,N,Ce,ce,we){return N||(N=Ce),w+=e.slice(x,we).replace(Yl,Hs),M&&(c=!0,w+=`' +
10
+ `)}function Dp(e){return D(e)||Lt(e)||!!(So&&e&&e[So])}function et(e,t){var n=typeof e;return t=t==null?ot:t,!!t&&(n=="number"||n!="symbol"&&Kl.test(e))&&e>-1&&e%1==0&&e<t}function pe(e,t,n){if(!J(n))return!1;var o=typeof t;return(o=="number"?fe(n)&&et(t,n.length):o=="string"&&t in n)?Oe(n[t],e):!1}function ui(e,t){if(D(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Se(e)?!0:El.test(e)||!Tl.test(e)||t!=null&&e in K(t)}function Pp(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function pi(e){var t=Jn(e),n=l[t];if(typeof n!="function"||!(t in O.prototype))return!1;if(e===n)return!0;var o=ai(n);return!!o&&e===o[0]}function kp(e){return!!vo&&vo in e}var Hp=Ln?tt:Fi;function cn(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||kt;return e===n}function va(e){return e===e&&!J(e)}function ba(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==i||e in K(n))}}function Mp(e){var t=nr(e,function(o){return n.size===$&&n.clear(),o}),n=t.cache;return t}function Op(e,t){var n=e[1],o=t[1],a=n|o,u=a<(se|We|Ie),p=o==Ie&&n==ye||o==Ie&&n==it&&e[7].length<=t[8]||o==(Ie|it)&&t[7].length<=t[8]&&n==ye;if(!(u||p))return e;o&se&&(e[2]=t[2],a|=n&se?0:$t);var c=t[3];if(c){var f=e[3];e[3]=f?ta(f,c,t[4]):c,e[4]=f?st(e[3],V):t[4]}return c=t[5],c&&(f=e[5],e[5]=f?na(f,c,t[6]):c,e[6]=f?st(e[5],V):t[6]),c=t[7],c&&(e[7]=c),o&Ie&&(e[8]=e[8]==null?t[8]:ae(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=a,e}function Np(e){var t=[];if(e!=null)for(var n in K(e))t.push(n);return t}function Wp(e){return An.call(e)}function xa(e,t,n){return t=ne(t===i?e.length-1:t,0),function(){for(var o=arguments,a=-1,u=ne(o.length-t,0),p=g(u);++a<u;)p[a]=o[t+a];a=-1;for(var c=g(t+1);++a<t;)c[a]=o[a];return c[t]=n(p),be(e,this,c)}}function _a(e,t){return t.length<2?e:wt(e,Be(t,0,-1))}function zp(e,t){for(var n=e.length,o=ae(t.length,n),a=de(e);o--;){var u=t[o];e[o]=et(u,n)?a[u]:i}return e}function ci(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Sa=Ca(Ko),dn=nu||function(e,t){return ie.setTimeout(e,t)},di=Ca(pp);function wa(e,t,n){var o=t+"";return di(e,Rp(o,Up(Tp(o),n)))}function Ca(e){var t=0,n=0;return function(){var o=au(),a=ul-(o-n);if(n=o,a>0){if(++t>=sl)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Qn(e,t){var n=-1,o=e.length,a=o-1;for(t=t===i?o:t;++n<t;){var u=qr(n,a),p=e[u];e[u]=e[n],e[n]=p}return e.length=t,e}var Ia=Mp(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Bl,function(n,o,a,u){t.push(a?u.replace(Nl,"$1"):o||n)}),t});function $e(e){if(typeof e=="string"||Se(e))return e;var t=e+"";return t=="0"&&1/e==-yt?"-0":t}function It(e){if(e!=null){try{return Fn.call(e)}catch{}try{return e+""}catch{}}return""}function Up(e,t){return Fe(gl,function(n){var o="_."+n[0];t&n[1]&&!Sn(e,o)&&e.push(o)}),e.sort()}function La(e){if(e instanceof O)return e.clone();var t=new Te(e.__wrapped__,e.__chain__);return t.__actions__=de(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Gp(e,t,n){(n?pe(e,t,n):t===i)?t=1:t=ne(P(t),0);var o=e==null?0:e.length;if(!o||t<1)return[];for(var a=0,u=0,p=g(Pn(o/t));a<o;)p[u++]=Be(e,a,a+=t);return p}function $p(e){for(var t=-1,n=e==null?0:e.length,o=0,a=[];++t<n;){var u=e[t];u&&(a[o++]=u)}return a}function Kp(){var e=arguments.length;if(!e)return[];for(var t=g(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];return lt(D(n)?de(n):[n],oe(t,1))}var Vp=H(function(e,t){return Q(e)?an(e,oe(t,1,Q,!0)):[]}),Yp=H(function(e,t){var n=Re(t);return Q(n)&&(n=i),Q(e)?an(e,oe(t,1,Q,!0),T(n,2)):[]}),qp=H(function(e,t){var n=Re(t);return Q(n)&&(n=i),Q(e)?an(e,oe(t,1,Q,!0),i,n):[]});function Xp(e,t,n){var o=e==null?0:e.length;return o?(t=n||t===i?1:P(t),Be(e,t<0?0:t,o)):[]}function Jp(e,t,n){var o=e==null?0:e.length;return o?(t=n||t===i?1:P(t),t=o-t,Be(e,0,t<0?0:t)):[]}function Zp(e,t){return e&&e.length?$n(e,T(t,3),!0,!0):[]}function Qp(e,t){return e&&e.length?$n(e,T(t,3),!0):[]}function jp(e,t,n,o){var a=e==null?0:e.length;return a?(n&&typeof n!="number"&&pe(e,t,n)&&(n=0,o=a),Ku(e,t,n,o)):[]}function Fa(e,t,n){var o=e==null?0:e.length;if(!o)return-1;var a=n==null?0:P(n);return a<0&&(a=ne(o+a,0)),wn(e,T(t,3),a)}function Aa(e,t,n){var o=e==null?0:e.length;if(!o)return-1;var a=o-1;return n!==i&&(a=P(n),a=n<0?ne(o+a,0):ae(a,o-1)),wn(e,T(t,3),a,!0)}function Ta(e){var t=e==null?0:e.length;return t?oe(e,1):[]}function ec(e){var t=e==null?0:e.length;return t?oe(e,yt):[]}function tc(e,t){var n=e==null?0:e.length;return n?(t=t===i?1:P(t),oe(e,t)):[]}function nc(e){for(var t=-1,n=e==null?0:e.length,o={};++t<n;){var a=e[t];o[a[0]]=a[1]}return o}function Ea(e){return e&&e.length?e[0]:i}function rc(e,t,n){var o=e==null?0:e.length;if(!o)return-1;var a=n==null?0:P(n);return a<0&&(a=ne(o+a,0)),Bt(e,t,a)}function ic(e){var t=e==null?0:e.length;return t?Be(e,0,-1):[]}var oc=H(function(e){var t=X(e,jr);return t.length&&t[0]===e[0]?Gr(t):[]}),ac=H(function(e){var t=Re(e),n=X(e,jr);return t===Re(n)?t=i:n.pop(),n.length&&n[0]===e[0]?Gr(n,T(t,2)):[]}),lc=H(function(e){var t=Re(e),n=X(e,jr);return t=typeof t=="function"?t:i,t&&n.pop(),n.length&&n[0]===e[0]?Gr(n,i,t):[]});function sc(e,t){return e==null?"":iu.call(e,t)}function Re(e){var t=e==null?0:e.length;return t?e[t-1]:i}function uc(e,t,n){var o=e==null?0:e.length;if(!o)return-1;var a=o;return n!==i&&(a=P(n),a=a<0?ne(o+a,0):ae(a,o-1)),t===t?Us(e,t,a):wn(e,uo,a,!0)}function pc(e,t){return e&&e.length?zo(e,P(t)):i}var cc=H(Ba);function Ba(e,t){return e&&e.length&&t&&t.length?Yr(e,t):e}function dc(e,t,n){return e&&e.length&&t&&t.length?Yr(e,t,T(n,2)):e}function fc(e,t,n){return e&&e.length&&t&&t.length?Yr(e,t,i,n):e}var mc=je(function(e,t){var n=e==null?0:e.length,o=Nr(e,t);return $o(e,X(t,function(a){return et(a,n)?+a:a}).sort(ea)),o});function gc(e,t){var n=[];if(!(e&&e.length))return n;var o=-1,a=[],u=e.length;for(t=T(t,3);++o<u;){var p=e[o];t(p,o,e)&&(n.push(p),a.push(o))}return $o(e,a),n}function fi(e){return e==null?e:su.call(e)}function hc(e,t,n){var o=e==null?0:e.length;return o?(n&&typeof n!="number"&&pe(e,t,n)?(t=0,n=o):(t=t==null?0:P(t),n=n===i?o:P(n)),Be(e,t,n)):[]}function yc(e,t){return Gn(e,t)}function vc(e,t,n){return Jr(e,t,T(n,2))}function bc(e,t){var n=e==null?0:e.length;if(n){var o=Gn(e,t);if(o<n&&Oe(e[o],t))return o}return-1}function xc(e,t){return Gn(e,t,!0)}function _c(e,t,n){return Jr(e,t,T(n,2),!0)}function Sc(e,t){var n=e==null?0:e.length;if(n){var o=Gn(e,t,!0)-1;if(Oe(e[o],t))return o}return-1}function wc(e){return e&&e.length?Vo(e):[]}function Cc(e,t){return e&&e.length?Vo(e,T(t,2)):[]}function Ic(e){var t=e==null?0:e.length;return t?Be(e,1,t):[]}function Lc(e,t,n){return e&&e.length?(t=n||t===i?1:P(t),Be(e,0,t<0?0:t)):[]}function Fc(e,t,n){var o=e==null?0:e.length;return o?(t=n||t===i?1:P(t),t=o-t,Be(e,t<0?0:t,o)):[]}function Ac(e,t){return e&&e.length?$n(e,T(t,3),!1,!0):[]}function Tc(e,t){return e&&e.length?$n(e,T(t,3)):[]}var Ec=H(function(e){return ct(oe(e,1,Q,!0))}),Bc=H(function(e){var t=Re(e);return Q(t)&&(t=i),ct(oe(e,1,Q,!0),T(t,2))}),Rc=H(function(e){var t=Re(e);return t=typeof t=="function"?t:i,ct(oe(e,1,Q,!0),i,t)});function Dc(e){return e&&e.length?ct(e):[]}function Pc(e,t){return e&&e.length?ct(e,T(t,2)):[]}function kc(e,t){return t=typeof t=="function"?t:i,e&&e.length?ct(e,i,t):[]}function mi(e){if(!(e&&e.length))return[];var t=0;return e=at(e,function(n){if(Q(n))return t=ne(n.length,t),!0}),Br(t,function(n){return X(e,Ar(n))})}function Ra(e,t){if(!(e&&e.length))return[];var n=mi(e);return t==null?n:X(n,function(o){return be(t,i,o)})}var Hc=H(function(e,t){return Q(e)?an(e,t):[]}),Mc=H(function(e){return Qr(at(e,Q))}),Oc=H(function(e){var t=Re(e);return Q(t)&&(t=i),Qr(at(e,Q),T(t,2))}),Nc=H(function(e){var t=Re(e);return t=typeof t=="function"?t:i,Qr(at(e,Q),i,t)}),Wc=H(mi);function zc(e,t){return Jo(e||[],t||[],on)}function Uc(e,t){return Jo(e||[],t||[],un)}var Gc=H(function(e){var t=e.length,n=t>1?e[t-1]:i;return n=typeof n=="function"?(e.pop(),n):i,Ra(e,n)});function Da(e){var t=l(e);return t.__chain__=!0,t}function $c(e,t){return t(e),e}function jn(e,t){return t(e)}var Kc=je(function(e){var t=e.length,n=t?e[0]:0,o=this.__wrapped__,a=function(u){return Nr(u,e)};return t>1||this.__actions__.length||!(o instanceof O)||!et(n)?this.thru(a):(o=o.slice(n,+n+(t?1:0)),o.__actions__.push({func:jn,args:[a],thisArg:i}),new Te(o,this.__chain__).thru(function(u){return t&&!u.length&&u.push(i),u}))});function Vc(){return Da(this)}function Yc(){return new Te(this.value(),this.__chain__)}function qc(){this.__values__===i&&(this.__values__=Ya(this.value()));var e=this.__index__>=this.__values__.length,t=e?i:this.__values__[this.__index__++];return{done:e,value:t}}function Xc(){return this}function Jc(e){for(var t,n=this;n instanceof On;){var o=La(n);o.__index__=0,o.__values__=i,t?a.__wrapped__=o:t=o;var a=o;n=n.__wrapped__}return a.__wrapped__=e,t}function Zc(){var e=this.__wrapped__;if(e instanceof O){var t=e;return this.__actions__.length&&(t=new O(this)),t=t.reverse(),t.__actions__.push({func:jn,args:[fi],thisArg:i}),new Te(t,this.__chain__)}return this.thru(fi)}function Qc(){return Xo(this.__wrapped__,this.__actions__)}var jc=Kn(function(e,t,n){G.call(e,n)?++e[n]:Ze(e,n,1)});function ed(e,t,n){var o=D(e)?lo:$u;return n&&pe(e,t,n)&&(t=i),o(e,T(t,3))}function td(e,t){var n=D(e)?at:Ro;return n(e,T(t,3))}var nd=aa(Fa),rd=aa(Aa);function id(e,t){return oe(er(e,t),1)}function od(e,t){return oe(er(e,t),yt)}function ad(e,t,n){return n=n===i?1:P(n),oe(er(e,t),n)}function Pa(e,t){var n=D(e)?Fe:pt;return n(e,T(t,3))}function ka(e,t){var n=D(e)?Is:Bo;return n(e,T(t,3))}var ld=Kn(function(e,t,n){G.call(e,n)?e[n].push(t):Ze(e,n,[t])});function sd(e,t,n,o){e=fe(e)?e:Gt(e),n=n&&!o?P(n):0;var a=e.length;return n<0&&(n=ne(a+n,0)),or(e)?n<=a&&e.indexOf(t,n)>-1:!!a&&Bt(e,t,n)>-1}var ud=H(function(e,t,n){var o=-1,a=typeof t=="function",u=fe(e)?g(e.length):[];return pt(e,function(p){u[++o]=a?be(t,p,n):ln(p,t,n)}),u}),pd=Kn(function(e,t,n){Ze(e,n,t)});function er(e,t){var n=D(e)?X:Oo;return n(e,T(t,3))}function cd(e,t,n,o){return e==null?[]:(D(t)||(t=t==null?[]:[t]),n=o?i:n,D(n)||(n=n==null?[]:[n]),Uo(e,t,n))}var dd=Kn(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});function fd(e,t,n){var o=D(e)?Lr:co,a=arguments.length<3;return o(e,T(t,4),n,a,pt)}function md(e,t,n){var o=D(e)?Ls:co,a=arguments.length<3;return o(e,T(t,4),n,a,Bo)}function gd(e,t){var n=D(e)?at:Ro;return n(e,rr(T(t,3)))}function hd(e){var t=D(e)?Fo:sp;return t(e)}function yd(e,t,n){(n?pe(e,t,n):t===i)?t=1:t=P(t);var o=D(e)?Nu:up;return o(e,t)}function vd(e){var t=D(e)?Wu:cp;return t(e)}function bd(e){if(e==null)return 0;if(fe(e))return or(e)?Dt(e):e.length;var t=le(e);return t==Pe||t==ke?e.size:Kr(e).length}function xd(e,t,n){var o=D(e)?Fr:dp;return n&&pe(e,t,n)&&(t=i),o(e,T(t,3))}var _d=H(function(e,t){if(e==null)return[];var n=t.length;return n>1&&pe(e,t[0],t[1])?t=[]:n>2&&pe(t[0],t[1],t[2])&&(t=[t[0]]),Uo(e,oe(t,1),[])}),tr=tu||function(){return ie.Date.now()};function Sd(e,t){if(typeof t!="function")throw new Ae(y);return e=P(e),function(){if(--e<1)return t.apply(this,arguments)}}function Ha(e,t,n){return t=n?i:t,t=e&&t==null?e.length:t,Qe(e,Ie,i,i,i,i,t)}function Ma(e,t){var n;if(typeof t!="function")throw new Ae(y);return e=P(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var gi=H(function(e,t,n){var o=se;if(n.length){var a=st(n,zt(gi));o|=ve}return Qe(e,o,t,n,a)}),Oa=H(function(e,t,n){var o=se|We;if(n.length){var a=st(n,zt(Oa));o|=ve}return Qe(t,o,e,n,a)});function Na(e,t,n){t=n?i:t;var o=Qe(e,ye,i,i,i,i,i,t);return o.placeholder=Na.placeholder,o}function Wa(e,t,n){t=n?i:t;var o=Qe(e,Ve,i,i,i,i,i,t);return o.placeholder=Wa.placeholder,o}function za(e,t,n){var o,a,u,p,c,f,x=0,S=!1,C=!1,I=!0;if(typeof e!="function")throw new Ae(y);t=De(t)||0,J(n)&&(S=!!n.leading,C="maxWait"in n,u=C?ne(De(n.maxWait)||0,t):u,I="trailing"in n?!!n.trailing:I);function A(j){var Ne=o,rt=a;return o=a=i,x=j,p=e.apply(rt,Ne),p}function E(j){return x=j,c=dn(M,t),S?A(j):p}function k(j){var Ne=j-f,rt=j-x,al=t-Ne;return C?ae(al,u-rt):al}function B(j){var Ne=j-f,rt=j-x;return f===i||Ne>=t||Ne<0||C&&rt>=u}function M(){var j=tr();if(B(j))return N(j);c=dn(M,k(j))}function N(j){return c=i,I&&o?A(j):(o=a=i,p)}function we(){c!==i&&Zo(c),x=0,o=f=a=c=i}function ce(){return c===i?p:N(tr())}function Ce(){var j=tr(),Ne=B(j);if(o=arguments,a=this,f=j,Ne){if(c===i)return E(f);if(C)return Zo(c),c=dn(M,t),A(f)}return c===i&&(c=dn(M,t)),p}return Ce.cancel=we,Ce.flush=ce,Ce}var wd=H(function(e,t){return Eo(e,1,t)}),Cd=H(function(e,t,n){return Eo(e,De(t)||0,n)});function Id(e){return Qe(e,Ft)}function nr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Ae(y);var n=function(){var o=arguments,a=t?t.apply(this,o):o[0],u=n.cache;if(u.has(a))return u.get(a);var p=e.apply(this,o);return n.cache=u.set(a,p)||u,p};return n.cache=new(nr.Cache||Je),n}nr.Cache=Je;function rr(e){if(typeof e!="function")throw new Ae(y);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Ld(e){return Ma(2,e)}var Fd=fp(function(e,t){t=t.length==1&&D(t[0])?X(t[0],xe(T())):X(oe(t,1),xe(T()));var n=t.length;return H(function(o){for(var a=-1,u=ae(o.length,n);++a<u;)o[a]=t[a].call(this,o[a]);return be(e,this,o)})}),hi=H(function(e,t){var n=st(t,zt(hi));return Qe(e,ve,i,t,n)}),Ua=H(function(e,t){var n=st(t,zt(Ua));return Qe(e,Ye,i,t,n)}),Ad=je(function(e,t){return Qe(e,it,i,i,i,t)});function Td(e,t){if(typeof e!="function")throw new Ae(y);return t=t===i?t:P(t),H(e,t)}function Ed(e,t){if(typeof e!="function")throw new Ae(y);return t=t==null?0:ne(P(t),0),H(function(n){var o=n[t],a=ft(n,0,t);return o&&lt(a,o),be(e,this,a)})}function Bd(e,t,n){var o=!0,a=!0;if(typeof e!="function")throw new Ae(y);return J(n)&&(o="leading"in n?!!n.leading:o,a="trailing"in n?!!n.trailing:a),za(e,t,{leading:o,maxWait:t,trailing:a})}function Rd(e){return Ha(e,1)}function Dd(e,t){return hi(ei(t),e)}function Pd(){if(!arguments.length)return[];var e=arguments[0];return D(e)?e:[e]}function kd(e){return Ee(e,U)}function Hd(e,t){return t=typeof t=="function"?t:i,Ee(e,U,t)}function Md(e){return Ee(e,ee|U)}function Od(e,t){return t=typeof t=="function"?t:i,Ee(e,ee|U,t)}function Nd(e,t){return t==null||To(e,t,re(t))}function Oe(e,t){return e===t||e!==e&&t!==t}var Wd=Xn(Ur),zd=Xn(function(e,t){return e>=t}),Lt=ko(function(){return arguments}())?ko:function(e){return Z(e)&&G.call(e,"callee")&&!_o.call(e,"callee")},D=g.isArray,Ud=to?xe(to):Ju;function fe(e){return e!=null&&ir(e.length)&&!tt(e)}function Q(e){return Z(e)&&fe(e)}function Gd(e){return e===!0||e===!1||Z(e)&&ue(e)==Kt}var mt=ru||Fi,$d=no?xe(no):Zu;function Kd(e){return Z(e)&&e.nodeType===1&&!fn(e)}function Vd(e){if(e==null)return!0;if(fe(e)&&(D(e)||typeof e=="string"||typeof e.splice=="function"||mt(e)||Ut(e)||Lt(e)))return!e.length;var t=le(e);if(t==Pe||t==ke)return!e.size;if(cn(e))return!Kr(e).length;for(var n in e)if(G.call(e,n))return!1;return!0}function Yd(e,t){return sn(e,t)}function qd(e,t,n){n=typeof n=="function"?n:i;var o=n?n(e,t):i;return o===i?sn(e,t,i,n):!!o}function yi(e){if(!Z(e))return!1;var t=ue(e);return t==hn||t==yl||typeof e.message=="string"&&typeof e.name=="string"&&!fn(e)}function Xd(e){return typeof e=="number"&&wo(e)}function tt(e){if(!J(e))return!1;var t=ue(e);return t==yn||t==Ti||t==hl||t==bl}function Ga(e){return typeof e=="number"&&e==P(e)}function ir(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ot}function J(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Z(e){return e!=null&&typeof e=="object"}var $a=ro?xe(ro):ju;function Jd(e,t){return e===t||$r(e,t,li(t))}function Zd(e,t,n){return n=typeof n=="function"?n:i,$r(e,t,li(t),n)}function Qd(e){return Ka(e)&&e!=+e}function jd(e){if(Hp(e))throw new R(b);return Ho(e)}function ef(e){return e===null}function tf(e){return e==null}function Ka(e){return typeof e=="number"||Z(e)&&ue(e)==Yt}function fn(e){if(!Z(e)||ue(e)!=qe)return!1;var t=Bn(e);if(t===null)return!0;var n=G.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Fn.call(n)==Zs}var vi=io?xe(io):ep;function nf(e){return Ga(e)&&e>=-ot&&e<=ot}var Va=oo?xe(oo):tp;function or(e){return typeof e=="string"||!D(e)&&Z(e)&&ue(e)==Xt}function Se(e){return typeof e=="symbol"||Z(e)&&ue(e)==vn}var Ut=ao?xe(ao):np;function rf(e){return e===i}function of(e){return Z(e)&&le(e)==Jt}function af(e){return Z(e)&&ue(e)==_l}var lf=Xn(Vr),sf=Xn(function(e,t){return e<=t});function Ya(e){if(!e)return[];if(fe(e))return or(e)?He(e):de(e);if(jt&&e[jt])return Ns(e[jt]());var t=le(e),n=t==Pe?Dr:t==ke?Cn:Gt;return n(e)}function nt(e){if(!e)return e===0?e:0;if(e=De(e),e===yt||e===-yt){var t=e<0?-1:1;return t*dl}return e===e?e:0}function P(e){var t=nt(e),n=t%1;return t===t?n?t-n:t:0}function qa(e){return e?St(P(e),0,ze):0}function De(e){if(typeof e=="number")return e;if(Se(e))return mn;if(J(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=J(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=fo(e);var n=Ul.test(e);return n||$l.test(e)?Ss(e.slice(2),n?2:8):zl.test(e)?mn:+e}function Xa(e){return Ge(e,me(e))}function uf(e){return e?St(P(e),-ot,ot):e===0?e:0}function z(e){return e==null?"":_e(e)}var pf=Nt(function(e,t){if(cn(t)||fe(t)){Ge(t,re(t),e);return}for(var n in t)G.call(t,n)&&on(e,n,t[n])}),Ja=Nt(function(e,t){Ge(t,me(t),e)}),ar=Nt(function(e,t,n,o){Ge(t,me(t),e,o)}),cf=Nt(function(e,t,n,o){Ge(t,re(t),e,o)}),df=je(Nr);function ff(e,t){var n=Ot(e);return t==null?n:Ao(n,t)}var mf=H(function(e,t){e=K(e);var n=-1,o=t.length,a=o>2?t[2]:i;for(a&&pe(t[0],t[1],a)&&(o=1);++n<o;)for(var u=t[n],p=me(u),c=-1,f=p.length;++c<f;){var x=p[c],S=e[x];(S===i||Oe(S,kt[x])&&!G.call(e,x))&&(e[x]=u[x])}return e}),gf=H(function(e){return e.push(i,fa),be(Za,i,e)});function hf(e,t){return so(e,T(t,3),Ue)}function yf(e,t){return so(e,T(t,3),zr)}function vf(e,t){return e==null?e:Wr(e,T(t,3),me)}function bf(e,t){return e==null?e:Do(e,T(t,3),me)}function xf(e,t){return e&&Ue(e,T(t,3))}function _f(e,t){return e&&zr(e,T(t,3))}function Sf(e){return e==null?[]:zn(e,re(e))}function wf(e){return e==null?[]:zn(e,me(e))}function bi(e,t,n){var o=e==null?i:wt(e,t);return o===i?n:o}function Cf(e,t){return e!=null&&ha(e,t,Vu)}function xi(e,t){return e!=null&&ha(e,t,Yu)}var If=sa(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=An.call(t)),e[t]=n},Si(ge)),Lf=sa(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=An.call(t)),G.call(e,t)?e[t].push(n):e[t]=[n]},T),Ff=H(ln);function re(e){return fe(e)?Lo(e):Kr(e)}function me(e){return fe(e)?Lo(e,!0):rp(e)}function Af(e,t){var n={};return t=T(t,3),Ue(e,function(o,a,u){Ze(n,t(o,a,u),o)}),n}function Tf(e,t){var n={};return t=T(t,3),Ue(e,function(o,a,u){Ze(n,a,t(o,a,u))}),n}var Ef=Nt(function(e,t,n){Un(e,t,n)}),Za=Nt(function(e,t,n,o){Un(e,t,n,o)}),Bf=je(function(e,t){var n={};if(e==null)return n;var o=!1;t=X(t,function(u){return u=dt(u,e),o||(o=u.length>1),u}),Ge(e,oi(e),n),o&&(n=Ee(n,ee|he|U,Cp));for(var a=t.length;a--;)Zr(n,t[a]);return n});function Rf(e,t){return Qa(e,rr(T(t)))}var Df=je(function(e,t){return e==null?{}:op(e,t)});function Qa(e,t){if(e==null)return{};var n=X(oi(e),function(o){return[o]});return t=T(t),Go(e,n,function(o,a){return t(o,a[0])})}function Pf(e,t,n){t=dt(t,e);var o=-1,a=t.length;for(a||(a=1,e=i);++o<a;){var u=e==null?i:e[$e(t[o])];u===i&&(o=a,u=n),e=tt(u)?u.call(e):u}return e}function kf(e,t,n){return e==null?e:un(e,t,n)}function Hf(e,t,n,o){return o=typeof o=="function"?o:i,e==null?e:un(e,t,n,o)}var ja=ca(re),el=ca(me);function Mf(e,t,n){var o=D(e),a=o||mt(e)||Ut(e);if(t=T(t,4),n==null){var u=e&&e.constructor;a?n=o?new u:[]:J(e)?n=tt(u)?Ot(Bn(e)):{}:n={}}return(a?Fe:Ue)(e,function(p,c,f){return t(n,p,c,f)}),n}function Of(e,t){return e==null?!0:Zr(e,t)}function Nf(e,t,n){return e==null?e:qo(e,t,ei(n))}function Wf(e,t,n,o){return o=typeof o=="function"?o:i,e==null?e:qo(e,t,ei(n),o)}function Gt(e){return e==null?[]:Rr(e,re(e))}function zf(e){return e==null?[]:Rr(e,me(e))}function Uf(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=De(n),n=n===n?n:0),t!==i&&(t=De(t),t=t===t?t:0),St(De(e),t,n)}function Gf(e,t,n){return t=nt(t),n===i?(n=t,t=0):n=nt(n),e=De(e),qu(e,t,n)}function $f(e,t,n){if(n&&typeof n!="boolean"&&pe(e,t,n)&&(t=n=i),n===i&&(typeof t=="boolean"?(n=t,t=i):typeof e=="boolean"&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=nt(e),t===i?(t=e,e=0):t=nt(t)),e>t){var o=e;e=t,t=o}if(n||e%1||t%1){var a=Co();return ae(e+a*(t-e+_s("1e-"+((a+"").length-1))),t)}return qr(e,t)}var Kf=Wt(function(e,t,n){return t=t.toLowerCase(),e+(n?tl(t):t)});function tl(e){return _i(z(e).toLowerCase())}function nl(e){return e=z(e),e&&e.replace(Vl,Ps).replace(cs,"")}function Vf(e,t,n){e=z(e),t=_e(t);var o=e.length;n=n===i?o:St(P(n),0,o);var a=n;return n-=t.length,n>=0&&e.slice(n,a)==t}function Yf(e){return e=z(e),e&&Ll.test(e)?e.replace(Ri,ks):e}function qf(e){return e=z(e),e&&Rl.test(e)?e.replace(hr,"\\$&"):e}var Xf=Wt(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Jf=Wt(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),Zf=oa("toLowerCase");function Qf(e,t,n){e=z(e),t=P(t);var o=t?Dt(e):0;if(!t||o>=t)return e;var a=(t-o)/2;return qn(kn(a),n)+e+qn(Pn(a),n)}function jf(e,t,n){e=z(e),t=P(t);var o=t?Dt(e):0;return t&&o<t?e+qn(t-o,n):e}function em(e,t,n){e=z(e),t=P(t);var o=t?Dt(e):0;return t&&o<t?qn(t-o,n)+e:e}function tm(e,t,n){return n||t==null?t=0:t&&(t=+t),lu(z(e).replace(yr,""),t||0)}function nm(e,t,n){return(n?pe(e,t,n):t===i)?t=1:t=P(t),Xr(z(e),t)}function rm(){var e=arguments,t=z(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var im=Wt(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});function om(e,t,n){return n&&typeof n!="number"&&pe(e,t,n)&&(t=n=i),n=n===i?ze:n>>>0,n?(e=z(e),e&&(typeof t=="string"||t!=null&&!vi(t))&&(t=_e(t),!t&&Rt(e))?ft(He(e),0,n):e.split(t,n)):[]}var am=Wt(function(e,t,n){return e+(n?" ":"")+_i(t)});function lm(e,t,n){return e=z(e),n=n==null?0:St(P(n),0,e.length),t=_e(t),e.slice(n,n+t.length)==t}function sm(e,t,n){var o=l.templateSettings;n&&pe(e,t,n)&&(t=i),e=z(e),t=ar({},t,o,da);var a=ar({},t.imports,o.imports,da),u=re(a),p=Rr(a,u),c,f,x=0,S=t.interpolate||bn,C="__p += '",I=Pr((t.escape||bn).source+"|"+S.source+"|"+(S===Di?Wl:bn).source+"|"+(t.evaluate||bn).source+"|$","g"),A="//# sourceURL="+(G.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++hs+"]")+`
11
+ `;e.replace(I,function(B,M,N,we,ce,Ce){return N||(N=we),C+=e.slice(x,Ce).replace(Yl,Hs),M&&(c=!0,C+=`' +
12
12
  __e(`+M+`) +
13
- '`),ce&&(f=!0,w+=`';
13
+ '`),ce&&(f=!0,C+=`';
14
14
  `+ce+`;
15
- __p += '`),N&&(w+=`' +
15
+ __p += '`),N&&(C+=`' +
16
16
  ((__t = (`+N+`)) == null ? '' : __t) +
17
- '`),x=we+B.length,B}),w+=`';
18
- `;var E=K.call(t,"variable")&&t.variable;if(!E)w=`with (obj) {
19
- `+w+`
17
+ '`),x=Ce+B.length,B}),C+=`';
18
+ `;var E=G.call(t,"variable")&&t.variable;if(!E)C=`with (obj) {
19
+ `+C+`
20
20
  }
21
- `;else if(Ol.test(E))throw new R(C);w=(f?w.replace(Sl,""):w).replace(Cl,"$1").replace(wl,"$1;"),w="function("+(E||"obj")+`) {
21
+ `;else if(Ol.test(E))throw new R(w);C=(f?C.replace(Sl,""):C).replace(wl,"$1").replace(Cl,"$1;"),C="function("+(E||"obj")+`) {
22
22
  `+(E?"":`obj || (obj = {});
23
23
  `)+"var __t, __p = ''"+(c?", __e = _.escape":"")+(f?`, __j = Array.prototype.join;
24
24
  function print() { __p += __j.call(arguments, '') }
25
25
  `:`;
26
- `)+w+`return __p
27
- }`;var k=il(function(){return U(u,A+"return "+w).apply(i,p)});if(k.source=w,yi(k))throw k;return k}function um(e){return G(e).toLowerCase()}function pm(e){return G(e).toUpperCase()}function cm(e,t,n){if(e=G(e),e&&(n||t===i))return fo(e);if(!e||!(t=_e(t)))return e;var o=He(e),a=He(t),u=mo(o,a),p=go(o,a)+1;return ft(o,u,p).join("")}function dm(e,t,n){if(e=G(e),e&&(n||t===i))return e.slice(0,yo(e)+1);if(!e||!(t=_e(t)))return e;var o=He(e),a=go(o,He(t))+1;return ft(o,0,a).join("")}function fm(e,t,n){if(e=G(e),e&&(n||t===i))return e.replace(yr,"");if(!e||!(t=_e(t)))return e;var o=He(e),a=mo(o,He(t));return ft(o,a).join("")}function mm(e,t){var n=ht,o=ll;if(X(t)){var a="separator"in t?t.separator:a;n="length"in t?P(t.length):n,o="omission"in t?_e(t.omission):o}e=G(e);var u=e.length;if(Rt(e)){var p=He(e);u=p.length}if(n>=u)return e;var c=n-Dt(o);if(c<1)return o;var f=p?ft(p,0,c).join(""):e.slice(0,c);if(a===i)return f+o;if(p&&(c+=f.length-c),vi(a)){if(e.slice(c).search(a)){var x,S=f;for(a.global||(a=Pr(a.source,G(Pi.exec(a))+"g")),a.lastIndex=0;x=a.exec(S);)var w=x.index;f=f.slice(0,w===i?c:w)}}else if(e.indexOf(_e(a),c)!=c){var I=f.lastIndexOf(a);I>-1&&(f=f.slice(0,I))}return f+o}function gm(e){return e=G(e),e&&Il.test(e)?e.replace(Bi,Gs):e}var hm=Wt(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),_i=oa("toUpperCase");function rl(e,t,n){return e=G(e),t=n?i:t,t===i?Os(e)?Vs(e):Ts(e):e.match(t)||[]}var il=H(function(e,t){try{return be(e,i,t)}catch(n){return yi(n)?n:new R(n)}}),ym=je(function(e,t){return Fe(t,function(n){n=$e(n),Ze(e,n,gi(e[n],e))}),e});function vm(e){var t=e==null?0:e.length,n=T();return e=t?J(e,function(o){if(typeof o[1]!="function")throw new Ae(y);return[n(o[0]),o[1]]}):[],H(function(o){for(var a=-1;++a<t;){var u=e[a];if(be(u[0],this,o))return be(u[1],this,o)}})}function bm(e){return Gu(Ee(e,Q))}function Si(e){return function(){return e}}function xm(e,t){return e==null||e!==e?t:e}var _m=la(),Sm=la(!0);function ge(e){return e}function Ci(e){return Mo(typeof e=="function"?e:Ee(e,Q))}function Cm(e){return No(Ee(e,Q))}function wm(e,t){return Wo(e,Ee(t,Q))}var Im=H(function(e,t){return function(n){return ln(n,e,t)}}),Lm=H(function(e,t){return function(n){return ln(e,n,t)}});function wi(e,t,n){var o=re(t),a=zn(t,o);n==null&&!(X(t)&&(a.length||!o.length))&&(n=t,t=e,e=this,a=zn(t,re(t)));var u=!(X(n)&&"chain"in n)||!!n.chain,p=tt(e);return Fe(a,function(c){var f=t[c];e[c]=f,p&&(e.prototype[c]=function(){var x=this.__chain__;if(u||x){var S=e(this.__wrapped__),w=S.__actions__=de(this.__actions__);return w.push({func:f,args:arguments,thisArg:e}),S.__chain__=x,S}return f.apply(e,lt([this.value()],arguments))})}),e}function Fm(){return ie._===this&&(ie._=Qs),this}function Ii(){}function Am(e){return e=P(e),H(function(t){return zo(t,e)})}var Tm=ni(J),Em=ni(lo),Bm=ni(Fr);function ol(e){return ui(e)?Ar($e(e)):ap(e)}function Rm(e){return function(t){return e==null?i:Ct(e,t)}}var Dm=ua(),Pm=ua(!0);function Li(){return[]}function Fi(){return!1}function km(){return{}}function Hm(){return""}function Mm(){return!0}function Om(e,t){if(e=P(e),e<1||e>ot)return[];var n=ze,o=ae(e,ze);t=T(t),e-=ze;for(var a=Br(o,t);++n<e;)t(n);return a}function Nm(e){return D(e)?J(e,$e):Se(e)?[e]:de(Ia(G(e)))}function Wm(e){var t=++Xs;return G(e)+t}var zm=Yn(function(e,t){return e+t},0),Um=ri("ceil"),Gm=Yn(function(e,t){return e/t},1),$m=ri("floor");function Km(e){return e&&e.length?Wn(e,ge,Ur):i}function Vm(e,t){return e&&e.length?Wn(e,T(t,2),Ur):i}function Ym(e){return po(e,ge)}function qm(e,t){return po(e,T(t,2))}function Jm(e){return e&&e.length?Wn(e,ge,Vr):i}function Xm(e,t){return e&&e.length?Wn(e,T(t,2),Vr):i}var Zm=Yn(function(e,t){return e*t},1),Qm=ri("round"),jm=Yn(function(e,t){return e-t},0);function eg(e){return e&&e.length?Er(e,ge):0}function tg(e,t){return e&&e.length?Er(e,T(t,2)):0}return l.after=Sd,l.ary=Ha,l.assign=pf,l.assignIn=Xa,l.assignInWith=ar,l.assignWith=cf,l.at=df,l.before=Ma,l.bind=gi,l.bindAll=ym,l.bindKey=Oa,l.castArray=Pd,l.chain=Da,l.chunk=Gp,l.compact=$p,l.concat=Kp,l.cond=vm,l.conforms=bm,l.constant=Si,l.countBy=jc,l.create=ff,l.curry=Na,l.curryRight=Wa,l.debounce=za,l.defaults=mf,l.defaultsDeep=gf,l.defer=Cd,l.delay=wd,l.difference=Vp,l.differenceBy=Yp,l.differenceWith=qp,l.drop=Jp,l.dropRight=Xp,l.dropRightWhile=Zp,l.dropWhile=Qp,l.fill=jp,l.filter=td,l.flatMap=id,l.flatMapDeep=od,l.flatMapDepth=ad,l.flatten=Ta,l.flattenDeep=ec,l.flattenDepth=tc,l.flip=Id,l.flow=_m,l.flowRight=Sm,l.fromPairs=nc,l.functions=Sf,l.functionsIn=Cf,l.groupBy=ld,l.initial=ic,l.intersection=oc,l.intersectionBy=ac,l.intersectionWith=lc,l.invert=If,l.invertBy=Lf,l.invokeMap=ud,l.iteratee=Ci,l.keyBy=pd,l.keys=re,l.keysIn=me,l.map=er,l.mapKeys=Af,l.mapValues=Tf,l.matches=Cm,l.matchesProperty=wm,l.memoize=nr,l.merge=Ef,l.mergeWith=Za,l.method=Im,l.methodOf=Lm,l.mixin=wi,l.negate=rr,l.nthArg=Am,l.omit=Bf,l.omitBy=Rf,l.once=Ld,l.orderBy=cd,l.over=Tm,l.overArgs=Fd,l.overEvery=Em,l.overSome=Bm,l.partial=hi,l.partialRight=Ua,l.partition=dd,l.pick=Df,l.pickBy=Qa,l.property=ol,l.propertyOf=Rm,l.pull=cc,l.pullAll=Ba,l.pullAllBy=dc,l.pullAllWith=fc,l.pullAt=mc,l.range=Dm,l.rangeRight=Pm,l.rearg=Ad,l.reject=gd,l.remove=gc,l.rest=Td,l.reverse=fi,l.sampleSize=yd,l.set=kf,l.setWith=Hf,l.shuffle=vd,l.slice=hc,l.sortBy=_d,l.sortedUniq=Cc,l.sortedUniqBy=wc,l.split=om,l.spread=Ed,l.tail=Ic,l.take=Lc,l.takeRight=Fc,l.takeRightWhile=Ac,l.takeWhile=Tc,l.tap=$c,l.throttle=Bd,l.thru=jn,l.toArray=Ya,l.toPairs=ja,l.toPairsIn=el,l.toPath=Nm,l.toPlainObject=Ja,l.transform=Mf,l.unary=Rd,l.union=Ec,l.unionBy=Bc,l.unionWith=Rc,l.uniq=Dc,l.uniqBy=Pc,l.uniqWith=kc,l.unset=Of,l.unzip=mi,l.unzipWith=Ra,l.update=Nf,l.updateWith=Wf,l.values=Gt,l.valuesIn=zf,l.without=Hc,l.words=rl,l.wrap=Dd,l.xor=Mc,l.xorBy=Oc,l.xorWith=Nc,l.zip=Wc,l.zipObject=zc,l.zipObjectDeep=Uc,l.zipWith=Gc,l.entries=ja,l.entriesIn=el,l.extend=Xa,l.extendWith=ar,wi(l,l),l.add=zm,l.attempt=il,l.camelCase=Kf,l.capitalize=tl,l.ceil=Um,l.clamp=Uf,l.clone=kd,l.cloneDeep=Md,l.cloneDeepWith=Od,l.cloneWith=Hd,l.conformsTo=Nd,l.deburr=nl,l.defaultTo=xm,l.divide=Gm,l.endsWith=Vf,l.eq=Oe,l.escape=Yf,l.escapeRegExp=qf,l.every=ed,l.find=nd,l.findIndex=Fa,l.findKey=hf,l.findLast=rd,l.findLastIndex=Aa,l.findLastKey=yf,l.floor=$m,l.forEach=Pa,l.forEachRight=ka,l.forIn=vf,l.forInRight=bf,l.forOwn=xf,l.forOwnRight=_f,l.get=bi,l.gt=Wd,l.gte=zd,l.has=wf,l.hasIn=xi,l.head=Ea,l.identity=ge,l.includes=sd,l.indexOf=rc,l.inRange=Gf,l.invoke=Ff,l.isArguments=Lt,l.isArray=D,l.isArrayBuffer=Ud,l.isArrayLike=fe,l.isArrayLikeObject=j,l.isBoolean=Gd,l.isBuffer=mt,l.isDate=$d,l.isElement=Kd,l.isEmpty=Vd,l.isEqual=Yd,l.isEqualWith=qd,l.isError=yi,l.isFinite=Jd,l.isFunction=tt,l.isInteger=Ga,l.isLength=ir,l.isMap=$a,l.isMatch=Xd,l.isMatchWith=Zd,l.isNaN=Qd,l.isNative=jd,l.isNil=tf,l.isNull=ef,l.isNumber=Ka,l.isObject=X,l.isObjectLike=Z,l.isPlainObject=fn,l.isRegExp=vi,l.isSafeInteger=nf,l.isSet=Va,l.isString=or,l.isSymbol=Se,l.isTypedArray=Ut,l.isUndefined=rf,l.isWeakMap=of,l.isWeakSet=af,l.join=sc,l.kebabCase=Jf,l.last=Re,l.lastIndexOf=uc,l.lowerCase=Xf,l.lowerFirst=Zf,l.lt=lf,l.lte=sf,l.max=Km,l.maxBy=Vm,l.mean=Ym,l.meanBy=qm,l.min=Jm,l.minBy=Xm,l.stubArray=Li,l.stubFalse=Fi,l.stubObject=km,l.stubString=Hm,l.stubTrue=Mm,l.multiply=Zm,l.nth=pc,l.noConflict=Fm,l.noop=Ii,l.now=tr,l.pad=Qf,l.padEnd=jf,l.padStart=em,l.parseInt=tm,l.random=$f,l.reduce=fd,l.reduceRight=md,l.repeat=nm,l.replace=rm,l.result=Pf,l.round=Qm,l.runInContext=d,l.sample=hd,l.size=bd,l.snakeCase=im,l.some=xd,l.sortedIndex=yc,l.sortedIndexBy=vc,l.sortedIndexOf=bc,l.sortedLastIndex=xc,l.sortedLastIndexBy=_c,l.sortedLastIndexOf=Sc,l.startCase=am,l.startsWith=lm,l.subtract=jm,l.sum=eg,l.sumBy=tg,l.template=sm,l.times=Om,l.toFinite=nt,l.toInteger=P,l.toLength=qa,l.toLower=um,l.toNumber=De,l.toSafeInteger=uf,l.toString=G,l.toUpper=pm,l.trim=cm,l.trimEnd=dm,l.trimStart=fm,l.truncate=mm,l.unescape=gm,l.uniqueId=Wm,l.upperCase=hm,l.upperFirst=_i,l.each=Pa,l.eachRight=ka,l.first=Ea,wi(l,function(){var e={};return Ue(l,function(t,n){K.call(l.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),l.VERSION=m,Fe(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){l[e].placeholder=l}),Fe(["drop","take"],function(e,t){O.prototype[e]=function(n){n=n===i?1:ne(P(n),0);var o=this.__filtered__&&!t?new O(this):this.clone();return o.__filtered__?o.__takeCount__=ae(n,o.__takeCount__):o.__views__.push({size:ae(n,ze),type:e+(o.__dir__<0?"Right":"")}),o},O.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),Fe(["filter","map","takeWhile"],function(e,t){var n=t+1,o=n==Ai||n==cl;O.prototype[e]=function(a){var u=this.clone();return u.__iteratees__.push({iteratee:T(a,3),type:n}),u.__filtered__=u.__filtered__||o,u}}),Fe(["head","last"],function(e,t){var n="take"+(t?"Right":"");O.prototype[e]=function(){return this[n](1).value()[0]}}),Fe(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");O.prototype[e]=function(){return this.__filtered__?new O(this):this[n](1)}}),O.prototype.compact=function(){return this.filter(ge)},O.prototype.find=function(e){return this.filter(e).head()},O.prototype.findLast=function(e){return this.reverse().find(e)},O.prototype.invokeMap=H(function(e,t){return typeof e=="function"?new O(this):this.map(function(n){return ln(n,e,t)})}),O.prototype.reject=function(e){return this.filter(rr(T(e)))},O.prototype.slice=function(e,t){e=P(e);var n=this;return n.__filtered__&&(e>0||t<0)?new O(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(t=P(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},O.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},O.prototype.toArray=function(){return this.take(ze)},Ue(O.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),a=l[o?"take"+(t=="last"?"Right":""):t],u=o||/^find/.test(t);!a||(l.prototype[t]=function(){var p=this.__wrapped__,c=o?[1]:arguments,f=p instanceof O,x=c[0],S=f||D(p),w=function(M){var N=a.apply(l,lt([M],c));return o&&I?N[0]:N};S&&n&&typeof x=="function"&&x.length!=1&&(f=S=!1);var I=this.__chain__,A=!!this.__actions__.length,E=u&&!I,k=f&&!A;if(!u&&S){p=k?p:new O(this);var B=e.apply(p,c);return B.__actions__.push({func:jn,args:[w],thisArg:i}),new Te(B,I)}return E&&k?e.apply(this,c):(B=this.thru(w),E?o?B.value()[0]:B.value():B)})}),Fe(["pop","push","shift","sort","splice","unshift"],function(e){var t=In[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);l.prototype[e]=function(){var a=arguments;if(o&&!this.__chain__){var u=this.value();return t.apply(D(u)?u:[],a)}return this[n](function(p){return t.apply(D(p)?p:[],a)})}}),Ue(O.prototype,function(e,t){var n=l[t];if(n){var o=n.name+"";K.call(Mt,o)||(Mt[o]=[]),Mt[o].push({name:t,func:n})}}),Mt[Vn(i,We).name]=[{name:"wrapper",func:i}],O.prototype.clone=mu,O.prototype.reverse=gu,O.prototype.value=hu,l.prototype.at=Kc,l.prototype.chain=Vc,l.prototype.commit=Yc,l.prototype.next=qc,l.prototype.plant=Xc,l.prototype.reverse=Zc,l.prototype.toJSON=l.prototype.valueOf=l.prototype.value=Qc,l.prototype.first=l.prototype.head,jt&&(l.prototype[jt]=Jc),l},Pt=Ys();vt?((vt.exports=Pt)._=Pt,Cr._=Pt):ie._=Pt}).call(commonjsGlobal)})(lodash,lodash.exports);var _=lodash.exports;const ComponentSchema={type:"object",properties:{type:{oneOf:[{title:"AadharcardText",const:"AadharcardText"},{title:"Array",const:"Array"},{title:"Button",const:"Button"},{title:"Card",const:"card"},{title:"CheckBox",const:"CheckBox"},{title:"Container",const:"WrapperSection"},{title:"DataGrid",const:"DataGrid"},{title:"Date",const:"Date"},{title:"DateTime",const:"DateTime"},{title:"Download File",const:"DownloadFile"},{title:"Empty Box",const:"EmptyBox"},{title:"File",const:"FileInput"},{title:"Graph",const:"Graph"},{title:"Input Slider",const:"InputSlider"},{title:"Label",const:"Box"},{title:"LeaderBoard",const:"LeaderBoard"},{title:"MultipleSelect",const:"MultipleSelect"},{title:"PanCardText",const:"PanCardText"},{title:"Popup Container",const:"PopUp"},{title:"ProgressBar",const:"ProgressBar"},{title:"ProgressBar Card",const:"ProgressBarCard"},{title:"Select",const:"Select"},{title:"Slider",const:"Slider"},{title:"SpeedoMeter",const:"SpeedoMeter"},{title:"Stepper Container",const:"Stepper"},{title:"Radio",const:"Radio"},{title:"Rank",const:"Rank"},{title:"Rank Card",const:"RankCard"},{title:"Runner Boy Progress Bar",const:"RunnerBoyProgressBar"},{title:"Table",const:"Table"},{title:"Tabs",const:"TabSection"},{title:"Text",const:"Text"},{title:"Text Area",const:"TextArea"},{title:"Timer",const:"Timer"},{title:"Upload File",const:"UploadFile"},{title:"Timer",const:"Timer"},{title:"Upload File",const:"UploadFile"},{title:"TreeMap",const:"TreeMap"}]},columnFormat:{oneOf:[{title:"Date Column",const:"date"},{title:"DateTime Column",const:"dateTime"},{title:"Amount Column",const:"amount"}]},orientation:{oneOf:[{title:"Horizontal",const:"horizontal"},{title:"Vertical",const:"vertical"}]},method:{type:"string",oneOf:[{title:"Get",const:"get"},{title:"Post",const:"post"},{title:"Delete",const:"delete"},{title:"Put",const:"put"}]},layout:{type:"array",items:{type:"object",properties:{key:{type:"string",oneOf:[{title:"Extra Small",const:"xs"},{title:"Small",const:"sm"},{title:"Medium",const:"md"},{title:"Large",const:"lg"}]},value:{}}}},cardLayout:{type:"array",items:{type:"object",properties:{key:{type:"string",oneOf:[{title:"Extra Small",const:"xs"},{title:"Small",const:"sm"},{title:"Medium",const:"md"},{title:"Large",const:"lg"}]},value:{}}}},value:{type:"array",items:{type:"object",properties:{label:{type:"string"},value:{type:"string"}}}},columns:{type:"array",items:{type:"object",properties:{header:{type:"string"},accessorKey:{type:"string"},widgetType:{type:"string"}}}},events:{type:"array",items:{type:"object",properties:{eventType:{type:"string"},configType:{type:"string"}}}},sectionLabels:{type:"array",items:{type:"object",properties:{label:{type:"string"}}}},Table_Download_Keys_Name:{type:"array",items:{type:"object",properties:{KeyName:{type:"string"}}}},sizeHolder:{type:"array",items:{type:"object",properties:{keyName:{type:"string"},value:{type:"string"}}}},legendLabels:{type:"array",items:{type:"object",properties:{label:{type:"string"}}}},pieArcColors:{type:"array",items:{type:"object",properties:{label:{type:"string"}}}},InputFormatingAndMasking:{type:"array",items:{type:"object",properties:{formatElement:{type:"string"}}}},validation:{type:"array",items:{type:"object",properties:{componentName:{type:"string"},validationType:{type:"string",oneOf:[{const:"required",title:"Required"},{const:"minLength",title:"Minimum Length"},{const:"maxLength",title:"Maximum Length"},{const:"pattern",title:"Pattern"}]},validationValue:{type:"string"}}}},buttonType:{type:"string",oneOf:[{title:"Button",const:"Button"},{title:"IconButton",const:"IconButton"},{title:"HybridButton",const:"ButtonWithIconAndText"}]},defaultStyle:{type:"string",oneOf:[{title:"Apply Default Style",const:"true"},{title:"No Style",const:"false"}]},graphType:{type:"string",oneOf:[{title:"Bar Graph",const:"BarGraph"},{title:"Stack Bar Graph",const:"StackBarGraph"},{title:"Line Graph",const:"LineGraph"},{title:"Pie Graph",const:"PieGraph"},{title:"Horizontal Bar Graph",const:"HorizontalBarGraph"}]},iconName:{type:"string",oneOf:[{title:"Search Icon",const:"SearchIcon"},{title:"Edit Icon",const:"EditIcon"},{title:"Add Icon",const:"AddIcon"},{title:"Send Icon",const:"SendIcon"},{title:"Approve Icon",const:"ApproveIcon"},{title:"RejectIcon",const:"RejectIcon"},{title:"Back Icon",const:"BackIcon"},{title:"Back Icon Second ",const:"BackIcon2"},{title:"Pending Icon",const:"PendingIcon"},{title:"View Icon",const:"ViewIcon"},{title:"Notification Icon",const:"NotificationIcon"},{title:"Person Icon",const:"PersonIcon"},{title:"Report Icon",const:"ReportIcon"},{title:"Error Icon",const:"ErrorIcon"},{title:"Refresh Icon",const:"RefreshIcon"},{title:"Download Icon",const:"DownloadIcon"},{title:"Exception Icon",const:"ExceptionIcon"}]},color:{type:"string",oneOf:[{title:"Primary",const:"primary"},{title:"Secondary",const:"secondary"},{title:"Error",const:"error"},{title:"Success",const:"success"},{title:"Info",const:"info"}]},name:{type:"string"},label:{type:"string"}},required:["name"]},componentBasicUiSchema={type:"HorizontalLayout",elements:[{type:"WrapperLayout",config:{main:{rowSpacing:1,header:!0},defaultStyle:!0},elements:[{type:"Control",scope:"#/properties/Component",options:{widget:"Box"},config:{layout:{xs:12,sm:12,md:2},main:{heading:"Component"},style:{float:"left"}}},{type:"Control",scope:"#/properties/pageName",options:{widget:"Box"},config:{layout:{xs:7,sm:7,md:9},main:{heading:" "},style:{float:"right",width:"auto",fontSize:"12px",color:"gray",paddingTop:"10px"}}},{type:"Control",scope:"#/properties/Back_Button",options:{widget:"IconButton"},config:{layout:{xs:2,sm:2,md:.5},main:{icon:"BackIcon",styleDefault:!0,size:"small",onClick:"backHandler",tooltipMessage:"Back"},style:{float:"right"}}}]},{type:"TabLayout",config:{main:{tabLabels:["Core"],defaultStyle:!0,id:"component"}},elements:[{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/type",options:{widget:"SelectInputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Type"}}},{type:"Control",scope:"#/properties/name",options:{widget:"InputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Name",options:[],color:"secondary",required:!0}}},{type:"Control",scope:"#/properties/label",options:{widget:"InputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Label",options:[],color:"secondary",required:!0}}},{type:"Control",scope:"#/properties/parent",options:{widget:"InputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"parent",options:[],color:"secondary",required:!0}}},{type:"Control",scope:"#/properties/columnFormat",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Column Format"}}},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:11,sm:11,md:6,lg:6}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/layout",layout:11.5,options:{detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/key",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Screen Size"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Value",type:"number",helperText:"Number should be in range of 0 to 12",errorMessage:"Number Can't be greater than 12 and can't be less than 0."}}}]}}}]}]},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:11,sm:11,md:6,lg:6}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/btn",options:{widget:"Button"},config:{layout:{xs:11,sm:11,md:2.5,lg:2.5},main:{name:"Ok",startIcon:"ApproveIcon",variant:"contained",color:"info",type:"text",onClick:"okHandler",size:"small"},style:{marginBottom:"8px",float:"right"}}},{type:"Control",scope:"#/properties/btnSubmit",options:{widget:"Button"},config:{layout:{xs:11,sm:11,md:2.5,lg:2.5},main:{name:"Save & Exit",startIcon:"ApproveIcon",variant:"contained",color:"info",type:"text",onClick:"saveHandler",size:"small"},style:{marginBottom:"8px",float:"right"}}},{type:"Control",scope:"#/properties/notify",options:{widget:"Notify"},layout:6}]},CoreSection={type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/type",options:{widget:"SelectInputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Type",type:"text"}}},{type:"Control",scope:"#/properties/name",options:{widget:"InputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Name"}}},{type:"Control",scope:"#/properties/label",options:{widget:"InputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Label"}}},{type:"Control",scope:"#/properties/parent",options:{widget:"InputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"parent",options:[],color:"secondary",required:!0}}},{type:"Control",scope:"#/properties/columnFormat",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Column Format"}}},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:11,sm:11,md:6,lg:6}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/layout",layout:11.5,options:{elementLabelProp:"key",detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/key",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Screen Size"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Value",type:"number",helperText:"Number should be in range of 0 to 12",errorMessage:"Number Can't be greater than 12 and can't be less than 0."}}}]}}}]},EventSection={type:"HorizontalLayout",elements:[{type:"WrapperLayout",config:{main:{divider:!0},wrapperStyle:{border:"1px solid gray"}},elements:[{type:"Control",scope:"#/properties/programType",options:{widget:"Box"},config:{layout:8,main:{heading:"Event Table"},style:{fontFamily:"Roboto",fontWeight:"500",paddingLeft:"-10px",fontSize:"20px"}}},{type:"Control",scope:"#/properties/Back_Button",options:{widget:"IconButton"},config:{layout:3,main:{icon:"AddIcon",styleDefault:!0,size:"small",onClick:"eventAddHandler",tooltipMessage:"Back"},style:{float:"right"}}},{type:"Control",scope:"#/properties/events",options:{widget:"Table"},config:{main:{disableAction:!0,disableSelection:!0,enableDrag:!0}},elements:[{accessorKey:"eventType",header:"Event Type"},{accessorKey:"Handler",header:"Handler"},{accessorKey:"Edit_Approve_Records",header:"Edit Widget",widget:{type:"Control",scope:"#/properties/Edit_Records",options:{widget:"IconButton"},config:{main:{color:"info",size:"small",icon:"EditIcon",tooltipMessage:"Edit This Record",onClick:"eventEditHandler"},style:{color:"#3949ab"}}}},{accessorKey:"Reject_Records",header:"Delete",widget:{type:"Control",scope:"#/properties/RejectButton",accessorKeyName:"Reject_Records",options:{widget:"IconButton"},config:{main:{icon:"RejectIcon",color:"error",tooltipMessage:"Reject This Record",onClick:"deleteEvent"}}}}]}]}]},EmptyBox={type:"Control",scope:"#/properties/empty",options:{widget:"EmptyBox"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{}}},cardLayout={type:"Control",scope:"#/properties/cardLayout",layout:11.5,options:{detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/key",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Screen Size"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Value",type:"number",helperText:"Number should be in range of 0 to 12",errorMessage:"Number Can't be greater than 12 and can't be less than 0."}}}]}}},getArrayControl=(r,s,i)=>({type:"Control",scope:`#/properties/${r}`,layout:11.5,options:{elementLabelProp:s,detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:`#/properties/${s}`,options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:i||"Labels for Tab"}}},EmptyBox]}}}),sizeHolder=getArrayControl("sizeHolder","keyName","Component Name");sizeHolder.options.detail.elements[1]={type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Size"}}};const getInputField=(r,s)=>({type:"Control",scope:`#/properties/${r}`,options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:s}}}),getRadioInputField=(r,s,i)=>({type:"Control",scope:`#/properties/${r}`,options:{widget:"RadioInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:s,options:i}}}),getTextArea=(r,s,i,m)=>({type:"Control",scope:`#/properties/${r}`,options:{widget:"TextArea"},config:{layout:m||12,style:{containerStyle:{borderRadius:"20px"},headerContainerStyle:{},textAreaStyle:{borderRadius:"20px",padding:"20px"}},main:{heading:s,minRows:8,hideButton:i}}}),getSelectField=(r,s,i)=>({type:"Control",scope:`#/properties/${r}`,options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:s,type:"text"}}}),GraphSection={type:"HorizontalLayout",elements:[]},buildPropertiesSection=function(r){let s=_.cloneDeep(GraphSection);switch(r){case"TreeMap":s.elements=[getSelectField("orientation","orientation"),getInputField("linkType","linkType"),getInputField("graphHeight","Graph Height"),getInputField("graphWidth","Graph Width"),getInputField("graphZoomHeight","Zoom Height")];case"InputSlider":s.elements=[getInputField("max","Max Limit"),getInputField("step","Step"),getInputField("min","Min Limit"),getRadioInputField("limitToMax","Applly Max. Limit",["YES","NO"])];break;case"DataGrid":s.elements=[getRadioInputField("divider","Use Header divider",["YES","NO"]),getInputField("elevation","Card Elevation"),getInputField("height","Grid height"),getInputField("justifyContent","justifyContent"),cardLayout];break;case"Stepper":s.elements=[getRadioInputField("resetButton","Reset Button",["YES","NO"]),getRadioInputField("defaultButtonAvailable","Use Default Buttons ",["YES","NO"]),getInputField("resetText","Reset Text"),getInputField("completeText","Complete Text"),getSelectField("orientation","Orientation Type"),getArrayControl("sectionLabels","label")];break;case"PopUp":s.elements=[getRadioInputField("fullScreen","FullScreen",["YES","NO"]),getRadioInputField("fullWidth","FullWidth",["YES","NO"]),getInputField("maxWidth","Max. Width"),EmptyBox];break;case"Text":s.elements=[getInputField("placeholder","Placeholder"),EmptyBox,getArrayControl("InputFormatingAndMasking","formatElement","Format Element")];break;case"TextArea":s.elements=[getInputField("placeholder","Placeholder"),EmptyBox];break;case"SpeedoMeter":s.elements=[getInputField("segments","Segments Count"),getInputField("heading","Container Heading"),getInputField("heading","Container Heading"),getInputField("speedoCaption","Speedometer Caption"),getInputField("width","Speedometer Width")];break;case"RankCard":s.elements=[getInputField("rank","Rank"),getInputField("image","Image Url"),getInputField("title","Card Title"),getInputField("description","Card Description")];break;case"LeaderBoard":s.elements=[getInputField("valueLabel","Value Label"),getInputField("firstImage","First Image url"),getInputField("secondImage","Second Image url"),getInputField("thirdImage","Third Image url"),getTextArea("functionCode","Write Compare Code",!1)];break;case"CardSlider":s.elements=[getInputField("heading","Heading"),getInputField("iconName","Icon Name")];break;case"ProgressBar":case"ProgressBarCard":s.elements=[getInputField("heading","Heading"),getInputField("bottomLabel_1","First BottomLabel"),getInputField("bottomLabel_2","Second BottomLabel"),getInputField("bottomLabel_3","Third BottomLabel")];break;case"card":s.elements=[getInputField("url","Image Url"),getInputField("label","Label"),getInputField("description","Description"),EmptyBox];break;case"Button":s.elements=[getSelectField("buttonType","Button Type"),getSelectField("iconName","Icon Name"),getSelectField("color","Color"),getInputField("tooltipMessage","Tooltip Message"),getSelectField("defaultStyle","Default Style"),EmptyBox];break;case"Graph":s.elements=[getInputField("height","Height"),getInputField("heading","Heading"),getSelectField("graphType","Graph Type"),getInputField("leftLabel","Left Label"),getInputField("bottomLabel","Bottom Label"),getRadioInputField("legendHide","Legend Hide",["YES","No"]),getInputField("yAxisValue","Y-AxisValue"),getInputField("xAxisValue","X-AxisValue"),getArrayControl("legendLabels","label"),getArrayControl("pieArcColors","color")];break;case"WrapperSection":s.elements=[getRadioInputField("divider","Divider",["YES","No"]),getRadioInputField("isAccordion","Accordion",["YES","No"]),getRadioInputField("defaultStyle","Default Style",["YES","No"]),getInputField("rowSpacing","Row Spacing")];break;case"TabSection":s.elements=[getRadioInputField("verticalOrientation","Vertical Orientation",["YES","NO"]),getRadioInputField("lazyLoad","Lazy Load",["YES","NO"]),getArrayControl("sectionLabels","label")];break;case"Table":case"LazyLoadingTable":s.elements=[getRadioInputField("lazyLoading","Lazy Loading",["YES","NO"]),getRadioInputField("SelectionAvailable","Selection Available",["YES","NO"]),getRadioInputField("ColumnResizingAvailable","ColumnResizing Available",["YES","NO"]),getRadioInputField("DragAvailable","Drag Available",["YES","NO"]),getRadioInputField("downloadAllData","Download All Data",["YES","NO"]),getInputField("selectKey","Selection Key"),getArrayControl("Table_Download_Keys_Name","KeyName","Table Key Name"),sizeHolder];break;case"Radio":s.elements=[getArrayControl("sectionLabels","label","Options Of Radio")];break;case"Select":s.elements=[getRadioInputField("lazyLoading","Lazy Loading",["YES","NO"]),getRadioInputField("freeSolo","FreeSolo",["YES","NO"])];break;case"MultipleSelect":s.elements=[getRadioInputField("lazyLoading","Lazy Loading",["YES","NO"]),EmptyBox];break}return s},StyleSection={type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/style",options:{widget:"TextArea"},config:{layout:{xs:12,sm:12,md:12,lg:12},style:{containerStyle:{borderRadius:"20px"},headerContainerStyle:{},textAreaStyle:{borderRadius:"20px",padding:"20px"}},main:{heading:"JSON Style",minRows:8,hideButton:!0}}}]},TableSection={type:"HorizontalLayout",elements:[{type:"WrapperLayout",config:{main:{},wrapperStyle:{border:"1px solid gray"}},elements:[{type:"Control",scope:"#/properties/programType",options:{widget:"Box"},config:{layout:8,main:{heading:"Components Table"},style:{fontFamily:"Roboto",fontWeight:"500",paddingLeft:"-10px",fontSize:"20px"}}},{type:"Control",scope:"#/properties/Back_Button",options:{widget:"IconButton"},config:{layout:3,main:{icon:"AddIcon",styleDefault:!0,size:"small",onClick:"widgetAddClickHandler",tooltipMessage:"Add New"},style:{float:"right"}}},{type:"Control",scope:"#/properties/elements",options:{widget:"Table"},config:{main:{disableAction:!0,disableSelection:!0,enableDrag:!0}},elements:[{accessorKey:"name",header:"Name"},{accessorKey:"type",header:"Type"},{header:"Edit Record",field:"Reject_Records",flex:1,widget:{type:"Control",scope:"#/properties/RejectButton",options:{widget:"IconButton"},config:{main:{icon:"EditIcon",color:"primary",onClick:"editComponents",tooltipMessage:"Reject This Record"}}}},{header:"Delete",field:"Reject_Records",flex:1,widget:{type:"Control",scope:"#/properties/RejectButton",options:{widget:"IconButton"},config:{main:{icon:"RejectIcon",color:"error",onClick:"deleteComponents",tooltipMessage:"Reject This Record"}}}}]}]}]},ValueTab={type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/value",layout:11.5,options:{detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/label",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Label"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Value"}}}]}}}]},ValidationSection={type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/validation",layout:11.5,options:{elementLabelProp:"validationType",detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/validationType",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Validation Type"}}},{type:"Control",scope:"#/properties/validationValue",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Validation Value"}}}]}}}]};var buildConfig=r=>{const s=_.cloneDeep(r);let i={};return s.pageName&&delete s.pageName,s.eventsSelected&&delete s.eventsSelected,(s.type==="Table"||s.type==="WrapperSection"||s.type==="TabSection")&&(i.elements=s.elements||[],s.elements&&delete s.elements),i.events=s.events||[],s.events&&delete s.events,i={...s,...i},i};const createLayoutFormat=r=>{if(_.isEmpty(r))return{xs:11,sm:11,md:5.5,lg:5.5};let s={};return r.map(i=>{s[i.key||"xs"]=+i.value||5.5}),s},flatObjectValueInArray=r=>{if(r[0].length<1)return;const s=Object.keys(r[0])[0];return r.map(m=>m[s])},clearFromLocalStorage=()=>{localStorage.removeItem("pageFormdata")},getNavigationHistory=(r,s)=>{if(s){let i=r.name;const m=s.split("."),g=[];return m.map((v,y)=>{if(y===0){g.push(v);return}g.push(`${g[y-1]}.${v}`)}),g.map(v=>{const y=_.get(r,v);y?i=i+` > ${(y==null?void 0:y.name)||(y==null?void 0:y.eventType)}`:i=i+" > NewComponent"}),{pageName:i}}},saveFormdataInLocalStorage=(r,s)=>{let i;if(s){const m=getFormdataFromLocalStorage();i=_.set(m,s,buildConfig(r))}else i=buildConfig(r);return localStorage.setItem("pageFormdata",JSON.stringify(i)),i},getFormdataFromLocalStorage=r=>{const s=localStorage.getItem("pageFormdata")?JSON.parse(localStorage.getItem("pageFormdata")):void 0;let i;return r&&(i=_.get(s,r),i={...i,...getNavigationHistory(s,r)}),i||(i=getNavigationHistory(s,r)),i||s};async function saveHandler(r,s,i,m){var y,C;(y=r.searchParams)==null||y.get("id");const g=(C=r.searchParams)==null?void 0:C.get("path");saveFormdataInLocalStorage(r.ctx.core.data,g);const v=JSON.parse(localStorage.getItem("pageFormdata"));if(_.isEmpty(r.ctx.core.errors))try{const F=await i(r,s,v);navigateHandler(r,!0,m?`/${m}?id=${F.id}`:"/PageMasterRecords")}catch{navigateHandler(r,!1)}}const navigateHandler=(r,s,i)=>{s?(localStorage.removeItem("pageFormdata"),r.navigate(i||-1),r.setNotify({SuccessMessage:"Submit Successfully",Success:!0})):(r.setValidation("ValidateAndShow"),r.setNotify({Fail:!0,FailMessage:"Errors on Page"}))};function okHandler(r){var i;const s=(i=r.searchParams)==null?void 0:i.get("path");console.log(r.ctx.core.errors),_.isEmpty(r.ctx.core.errors)?(saveFormdataInLocalStorage(r.ctx.core.data,s),r.navigate(-1),r.setNotify({SuccessMessage:"Save Successfully",Success:!0})):(r.setValidation("ValidateAndShow"),r.setNotify({Fail:!0,FailMessage:"Errors on Page"}))}const sectionLabels={Select:["Core","Properties","Value","Event","Style","Validation"],MultipleSelect:["Core","Properties","Value","Event","Style","Validation"],Table:["Core","Components","Properties","Event","Style","Validation"],LeaderBoard:["Core","Components","Properties","Event","Style","Validation"],WrapperSection:["Core","Components","Properties","Style","Validation"],TabSection:["Core","Components","Properties","Style","Validation"],SpeedoMeter:["Core","Properties","Event","Style","Validation"],card:["Core","Properties","Event","Style","Validation"],UploadFile:["Core","Event","Style","Validation"],Graph:["Core","Properties","Event","Style","Validation"],DownloadFile:["Core","Event","Style","Validation"],Box:["Core","Event","Style","Validation"],Properties:["Core","Properties","Event","Style","Validation"],ProgressBarCard:["Core","Properties","Event","Style","Validation"],RankCard:["Core","Properties","Event","Style","Validation"],Slider:["Core","Components","Event","Style","Validation"],Timer:["Core","Event","Style","Validation"],Rank:["Core","Event","Style","Validation"],Button:["Core","Properties","Event","Style","Validation"],Array:["Core","Components","Validation"],Radio:["Core","Properties","Event","Style","Validation"],Text:["Core","Properties","Event","Style","Validation"],TextArea:["Core","Properties","Event","Style","Validation"],PopUp:["Core","Components","Properties","Style"],Stepper:["Core","Components","Properties","Event","Style"],DataGrid:["Core","Components","Properties","Event","Style"],InputSlider:["Core","Properties","Event","Style","Validation"],TreeMap:["Core","Components","Properties","Event","Style"]},refreshPage=(r,s)=>{var m;const i=_.cloneDeep(componentBasicUiSchema);if(r){const g={Core:CoreSection,Value:ValueTab,Style:StyleSection,Event:EventSection,Components:TableSection,Properties:buildPropertiesSection(r),Validation:ValidationSection},v=(m=sectionLabels[r])==null?void 0:m.map(y=>g[y]);i.elements[1].config.main.tabLabels=sectionLabels[r]||["Core","style","Event","Validation"],i.elements[1].elements=v||[CoreSection,StyleSection,EventSection,ValidationSection]}s.setUiSchema(i)};var Component=(r,s,i,m)=>({setPage:async function(){const g=await this.getFormdata();r.setFormdata(g);const v=this.getSchema();r.setSchema(v),this.refreshPage(g==null?void 0:g.type,r)},refreshPage,getFormdata:function(){var v;const g=(v=r.searchParams)==null?void 0:v.get("path");return getFormdataFromLocalStorage(g)},getSchema:function(){return ComponentSchema},okHandler:()=>okHandler(r),saveHandler:async()=>await saveHandler(r,m,i,"PageMaster"),onChange:function(){var g,v,y,C;((g=r==null?void 0:r.formData)==null?void 0:g.type)!==((v=r==null?void 0:r.newData)==null?void 0:v.type)&&((y=r==null?void 0:r.newData)==null?void 0:y.type)!==void 0&&this.refreshPage((C=r==null?void 0:r.newData)==null?void 0:C.type,r)},editComponents:function(){var C,F,z;const g=s.path.split(".")[1],v=(C=r.searchParams)==null?void 0:C.get("path"),y=(F=r.searchParams)==null?void 0:F.get("id");if(saveFormdataInLocalStorage(r.ctx.core.data,v),v){const Q=`${(z=r.searchParams)==null?void 0:z.get("path")}.elements[${g}]`;r.searchParams.set("path",Q),r.setSearchParams(r.searchParams),this.setPage()}else r.navigate(`/Component?path=${`elements[${g}]`}&id=${y}`)},deleteComponents:function(){var F;const g=(F=r.searchParams)==null?void 0:F.get("path"),v=s.path.split(".")[1];r.formData.elements.splice(v,1);const y=saveFormdataInLocalStorage(r.ctx.core.data,g),C=g?_.get(y,g):y;r.setFormdata(C)},deleteEvent:function(){var C;const g=(C=r.searchParams)==null?void 0:C.get("path"),v=s.path.split(".")[1];r.formData.events.splice(v,1);const y=saveFormdataInLocalStorage(r.ctx.core.data,g);r.setFormdata(_.get(y,g))},widgetAddClickHandler:function(){var y;Array.isArray(r.formData.elements)||(r.formData.elements=[]);const g=(y=r.searchParams)==null?void 0:y.get("path");saveFormdataInLocalStorage(r.ctx.core.data,g);const v=`${g}.elements[${r.formData.elements.length}]`;r.searchParams.set("path",v),r.setSearchParams(r.searchParams),this.setPage()},eventEditHandler:function(){var F,z;const g=s.path.split(".")[1],v=(F=r.searchParams)==null?void 0:F.get("path"),y=(z=r.searchParams)==null?void 0:z.get("id");saveFormdataInLocalStorage(r.ctx.core.data,v);const C=`${v}.events[${g}]`;r.navigate(`/ComponentEvents?path=${C}&id=${y}`)},eventAddHandler:function(){var C,F;const g=(C=r.searchParams)==null?void 0:C.get("path"),v=(F=r.searchParams)==null?void 0:F.get("id");Array.isArray(r.formData.events)||(r.formData.events=[]),saveFormdataInLocalStorage(r.ctx.core.data,g);const y=`${g}.events[${r.formData.events.length}]`;r.navigate(`/ComponentEvents?path=${y}&id=${v}`)},backHandler:function(){r.navigate(-1)}}),pageMaster=r=>{const{store:s,dynamicData:i,submitHandler:m,service:g}=r;return{setPage:async function(){const v=await this.getFormdata();s.setFormdata(v);const y=await this.getUiSchema(),C=await this.getSchema();s.setSchema(C),s.setUiSchema(y)},getFormdata:async function(){var F;const v=(F=s.searchParams)==null?void 0:F.get("id");let y={};v&&await g.get(`/page/getById?id=${v}`).then(z=>{var W;y=(W=z.data)==null?void 0:W.config});const C=getFormdataFromLocalStorage();return C||(saveFormdataInLocalStorage(y),y)},getUiSchema:function(){return PageMasterUiSchema},getSchema:()=>PageMasterSchema,backHandler:()=>{localStorage.removeItem("pageFormdata"),s.navigate("/PageMasterRecords")},onAddClickHandler:function(){var C;const v=(C=s.searchParams)==null?void 0:C.get("id");Array.isArray(s.formData.elements)||(s.formData.elements=[]);const y=saveFormdataInLocalStorage(s.ctx.core.data);v?s.navigate(`/Component?path=${`elements[${y==null?void 0:y.elements.length}]`}&id=${v}`):s.navigate(`/Component?path=${`elements[${y==null?void 0:y.elements.length}]`}`)},saveHandler:async()=>await saveHandler(s,g,m),Edit_Components:Component(s,i,m,g).editComponents,Delete_Components:Component(s,i,m,g).deleteComponents,eventAddHandler:function(){var C;const v=(C=s.searchParams)==null?void 0:C.get("id");Array.isArray(s.formData.events)||(s.formData.events=[]),saveFormdataInLocalStorage(s.ctx.core.data);const y=`events[${s.formData.events.length}]`;s.navigate(`/ComponentEvents?path=${y}&id=${v}`)},editEvent:function(){var F;const v=i.path.split(".")[1],y=(F=s.searchParams)==null?void 0:F.get("id");saveFormdataInLocalStorage(s.ctx.core.data);const C=`events[${v}]`;s.navigate(`/ComponentEvents?path=${C}&id=${y}`)},deleteEvent:function(){const v=i.path.split(".")[1];s.formData.events.splice(v,1);const y=saveFormdataInLocalStorage(s.ctx.core.data);s.setFormdata(y)}}};const EventSchema={type:"object",properties:{headers:{type:"array",items:{type:"object",properties:{headers_key:{type:"string"},headers_value:{type:"string"}}}},method:{type:"string",oneOf:[{title:"Get",const:"get"},{title:"Post",const:"post"},{title:"Delete",const:"delete"},{title:"Put",const:"put"}]},refreshElements:{type:"array",items:{type:"object",properties:{value:{type:"string"}}}},eventType:{type:"string",oneOf:[{title:"Click Event",const:"onClick"},{title:"Load Event",const:"onLoad"},{title:"Change Event",const:"onChange"},{title:"Mount Event",const:"onMount"},{title:"Success",const:"Success"},{title:"onStart",const:"onStart"},{title:"Cell Renderer",const:"onCellRenderer"},{title:"File Upload Event",const:"onUpload"},{title:"Back Event",const:"onBack"},{title:"Next Event",const:"onNext"},{title:"File Download Event",const:"onDownload"},{title:"Fail",const:"Fail"}]},Handler:{type:"string",oneOf:[{title:"Custom",const:"custom"},{title:"Api",const:"api"},{title:"Inbuilt Function",const:"inBuiltFunction"},{title:"Refresh",const:"refresh"}]},inBuiltFunctionType:{type:"string",oneOf:[{title:"RankProvider",const:"RankProvider"},{title:"Download File",const:"downloadFile"},{title:"Download",const:"download"}]},body:{type:"array",items:{type:"object",properties:{body_key:{type:"string"},body_value:{type:"string"}}}}},required:["eventType","Handler"]},EventUiSchema={type:"HorizontalLayout",elements:[{type:"WrapperLayout",config:{main:{rowSpacing:1,header:!0},defaultStyle:!0},elements:[{type:"Control",scope:"#/properties/Component",options:{widget:"Box"},config:{layout:{xs:12,sm:12,md:2},main:{heading:"Component"},style:{float:"left"}}},{type:"Control",scope:"#/properties/pageName",options:{widget:"Box"},config:{layout:{xs:7,sm:7,md:9},main:{heading:" "},style:{float:"right",width:"auto",fontSize:"12px",color:"gray",paddingTop:"10px"}}},{type:"Control",scope:"#/properties/Back_Button",options:{widget:"IconButton"},config:{layout:{xs:2,sm:2,md:.5},main:{icon:"BackIcon",styleDefault:!0,size:"small",onClick:"backHandler",tooltipMessage:"Back"},style:{float:"right"}}}]},{type:"TabLayout",config:{main:{tabLabels:["Core","Response Event"],defaultStyle:!0,id:"event"}},elements:[{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/eventType",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Event Type",type:"text"}}},getSelectField("Handler","Handler")]},{type:"WrapperLayout",config:{main:{divider:!0},wrapperStyle:{border:"1px solid gray"}},elements:[{type:"Control",scope:"#/properties/heading",options:{widget:"Box"},config:{layout:8,main:{heading:"Response Event"},style:{fontFamily:"Roboto",fontWeight:"500",paddingLeft:"-10px",fontSize:"20px"}}},{type:"Control",scope:"#/properties/AddButton",options:{widget:"IconButton"},config:{layout:3,main:{icon:"AddIcon",styleDefault:!0,size:"small",onClick:"addEvent",tooltipMessage:"Back"},style:{float:"right"}}},{type:"Control",scope:"#/properties/events",options:{widget:"Table"},config:{main:{disableAction:!0,disableSelection:!0,enableDrag:!0}},elements:[{accessorKey:"eventType",header:"Event Type"},{accessorKey:"Handler",header:"Handler"},{accessorKey:"Edit_Approve_Records",header:"Edit Widget",widget:{type:"Control",scope:"#/properties/Edit_Records",options:{widget:"IconButton"},config:{main:{color:"info",size:"small",icon:"EditIcon",tooltipMessage:"Edit This Record",onClick:"editEvent"},style:{color:"#3949ab"}}}},{accessorKey:"Reject_Records",header:"Delete",widget:{type:"Control",scope:"#/properties/RejectButton",options:{widget:"IconButton"},config:{main:{icon:"RejectIcon",color:"error",tooltipMessage:"Reject This Record",onClick:"deleteEvent"}}}}]}]}]},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:11,sm:11,md:6,lg:6}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/btn",options:{widget:"Button"},config:{layout:{xs:11,sm:11,md:2.5,lg:2.5},main:{name:"Ok",startIcon:"ApproveIcon",variant:"contained",color:"info",type:"text",onClick:"okHandler",size:"small"},style:{marginBottom:"8px",float:"right"}}},{type:"Control",scope:"#/properties/btnSubmit",options:{widget:"Button"},config:{layout:{xs:11,sm:11,md:2.5,lg:2.5},main:{name:"Save & Exit",startIcon:"ApproveIcon",variant:"contained",color:"info",type:"text",onClick:"saveHandler",size:"small"},style:{marginBottom:"8px",float:"right"}}},{type:"Control",scope:"#/properties/notify",options:{widget:"Notify"},layout:6}]},APISection={type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/method",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Method",type:"text"}}},{type:"Control",scope:"#/properties/path",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Path",type:"text",multiple:!1,options:[]}}},{type:"Control",scope:"#/properties/headers",layout:11.5,options:{elementLabelProp:"key",detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/key",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Key"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Value"}}}]}}},{type:"Control",scope:"#/properties/body",layout:11.5,options:{elementLabelProp:"key",detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/key",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Key"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Value"}}}]}}},getTextArea("apiBody","Transformer",!0,12)]},refreshSectionUiSchema={type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/refreshElements",layout:11.5,options:{detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Value"}}},{type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{}}}]}}}]};var event=(r,s,i,m,g)=>({setPage:async function(){const v=await this.getFormData();r.setFormdata(v);const y=await this.getSchema();r.setSchema(y),this.refreshPage(v.Handler,r)},refreshPage:(v,y)=>{const C=_.cloneDeep(EventUiSchema),F=_.cloneDeep(EventSchema);v&&(v==="custom"?(C.elements[1].elements[0].elements[2]=getRadioInputField("isSync","Run in Sync",["Yes","No"]),C.elements[1].elements[0].elements[3]=getTextArea("eventCode","Write Custom Code",!1),F.required=["eventType","Handler","eventCode"]):v==="api"?(C.elements[1].elements[0].elements[2]=APISection,F.required=["eventType","Handler","method","path"]):v==="inBuiltFunction"?(C.elements[1].elements[0].elements[2]=getSelectField("inBuiltFunctionType","Function Name"),C.elements[1].elements[0].elements[3]=getTextArea("funcParametersCode","Write Custom Code for Functions Parameter",!0,{xs:12,sm:12,md:6}),F.required=["eventType","Handler","inBuiltFunctionType"]):v==="refresh"&&(C.elements[1].elements[0].elements[2]=refreshSectionUiSchema,F.properties.refreshElements.required=["value"],F.properties.refreshElements.items.required=["value"],F.required=["eventType","Handler","refreshElements"])),g&&(F.properties.inBuiltFunctionType.oneOf=[...F.properties.inBuiltFunctionType.oneOf,...g]),y.setSchema(F),y.setUiSchema(C)},getFormData:Component(r,s,i,m).getFormdata,getUiSchema:function(){return EventUiSchema},getSchema:()=>EventSchema,okHandler:()=>okHandler(r),saveHandler:async()=>await saveHandler(r,m,i,"PageMaster"),onChange:function(){var v,y,C;((v=r==null?void 0:r.formData)==null?void 0:v.Handler)!==((y=r==null?void 0:r.newData)==null?void 0:y.Handler)&&((C=r==null?void 0:r.newData)==null?void 0:C.Handler)!==void 0&&this.refreshPage(r.newData.Handler||r.formdata.Handler,r)},addEvent:function(){var C,F,z;const v=(C=r.searchParams)==null?void 0:C.get("path");Array.isArray(r.formData.events)||(r.formData.events=[]),saveFormdataInLocalStorage(r.ctx.core.data,v);const y=`${v}.events[${(z=(F=r.formData)==null?void 0:F.events)==null?void 0:z.length}]`;r.searchParams.set("path",y),r.setSearchParams(r.searchParams),this.setPage()},editEvent:function(){var F;const v=s.path.split(".")[1],y=(F=r.searchParams)==null?void 0:F.get("path");saveFormdataInLocalStorage(r.ctx.core.data,y);const C=`${y}.events[${v}]`;r.searchParams.set("path",C),r.setSearchParams(r.searchParams),this.setPage()},deleteEvent:Component(r,s,i,m).deleteEvent,backHandler:function(){r.navigate(-1)}});const downloadFile$1=r=>{const s=r.name.split("."),i=r.data,m=window.atob(i);let g;g=new File([m],s[s.length-1]);const v=URL.createObjectURL(g),y=document.createElement("a");y.href=s[s.length-1]==="pdf"?"data:application/octet-stream;base64,"+i:v,y.download=`${r.name}`,document.body.appendChild(y),y.click(),URL.revokeObjectURL(v),document.body.removeChild(y)},doDownload=(r,s)=>{let i=`${s.defaults.baseURL}/${r.path}`;r!=null&&r.params&&Object.keys(r==null?void 0:r.params).map((v,y)=>{i=i+`${y===0?"?":"&"}${v}=${r==null?void 0:r.params[v]}`});const m=document.createElement("a");m.href=i,document.body.appendChild(m),m.click(),m.parentNode.removeChild(m)},executeEvents=r=>{var g,v,y;let s=[],i=null;if(r.config.isSync!=="Yes")return shouldEventExecute(r).then(C=>C?executeEventsHandler(r):{response:void 0,events:void 0}).then(C=>{var z;i=C,s=(z=r.config)==null?void 0:z.events.filter(W=>W.eventType==="Success")}).catch(C=>{var W,Q;const F=(Q=(W=r.config)==null?void 0:W.events)==null?void 0:Q.filter(he=>he.eventType==="Fail");s=(F==null?void 0:F.length)>0?F:[]}).then(()=>{if((s==null?void 0:s.length)>0)return s.reduce((C,F)=>C.then(()=>executeEvents({...r,config:F,parentEventOutput:i})),Promise.resolve())}).then(()=>i);if(!shouldEventExecute(r))return{response:void 0,events:void 0};try{i=executeEventsHandler(r),s=(g=r.config)==null?void 0:g.events.filter(z=>z.eventType==="Success")}catch{const C=(y=(v=r.config)==null?void 0:v.events)==null?void 0:y.filter(z=>z.eventType==="Fail");s=(C==null?void 0:C.length)>0?C:[]}if((s==null?void 0:s.length)>0)for(const C of s)executeEvents({...r,config:C,parentEventOutput:i});return i};function executeEventsHandler(r){var s,i,m;if(r.config.Handler==="api")return executeApiRequest(r);if(r.config.Handler==="inBuiltFunction")return executeInBuiltFunctionHandler(r);if(r.config.Handler==="custom")return executeCustomHandler(r);if(r.config.Handler==="refresh")return executeRefreshHandler(r);if(r.config.Handler==="mergeFormdata")return mergeFormdata(r.parentEventOutput,r.componentName,r.config,r.store,r.service);if(r.config.Handler==="onBackHandler")return(s=r.store.functionParameters)==null?void 0:s.handleBack();if(r.config.Handler==="onNextHandler")return(i=r.store.functionParameters)==null?void 0:i.handleNext();if(r.config.Handler==="onResetHandler")return(m=r.store.functionParameters)==null?void 0:m.handleReset()}function getRefreshElements(r,s){var m;let i=[];return((m=r==null?void 0:r.refreshElements)==null?void 0:m.length)>0?i=r.refreshElements.map(g=>g.value):s!=null&&s.onLoad&&(i=Object.keys(s==null?void 0:s.onLoad),i.push(i[0])),i}function executeRefreshHandler(r){const s=getRefreshElements(r.config,r.eventGroups);return Promise.all(s.map(i=>Promise.all(r.eventGroups.onLoad[i].map(m=>executeEvents({...r,config:m,componentName:i})))))}function executeApiRequest(r){var g;const s={...(g=r.userValue)==null?void 0:g.payload},i={"X-Requested-With":"XMLHttpRequest","Access-Control-Allow-Origin":"*"},m=buildApiPayload(r.config,s,i,r.store,r.dynamicData,r.userValue,r.service);return r.service[r.config.method](r.config.path,m.body,{headers:m.headers}).then(v=>v)}function executeInBuiltFunctionHandler(params){let parameter={};if(params.config.funcParametersCode){const makeFunc=eval(params.config.funcParametersCode);parameter=makeFunc(params.store,params.dynamicData,params.userValue,params.parentEventOutput,params.service),params.serviceHolder[params.config.inBuiltFunctionType](parameter,params.service)}else params.serviceHolder[params.config.inBuiltFunctionType](params.store,params.dynamicData,params.userValue,params.parentEventOutput,params.service)}function executeCustomHandler(params){const makeFunc=eval(params.config.eventCode);return params.config.isSync!=="Yes"?makeFunc(params.store,params.dynamicData,params.userValue,params.parentEventOutput,params.service,params.componentName).then(r=>r):makeFunc(params.store,params.dynamicData,params.userValue,params.parentEventOutput,params.service,params.componentName)}function mergeFormdata(r,s,i,m,g){i.type==="Select"&&!(_.isEmpty(r==null?void 0:r.data)&&(r==null?void 0:r.data))?m.setSchema(v=>{var y;return{...v,properties:{...v.properties,[s]:{...(y=v.properties)==null?void 0:y[s],oneOf:r.data}}}}):i.type==="MultipleSelect"&&!(_.isEmpty(r==null?void 0:r.data)&&(r==null?void 0:r.data))?m.setSchema(v=>{var y;return{...v,properties:{...v.properties,[s]:{...(y=v.properties)==null?void 0:y[s],type:"array",items:{oneOf:r==null?void 0:r.data}}}}}):i.type==="page"?_.isEmpty(r==null?void 0:r.data)&&(r==null?void 0:r.data)||m.setFormdata(v=>({...v,...r==null?void 0:r.data})):r&&m.setFormdata(v=>{var y;return{...v,[s]:i.lazyLoading?(y=r==null?void 0:r.data)==null?void 0:y.data:r.data}})}const buildBodyFormat=(r,s,i)=>{let m={...i==null?void 0:i.payload};return r.map(g=>{var v,y;if(typeof(g==null?void 0:g.value)!="string")m[g.key]=g.value;else if((v=g==null?void 0:g.value)!=null&&v.startsWith("$userValue")){const C=g.value.substring(11);m[g.key]=_.get(i,C)}else if((y=g==null?void 0:g.value)!=null&&y.startsWith("$")){const C=g.value.substring(1);m[g.key]=_.get(s,C)}else(g==null?void 0:g.value)==="*"&&(g==null?void 0:g.key)==="*"?m={...m,...s}:(g==null?void 0:g.value)==="*"?m[g.key]=s:m[g.key]=g.value}),m},buildHeadersFormat=r=>{const s={"X-Requested-With":"XMLHttpRequest"};return r.map(i=>{s[i.key]=i.value}),s};function shouldEventExecute(r){var i,m;const s=(m=(i=r.config)==null?void 0:i.events)==null?void 0:m.filter(g=>g.eventType==="onStart");return(s==null?void 0:s.length)>0?executeEventsHandler({...r,config:s[0]}).then(g=>g):r.config.isSync!=="Yes"?Promise.resolve(!0):!0}function buildApiPayload(compConfig,body,headers,store,dynamicData,userValue,service){var r,s;compConfig!=null&&compConfig.headers&&(headers=buildHeadersFormat(compConfig.headers)),compConfig.body&&(body={...buildBodyFormat(compConfig.body,store.newData||((s=(r=store==null?void 0:store.ctx)==null?void 0:r.core)==null?void 0:s.data)||store.formData,userValue)});const promiseChain={body,headers};if(compConfig.apiBody){const makeFunc=eval(compConfig.apiBody);return{body:makeFunc(store,dynamicData,userValue,promiseChain.body),headers:promiseChain.headers}}return promiseChain}let compType,eventGroups={};const notifyUiSchema={type:"Control",scope:"#/properties/notify",options:{widget:"Notify"},layout:6},extractEvents=r=>{function s(i){i.events&&i.events.forEach(m=>{var v;i.type&&(compType=i.type),eventGroups[m.eventType]||(eventGroups[m.eventType]={}),eventGroups[m.eventType][i.name]||(eventGroups[m.eventType][i.name]=[]);const g=(v=m==null?void 0:m.events)==null?void 0:v.find(y=>y.eventType==="Success");!g&&m.eventType==="onLoad"&&m.events.push({Handler:"mergeFormdata",eventType:"Success",type:compType,lazyLoading:r.lazyLoading==="YES"}),!g&&(m.eventType==="onBack"||m.eventType==="onNext"||m.eventType==="onReset")&&m.events.push({Handler:`${m.eventType}Handler`,eventType:"Success",type:compType,lazyLoading:r.lazyLoading==="YES"}),eventGroups[m.eventType][i.name].push({...m,type:compType})})}return s(r),r!=null&&r.elements&&r.elements.forEach(extractEvents),eventGroups};var service=r=>{let s={config:{},componentName:"",store:r.store,dynamicData:r.dynamicData,userValue:r.userValue,service:r.service,serviceHolder:{downloadFile:downloadFile$1,download:doDownload,...r.functionsProvider},eventGroups,functionsProvider:r.functionsProvider};return{setPage:async function(){var F,z;r.store.setFormdata({});const i=JSON.stringify({pageName:r.store.pageName});let m;const g=localStorage.getItem("pagemasterMetaData");if(g)m=JSON.parse(g);else{const W=await r.service.post("/page/getByName",i,{headers:{"Content-Type":"application/json"}});m=(await r.service.get(`/page/getById?id=${(F=W==null?void 0:W.data)==null?void 0:F.id}`,{headers:{"Content-Type":"application/json"}})).data,localStorage.setItem("pagemasterMetaData",JSON.stringify({schema:m==null?void 0:m.schema,uiSchema:m==null?void 0:m.uiSchema,config:m==null?void 0:m.config}))}const v=m==null?void 0:m.config,y=m==null?void 0:m.uiSchema,C=(z=m==null?void 0:m.schema)!=null?z:{type:"object",properties:{}};eventGroups={},eventGroups=extractEvents(v),s={config:{},componentName:"",store:r.store,dynamicData:r.dynamicData,userValue:r.userValue,service:r.service,functionsProvider:r.functionsProvider,serviceHolder:this,eventGroups},await executeRefreshHandler({config:{},componentName:"",store:r.store,dynamicData:r.dynamicData,userValue:r.userValue,service:r.service,serviceHolder:this,eventGroups}),r.store.setSchema(W=>({...C,properties:{...C.properties,...W.properties}})),y.elements.push(notifyUiSchema),r.store.setUiSchema(y)},onCellRenderer:i=>{var v;let m={};const g=((v=r.dynamicData)==null?void 0:v.tableButtonPath)||r.dynamicData.path.split(".")[0];for(const y of eventGroups==null?void 0:eventGroups.onCellRenderer[g])s.store.functionParameters=i,m=executeEvents({...s,config:y,componentName:g});return console.log("finalResponse >> >> >> ",m),m},onClick:function(){this.callHandler("onClick")},onMount:function(){this.callHandler("onMount")},onFileDownload:function(){this.callHandler("onDownload")},onFileUpload:function(){this.callHandler("onUpload")},backHandler:function(){r.store.navigate(-1)},onPaginationChange:async function(i){var v;const m=[{key:"size",value:i.pagination.pageSize},{key:"pageIndex",value:i.pagination.pageIndex},{key:"sorting",value:i.sorting||[]},{key:"filters",value:i.columnFilters||[]},{key:"globalFilter",value:(v=i.globalFilter)!=null?v:""}],g=await this.updateConfigApiBody(i,m);return g==null?void 0:g.data},getSelectOptions:async function(i){if(i.serachValue!==""&&i.serachValue!==void 0){const m=[{key:"searchValue",value:i.serachValue},{key:"currentValue",value:i.currentValue}],g=await this.updateConfigApiBody(i,m);return g==null?void 0:g.data}},onChange:async function(){if(eventGroups.onChange){const i=Object.keys(eventGroups.onChange);Promise.all(i.map(async m=>{var g,v;if(((g=r.store)==null?void 0:g.formData[m])!==r.store.newData[m]&&((v=r.store)==null?void 0:v.newData[m])!==void 0)for(const y of eventGroups.onChange[m])await executeEvents({...s,config:y,componentName:m})}))}},updateConfigApiBody:async function(i,m){var v;let g;for(const y of eventGroups==null?void 0:eventGroups.onLoad[i.path]){y.body?y.body=[...y.body,...m]:y.body=m;const C=(v=y==null?void 0:y.events)==null?void 0:v.filter(F=>F.Handler!=="mergeFormdata");y.events=C!=null?C:[],g=await executeEvents({...s,config:y,componentName:i.path})}return g},onBack:async function(i){var g,v;const m=((g=r.dynamicData)==null?void 0:g.tableButtonPath)||r.dynamicData.path.split(".")[0];await this.callHandler("onBack",i),((v=eventGroups==null?void 0:eventGroups.onBack)==null?void 0:v[m])===void 0&&(i==null||i.handleBack())},onNext:async function(i){var g,v;const m=((g=r.dynamicData)==null?void 0:g.tableButtonPath)||r.dynamicData.path.split(".")[0];await this.callHandler("onNext",i),((v=eventGroups==null?void 0:eventGroups.onNext)==null?void 0:v[m])===void 0&&(i==null||i.handleNext())},onReset:async function(i){var g,v;const m=((g=r.dynamicData)==null?void 0:g.tableButtonPath)||r.dynamicData.path.split(".")[0];await this.callHandler("onReset",i),((v=eventGroups==null?void 0:eventGroups.onReset)==null?void 0:v[m])===void 0&&(i==null||i.handleReset())},callHandler:async function(i,m){var v,y,C;const g=((v=r.dynamicData)==null?void 0:v.tableButtonPath)||r.dynamicData.path.split(".")[0];if(((y=eventGroups==null?void 0:eventGroups[i])==null?void 0:y[g])!==void 0)for(const F of(C=eventGroups==null?void 0:eventGroups[i])==null?void 0:C[g])s.store.functionParameters=m,executeEvents({...s,config:F,componentName:g})},downloadFile:downloadFile$1,download:doDownload,...r.functionsProvider}},leaderBoard={type:"WrapperLayout",config:{main:{rowSpacing:3,header:!0,label:"LeaderBoard",divider:!0},style:{wrapperStyle:{height:{xs:850,sm:1e3}}},wrapperStyle:{position:"relative",width:"100%"}},elements:[{type:"Control",scope:"#/properties/leaderBoard/properties/firstImage",config:{main:{url:"https://my.alfred.edu/zoom/_images/foster-lake.jpg"},containerStyle:{objectFit:"cover",position:"absolute",top:{xs:"90px",md:"60px"},left:{xs:"calc(50% - 50px)",sm:"calc(50% - 50px)",md:"calc(50% - 100px)"},width:{xs:"100px",sm:"100px",md:"200px"},border:"5px solid rgb(179, 198, 255)",height:{xs:"100px",sm:"100px",md:"200px"},borderRadius:"50%"},style:{objectFit:"cover",width:"100%",height:"100%",borderRadius:"50%"},layout:6},options:{widget:"Image"}},{type:"Control",scope:"#/properties/leaderBoard/properties/secondImage",config:{main:{url:"https://my.alfred.edu/zoom/_images/foster-lake.jpg"},containerStyle:{objectFit:"cover",position:"absolute",top:{xs:"160px",md:"130px"},left:{xs:"calc(25% - 45px)",sm:"calc(25% - 45px)",md:"calc(25% - 90px)"},width:{xs:"80px",sm:"80px",md:"180px"},border:"5px solid rgb(179, 198, 255)",height:{xs:"80px",sm:"80px",md:"180px"},borderRadius:"50%"},style:{objectFit:"cover",width:"100%",height:"100%",borderRadius:"50%"},layout:6},options:{widget:"Image"}},{type:"Control",scope:"#/properties/leaderBoard/properties/thirdImage",config:{main:{url:"https://my.alfred.edu/zoom/_images/foster-lake.jpg"},containerStyle:{objectFit:"cover",position:"absolute",top:{xs:"160px",md:"130px"},left:{xs:"calc(75% - 42.5px)",sm:"calc(75% - 42.5px)",md:"calc(75% - 85px)"},width:{xs:"80px",sm:"80px",md:"180px"},border:"5px solid rgb(179, 198, 255)",height:{xs:"80px",sm:"80px",md:"180px"},borderRadius:"50%"},style:{objectFit:"cover",width:"100%",height:"100%",borderRadius:"50%"},layout:6},options:{widget:"Image"}},{type:"Control",scope:"#/properties/leaderBoard/properties/firstName",config:{main:{heading:"Satendra Raghav"},style:{objectFit:"cover",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",color:"black",top:{xs:"190px",md:"270px"},fontSize:{xs:"12px",md:"20px"},left:"calc(50% - 90px)",width:"180px",fontWeight:"bold",borderRadius:"50%",zIndex:7},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/leaderBoard/properties/secondName",config:{main:{heading:"Satendra Raghav"},style:{objectFit:"cover",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",color:"black",top:{xs:"240px",md:"320px"},fontSize:{xs:"12px",md:"20px"},left:"calc(25% - 90px)",width:"180px",fontWeight:"bold",borderRadius:"50%"},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/leaderBoard/properties/thirdName",config:{main:{heading:"Satendra Raghav"},style:{objectFit:"cover",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",color:"black",top:{xs:"240px",md:"320px"},fontSize:{xs:"12px",md:"20px"},left:"calc(75% - 90px)",width:"180px",fontWeight:"bold",borderRadius:"50%"},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/econd",config:{main:{heading:"2"},style:{objectFit:"cover",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",textShadow:"2px 2px 5px #5065C7",background:"green",color:"white",top:{xs:"225px",md:"280px"},fontSize:{xs:"12px",md:"16px"},left:{xs:"calc(25% - 12px)",md:"calc(25% - 16px)"},width:{xs:"20px",md:"40px"},border:{xs:"2px solid rgb(179, 198, 255)",md:"5px solid rgb(179, 198, 255)"},height:{xs:"20px",md:"40px"},"@keyframes rotateAnimation":{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},animation:"rotateAnimation 4s infinite",borderRadius:"50%",zIndex:5},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/first",config:{main:{heading:"1"},style:{objectFit:"cover",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",textShadow:"2px 2px 5px #5065C7",background:"green",color:"white",top:{xs:"175px",md:"230px"},fontSize:{xs:"12px",md:"16px"},left:{xs:"calc(50% - 12px)",md:"calc(50% - 16px)"},"@keyframes rotateAnimation":{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},animation:"rotateAnimation 4s infinite",width:{xs:"20px",md:"40px"},border:{xs:"2px solid rgb(179, 198, 255)",md:"5px solid rgb(179, 198, 255)"},height:{xs:"20px",md:"40px"},borderRadius:"50%",zIndex:5},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/third",config:{main:{heading:"3"},style:{objectFit:"cover",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",textShadow:"2px 2px 5px #5065C7",background:"green",color:"white",top:{xs:"225px",md:"280px"},fontSize:{xs:"12px",md:"16px"},left:{xs:"calc(75% - 12px)",md:"calc(75% - 16px)"},width:{xs:"20px",md:"40px"},border:{xs:"2px solid rgb(179, 198, 255)",md:"5px solid rgb(179, 198, 255)"},height:{xs:"20px",md:"40px"},"@keyframes rotateAnimation":{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},animation:"rotateAnimation 4s infinite",borderRadius:"50%",zIndex:5},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/leaderBoard/properties/table",options:{widget:"Table"},elements:[],config:{style:{tableHeadstyle:{fontWeight:900,background:"rgb(179, 198, 255)"},position:"absolute",top:{xs:"300px",sm:"300px",md:"390px",lg:"390px"},border:"2px solid rgb(179, 198, 255)",width:"95%",left:"2.5%"},main:{disableAction:!0,disableSelection:!0}}}]};const buildLeaderBoard=r=>{const s=_.cloneDeep(leaderBoard);if(r.elements){const i=r.elements.map((m,g)=>m.type?{...{widget:buildUiSchema(m),accessorKey:m.name,header:m.label||m.name}}:{accessorKey:m.name,header:m.label||m.name});s.elements[9].elements=i}return s.config.main.label=r.label,r.name&&(s.elements[0].scope=`#/properties/${r.name}/properties/firstImage`,s.elements[3].scope=`#/properties/${r.name}/properties/firstName`,s.elements[1].scope=`#/properties/${r.name}/properties/secondImage`,s.elements[4].scope=`#/properties/${r.name}/properties/secondName`,s.elements[2].scope=`#/properties/${r.name}/properties/thirdImage`,s.elements[5].scope=`#/properties/${r.name}/properties/thirdName`,s.elements[9].scope=`#/properties/${r.name}/properties/table`),r.firstImage&&(s.elements[0].config.main.url=r.firstImage),r.secondImage&&(s.elements[1].config.main.url=r.secondImage),r.secondImage&&(s.elements[2].config.main.url=r.thirdImage),r.layout&&(s.config.layout=createLayoutFormat(r.layout)),s};var progressBar={type:"Control",scope:"#/properties/pbc_progress",options:{widget:"ProgressBar"},config:{layout:6,main:{developOnlyProgresBar:!1,bottomLabel_3:"Remaining",heading:"PBC Details"}}};const buildProgressBarCard=(r,s)=>{const i=_.cloneDeep(progressBar);return i.scope=s,r.heading&&(i.config.main.heading=r.heading),r.bottomLabel_3&&(i.config.main.bottomLabel_3=r.bottomLabel_3),r.bottomLabel_2&&(i.config.main.bottomLabel_2=r.bottomLabel_2),r.bottomLabel_1&&(i.elements[0].config.main.bottomLabel_1=r.bottomLabel_1),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i},buildProgressBar=(r,s)=>{const i=_.cloneDeep(progressBar);return i.scope=s,r.layout&&(i.config.layout=r.layout),i.config.main.heading=r.heading,r.bottomLabel_3&&(i.config.main.bottomLabel_3=r.bottomLabel_3),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.bottomLabel_2&&(i.config.main.bottomLabel_2=r.bottomLabel_2),r.bottomLabel_1&&(i.config.main.bottomLabel_1=r.bottomLabel_1),i},BarGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{main:{header:"Bar Graph",bottomLabel:"Name of Employe",numTicks:6,leftLabel:"Value in lakhs",axisLeft:!0,axisBottom:!0,hideTicks:!1,hideLeftAxisLine:!1,hideBottomAxisLine:!1,bottomAxisWidth:"10px",legend:{labelColor:"green",legendTitle:"",direction:"row",align:"none"}},style:{containerStyle:{width:"100%",height:300},headerStyle:{},tooltipStyle:{},labelStyle:{margin:{left:80,bottom:20},leftLabelOffset:50,bottomLabelOffset:10},barStyle:{color:{firstBarColor:"#6c5efb",secondBarColor:"#3f51b5"}},legendStyle:{legend:{lineHeight:"0.9em",fontSize:"8px",fontFamily:"arial",padding:"10px 10px",width:"30%",display:"flex",justifyContent:"center",border:"1px solid rgba(255, 255, 255, 0.3)",borderRadius:" 8px",marginRight:"auto"},legendTitle:{fontSize:"10px",marginBottom:"10px",fontWeight:"100"}}}}},PieGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{main:{header:"Incentive Branch category wise",type:"PieGraph",bottomLabel:"Name of Employe",leftLabel:"Value",axisLeft:!0,axisBottom:!0,legendAvailable:!0,legend:{labelColor:"green",legendTitle:"Branches",direction:"row",align:"right"}},style:{containerStyle:{height:"340"},headerStyle:{},tooltipStyle:{backgroundColor:"black",width:"80px"},labelStyle:{},legendStyle:{legend:{},legendTitle:{}},pieStyle:{}}}},LineGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{layout:12,main:{type:"LineGraph",header:"Quartely Incentive in Thousand",bottomLabel:"Years",leftLabel:"Incentive",gridHidden:!0,numHidden:!1,tooltipDataKey:["First","Second","Third"],axisLeft:!0,axisBottom:!0,hideLeftAxisLine:!1,hideBottomAxisLine:!1,legend:{labelColor:"green",legendTitle:"Our Assests",direction:"row",align:"right",colorRectWidth:20}},style:{containerStyle:{},headerStyle:{},labelStyle:{},lineStyle:{}}}},HorizontalBarGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{main:{header:" ",type:"HorizontalBarGraph",bottomLabel:" ",leftLabel:"Value",axisLeft:!1,axisBottom:!0,hideBottomTicks:!1,hideLeftTicks:!1,hideLeftAxisLine:!0,hideBottomAxisLine:!1,bottomAxisWidth:"10px"},style:{containerStyle:{width:"100%"},headerStyle:{},tooltipStyle:{},labelStyle:{},barStyle:{color:"#6c5efb"}}}},buildHorizontalBarGraph=(r,s)=>{const i=_.cloneDeep(HorizontalBarGraph);return i.scope=s,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i.scope=s,i.config.main.header=r.heading,r.barColor&&(i.config.barStyle.color=r.barColor),r.containerBackground&&(i.config.containerStyle.background=r.containerBackground),r.height&&(i.config.style.containerStyle.height=r.height),r.bottomLabel&&(i.config.main.bottomLabel=r.bottomLabel),r.leftLabel&&(i.config.main.leftLabel=r.leftLabel),i};var SpeedoMeter={type:"Control",scope:"#/properties/emptyBox",options:{widget:"SpeedoMeter"},config:{layout:{xs:12,sm:12,md:11.7,lg:11.7},width:350,segments:"5",main:{currentValueText:"Your Score",customSegmentLabels:[],data:{maxValue:1e5,value:5e4,minValue:0}},style:{segmentColors:[],ringWidth:57,needleHeightRatio:.7,needleColor:"#3f51b5",startColor:"red",textColor:"black",endColor:"green",containerStyle:{background:"white",padding:"20px",borderRadius:"20px",display:"flex",flexDirection:"column",margin:"auto",justifyContent:"center",fontFamily:"Roboto",fontWeight:500},headerStyle:{textAlign:"left",width:"100%",paddingBottom:"20px"}}}};const buildSpeedoMeter=(r,s)=>{const i=_.cloneDeep(SpeedoMeter);if(i.scope=s,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.heading&&(i.config.main.header=r.heading),r.segments&&(i.config.main.segments=r.segments),r.style){const m=JSON.parse(r.style);m!=null&&m.style&&(i.config.style={...i.config.style,...m.style}),m!=null&&m.containerStyle&&(i.config.style.containerStyle={...i.config.style.containerStyle,...m.containerStyle})}return r.width&&(i.config.main.width=r.width),r.speedoCaption&&(i.config.main.currentValueText=r.speedoCaption),r.data&&(i.config.main.data=r.data),r.needleColor&&(i.config.style.needleColor=r.needleColor),r.segments&&(i.config.style.segments=r.segments),r.endColor&&(i.config.style.endColor=r.endColor),r.startColor&&(i.config.style.startColor=r.startColor),r.segmentColors&&(i.config.style.segmentColors=r.segmentColors),i},buildPieGraph=(r,s)=>{const i=_.cloneDeep(PieGraph);return r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.height&&(i.config.style.containerStyle.height=r.height),r.legendHide&&(i.config.main.legendAvailabe=r.legendHide!=="YES"),i.scope=s,i.config.main.header=r.heading,r.legendLabels&&(i.config.main.tooltipDataKey=flatObjectValueInArray(r.legendLabels)),r.pieArcColors&&(i.config.style.pieStyle.colorRange=flatObjectValueInArray(r.pieArcColors)),i},buildStackbarGraph=(r,s)=>{const i=_.cloneDeep(BarGraph);return r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.legendHide&&(i.config.main.legendAvailable=!1),i.config.main.type=r.graphType,i.config.main.header=r.heading,r.barColor&&(i.config.barStyle.color=r.barColor),r.containerBackground&&(i.config.containerStyle.background=r.containerBackground),r.height&&(i.config.style.containerStyle.height=r.height),r.bottomLabel&&(i.config.main.bottomLabel=r.bottomLabel),r.leftLabel&&(i.config.main.leftLabel=r.leftLabel),i.scope=s,i};var RunnerBoyProgressBar={type:"Control",scope:"#/properties/path",options:{widget:"RunnerBoyProgressBar"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{}}};const RunnerBoyProgressbar=(r,s)=>{const i=_.cloneDeep(RunnerBoyProgressBar);return i.scope=s,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i};var Tabsection={type:"TabLayout",config:{main:{id:"groupMaster",tabLabels:["default"],layout:12}},elements:[]};const buildTabSection=(r,s)=>{const i=_.cloneDeep(Tabsection);return i.scope=s,r.lazyLoad&&(i.config.main.lazyLoad=r.lazyLoad==="YES"),r.orientation&&(i.config.main.orientation=r.orientation==="YES"?"vertical":"horizontal"),r.sectionLabels&&(i.config.main.tabLabels=r.sectionLabels.map(m=>m.label)),i.config.main.id=r.name,i};var WrapperSection={type:"WrapperLayout",config:{main:{rowSpacing:3,divider:!0},defaultStyle:!0},elements:[]};const buildWrapperSection=(r,s)=>{const i=_.cloneDeep(WrapperSection);return i.scope=s,i.config.main.label=r.label,i.config.main.divider=r.divider==="YES",i.config.main.isAccordion=r.isAccordion==="YES",r.defaultStyle&&(i.config.defaultStyle=r.defaultStyle==="YES"),r.style&&(i.config.style=JSON.parse(r.style)),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i};var TextInputField={type:"Control",scope:"#/properties/text",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:""},style:{}}};const buildTextField=(r,s)=>{const i=_.cloneDeep(TextInputField);return i.config.main.label=r.label,r.style&&(i.config.style=JSON.parse(r.style)),r.InputFormatingAndMasking&&(i.config.main.formatStrArray=r.InputFormatingAndMasking.map(m=>m.formatElement)),r.placeholder&&(i.config.main.placeholder=r.placeholder),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i.config.main.errorMessage=`${r.name} is empty or invalid`,i.scope=s,i};var SelectInputField={type:"Control",scope:"#/properties/select",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"",type:"text",freeSole:!1}}};const buildSelect=(r,s)=>{const i=_.cloneDeep(SelectInputField);return i.config.main.label=r.label,r.value&&(i.config.main.options=r.value),r.freeSolo&&(i.config.main.freeSolo=r.freeSolo==="YES"),r.lazyLoading&&(i.config.main.lazyLoading=r.lazyLoading==="YES"),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i.scope=s,i};var Button={type:"Control",scope:"#/properties/button",options:{widget:"Button"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{name:"Compare",variant:"contained",color:"info",type:"text",startIcon:"",styleDefault:!1,icon:"",onClick:"onClick",size:"small"},style:{}}};const buildButton=(r,s)=>{const i=_.cloneDeep(Button);return r.buttonType&&(i.options.widget=r.buttonType==="IconButton"?"IconButton":"Button",r.buttonType==="ButtonWithIconAndText"?i.config.main.startIcon=r.iconName:i.config.main.icon=r.iconName),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.tooltipMessage&&(i.config.main.tooltipMessage=r.tooltipMessage),r.defaultStyle&&(r.buttonType==="IconButton"?i.config.main.styleDefault=r.defaultStyle==="true":i.config.main.enableDefaultStyle=r.defaultStyle!=="true"),i.scope=s,r.style&&(i.config.style=JSON.parse(r.style)),r.size&&(i.config.main.size=r.size),r.color&&(i.config.main.color=r.color),r.label&&(i.config.main.name=r.label),i};var Table={type:"Control",scope:"#/properties/ApproveRecords",options:{widget:"Table"},elements:[],config:{main:{onMount:"onMount",allRowData:[],downloadAllData:!1,columns:{dataColumns:[],actionColumns:[]}}}},lazyLoadingTable={type:"Control",scope:"#/properties/LazyLoadingTable",options:{widget:"LazyLoadingTable"},elements:[],config:{main:{onMount:"onMount",columns:{}}}};const buildTable=(r,s)=>{const i=_.cloneDeep(Table);return i.scope=s,r.style&&(i.config.style=JSON.parse(r.style)),r.lazyLoading&&(i.config.main.lazyLoading=r.lazyLoading==="YES"),r.SelectionAvailable&&(i.config.main.Selection=r.SelectionAvailable==="YES"),r.ColumnResizingAvailable&&(i.config.main.disableColumnResizing=r.ColumnResizingAvailable!=="YES"),r.DragAvailable&&(i.config.main.enableDrag=r.DragAvailable==="YES"),r.downloadAllData&&(i.config.main.downloadAllData=r.downloadAllData==="YES"),r.Table_Download_Keys_Name&&(i.config.main.TableDownloadKeysName=r.Table_Download_Keys_Name.map(m=>m.KeyName)),r.selectKey&&(i.config.main.selectKey=r.selectKey),i},buildLazyLoadingTable=(r,s)=>{const i=_.cloneDeep(lazyLoadingTable);return i.scope=s,r.style&&(i.config.style=JSON.parse(r.style)),r.SelectionAvailable&&(i.config.main.Selection=r.SelectionAvailable==="YES"),r.ColumnResizingAvailable&&(i.config.main.disableColumnResizing=r.ColumnResizingAvailable!=="YES"),r.DragAvailable&&(i.config.main.enableDrag=r.DragAvailable==="YES"),r.selectKey&&(i.config.main.selectKey=r.selectKey),r.downloadAllData&&(i.config.main.downloadAllData=r.downloadAllData==="YES"),r.Table_Download_Keys_Name&&(i.config.main.TableDownloadKeysName=r.Table_Download_Keys_Name.map(m=>m.KeyName)),i.config.main.label=r.label,i};var Box={type:"Control",scope:"#/properties/emptyBox",options:{widget:"Box"},config:{layout:12,main:{},style:{}}};const buildLabel=(r,s)=>{const i=_.cloneDeep(Box);return i.scope=s,i.config.main.heading=r.label,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.style&&(i.config.style=JSON.parse(r.style)),i},uploadFile={type:"Control",scope:"#/properties/attachment",config:{main:{label:"AttachmentFile",onClick:"onClick",required:!0,errorMessage:"Attachment File is not uploaded"},style:{backgroundColor:"none"},layout:{lg:5.5,md:5.5,sm:11,xs:11}},options:{widget:"UploadFile"}},downloadFile={type:"Control",scope:"#/properties/downloadAttachment",config:{main:{onClick:"onClick",required:!1},style:{backgroundColor:"none"},layout:{lg:5.5,md:5.5,sm:11,xs:11}},options:{widget:"DownloadFile"}},buildUploadFile=(r,s)=>{const i=_.cloneDeep(uploadFile);return i.scope=s,i.config.main.label=r.label,r.layout&&(i.config.layout=r.layout),r.layout&&(uploadFile.config.layout=createLayoutFormat(r.layout)),r.style&&(i.config.style=r.style),r.required&&(i.config.main.required=!0),i.config.main.errorMessage=r.errorMessage,i},buildDownloadFile=(r,s)=>{const i=_.cloneDeep(downloadFile);return i.scope=s,r.layout&&(i.config.layout=r.layout),r.style&&(i.config.style=r.style),r.required&&(i.config.main.required=!0),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.errorMessage&&(i.config.main.errorMessage=r.errorMessage),i};var Card={type:"WrapperLayout",config:{main:{rowSpacing:.5},style:{wrapperStyle:{position:"relative",color:"white",height:{xs:"120px",md:"160px"},width:"100%",textAlign:"left",background:"#3f51b5",borderRadius:"20px"}},layout:{xs:12,sm:12,md:6,lg:6}},elements:[{type:"Control",scope:"#/properties/programType",config:{main:{heading:"$5000.00"},style:{position:"absolute",left:"10%",top:"15%",color:"#f5effc",height:"80px",display:"flex",fontSize:{xs:"24px",md:"32px"},alignItems:"center",background:"inherit",justifyContent:"flex-start"},layout:5},options:{widget:"Box"}},{type:"Control",scope:"#/properties/programType",config:{main:{url:"$"},style:{color:"#f5effc",objectFit:"contain",position:"absolute",top:"10px",right:"10px",height:"80%",width:"35%",display:"flex",fontSize:"34px",alignItems:"center",background:"inherit",padding:"20px",justifyContent:"left"},layout:5},options:{widget:"Image"}},{type:"Control",scope:"#/properties/programType",config:{main:{heading:"Total Earnings"},style:{position:"absolute",top:"calc(60%)",alignItems:"center",color:"#8999e8",fontSize:"16px",left:"10%",background:"inherit",justifyContent:"center"},layout:12},options:{widget:"Box"}}]};const buildCard=(r,s)=>{const i=_.cloneDeep(Card);return r.style&&(i.config.style=JSON.parse(r.style)),i.elements[0].scope=`#/properties/${r.name}/properties/value`,i.elements[1].scope=`#/properties/${r.name}/properties/url`,i.elements[2].scope=`#/properties/${r.name}/properties/description`,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.label&&(i.elements[0].config.main.heading=r.label),r.url&&(i.elements[1].config.main.url=r.url),r.description&&(i.elements[2].config.main.heading=r.description),i};var DateInputField={type:"Control",scope:"#/properties/date",options:{widget:"DateInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"",type:"date"}}};const DateTime={type:"Control",scope:"#/properties/date",options:{widget:"DateTimeInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"DateTime",type:"date"}}},buildDate=(r,s)=>{const i=_.cloneDeep(DateInputField);return i.config.main.label=r.label,i.config.main.errorMessage=`${r.name} is empty or invalid`,i.scope=s,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i},buildDateTime=(r,s)=>{const i=_.cloneDeep(DateTime);return i.config.main.label=r.label,i.config.main.errorMessage=`${r.name} is empty or invalid`,i.scope=s,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i};var RankCard={type:"Control",scope:"#/properties/path",options:{widget:"RankCard"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{}}};const buildRankCard=(r,s)=>{const i=_.cloneDeep(RankCard);return i.scope=s,r.image&&(i.config.main.url=r.image),r.title&&(i.config.main.title=r.title),r.description&&(i.config.main.description=r.description),r.rank&&(i.config.main.rank=`#${r.rank}`),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i};var RollAndDice={type:"Control",scope:"#/properties/path",options:{widget:"RollAndDice"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{}}};const buildRollAndDice=(r,s)=>{const i=_.cloneDeep(RollAndDice);return r.name&&(i.scope=s),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i};var Timer={type:"Control",scope:"#/properties/timer",options:{widget:"Timer"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{},style:{digitContainer:{borderRadius:"4px",textShawdow:"none",width:"22%"},container:{backgroundColor:"#FFFFFF",borderRadius:"18px"},containerLabelColor:{color:"red"}}}};const buildTimer=(r,s)=>{const i=_.cloneDeep(Timer);return i.scope=s,r.label&&(i.config.main.label=r.label),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i};var MultipleSelect={type:"Control",scope:"#/properties/path",options:{widget:"MultipleSelect"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"",type:"text",multiple:!0,variant:"standard",options:[]}}};const buildMultiSelect=(r,s)=>{const i=_.cloneDeep(MultipleSelect);return i.scope=s,r.label&&(i.config.main.label=r.label),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.value&&(i.config.main.options=r.value),r.lazyLoading&&(i.config.main.lazyLoading=r.lazyLoading==="YES"),i},buildBasicUiSchema=r=>({type:"HorizontalLayout",pageName:`${r.name}`,scope:`${r.name}`,elements:[]}),TextArea={type:"Control",scope:"#/properties/textarea",options:{widget:"TextArea"},config:{layout:{xs:12,sm:12,md:5.5,lg:5.5},style:{containerStyle:{borderRadius:"20px"},headerContainerStyle:{},textAreaStyle:{borderRadius:"20px",padding:"20px",background:"white",color:"black"}},main:{heading:"TextArea",minRows:4,hideButton:!0}}},buildTextArea=(r,s)=>{const i=_.cloneDeep(TextArea);return i.config.main.heading=r.label,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.style&&(i.config.style=JSON.parse(r.style)),r.placeholder&&(i.config.main.placeholder=r.placeholder),i.scope=s,i};var cardSlider={type:"Control",scope:"#/properties/path",options:{widget:"Slider"},elements:[],config:{layout:12,main:{}}};const buildSlider=(r,s)=>{const i=_.cloneDeep(cardSlider);return r.name&&(i.scope=s),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i},Checkbox={type:"Control",scope:"#/properties/username1",layout:12,options:{widget:"CheckBox"},config:{main:{label:"Welcome to Hyperform"}}},buildCheckbox=(r,s)=>{const i=_.cloneDeep(Checkbox);return i.scope=s,i.config.main.label=r.label,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.style&&(i.config.style=JSON.parse(r.style)),i},buildLineGraph=(r,s)=>{const i=_.cloneDeep(LineGraph);return r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i.config.main.header=r.heading,r.height&&(i.config.style.containerStyle.height=r.height),r.bottomLabel&&(i.config.main.bottomLabel=r.bottomLabel),r.yAxisValue&&(i.config.main.yAxisValue=r.yAxisValue),r.xAxisValue&&(i.config.main.xAxisValue=r.xAxisValue),r.leftLabel&&(i.config.main.leftLabel=r.leftLabel),r.legendHide&&(i.config.main.legendAvailabe=r.legendHide!=="YES"),r.legendLabels&&(i.config.main.tooltipDataKey=flatObjectValueInArray(r.legendLabels)),r.pieArcColors&&(i.config.style.lineStyle.colorRange=flatObjectValueInArray(r.pieArcColors)),i.scope=s,i},RadioUiSchema={type:"Control",scope:"#/properties/invoiceEnabled",options:{widget:"RadioInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Enabled",options:["YES","NO"],errorMessage:"Enabled is not marked as YES or NO"}}},buildRadio=(r,s)=>{const i=_.cloneDeep(RadioUiSchema);return i.scope=s,i.config.main.label=r.label,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.sectionLabels&&(i.config.main.options=r.sectionLabels.map(m=>m.label||m.Options)),r.style&&(i.config.style=JSON.parse(r.style)),i};var emptyBox={type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:12,sm:12,md:5.5,lg:5.5},main:{},style:{}}};const buildEmptyBox=(r,s)=>{const i=_.cloneDeep(emptyBox);return r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i},ArrayUiSchema={type:"Control",scope:"#/properties/adjustments",layout:11.5,options:{detail:{type:"HorizontalLayout",elements:[]}}},buildArray=(r,s)=>{const i=_.cloneDeep(ArrayUiSchema);return i.scope=s,i},TextField={type:"Control",scope:"#/properties/AAdhar",layout:12,options:{widget:"InputField"},config:{main:{label:"Adhaar Card",formatStrArray:["9","9","9","9"," ","9","9","9","9"," ","X9","X9","X9","X9"],placeholder:"XXXX XXXX XXXX"}}},buildAdhaarField=(r,s)=>{const i=_.cloneDeep(TextField);return i.config.main.label=r.label,r.style&&(i.config.style=JSON.parse(r.style)),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i.config.main.errorMessage=`${r.name} is empty or invalid`,i.scope=s,i},PanField={type:"Control",scope:"#/properties/pan",layout:12,options:{widget:"InputField"},config:{main:{label:"Pan Card",placeholder:"AAAAA0000A",formatStrArray:["A","A","A","A","A","9","9","9","9","A"]}}},buildPanField=(r,s)=>{const i=_.cloneDeep(PanField);return i.config.main.label=r.label,r.style&&(i.config.style=JSON.parse(r.style)),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i.config.main.errorMessage=`${r.name} is empty or invalid`,i.scope=s,i},FileInput={type:"Control",scope:"#/properties/docAggrementCopy",options:{widget:"FileInputField"},config:{layout:11.5,main:{required:!1,onUpload:"onFileUpload",onDownload:"onFileDownload",label:"Aggrement Copy"},style:{backgroundColor:"none"}}},buildFileInput=(r,s)=>{const i=_.cloneDeep(FileInput);return i.scope=s,i.config.main.label=r.label,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.style&&(i.config.style=JSON.parse(r.style)),i},Stepper={type:"Control",scope:"#/properties/Stepper",options:{widget:"Stepper"},config:{main:{steps:[{label:"First"},{label:"Second"},{label:"Third"}],resetButton:!1,resetText:"Reset",orientation:"vertical"}},elements:[]},buildStepper=(r,s)=>{const i=_.cloneDeep(Stepper);return i.scope=s,i.config.main.resetButton=r.resetButton==="YES",r.defaultButtonAvailable&&(i.config.main.defaultButtonAvailable=r.defaultButtonAvailable==="YES"),i.config.main.resetText=r.resetText||"ResetData",i.config.main.completeText=r.completeText||"Complete Text",i.config.main.orientation=r.orientation||"horizontal",r.sectionLabels&&(i.config.main.steps=r.sectionLabels.map((m,g)=>({label:m.label,id:g}))),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.style&&(i.config.style=JSON.parse(r.style)),i},PopUP={type:"Control",scope:"#/properties/text",options:{widget:"PopUp"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{label:"PopUp",fullScreen:!1,fullWidth:!1,maxWidth:!1,alignItems:!1,spacing:2},style:{}}},buildPopUp=(r,s)=>{const i=_.cloneDeep(PopUP);return i.scope=s,i.config.main.title=r.label,i.config.main.fullScreen=r.fullScreen==="YES",i.config.main.fullWidth=r.fullWidth==="YES",i.config.main.maxWidth=r.maxWidth||!1,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.style&&(PopUP.config.style=JSON.parse(r.style)),i},dataGrid={type:"Control",scope:"#/properties/dataGrid",layout:12,options:{widget:"DataGrid"},elements:[],config:{main:{elevation:0,useWrapper:!1},style:{}}},buildDataGrid=(r,s)=>{const i=_.cloneDeep(dataGrid);return i.scope=s,r.elevation&&(i.config.main.elevation=+r.elevation),i.config.main.divider=r.divider!=="NO",r.height&&(i.config.main.height=`${r.height}px`),r.justifyContent&&(i.config.main.justifyContent=r.justifyContent),r.label&&(i.config.main.label=r.label),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.cardLayout&&(i.config.cardLayout=createLayoutFormat(r.cardLayout)),r.style&&(i.config.style=JSON.parse(r.style)),i},InputSlider={type:"Control",scope:"#/properties/inputSlider",options:{widget:"InputSlider"},config:{layout:12,main:{limitToMax:!1,max:1e4,step:1e3,min:0,label:"Slider"}}},buildInputSlider=(r,s)=>{const i=_.cloneDeep(InputSlider);return i.scope=s,i.config.main.label=r.label,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.limitToMax&&(i.config.main.limitToMax=r.limitToMax==="YES"),r.max&&(i.config.main.max=r.max),r.step&&(i.config.main.step=r.step),r.min&&(i.config.main.min=r.min),r.style&&(i.config.main.defaultStyle=JSON.parse(r.style)),i},TreeMap={type:"Control",scope:"#/properties/TreeMap2",config:{main:{layout:"cartsian",orientation:"vertical",header:"Territory Hierarchy",linkType:"step",graphHeight:"500px"},style:{BoxStyle:{borderRadius:"5px"}}},options:{widget:"TreeMap"},elements:[]},buildTreeMap=(r,s)=>{const i=_.cloneDeep(TreeMap);return i.scope=s,r.label&&(i.config.main.header=r.label),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.orientation&&(i.config.main.orientation=r.orientation),r.linkType&&(i.config.main.linkType=r.linkType),r.graphHeight&&(i.config.main.graphHeight=r.graphHeight),r.graphWidth&&(i.config.main.graphWidth=r.graphWidth),r.graphZoomHeight&&(i.config.main.graphZoomHeight=r.graphZoomHeight),r.graphZoomWidth&&(i.config.main.graphZoomWidth=r.graphZoomWidth),i};exports.schema={type:"object",properties:{},required:[]};function buildRule(r,s,i){var m,g,v,y,C,F,z,W,Q,he;i?(v=(g=(m=exports.schema.properties)==null?void 0:m[s])==null?void 0:g.items)!=null&&v.properties&&((z=(F=(C=(y=exports.schema.properties)==null?void 0:y[s])==null?void 0:C.items)==null?void 0:F.properties)!=null&&z[r.name]||(exports.schema.properties[s].items.properties[r.name]={},r.type==="Select"&&((W=r.value)==null?void 0:W.length)>0?exports.schema.properties[s].items.properties[r.name]={oneOf:r.value.map($=>({const:$.value,title:$.label}))}:r.type==="MultipleSelect"&&((Q=r.value)==null?void 0:Q.length)>0&&(exports.schema.properties[s].items.properties[r.name]={items:{oneOf:r.value.map($=>({const:$.value,title:$.label}))}}))):(r.type==="Select"||r.type==="MultipleSelect")&&((he=r.value)==null?void 0:he.length)>0&&(r.type==="Select"?exports.schema.properties[r.name]={oneOf:r.value.map($=>({const:$.value,title:$.label}))}:r.type==="MultipleSelect"&&(exports.schema.properties[r.name]={items:{oneOf:r.value.map($=>({const:$.value,title:$.label}))}})),r.validation&&r.validation.forEach($=>{var Ke,gt,se,We,$t,ye,Ve,ve,Ye,Ie,it,Ft;s?(se=(gt=(Ke=exports.schema.properties)==null?void 0:Ke[s])==null?void 0:gt.items)!=null&&se.properties&&((Ve=(ye=($t=(We=exports.schema.properties)==null?void 0:We[s])==null?void 0:$t.items)==null?void 0:ye.properties)!=null&&Ve[r.name]||(exports.schema.properties[s].items.properties[r.name]={},r.type==="Select"||((ve=r.value)==null?void 0:ve.length)>0?exports.schema.properties[s].items.properties[r.name]={oneOf:r.value.map(ht=>({const:ht.value,title:ht.label}))}:(r.type==="MultipleSelect"||((Ye=r.value)==null?void 0:Ye.length)>0)&&(exports.schema.properties[s].items.properties[r.name]={items:{oneOf:r.value.map(ht=>({const:ht.value,title:ht.label}))}})),$.validationType==="required"?(Ft=(it=(Ie=exports.schema.properties)==null?void 0:Ie[s])==null?void 0:it.items)==null||Ft.required.push(r.name):(exports.schema.properties[s].items.properties[r.name].type="string",exports.schema.properties[s].items.properties[r.name][$.validationType]=isNaN($.validationValue)?$.validationValue:Number($.validationValue))):(exports.schema.properties[r.name]||(exports.schema.properties[r.name]={}),$.validationType==="required"?exports.schema.required.push(r.name):(exports.schema.properties[r.name].type="string",exports.schema.properties[r.name][$.validationType]=isNaN($.validationValue)?$.validationValue:Number($.validationValue)))})}const buildSchema=(r,s,i)=>(buildRule(r,s,i),r!=null&&r.elements&&(r.type=="Table"||r.type=="Array"?(exports.schema.properties[r.name]||(exports.schema.properties[r.name]={type:"array",items:{type:"object",properties:{},required:[]}}),r.elements.map((m,g)=>{buildSchema(m,r.name,r.type==="Array")})):r.elements.map((m,g)=>{buildSchema(m)})),exports.schema),buildUiSchema=r=>{let s={};const i=`#/properties/${r.name}`;switch(r.type){case"TreeMap":s=buildTreeMap(r,i);break;case"DateTime":s=buildDateTime(r,i);break;case"InputSlider":s=buildInputSlider(r,i);break;case"DataGrid":s=buildDataGrid(r,i);break;case"Stepper":s=buildStepper(r,i);break;case"PopUp":s=buildPopUp(r,i);break;case"FileInput":s=buildFileInput(r,i);break;case"AadharcardText":s=buildAdhaarField(r,i);break;case"PanCardText":s=buildPanField(r,i);break;case"TabSection":s=buildTabSection(r,i);break;case"RunnerBoyProgressBar":s=RunnerBoyProgressbar(r,i);break;case"WrapperSection":s=buildWrapperSection(r,i);break;case"Text":s=buildTextField(r,i);break;case"TextArea":s=buildTextArea(r,i);break;case"Date":s=buildDate(r,i);break;case"Select":s=buildSelect(r,i);break;case"Radio":s=buildRadio(r,i);break;case"Button":s=buildButton(r,i);break;case"Table":s=buildTable(r,i);break;case"Array":s=buildArray(r,i);break;case"LazyLoadingTable":s=buildLazyLoadingTable(r,i);break;case"Box":s=buildLabel(r,i);break;case"CheckBox":s=buildCheckbox(r,i);break;case"UploadFile":s=buildUploadFile(r,i);break;case"DownloadFile":s=buildDownloadFile(r,i);break;case"EmptyBox":s=buildEmptyBox(r);break;case"card":s=buildCard(r);break;case"Graph":switch(r.graphType){case"BarGraph":case"StackBarGraph":s=buildStackbarGraph(r,i);break;case"LineGraph":s=buildLineGraph(r,i);break;case"PieGraph":s=buildPieGraph(r,i);break;case"HorizontalBarGraph":s=buildHorizontalBarGraph(r,i);break}break;case"ProgressBar":s=buildProgressBar(r,i);break;case"SpeedoMeter":s=buildSpeedoMeter(r,i);break;case"ProgressBarCard":s=buildProgressBarCard(r,i);break;case"RankCard":s=buildRankCard(r,i);break;case"Rank":s=buildRollAndDice(r,i);break;case"Slider":s=buildSlider(r,i);break;case"Timer":s=buildTimer(r,i);break;case"MultipleSelect":s=buildMultiSelect(r,i);break;case"LeaderBoard":s=buildLeaderBoard(r);break;default:exports.schema={type:"object",properties:{},required:[]},s=buildBasicUiSchema(r)}if(r!=null&&r.elements){if((r==null?void 0:r.type)==="LeaderBoard")return s;if(r.type=="Table"){let m=function(C){return C.type?{accessorKey:C.name,type:C.columnFormat,header:C.label||C.name,size:y[C.name]||180,widget:buildUiSchema(C)}:{accessorKey:C.name,type:C.columnFormat,header:C.label||C.name,size:y[C.name]||180}},g=function(C,F=null){const z=[];for(const W of C)if((W==null?void 0:W.parent)===F){const Q=g(C,W.name),he=m(W);Q.length>0&&(he.columns=Q,he.type="group"),z.push(he)}return z},v=function(C){const F=[],z=g(C.elements,C.name);for(const W of C.elements)!C.elements.some(he=>he.name===W.parent)&&W.parent!==C.name&&F.push(m(W));return[...z,...F]};const y={};r.sizeHolder&&r.sizeHolder.map((C,F)=>{y[C.keyName]=C.value}),s.elements=v(r)}else r.type=="Array"?s.options.detail.elements=r.elements.map((m,g)=>buildUiSchema(m)):s.elements=r.elements.map((m,g)=>buildUiSchema(m))}return s};exports.buildConfig=buildConfig,exports.buildSchema=buildSchema,exports.buildUiSchema=buildUiSchema,exports.clearFromLocalStorage=clearFromLocalStorage,exports.pageMaster=pageMaster,exports.pageMasterComponents=Component,exports.pageMasterEvents=event,exports.pageService=service,Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
26
+ `)+C+`return __p
27
+ }`;var k=il(function(){return W(u,A+"return "+C).apply(i,p)});if(k.source=C,yi(k))throw k;return k}function um(e){return z(e).toLowerCase()}function pm(e){return z(e).toUpperCase()}function cm(e,t,n){if(e=z(e),e&&(n||t===i))return fo(e);if(!e||!(t=_e(t)))return e;var o=He(e),a=He(t),u=mo(o,a),p=go(o,a)+1;return ft(o,u,p).join("")}function dm(e,t,n){if(e=z(e),e&&(n||t===i))return e.slice(0,yo(e)+1);if(!e||!(t=_e(t)))return e;var o=He(e),a=go(o,He(t))+1;return ft(o,0,a).join("")}function fm(e,t,n){if(e=z(e),e&&(n||t===i))return e.replace(yr,"");if(!e||!(t=_e(t)))return e;var o=He(e),a=mo(o,He(t));return ft(o,a).join("")}function mm(e,t){var n=ht,o=ll;if(J(t)){var a="separator"in t?t.separator:a;n="length"in t?P(t.length):n,o="omission"in t?_e(t.omission):o}e=z(e);var u=e.length;if(Rt(e)){var p=He(e);u=p.length}if(n>=u)return e;var c=n-Dt(o);if(c<1)return o;var f=p?ft(p,0,c).join(""):e.slice(0,c);if(a===i)return f+o;if(p&&(c+=f.length-c),vi(a)){if(e.slice(c).search(a)){var x,S=f;for(a.global||(a=Pr(a.source,z(Pi.exec(a))+"g")),a.lastIndex=0;x=a.exec(S);)var C=x.index;f=f.slice(0,C===i?c:C)}}else if(e.indexOf(_e(a),c)!=c){var I=f.lastIndexOf(a);I>-1&&(f=f.slice(0,I))}return f+o}function gm(e){return e=z(e),e&&Il.test(e)?e.replace(Bi,Gs):e}var hm=Wt(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),_i=oa("toUpperCase");function rl(e,t,n){return e=z(e),t=n?i:t,t===i?Os(e)?Vs(e):Ts(e):e.match(t)||[]}var il=H(function(e,t){try{return be(e,i,t)}catch(n){return yi(n)?n:new R(n)}}),ym=je(function(e,t){return Fe(t,function(n){n=$e(n),Ze(e,n,gi(e[n],e))}),e});function vm(e){var t=e==null?0:e.length,n=T();return e=t?X(e,function(o){if(typeof o[1]!="function")throw new Ae(y);return[n(o[0]),o[1]]}):[],H(function(o){for(var a=-1;++a<t;){var u=e[a];if(be(u[0],this,o))return be(u[1],this,o)}})}function bm(e){return Gu(Ee(e,ee))}function Si(e){return function(){return e}}function xm(e,t){return e==null||e!==e?t:e}var _m=la(),Sm=la(!0);function ge(e){return e}function wi(e){return Mo(typeof e=="function"?e:Ee(e,ee))}function wm(e){return No(Ee(e,ee))}function Cm(e,t){return Wo(e,Ee(t,ee))}var Im=H(function(e,t){return function(n){return ln(n,e,t)}}),Lm=H(function(e,t){return function(n){return ln(e,n,t)}});function Ci(e,t,n){var o=re(t),a=zn(t,o);n==null&&!(J(t)&&(a.length||!o.length))&&(n=t,t=e,e=this,a=zn(t,re(t)));var u=!(J(n)&&"chain"in n)||!!n.chain,p=tt(e);return Fe(a,function(c){var f=t[c];e[c]=f,p&&(e.prototype[c]=function(){var x=this.__chain__;if(u||x){var S=e(this.__wrapped__),C=S.__actions__=de(this.__actions__);return C.push({func:f,args:arguments,thisArg:e}),S.__chain__=x,S}return f.apply(e,lt([this.value()],arguments))})}),e}function Fm(){return ie._===this&&(ie._=Qs),this}function Ii(){}function Am(e){return e=P(e),H(function(t){return zo(t,e)})}var Tm=ni(X),Em=ni(lo),Bm=ni(Fr);function ol(e){return ui(e)?Ar($e(e)):ap(e)}function Rm(e){return function(t){return e==null?i:wt(e,t)}}var Dm=ua(),Pm=ua(!0);function Li(){return[]}function Fi(){return!1}function km(){return{}}function Hm(){return""}function Mm(){return!0}function Om(e,t){if(e=P(e),e<1||e>ot)return[];var n=ze,o=ae(e,ze);t=T(t),e-=ze;for(var a=Br(o,t);++n<e;)t(n);return a}function Nm(e){return D(e)?X(e,$e):Se(e)?[e]:de(Ia(z(e)))}function Wm(e){var t=++Js;return z(e)+t}var zm=Yn(function(e,t){return e+t},0),Um=ri("ceil"),Gm=Yn(function(e,t){return e/t},1),$m=ri("floor");function Km(e){return e&&e.length?Wn(e,ge,Ur):i}function Vm(e,t){return e&&e.length?Wn(e,T(t,2),Ur):i}function Ym(e){return po(e,ge)}function qm(e,t){return po(e,T(t,2))}function Xm(e){return e&&e.length?Wn(e,ge,Vr):i}function Jm(e,t){return e&&e.length?Wn(e,T(t,2),Vr):i}var Zm=Yn(function(e,t){return e*t},1),Qm=ri("round"),jm=Yn(function(e,t){return e-t},0);function eg(e){return e&&e.length?Er(e,ge):0}function tg(e,t){return e&&e.length?Er(e,T(t,2)):0}return l.after=Sd,l.ary=Ha,l.assign=pf,l.assignIn=Ja,l.assignInWith=ar,l.assignWith=cf,l.at=df,l.before=Ma,l.bind=gi,l.bindAll=ym,l.bindKey=Oa,l.castArray=Pd,l.chain=Da,l.chunk=Gp,l.compact=$p,l.concat=Kp,l.cond=vm,l.conforms=bm,l.constant=Si,l.countBy=jc,l.create=ff,l.curry=Na,l.curryRight=Wa,l.debounce=za,l.defaults=mf,l.defaultsDeep=gf,l.defer=wd,l.delay=Cd,l.difference=Vp,l.differenceBy=Yp,l.differenceWith=qp,l.drop=Xp,l.dropRight=Jp,l.dropRightWhile=Zp,l.dropWhile=Qp,l.fill=jp,l.filter=td,l.flatMap=id,l.flatMapDeep=od,l.flatMapDepth=ad,l.flatten=Ta,l.flattenDeep=ec,l.flattenDepth=tc,l.flip=Id,l.flow=_m,l.flowRight=Sm,l.fromPairs=nc,l.functions=Sf,l.functionsIn=wf,l.groupBy=ld,l.initial=ic,l.intersection=oc,l.intersectionBy=ac,l.intersectionWith=lc,l.invert=If,l.invertBy=Lf,l.invokeMap=ud,l.iteratee=wi,l.keyBy=pd,l.keys=re,l.keysIn=me,l.map=er,l.mapKeys=Af,l.mapValues=Tf,l.matches=wm,l.matchesProperty=Cm,l.memoize=nr,l.merge=Ef,l.mergeWith=Za,l.method=Im,l.methodOf=Lm,l.mixin=Ci,l.negate=rr,l.nthArg=Am,l.omit=Bf,l.omitBy=Rf,l.once=Ld,l.orderBy=cd,l.over=Tm,l.overArgs=Fd,l.overEvery=Em,l.overSome=Bm,l.partial=hi,l.partialRight=Ua,l.partition=dd,l.pick=Df,l.pickBy=Qa,l.property=ol,l.propertyOf=Rm,l.pull=cc,l.pullAll=Ba,l.pullAllBy=dc,l.pullAllWith=fc,l.pullAt=mc,l.range=Dm,l.rangeRight=Pm,l.rearg=Ad,l.reject=gd,l.remove=gc,l.rest=Td,l.reverse=fi,l.sampleSize=yd,l.set=kf,l.setWith=Hf,l.shuffle=vd,l.slice=hc,l.sortBy=_d,l.sortedUniq=wc,l.sortedUniqBy=Cc,l.split=om,l.spread=Ed,l.tail=Ic,l.take=Lc,l.takeRight=Fc,l.takeRightWhile=Ac,l.takeWhile=Tc,l.tap=$c,l.throttle=Bd,l.thru=jn,l.toArray=Ya,l.toPairs=ja,l.toPairsIn=el,l.toPath=Nm,l.toPlainObject=Xa,l.transform=Mf,l.unary=Rd,l.union=Ec,l.unionBy=Bc,l.unionWith=Rc,l.uniq=Dc,l.uniqBy=Pc,l.uniqWith=kc,l.unset=Of,l.unzip=mi,l.unzipWith=Ra,l.update=Nf,l.updateWith=Wf,l.values=Gt,l.valuesIn=zf,l.without=Hc,l.words=rl,l.wrap=Dd,l.xor=Mc,l.xorBy=Oc,l.xorWith=Nc,l.zip=Wc,l.zipObject=zc,l.zipObjectDeep=Uc,l.zipWith=Gc,l.entries=ja,l.entriesIn=el,l.extend=Ja,l.extendWith=ar,Ci(l,l),l.add=zm,l.attempt=il,l.camelCase=Kf,l.capitalize=tl,l.ceil=Um,l.clamp=Uf,l.clone=kd,l.cloneDeep=Md,l.cloneDeepWith=Od,l.cloneWith=Hd,l.conformsTo=Nd,l.deburr=nl,l.defaultTo=xm,l.divide=Gm,l.endsWith=Vf,l.eq=Oe,l.escape=Yf,l.escapeRegExp=qf,l.every=ed,l.find=nd,l.findIndex=Fa,l.findKey=hf,l.findLast=rd,l.findLastIndex=Aa,l.findLastKey=yf,l.floor=$m,l.forEach=Pa,l.forEachRight=ka,l.forIn=vf,l.forInRight=bf,l.forOwn=xf,l.forOwnRight=_f,l.get=bi,l.gt=Wd,l.gte=zd,l.has=Cf,l.hasIn=xi,l.head=Ea,l.identity=ge,l.includes=sd,l.indexOf=rc,l.inRange=Gf,l.invoke=Ff,l.isArguments=Lt,l.isArray=D,l.isArrayBuffer=Ud,l.isArrayLike=fe,l.isArrayLikeObject=Q,l.isBoolean=Gd,l.isBuffer=mt,l.isDate=$d,l.isElement=Kd,l.isEmpty=Vd,l.isEqual=Yd,l.isEqualWith=qd,l.isError=yi,l.isFinite=Xd,l.isFunction=tt,l.isInteger=Ga,l.isLength=ir,l.isMap=$a,l.isMatch=Jd,l.isMatchWith=Zd,l.isNaN=Qd,l.isNative=jd,l.isNil=tf,l.isNull=ef,l.isNumber=Ka,l.isObject=J,l.isObjectLike=Z,l.isPlainObject=fn,l.isRegExp=vi,l.isSafeInteger=nf,l.isSet=Va,l.isString=or,l.isSymbol=Se,l.isTypedArray=Ut,l.isUndefined=rf,l.isWeakMap=of,l.isWeakSet=af,l.join=sc,l.kebabCase=Xf,l.last=Re,l.lastIndexOf=uc,l.lowerCase=Jf,l.lowerFirst=Zf,l.lt=lf,l.lte=sf,l.max=Km,l.maxBy=Vm,l.mean=Ym,l.meanBy=qm,l.min=Xm,l.minBy=Jm,l.stubArray=Li,l.stubFalse=Fi,l.stubObject=km,l.stubString=Hm,l.stubTrue=Mm,l.multiply=Zm,l.nth=pc,l.noConflict=Fm,l.noop=Ii,l.now=tr,l.pad=Qf,l.padEnd=jf,l.padStart=em,l.parseInt=tm,l.random=$f,l.reduce=fd,l.reduceRight=md,l.repeat=nm,l.replace=rm,l.result=Pf,l.round=Qm,l.runInContext=d,l.sample=hd,l.size=bd,l.snakeCase=im,l.some=xd,l.sortedIndex=yc,l.sortedIndexBy=vc,l.sortedIndexOf=bc,l.sortedLastIndex=xc,l.sortedLastIndexBy=_c,l.sortedLastIndexOf=Sc,l.startCase=am,l.startsWith=lm,l.subtract=jm,l.sum=eg,l.sumBy=tg,l.template=sm,l.times=Om,l.toFinite=nt,l.toInteger=P,l.toLength=qa,l.toLower=um,l.toNumber=De,l.toSafeInteger=uf,l.toString=z,l.toUpper=pm,l.trim=cm,l.trimEnd=dm,l.trimStart=fm,l.truncate=mm,l.unescape=gm,l.uniqueId=Wm,l.upperCase=hm,l.upperFirst=_i,l.each=Pa,l.eachRight=ka,l.first=Ea,Ci(l,function(){var e={};return Ue(l,function(t,n){G.call(l.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),l.VERSION=m,Fe(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){l[e].placeholder=l}),Fe(["drop","take"],function(e,t){O.prototype[e]=function(n){n=n===i?1:ne(P(n),0);var o=this.__filtered__&&!t?new O(this):this.clone();return o.__filtered__?o.__takeCount__=ae(n,o.__takeCount__):o.__views__.push({size:ae(n,ze),type:e+(o.__dir__<0?"Right":"")}),o},O.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),Fe(["filter","map","takeWhile"],function(e,t){var n=t+1,o=n==Ai||n==cl;O.prototype[e]=function(a){var u=this.clone();return u.__iteratees__.push({iteratee:T(a,3),type:n}),u.__filtered__=u.__filtered__||o,u}}),Fe(["head","last"],function(e,t){var n="take"+(t?"Right":"");O.prototype[e]=function(){return this[n](1).value()[0]}}),Fe(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");O.prototype[e]=function(){return this.__filtered__?new O(this):this[n](1)}}),O.prototype.compact=function(){return this.filter(ge)},O.prototype.find=function(e){return this.filter(e).head()},O.prototype.findLast=function(e){return this.reverse().find(e)},O.prototype.invokeMap=H(function(e,t){return typeof e=="function"?new O(this):this.map(function(n){return ln(n,e,t)})}),O.prototype.reject=function(e){return this.filter(rr(T(e)))},O.prototype.slice=function(e,t){e=P(e);var n=this;return n.__filtered__&&(e>0||t<0)?new O(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(t=P(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},O.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},O.prototype.toArray=function(){return this.take(ze)},Ue(O.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),a=l[o?"take"+(t=="last"?"Right":""):t],u=o||/^find/.test(t);!a||(l.prototype[t]=function(){var p=this.__wrapped__,c=o?[1]:arguments,f=p instanceof O,x=c[0],S=f||D(p),C=function(M){var N=a.apply(l,lt([M],c));return o&&I?N[0]:N};S&&n&&typeof x=="function"&&x.length!=1&&(f=S=!1);var I=this.__chain__,A=!!this.__actions__.length,E=u&&!I,k=f&&!A;if(!u&&S){p=k?p:new O(this);var B=e.apply(p,c);return B.__actions__.push({func:jn,args:[C],thisArg:i}),new Te(B,I)}return E&&k?e.apply(this,c):(B=this.thru(C),E?o?B.value()[0]:B.value():B)})}),Fe(["pop","push","shift","sort","splice","unshift"],function(e){var t=In[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);l.prototype[e]=function(){var a=arguments;if(o&&!this.__chain__){var u=this.value();return t.apply(D(u)?u:[],a)}return this[n](function(p){return t.apply(D(p)?p:[],a)})}}),Ue(O.prototype,function(e,t){var n=l[t];if(n){var o=n.name+"";G.call(Mt,o)||(Mt[o]=[]),Mt[o].push({name:t,func:n})}}),Mt[Vn(i,We).name]=[{name:"wrapper",func:i}],O.prototype.clone=mu,O.prototype.reverse=gu,O.prototype.value=hu,l.prototype.at=Kc,l.prototype.chain=Vc,l.prototype.commit=Yc,l.prototype.next=qc,l.prototype.plant=Jc,l.prototype.reverse=Zc,l.prototype.toJSON=l.prototype.valueOf=l.prototype.value=Qc,l.prototype.first=l.prototype.head,jt&&(l.prototype[jt]=Xc),l},Pt=Ys();vt?((vt.exports=Pt)._=Pt,wr._=Pt):ie._=Pt}).call(commonjsGlobal)})(lodash,lodash.exports);var _=lodash.exports;const ComponentSchema={type:"object",properties:{type:{oneOf:[{title:"AadharcardText",const:"AadharcardText"},{title:"Array",const:"Array"},{title:"Button",const:"Button"},{title:"Card",const:"card"},{title:"CheckBox",const:"CheckBox"},{title:"Container",const:"WrapperSection"},{title:"DataGrid",const:"DataGrid"},{title:"Date",const:"Date"},{title:"DateTime",const:"DateTime"},{title:"Download File",const:"DownloadFile"},{title:"Empty Box",const:"EmptyBox"},{title:"File",const:"FileInput"},{title:"Graph",const:"Graph"},{title:"Input Slider",const:"InputSlider"},{title:"Label",const:"Box"},{title:"LeaderBoard",const:"LeaderBoard"},{title:"MultipleSelect",const:"MultipleSelect"},{title:"PanCardText",const:"PanCardText"},{title:"Popup Container",const:"PopUp"},{title:"ProgressBar",const:"ProgressBar"},{title:"ProgressBar Card",const:"ProgressBarCard"},{title:"Select",const:"Select"},{title:"Slider",const:"Slider"},{title:"SpeedoMeter",const:"SpeedoMeter"},{title:"Stepper Container",const:"Stepper"},{title:"Radio",const:"Radio"},{title:"Rank",const:"Rank"},{title:"Rank Card",const:"RankCard"},{title:"Runner Boy Progress Bar",const:"RunnerBoyProgressBar"},{title:"Table",const:"Table"},{title:"Tabs",const:"TabSection"},{title:"Text",const:"Text"},{title:"Text Area",const:"TextArea"},{title:"Timer",const:"Timer"},{title:"Upload File",const:"UploadFile"},{title:"Timer",const:"Timer"},{title:"Upload File",const:"UploadFile"},{title:"TreeMap",const:"TreeMap"}]},columnFormat:{oneOf:[{title:"Date Column",const:"date"},{title:"DateTime Column",const:"dateTime"},{title:"Amount Column",const:"amount"}]},orientation:{oneOf:[{title:"Horizontal",const:"horizontal"},{title:"Vertical",const:"vertical"}]},method:{type:"string",oneOf:[{title:"Get",const:"get"},{title:"Post",const:"post"},{title:"Delete",const:"delete"},{title:"Put",const:"put"}]},layout:{type:"array",items:{type:"object",properties:{key:{type:"string",oneOf:[{title:"Extra Small",const:"xs"},{title:"Small",const:"sm"},{title:"Medium",const:"md"},{title:"Large",const:"lg"}]},value:{}}}},cardLayout:{type:"array",items:{type:"object",properties:{key:{type:"string",oneOf:[{title:"Extra Small",const:"xs"},{title:"Small",const:"sm"},{title:"Medium",const:"md"},{title:"Large",const:"lg"}]},value:{}}}},value:{type:"array",items:{type:"object",properties:{label:{type:"string"},value:{type:"string"}}}},columns:{type:"array",items:{type:"object",properties:{header:{type:"string"},accessorKey:{type:"string"},widgetType:{type:"string"}}}},events:{type:"array",items:{type:"object",properties:{eventType:{type:"string"},configType:{type:"string"}}}},sectionLabels:{type:"array",items:{type:"object",properties:{label:{type:"string"}}}},Table_Download_Keys_Name:{type:"array",items:{type:"object",properties:{KeyName:{type:"string"}}}},sizeHolder:{type:"array",items:{type:"object",properties:{keyName:{type:"string"},value:{type:"string"}}}},legendLabels:{type:"array",items:{type:"object",properties:{label:{type:"string"}}}},pieArcColors:{type:"array",items:{type:"object",properties:{label:{type:"string"}}}},InputFormatingAndMasking:{type:"array",items:{type:"object",properties:{formatElement:{type:"string"}}}},validation:{type:"array",items:{type:"object",properties:{componentName:{type:"string"},validationType:{type:"string",oneOf:[{const:"required",title:"Required"},{const:"minLength",title:"Minimum Length"},{const:"maxLength",title:"Maximum Length"},{const:"pattern",title:"Pattern"}]},validationValue:{type:"string"}}}},buttonType:{type:"string",oneOf:[{title:"Button",const:"Button"},{title:"IconButton",const:"IconButton"},{title:"HybridButton",const:"ButtonWithIconAndText"}]},defaultStyle:{type:"string",oneOf:[{title:"Apply Default Style",const:"true"},{title:"No Style",const:"false"}]},graphType:{type:"string",oneOf:[{title:"Bar Graph",const:"BarGraph"},{title:"Stack Bar Graph",const:"StackBarGraph"},{title:"Line Graph",const:"LineGraph"},{title:"Pie Graph",const:"PieGraph"},{title:"Horizontal Bar Graph",const:"HorizontalBarGraph"}]},iconName:{type:"string",oneOf:[{title:"Search Icon",const:"SearchIcon"},{title:"Edit Icon",const:"EditIcon"},{title:"Add Icon",const:"AddIcon"},{title:"Send Icon",const:"SendIcon"},{title:"Approve Icon",const:"ApproveIcon"},{title:"RejectIcon",const:"RejectIcon"},{title:"Back Icon",const:"BackIcon"},{title:"Back Icon Second ",const:"BackIcon2"},{title:"Pending Icon",const:"PendingIcon"},{title:"View Icon",const:"ViewIcon"},{title:"Notification Icon",const:"NotificationIcon"},{title:"Person Icon",const:"PersonIcon"},{title:"Report Icon",const:"ReportIcon"},{title:"Error Icon",const:"ErrorIcon"},{title:"Refresh Icon",const:"RefreshIcon"},{title:"Download Icon",const:"DownloadIcon"},{title:"Exception Icon",const:"ExceptionIcon"}]},color:{type:"string",oneOf:[{title:"Primary",const:"primary"},{title:"Secondary",const:"secondary"},{title:"Error",const:"error"},{title:"Success",const:"success"},{title:"Info",const:"info"}]},name:{type:"string"},label:{type:"string"}},required:["name"]},componentBasicUiSchema={type:"HorizontalLayout",elements:[{type:"WrapperLayout",config:{main:{rowSpacing:1,header:!0},defaultStyle:!0},elements:[{type:"Control",scope:"#/properties/Component",options:{widget:"Box"},config:{layout:{xs:12,sm:12,md:2},main:{heading:"Component"},style:{float:"left"}}},{type:"Control",scope:"#/properties/pageName",options:{widget:"Box"},config:{layout:{xs:7,sm:7,md:9},main:{heading:" "},style:{float:"right",width:"auto",fontSize:"12px",color:"gray",paddingTop:"10px"}}},{type:"Control",scope:"#/properties/Back_Button",options:{widget:"IconButton"},config:{layout:{xs:2,sm:2,md:.5},main:{icon:"BackIcon",styleDefault:!0,size:"small",onClick:"backHandler",tooltipMessage:"Back"},style:{float:"right"}}}]},{type:"TabLayout",config:{main:{tabLabels:["Core"],defaultStyle:!0,id:"component"}},elements:[{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/type",options:{widget:"SelectInputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Type"}}},{type:"Control",scope:"#/properties/name",options:{widget:"InputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Name",options:[],color:"secondary",required:!0}}},{type:"Control",scope:"#/properties/label",options:{widget:"InputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Label",options:[],color:"secondary",required:!0}}},{type:"Control",scope:"#/properties/parent",options:{widget:"InputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"parent",options:[],color:"secondary",required:!0}}},{type:"Control",scope:"#/properties/columnFormat",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Column Format"}}},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:11,sm:11,md:6,lg:6}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/layout",layout:11.5,options:{detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/key",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Screen Size"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Value",type:"number",helperText:"Number should be in range of 0 to 12",errorMessage:"Number Can't be greater than 12 and can't be less than 0."}}}]}}}]}]},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:11,sm:11,md:6,lg:6}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/btn",options:{widget:"Button"},config:{layout:{xs:11,sm:11,md:2.5,lg:2.5},main:{name:"Ok",startIcon:"ApproveIcon",variant:"contained",color:"info",type:"text",onClick:"okHandler",size:"small"},style:{marginBottom:"8px",float:"right"}}},{type:"Control",scope:"#/properties/btnSubmit",options:{widget:"Button"},config:{layout:{xs:11,sm:11,md:2.5,lg:2.5},main:{name:"Save & Exit",startIcon:"ApproveIcon",variant:"contained",color:"info",type:"text",onClick:"saveHandler",size:"small"},style:{marginBottom:"8px",float:"right"}}},{type:"Control",scope:"#/properties/notify",options:{widget:"Notify"},layout:6}]},CoreSection={type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/type",options:{widget:"SelectInputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Type",type:"text"}}},{type:"Control",scope:"#/properties/name",options:{widget:"InputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Name"}}},{type:"Control",scope:"#/properties/label",options:{widget:"InputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Label"}}},{type:"Control",scope:"#/properties/parent",options:{widget:"InputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"parent",options:[],color:"secondary",required:!0}}},{type:"Control",scope:"#/properties/columnFormat",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Column Format"}}},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:11,sm:11,md:6,lg:6}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/layout",layout:11.5,options:{elementLabelProp:"key",detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/key",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Screen Size"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Value",type:"number",helperText:"Number should be in range of 0 to 12",errorMessage:"Number Can't be greater than 12 and can't be less than 0."}}}]}}}]},EventSection={type:"HorizontalLayout",elements:[{type:"WrapperLayout",config:{main:{divider:!0},wrapperStyle:{border:"1px solid gray"}},elements:[{type:"Control",scope:"#/properties/programType",options:{widget:"Box"},config:{layout:8,main:{heading:"Event Table"},style:{fontFamily:"Roboto",fontWeight:"500",paddingLeft:"-10px",fontSize:"20px"}}},{type:"Control",scope:"#/properties/Back_Button",options:{widget:"IconButton"},config:{layout:3,main:{icon:"AddIcon",styleDefault:!0,size:"small",onClick:"eventAddHandler",tooltipMessage:"Back"},style:{float:"right"}}},{type:"Control",scope:"#/properties/events",options:{widget:"Table"},config:{main:{disableAction:!0,disableSelection:!0,enableDrag:!0}},elements:[{accessorKey:"eventType",header:"Event Type"},{accessorKey:"Handler",header:"Handler"},{accessorKey:"Edit_Approve_Records",header:"Edit Widget",widget:{type:"Control",scope:"#/properties/Edit_Records",options:{widget:"IconButton"},config:{main:{color:"info",size:"small",icon:"EditIcon",tooltipMessage:"Edit This Record",onClick:"eventEditHandler"},style:{color:"#3949ab"}}}},{accessorKey:"Reject_Records",header:"Delete",widget:{type:"Control",scope:"#/properties/RejectButton",accessorKeyName:"Reject_Records",options:{widget:"IconButton"},config:{main:{icon:"RejectIcon",color:"error",tooltipMessage:"Reject This Record",onClick:"deleteEvent"}}}}]}]}]},EmptyBox={type:"Control",scope:"#/properties/empty",options:{widget:"EmptyBox"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{}}},cardLayout={type:"Control",scope:"#/properties/cardLayout",layout:11.5,options:{detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/key",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Screen Size"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Value",type:"number",helperText:"Number should be in range of 0 to 12",errorMessage:"Number Can't be greater than 12 and can't be less than 0."}}}]}}},getArrayControl=(r,s,i)=>({type:"Control",scope:`#/properties/${r}`,layout:11.5,options:{elementLabelProp:s,detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:`#/properties/${s}`,options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:i||"Labels for Tab"}}},EmptyBox]}}}),sizeHolder=getArrayControl("sizeHolder","keyName","Component Name");sizeHolder.options.detail.elements[1]={type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Size"}}};const getInputField=(r,s)=>({type:"Control",scope:`#/properties/${r}`,options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:s}}}),getRadioInputField=(r,s,i)=>({type:"Control",scope:`#/properties/${r}`,options:{widget:"RadioInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:s,options:i}}}),getTextArea=(r,s,i,m)=>({type:"Control",scope:`#/properties/${r}`,options:{widget:"TextArea"},config:{layout:m||12,style:{containerStyle:{borderRadius:"20px"},headerContainerStyle:{},textAreaStyle:{borderRadius:"20px",padding:"20px"}},main:{heading:s,minRows:8,hideButton:i}}}),getSelectField=(r,s,i)=>({type:"Control",scope:`#/properties/${r}`,options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:s,type:"text"}}}),GraphSection={type:"HorizontalLayout",elements:[]},buildPropertiesSection=function(r){let s=_.cloneDeep(GraphSection);switch(r){case"TreeMap":s.elements=[getSelectField("orientation","orientation"),getInputField("linkType","linkType"),getInputField("graphHeight","Graph Height"),getInputField("graphWidth","Graph Width"),getInputField("graphZoomHeight","Zoom Height")];case"InputSlider":s.elements=[getInputField("max","Max Limit"),getInputField("step","Step"),getInputField("min","Min Limit"),getRadioInputField("limitToMax","Applly Max. Limit",["YES","NO"])];break;case"DataGrid":s.elements=[getRadioInputField("divider","Use Header divider",["YES","NO"]),getInputField("elevation","Card Elevation"),getInputField("height","Grid height"),getInputField("justifyContent","justifyContent"),cardLayout];break;case"Stepper":s.elements=[getRadioInputField("resetButton","Reset Button",["YES","NO"]),getRadioInputField("defaultButtonAvailable","Use Default Buttons ",["YES","NO"]),getInputField("resetText","Reset Text"),getInputField("completeText","Complete Text"),getSelectField("orientation","Orientation Type"),getArrayControl("sectionLabels","label")];break;case"PopUp":s.elements=[getRadioInputField("fullScreen","FullScreen",["YES","NO"]),getRadioInputField("fullWidth","FullWidth",["YES","NO"]),getInputField("maxWidth","Max. Width"),EmptyBox];break;case"Text":s.elements=[getInputField("placeholder","Placeholder"),EmptyBox,getArrayControl("InputFormatingAndMasking","formatElement","Format Element")];break;case"TextArea":s.elements=[getInputField("placeholder","Placeholder"),EmptyBox];break;case"SpeedoMeter":s.elements=[getInputField("segments","Segments Count"),getInputField("heading","Container Heading"),getInputField("heading","Container Heading"),getInputField("speedoCaption","Speedometer Caption"),getInputField("width","Speedometer Width")];break;case"RankCard":s.elements=[getInputField("rank","Rank"),getInputField("image","Image Url"),getInputField("title","Card Title"),getInputField("description","Card Description")];break;case"LeaderBoard":s.elements=[getInputField("valueLabel","Value Label"),getInputField("firstImage","First Image url"),getInputField("secondImage","Second Image url"),getInputField("thirdImage","Third Image url"),getTextArea("functionCode","Write Compare Code",!1)];break;case"CardSlider":s.elements=[getInputField("heading","Heading"),getInputField("iconName","Icon Name")];break;case"ProgressBar":case"ProgressBarCard":s.elements=[getInputField("heading","Heading"),getInputField("bottomLabel_1","First BottomLabel"),getInputField("bottomLabel_2","Second BottomLabel"),getInputField("bottomLabel_3","Third BottomLabel")];break;case"card":s.elements=[getInputField("url","Image Url"),getInputField("label","Label"),getInputField("description","Description"),EmptyBox];break;case"Button":s.elements=[getSelectField("buttonType","Button Type"),getSelectField("iconName","Icon Name"),getSelectField("color","Color"),getInputField("tooltipMessage","Tooltip Message"),getSelectField("defaultStyle","Default Style"),EmptyBox];break;case"Graph":s.elements=[getInputField("height","Height"),getInputField("heading","Heading"),getSelectField("graphType","Graph Type"),getInputField("leftLabel","Left Label"),getInputField("bottomLabel","Bottom Label"),getRadioInputField("legendHide","Legend Hide",["YES","No"]),getInputField("yAxisValue","Y-AxisValue"),getInputField("xAxisValue","X-AxisValue"),getArrayControl("legendLabels","label"),getArrayControl("pieArcColors","color")];break;case"WrapperSection":s.elements=[getRadioInputField("divider","Divider",["YES","No"]),getRadioInputField("isAccordion","Accordion",["YES","No"]),getRadioInputField("defaultStyle","Default Style",["YES","No"]),getInputField("rowSpacing","Row Spacing")];break;case"TabSection":s.elements=[getRadioInputField("verticalOrientation","Vertical Orientation",["YES","NO"]),getRadioInputField("lazyLoad","Lazy Load",["YES","NO"]),getArrayControl("sectionLabels","label")];break;case"Table":case"LazyLoadingTable":s.elements=[getRadioInputField("lazyLoading","Lazy Loading",["YES","NO"]),getRadioInputField("SelectionAvailable","Selection Available",["YES","NO"]),getRadioInputField("ColumnResizingAvailable","ColumnResizing Available",["YES","NO"]),getRadioInputField("DragAvailable","Drag Available",["YES","NO"]),getRadioInputField("downloadAllData","Download All Data",["YES","NO"]),getInputField("selectKey","Selection Key"),getArrayControl("Table_Download_Keys_Name","KeyName","Table Key Name"),sizeHolder];break;case"Radio":s.elements=[getArrayControl("sectionLabels","label","Options Of Radio")];break;case"Select":s.elements=[getRadioInputField("lazyLoading","Lazy Loading",["YES","NO"]),getRadioInputField("freeSolo","FreeSolo",["YES","NO"])];break;case"MultipleSelect":s.elements=[getRadioInputField("lazyLoading","Lazy Loading",["YES","NO"]),EmptyBox];break}return s},StyleSection={type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/style",options:{widget:"TextArea"},config:{layout:{xs:12,sm:12,md:12,lg:12},style:{containerStyle:{borderRadius:"20px"},headerContainerStyle:{},textAreaStyle:{borderRadius:"20px",padding:"20px"}},main:{heading:"JSON Style",minRows:8,hideButton:!0}}}]},TableSection={type:"HorizontalLayout",elements:[{type:"WrapperLayout",config:{main:{},wrapperStyle:{border:"1px solid gray"}},elements:[{type:"Control",scope:"#/properties/programType",options:{widget:"Box"},config:{layout:8,main:{heading:"Components Table"},style:{fontFamily:"Roboto",fontWeight:"500",paddingLeft:"-10px",fontSize:"20px"}}},{type:"Control",scope:"#/properties/Back_Button",options:{widget:"IconButton"},config:{layout:3,main:{icon:"AddIcon",styleDefault:!0,size:"small",onClick:"widgetAddClickHandler",tooltipMessage:"Add New"},style:{float:"right"}}},{type:"Control",scope:"#/properties/elements",options:{widget:"Table"},config:{main:{disableAction:!0,disableSelection:!0,enableDrag:!0}},elements:[{accessorKey:"name",header:"Name"},{accessorKey:"type",header:"Type"},{header:"Edit Record",field:"Reject_Records",flex:1,widget:{type:"Control",scope:"#/properties/RejectButton",options:{widget:"IconButton"},config:{main:{icon:"EditIcon",color:"primary",onClick:"editComponents",tooltipMessage:"Reject This Record"}}}},{header:"Delete",field:"Reject_Records",flex:1,widget:{type:"Control",scope:"#/properties/RejectButton",options:{widget:"IconButton"},config:{main:{icon:"RejectIcon",color:"error",onClick:"deleteComponents",tooltipMessage:"Reject This Record"}}}}]}]}]},ValueTab={type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/value",layout:11.5,options:{detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/label",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Label"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Value"}}}]}}}]},ValidationSection={type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/validation",layout:11.5,options:{elementLabelProp:"validationType",detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/validationType",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Validation Type"}}},{type:"Control",scope:"#/properties/validationValue",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Validation Value"}}}]}}}]};var buildConfig=r=>{const s=_.cloneDeep(r);let i={};return s.pageName&&delete s.pageName,s.eventsSelected&&delete s.eventsSelected,(s.type==="Table"||s.type==="WrapperSection"||s.type==="TabSection")&&(i.elements=s.elements||[],s.elements&&delete s.elements),i.events=s.events||[],s.events&&delete s.events,i={...s,...i},i};const createLayoutFormat=r=>{if(_.isEmpty(r))return{xs:11,sm:11,md:5.5,lg:5.5};let s={};return r.map(i=>{s[i.key||"xs"]=+i.value||5.5}),s},flatObjectValueInArray=r=>{if(r[0].length<1)return;const s=Object.keys(r[0])[0];return r.map(m=>m[s])},clearFromLocalStorage=()=>{localStorage.removeItem("pageFormdata")},getNavigationHistory=(r,s)=>{if(s){let i=r.name;const m=s.split("."),h=[];return m.map((b,y)=>{if(y===0){h.push(b);return}h.push(`${h[y-1]}.${b}`)}),h.map(b=>{const y=_.get(r,b);y?i=i+` > ${(y==null?void 0:y.name)||(y==null?void 0:y.eventType)}`:i=i+" > NewComponent"}),{pageName:i}}},saveFormdataInLocalStorage=(r,s)=>{let i;if(s){const m=getFormdataFromLocalStorage();i=_.set(m,s,buildConfig(r))}else i=buildConfig(r);return localStorage.setItem("pageFormdata",JSON.stringify(i)),i},getFormdataFromLocalStorage=r=>{const s=localStorage.getItem("pageFormdata")?JSON.parse(localStorage.getItem("pageFormdata")):void 0;let i;return r&&(i=_.get(s,r),i={...i,...getNavigationHistory(s,r)}),i||(i=getNavigationHistory(s,r)),i||s};async function saveHandler(r,s,i,m){var y,w;(y=r.searchParams)==null||y.get("id");const h=(w=r.searchParams)==null?void 0:w.get("path");saveFormdataInLocalStorage(r.ctx.core.data,h);const b=JSON.parse(localStorage.getItem("pageFormdata"));if(_.isEmpty(r.ctx.core.errors))try{const F=await i(r,s,b);navigateHandler(r,!0,m?`/${m}?id=${F.id}`:"/PageMasterRecords")}catch{navigateHandler(r,!1)}}const navigateHandler=(r,s,i)=>{s?(localStorage.removeItem("pageFormdata"),r.navigate(i||-1),r.setNotify({SuccessMessage:"Submit Successfully",Success:!0})):(r.setValidation("ValidateAndShow"),r.setNotify({Fail:!0,FailMessage:"Errors on Page"}))};function okHandler(r){var i;const s=(i=r.searchParams)==null?void 0:i.get("path");console.log(r.ctx.core.errors),_.isEmpty(r.ctx.core.errors)?(saveFormdataInLocalStorage(r.ctx.core.data,s),r.navigate(-1),r.setNotify({SuccessMessage:"Save Successfully",Success:!0})):(r.setValidation("ValidateAndShow"),r.setNotify({Fail:!0,FailMessage:"Errors on Page"}))}const sectionLabels={Select:["Core","Properties","Value","Event","Style","Validation"],MultipleSelect:["Core","Properties","Value","Event","Style","Validation"],Table:["Core","Components","Properties","Event","Style","Validation"],LeaderBoard:["Core","Components","Properties","Event","Style","Validation"],WrapperSection:["Core","Components","Properties","Style","Validation"],TabSection:["Core","Components","Properties","Style","Validation"],SpeedoMeter:["Core","Properties","Event","Style","Validation"],card:["Core","Properties","Event","Style","Validation"],UploadFile:["Core","Event","Style","Validation"],Graph:["Core","Properties","Event","Style","Validation"],DownloadFile:["Core","Event","Style","Validation"],Box:["Core","Event","Style","Validation"],Properties:["Core","Properties","Event","Style","Validation"],ProgressBarCard:["Core","Properties","Event","Style","Validation"],RankCard:["Core","Properties","Event","Style","Validation"],Slider:["Core","Components","Event","Style","Validation"],Timer:["Core","Event","Style","Validation"],Rank:["Core","Event","Style","Validation"],Button:["Core","Properties","Event","Style","Validation"],Array:["Core","Components","Validation"],Radio:["Core","Properties","Event","Style","Validation"],Text:["Core","Properties","Event","Style","Validation"],TextArea:["Core","Properties","Event","Style","Validation"],PopUp:["Core","Components","Properties","Style"],Stepper:["Core","Components","Properties","Event","Style"],DataGrid:["Core","Components","Properties","Event","Style"],InputSlider:["Core","Properties","Event","Style","Validation"],TreeMap:["Core","Components","Properties","Event","Style"]},refreshPage=(r,s)=>{var m;const i=_.cloneDeep(componentBasicUiSchema);if(r){const h={Core:CoreSection,Value:ValueTab,Style:StyleSection,Event:EventSection,Components:TableSection,Properties:buildPropertiesSection(r),Validation:ValidationSection},b=(m=sectionLabels[r])==null?void 0:m.map(y=>h[y]);i.elements[1].config.main.tabLabels=sectionLabels[r]||["Core","Style","Event","Validation"],i.elements[1].elements=b||[CoreSection,StyleSection,EventSection,ValidationSection]}s.setUiSchema(i)};var Component=(r,s,i,m)=>({setPage:async function(){const h=await this.getFormdata();r.setFormdata(h);const b=this.getSchema();r.setSchema(b),this.refreshPage(h==null?void 0:h.type,r)},refreshPage,getFormdata:function(){var b;const h=(b=r.searchParams)==null?void 0:b.get("path");return getFormdataFromLocalStorage(h)},getSchema:function(){return ComponentSchema},okHandler:()=>okHandler(r),saveHandler:async()=>await saveHandler(r,m,i,"PageMaster"),onChange:function(){var h,b,y,w;((h=r==null?void 0:r.formData)==null?void 0:h.type)!==((b=r==null?void 0:r.newData)==null?void 0:b.type)&&((y=r==null?void 0:r.newData)==null?void 0:y.type)!==void 0&&this.refreshPage((w=r==null?void 0:r.newData)==null?void 0:w.type,r)},editComponents:function(){var w,F,$;const h=s.path.split(".")[1],b=(w=r.searchParams)==null?void 0:w.get("path"),y=(F=r.searchParams)==null?void 0:F.get("id");if(saveFormdataInLocalStorage(r.ctx.core.data,b),b){const ee=`${($=r.searchParams)==null?void 0:$.get("path")}.elements[${h}]`;r.searchParams.set("path",ee),r.setSearchParams(r.searchParams),this.setPage()}else r.navigate(`/Component?path=${`elements[${h}]`}&id=${y}`)},deleteComponents:function(){var F;const h=(F=r.searchParams)==null?void 0:F.get("path"),b=s.path.split(".")[1];r.formData.elements.splice(b,1);const y=saveFormdataInLocalStorage(r.ctx.core.data,h),w=h?_.get(y,h):y;r.setFormdata(w)},deleteEvent:function(){var w;const h=(w=r.searchParams)==null?void 0:w.get("path"),b=s.path.split(".")[1];r.formData.events.splice(b,1);const y=saveFormdataInLocalStorage(r.ctx.core.data,h);r.setFormdata(_.get(y,h))},widgetAddClickHandler:function(){var y;Array.isArray(r.formData.elements)||(r.formData.elements=[]);const h=(y=r.searchParams)==null?void 0:y.get("path");saveFormdataInLocalStorage(r.ctx.core.data,h);const b=`${h}.elements[${r.formData.elements.length}]`;r.searchParams.set("path",b),r.setSearchParams(r.searchParams),this.setPage()},eventEditHandler:function(){var F,$;const h=s.path.split(".")[1],b=(F=r.searchParams)==null?void 0:F.get("path"),y=($=r.searchParams)==null?void 0:$.get("id");saveFormdataInLocalStorage(r.ctx.core.data,b);const w=`${b}.events[${h}]`;r.navigate(`/ComponentEvents?path=${w}&id=${y}`)},eventAddHandler:function(){var w,F;const h=(w=r.searchParams)==null?void 0:w.get("path"),b=(F=r.searchParams)==null?void 0:F.get("id");Array.isArray(r.formData.events)||(r.formData.events=[]),saveFormdataInLocalStorage(r.ctx.core.data,h);const y=`${h}.events[${r.formData.events.length}]`;r.navigate(`/ComponentEvents?path=${y}&id=${b}`)},backHandler:function(){r.navigate(-1)}}),pageMaster=r=>{const{store:s,dynamicData:i,submitHandler:m,service:h}=r;return{setPage:async function(){const b=await this.getFormdata();s.setFormdata(b);const y=await this.getUiSchema(),w=await this.getSchema();s.setSchema(w),s.setUiSchema(y)},getFormdata:async function(){var F;const b=(F=s.searchParams)==null?void 0:F.get("id");let y={};b&&await h.get(`/page/getById?id=${b}`).then($=>{var V;y=(V=$.data)==null?void 0:V.config});const w=getFormdataFromLocalStorage();return w||(saveFormdataInLocalStorage(y),y)},getUiSchema:function(){return PageMasterUiSchema},getSchema:()=>PageMasterSchema,backHandler:()=>{localStorage.removeItem("pageFormdata"),s.navigate("/PageMasterRecords")},onAddClickHandler:function(){var w;const b=(w=s.searchParams)==null?void 0:w.get("id");Array.isArray(s.formData.elements)||(s.formData.elements=[]);const y=saveFormdataInLocalStorage(s.ctx.core.data);b?s.navigate(`/Component?path=${`elements[${y==null?void 0:y.elements.length}]`}&id=${b}`):s.navigate(`/Component?path=${`elements[${y==null?void 0:y.elements.length}]`}`)},saveHandler:async()=>await saveHandler(s,h,m),Edit_Components:Component(s,i,m,h).editComponents,Delete_Components:Component(s,i,m,h).deleteComponents,eventAddHandler:function(){var w;const b=(w=s.searchParams)==null?void 0:w.get("id");Array.isArray(s.formData.events)||(s.formData.events=[]),saveFormdataInLocalStorage(s.ctx.core.data);const y=`events[${s.formData.events.length}]`;s.navigate(`/ComponentEvents?path=${y}&id=${b}`)},editEvent:function(){var F;const b=i.path.split(".")[1],y=(F=s.searchParams)==null?void 0:F.get("id");saveFormdataInLocalStorage(s.ctx.core.data);const w=`events[${b}]`;s.navigate(`/ComponentEvents?path=${w}&id=${y}`)},deleteEvent:function(){const b=i.path.split(".")[1];s.formData.events.splice(b,1);const y=saveFormdataInLocalStorage(s.ctx.core.data);s.setFormdata(y)}}};const EventSchema={type:"object",properties:{headers:{type:"array",items:{type:"object",properties:{headers_key:{type:"string"},headers_value:{type:"string"}}}},method:{type:"string",oneOf:[{title:"Get",const:"get"},{title:"Post",const:"post"},{title:"Delete",const:"delete"},{title:"Put",const:"put"}]},refreshElements:{type:"array",items:{type:"object",properties:{value:{type:"string"}}}},eventType:{type:"string",oneOf:[{title:"Click Event",const:"onClick"},{title:"Load Event",const:"onLoad"},{title:"Change Event",const:"onChange"},{title:"Mount Event",const:"onMount"},{title:"Success",const:"Success"},{title:"onStart",const:"onStart"},{title:"Cell Renderer",const:"onCellRenderer"},{title:"File Upload Event",const:"onUpload"},{title:"Back Event",const:"onBack"},{title:"Next Event",const:"onNext"},{title:"File Download Event",const:"onDownload"},{title:"Fail",const:"Fail"}]},Handler:{type:"string",oneOf:[{title:"Custom",const:"custom"},{title:"Api",const:"api"},{title:"Inbuilt Function",const:"inBuiltFunction"},{title:"Refresh",const:"refresh"}]},inBuiltFunctionType:{type:"string",oneOf:[{title:"RankProvider",const:"RankProvider"},{title:"Download File",const:"downloadFile"},{title:"Download",const:"download"}]},body:{type:"array",items:{type:"object",properties:{body_key:{type:"string"},body_value:{type:"string"}}}}},required:["eventType","Handler"]},EventUiSchema={type:"HorizontalLayout",elements:[{type:"WrapperLayout",config:{main:{rowSpacing:1,header:!0},defaultStyle:!0},elements:[{type:"Control",scope:"#/properties/Component",options:{widget:"Box"},config:{layout:{xs:12,sm:12,md:2},main:{heading:"Component"},style:{float:"left"}}},{type:"Control",scope:"#/properties/pageName",options:{widget:"Box"},config:{layout:{xs:7,sm:7,md:9},main:{heading:" "},style:{float:"right",width:"auto",fontSize:"12px",color:"gray",paddingTop:"10px"}}},{type:"Control",scope:"#/properties/Back_Button",options:{widget:"IconButton"},config:{layout:{xs:2,sm:2,md:.5},main:{icon:"BackIcon",styleDefault:!0,size:"small",onClick:"backHandler",tooltipMessage:"Back"},style:{float:"right"}}}]},{type:"TabLayout",config:{main:{tabLabels:["Core","Response Event"],defaultStyle:!0,id:"event"}},elements:[{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/eventType",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Event Type",type:"text"}}},getSelectField("Handler","Handler")]},{type:"WrapperLayout",config:{main:{divider:!0},wrapperStyle:{border:"1px solid gray"}},elements:[{type:"Control",scope:"#/properties/heading",options:{widget:"Box"},config:{layout:8,main:{heading:"Response Event"},style:{fontFamily:"Roboto",fontWeight:"500",paddingLeft:"-10px",fontSize:"20px"}}},{type:"Control",scope:"#/properties/AddButton",options:{widget:"IconButton"},config:{layout:3,main:{icon:"AddIcon",styleDefault:!0,size:"small",onClick:"addEvent",tooltipMessage:"Back"},style:{float:"right"}}},{type:"Control",scope:"#/properties/events",options:{widget:"Table"},config:{main:{disableAction:!0,disableSelection:!0,enableDrag:!0}},elements:[{accessorKey:"eventType",header:"Event Type"},{accessorKey:"Handler",header:"Handler"},{accessorKey:"Edit_Approve_Records",header:"Edit Widget",widget:{type:"Control",scope:"#/properties/Edit_Records",options:{widget:"IconButton"},config:{main:{color:"info",size:"small",icon:"EditIcon",tooltipMessage:"Edit This Record",onClick:"editEvent"},style:{color:"#3949ab"}}}},{accessorKey:"Reject_Records",header:"Delete",widget:{type:"Control",scope:"#/properties/RejectButton",options:{widget:"IconButton"},config:{main:{icon:"RejectIcon",color:"error",tooltipMessage:"Reject This Record",onClick:"deleteEvent"}}}}]}]}]},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:11,sm:11,md:6,lg:6}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/btn",options:{widget:"Button"},config:{layout:{xs:11,sm:11,md:2.5,lg:2.5},main:{name:"Ok",startIcon:"ApproveIcon",variant:"contained",color:"info",type:"text",onClick:"okHandler",size:"small"},style:{marginBottom:"8px",float:"right"}}},{type:"Control",scope:"#/properties/btnSubmit",options:{widget:"Button"},config:{layout:{xs:11,sm:11,md:2.5,lg:2.5},main:{name:"Save & Exit",startIcon:"ApproveIcon",variant:"contained",color:"info",type:"text",onClick:"saveHandler",size:"small"},style:{marginBottom:"8px",float:"right"}}},{type:"Control",scope:"#/properties/notify",options:{widget:"Notify"},layout:6}]},APISection={type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/method",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Method",type:"text"}}},{type:"Control",scope:"#/properties/path",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Path",type:"text",multiple:!1,options:[]}}},{type:"Control",scope:"#/properties/headers",layout:11.5,options:{elementLabelProp:"key",detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/key",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Key"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Value"}}}]}}},{type:"Control",scope:"#/properties/body",layout:11.5,options:{elementLabelProp:"key",detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/key",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Key"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Value"}}}]}}},getTextArea("apiBody","Transformer",!0,12)]},refreshSectionUiSchema={type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/refreshElements",layout:11.5,options:{detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Value"}}},{type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{}}}]}}}]};var event=(r,s,i,m,h)=>({setPage:async function(){const b=await this.getFormData();r.setFormdata(b);const y=await this.getSchema();r.setSchema(y),this.refreshPage(b.Handler,r)},refreshPage:(b,y)=>{const w=_.cloneDeep(EventUiSchema),F=_.cloneDeep(EventSchema);b&&(b==="custom"?(w.elements[1].elements[0].elements[2]=getRadioInputField("isSync","Run in Sync",["Yes","No"]),w.elements[1].elements[0].elements[3]=getTextArea("eventCode","Write Custom Code",!1),F.required=["eventType","Handler","eventCode"]):b==="api"?(w.elements[1].elements[0].elements[2]=APISection,F.required=["eventType","Handler","method","path"]):b==="inBuiltFunction"?(w.elements[1].elements[0].elements[2]=getSelectField("inBuiltFunctionType","Function Name"),w.elements[1].elements[0].elements[3]=getTextArea("funcParametersCode","Write Custom Code for Functions Parameter",!0,{xs:12,sm:12,md:6}),F.required=["eventType","Handler","inBuiltFunctionType"]):b==="refresh"&&(w.elements[1].elements[0].elements[2]=refreshSectionUiSchema,F.properties.refreshElements.required=["value"],F.properties.refreshElements.items.required=["value"],F.required=["eventType","Handler","refreshElements"])),h&&(F.properties.inBuiltFunctionType.oneOf=[...F.properties.inBuiltFunctionType.oneOf,...h]),y.setSchema(F),y.setUiSchema(w)},getFormData:Component(r,s,i,m).getFormdata,getUiSchema:function(){return EventUiSchema},getSchema:()=>EventSchema,okHandler:()=>okHandler(r),saveHandler:async()=>await saveHandler(r,m,i,"PageMaster"),onChange:function(){var b,y,w;((b=r==null?void 0:r.formData)==null?void 0:b.Handler)!==((y=r==null?void 0:r.newData)==null?void 0:y.Handler)&&((w=r==null?void 0:r.newData)==null?void 0:w.Handler)!==void 0&&this.refreshPage(r.newData.Handler||r.formdata.Handler,r)},addEvent:function(){var w,F,$;const b=(w=r.searchParams)==null?void 0:w.get("path");Array.isArray(r.formData.events)||(r.formData.events=[]),saveFormdataInLocalStorage(r.ctx.core.data,b);const y=`${b}.events[${($=(F=r.formData)==null?void 0:F.events)==null?void 0:$.length}]`;r.searchParams.set("path",y),r.setSearchParams(r.searchParams),this.setPage()},editEvent:function(){var F;const b=s.path.split(".")[1],y=(F=r.searchParams)==null?void 0:F.get("path");saveFormdataInLocalStorage(r.ctx.core.data,y);const w=`${y}.events[${b}]`;r.searchParams.set("path",w),r.setSearchParams(r.searchParams),this.setPage()},deleteEvent:Component(r,s,i,m).deleteEvent,backHandler:function(){r.navigate(-1)}});const downloadFile$1=r=>{const s=r.name.split("."),i=r.data,m=window.atob(i);let h;h=new File([m],s[s.length-1]);const b=URL.createObjectURL(h),y=document.createElement("a");y.href=s[s.length-1]==="pdf"?"data:application/octet-stream;base64,"+i:b,y.download=`${r.name}`,document.body.appendChild(y),y.click(),URL.revokeObjectURL(b),document.body.removeChild(y)},doDownload=(r,s)=>{let i=`${s.defaults.baseURL}/${r.path}`;r!=null&&r.params&&Object.keys(r==null?void 0:r.params).map((b,y)=>{i=i+`${y===0?"?":"&"}${b}=${r==null?void 0:r.params[b]}`});const m=document.createElement("a");m.href=i,document.body.appendChild(m),m.click(),m.parentNode.removeChild(m)},executeEvents=r=>{var h,b,y;let s=[],i=null;if(r.config.isSync!=="Yes")return shouldEventExecute(r).then(w=>w?executeEventsHandler(r):{response:void 0,events:void 0}).then(w=>{var $;i=w,s=($=r.config)==null?void 0:$.events.filter(V=>V.eventType==="Success")}).catch(w=>{var V,ee;const F=(ee=(V=r.config)==null?void 0:V.events)==null?void 0:ee.filter(he=>he.eventType==="Fail");s=(F==null?void 0:F.length)>0?F:[]}).then(()=>{if((s==null?void 0:s.length)>0)return s.reduce((w,F)=>w.then(()=>executeEvents({...r,config:F,parentEventOutput:i})),Promise.resolve())}).then(()=>i);if(!shouldEventExecute(r))return{response:void 0,events:void 0};try{i=executeEventsHandler(r),s=(h=r.config)==null?void 0:h.events.filter($=>$.eventType==="Success")}catch{const w=(y=(b=r.config)==null?void 0:b.events)==null?void 0:y.filter($=>$.eventType==="Fail");s=(w==null?void 0:w.length)>0?w:[]}if((s==null?void 0:s.length)>0)for(const w of s)executeEvents({...r,config:w,parentEventOutput:i});return i};function executeEventsHandler(r){var s,i,m;if(r.config.Handler==="api")return executeApiRequest(r);if(r.config.Handler==="inBuiltFunction")return executeInBuiltFunctionHandler(r);if(r.config.Handler==="custom")return executeCustomHandler(r);if(r.config.Handler==="refresh")return executeRefreshHandler(r);if(r.config.Handler==="mergeFormdata")return mergeFormdata(r.parentEventOutput,r.componentName,r.config,r.store,r.service);if(r.config.Handler==="onBackHandler")return(s=r.store.functionParameters)==null?void 0:s.handleBack();if(r.config.Handler==="onNextHandler")return(i=r.store.functionParameters)==null?void 0:i.handleNext();if(r.config.Handler==="onResetHandler")return(m=r.store.functionParameters)==null?void 0:m.handleReset()}function getRefreshElements(r,s){var m;let i=[];return((m=r==null?void 0:r.refreshElements)==null?void 0:m.length)>0?i=r.refreshElements.map(h=>h.value):s!=null&&s.onLoad&&(i=Object.keys(s==null?void 0:s.onLoad),i.push(i[0])),console.log(i),i}function executeRefreshHandler(r){const s=getRefreshElements(r.config,r.eventGroups);return Promise.all(s.map(i=>Promise.all(r.eventGroups.onLoad[i].map(m=>executeEvents({...r,config:m,componentName:i})))))}function executeApiRequest(r){var h;const s={...(h=r.userValue)==null?void 0:h.payload},i={"X-Requested-With":"XMLHttpRequest","Access-Control-Allow-Origin":"*"},m=buildApiPayload(r.config,s,i,r.store,r.dynamicData,r.userValue,r.service);return r.service[r.config.method](r.config.path,m.body,{headers:m.headers}).then(b=>b)}function executeInBuiltFunctionHandler(params){let parameter={};if(params.config.funcParametersCode){const makeFunc=eval(params.config.funcParametersCode);parameter=makeFunc(params.store,params.dynamicData,params.userValue,params.parentEventOutput,params.service),params.serviceHolder[params.config.inBuiltFunctionType](parameter,params.service)}else params.serviceHolder[params.config.inBuiltFunctionType](params.store,params.dynamicData,params.userValue,params.parentEventOutput,params.service)}function executeCustomHandler(params){const makeFunc=eval(params.config.eventCode);return params.config.isSync!=="Yes"?makeFunc(params.store,params.dynamicData,params.userValue,params.parentEventOutput,params.service,params.componentName).then(r=>r):makeFunc(params.store,params.dynamicData,params.userValue,params.parentEventOutput,params.service,params.componentName)}function mergeFormdata(r,s,i,m,h){i.type==="Select"&&!(_.isEmpty(r==null?void 0:r.data)&&(r==null?void 0:r.data))?m.setSchema(b=>{var y;return{...b,properties:{...b.properties,[s]:{...(y=b.properties)==null?void 0:y[s],oneOf:r.data}}}}):i.type==="MultipleSelect"&&!(_.isEmpty(r==null?void 0:r.data)&&(r==null?void 0:r.data))?m.setSchema(b=>{var y;return{...b,properties:{...b.properties,[s]:{...(y=b.properties)==null?void 0:y[s],type:"array",items:{oneOf:r==null?void 0:r.data}}}}}):i.type==="page"?_.isEmpty(r==null?void 0:r.data)&&(r==null?void 0:r.data)||m.setFormdata(b=>({...b,...r==null?void 0:r.data})):r&&m.setFormdata(b=>{var y;return{...b,[s]:i.lazyLoading?(y=r==null?void 0:r.data)==null?void 0:y.data:r.data}})}const buildBodyFormat=(r,s,i)=>{let m={...i==null?void 0:i.payload};return r.map(h=>{var b,y;if(typeof(h==null?void 0:h.value)!="string")m[h.key]=h.value;else if((b=h==null?void 0:h.value)!=null&&b.startsWith("$userValue")){const w=h.value.substring(11);m[h.key]=_.get(i,w)}else if((y=h==null?void 0:h.value)!=null&&y.startsWith("$")){const w=h.value.substring(1);m[h.key]=_.get(s,w)}else(h==null?void 0:h.value)==="*"&&(h==null?void 0:h.key)==="*"?m={...m,...s}:(h==null?void 0:h.value)==="*"?m[h.key]=s:m[h.key]=h.value}),m},buildHeadersFormat=r=>{const s={"X-Requested-With":"XMLHttpRequest"};return r.map(i=>{s[i.key]=i.value}),s};function shouldEventExecute(r){var i,m,h;const s=(m=(i=r.config)==null?void 0:i.events)==null?void 0:m.filter(b=>b.eventType==="onStart");return(s==null?void 0:s.length)>0?((h=s[0])==null?void 0:h.isSync)!=="Yes"?executeEventsHandler({...r,config:s[0]}).then(b=>b):executeEventsHandler({...r,config:s[0]}):r.config.isSync!=="Yes"?Promise.resolve(!0):!0}function buildApiPayload(compConfig,body,headers,store,dynamicData,userValue,service){var r,s;compConfig!=null&&compConfig.headers&&(headers=buildHeadersFormat(compConfig.headers)),compConfig.body&&(body={...buildBodyFormat(compConfig.body,store.newData||((s=(r=store==null?void 0:store.ctx)==null?void 0:r.core)==null?void 0:s.data)||store.formData,userValue)});const promiseChain={body,headers};if(compConfig.apiBody){const makeFunc=eval(compConfig.apiBody);return{body:makeFunc(store,dynamicData,userValue,promiseChain.body),headers:promiseChain.headers}}return promiseChain}function asyncOperation(){return new Promise((r,s)=>{setTimeout(()=>{r("Operation completed successfully!"),s(new Error("Operation failed!"))},50)})}let compType,eventGroups={};const notifyUiSchema={type:"Control",scope:"#/properties/notify",options:{widget:"Notify"},layout:6},extractEvents=r=>{function s(i){i.events&&i.events.forEach(m=>{var b;i.type&&(compType=i.type),eventGroups[m.eventType]||(eventGroups[m.eventType]={}),eventGroups[m.eventType][i.name]||(eventGroups[m.eventType][i.name]=[]);const h=(b=m==null?void 0:m.events)==null?void 0:b.find(y=>y.eventType==="Success");!h&&m.eventType==="onLoad"&&m.events.push({Handler:"mergeFormdata",eventType:"Success",type:compType,lazyLoading:r.lazyLoading==="YES"}),!h&&(m.eventType==="onBack"||m.eventType==="onNext"||m.eventType==="onReset")&&m.events.push({Handler:`${m.eventType}Handler`,eventType:"Success",type:compType,lazyLoading:r.lazyLoading==="YES"}),eventGroups[m.eventType][i.name].push({...m,type:compType})})}return s(r),r!=null&&r.elements&&r.elements.forEach(extractEvents),eventGroups};var service=r=>{eventGroups={},eventGroups=extractEvents(r.config);let s={config:{},componentName:"",store:r.store,dynamicData:r.dynamicData,userValue:r.userValue,service:r.service,serviceHolder:{downloadFile:downloadFile$1,download:doDownload},eventGroups};return{setPage:async function(){r.store.setFormdata({}),r.store.setSchema(i=>({...r.schema,properties:{...r.schema.properties,...i.properties}})),r.uiSchema.elements.push(notifyUiSchema),r.store.setUiSchema(r.uiSchema),await asyncOperation(),s={config:{},componentName:"",store:r.store,dynamicData:r.dynamicData,userValue:r.userValue,service:r.service,serviceHolder:this,eventGroups},await executeRefreshHandler({config:{},componentName:"",store:r.store,dynamicData:r.dynamicData,userValue:r.userValue,service:r.service,serviceHolder:this,eventGroups})},onClick:async function(){await this.callHandler("onClick")},onFileDownload:async function(){await this.callHandler("onDownload")},onFileUpload:async function(){await this.callHandler("onUpload")},onPaginationChange:async function(i){var b;const m=[{key:"size",value:i.pagination.pageSize},{key:"pageIndex",value:i.pagination.pageIndex},{key:"sorting",value:i.sorting||[]},{key:"filters",value:i.columnFilters||[]},{key:"globalFilter",value:(b=i.globalFilter)!=null?b:""}],h=await this.updateConfigApiBody(i,m);return h==null?void 0:h.data},getSelectOptions:async function(i){if(i.serachValue!==""&&i.serachValue!==void 0){const m=[{key:"searchValue",value:i.serachValue},{key:"currentValue",value:i.currentValue}];return await this.updateConfigApiBody(i,m)}},onChange:async function(){if(eventGroups.onChange){const i=Object.keys(eventGroups.onChange);Promise.all(i.map(async m=>{var h,b;if(((h=r.store)==null?void 0:h.formData[m])!==r.store.newData[m]&&((b=r.store)==null?void 0:b.newData[m])!==void 0)for(const y of eventGroups.onChange[m])await executeEvents({...s,config:y,componentName:m})}))}},updateConfigApiBody:async function(i,m){var b;let h;for(const y of eventGroups==null?void 0:eventGroups.onLoad[i.path]){y.body?y.body=[...y.body,...m]:y.body=m;const w=(b=y==null?void 0:y.events)==null?void 0:b.filter(F=>F.Handler!=="mergeFormdata");y.events=w!=null?w:[],h=await executeEvents({...s,config:y,componentName:i.path})}return h},onBack:async function(i){var h,b;const m=((h=r.dynamicData)==null?void 0:h.tableButtonPath)||r.dynamicData.path.split(".")[0];await this.callHandler("onBack",i),((b=eventGroups==null?void 0:eventGroups.onBack)==null?void 0:b[m])===void 0&&(i==null||i.handleBack())},onNext:async function(i){var h,b;const m=((h=r.dynamicData)==null?void 0:h.tableButtonPath)||r.dynamicData.path.split(".")[0];await this.callHandler("onNext",i),((b=eventGroups==null?void 0:eventGroups.onNext)==null?void 0:b[m])===void 0&&(i==null||i.handleNext())},onReset:async function(i){var h,b;const m=((h=r.dynamicData)==null?void 0:h.tableButtonPath)||r.dynamicData.path.split(".")[0];await this.callHandler("onReset",i),((b=eventGroups==null?void 0:eventGroups.onReset)==null?void 0:b[m])===void 0&&(i==null||i.handleReset())},callHandler:async function(i,m){var b,y,w;const h=((b=r.dynamicData)==null?void 0:b.tableButtonPath)||r.dynamicData.path.split(".")[0];if(((y=eventGroups==null?void 0:eventGroups[i])==null?void 0:y[h])!==void 0)for(const F of(w=eventGroups==null?void 0:eventGroups[i])==null?void 0:w[h])s.store.functionParameters=m,await executeEvents({...s,config:F,componentName:h})},downloadFile:downloadFile$1,download:doDownload}},leaderBoard={type:"WrapperLayout",config:{main:{rowSpacing:3,header:!0,label:"LeaderBoard",divider:!0},style:{wrapperStyle:{height:{xs:850,sm:1e3}}},wrapperStyle:{position:"relative",width:"100%"}},elements:[{type:"Control",scope:"#/properties/leaderBoard/properties/firstImage",config:{main:{url:"https://my.alfred.edu/zoom/_images/foster-lake.jpg"},containerStyle:{objectFit:"cover",position:"absolute",top:{xs:"90px",md:"60px"},left:{xs:"calc(50% - 50px)",sm:"calc(50% - 50px)",md:"calc(50% - 100px)"},width:{xs:"100px",sm:"100px",md:"200px"},border:"5px solid rgb(179, 198, 255)",height:{xs:"100px",sm:"100px",md:"200px"},borderRadius:"50%"},style:{objectFit:"cover",width:"100%",height:"100%",borderRadius:"50%"},layout:6},options:{widget:"Image"}},{type:"Control",scope:"#/properties/leaderBoard/properties/secondImage",config:{main:{url:"https://my.alfred.edu/zoom/_images/foster-lake.jpg"},containerStyle:{objectFit:"cover",position:"absolute",top:{xs:"160px",md:"130px"},left:{xs:"calc(25% - 45px)",sm:"calc(25% - 45px)",md:"calc(25% - 90px)"},width:{xs:"80px",sm:"80px",md:"180px"},border:"5px solid rgb(179, 198, 255)",height:{xs:"80px",sm:"80px",md:"180px"},borderRadius:"50%"},style:{objectFit:"cover",width:"100%",height:"100%",borderRadius:"50%"},layout:6},options:{widget:"Image"}},{type:"Control",scope:"#/properties/leaderBoard/properties/thirdImage",config:{main:{url:"https://my.alfred.edu/zoom/_images/foster-lake.jpg"},containerStyle:{objectFit:"cover",position:"absolute",top:{xs:"160px",md:"130px"},left:{xs:"calc(75% - 42.5px)",sm:"calc(75% - 42.5px)",md:"calc(75% - 85px)"},width:{xs:"80px",sm:"80px",md:"180px"},border:"5px solid rgb(179, 198, 255)",height:{xs:"80px",sm:"80px",md:"180px"},borderRadius:"50%"},style:{objectFit:"cover",width:"100%",height:"100%",borderRadius:"50%"},layout:6},options:{widget:"Image"}},{type:"Control",scope:"#/properties/leaderBoard/properties/firstName",config:{main:{heading:"Satendra Raghav"},style:{objectFit:"cover",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",color:"black",top:{xs:"190px",md:"270px"},fontSize:{xs:"12px",md:"20px"},left:"calc(50% - 90px)",width:"180px",fontWeight:"bold",borderRadius:"50%",zIndex:7},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/leaderBoard/properties/secondName",config:{main:{heading:"Satendra Raghav"},style:{objectFit:"cover",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",color:"black",top:{xs:"240px",md:"320px"},fontSize:{xs:"12px",md:"20px"},left:"calc(25% - 90px)",width:"180px",fontWeight:"bold",borderRadius:"50%"},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/leaderBoard/properties/thirdName",config:{main:{heading:"Satendra Raghav"},style:{objectFit:"cover",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",color:"black",top:{xs:"240px",md:"320px"},fontSize:{xs:"12px",md:"20px"},left:"calc(75% - 90px)",width:"180px",fontWeight:"bold",borderRadius:"50%"},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/econd",config:{main:{heading:"2"},style:{objectFit:"cover",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",textShadow:"2px 2px 5px #5065C7",background:"green",color:"white",top:{xs:"225px",md:"280px"},fontSize:{xs:"12px",md:"16px"},left:{xs:"calc(25% - 12px)",md:"calc(25% - 16px)"},width:{xs:"20px",md:"40px"},border:{xs:"2px solid rgb(179, 198, 255)",md:"5px solid rgb(179, 198, 255)"},height:{xs:"20px",md:"40px"},"@keyframes rotateAnimation":{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},animation:"rotateAnimation 4s infinite",borderRadius:"50%",zIndex:5},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/first",config:{main:{heading:"1"},style:{objectFit:"cover",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",textShadow:"2px 2px 5px #5065C7",background:"green",color:"white",top:{xs:"175px",md:"230px"},fontSize:{xs:"12px",md:"16px"},left:{xs:"calc(50% - 12px)",md:"calc(50% - 16px)"},"@keyframes rotateAnimation":{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},animation:"rotateAnimation 4s infinite",width:{xs:"20px",md:"40px"},border:{xs:"2px solid rgb(179, 198, 255)",md:"5px solid rgb(179, 198, 255)"},height:{xs:"20px",md:"40px"},borderRadius:"50%",zIndex:5},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/third",config:{main:{heading:"3"},style:{objectFit:"cover",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",textShadow:"2px 2px 5px #5065C7",background:"green",color:"white",top:{xs:"225px",md:"280px"},fontSize:{xs:"12px",md:"16px"},left:{xs:"calc(75% - 12px)",md:"calc(75% - 16px)"},width:{xs:"20px",md:"40px"},border:{xs:"2px solid rgb(179, 198, 255)",md:"5px solid rgb(179, 198, 255)"},height:{xs:"20px",md:"40px"},"@keyframes rotateAnimation":{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},animation:"rotateAnimation 4s infinite",borderRadius:"50%",zIndex:5},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/leaderBoard/properties/table",options:{widget:"Table"},elements:[],config:{style:{tableHeadstyle:{fontWeight:900,background:"rgb(179, 198, 255)"},position:"absolute",top:{xs:"300px",sm:"300px",md:"390px",lg:"390px"},border:"2px solid rgb(179, 198, 255)",width:"95%",left:"2.5%"},main:{disableAction:!0,disableSelection:!0}}}]};const buildLeaderBoard=r=>{const s=_.cloneDeep(leaderBoard);if(r.elements){const i=r.elements.map((m,h)=>m.type?{...{widget:buildUiSchema(m),accessorKey:m.name,header:m.label||m.name}}:{accessorKey:m.name,header:m.label||m.name});s.elements[9].elements=i}return s.config.main.label=r.label,r.name&&(s.elements[0].scope=`#/properties/${r.name}/properties/firstImage`,s.elements[3].scope=`#/properties/${r.name}/properties/firstName`,s.elements[1].scope=`#/properties/${r.name}/properties/secondImage`,s.elements[4].scope=`#/properties/${r.name}/properties/secondName`,s.elements[2].scope=`#/properties/${r.name}/properties/thirdImage`,s.elements[5].scope=`#/properties/${r.name}/properties/thirdName`,s.elements[9].scope=`#/properties/${r.name}/properties/table`),r.firstImage&&(s.elements[0].config.main.url=r.firstImage),r.secondImage&&(s.elements[1].config.main.url=r.secondImage),r.secondImage&&(s.elements[2].config.main.url=r.thirdImage),r.layout&&(s.config.layout=createLayoutFormat(r.layout)),s};var progressBar={type:"Control",scope:"#/properties/pbc_progress",options:{widget:"ProgressBar"},config:{layout:6,main:{developOnlyProgresBar:!1,bottomLabel_3:"Remaining",heading:"PBC Details"}}};const buildProgressBarCard=(r,s)=>{const i=_.cloneDeep(progressBar);return i.scope=s,r.heading&&(i.config.main.heading=r.heading),r.bottomLabel_3&&(i.config.main.bottomLabel_3=r.bottomLabel_3),r.bottomLabel_2&&(i.config.main.bottomLabel_2=r.bottomLabel_2),r.bottomLabel_1&&(i.elements[0].config.main.bottomLabel_1=r.bottomLabel_1),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i},buildProgressBar=(r,s)=>{const i=_.cloneDeep(progressBar);return i.scope=s,r.layout&&(i.config.layout=r.layout),i.config.main.heading=r.heading,r.bottomLabel_3&&(i.config.main.bottomLabel_3=r.bottomLabel_3),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.bottomLabel_2&&(i.config.main.bottomLabel_2=r.bottomLabel_2),r.bottomLabel_1&&(i.config.main.bottomLabel_1=r.bottomLabel_1),i},BarGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{main:{header:"Bar Graph",bottomLabel:"Name of Employe",numTicks:6,leftLabel:"Value in lakhs",axisLeft:!0,axisBottom:!0,hideTicks:!1,hideLeftAxisLine:!1,hideBottomAxisLine:!1,bottomAxisWidth:"10px",legend:{labelColor:"green",legendTitle:"",direction:"row",align:"none"}},style:{containerStyle:{width:"100%",height:300},headerStyle:{},tooltipStyle:{},labelStyle:{margin:{left:80,bottom:20},leftLabelOffset:50,bottomLabelOffset:10},barStyle:{color:{firstBarColor:"#6c5efb",secondBarColor:"#3f51b5"}},legendStyle:{legend:{lineHeight:"0.9em",fontSize:"8px",fontFamily:"arial",padding:"10px 10px",width:"30%",display:"flex",justifyContent:"center",border:"1px solid rgba(255, 255, 255, 0.3)",borderRadius:" 8px",marginRight:"auto"},legendTitle:{fontSize:"10px",marginBottom:"10px",fontWeight:"100"}}}}},PieGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{main:{header:"Incentive Branch category wise",type:"PieGraph",bottomLabel:"Name of Employe",leftLabel:"Value",axisLeft:!0,axisBottom:!0,legendAvailable:!0,legend:{labelColor:"green",legendTitle:"Branches",direction:"row",align:"right"}},style:{containerStyle:{height:"340"},headerStyle:{},tooltipStyle:{backgroundColor:"black",width:"80px"},labelStyle:{},legendStyle:{legend:{},legendTitle:{}},pieStyle:{}}}},LineGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{layout:12,main:{type:"LineGraph",header:"Quartely Incentive in Thousand",bottomLabel:"Years",leftLabel:"Incentive",gridHidden:!0,numHidden:!1,tooltipDataKey:["First","Second","Third"],axisLeft:!0,axisBottom:!0,hideLeftAxisLine:!1,hideBottomAxisLine:!1,legend:{labelColor:"green",legendTitle:"Our Assests",direction:"row",align:"right",colorRectWidth:20}},style:{containerStyle:{},headerStyle:{},labelStyle:{},lineStyle:{}}}},HorizontalBarGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{main:{header:" ",type:"HorizontalBarGraph",bottomLabel:" ",leftLabel:"Value",axisLeft:!1,axisBottom:!0,hideBottomTicks:!1,hideLeftTicks:!1,hideLeftAxisLine:!0,hideBottomAxisLine:!1,bottomAxisWidth:"10px"},style:{containerStyle:{width:"100%"},headerStyle:{},tooltipStyle:{},labelStyle:{},barStyle:{color:"#6c5efb"}}}},buildHorizontalBarGraph=(r,s)=>{const i=_.cloneDeep(HorizontalBarGraph);return i.scope=s,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i.scope=s,i.config.main.header=r.heading,r.barColor&&(i.config.barStyle.color=r.barColor),r.containerBackground&&(i.config.containerStyle.background=r.containerBackground),r.height&&(i.config.style.containerStyle.height=r.height),r.bottomLabel&&(i.config.main.bottomLabel=r.bottomLabel),r.leftLabel&&(i.config.main.leftLabel=r.leftLabel),i};var SpeedoMeter={type:"Control",scope:"#/properties/emptyBox",options:{widget:"SpeedoMeter"},config:{layout:{xs:12,sm:12,md:11.7,lg:11.7},width:350,segments:"5",main:{currentValueText:"Your Score",customSegmentLabels:[],data:{maxValue:1e5,value:5e4,minValue:0}},style:{segmentColors:[],ringWidth:57,needleHeightRatio:.7,needleColor:"#3f51b5",startColor:"red",textColor:"black",endColor:"green",containerStyle:{background:"white",padding:"20px",borderRadius:"20px",display:"flex",flexDirection:"column",margin:"auto",justifyContent:"center",fontFamily:"Roboto",fontWeight:500},headerStyle:{textAlign:"left",width:"100%",paddingBottom:"20px"}}}};const buildSpeedoMeter=(r,s)=>{const i=_.cloneDeep(SpeedoMeter);if(i.scope=s,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.heading&&(i.config.main.header=r.heading),r.segments&&(i.config.main.segments=r.segments),r.style){const m=JSON.parse(r.style);m!=null&&m.style&&(i.config.style={...i.config.style,...m.style}),m!=null&&m.containerStyle&&(i.config.style.containerStyle={...i.config.style.containerStyle,...m.containerStyle})}return r.width&&(i.config.main.width=r.width),r.speedoCaption&&(i.config.main.currentValueText=r.speedoCaption),r.data&&(i.config.main.data=r.data),r.needleColor&&(i.config.style.needleColor=r.needleColor),r.segments&&(i.config.style.segments=r.segments),r.endColor&&(i.config.style.endColor=r.endColor),r.startColor&&(i.config.style.startColor=r.startColor),r.segmentColors&&(i.config.style.segmentColors=r.segmentColors),i},buildPieGraph=(r,s)=>{const i=_.cloneDeep(PieGraph);return r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.height&&(i.config.style.containerStyle.height=r.height),r.legendHide&&(i.config.main.legendAvailabe=r.legendHide!=="YES"),i.scope=s,i.config.main.header=r.heading,r.legendLabels&&(i.config.main.tooltipDataKey=flatObjectValueInArray(r.legendLabels)),r.pieArcColors&&(i.config.style.pieStyle.colorRange=flatObjectValueInArray(r.pieArcColors)),i},buildStackbarGraph=(r,s)=>{const i=_.cloneDeep(BarGraph);return r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.legendHide&&(i.config.main.legendAvailable=!1),i.config.main.type=r.graphType,i.config.main.header=r.heading,r.barColor&&(i.config.barStyle.color=r.barColor),r.containerBackground&&(i.config.containerStyle.background=r.containerBackground),r.height&&(i.config.style.containerStyle.height=r.height),r.bottomLabel&&(i.config.main.bottomLabel=r.bottomLabel),r.leftLabel&&(i.config.main.leftLabel=r.leftLabel),i.scope=s,i};var RunnerBoyProgressBar={type:"Control",scope:"#/properties/path",options:{widget:"RunnerBoyProgressBar"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{}}};const RunnerBoyProgressbar=(r,s)=>{const i=_.cloneDeep(RunnerBoyProgressBar);return i.scope=s,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i};var Tabsection={type:"TabLayout",config:{main:{id:"groupMaster",tabLabels:["default"],layout:12}},elements:[]};const buildTabSection=(r,s)=>{const i=_.cloneDeep(Tabsection);return i.scope=s,r.lazyLoad&&(i.config.main.lazyLoad=r.lazyLoad==="YES"),r.orientation&&(i.config.main.orientation=r.orientation==="YES"?"vertical":"horizontal"),r.sectionLabels&&(i.config.main.tabLabels=r.sectionLabels.map(m=>m.label)),i.config.main.id=r.name,i};var WrapperSection={type:"WrapperLayout",config:{main:{rowSpacing:3,divider:!0},defaultStyle:!0},elements:[]};const buildWrapperSection=(r,s)=>{const i=_.cloneDeep(WrapperSection);return i.scope=s,i.config.main.label=r.label,i.config.main.divider=r.divider==="YES",i.config.main.isAccordion=r.isAccordion==="YES",r.defaultStyle&&(i.config.defaultStyle=r.defaultStyle==="YES"),r.style&&(i.config.style=JSON.parse(r.style)),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i};var TextInputField={type:"Control",scope:"#/properties/text",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:""},style:{}}};const buildTextField=(r,s)=>{const i=_.cloneDeep(TextInputField);return i.config.main.label=r.label,r.style&&(i.config.style=JSON.parse(r.style)),r.InputFormatingAndMasking&&(i.config.main.formatStrArray=r.InputFormatingAndMasking.map(m=>m.formatElement)),r.placeholder&&(i.config.main.placeholder=r.placeholder),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i.config.main.errorMessage=`${r.name} is empty or invalid`,i.scope=s,i};var SelectInputField={type:"Control",scope:"#/properties/select",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"",type:"text",freeSole:!1}}};const buildSelect=(r,s)=>{const i=_.cloneDeep(SelectInputField);return i.config.main.label=r.label,r.value&&(i.config.main.options=r.value),r.freeSolo&&(i.config.main.freeSolo=r.freeSolo==="YES"),r.lazyLoading&&(i.config.main.lazyLoading=r.lazyLoading==="YES"),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i.scope=s,i};var Button={type:"Control",scope:"#/properties/button",options:{widget:"Button"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{name:"Compare",variant:"contained",color:"info",type:"text",startIcon:"",styleDefault:!1,icon:"",onClick:"onClick",size:"small"},style:{}}};const buildButton=(r,s)=>{const i=_.cloneDeep(Button);return r.buttonType&&(i.options.widget=r.buttonType==="IconButton"?"IconButton":"Button",r.buttonType==="ButtonWithIconAndText"?i.config.main.startIcon=r.iconName:i.config.main.icon=r.iconName),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.tooltipMessage&&(i.config.main.tooltipMessage=r.tooltipMessage),r.defaultStyle&&(r.buttonType==="IconButton"?i.config.main.styleDefault=r.defaultStyle==="true":i.config.main.enableDefaultStyle=r.defaultStyle!=="true"),i.scope=s,r.style&&(i.config.style=JSON.parse(r.style)),r.size&&(i.config.main.size=r.size),r.color&&(i.config.main.color=r.color),r.label&&(i.config.main.name=r.label),i};var Table={type:"Control",scope:"#/properties/ApproveRecords",options:{widget:"Table"},elements:[],config:{main:{onMount:"onMount",allRowData:[],downloadAllData:!1,columns:{dataColumns:[],actionColumns:[]}}}},lazyLoadingTable={type:"Control",scope:"#/properties/LazyLoadingTable",options:{widget:"LazyLoadingTable"},elements:[],config:{main:{onMount:"onMount",columns:{}}}};const buildTable=(r,s)=>{const i=_.cloneDeep(Table);return i.scope=s,r.style&&(i.config.style=JSON.parse(r.style)),r.lazyLoading&&(i.config.main.lazyLoading=r.lazyLoading==="YES"),r.SelectionAvailable&&(i.config.main.Selection=r.SelectionAvailable==="YES"),r.ColumnResizingAvailable&&(i.config.main.disableColumnResizing=r.ColumnResizingAvailable!=="YES"),r.DragAvailable&&(i.config.main.enableDrag=r.DragAvailable==="YES"),r.downloadAllData&&(i.config.main.downloadAllData=r.downloadAllData==="YES"),r.Table_Download_Keys_Name&&(i.config.main.TableDownloadKeysName=r.Table_Download_Keys_Name.map(m=>m.KeyName)),r.selectKey&&(i.config.main.selectKey=r.selectKey),i},buildLazyLoadingTable=(r,s)=>{const i=_.cloneDeep(lazyLoadingTable);return i.scope=s,r.style&&(i.config.style=JSON.parse(r.style)),r.SelectionAvailable&&(i.config.main.Selection=r.SelectionAvailable==="YES"),r.ColumnResizingAvailable&&(i.config.main.disableColumnResizing=r.ColumnResizingAvailable!=="YES"),r.DragAvailable&&(i.config.main.enableDrag=r.DragAvailable==="YES"),r.selectKey&&(i.config.main.selectKey=r.selectKey),r.downloadAllData&&(i.config.main.downloadAllData=r.downloadAllData==="YES"),r.Table_Download_Keys_Name&&(i.config.main.TableDownloadKeysName=r.Table_Download_Keys_Name.map(m=>m.KeyName)),i.config.main.label=r.label,i};var Box={type:"Control",scope:"#/properties/emptyBox",options:{widget:"Box"},config:{layout:12,main:{},style:{}}};const buildLabel=(r,s)=>{const i=_.cloneDeep(Box);return i.scope=s,i.config.main.heading=r.label,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.style&&(i.config.style=JSON.parse(r.style)),i},uploadFile={type:"Control",scope:"#/properties/attachment",config:{main:{label:"AttachmentFile",onClick:"onClick",required:!0,errorMessage:"Attachment File is not uploaded"},style:{backgroundColor:"none"},layout:{lg:5.5,md:5.5,sm:11,xs:11}},options:{widget:"UploadFile"}},downloadFile={type:"Control",scope:"#/properties/downloadAttachment",config:{main:{onClick:"onClick",required:!1},style:{backgroundColor:"none"},layout:{lg:5.5,md:5.5,sm:11,xs:11}},options:{widget:"DownloadFile"}},buildUploadFile=(r,s)=>{const i=_.cloneDeep(uploadFile);return i.scope=s,i.config.main.label=r.label,r.layout&&(i.config.layout=r.layout),r.layout&&(uploadFile.config.layout=createLayoutFormat(r.layout)),r.style&&(i.config.style=r.style),r.required&&(i.config.main.required=!0),i.config.main.errorMessage=r.errorMessage,i},buildDownloadFile=(r,s)=>{const i=_.cloneDeep(downloadFile);return i.scope=s,r.layout&&(i.config.layout=r.layout),r.style&&(i.config.style=r.style),r.required&&(i.config.main.required=!0),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.errorMessage&&(i.config.main.errorMessage=r.errorMessage),i};var Card={type:"WrapperLayout",config:{main:{rowSpacing:.5},style:{wrapperStyle:{position:"relative",color:"white",height:{xs:"120px",md:"160px"},width:"100%",textAlign:"left",background:"#3f51b5",borderRadius:"20px"}},layout:{xs:12,sm:12,md:6,lg:6}},elements:[{type:"Control",scope:"#/properties/programType",config:{main:{heading:"$5000.00"},style:{position:"absolute",left:"10%",top:"15%",color:"#f5effc",height:"80px",display:"flex",fontSize:{xs:"24px",md:"32px"},alignItems:"center",background:"inherit",justifyContent:"flex-start"},layout:5},options:{widget:"Box"}},{type:"Control",scope:"#/properties/programType",config:{main:{url:"$"},style:{color:"#f5effc",objectFit:"contain",position:"absolute",top:"10px",right:"10px",height:"80%",width:"35%",display:"flex",fontSize:"34px",alignItems:"center",background:"inherit",padding:"20px",justifyContent:"left"},layout:5},options:{widget:"Image"}},{type:"Control",scope:"#/properties/programType",config:{main:{heading:"Total Earnings"},style:{position:"absolute",top:"calc(60%)",alignItems:"center",color:"#8999e8",fontSize:"16px",left:"10%",background:"inherit",justifyContent:"center"},layout:12},options:{widget:"Box"}}]};const buildCard=(r,s)=>{const i=_.cloneDeep(Card);return r.style&&(i.config.style=JSON.parse(r.style)),i.elements[0].scope=`#/properties/${r.name}/properties/value`,i.elements[1].scope=`#/properties/${r.name}/properties/url`,i.elements[2].scope=`#/properties/${r.name}/properties/description`,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.label&&(i.elements[0].config.main.heading=r.label),r.url&&(i.elements[1].config.main.url=r.url),r.description&&(i.elements[2].config.main.heading=r.description),i};var DateInputField={type:"Control",scope:"#/properties/date",options:{widget:"DateInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"",type:"date"}}};const DateTime={type:"Control",scope:"#/properties/date",options:{widget:"DateTimeInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"DateTime",type:"date"}}},buildDate=(r,s)=>{const i=_.cloneDeep(DateInputField);return i.config.main.label=r.label,i.config.main.errorMessage=`${r.name} is empty or invalid`,i.scope=s,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i},buildDateTime=(r,s)=>{const i=_.cloneDeep(DateTime);return i.config.main.label=r.label,i.config.main.errorMessage=`${r.name} is empty or invalid`,i.scope=s,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i};var RankCard={type:"Control",scope:"#/properties/path",options:{widget:"RankCard"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{}}};const buildRankCard=(r,s)=>{const i=_.cloneDeep(RankCard);return i.scope=s,r.image&&(i.config.main.url=r.image),r.title&&(i.config.main.title=r.title),r.description&&(i.config.main.description=r.description),r.rank&&(i.config.main.rank=`#${r.rank}`),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i};var RollAndDice={type:"Control",scope:"#/properties/path",options:{widget:"RollAndDice"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{}}};const buildRollAndDice=(r,s)=>{const i=_.cloneDeep(RollAndDice);return r.name&&(i.scope=s),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i};var Timer={type:"Control",scope:"#/properties/timer",options:{widget:"Timer"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{},style:{digitContainer:{borderRadius:"4px",textShawdow:"none",width:"22%"},container:{backgroundColor:"#FFFFFF",borderRadius:"18px"},containerLabelColor:{color:"red"}}}};const buildTimer=(r,s)=>{const i=_.cloneDeep(Timer);return i.scope=s,r.label&&(i.config.main.label=r.label),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i};var MultipleSelect={type:"Control",scope:"#/properties/path",options:{widget:"MultipleSelect"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"",type:"text",multiple:!0,variant:"standard",options:[]}}};const buildMultiSelect=(r,s)=>{const i=_.cloneDeep(MultipleSelect);return i.scope=s,r.label&&(i.config.main.label=r.label),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.value&&(i.config.main.options=r.value),r.lazyLoading&&(i.config.main.lazyLoading=r.lazyLoading==="YES"),i},buildBasicUiSchema=r=>({type:"HorizontalLayout",pageName:`${r.name}`,scope:`${r.name}`,elements:[]}),TextArea={type:"Control",scope:"#/properties/textarea",options:{widget:"TextArea"},config:{layout:{xs:12,sm:12,md:5.5,lg:5.5},style:{containerStyle:{borderRadius:"20px"},headerContainerStyle:{},textAreaStyle:{borderRadius:"20px",padding:"20px",background:"white",color:"black"}},main:{heading:"TextArea",minRows:4,hideButton:!0}}},buildTextArea=(r,s)=>{const i=_.cloneDeep(TextArea);return i.config.main.heading=r.label,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.style&&(i.config.style=JSON.parse(r.style)),r.placeholder&&(i.config.main.placeholder=r.placeholder),i.scope=s,i};var cardSlider={type:"Control",scope:"#/properties/path",options:{widget:"Slider"},elements:[],config:{layout:12,main:{}}};const buildSlider=(r,s)=>{const i=_.cloneDeep(cardSlider);return r.name&&(i.scope=s),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i},Checkbox={type:"Control",scope:"#/properties/username1",layout:12,options:{widget:"CheckBox"},config:{main:{label:"Welcome to Hyperform"}}},buildCheckbox=(r,s)=>{const i=_.cloneDeep(Checkbox);return i.scope=s,i.config.main.label=r.label,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.style&&(i.config.style=JSON.parse(r.style)),i},buildLineGraph=(r,s)=>{const i=_.cloneDeep(LineGraph);return r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i.config.main.header=r.heading,r.height&&(i.config.style.containerStyle.height=r.height),r.bottomLabel&&(i.config.main.bottomLabel=r.bottomLabel),r.yAxisValue&&(i.config.main.yAxisValue=r.yAxisValue),r.xAxisValue&&(i.config.main.xAxisValue=r.xAxisValue),r.leftLabel&&(i.config.main.leftLabel=r.leftLabel),r.legendHide&&(i.config.main.legendAvailabe=r.legendHide!=="YES"),r.legendLabels&&(i.config.main.tooltipDataKey=flatObjectValueInArray(r.legendLabels)),r.pieArcColors&&(i.config.style.lineStyle.colorRange=flatObjectValueInArray(r.pieArcColors)),i.scope=s,i},RadioUiSchema={type:"Control",scope:"#/properties/invoiceEnabled",options:{widget:"RadioInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Enabled",options:["YES","NO"],errorMessage:"Enabled is not marked as YES or NO"}}},buildRadio=(r,s)=>{const i=_.cloneDeep(RadioUiSchema);return i.scope=s,i.config.main.label=r.label,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.sectionLabels&&(i.config.main.options=r.sectionLabels.map(m=>m.label||m.Options)),r.style&&(i.config.style=JSON.parse(r.style)),i};var emptyBox={type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:12,sm:12,md:5.5,lg:5.5},main:{},style:{}}};const buildEmptyBox=(r,s)=>{const i=_.cloneDeep(emptyBox);return r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i},ArrayUiSchema={type:"Control",scope:"#/properties/adjustments",layout:11.5,options:{detail:{type:"HorizontalLayout",elements:[]}}},buildArray=(r,s)=>{const i=_.cloneDeep(ArrayUiSchema);return i.scope=s,i},TextField={type:"Control",scope:"#/properties/AAdhar",layout:12,options:{widget:"InputField"},config:{main:{label:"Adhaar Card",formatStrArray:["9","9","9","9"," ","9","9","9","9"," ","X9","X9","X9","X9"],placeholder:"XXXX XXXX XXXX"}}},buildAdhaarField=(r,s)=>{const i=_.cloneDeep(TextField);return i.config.main.label=r.label,r.style&&(i.config.style=JSON.parse(r.style)),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i.config.main.errorMessage=`${r.name} is empty or invalid`,i.scope=s,i},PanField={type:"Control",scope:"#/properties/pan",layout:12,options:{widget:"InputField"},config:{main:{label:"Pan Card",placeholder:"AAAAA0000A",formatStrArray:["A","A","A","A","A","9","9","9","9","A"]}}},buildPanField=(r,s)=>{const i=_.cloneDeep(PanField);return i.config.main.label=r.label,r.style&&(i.config.style=JSON.parse(r.style)),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i.config.main.errorMessage=`${r.name} is empty or invalid`,i.scope=s,i},FileInput={type:"Control",scope:"#/properties/docAggrementCopy",options:{widget:"FileInputField"},config:{layout:11.5,main:{required:!1,onUpload:"onFileUpload",onDownload:"onFileDownload",label:"Aggrement Copy"},style:{backgroundColor:"none"}}},buildFileInput=(r,s)=>{const i=_.cloneDeep(FileInput);return i.scope=s,i.config.main.label=r.label,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.style&&(i.config.style=JSON.parse(r.style)),i},Stepper={type:"Control",scope:"#/properties/Stepper",options:{widget:"Stepper"},config:{main:{steps:[{label:"First"},{label:"Second"},{label:"Third"}],resetButton:!1,resetText:"Reset",orientation:"vertical"}},elements:[]},buildStepper=(r,s)=>{const i=_.cloneDeep(Stepper);return i.scope=s,i.config.main.resetButton=r.resetButton==="YES",r.defaultButtonAvailable&&(i.config.main.defaultButtonAvailable=r.defaultButtonAvailable==="YES"),i.config.main.resetText=r.resetText||"ResetData",i.config.main.completeText=r.completeText||"Complete Text",i.config.main.orientation=r.orientation||"horizontal",r.sectionLabels&&(i.config.main.steps=r.sectionLabels.map((m,h)=>({label:m.label,id:h}))),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.style&&(i.config.style=JSON.parse(r.style)),i},PopUP={type:"Control",scope:"#/properties/text",options:{widget:"PopUp"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{label:"PopUp",fullScreen:!1,fullWidth:!1,maxWidth:!1,alignItems:!1,spacing:2},style:{}}},buildPopUp=(r,s)=>{const i=_.cloneDeep(PopUP);return i.scope=s,i.config.main.title=r.label,i.config.main.fullScreen=r.fullScreen==="YES",i.config.main.fullWidth=r.fullWidth==="YES",i.config.main.maxWidth=r.maxWidth||!1,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.style&&(PopUP.config.style=JSON.parse(r.style)),i},dataGrid={type:"Control",scope:"#/properties/dataGrid",layout:12,options:{widget:"DataGrid"},elements:[],config:{main:{elevation:0,useWrapper:!1},style:{}}},buildDataGrid=(r,s)=>{const i=_.cloneDeep(dataGrid);return i.scope=s,r.elevation&&(i.config.main.elevation=+r.elevation),i.config.main.divider=r.divider!=="NO",r.height&&(i.config.main.height=`${r.height}px`),r.justifyContent&&(i.config.main.justifyContent=r.justifyContent),r.label&&(i.config.main.label=r.label),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.cardLayout&&(i.config.cardLayout=createLayoutFormat(r.cardLayout)),r.style&&(i.config.style=JSON.parse(r.style)),i},InputSlider={type:"Control",scope:"#/properties/inputSlider",options:{widget:"InputSlider"},config:{layout:12,main:{limitToMax:!1,max:1e4,step:1e3,min:0,label:"Slider"}}},buildInputSlider=(r,s)=>{const i=_.cloneDeep(InputSlider);return i.scope=s,i.config.main.label=r.label,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.limitToMax&&(i.config.main.limitToMax=r.limitToMax==="YES"),r.max&&(i.config.main.max=r.max),r.step&&(i.config.main.step=r.step),r.min&&(i.config.main.min=r.min),r.style&&(i.config.main.defaultStyle=JSON.parse(r.style)),i},TreeMap={type:"Control",scope:"#/properties/TreeMap2",config:{main:{layout:"cartsian",orientation:"vertical",header:"Territory Hierarchy",linkType:"step",graphHeight:"500px"},style:{BoxStyle:{borderRadius:"5px"}}},options:{widget:"TreeMap"},elements:[]},buildTreeMap=(r,s)=>{const i=_.cloneDeep(TreeMap);return i.scope=s,r.label&&(i.config.main.header=r.label),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.orientation&&(i.config.main.orientation=r.orientation),r.linkType&&(i.config.main.linkType=r.linkType),r.graphHeight&&(i.config.main.graphHeight=r.graphHeight),r.graphWidth&&(i.config.main.graphWidth=r.graphWidth),r.graphZoomHeight&&(i.config.main.graphZoomHeight=r.graphZoomHeight),r.graphZoomWidth&&(i.config.main.graphZoomWidth=r.graphZoomWidth),i};exports.schema={type:"object",properties:{},required:[]};function buildRule(r,s,i){var m,h,b,y,w,F,$,V,ee,he;i?(b=(h=(m=exports.schema.properties)==null?void 0:m[s])==null?void 0:h.items)!=null&&b.properties&&(($=(F=(w=(y=exports.schema.properties)==null?void 0:y[s])==null?void 0:w.items)==null?void 0:F.properties)!=null&&$[r.name]||(exports.schema.properties[s].items.properties[r.name]={},r.type==="Select"&&((V=r.value)==null?void 0:V.length)>0?exports.schema.properties[s].items.properties[r.name]={oneOf:r.value.map(U=>({const:U.value,title:U.label}))}:r.type==="MultipleSelect"&&((ee=r.value)==null?void 0:ee.length)>0&&(exports.schema.properties[s].items.properties[r.name]={items:{oneOf:r.value.map(U=>({const:U.value,title:U.label}))}}))):(r.type==="Select"||r.type==="MultipleSelect")&&((he=r.value)==null?void 0:he.length)>0&&(r.type==="Select"?exports.schema.properties[r.name]={oneOf:r.value.map(U=>({const:U.value,title:U.label}))}:r.type==="MultipleSelect"&&(exports.schema.properties[r.name]={items:{oneOf:r.value.map(U=>({const:U.value,title:U.label}))}})),r.validation&&r.validation.forEach(U=>{var Ke,gt,se,We,$t,ye,Ve,ve,Ye,Ie,it,Ft;s?(se=(gt=(Ke=exports.schema.properties)==null?void 0:Ke[s])==null?void 0:gt.items)!=null&&se.properties&&((Ve=(ye=($t=(We=exports.schema.properties)==null?void 0:We[s])==null?void 0:$t.items)==null?void 0:ye.properties)!=null&&Ve[r.name]||(exports.schema.properties[s].items.properties[r.name]={},r.type==="Select"||((ve=r.value)==null?void 0:ve.length)>0?exports.schema.properties[s].items.properties[r.name]={oneOf:r.value.map(ht=>({const:ht.value,title:ht.label}))}:(r.type==="MultipleSelect"||((Ye=r.value)==null?void 0:Ye.length)>0)&&(exports.schema.properties[s].items.properties[r.name]={items:{oneOf:r.value.map(ht=>({const:ht.value,title:ht.label}))}})),U.validationType==="required"?(Ft=(it=(Ie=exports.schema.properties)==null?void 0:Ie[s])==null?void 0:it.items)==null||Ft.required.push(r.name):(exports.schema.properties[s].items.properties[r.name].type="string",exports.schema.properties[s].items.properties[r.name][U.validationType]=isNaN(U.validationValue)?U.validationValue:Number(U.validationValue))):(exports.schema.properties[r.name]||(exports.schema.properties[r.name]={}),U.validationType==="required"?exports.schema.required.push(r.name):(exports.schema.properties[r.name].type="string",exports.schema.properties[r.name][U.validationType]=isNaN(U.validationValue)?U.validationValue:Number(U.validationValue)))})}const buildSchema=(r,s,i)=>(buildRule(r,s,i),r!=null&&r.elements&&(r.type=="Table"||r.type=="Array"?(exports.schema.properties[r.name]||(exports.schema.properties[r.name]={type:"array",items:{type:"object",properties:{},required:[]}}),r.elements.map((m,h)=>{buildSchema(m,r.name,r.type==="Array")})):r.elements.map((m,h)=>{buildSchema(m)})),exports.schema),buildUiSchema=r=>{let s={};const i=`#/properties/${r.name}`;switch(r.type){case"TreeMap":s=buildTreeMap(r,i);break;case"DateTime":s=buildDateTime(r,i);break;case"InputSlider":s=buildInputSlider(r,i);break;case"DataGrid":s=buildDataGrid(r,i);break;case"Stepper":s=buildStepper(r,i);break;case"PopUp":s=buildPopUp(r,i);break;case"FileInput":s=buildFileInput(r,i);break;case"AadharcardText":s=buildAdhaarField(r,i);break;case"PanCardText":s=buildPanField(r,i);break;case"TabSection":s=buildTabSection(r,i);break;case"RunnerBoyProgressBar":s=RunnerBoyProgressbar(r,i);break;case"WrapperSection":s=buildWrapperSection(r,i);break;case"Text":s=buildTextField(r,i);break;case"TextArea":s=buildTextArea(r,i);break;case"Date":s=buildDate(r,i);break;case"Select":s=buildSelect(r,i);break;case"Radio":s=buildRadio(r,i);break;case"Button":s=buildButton(r,i);break;case"Table":s=buildTable(r,i);break;case"Array":s=buildArray(r,i);break;case"LazyLoadingTable":s=buildLazyLoadingTable(r,i);break;case"Box":s=buildLabel(r,i);break;case"CheckBox":s=buildCheckbox(r,i);break;case"UploadFile":s=buildUploadFile(r,i);break;case"DownloadFile":s=buildDownloadFile(r,i);break;case"EmptyBox":s=buildEmptyBox(r);break;case"card":s=buildCard(r);break;case"Graph":switch(r.graphType){case"BarGraph":case"StackBarGraph":s=buildStackbarGraph(r,i);break;case"LineGraph":s=buildLineGraph(r,i);break;case"PieGraph":s=buildPieGraph(r,i);break;case"HorizontalBarGraph":s=buildHorizontalBarGraph(r,i);break}break;case"ProgressBar":s=buildProgressBar(r,i);break;case"SpeedoMeter":s=buildSpeedoMeter(r,i);break;case"ProgressBarCard":s=buildProgressBarCard(r,i);break;case"RankCard":s=buildRankCard(r,i);break;case"Rank":s=buildRollAndDice(r,i);break;case"Slider":s=buildSlider(r,i);break;case"Timer":s=buildTimer(r,i);break;case"MultipleSelect":s=buildMultiSelect(r,i);break;case"LeaderBoard":s=buildLeaderBoard(r);break;default:exports.schema={type:"object",properties:{},required:[]},s=buildBasicUiSchema(r)}if(r!=null&&r.elements){if((r==null?void 0:r.type)==="LeaderBoard")return s;if(r.type=="Table"){let m=function(w){return w.type?{accessorKey:w.name,type:w.columnFormat,header:w.label||w.name,size:y[w.name]||180,widget:buildUiSchema(w)}:{accessorKey:w.name,type:w.columnFormat,header:w.label||w.name,size:y[w.name]||180}},h=function(w,F=null){const $=[];for(const V of w)if((V==null?void 0:V.parent)===F){const ee=h(w,V.name),he=m(V);ee.length>0&&(he.columns=ee,he.type="group"),$.push(he)}return $},b=function(w){const F=[],$=h(w.elements,w.name);for(const V of w.elements)!w.elements.some(he=>he.name===V.parent)&&V.parent!==w.name&&F.push(m(V));return[...$,...F]};const y={};r.sizeHolder&&r.sizeHolder.map((w,F)=>{y[w.keyName]=w.value}),s.elements=b(r)}else r.type=="Array"?s.options.detail.elements=r.elements.map((m,h)=>buildUiSchema(m)):s.elements=r.elements.map((m,h)=>buildUiSchema(m))}return s};exports.buildConfig=buildConfig,exports.buildSchema=buildSchema,exports.buildUiSchema=buildUiSchema,exports.clearFromLocalStorage=clearFromLocalStorage,exports.pageMaster=pageMaster,exports.pageMasterComponents=Component,exports.pageMasterEvents=event,exports.pageService=service,Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
28
28
  //# sourceMappingURL=impaktapps-ui-builder.umd.js.map